@tano.page/workbench 0.14.0 → 0.16.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 (248) hide show
  1. package/package.json +50 -16
  2. package/src/App.vue +82 -752
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/agent-identities.ts +1 -97
  17. package/src/assistant/agent-task-context.ts +1 -54
  18. package/src/assistant/attachments.ts +1 -1
  19. package/src/assistant/completion.ts +1 -61
  20. package/src/assistant/components/AssistantChangeList.vue +98 -21
  21. package/src/assistant/components/AssistantPanel.vue +425 -8
  22. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  23. package/src/assistant/connection-actions.ts +237 -0
  24. package/src/assistant/document-mentions.ts +1 -33
  25. package/src/assistant/engine.ts +1 -532
  26. package/src/assistant/execution.ts +6 -33
  27. package/src/assistant/files.ts +5 -13
  28. package/src/assistant/hash.ts +1 -4
  29. package/src/assistant/inbox.ts +1 -148
  30. package/src/assistant/language.ts +10 -37
  31. package/src/assistant/mention-autocomplete.ts +69 -0
  32. package/src/assistant/plugin-bridge-builder.ts +146 -0
  33. package/src/assistant/prompts.ts +1 -58
  34. package/src/assistant/proposal-actions.ts +336 -0
  35. package/src/assistant/results.ts +20 -86
  36. package/src/assistant/store.ts +167 -327
  37. package/src/assistant/structures.ts +1 -155
  38. package/src/assistant/tasks.ts +8 -96
  39. package/src/assistant/tool-rules.ts +1 -7
  40. package/src/assistant/workspace-bridge.ts +1 -1
  41. package/src/composables/use-document-actions.ts +38 -20
  42. package/src/composables/use-file-tree-controller.ts +7 -12
  43. package/src/composables/use-workbench-help.ts +177 -0
  44. package/src/composables/use-workbench-history.ts +2 -4
  45. package/src/composables/use-workbench-lifecycle.ts +249 -0
  46. package/src/composables/use-workbench-modals.ts +6 -1
  47. package/src/composables/use-workbench-outline.ts +0 -5
  48. package/src/composables/use-workbench-settings.ts +185 -0
  49. package/src/composables/use-workbench-shortcuts.ts +40 -1021
  50. package/src/composables/use-workbench-views.ts +325 -0
  51. package/src/data-tables/data-tables.ts +1 -2
  52. package/src/documents/components/DocumentActionMenu.vue +279 -0
  53. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  54. package/src/documents/components/DocumentInspector.vue +168 -0
  55. package/src/documents/components/DocumentPane.vue +482 -0
  56. package/src/documents/description-merge.ts +1 -9
  57. package/src/features.ts +1 -0
  58. package/src/files/components/FileMetadataPanel.vue +49 -15
  59. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  60. package/src/fonts/Inter-Latin.woff2 +0 -0
  61. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  62. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  63. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  64. package/src/help/help-milestones.ts +3 -5
  65. package/src/i18n/locale-catalogs.ts +7 -6
  66. package/src/i18n/locale-registry.ts +8 -6
  67. package/src/i18n/locales/de-DE.json +371 -3
  68. package/src/i18n/locales/en-US.json +371 -2
  69. package/src/i18n/locales/es-ES.json +371 -3
  70. package/src/i18n/locales/ja-JP.json +370 -2
  71. package/src/i18n/locales/zh-TW.json +370 -2
  72. package/src/mail/components/MailAccountDialog.vue +450 -0
  73. package/src/mail/components/MailComposerDialog.vue +326 -0
  74. package/src/mail/components/MailProviderIcon.vue +30 -0
  75. package/src/mail/components/MailWorkspaceView.vue +821 -0
  76. package/src/mail/components/SidebarMail.vue +134 -0
  77. package/src/mail/mail-avatar.ts +17 -0
  78. package/src/mail/mail-bridge.ts +68 -0
  79. package/src/mail/mail-calendar.ts +208 -0
  80. package/src/mail/mail-markdown.ts +195 -0
  81. package/src/mail/types.ts +226 -0
  82. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  83. package/src/objects/content-references.ts +6 -56
  84. package/src/objects/wiki-links.ts +1 -48
  85. package/src/objects/workspace-objects.ts +3 -4
  86. package/src/plan-sync/types.ts +6 -3
  87. package/src/plans/calendar-interaction.ts +194 -0
  88. package/src/plans/calendar.ts +65 -9
  89. package/src/plans/components/CalendarAgendaView.vue +165 -0
  90. package/src/plans/components/CalendarDayPopover.vue +172 -39
  91. package/src/plans/components/CalendarFilterBar.vue +128 -0
  92. package/src/plans/components/CalendarMonthView.vue +224 -0
  93. package/src/plans/components/CalendarQuickCreateDialog.vue +269 -0
  94. package/src/plans/components/CalendarTimelineView.vue +517 -0
  95. package/src/plans/components/CalendarTopbarControls.vue +101 -0
  96. package/src/plans/components/CalendarView.vue +264 -748
  97. package/src/plans/components/CalendarYearView.vue +138 -0
  98. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  99. package/src/plans/components/PlanConnectionsDialog.vue +1 -1
  100. package/src/plans/components/PlanDateField.vue +6 -4
  101. package/src/plans/components/PlanDetailPanel.vue +227 -32
  102. package/src/plans/components/PlanEventList.vue +16 -4
  103. package/src/plans/components/SidebarPlan.vue +22 -15
  104. package/src/plans/components/TaskRepeatControls.vue +169 -30
  105. package/src/plans/components/calendar-shared.css +192 -0
  106. package/src/plans/composables/use-calendar-interactions.ts +396 -0
  107. package/src/plans/composables/use-calendar-scroll.ts +420 -0
  108. package/src/plans/local-reminders.ts +149 -0
  109. package/src/plans/personal-plans.ts +10 -1
  110. package/src/plans/plan-date.ts +8 -1
  111. package/src/plans/plan-migration.ts +95 -0
  112. package/src/plans/recurrence.ts +95 -0
  113. package/src/plans/task-repeat.ts +8 -8
  114. package/src/plans/timeline-layout.ts +92 -0
  115. package/src/plugins/assistant-bridge.ts +520 -0
  116. package/src/plugins/attachment-reader.ts +3 -1
  117. package/src/plugins/cache-storage.ts +42 -2
  118. package/src/plugins/components/PluginAutomations.vue +3 -3
  119. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  120. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  121. package/src/plugins/components/PluginConnections.vue +1 -1
  122. package/src/plugins/components/PluginCustomView.vue +2 -2
  123. package/src/plugins/components/PluginDetailPage.vue +136 -57
  124. package/src/plugins/components/PluginDeveloperArea.vue +192 -0
  125. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  126. package/src/plugins/components/PluginExplorer.vue +21 -25
  127. package/src/plugins/components/PluginImportDialog.vue +410 -0
  128. package/src/plugins/components/PluginInstaller.vue +273 -288
  129. package/src/plugins/components/PluginListItem.vue +3 -0
  130. package/src/plugins/components/PluginMaintenance.vue +37 -34
  131. package/src/plugins/components/PluginRepositoryStorage.vue +4 -2
  132. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  133. package/src/plugins/components/PluginSettingsForm.vue +112 -0
  134. package/src/plugins/components/PluginStatusBar.vue +161 -0
  135. package/src/plugins/components/PluginSurface.vue +18 -6
  136. package/src/plugins/components/PluginUiDialog.vue +452 -0
  137. package/src/plugins/components/PluginsTabPage.vue +61 -0
  138. package/src/plugins/components/plugin-center.css +5 -0
  139. package/src/plugins/data.ts +9 -86
  140. package/src/plugins/editor-plugin-adapters.ts +169 -0
  141. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  142. package/src/plugins/excalidraw/manifest.json +12 -1
  143. package/src/plugins/host.ts +662 -43
  144. package/src/plugins/native.ts +2 -10
  145. package/src/plugins/overlay-mapping.ts +125 -0
  146. package/src/plugins/packages.ts +73 -1
  147. package/src/plugins/plugin-data.ts +2 -3
  148. package/src/plugins/plugin-permissions.ts +57 -0
  149. package/src/plugins/plugin-rpc-router.ts +558 -0
  150. package/src/plugins/plugin-sdk.ts +1 -94
  151. package/src/plugins/plugin-ui-dialogs.ts +167 -0
  152. package/src/plugins/policy.ts +53 -3
  153. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  154. package/src/plugins/presentation-preview/manifest.json +2 -1
  155. package/src/plugins/queries.ts +1 -73
  156. package/src/plugins/sandbox.ts +15 -1
  157. package/src/plugins/use-plugin-actions.ts +67 -20
  158. package/src/plugins/user-plugins.ts +254 -0
  159. package/src/plugins/view-header.ts +2 -7
  160. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  161. package/src/plugins/word-preview/manifest.json +13 -1
  162. package/src/plugins/workbench.ts +175 -2
  163. package/src/plugins/worker.js +105 -8
  164. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  165. package/src/plugins/workspace-plugins.ts +212 -21
  166. package/src/runtime.ts +103 -4
  167. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  168. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  169. package/src/settings/components/SettingsPanel.vue +8 -3
  170. package/src/settings/components/WorkbenchSettings.vue +20 -7
  171. package/src/settings/components/settings-context.ts +1 -1
  172. package/src/settings/components/settings-search.ts +2 -3
  173. package/src/settings/settings-tab.ts +1 -0
  174. package/src/shell/command-palette.ts +3 -3
  175. package/src/shell/components/EditorToolbar.vue +8 -9
  176. package/src/shell/components/EditorTools.vue +1 -5
  177. package/src/shell/components/PaneTopbar.vue +393 -0
  178. package/src/shell/components/SelectionToolbar.vue +0 -2
  179. package/src/shell/components/SidebarNavigation.vue +22 -2
  180. package/src/shell/components/WorkbenchContextMenus.vue +58 -34
  181. package/src/shell/components/WorkbenchModals.vue +47 -62
  182. package/src/shell/components/WorkbenchPanes.vue +371 -1342
  183. package/src/shell/components/WorkbenchSidebar.vue +486 -0
  184. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  185. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  186. package/src/shell/pane-registry.ts +69 -0
  187. package/src/shell/use-surface-dismissal.ts +219 -0
  188. package/src/shell/use-workbench-commands.ts +599 -0
  189. package/src/shell/use-workbench-keybindings.ts +337 -0
  190. package/src/shell/use-workbench.ts +531 -1153
  191. package/src/shell/workbench-async-components.ts +14 -5
  192. package/src/shell/workbench-context.ts +30 -3
  193. package/src/stores/mail.ts +414 -0
  194. package/src/stores/plan-sync.ts +2 -1
  195. package/src/stores/plans.ts +2 -9
  196. package/src/stores/workspace-document-io.ts +807 -0
  197. package/src/stores/workspace-file-ops.ts +1 -1
  198. package/src/stores/workspace-knowledge.ts +2 -114
  199. package/src/stores/workspace-lifecycle.ts +459 -0
  200. package/src/stores/workspace-plugins-state.ts +254 -259
  201. package/src/stores/workspace-session.ts +287 -0
  202. package/src/stores/workspace-tabs-layout.ts +6 -44
  203. package/src/stores/workspace-types.ts +50 -0
  204. package/src/stores/workspace.ts +184 -1363
  205. package/src/styles/agent-diff-modals.css +0 -7
  206. package/src/styles/dark-theme.css +3 -3
  207. package/src/styles/inspector.css +0 -59
  208. package/src/styles/layout-themes.css +346 -0
  209. package/src/styles/mail.css +1568 -0
  210. package/src/styles/mobile.css +2 -2
  211. package/src/styles/recent-and-media.css +0 -17
  212. package/src/styles/theme-contract.css +3 -3
  213. package/src/styles/workbench-shell.css +110 -17
  214. package/src/styles/workspace-states.css +9 -33
  215. package/src/styles.css +0 -1
  216. package/src/tabs/components/DesktopTabs.vue +19 -14
  217. package/src/tabs/components/NewTabPicker.vue +10 -4
  218. package/src/tabs/tab-label.ts +0 -1
  219. package/src/windows/AuxiliaryWindows.vue +2 -2
  220. package/src/windows/use-window-event-bridge.ts +152 -0
  221. package/src/workspace/components/TemplateLibrary.vue +1 -1
  222. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  223. package/src/workspace/components/WorkspaceIconPicker.vue +30 -7
  224. package/src/workspace/components/WorkspacePickerMenu.vue +317 -0
  225. package/src/workspace/workspace-comments.ts +11 -151
  226. package/src/workspace/workspace-welcome.ts +1 -1
  227. package/src/assistant/locales/de-DE.json +0 -126
  228. package/src/assistant/locales/en-US.json +0 -126
  229. package/src/assistant/locales/es-ES.json +0 -126
  230. package/src/assistant/locales/ja-JP.json +0 -126
  231. package/src/assistant/locales/zh-CN.json +0 -126
  232. package/src/assistant/locales/zh-TW.json +0 -126
  233. package/src/assistant/task-prompts.json +0 -39
  234. package/src/documents/components/FormulaMenu.vue +0 -50
  235. package/src/files/components/FileDatabasePage.vue +0 -152
  236. package/src/files/components/FolderHomeIcon.vue +0 -12
  237. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  238. package/src/objects/components/ObjectPanel.vue +0 -554
  239. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  240. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  241. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  242. package/src/styles/object-panel.css +0 -163
  243. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  244. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  245. package/src/workspace/welcome-slogans.ts +0 -11
  246. package/src/workspace/workspace-git.ts +0 -35
  247. package/src/workspace/workspace-sync.ts +0 -46
  248. package/src/workspace/workspace-views.ts +0 -48
@@ -1 +1 @@
1
- {"manifest":{"apiVersion":1,"commands":[{"id":"open","label":"Word:打开预览"}],"description":"离线渲染 DOCX 页面、分节、页眉页脚、表格和图片,以及旧版 DOC 的文字与表格样式,无需安装 Word。","id":"word-preview","manifestVersion":2,"name":"Word 文档预览","nativeCommands":[],"networkOrigins":[],"objectTypes":[],"permissions":["attachments.read","ui"],"relationTypes":[],"version":"1.0.0","views":[{"id":"document","label":"Word 文档预览","location":"tab"}]},"packageVersion":1,"source":"\"use strict\";\nvar TanoPlugin = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n // examples/plugins/word-preview/main.ts\n var main_exports = {};\n __export(main_exports, {\n default: () => activate\n });\n async function activate(tano) {\n let generation = 0;\n let current;\n let imported;\n let acknowledgment;\n const header = (title = \"Word \\u6587\\u6863\\u9884\\u89C8\", page = 0, count = 0, detail = \"\") => tano.views.setHeader(\"document\", {\n ...count && detail ? { previewInfo: { label: \"\\u53EA\\u8BFB\\u9884\\u89C8\", detail: detail.slice(0, 2e3) } } : {},\n title,\n status: count ? `${page} / ${count}` : \"\",\n statusAfter: \"previous\",\n actions: [\n { id: \"open\", label: \"\\u6253\\u5F00 DOC/DOCX\", icon: \"open\", accept: \".doc,.docx\", group: \"\\u6587\\u4EF6\" },\n { id: \"previous\", label: \"\\u4E0A\\u4E00\\u9875\", icon: \"previous\", disabled: page <= 1 },\n { id: \"next\", label: \"\\u4E0B\\u4E00\\u9875\", icon: \"next\", disabled: !count || page >= count },\n { id: \"minus\", label: \"\\u7F29\\u5C0F\", icon: \"minus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"fit\", label: \"\\u9002\\u5E94\\u5BBD\\u5EA6\", icon: \"fit\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"plus\", label: \"\\u653E\\u5927\", icon: \"plus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"license\", label: \"\\u9884\\u89C8\\u8BF4\\u660E\\u4E0E\\u8BB8\\u53EF\", icon: \"info\", group: \"\\u8BF4\\u660E\" }\n ]\n });\n await header();\n await tano.views.renderCustom(\"document\", { idle: true });\n tano.views.onMessage(\"document\", async (message) => {\n if (!message || typeof message !== \"object\" || Array.isArray(message)) return;\n if (message.type === \"header\") {\n if (message.token !== generation) return;\n await header(String(message.title).slice(0, 200), Number(message.page), Number(message.count), typeof message.note === \"string\" ? message.note : \"\");\n return;\n }\n if (message.type === \"received\") {\n if (acknowledgment?.token === message.token && acknowledgment.offset === message.offset) acknowledgment.resolve();\n return;\n }\n if (message.type === \"header-action\") {\n await tano.views.renderCustom(\"document\", { action: message.action, nonce: Date.now() });\n return;\n }\n if (message.type === \"header-file-start\" && message.action === \"open\" && typeof message.transferId === \"string\") {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n await header(String(message.name).slice(0, 200));\n await tano.views.renderCustom(\"document\", { loading: true, token: imported.token });\n return;\n }\n if (message.type === \"header-file-error\" && imported?.id === message.transferId) {\n await tano.views.renderCustom(\"document\", { error: String(message.error), token: imported.token });\n imported = void 0;\n return;\n }\n if (message.type === \"header-file\") {\n if (message.action !== \"open\" || typeof message.chunk !== \"string\" || typeof message.transferId !== \"string\" || typeof message.offset !== \"number\") return;\n if (message.offset === 0 && imported?.id !== message.transferId) {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n }\n const active2 = imported;\n if (!active2 || active2.id !== message.transferId || active2.offset !== message.offset) return;\n const length = atob(message.chunk).length;\n await new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n acknowledgment = void 0;\n reject(new Error(\"\\u6587\\u4EF6\\u4F20\\u8F93\\u8D85\\u65F6\"));\n }, 1e4);\n acknowledgment = { token: active2.token, offset: active2.offset + length, resolve: () => {\n clearTimeout(timer);\n acknowledgment = void 0;\n resolve();\n } };\n void tano.views.renderCustom(\"document\", { ...message, path: message.name, token: active2.token, imported: true }).catch((error) => {\n clearTimeout(timer);\n acknowledgment = void 0;\n reject(error);\n });\n });\n active2.offset += length;\n return;\n }\n if (!current || message.token !== current.token) return;\n const active = current;\n try {\n const chunk = await tano.attachments.read(active.fileId, Number(message.offset), active.revision);\n if (current === active) await tano.views.renderCustom(\"document\", { ...chunk, token: active.token });\n } catch (error) {\n if (current === active) await tano.views.renderCustom(\"document\", { error: String(error), token: active.token });\n }\n });\n await tano.commands.register(\"open\", async (context) => {\n const token = ++generation;\n current = void 0;\n imported = void 0;\n await header();\n await tano.views.renderCustom(\"document\", context?.fileId ? { loading: true, token } : { idle: true, token });\n if (!context?.viewAlreadyOpen) await tano.views.open(\"document\");\n if (!context?.fileId) return;\n try {\n const chunk = await tano.attachments.read(context.fileId);\n if (token !== generation) return;\n if (!/\\.docx?$/i.test(chunk.path)) throw new Error(\"\\u8BF7\\u9009\\u62E9 DOC \\u6216 DOCX \\u6587\\u4EF6\");\n current = { fileId: context.fileId, revision: chunk.revision, token };\n await tano.views.renderCustom(\"document\", { ...chunk, token });\n } catch (error) {\n if (token === generation) await tano.views.renderCustom(\"document\", { error: String(error), token });\n }\n });\n }\n return __toCommonJS(main_exports);\n})();\n\nawait TanoPlugin.default(tano);","ui":{"document":{"css":"#app{position:relative}.preview-loading{position:absolute;inset:0;z-index:2;overflow:hidden;box-sizing:border-box;padding:24px;background:#f1f2f4;pointer-events:none}.preview-loading[hidden]{display:none}.preview-is-loading>main{visibility:hidden}.preview-is-loading>footer{visibility:hidden}.preview-is-loading>#status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.loading-paper{position:relative;box-sizing:border-box;margin:0 auto 24px;background:#fff;box-shadow:0 2px 8px #0002;overflow:hidden}.preview-loading i{display:block;border-radius:3px;background:linear-gradient(100deg,#e9ecef 20%,#f4f5f6,#e9ecef 60%);background-size:240% 100%;animation:preview-loading-shimmer 1.8s ease-in-out infinite}.preview-loading-presentation .loading-paper{width:100%;max-width:1280px;aspect-ratio:16/9;contain:size;padding:7%}.loading-title{width:55%;height:clamp(10px,2.2vw,28px);margin-bottom:6%}.loading-slide-body{display:grid;grid-template-columns:1fr 1fr;gap:9%;height:65%}.loading-lines{display:flex;flex-direction:column;gap:clamp(5px,1.4vw,17px)}.loading-lines>i{height:clamp(4px,1vw,10px);width:100%}.loading-lines>i:nth-child(2){width:90%}.loading-lines>i:last-child{width:65%}.loading-figure{display:flex;align-items:end;justify-content:center;gap:10%;padding:10%;box-sizing:border-box;background:#f5f6f7;border-radius:4px}.loading-figure>i{width:20%;height:50%}.loading-figure>i:nth-child(2){height:85%}.loading-figure>i:nth-child(3){height:65%}.preview-loading-word .loading-paper{width:100%;max-width:794px;aspect-ratio:210/297;padding:9% 8%;display:flex;flex-direction:column;gap:5%}.preview-loading-word .loading-title{height:clamp(12px,2.4vw,24px);margin:2% 0 0;flex-shrink:0}.preview-loading-word .loading-running-head{width:25%;height:6px;margin-bottom:6%}.preview-loading-word .loading-lines{flex-shrink:0}.loading-table{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #edf0f2;border-top:1px solid #edf0f2}.loading-table>span{padding:14%;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.loading-table i{height:clamp(4px,.8vw,8px);width:70%}.preview-loading-word .loading-page-number{width:20px;height:6px;margin:auto auto 0}@keyframes preview-loading-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.preview-loading i{animation:none}}@media(max-width:600px){.preview-loading{padding:24px}.preview-loading-word .loading-paper{padding:10%}}:root{--scrollbar-size: 12px;--scrollbar-inset: 2px;--scrollbar-radius: 6px;--scrollbar-thumb: var(--control-border, #d3d2ce);--scrollbar-thumb-hover: var(--muted, #787774)}*{scrollbar-width:auto;scrollbar-color:auto}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar-thumb{min-width:24px;min-height:24px;border:var(--scrollbar-inset) solid transparent;border-radius:var(--scrollbar-radius);background:var(--scrollbar-thumb);background-clip:padding-box}*::-webkit-scrollbar-thumb:hover,*::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-button{display:none;width:0;height:0}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}}@media(forced-colors:active){*{scrollbar-color:auto}*::-webkit-scrollbar-thumb{background-color:ButtonText}}html,body,#app{margin:0;height:100%;font:14px system-ui,sans-serif;color:#24292f;background:#f1f2f4}#app{display:flex;flex-direction:column;overflow:hidden}#status{margin:0;padding:8px 16px;overflow-wrap:anywhere}main{flex:1;overflow:auto;min-height:0;padding:24px;box-sizing:border-box}#paper{width:max-content;min-width:100%}#paper .docx-wrapper{padding:24px;background:transparent}#paper section.docx{margin:0 auto 24px;box-shadow:0 2px 8px #0002}.word-legacy-page{margin:0 auto;box-shadow:0 2px 8px #0002}dialog{max-width:min(700px,85vw);max-height:75vh;border:1px solid #ddd;border-radius:8px;padding:20px}pre{white-space:pre-wrap}button{font:inherit;padding:5px 10px;border:1px solid #ddd;border-radius:5px;background:#fff;cursor:pointer}\n@import '../../../../packages/workbench/src/scrollbars.css';\n\nhtml,body,#app { margin:0; height:100%; font:14px system-ui,sans-serif; color:#24292f; background:#f1f2f4; }\n#app { display:flex; flex-direction:column; overflow:hidden; }\n#status { margin:0; padding:8px 16px; overflow-wrap:anywhere; }\nmain { flex:1; overflow:auto; min-height:0; padding:24px; box-sizing:border-box; }\n#paper { width:max-content; min-width:100%; }\n#paper .docx-wrapper { padding:24px; background:transparent; }\n#paper section.docx { margin:0 auto 24px; box-shadow:0 2px 8px #0002; }\n.word-legacy-page { margin:0 auto; box-shadow:0 2px 8px #0002; }\ndialog { max-width:min(700px,85vw); max-height:75vh; border:1px solid #ddd; border-radius:8px; padding:20px; }\npre { white-space:pre-wrap; } button { font:inherit; padding:5px 10px; border:1px solid #ddd; border-radius:5px; background:white; cursor:pointer; }\n","html":"","source":"\"use strict\";var TanoPluginView=(()=>{var ed=Object.create;var fi=Object.defineProperty;var rd=Object.getOwnPropertyDescriptor;var nd=Object.getOwnPropertyNames;var id=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var Xr=(n=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(n,{get:(t,e)=>(typeof require<\"u\"?require:t)[e]}):n)(function(n){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+n+'\" is not supported')});var Eo=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},ad=(n,t)=>{for(var e in t)fi(n,e,{get:t[e],enumerable:!0})},_s=(n,t,e,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of nd(t))!od.call(n,i)&&i!==e&&fi(n,i,{get:()=>t[i],enumerable:!(r=rd(t,i))||r.enumerable});return n};var Ms=(n,t,e)=>(e=n!=null?ed(id(n)):{},_s(t||!n||!n.__esModule?fi(e,\"default\",{value:n,enumerable:!0}):e,n)),sd=n=>_s(fi({},\"__esModule\",{value:!0}),n);var Vs=Eo((js,Io)=>{(function(n){typeof js==\"object\"&&typeof Io<\"u\"?Io.exports=n():typeof define==\"function\"&&define.amd?define([],n):(typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:this).JSZip=n()})(function(){return(function n(t,e,r){function i(s,l){if(!e[s]){if(!t[s]){var c=typeof Xr==\"function\"&&Xr;if(!l&&c)return c(s,!0);if(o)return o(s,!0);var h=new Error(\"Cannot find module '\"+s+\"'\");throw h.code=\"MODULE_NOT_FOUND\",h}var u=e[s]={exports:{}};t[s][0].call(u.exports,function(f){var d=t[s][1][f];return i(d||f)},u,u.exports,n,t,e,r)}return e[s].exports}for(var o=typeof Xr==\"function\"&&Xr,a=0;a<r.length;a++)i(r[a]);return i})({1:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=n(\"./support\"),o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";e.encode=function(a){for(var s,l,c,h,u,f,d,p=[],m=0,g=a.length,b=g,T=r.getTypeOf(a)!==\"string\";m<a.length;)b=g-m,c=T?(s=a[m++],l=m<g?a[m++]:0,m<g?a[m++]:0):(s=a.charCodeAt(m++),l=m<g?a.charCodeAt(m++):0,m<g?a.charCodeAt(m++):0),h=s>>2,u=(3&s)<<4|l>>4,f=1<b?(15&l)<<2|c>>6:64,d=2<b?63&c:64,p.push(o.charAt(h)+o.charAt(u)+o.charAt(f)+o.charAt(d));return p.join(\"\")},e.decode=function(a){var s,l,c,h,u,f,d=0,p=0,m=\"data:\";if(a.substr(0,m.length)===m)throw new Error(\"Invalid base64 input, it looks like a data url.\");var g,b=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,\"\")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&b--,a.charAt(a.length-2)===o.charAt(64)&&b--,b%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(g=i.uint8array?new Uint8Array(0|b):new Array(0|b);d<a.length;)s=o.indexOf(a.charAt(d++))<<2|(h=o.indexOf(a.charAt(d++)))>>4,l=(15&h)<<4|(u=o.indexOf(a.charAt(d++)))>>2,c=(3&u)<<6|(f=o.indexOf(a.charAt(d++))),g[p++]=s,u!==64&&(g[p++]=l),f!==64&&(g[p++]=c);return g}},{\"./support\":30,\"./utils\":32}],2:[function(n,t,e){\"use strict\";var r=n(\"./external\"),i=n(\"./stream/DataWorker\"),o=n(\"./stream/Crc32Probe\"),a=n(\"./stream/DataLengthProbe\");function s(l,c,h,u,f){this.compressedSize=l,this.uncompressedSize=c,this.crc32=h,this.compression=u,this.compressedContent=f}s.prototype={getContentWorker:function(){var l=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"data_length\")),c=this;return l.on(\"end\",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),l},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(l,c,h){return l.pipe(new o).pipe(new a(\"uncompressedSize\")).pipe(c.compressWorker(h)).pipe(new a(\"compressedSize\")).withStreamInfo(\"compression\",c)},t.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(n,t,e){\"use strict\";var r=n(\"./stream/GenericWorker\");e.STORE={magic:\"\\0\\0\",compressWorker:function(){return new r(\"STORE compression\")},uncompressWorker:function(){return new r(\"STORE decompression\")}},e.DEFLATE=n(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=(function(){for(var o,a=[],s=0;s<256;s++){o=s;for(var l=0;l<8;l++)o=1&o?3988292384^o>>>1:o>>>1;a[s]=o}return a})();t.exports=function(o,a){return o!==void 0&&o.length?r.getTypeOf(o)!==\"string\"?(function(s,l,c,h){var u=i,f=h+c;s^=-1;for(var d=h;d<f;d++)s=s>>>8^u[255&(s^l[d])];return-1^s})(0|a,o,o.length,0):(function(s,l,c,h){var u=i,f=h+c;s^=-1;for(var d=h;d<f;d++)s=s>>>8^u[255&(s^l.charCodeAt(d))];return-1^s})(0|a,o,o.length,0):0}},{\"./utils\":32}],5:[function(n,t,e){\"use strict\";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(n,t,e){\"use strict\";var r=null;r=typeof Promise<\"u\"?Promise:n(\"lie\"),t.exports={Promise:r}},{lie:37}],7:[function(n,t,e){\"use strict\";var r=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Uint32Array<\"u\",i=n(\"pako\"),o=n(\"./utils\"),a=n(\"./stream/GenericWorker\"),s=r?\"uint8array\":\"array\";function l(c,h){a.call(this,\"FlateWorker/\"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=h,this.meta={}}e.magic=\"\\b\\0\",o.inherits(l,a),l.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(s,c.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(h){c.push({data:h,meta:c.meta})}},e.compressWorker=function(c){return new l(\"Deflate\",c)},e.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(n,t,e){\"use strict\";function r(u,f){var d,p=\"\";for(d=0;d<f;d++)p+=String.fromCharCode(255&u),u>>>=8;return p}function i(u,f,d,p,m,g){var b,T,S=u.file,I=u.compression,O=g!==s.utf8encode,$=o.transformTo(\"string\",g(S.name)),k=o.transformTo(\"string\",s.utf8encode(S.name)),W=S.comment,U=o.transformTo(\"string\",g(W)),v=o.transformTo(\"string\",s.utf8encode(W)),_=k.length!==S.name.length,y=v.length!==W.length,H=\"\",nt=\"\",J=\"\",lt=S.dir,ot=S.date,et={crc32:0,compressedSize:0,uncompressedSize:0};f&&!d||(et.crc32=u.crc32,et.compressedSize=u.compressedSize,et.uncompressedSize=u.uncompressedSize);var B=0;f&&(B|=8),O||!_&&!y||(B|=2048);var z=0,st=0;lt&&(z|=16),m===\"UNIX\"?(st=798,z|=(function(ft,Ft){var Xt=ft;return ft||(Xt=Ft?16893:33204),(65535&Xt)<<16})(S.unixPermissions,lt)):(st=20,z|=(function(ft){return 63&(ft||0)})(S.dosPermissions)),b=ot.getUTCHours(),b<<=6,b|=ot.getUTCMinutes(),b<<=5,b|=ot.getUTCSeconds()/2,T=ot.getUTCFullYear()-1980,T<<=4,T|=ot.getUTCMonth()+1,T<<=5,T|=ot.getUTCDate(),_&&(nt=r(1,1)+r(l($),4)+k,H+=\"up\"+r(nt.length,2)+nt),y&&(J=r(1,1)+r(l(U),4)+v,H+=\"uc\"+r(J.length,2)+J);var dt=\"\";return dt+=`\n\\0`,dt+=r(B,2),dt+=I.magic,dt+=r(b,2),dt+=r(T,2),dt+=r(et.crc32,4),dt+=r(et.compressedSize,4),dt+=r(et.uncompressedSize,4),dt+=r($.length,2),dt+=r(H.length,2),{fileRecord:c.LOCAL_FILE_HEADER+dt+$+H,dirRecord:c.CENTRAL_FILE_HEADER+r(st,2)+dt+r(U.length,2)+\"\\0\\0\\0\\0\"+r(z,4)+r(p,4)+$+H+U}}var o=n(\"../utils\"),a=n(\"../stream/GenericWorker\"),s=n(\"../utf8\"),l=n(\"../crc32\"),c=n(\"../signature\");function h(u,f,d,p){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=f,this.zipPlatform=d,this.encodeFileName=p,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,a),h.prototype.push=function(u){var f=u.meta.percent||0,d=this.entriesCount,p=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,a.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:d?(f+100*(d-p-1))/d:100}}))},h.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var f=this.streamFiles&&!u.file.dir;if(f){var d=i(u,f,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(u){this.accumulate=!1;var f=this.streamFiles&&!u.file.dir,d=i(u,f,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.dirRecord),f)this.push({data:(function(p){return c.DATA_DESCRIPTOR+r(p.crc32,4)+r(p.compressedSize,4)+r(p.uncompressedSize,4)})(u),meta:{percent:100}});else for(this.push({data:d.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var u=this.bytesWritten,f=0;f<this.dirRecords.length;f++)this.push({data:this.dirRecords[f],meta:{percent:100}});var d=this.bytesWritten-u,p=(function(m,g,b,T,S){var I=o.transformTo(\"string\",S(T));return c.CENTRAL_DIRECTORY_END+\"\\0\\0\\0\\0\"+r(m,2)+r(m,2)+r(g,4)+r(b,4)+r(I.length,2)+I})(this.dirRecords.length,d,u,this.zipComment,this.encodeFileName);this.push({data:p,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(u){this._sources.push(u);var f=this;return u.on(\"data\",function(d){f.processChunk(d)}),u.on(\"end\",function(){f.closedSource(f.previous.streamInfo),f._sources.length?f.prepareNextSource():f.end()}),u.on(\"error\",function(d){f.error(d)}),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(u){var f=this._sources;if(!a.prototype.error.call(this,u))return!1;for(var d=0;d<f.length;d++)try{f[d].error(u)}catch{}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var u=this._sources,f=0;f<u.length;f++)u[f].lock()},t.exports=h},{\"../crc32\":4,\"../signature\":23,\"../stream/GenericWorker\":28,\"../utf8\":31,\"../utils\":32}],9:[function(n,t,e){\"use strict\";var r=n(\"../compressions\"),i=n(\"./ZipFileWorker\");e.generateWorker=function(o,a,s){var l=new i(a.streamFiles,s,a.platform,a.encodeFileName),c=0;try{o.forEach(function(h,u){c++;var f=(function(g,b){var T=g||b,S=r[T];if(!S)throw new Error(T+\" is not a valid compression method !\");return S})(u.options.compression,a.compression),d=u.options.compressionOptions||a.compressionOptions||{},p=u.dir,m=u.date;u._compressWorker(f,d).withStreamInfo(\"file\",{name:h,dir:p,date:m,comment:u.comment||\"\",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(l)}),l.entriesCount=c}catch(h){l.error(h)}return l}},{\"../compressions\":3,\"./ZipFileWorker\":8}],10:[function(n,t,e){\"use strict\";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");this.files=Object.create(null),this.comment=null,this.root=\"\",this.clone=function(){var i=new r;for(var o in this)typeof this[o]!=\"function\"&&(i[o]=this[o]);return i}}(r.prototype=n(\"./object\")).loadAsync=n(\"./load\"),r.support=n(\"./support\"),r.defaults=n(\"./defaults\"),r.version=\"3.10.2\",r.loadAsync=function(i,o){return new r().loadAsync(i,o)},r.external=n(\"./external\"),t.exports=r},{\"./defaults\":5,\"./external\":6,\"./load\":11,\"./object\":15,\"./support\":30}],11:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=n(\"./external\"),o=n(\"./utf8\"),a=n(\"./zipEntries\"),s=n(\"./stream/Crc32Probe\"),l=n(\"./nodejsUtils\");function c(h){return new i.Promise(function(u,f){var d=h.decompressed.getContentWorker().pipe(new s);d.on(\"error\",function(p){f(p)}).on(\"end\",function(){d.streamInfo.crc32!==h.decompressed.crc32?f(new Error(\"Corrupted zip : CRC32 mismatch\")):u()}).resume()})}t.exports=function(h,u){var f=this;return u=r.extend(u||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(h)?i.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\")):r.prepareContent(\"the loaded zip file\",h,!0,u.optimizedBinaryString,u.base64).then(function(d){var p=new a(u);return p.load(d),p}).then(function(d){var p=[i.Promise.resolve(d)],m=d.files;if(u.checkCRC32)for(var g=0;g<m.length;g++)p.push(c(m[g]));return i.Promise.all(p)}).then(function(d){for(var p=d.shift(),m=p.files,g=0;g<m.length;g++){var b=m[g],T=b.fileNameStr,S=r.resolve(b.fileNameStr);f.file(S,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:u.createFolders}),b.dir||(f.file(S).unsafeOriginalName=T)}return p.zipComment.length&&(f.comment=p.zipComment),f})}},{\"./external\":6,\"./nodejsUtils\":14,\"./stream/Crc32Probe\":25,\"./utf8\":31,\"./utils\":32,\"./zipEntries\":33}],12:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"../stream/GenericWorker\");function o(a,s){i.call(this,\"Nodejs stream input adapter for \"+a),this._upstreamEnded=!1,this._bindStream(s)}r.inherits(o,i),o.prototype._bindStream=function(a){var s=this;(this._stream=a).pause(),a.on(\"data\",function(l){s.push({data:l,meta:{percent:0}})}).on(\"error\",function(l){s.isPaused?this.generatedError=l:s.error(l)}).on(\"end\",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{\"../stream/GenericWorker\":28,\"../utils\":32}],13:[function(n,t,e){\"use strict\";var r=n(\"readable-stream\").Readable;function i(o,a,s){r.call(this,a),this._helper=o;var l=this;o.on(\"data\",function(c,h){l.push(c)||l._helper.pause(),s&&s(h)}).on(\"error\",function(c){l.emit(\"error\",c)}).on(\"end\",function(){l.push(null)})}n(\"../utils\").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{\"../utils\":32,\"readable-stream\":16}],14:[function(n,t,e){\"use strict\";t.exports={isNode:typeof Buffer<\"u\",newBufferFrom:function(r,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,i);if(typeof r==\"number\")throw new Error('The \"data\" argument must not be a number');return new Buffer(r,i)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var i=new Buffer(r);return i.fill(0),i},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on==\"function\"&&typeof r.pause==\"function\"&&typeof r.resume==\"function\"}}},{}],15:[function(n,t,e){\"use strict\";function r(S,I,O){var $,k=o.getTypeOf(I),W=o.extend(O||{},l);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions==\"string\"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(S=m(S)),W.createFolders&&($=p(S))&&g.call(this,$,!0);var U=k===\"string\"&&W.binary===!1&&W.base64===!1;O&&O.binary!==void 0||(W.binary=!U),(I instanceof c&&I.uncompressedSize===0||W.dir||!I||I.length===0)&&(W.base64=!1,W.binary=!0,I=\"\",W.compression=\"STORE\",k=\"string\");var v=null;v=I instanceof c||I instanceof a?I:f.isNode&&f.isStream(I)?new d(S,I):o.prepareContent(S,I,W.binary,W.optimizedBinaryString,W.base64);var _=new h(S,v,W);this.files[S]=_}var i=n(\"./utf8\"),o=n(\"./utils\"),a=n(\"./stream/GenericWorker\"),s=n(\"./stream/StreamHelper\"),l=n(\"./defaults\"),c=n(\"./compressedObject\"),h=n(\"./zipObject\"),u=n(\"./generate\"),f=n(\"./nodejsUtils\"),d=n(\"./nodejs/NodejsStreamInputAdapter\"),p=function(S){S.slice(-1)===\"/\"&&(S=S.substring(0,S.length-1));var I=S.lastIndexOf(\"/\");return 0<I?S.substring(0,I):\"\"},m=function(S){return S.slice(-1)!==\"/\"&&(S+=\"/\"),S},g=function(S,I){return I=I!==void 0?I:l.createFolders,S=m(S),this.files[S]||r.call(this,S,null,{dir:!0,createFolders:I}),this.files[S]};function b(S){return Object.prototype.toString.call(S)===\"[object RegExp]\"}var T={load:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},forEach:function(S){var I,O,$;for(I in this.files)$=this.files[I],(O=I.slice(this.root.length,I.length))&&I.slice(0,this.root.length)===this.root&&S(O,$)},filter:function(S){var I=[];return this.forEach(function(O,$){S(O,$)&&I.push($)}),I},file:function(S,I,O){if(arguments.length!==1)return S=this.root+S,r.call(this,S,I,O),this;if(b(S)){var $=S;return this.filter(function(W,U){return!U.dir&&$.test(W)})}var k=this.files[this.root+S];return k&&!k.dir?k:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(k,W){return W.dir&&S.test(k)});var I=this.root+S,O=g.call(this,I),$=this.clone();return $.root=O.name,$},remove:function(S){S=this.root+S;var I=this.files[S];if(I||(S.slice(-1)!==\"/\"&&(S+=\"/\"),I=this.files[S]),I&&!I.dir)delete this.files[S];else for(var O=this.filter(function(k,W){return W.name.slice(0,S.length)===S}),$=0;$<O.length;$++)delete this.files[O[$].name];return this},generate:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},generateInternalStream:function(S){var I,O={};try{if((O=o.extend(S||{},{streamFiles:!1,compression:\"STORE\",compressionOptions:null,type:\"\",platform:\"DOS\",comment:null,mimeType:\"application/zip\",encodeFileName:i.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type===\"binarystring\"&&(O.type=\"string\"),!O.type)throw new Error(\"No output type specified.\");o.checkSupport(O.type),O.platform!==\"darwin\"&&O.platform!==\"freebsd\"&&O.platform!==\"linux\"&&O.platform!==\"sunos\"||(O.platform=\"UNIX\"),O.platform===\"win32\"&&(O.platform=\"DOS\");var $=O.comment||this.comment||\"\";I=u.generateWorker(this,O,$)}catch(k){(I=new a(\"error\")).error(k)}return new s(I,O.type||\"string\",O.mimeType)},generateAsync:function(S,I){return this.generateInternalStream(S).accumulate(I)},generateNodeStream:function(S,I){return(S=S||{}).type||(S.type=\"nodebuffer\"),this.generateInternalStream(S).toNodejsStream(I)}};t.exports=T},{\"./compressedObject\":2,\"./defaults\":5,\"./generate\":9,\"./nodejs/NodejsStreamInputAdapter\":12,\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31,\"./utils\":32,\"./zipObject\":35}],16:[function(n,t,e){\"use strict\";t.exports=n(\"stream\")},{stream:void 0}],17:[function(n,t,e){\"use strict\";var r=n(\"./DataReader\");function i(o){r.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n(\"../utils\").inherits(i,r),i.prototype.byteAt=function(o){return this.data[this.zero+o]},i.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===a&&this.data[h+1]===s&&this.data[h+2]===l&&this.data[h+3]===c)return h-this.zero;return-1},i.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),h=this.readData(4);return a===h[0]&&s===h[1]&&l===h[2]&&c===h[3]},i.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./DataReader\":18}],18:[function(n,t,e){\"use strict\";var r=n(\"../utils\");function i(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error(\"End of data reached (data length = \"+this.length+\", asked index = \"+o+\"). Corrupted zip ?\")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,s=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)s=(s<<8)+this.byteAt(a);return this.index+=o,s},readString:function(o){return r.transformTo(\"string\",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},t.exports=i},{\"../utils\":32}],19:[function(n,t,e){\"use strict\";var r=n(\"./Uint8ArrayReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(n,t,e){\"use strict\";var r=n(\"./DataReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},i.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},i.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},i.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./DataReader\":18}],21:[function(n,t,e){\"use strict\";var r=n(\"./ArrayReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"../support\"),o=n(\"./ArrayReader\"),a=n(\"./StringReader\"),s=n(\"./NodeBufferReader\"),l=n(\"./Uint8ArrayReader\");t.exports=function(c){var h=r.getTypeOf(c);return r.checkSupport(h),h!==\"string\"||i.uint8array?h===\"nodebuffer\"?new s(c):i.uint8array?new l(r.transformTo(\"uint8array\",c)):new o(r.transformTo(\"array\",c)):new a(c)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(n,t,e){\"use strict\";e.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",e.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",e.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\\x07\",e.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",e.DATA_DESCRIPTOR=\"PK\\x07\\b\"},{}],24:[function(n,t,e){\"use strict\";var r=n(\"./GenericWorker\"),i=n(\"../utils\");function o(a){r.call(this,\"ConvertWorker to \"+a),this.destType=a}i.inherits(o,r),o.prototype.processChunk=function(a){this.push({data:i.transformTo(this.destType,a.data),meta:a.meta})},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(n,t,e){\"use strict\";var r=n(\"./GenericWorker\"),i=n(\"../crc32\");function o(){r.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}n(\"../utils\").inherits(o,r),o.prototype.processChunk=function(a){this.streamInfo.crc32=i(a.data,this.streamInfo.crc32||0),this.push(a)},t.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./GenericWorker\");function o(a){i.call(this,\"DataLengthProbe for \"+a),this.propName=a,this.withStreamInfo(a,0)}r.inherits(o,i),o.prototype.processChunk=function(a){if(a){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+a.data.length}i.prototype.processChunk.call(this,a)},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./GenericWorker\");function o(a){i.call(this,\"DataWorker\");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,a.then(function(l){s.dataIsReady=!0,s.data=l,s.max=l&&l.length||0,s.type=r.getTypeOf(l),s.isPaused||s._tickAndRepeat()},function(l){s.error(l)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":a=this.data.substring(this.index,s);break;case\"uint8array\":a=this.data.subarray(this.index,s);break;case\"array\":case\"nodebuffer\":a=this.data.slice(this.index,s)}return this.index=s,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(n,t,e){\"use strict\";function r(i){this.name=i||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(i){this.emit(\"data\",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit(\"error\",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit(\"error\",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,o){return this._listeners[i].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,o){if(this._listeners[i])for(var a=0;a<this._listeners[i].length;a++)this._listeners[i][a].call(this,o)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var o=this;return i.on(\"data\",function(a){o.processChunk(a)}),i.on(\"end\",function(){o.end()}),i.on(\"error\",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,o){return this.extraStreamInfo[i]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i=\"Worker \"+this.name;return this.previous?this.previous+\" -> \"+i:i}},t.exports=r},{}],29:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./ConvertWorker\"),o=n(\"./GenericWorker\"),a=n(\"../base64\"),s=n(\"../support\"),l=n(\"../external\"),c=null;if(s.nodestream)try{c=n(\"../nodejs/NodejsStreamOutputAdapter\")}catch{}function h(f,d){return new l.Promise(function(p,m){var g=[],b=f._internalType,T=f._outputType,S=f._mimeType;f.on(\"data\",function(I,O){g.push(I),d&&d(O)}).on(\"error\",function(I){g=[],m(I)}).on(\"end\",function(){try{var I=(function(O,$,k){switch(O){case\"blob\":return r.newBlob(r.transformTo(\"arraybuffer\",$),k);case\"base64\":return a.encode($);default:return r.transformTo(O,$)}})(T,(function(O,$){var k,W=0,U=null,v=0;for(k=0;k<$.length;k++)v+=$[k].length;switch(O){case\"string\":return $.join(\"\");case\"array\":return Array.prototype.concat.apply([],$);case\"uint8array\":for(U=new Uint8Array(v),k=0;k<$.length;k++)U.set($[k],W),W+=$[k].length;return U;case\"nodebuffer\":return Buffer.concat($);default:throw new Error(\"concat : unsupported type '\"+O+\"'\")}})(b,g),S);p(I)}catch(O){m(O)}g=[]}).resume()})}function u(f,d,p){var m=d;switch(d){case\"blob\":case\"arraybuffer\":m=\"uint8array\";break;case\"base64\":m=\"string\"}try{this._internalType=m,this._outputType=d,this._mimeType=p,r.checkSupport(m),this._worker=f.pipe(new i(m)),f.lock()}catch(g){this._worker=new o(\"error\"),this._worker.error(g)}}u.prototype={accumulate:function(f){return h(this,f)},on:function(f,d){var p=this;return f===\"data\"?this._worker.on(f,function(m){d.call(p,m.data,m.meta)}):this._worker.on(f,function(){r.delay(d,arguments,p)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(f){if(r.checkSupport(\"nodestream\"),this._outputType!==\"nodebuffer\")throw new Error(this._outputType+\" is not supported by this method\");return new c(this,{objectMode:this._outputType!==\"nodebuffer\"},f)}},t.exports=u},{\"../base64\":1,\"../external\":6,\"../nodejs/NodejsStreamOutputAdapter\":13,\"../support\":30,\"../utils\":32,\"./ConvertWorker\":24,\"./GenericWorker\":28}],30:[function(n,t,e){\"use strict\";if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",e.nodebuffer=typeof Buffer<\"u\",e.uint8array=typeof Uint8Array<\"u\",typeof ArrayBuffer>\"u\")e.blob=!1;else{var r=new ArrayBuffer(0);try{e.blob=new Blob([r],{type:\"application/zip\"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),e.blob=i.getBlob(\"application/zip\").size===0}catch{e.blob=!1}}}try{e.nodestream=!!n(\"readable-stream\").Readable}catch{e.nodestream=!1}},{\"readable-stream\":16}],31:[function(n,t,e){\"use strict\";for(var r=n(\"./utils\"),i=n(\"./support\"),o=n(\"./nodejsUtils\"),a=n(\"./stream/GenericWorker\"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;s[254]=s[254]=1;function c(){a.call(this,\"utf-8 decode\"),this.leftOver=null}function h(){a.call(this,\"utf-8 encode\")}e.utf8encode=function(u){return i.nodebuffer?o.newBufferFrom(u,\"utf-8\"):(function(f){var d,p,m,g,b,T=f.length,S=0;for(g=0;g<T;g++)(64512&(p=f.charCodeAt(g)))==55296&&g+1<T&&(64512&(m=f.charCodeAt(g+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),g++),S+=p<128?1:p<2048?2:p<65536?3:4;for(d=i.uint8array?new Uint8Array(S):new Array(S),g=b=0;b<S;g++)(64512&(p=f.charCodeAt(g)))==55296&&g+1<T&&(64512&(m=f.charCodeAt(g+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),g++),p<128?d[b++]=p:(p<2048?d[b++]=192|p>>>6:(p<65536?d[b++]=224|p>>>12:(d[b++]=240|p>>>18,d[b++]=128|p>>>12&63),d[b++]=128|p>>>6&63),d[b++]=128|63&p);return d})(u)},e.utf8decode=function(u){return i.nodebuffer?r.transformTo(\"nodebuffer\",u).toString(\"utf-8\"):(function(f){var d,p,m,g,b=f.length,T=new Array(2*b);for(d=p=0;d<b;)if((m=f[d++])<128)T[p++]=m;else if(4<(g=s[m]))T[p++]=65533,d+=g-1;else{for(m&=g===2?31:g===3?15:7;1<g&&d<b;)m=m<<6|63&f[d++],g--;1<g?T[p++]=65533:m<65536?T[p++]=m:(m-=65536,T[p++]=55296|m>>10&1023,T[p++]=56320|1023&m)}return T.length!==p&&(T.subarray?T=T.subarray(0,p):T.length=p),r.applyFromCharCode(T)})(u=r.transformTo(i.uint8array?\"uint8array\":\"array\",u))},r.inherits(c,a),c.prototype.processChunk=function(u){var f=r.transformTo(i.uint8array?\"uint8array\":\"array\",u.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var d=f;(f=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),f.set(d,this.leftOver.length)}else f=this.leftOver.concat(f);this.leftOver=null}var p=(function(g,b){var T;for((b=b||g.length)>g.length&&(b=g.length),T=b-1;0<=T&&(192&g[T])==128;)T--;return T<0||T===0?b:T+s[g[T]]>b?T:b})(f),m=f;p!==f.length&&(i.uint8array?(m=f.subarray(0,p),this.leftOver=f.subarray(p,f.length)):(m=f.slice(0,p),this.leftOver=f.slice(p,f.length))),this.push({data:e.utf8decode(m),meta:u.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=c,r.inherits(h,a),h.prototype.processChunk=function(u){this.push({data:e.utf8encode(u.data),meta:u.meta})},e.Utf8EncodeWorker=h},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(n,t,e){\"use strict\";var r=n(\"./support\"),i=n(\"./base64\"),o=n(\"./nodejsUtils\"),a=n(\"./external\");function s(d){return d}function l(d,p){for(var m=0;m<d.length;++m)p[m]=255&d.charCodeAt(m);return p}n(\"setimmediate\"),e.newBlob=function(d,p){e.checkSupport(\"blob\");try{return new Blob([d],{type:p})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(d),m.getBlob(p)}catch{throw new Error(\"Bug : can't construct the Blob.\")}}};var c={stringifyByChunk:function(d,p,m){var g=[],b=0,T=d.length;if(T<=m)return String.fromCharCode.apply(null,d);for(;b<T;)p===\"array\"||p===\"nodebuffer\"?g.push(String.fromCharCode.apply(null,d.slice(b,Math.min(b+m,T)))):g.push(String.fromCharCode.apply(null,d.subarray(b,Math.min(b+m,T)))),b+=m;return g.join(\"\")},stringifyByChar:function(d){for(var p=\"\",m=0;m<d.length;m++)p+=String.fromCharCode(d[m]);return p},applyCanBeUsed:{uint8array:(function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}})()}};function h(d){var p=65536,m=e.getTypeOf(d),g=!0;if(m===\"uint8array\"?g=c.applyCanBeUsed.uint8array:m===\"nodebuffer\"&&(g=c.applyCanBeUsed.nodebuffer),g)for(;1<p;)try{return c.stringifyByChunk(d,m,p)}catch{p=Math.floor(p/2)}return c.stringifyByChar(d)}function u(d,p){for(var m=0;m<d.length;m++)p[m]=d[m];return p}e.applyFromCharCode=h;var f={};f.string={string:s,array:function(d){return l(d,new Array(d.length))},arraybuffer:function(d){return f.string.uint8array(d).buffer},uint8array:function(d){return l(d,new Uint8Array(d.length))},nodebuffer:function(d){return l(d,o.allocBuffer(d.length))}},f.array={string:h,array:s,arraybuffer:function(d){return new Uint8Array(d).buffer},uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return o.newBufferFrom(d)}},f.arraybuffer={string:function(d){return h(new Uint8Array(d))},array:function(d){return u(new Uint8Array(d),new Array(d.byteLength))},arraybuffer:s,uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return o.newBufferFrom(new Uint8Array(d))}},f.uint8array={string:h,array:function(d){return u(d,new Array(d.length))},arraybuffer:function(d){return d.buffer},uint8array:s,nodebuffer:function(d){return o.newBufferFrom(d)}},f.nodebuffer={string:h,array:function(d){return u(d,new Array(d.length))},arraybuffer:function(d){return f.nodebuffer.uint8array(d).buffer},uint8array:function(d){return u(d,new Uint8Array(d.length))},nodebuffer:s},e.transformTo=function(d,p){if(p=p||\"\",!d)return p;e.checkSupport(d);var m=e.getTypeOf(p);return f[m][d](p)},e.resolve=function(d){for(var p=d.split(\"/\"),m=[],g=0;g<p.length;g++){var b=p[g];b===\".\"||b===\"\"&&g!==0&&g!==p.length-1||(b===\"..\"?m.pop():m.push(b))}return m.join(\"/\")},e.getTypeOf=function(d){if(typeof d==\"string\")return\"string\";var p=Object.prototype.toString.call(d);return p===\"[object Array]\"?\"array\":r.nodebuffer&&o.isBuffer(d)?\"nodebuffer\":r.uint8array&&p===\"[object Uint8Array]\"?\"uint8array\":r.arraybuffer&&p===\"[object ArrayBuffer]\"?\"arraybuffer\":void 0},e.checkSupport=function(d){if(!r[d.toLowerCase()])throw new Error(d+\" is not supported by this platform\")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(d){var p,m,g=\"\";for(m=0;m<(d||\"\").length;m++)g+=\"\\\\x\"+((p=d.charCodeAt(m))<16?\"0\":\"\")+p.toString(16).toUpperCase();return g},e.delay=function(d,p,m){setImmediate(function(){d.apply(m||null,p||[])})},e.inherits=function(d,p){function m(){}m.prototype=p.prototype,d.prototype=new m},e.extend=function(){var d,p,m={};for(d=0;d<arguments.length;d++)for(p in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],p)&&m[p]===void 0&&(m[p]=arguments[d][p]);return m},e.prepareContent=function(d,p,m,g,b){return a.Promise.resolve(p).then(function(T){return r.blob&&(T instanceof Blob||[\"[object File]\",\"[object Blob]\"].indexOf(Object.prototype.toString.call(T))!==-1)?Blob.prototype.arrayBuffer!==void 0?T.arrayBuffer():typeof FileReader<\"u\"?new a.Promise(function(S,I){var O=new FileReader;O.onload=function($){S($.target.result)},O.onerror=function($){I($.target.error)},O.readAsArrayBuffer(T)}):a.Promise.reject(new Error(d+\" is a Blob, but we have no way of reading it.\")):T}).then(function(T){var S=e.getTypeOf(T);return S?(S===\"arraybuffer\"?T=e.transformTo(\"uint8array\",T):S===\"string\"&&(b?T=i.decode(T):m&&g!==!0&&(T=(function(I){return l(I,r.uint8array?new Uint8Array(I.length):new Array(I.length))})(T))),T):a.Promise.reject(new Error(\"Can't read the data of '\"+d+\"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?\"))})}},{\"./base64\":1,\"./external\":6,\"./nodejsUtils\":14,\"./support\":30,setimmediate:54}],33:[function(n,t,e){\"use strict\";var r=n(\"./reader/readerFor\"),i=n(\"./utils\"),o=n(\"./signature\"),a=n(\"./zipEntry\"),s=n(\"./support\");function l(c){this.files=[],this.loadOptions=c}l.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error(\"Corrupted zip or bug: unexpected signature (\"+i.pretty(h)+\", expected \"+i.pretty(c)+\")\")}},isSignature:function(c,h){var u=this.reader.index;this.reader.setIndex(c);var f=this.reader.readString(4)===h;return this.reader.setIndex(u),f},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),h=s.uint8array?\"uint8array\":\"array\",u=i.transformTo(h,c);this.zipComment=this.loadOptions.decodeFileName(u)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,h,u,f=this.zip64EndOfCentralSize-44;0<f;)c=this.reader.readInt(2),h=this.reader.readInt(4),u=this.reader.readData(h),this.zip64ExtensibleData[c]={id:c,length:h,value:u}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error(\"Multi-volumes zip are not supported\")},readLocalFiles:function(){var c,h;for(c=0;c<this.files.length;c++)h=this.files[c],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(c=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error(\"Corrupted zip or bug: expected \"+this.centralDirRecords+\" records in central dir, got \"+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error(\"Corrupted zip: can't find end of central directory\"):new Error(\"Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html\");this.reader.setIndex(c);var h=c;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory locator\");if(this.reader.setIndex(c),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory\");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var u=this.centralDirOffset+this.centralDirSize;this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize);var f=h-u;if(0<f)this.isSignature(h,o.CENTRAL_FILE_HEADER)||(this.reader.zero=f);else if(f<0)throw new Error(\"Corrupted zip: missing \"+Math.abs(f)+\" bytes.\")},prepareReader:function(c){this.reader=r(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{\"./reader/readerFor\":22,\"./signature\":23,\"./support\":30,\"./utils\":32,\"./zipEntry\":34}],34:[function(n,t,e){\"use strict\";var r=n(\"./reader/readerFor\"),i=n(\"./utils\"),o=n(\"./compressedObject\"),a=n(\"./crc32\"),s=n(\"./utf8\"),l=n(\"./compressions\"),c=n(\"./support\");function h(u,f){this.options=u,this.loadOptions=f}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(u){var f,d;if(u.skip(22),this.fileNameLength=u.readInt(2),d=u.readInt(2),this.fileName=u.readData(this.fileNameLength),u.skip(d),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error(\"Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)\");if((f=(function(p){for(var m in l)if(Object.prototype.hasOwnProperty.call(l,m)&&l[m].magic===p)return l[m];return null})(this.compressionMethod))===null)throw new Error(\"Corrupted zip : compression \"+i.pretty(this.compressionMethod)+\" unknown (inner file : \"+i.transformTo(\"string\",this.fileName)+\")\");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,f,u.readData(this.compressedSize))},readCentralPart:function(u){this.versionMadeBy=u.readInt(2),u.skip(2),this.bitFlag=u.readInt(2),this.compressionMethod=u.readString(2),this.date=u.readDate(),this.crc32=u.readInt(4),this.compressedSize=u.readInt(4),this.uncompressedSize=u.readInt(4);var f=u.readInt(2);if(this.extraFieldsLength=u.readInt(2),this.fileCommentLength=u.readInt(2),this.diskNumberStart=u.readInt(2),this.internalFileAttributes=u.readInt(2),this.externalFileAttributes=u.readInt(4),this.localHeaderOffset=u.readInt(4),this.isEncrypted())throw new Error(\"Encrypted zip are not supported\");u.skip(f),this.readExtraFields(u),this.parseZIP64ExtraField(u),this.fileComment=u.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var u=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==\"/\"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var f,d,p,m=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4<m;)f=u.readInt(2),d=u.readInt(2),p=u.readData(d),this.extraFields[f]={id:f,length:d,value:p};u.setIndex(m)},handleUTF8:function(){var u=c.uint8array?\"uint8array\":\"array\";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var f=this.findExtraFieldUnicodePath();if(f!==null)this.fileNameStr=f;else{var d=i.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(d)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var m=i.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var f=r(u.value);return f.readInt(1)!==1||a(this.fileName)!==f.readInt(4)?null:s.utf8decode(f.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var f=r(u.value);return f.readInt(1)!==1||a(this.fileComment)!==f.readInt(4)?null:s.utf8decode(f.readData(u.length-5))}return null}},t.exports=h},{\"./compressedObject\":2,\"./compressions\":3,\"./crc32\":4,\"./reader/readerFor\":22,\"./support\":30,\"./utf8\":31,\"./utils\":32}],35:[function(n,t,e){\"use strict\";function r(f,d,p){this.name=f,this.dir=p.dir,this.date=p.date,this.comment=p.comment,this.unixPermissions=p.unixPermissions,this.dosPermissions=p.dosPermissions,this._data=d,this._dataBinary=p.binary,this.options={compression:p.compression,compressionOptions:p.compressionOptions}}var i=n(\"./stream/StreamHelper\"),o=n(\"./stream/DataWorker\"),a=n(\"./utf8\"),s=n(\"./compressedObject\"),l=n(\"./stream/GenericWorker\");r.prototype={internalStream:function(f){var d=null,p=\"string\";try{if(!f)throw new Error(\"No output type specified.\");var m=(p=f.toLowerCase())===\"string\"||p===\"text\";p!==\"binarystring\"&&p!==\"text\"||(p=\"string\"),d=this._decompressWorker();var g=!this._dataBinary;g&&!m&&(d=d.pipe(new a.Utf8EncodeWorker)),!g&&m&&(d=d.pipe(new a.Utf8DecodeWorker))}catch(b){(d=new l(\"error\")).error(b)}return new i(d,p,\"\")},async:function(f,d){return this.internalStream(f).accumulate(d)},nodeStream:function(f,d){return this.internalStream(f||\"nodebuffer\").toNodejsStream(d)},_compressWorker:function(f,d){if(this._data instanceof s&&this._data.compression.magic===f.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(p,f,d)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=[\"asText\",\"asBinary\",\"asNodeBuffer\",\"asUint8Array\",\"asArrayBuffer\"],h=function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},u=0;u<c.length;u++)r.prototype[c[u]]=h;t.exports=r},{\"./compressedObject\":2,\"./stream/DataWorker\":27,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31}],36:[function(n,t,e){(function(r){\"use strict\";var i,o,a=r.MutationObserver||r.WebKitMutationObserver;if(a){var s=0,l=new a(f),c=r.document.createTextNode(\"\");l.observe(c,{characterData:!0}),i=function(){c.data=s=++s%2}}else if(r.setImmediate||r.MessageChannel===void 0)i=\"document\"in r&&\"onreadystatechange\"in r.document.createElement(\"script\")?function(){var d=r.document.createElement(\"script\");d.onreadystatechange=function(){f(),d.onreadystatechange=null,d.parentNode.removeChild(d),d=null},r.document.documentElement.appendChild(d)}:function(){setTimeout(f,0)};else{var h=new r.MessageChannel;h.port1.onmessage=f,i=function(){h.port2.postMessage(0)}}var u=[];function f(){var d,p;o=!0;for(var m=u.length;m;){for(p=u,u=[],d=-1;++d<m;)p[d]();m=u.length}o=!1}t.exports=function(d){u.push(d)!==1||o||i()}}).call(this,typeof global<\"u\"?global:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}],37:[function(n,t,e){\"use strict\";var r=n(\"immediate\");function i(){}var o={},a=[\"REJECTED\"],s=[\"FULFILLED\"],l=[\"PENDING\"];function c(m){if(typeof m!=\"function\")throw new TypeError(\"resolver must be a function\");this.state=l,this.queue=[],this.outcome=void 0,m!==i&&d(this,m)}function h(m,g,b){this.promise=m,typeof g==\"function\"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof b==\"function\"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function u(m,g,b){r(function(){var T;try{T=g(b)}catch(S){return o.reject(m,S)}T===m?o.reject(m,new TypeError(\"Cannot resolve promise with itself\")):o.resolve(m,T)})}function f(m){var g=m&&m.then;if(m&&(typeof m==\"object\"||typeof m==\"function\")&&typeof g==\"function\")return function(){g.apply(m,arguments)}}function d(m,g){var b=!1;function T(O){b||(b=!0,o.reject(m,O))}function S(O){b||(b=!0,o.resolve(m,O))}var I=p(function(){g(S,T)});I.status===\"error\"&&T(I.value)}function p(m,g){var b={};try{b.value=m(g),b.status=\"success\"}catch(T){b.status=\"error\",b.value=T}return b}(t.exports=c).prototype.finally=function(m){if(typeof m!=\"function\")return this;var g=this.constructor;return this.then(function(b){return g.resolve(m()).then(function(){return b})},function(b){return g.resolve(m()).then(function(){throw b})})},c.prototype.catch=function(m){return this.then(null,m)},c.prototype.then=function(m,g){if(typeof m!=\"function\"&&this.state===s||typeof g!=\"function\"&&this.state===a)return this;var b=new this.constructor(i);return this.state!==l?u(b,this.state===s?m:g,this.outcome):this.queue.push(new h(b,m,g)),b},h.prototype.callFulfilled=function(m){o.resolve(this.promise,m)},h.prototype.otherCallFulfilled=function(m){u(this.promise,this.onFulfilled,m)},h.prototype.callRejected=function(m){o.reject(this.promise,m)},h.prototype.otherCallRejected=function(m){u(this.promise,this.onRejected,m)},o.resolve=function(m,g){var b=p(f,g);if(b.status===\"error\")return o.reject(m,b.value);var T=b.value;if(T)d(m,T);else{m.state=s,m.outcome=g;for(var S=-1,I=m.queue.length;++S<I;)m.queue[S].callFulfilled(g)}return m},o.reject=function(m,g){m.state=a,m.outcome=g;for(var b=-1,T=m.queue.length;++b<T;)m.queue[b].callRejected(g);return m},c.resolve=function(m){return m instanceof this?m:o.resolve(new this(i),m)},c.reject=function(m){var g=new this(i);return o.reject(g,m)},c.all=function(m){var g=this;if(Object.prototype.toString.call(m)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var b=m.length,T=!1;if(!b)return this.resolve([]);for(var S=new Array(b),I=0,O=-1,$=new this(i);++O<b;)k(m[O],O);return $;function k(W,U){g.resolve(W).then(function(v){S[U]=v,++I!==b||T||(T=!0,o.resolve($,S))},function(v){T||(T=!0,o.reject($,v))})}},c.race=function(m){var g=this;if(Object.prototype.toString.call(m)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var b=m.length,T=!1;if(!b)return this.resolve([]);for(var S=-1,I=new this(i);++S<b;)O=m[S],g.resolve(O).then(function($){T||(T=!0,o.resolve(I,$))},function($){T||(T=!0,o.reject(I,$))});var O;return I}},{immediate:36}],38:[function(n,t,e){\"use strict\";var r={};(0,n(\"./lib/utils/common\").assign)(r,n(\"./lib/deflate\"),n(\"./lib/inflate\"),n(\"./lib/zlib/constants\")),t.exports=r},{\"./lib/deflate\":39,\"./lib/inflate\":40,\"./lib/utils/common\":41,\"./lib/zlib/constants\":44}],39:[function(n,t,e){\"use strict\";var r=n(\"./zlib/deflate\"),i=n(\"./utils/common\"),o=n(\"./utils/strings\"),a=n(\"./zlib/messages\"),s=n(\"./zlib/zstream\"),l=Object.prototype.toString,c=0,h=-1,u=0,f=8;function d(m){if(!(this instanceof d))return new d(m);this.options=i.assign({level:h,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:\"\"},m||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var b=r.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(b!==c)throw new Error(a[b]);if(g.header&&r.deflateSetHeader(this.strm,g.header),g.dictionary){var T;if(T=typeof g.dictionary==\"string\"?o.string2buf(g.dictionary):l.call(g.dictionary)===\"[object ArrayBuffer]\"?new Uint8Array(g.dictionary):g.dictionary,(b=r.deflateSetDictionary(this.strm,T))!==c)throw new Error(a[b]);this._dict_set=!0}}function p(m,g){var b=new d(g);if(b.push(m,!0),b.err)throw b.msg||a[b.err];return b.result}d.prototype.push=function(m,g){var b,T,S=this.strm,I=this.options.chunkSize;if(this.ended)return!1;T=g===~~g?g:g===!0?4:0,typeof m==\"string\"?S.input=o.string2buf(m):l.call(m)===\"[object ArrayBuffer]\"?S.input=new Uint8Array(m):S.input=m,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new i.Buf8(I),S.next_out=0,S.avail_out=I),(b=r.deflate(S,T))!==1&&b!==c)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||T!==4&&T!==2)||(this.options.to===\"string\"?this.onData(o.buf2binstring(i.shrinkBuf(S.output,S.next_out))):this.onData(i.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return T===4?(b=r.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===c):T!==2||(this.onEnd(c),!(S.avail_out=0))},d.prototype.onData=function(m){this.chunks.push(m)},d.prototype.onEnd=function(m){m===c&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},e.Deflate=d,e.deflate=p,e.deflateRaw=function(m,g){return(g=g||{}).raw=!0,p(m,g)},e.gzip=function(m,g){return(g=g||{}).gzip=!0,p(m,g)}},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/deflate\":46,\"./zlib/messages\":51,\"./zlib/zstream\":53}],40:[function(n,t,e){\"use strict\";var r=n(\"./zlib/inflate\"),i=n(\"./utils/common\"),o=n(\"./utils/strings\"),a=n(\"./zlib/constants\"),s=n(\"./zlib/messages\"),l=n(\"./zlib/zstream\"),c=n(\"./zlib/gzheader\"),h=Object.prototype.toString;function u(d){if(!(this instanceof u))return new u(d);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},d||{});var p=this.options;p.raw&&0<=p.windowBits&&p.windowBits<16&&(p.windowBits=-p.windowBits,p.windowBits===0&&(p.windowBits=-15)),!(0<=p.windowBits&&p.windowBits<16)||d&&d.windowBits||(p.windowBits+=32),15<p.windowBits&&p.windowBits<48&&(15&p.windowBits)==0&&(p.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var m=r.inflateInit2(this.strm,p.windowBits);if(m!==a.Z_OK)throw new Error(s[m]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(d,p){var m=new u(p);if(m.push(d,!0),m.err)throw m.msg||s[m.err];return m.result}u.prototype.push=function(d,p){var m,g,b,T,S,I,O=this.strm,$=this.options.chunkSize,k=this.options.dictionary,W=!1;if(this.ended)return!1;g=p===~~p?p:p===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof d==\"string\"?O.input=o.binstring2buf(d):h.call(d)===\"[object ArrayBuffer]\"?O.input=new Uint8Array(d):O.input=d,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new i.Buf8($),O.next_out=0,O.avail_out=$),(m=r.inflate(O,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&k&&(I=typeof k==\"string\"?o.string2buf(k):h.call(k)===\"[object ArrayBuffer]\"?new Uint8Array(k):k,m=r.inflateSetDictionary(this.strm,I)),m===a.Z_BUF_ERROR&&W===!0&&(m=a.Z_OK,W=!1),m!==a.Z_STREAM_END&&m!==a.Z_OK)return this.onEnd(m),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&m!==a.Z_STREAM_END&&(O.avail_in!==0||g!==a.Z_FINISH&&g!==a.Z_SYNC_FLUSH)||(this.options.to===\"string\"?(b=o.utf8border(O.output,O.next_out),T=O.next_out-b,S=o.buf2string(O.output,b),O.next_out=T,O.avail_out=$-T,T&&i.arraySet(O.output,O.output,b,T,0),this.onData(S)):this.onData(i.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(W=!0)}while((0<O.avail_in||O.avail_out===0)&&m!==a.Z_STREAM_END);return m===a.Z_STREAM_END&&(g=a.Z_FINISH),g===a.Z_FINISH?(m=r.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===a.Z_OK):g!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(O.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===a.Z_OK&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},e.Inflate=u,e.inflate=f,e.inflateRaw=function(d,p){return(p=p||{}).raw=!0,f(d,p)},e.ungzip=f},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/constants\":44,\"./zlib/gzheader\":47,\"./zlib/inflate\":49,\"./zlib/messages\":51,\"./zlib/zstream\":53}],41:[function(n,t,e){\"use strict\";var r=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Int32Array<\"u\";e.assign=function(a){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var l=s.shift();if(l){if(typeof l!=\"object\")throw new TypeError(l+\"must be non-object\");for(var c in l)l.hasOwnProperty(c)&&(a[c]=l[c])}}return a},e.shrinkBuf=function(a,s){return a.length===s?a:a.subarray?a.subarray(0,s):(a.length=s,a)};var i={arraySet:function(a,s,l,c,h){if(s.subarray&&a.subarray)a.set(s.subarray(l,l+c),h);else for(var u=0;u<c;u++)a[h+u]=s[l+u]},flattenChunks:function(a){var s,l,c,h,u,f;for(s=c=0,l=a.length;s<l;s++)c+=a[s].length;for(f=new Uint8Array(c),s=h=0,l=a.length;s<l;s++)u=a[s],f.set(u,h),h+=u.length;return f}},o={arraySet:function(a,s,l,c,h){for(var u=0;u<c;u++)a[h+u]=s[l+u]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)},{}],42:[function(n,t,e){\"use strict\";var r=n(\"./common\"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(c,h){if(h<65537&&(c.subarray&&o||!c.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(c,h));for(var u=\"\",f=0;f<h;f++)u+=String.fromCharCode(c[f]);return u}a[254]=a[254]=1,e.string2buf=function(c){var h,u,f,d,p,m=c.length,g=0;for(d=0;d<m;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<m&&(64512&(f=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),d++),g+=u<128?1:u<2048?2:u<65536?3:4;for(h=new r.Buf8(g),d=p=0;p<g;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<m&&(64512&(f=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),d++),u<128?h[p++]=u:(u<2048?h[p++]=192|u>>>6:(u<65536?h[p++]=224|u>>>12:(h[p++]=240|u>>>18,h[p++]=128|u>>>12&63),h[p++]=128|u>>>6&63),h[p++]=128|63&u);return h},e.buf2binstring=function(c){return l(c,c.length)},e.binstring2buf=function(c){for(var h=new r.Buf8(c.length),u=0,f=h.length;u<f;u++)h[u]=c.charCodeAt(u);return h},e.buf2string=function(c,h){var u,f,d,p,m=h||c.length,g=new Array(2*m);for(u=f=0;u<m;)if((d=c[u++])<128)g[f++]=d;else if(4<(p=a[d]))g[f++]=65533,u+=p-1;else{for(d&=p===2?31:p===3?15:7;1<p&&u<m;)d=d<<6|63&c[u++],p--;1<p?g[f++]=65533:d<65536?g[f++]=d:(d-=65536,g[f++]=55296|d>>10&1023,g[f++]=56320|1023&d)}return l(g,f)},e.utf8border=function(c,h){var u;for((h=h||c.length)>c.length&&(h=c.length),u=h-1;0<=u&&(192&c[u])==128;)u--;return u<0||u===0?h:u+a[c[u]]>h?u:h}},{\"./common\":41}],43:[function(n,t,e){\"use strict\";t.exports=function(r,i,o,a){for(var s=65535&r|0,l=r>>>16&65535|0,c=0;o!==0;){for(o-=c=2e3<o?2e3:o;l=l+(s=s+i[a++]|0)|0,--c;);s%=65521,l%=65521}return s|l<<16|0}},{}],44:[function(n,t,e){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,t,e){\"use strict\";var r=(function(){for(var i,o=[],a=0;a<256;a++){i=a;for(var s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;o[a]=i}return o})();t.exports=function(i,o,a,s){var l=r,c=s+a;i^=-1;for(var h=s;h<c;h++)i=i>>>8^l[255&(i^o[h])];return-1^i}},{}],46:[function(n,t,e){\"use strict\";var r,i=n(\"../utils/common\"),o=n(\"./trees\"),a=n(\"./adler32\"),s=n(\"./crc32\"),l=n(\"./messages\"),c=0,h=4,u=0,f=-2,d=-1,p=4,m=2,g=8,b=9,T=286,S=30,I=19,O=2*T+1,$=15,k=3,W=258,U=W+k+1,v=42,_=113,y=1,H=2,nt=3,J=4;function lt(x,it){return x.msg=l[it],it}function ot(x){return(x<<1)-(4<x?9:0)}function et(x){for(var it=x.length;0<=--it;)x[it]=0}function B(x){var it=x.state,Q=it.pending;Q>x.avail_out&&(Q=x.avail_out),Q!==0&&(i.arraySet(x.output,it.pending_buf,it.pending_out,Q,x.next_out),x.next_out+=Q,it.pending_out+=Q,x.total_out+=Q,x.avail_out-=Q,it.pending-=Q,it.pending===0&&(it.pending_out=0))}function z(x,it){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,it),x.block_start=x.strstart,B(x.strm)}function st(x,it){x.pending_buf[x.pending++]=it}function dt(x,it){x.pending_buf[x.pending++]=it>>>8&255,x.pending_buf[x.pending++]=255&it}function ft(x,it){var Q,D,R=x.max_chain_length,G=x.strstart,tt=x.prev_length,ht=x.nice_match,V=x.strstart>x.w_size-U?x.strstart-(x.w_size-U):0,gt=x.window,St=x.w_mask,bt=x.prev,At=x.strstart+W,zt=gt[G+tt-1],Mt=gt[G+tt];x.prev_length>=x.good_match&&(R>>=2),ht>x.lookahead&&(ht=x.lookahead);do if(gt[(Q=it)+tt]===Mt&&gt[Q+tt-1]===zt&&gt[Q]===gt[G]&&gt[++Q]===gt[G+1]){G+=2,Q++;do;while(gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&G<At);if(D=W-(At-G),G=At-W,tt<D){if(x.match_start=it,ht<=(tt=D))break;zt=gt[G+tt-1],Mt=gt[G+tt]}}while((it=bt[it&St])>V&&--R!=0);return tt<=x.lookahead?tt:x.lookahead}function Ft(x){var it,Q,D,R,G,tt,ht,V,gt,St,bt=x.w_size;do{if(R=x.window_size-x.lookahead-x.strstart,x.strstart>=bt+(bt-U)){for(i.arraySet(x.window,x.window,bt,bt,0),x.match_start-=bt,x.strstart-=bt,x.block_start-=bt,it=Q=x.hash_size;D=x.head[--it],x.head[it]=bt<=D?D-bt:0,--Q;);for(it=Q=bt;D=x.prev[--it],x.prev[it]=bt<=D?D-bt:0,--Q;);R+=bt}if(x.strm.avail_in===0)break;if(tt=x.strm,ht=x.window,V=x.strstart+x.lookahead,gt=R,St=void 0,St=tt.avail_in,gt<St&&(St=gt),Q=St===0?0:(tt.avail_in-=St,i.arraySet(ht,tt.input,tt.next_in,St,V),tt.state.wrap===1?tt.adler=a(tt.adler,ht,St,V):tt.state.wrap===2&&(tt.adler=s(tt.adler,ht,St,V)),tt.next_in+=St,tt.total_in+=St,St),x.lookahead+=Q,x.lookahead+x.insert>=k)for(G=x.strstart-x.insert,x.ins_h=x.window[G],x.ins_h=(x.ins_h<<x.hash_shift^x.window[G+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[G+k-1])&x.hash_mask,x.prev[G&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=G,G++,x.insert--,!(x.lookahead+x.insert<k)););}while(x.lookahead<U&&x.strm.avail_in!==0)}function Xt(x,it){for(var Q,D;;){if(x.lookahead<U){if(Ft(x),x.lookahead<U&&it===c)return y;if(x.lookahead===0)break}if(Q=0,x.lookahead>=k&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),Q!==0&&x.strstart-Q<=x.w_size-U&&(x.match_length=ft(x,Q)),x.match_length>=k)if(D=o._tr_tally(x,x.strstart-x.match_start,x.match_length-k),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=k){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else D=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(D&&(z(x,!1),x.strm.avail_out===0))return y}return x.insert=x.strstart<k-1?x.strstart:k-1,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?y:H}function Et(x,it){for(var Q,D,R;;){if(x.lookahead<U){if(Ft(x),x.lookahead<U&&it===c)return y;if(x.lookahead===0)break}if(Q=0,x.lookahead>=k&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=k-1,Q!==0&&x.prev_length<x.max_lazy_match&&x.strstart-Q<=x.w_size-U&&(x.match_length=ft(x,Q),x.match_length<=5&&(x.strategy===1||x.match_length===k&&4096<x.strstart-x.match_start)&&(x.match_length=k-1)),x.prev_length>=k&&x.match_length<=x.prev_length){for(R=x.strstart+x.lookahead-k,D=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-k),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=R&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=k-1,x.strstart++,D&&(z(x,!1),x.strm.avail_out===0))return y}else if(x.match_available){if((D=o._tr_tally(x,0,x.window[x.strstart-1]))&&z(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return y}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(D=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<k-1?x.strstart:k-1,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?y:H}function _t(x,it,Q,D,R){this.good_length=x,this.max_lazy=it,this.nice_length=Q,this.max_chain=D,this.func=R}function Kt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*O),this.dyn_dtree=new i.Buf16(2*(2*S+1)),this.bl_tree=new i.Buf16(2*(2*I+1)),et(this.dyn_ltree),et(this.dyn_dtree),et(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16($+1),this.heap=new i.Buf16(2*T+1),et(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*T+1),et(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pt(x){var it;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=m,(it=x.state).pending=0,it.pending_out=0,it.wrap<0&&(it.wrap=-it.wrap),it.status=it.wrap?v:_,x.adler=it.wrap===2?0:1,it.last_flush=c,o._tr_init(it),u):lt(x,f)}function jt(x){var it=Pt(x);return it===u&&(function(Q){Q.window_size=2*Q.w_size,et(Q.head),Q.max_lazy_match=r[Q.level].max_lazy,Q.good_match=r[Q.level].good_length,Q.nice_match=r[Q.level].nice_length,Q.max_chain_length=r[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=k-1,Q.match_available=0,Q.ins_h=0})(x.state),it}function qt(x,it,Q,D,R,G){if(!x)return f;var tt=1;if(it===d&&(it=6),D<0?(tt=0,D=-D):15<D&&(tt=2,D-=16),R<1||b<R||Q!==g||D<8||15<D||it<0||9<it||G<0||p<G)return lt(x,f);D===8&&(D=9);var ht=new Kt;return(x.state=ht).strm=x,ht.wrap=tt,ht.gzhead=null,ht.w_bits=D,ht.w_size=1<<ht.w_bits,ht.w_mask=ht.w_size-1,ht.hash_bits=R+7,ht.hash_size=1<<ht.hash_bits,ht.hash_mask=ht.hash_size-1,ht.hash_shift=~~((ht.hash_bits+k-1)/k),ht.window=new i.Buf8(2*ht.w_size),ht.head=new i.Buf16(ht.hash_size),ht.prev=new i.Buf16(ht.w_size),ht.lit_bufsize=1<<R+6,ht.pending_buf_size=4*ht.lit_bufsize,ht.pending_buf=new i.Buf8(ht.pending_buf_size),ht.d_buf=1*ht.lit_bufsize,ht.l_buf=3*ht.lit_bufsize,ht.level=it,ht.strategy=G,ht.method=Q,jt(x)}r=[new _t(0,0,0,0,function(x,it){var Q=65535;for(Q>x.pending_buf_size-5&&(Q=x.pending_buf_size-5);;){if(x.lookahead<=1){if(Ft(x),x.lookahead===0&&it===c)return y;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var D=x.block_start+Q;if((x.strstart===0||x.strstart>=D)&&(x.lookahead=x.strstart-D,x.strstart=D,z(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-U&&(z(x,!1),x.strm.avail_out===0))return y}return x.insert=0,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):(x.strstart>x.block_start&&(z(x,!1),x.strm.avail_out),y)}),new _t(4,4,8,4,Xt),new _t(4,5,16,8,Xt),new _t(4,6,32,32,Xt),new _t(4,4,16,16,Et),new _t(8,16,32,32,Et),new _t(8,16,128,128,Et),new _t(8,32,128,256,Et),new _t(32,128,258,1024,Et),new _t(32,258,258,4096,Et)],e.deflateInit=function(x,it){return qt(x,it,g,15,8,0)},e.deflateInit2=qt,e.deflateReset=jt,e.deflateResetKeep=Pt,e.deflateSetHeader=function(x,it){return x&&x.state?x.state.wrap!==2?f:(x.state.gzhead=it,u):f},e.deflate=function(x,it){var Q,D,R,G;if(!x||!x.state||5<it||it<0)return x?lt(x,f):f;if(D=x.state,!x.output||!x.input&&x.avail_in!==0||D.status===666&&it!==h)return lt(x,x.avail_out===0?-5:f);if(D.strm=x,Q=D.last_flush,D.last_flush=it,D.status===v)if(D.wrap===2)x.adler=0,st(D,31),st(D,139),st(D,8),D.gzhead?(st(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),st(D,255&D.gzhead.time),st(D,D.gzhead.time>>8&255),st(D,D.gzhead.time>>16&255),st(D,D.gzhead.time>>24&255),st(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),st(D,255&D.gzhead.os),D.gzhead.extra&&D.gzhead.extra.length&&(st(D,255&D.gzhead.extra.length),st(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(x.adler=s(x.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(st(D,0),st(D,0),st(D,0),st(D,0),st(D,0),st(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),st(D,3),D.status=_);else{var tt=g+(D.w_bits-8<<4)<<8;tt|=(2<=D.strategy||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6,D.strstart!==0&&(tt|=32),tt+=31-tt%31,D.status=_,dt(D,tt),D.strstart!==0&&(dt(D,x.adler>>>16),dt(D,65535&x.adler)),x.adler=1}if(D.status===69)if(D.gzhead.extra){for(R=D.pending;D.gzindex<(65535&D.gzhead.extra.length)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending!==D.pending_buf_size));)st(D,255&D.gzhead.extra[D.gzindex]),D.gzindex++;D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),D.gzindex===D.gzhead.extra.length&&(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending===D.pending_buf_size)){G=1;break}G=D.gzindex<D.gzhead.name.length?255&D.gzhead.name.charCodeAt(D.gzindex++):0,st(D,G)}while(G!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),G===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===91)if(D.gzhead.comment){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending===D.pending_buf_size)){G=1;break}G=D.gzindex<D.gzhead.comment.length?255&D.gzhead.comment.charCodeAt(D.gzindex++):0,st(D,G)}while(G!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),G===0&&(D.status=103)}else D.status=103;if(D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&B(x),D.pending+2<=D.pending_buf_size&&(st(D,255&x.adler),st(D,x.adler>>8&255),x.adler=0,D.status=_)):D.status=_),D.pending!==0){if(B(x),x.avail_out===0)return D.last_flush=-1,u}else if(x.avail_in===0&&ot(it)<=ot(Q)&&it!==h)return lt(x,-5);if(D.status===666&&x.avail_in!==0)return lt(x,-5);if(x.avail_in!==0||D.lookahead!==0||it!==c&&D.status!==666){var ht=D.strategy===2?(function(V,gt){for(var St;;){if(V.lookahead===0&&(Ft(V),V.lookahead===0)){if(gt===c)return y;break}if(V.match_length=0,St=o._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,St&&(z(V,!1),V.strm.avail_out===0))return y}return V.insert=0,gt===h?(z(V,!0),V.strm.avail_out===0?nt:J):V.last_lit&&(z(V,!1),V.strm.avail_out===0)?y:H})(D,it):D.strategy===3?(function(V,gt){for(var St,bt,At,zt,Mt=V.window;;){if(V.lookahead<=W){if(Ft(V),V.lookahead<=W&&gt===c)return y;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=k&&0<V.strstart&&(bt=Mt[At=V.strstart-1])===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]){zt=V.strstart+W;do;while(bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&At<zt);V.match_length=W-(zt-At),V.match_length>V.lookahead&&(V.match_length=V.lookahead)}if(V.match_length>=k?(St=o._tr_tally(V,1,V.match_length-k),V.lookahead-=V.match_length,V.strstart+=V.match_length,V.match_length=0):(St=o._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++),St&&(z(V,!1),V.strm.avail_out===0))return y}return V.insert=0,gt===h?(z(V,!0),V.strm.avail_out===0?nt:J):V.last_lit&&(z(V,!1),V.strm.avail_out===0)?y:H})(D,it):r[D.level].func(D,it);if(ht!==nt&&ht!==J||(D.status=666),ht===y||ht===nt)return x.avail_out===0&&(D.last_flush=-1),u;if(ht===H&&(it===1?o._tr_align(D):it!==5&&(o._tr_stored_block(D,0,0,!1),it===3&&(et(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),B(x),x.avail_out===0))return D.last_flush=-1,u}return it!==h?u:D.wrap<=0?1:(D.wrap===2?(st(D,255&x.adler),st(D,x.adler>>8&255),st(D,x.adler>>16&255),st(D,x.adler>>24&255),st(D,255&x.total_in),st(D,x.total_in>>8&255),st(D,x.total_in>>16&255),st(D,x.total_in>>24&255)):(dt(D,x.adler>>>16),dt(D,65535&x.adler)),B(x),0<D.wrap&&(D.wrap=-D.wrap),D.pending!==0?u:1)},e.deflateEnd=function(x){var it;return x&&x.state?(it=x.state.status)!==v&&it!==69&&it!==73&&it!==91&&it!==103&&it!==_&&it!==666?lt(x,f):(x.state=null,it===_?lt(x,-3):u):f},e.deflateSetDictionary=function(x,it){var Q,D,R,G,tt,ht,V,gt,St=it.length;if(!x||!x.state||(G=(Q=x.state).wrap)===2||G===1&&Q.status!==v||Q.lookahead)return f;for(G===1&&(x.adler=a(x.adler,it,St,0)),Q.wrap=0,St>=Q.w_size&&(G===0&&(et(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),gt=new i.Buf8(Q.w_size),i.arraySet(gt,it,St-Q.w_size,Q.w_size,0),it=gt,St=Q.w_size),tt=x.avail_in,ht=x.next_in,V=x.input,x.avail_in=St,x.next_in=0,x.input=it,Ft(Q);Q.lookahead>=k;){for(D=Q.strstart,R=Q.lookahead-(k-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[D+k-1])&Q.hash_mask,Q.prev[D&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=D,D++,--R;);Q.strstart=D,Q.lookahead=k-1,Ft(Q)}return Q.strstart+=Q.lookahead,Q.block_start=Q.strstart,Q.insert=Q.lookahead,Q.lookahead=0,Q.match_length=Q.prev_length=k-1,Q.match_available=0,x.next_in=ht,x.input=V,x.avail_in=tt,Q.wrap=G,u},e.deflateInfo=\"pako deflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./messages\":51,\"./trees\":52}],47:[function(n,t,e){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},{}],48:[function(n,t,e){\"use strict\";t.exports=function(r,i){var o,a,s,l,c,h,u,f,d,p,m,g,b,T,S,I,O,$,k,W,U,v,_,y,H;o=r.state,a=r.next_in,y=r.input,s=a+(r.avail_in-5),l=r.next_out,H=r.output,c=l-(i-r.avail_out),h=l+(r.avail_out-257),u=o.dmax,f=o.wsize,d=o.whave,p=o.wnext,m=o.window,g=o.hold,b=o.bits,T=o.lencode,S=o.distcode,I=(1<<o.lenbits)-1,O=(1<<o.distbits)-1;t:do{b<15&&(g+=y[a++]<<b,b+=8,g+=y[a++]<<b,b+=8),$=T[g&I];e:for(;;){if(g>>>=k=$>>>24,b-=k,(k=$>>>16&255)===0)H[l++]=65535&$;else{if(!(16&k)){if((64&k)==0){$=T[(65535&$)+(g&(1<<k)-1)];continue e}if(32&k){o.mode=12;break t}r.msg=\"invalid literal/length code\",o.mode=30;break t}W=65535&$,(k&=15)&&(b<k&&(g+=y[a++]<<b,b+=8),W+=g&(1<<k)-1,g>>>=k,b-=k),b<15&&(g+=y[a++]<<b,b+=8,g+=y[a++]<<b,b+=8),$=S[g&O];r:for(;;){if(g>>>=k=$>>>24,b-=k,!(16&(k=$>>>16&255))){if((64&k)==0){$=S[(65535&$)+(g&(1<<k)-1)];continue r}r.msg=\"invalid distance code\",o.mode=30;break t}if(U=65535&$,b<(k&=15)&&(g+=y[a++]<<b,(b+=8)<k&&(g+=y[a++]<<b,b+=8)),u<(U+=g&(1<<k)-1)){r.msg=\"invalid distance too far back\",o.mode=30;break t}if(g>>>=k,b-=k,(k=l-c)<U){if(d<(k=U-k)&&o.sane){r.msg=\"invalid distance too far back\",o.mode=30;break t}if(_=m,(v=0)===p){if(v+=f-k,k<W){for(W-=k;H[l++]=m[v++],--k;);v=l-U,_=H}}else if(p<k){if(v+=f+p-k,(k-=p)<W){for(W-=k;H[l++]=m[v++],--k;);if(v=0,p<W){for(W-=k=p;H[l++]=m[v++],--k;);v=l-U,_=H}}}else if(v+=p-k,k<W){for(W-=k;H[l++]=m[v++],--k;);v=l-U,_=H}for(;2<W;)H[l++]=_[v++],H[l++]=_[v++],H[l++]=_[v++],W-=3;W&&(H[l++]=_[v++],1<W&&(H[l++]=_[v++]))}else{for(v=l-U;H[l++]=H[v++],H[l++]=H[v++],H[l++]=H[v++],2<(W-=3););W&&(H[l++]=H[v++],1<W&&(H[l++]=H[v++]))}break}}break}}while(a<s&&l<h);a-=W=b>>3,g&=(1<<(b-=W<<3))-1,r.next_in=a,r.next_out=l,r.avail_in=a<s?s-a+5:5-(a-s),r.avail_out=l<h?h-l+257:257-(l-h),o.hold=g,o.bits=b}},{}],49:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=n(\"./adler32\"),o=n(\"./crc32\"),a=n(\"./inffast\"),s=n(\"./inftrees\"),l=1,c=2,h=0,u=-2,f=1,d=852,p=592;function m(v){return(v>>>24&255)+(v>>>8&65280)+((65280&v)<<8)+((255&v)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(v){var _;return v&&v.state?(_=v.state,v.total_in=v.total_out=_.total=0,v.msg=\"\",_.wrap&&(v.adler=1&_.wrap),_.mode=f,_.last=0,_.havedict=0,_.dmax=32768,_.head=null,_.hold=0,_.bits=0,_.lencode=_.lendyn=new r.Buf32(d),_.distcode=_.distdyn=new r.Buf32(p),_.sane=1,_.back=-1,h):u}function T(v){var _;return v&&v.state?((_=v.state).wsize=0,_.whave=0,_.wnext=0,b(v)):u}function S(v,_){var y,H;return v&&v.state?(H=v.state,_<0?(y=0,_=-_):(y=1+(_>>4),_<48&&(_&=15)),_&&(_<8||15<_)?u:(H.window!==null&&H.wbits!==_&&(H.window=null),H.wrap=y,H.wbits=_,T(v))):u}function I(v,_){var y,H;return v?(H=new g,(v.state=H).window=null,(y=S(v,_))!==h&&(v.state=null),y):u}var O,$,k=!0;function W(v){if(k){var _;for(O=new r.Buf32(512),$=new r.Buf32(32),_=0;_<144;)v.lens[_++]=8;for(;_<256;)v.lens[_++]=9;for(;_<280;)v.lens[_++]=7;for(;_<288;)v.lens[_++]=8;for(s(l,v.lens,0,288,O,0,v.work,{bits:9}),_=0;_<32;)v.lens[_++]=5;s(c,v.lens,0,32,$,0,v.work,{bits:5}),k=!1}v.lencode=O,v.lenbits=9,v.distcode=$,v.distbits=5}function U(v,_,y,H){var nt,J=v.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new r.Buf8(J.wsize)),H>=J.wsize?(r.arraySet(J.window,_,y-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):(H<(nt=J.wsize-J.wnext)&&(nt=H),r.arraySet(J.window,_,y-H,nt,J.wnext),(H-=nt)?(r.arraySet(J.window,_,y-H,H,0),J.wnext=H,J.whave=J.wsize):(J.wnext+=nt,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=nt))),0}e.inflateReset=T,e.inflateReset2=S,e.inflateResetKeep=b,e.inflateInit=function(v){return I(v,15)},e.inflateInit2=I,e.inflate=function(v,_){var y,H,nt,J,lt,ot,et,B,z,st,dt,ft,Ft,Xt,Et,_t,Kt,Pt,jt,qt,x,it,Q,D,R=0,G=new r.Buf8(4),tt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!v||!v.state||!v.output||!v.input&&v.avail_in!==0)return u;(y=v.state).mode===12&&(y.mode=13),lt=v.next_out,nt=v.output,et=v.avail_out,J=v.next_in,H=v.input,ot=v.avail_in,B=y.hold,z=y.bits,st=ot,dt=et,it=h;t:for(;;)switch(y.mode){case f:if(y.wrap===0){y.mode=13;break}for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(2&y.wrap&&B===35615){G[y.check=0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0),z=B=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&B)<<8)+(B>>8))%31){v.msg=\"incorrect header check\",y.mode=30;break}if((15&B)!=8){v.msg=\"unknown compression method\",y.mode=30;break}if(z-=4,x=8+(15&(B>>>=4)),y.wbits===0)y.wbits=x;else if(x>y.wbits){v.msg=\"invalid window size\",y.mode=30;break}y.dmax=1<<x,v.adler=y.check=1,y.mode=512&B?10:12,z=B=0;break;case 2:for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(y.flags=B,(255&y.flags)!=8){v.msg=\"unknown compression method\",y.mode=30;break}if(57344&y.flags){v.msg=\"unknown header flags set\",y.mode=30;break}y.head&&(y.head.text=B>>8&1),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0,y.mode=3;case 3:for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.head&&(y.head.time=B),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,G[2]=B>>>16&255,G[3]=B>>>24&255,y.check=o(y.check,G,4,0)),z=B=0,y.mode=4;case 4:for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.head&&(y.head.xflags=255&B,y.head.os=B>>8),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0,y.mode=5;case 5:if(1024&y.flags){for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.length=B,y.head&&(y.head.extra_len=B),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(ot<(ft=y.length)&&(ft=ot),ft&&(y.head&&(x=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),r.arraySet(y.head.extra,H,J,ft,x)),512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,y.length-=ft),y.length))break t;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(ot===0)break t;for(ft=0;x=H[J+ft++],y.head&&x&&y.length<65536&&(y.head.name+=String.fromCharCode(x)),x&&ft<ot;);if(512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,x)break t}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(ot===0)break t;for(ft=0;x=H[J+ft++],y.head&&x&&y.length<65536&&(y.head.comment+=String.fromCharCode(x)),x&&ft<ot;);if(512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,x)break t}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B!==(65535&y.check)){v.msg=\"header crc mismatch\",y.mode=30;break}z=B=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),v.adler=y.check=0,y.mode=12;break;case 10:for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}v.adler=y.check=m(B),z=B=0,y.mode=11;case 11:if(y.havedict===0)return v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,2;v.adler=y.check=1,y.mode=12;case 12:if(_===5||_===6)break t;case 13:if(y.last){B>>>=7&z,z-=7&z,y.mode=27;break}for(;z<3;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}switch(y.last=1&B,z-=1,3&(B>>>=1)){case 0:y.mode=14;break;case 1:if(W(y),y.mode=20,_!==6)break;B>>>=2,z-=2;break t;case 2:y.mode=17;break;case 3:v.msg=\"invalid block type\",y.mode=30}B>>>=2,z-=2;break;case 14:for(B>>>=7&z,z-=7&z;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if((65535&B)!=(B>>>16^65535)){v.msg=\"invalid stored block lengths\",y.mode=30;break}if(y.length=65535&B,z=B=0,y.mode=15,_===6)break t;case 15:y.mode=16;case 16:if(ft=y.length){if(ot<ft&&(ft=ot),et<ft&&(ft=et),ft===0)break t;r.arraySet(nt,H,J,ft,lt),ot-=ft,J+=ft,et-=ft,lt+=ft,y.length-=ft;break}y.mode=12;break;case 17:for(;z<14;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(y.nlen=257+(31&B),B>>>=5,z-=5,y.ndist=1+(31&B),B>>>=5,z-=5,y.ncode=4+(15&B),B>>>=4,z-=4,286<y.nlen||30<y.ndist){v.msg=\"too many length or distance symbols\",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;z<3;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.lens[tt[y.have++]]=7&B,B>>>=3,z-=3}for(;y.have<19;)y.lens[tt[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,Q={bits:y.lenbits},it=s(0,y.lens,0,19,y.lencode,0,y.work,Q),y.lenbits=Q.bits,it){v.msg=\"invalid code lengths set\",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;_t=(R=y.lencode[B&(1<<y.lenbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(Kt<16)B>>>=Et,z-=Et,y.lens[y.have++]=Kt;else{if(Kt===16){for(D=Et+2;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B>>>=Et,z-=Et,y.have===0){v.msg=\"invalid bit length repeat\",y.mode=30;break}x=y.lens[y.have-1],ft=3+(3&B),B>>>=2,z-=2}else if(Kt===17){for(D=Et+3;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}z-=Et,x=0,ft=3+(7&(B>>>=Et)),B>>>=3,z-=3}else{for(D=Et+7;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}z-=Et,x=0,ft=11+(127&(B>>>=Et)),B>>>=7,z-=7}if(y.have+ft>y.nlen+y.ndist){v.msg=\"invalid bit length repeat\",y.mode=30;break}for(;ft--;)y.lens[y.have++]=x}}if(y.mode===30)break;if(y.lens[256]===0){v.msg=\"invalid code -- missing end-of-block\",y.mode=30;break}if(y.lenbits=9,Q={bits:y.lenbits},it=s(l,y.lens,0,y.nlen,y.lencode,0,y.work,Q),y.lenbits=Q.bits,it){v.msg=\"invalid literal/lengths set\",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,Q={bits:y.distbits},it=s(c,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,Q),y.distbits=Q.bits,it){v.msg=\"invalid distances set\",y.mode=30;break}if(y.mode=20,_===6)break t;case 20:y.mode=21;case 21:if(6<=ot&&258<=et){v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,a(v,dt),lt=v.next_out,nt=v.output,et=v.avail_out,J=v.next_in,H=v.input,ot=v.avail_in,B=y.hold,z=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;_t=(R=y.lencode[B&(1<<y.lenbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(_t&&(240&_t)==0){for(Pt=Et,jt=_t,qt=Kt;_t=(R=y.lencode[qt+((B&(1<<Pt+jt)-1)>>Pt)])>>>16&255,Kt=65535&R,!(Pt+(Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}B>>>=Pt,z-=Pt,y.back+=Pt}if(B>>>=Et,z-=Et,y.back+=Et,y.length=Kt,_t===0){y.mode=26;break}if(32&_t){y.back=-1,y.mode=12;break}if(64&_t){v.msg=\"invalid literal/length code\",y.mode=30;break}y.extra=15&_t,y.mode=22;case 22:if(y.extra){for(D=y.extra;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.length+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;_t=(R=y.distcode[B&(1<<y.distbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if((240&_t)==0){for(Pt=Et,jt=_t,qt=Kt;_t=(R=y.distcode[qt+((B&(1<<Pt+jt)-1)>>Pt)])>>>16&255,Kt=65535&R,!(Pt+(Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}B>>>=Pt,z-=Pt,y.back+=Pt}if(B>>>=Et,z-=Et,y.back+=Et,64&_t){v.msg=\"invalid distance code\",y.mode=30;break}y.offset=Kt,y.extra=15&_t,y.mode=24;case 24:if(y.extra){for(D=y.extra;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.offset+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){v.msg=\"invalid distance too far back\",y.mode=30;break}y.mode=25;case 25:if(et===0)break t;if(ft=dt-et,y.offset>ft){if((ft=y.offset-ft)>y.whave&&y.sane){v.msg=\"invalid distance too far back\",y.mode=30;break}Ft=ft>y.wnext?(ft-=y.wnext,y.wsize-ft):y.wnext-ft,ft>y.length&&(ft=y.length),Xt=y.window}else Xt=nt,Ft=lt-y.offset,ft=y.length;for(et<ft&&(ft=et),et-=ft,y.length-=ft;nt[lt++]=Xt[Ft++],--ft;);y.length===0&&(y.mode=21);break;case 26:if(et===0)break t;nt[lt++]=y.length,et--,y.mode=21;break;case 27:if(y.wrap){for(;z<32;){if(ot===0)break t;ot--,B|=H[J++]<<z,z+=8}if(dt-=et,v.total_out+=dt,y.total+=dt,dt&&(v.adler=y.check=y.flags?o(y.check,nt,dt,lt-dt):i(y.check,nt,dt,lt-dt)),dt=et,(y.flags?B:m(B))!==y.check){v.msg=\"incorrect data check\",y.mode=30;break}z=B=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B!==(4294967295&y.total)){v.msg=\"incorrect length check\",y.mode=30;break}z=B=0}y.mode=29;case 29:it=1;break t;case 30:it=-3;break t;case 31:return-4;default:return u}return v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,(y.wsize||dt!==v.avail_out&&y.mode<30&&(y.mode<27||_!==4))&&U(v,v.output,v.next_out,dt-v.avail_out)?(y.mode=31,-4):(st-=v.avail_in,dt-=v.avail_out,v.total_in+=st,v.total_out+=dt,y.total+=dt,y.wrap&&dt&&(v.adler=y.check=y.flags?o(y.check,nt,dt,v.next_out-dt):i(y.check,nt,dt,v.next_out-dt)),v.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(st==0&&dt===0||_===4)&&it===h&&(it=-5),it)},e.inflateEnd=function(v){if(!v||!v.state)return u;var _=v.state;return _.window&&(_.window=null),v.state=null,h},e.inflateGetHeader=function(v,_){var y;return v&&v.state?(2&(y=v.state).wrap)==0?u:((y.head=_).done=!1,h):u},e.inflateSetDictionary=function(v,_){var y,H=_.length;return v&&v.state?(y=v.state).wrap!==0&&y.mode!==11?u:y.mode===11&&i(1,_,H,0)!==y.check?-3:U(v,_,H,H)?(y.mode=31,-4):(y.havedict=1,h):u},e.inflateInfo=\"pako inflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./inffast\":48,\"./inftrees\":50}],50:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(l,c,h,u,f,d,p,m){var g,b,T,S,I,O,$,k,W,U=m.bits,v=0,_=0,y=0,H=0,nt=0,J=0,lt=0,ot=0,et=0,B=0,z=null,st=0,dt=new r.Buf16(16),ft=new r.Buf16(16),Ft=null,Xt=0;for(v=0;v<=15;v++)dt[v]=0;for(_=0;_<u;_++)dt[c[h+_]]++;for(nt=U,H=15;1<=H&&dt[H]===0;H--);if(H<nt&&(nt=H),H===0)return f[d++]=20971520,f[d++]=20971520,m.bits=1,0;for(y=1;y<H&&dt[y]===0;y++);for(nt<y&&(nt=y),v=ot=1;v<=15;v++)if(ot<<=1,(ot-=dt[v])<0)return-1;if(0<ot&&(l===0||H!==1))return-1;for(ft[1]=0,v=1;v<15;v++)ft[v+1]=ft[v]+dt[v];for(_=0;_<u;_++)c[h+_]!==0&&(p[ft[c[h+_]]++]=_);if(O=l===0?(z=Ft=p,19):l===1?(z=i,st-=257,Ft=o,Xt-=257,256):(z=a,Ft=s,-1),v=y,I=d,lt=_=B=0,T=-1,S=(et=1<<(J=nt))-1,l===1&&852<et||l===2&&592<et)return 1;for(;;){for($=v-lt,W=p[_]<O?(k=0,p[_]):p[_]>O?(k=Ft[Xt+p[_]],z[st+p[_]]):(k=96,0),g=1<<v-lt,y=b=1<<J;f[I+(B>>lt)+(b-=g)]=$<<24|k<<16|W|0,b!==0;);for(g=1<<v-1;B&g;)g>>=1;if(g!==0?(B&=g-1,B+=g):B=0,_++,--dt[v]==0){if(v===H)break;v=c[h+p[_]]}if(nt<v&&(B&S)!==T){for(lt===0&&(lt=nt),I+=y,ot=1<<(J=v-lt);J+lt<H&&!((ot-=dt[J+lt])<=0);)J++,ot<<=1;if(et+=1<<J,l===1&&852<et||l===2&&592<et)return 1;f[T=B&S]=nt<<24|J<<16|I-d|0}}return B!==0&&(f[I+B]=v-lt<<24|64<<16|0),m.bits=nt,0}},{\"../utils/common\":41}],51:[function(n,t,e){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},{}],52:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=0,o=1;function a(R){for(var G=R.length;0<=--G;)R[G]=0}var s=0,l=29,c=256,h=c+1+l,u=30,f=19,d=2*h+1,p=15,m=16,g=7,b=256,T=16,S=17,I=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=new Array(2*(h+2));a(U);var v=new Array(2*u);a(v);var _=new Array(512);a(_);var y=new Array(256);a(y);var H=new Array(l);a(H);var nt,J,lt,ot=new Array(u);function et(R,G,tt,ht,V){this.static_tree=R,this.extra_bits=G,this.extra_base=tt,this.elems=ht,this.max_length=V,this.has_stree=R&&R.length}function B(R,G){this.dyn_tree=R,this.max_code=0,this.stat_desc=G}function z(R){return R<256?_[R]:_[256+(R>>>7)]}function st(R,G){R.pending_buf[R.pending++]=255&G,R.pending_buf[R.pending++]=G>>>8&255}function dt(R,G,tt){R.bi_valid>m-tt?(R.bi_buf|=G<<R.bi_valid&65535,st(R,R.bi_buf),R.bi_buf=G>>m-R.bi_valid,R.bi_valid+=tt-m):(R.bi_buf|=G<<R.bi_valid&65535,R.bi_valid+=tt)}function ft(R,G,tt){dt(R,tt[2*G],tt[2*G+1])}function Ft(R,G){for(var tt=0;tt|=1&R,R>>>=1,tt<<=1,0<--G;);return tt>>>1}function Xt(R,G,tt){var ht,V,gt=new Array(p+1),St=0;for(ht=1;ht<=p;ht++)gt[ht]=St=St+tt[ht-1]<<1;for(V=0;V<=G;V++){var bt=R[2*V+1];bt!==0&&(R[2*V]=Ft(gt[bt]++,bt))}}function Et(R){var G;for(G=0;G<h;G++)R.dyn_ltree[2*G]=0;for(G=0;G<u;G++)R.dyn_dtree[2*G]=0;for(G=0;G<f;G++)R.bl_tree[2*G]=0;R.dyn_ltree[2*b]=1,R.opt_len=R.static_len=0,R.last_lit=R.matches=0}function _t(R){8<R.bi_valid?st(R,R.bi_buf):0<R.bi_valid&&(R.pending_buf[R.pending++]=R.bi_buf),R.bi_buf=0,R.bi_valid=0}function Kt(R,G,tt,ht){var V=2*G,gt=2*tt;return R[V]<R[gt]||R[V]===R[gt]&&ht[G]<=ht[tt]}function Pt(R,G,tt){for(var ht=R.heap[tt],V=tt<<1;V<=R.heap_len&&(V<R.heap_len&&Kt(G,R.heap[V+1],R.heap[V],R.depth)&&V++,!Kt(G,ht,R.heap[V],R.depth));)R.heap[tt]=R.heap[V],tt=V,V<<=1;R.heap[tt]=ht}function jt(R,G,tt){var ht,V,gt,St,bt=0;if(R.last_lit!==0)for(;ht=R.pending_buf[R.d_buf+2*bt]<<8|R.pending_buf[R.d_buf+2*bt+1],V=R.pending_buf[R.l_buf+bt],bt++,ht===0?ft(R,V,G):(ft(R,(gt=y[V])+c+1,G),(St=O[gt])!==0&&dt(R,V-=H[gt],St),ft(R,gt=z(--ht),tt),(St=$[gt])!==0&&dt(R,ht-=ot[gt],St)),bt<R.last_lit;);ft(R,b,G)}function qt(R,G){var tt,ht,V,gt=G.dyn_tree,St=G.stat_desc.static_tree,bt=G.stat_desc.has_stree,At=G.stat_desc.elems,zt=-1;for(R.heap_len=0,R.heap_max=d,tt=0;tt<At;tt++)gt[2*tt]!==0?(R.heap[++R.heap_len]=zt=tt,R.depth[tt]=0):gt[2*tt+1]=0;for(;R.heap_len<2;)gt[2*(V=R.heap[++R.heap_len]=zt<2?++zt:0)]=1,R.depth[V]=0,R.opt_len--,bt&&(R.static_len-=St[2*V+1]);for(G.max_code=zt,tt=R.heap_len>>1;1<=tt;tt--)Pt(R,gt,tt);for(V=At;tt=R.heap[1],R.heap[1]=R.heap[R.heap_len--],Pt(R,gt,1),ht=R.heap[1],R.heap[--R.heap_max]=tt,R.heap[--R.heap_max]=ht,gt[2*V]=gt[2*tt]+gt[2*ht],R.depth[V]=(R.depth[tt]>=R.depth[ht]?R.depth[tt]:R.depth[ht])+1,gt[2*tt+1]=gt[2*ht+1]=V,R.heap[1]=V++,Pt(R,gt,1),2<=R.heap_len;);R.heap[--R.heap_max]=R.heap[1],(function(Mt,ue){var re,he,Te,Zt,We,Je,Se=ue.dyn_tree,He=ue.max_code,Nr=ue.stat_desc.static_tree,Rr=ue.stat_desc.has_stree,Vr=ue.stat_desc.extra_bits,fr=ue.stat_desc.extra_base,Qe=ue.stat_desc.max_length,or=0;for(Zt=0;Zt<=p;Zt++)Mt.bl_count[Zt]=0;for(Se[2*Mt.heap[Mt.heap_max]+1]=0,re=Mt.heap_max+1;re<d;re++)Qe<(Zt=Se[2*Se[2*(he=Mt.heap[re])+1]+1]+1)&&(Zt=Qe,or++),Se[2*he+1]=Zt,He<he||(Mt.bl_count[Zt]++,We=0,fr<=he&&(We=Vr[he-fr]),Je=Se[2*he],Mt.opt_len+=Je*(Zt+We),Rr&&(Mt.static_len+=Je*(Nr[2*he+1]+We)));if(or!==0){do{for(Zt=Qe-1;Mt.bl_count[Zt]===0;)Zt--;Mt.bl_count[Zt]--,Mt.bl_count[Zt+1]+=2,Mt.bl_count[Qe]--,or-=2}while(0<or);for(Zt=Qe;Zt!==0;Zt--)for(he=Mt.bl_count[Zt];he!==0;)He<(Te=Mt.heap[--re])||(Se[2*Te+1]!==Zt&&(Mt.opt_len+=(Zt-Se[2*Te+1])*Se[2*Te],Se[2*Te+1]=Zt),he--)}})(R,G),Xt(gt,zt,R.bl_count)}function x(R,G,tt){var ht,V,gt=-1,St=G[1],bt=0,At=7,zt=4;for(St===0&&(At=138,zt=3),G[2*(tt+1)+1]=65535,ht=0;ht<=tt;ht++)V=St,St=G[2*(ht+1)+1],++bt<At&&V===St||(bt<zt?R.bl_tree[2*V]+=bt:V!==0?(V!==gt&&R.bl_tree[2*V]++,R.bl_tree[2*T]++):bt<=10?R.bl_tree[2*S]++:R.bl_tree[2*I]++,gt=V,zt=(bt=0)===St?(At=138,3):V===St?(At=6,3):(At=7,4))}function it(R,G,tt){var ht,V,gt=-1,St=G[1],bt=0,At=7,zt=4;for(St===0&&(At=138,zt=3),ht=0;ht<=tt;ht++)if(V=St,St=G[2*(ht+1)+1],!(++bt<At&&V===St)){if(bt<zt)for(;ft(R,V,R.bl_tree),--bt!=0;);else V!==0?(V!==gt&&(ft(R,V,R.bl_tree),bt--),ft(R,T,R.bl_tree),dt(R,bt-3,2)):bt<=10?(ft(R,S,R.bl_tree),dt(R,bt-3,3)):(ft(R,I,R.bl_tree),dt(R,bt-11,7));gt=V,zt=(bt=0)===St?(At=138,3):V===St?(At=6,3):(At=7,4)}}a(ot);var Q=!1;function D(R,G,tt,ht){dt(R,(s<<1)+(ht?1:0),3),(function(V,gt,St,bt){_t(V),bt&&(st(V,St),st(V,~St)),r.arraySet(V.pending_buf,V.window,gt,St,V.pending),V.pending+=St})(R,G,tt,!0)}e._tr_init=function(R){Q||((function(){var G,tt,ht,V,gt,St=new Array(p+1);for(V=ht=0;V<l-1;V++)for(H[V]=ht,G=0;G<1<<O[V];G++)y[ht++]=V;for(y[ht-1]=V,V=gt=0;V<16;V++)for(ot[V]=gt,G=0;G<1<<$[V];G++)_[gt++]=V;for(gt>>=7;V<u;V++)for(ot[V]=gt<<7,G=0;G<1<<$[V]-7;G++)_[256+gt++]=V;for(tt=0;tt<=p;tt++)St[tt]=0;for(G=0;G<=143;)U[2*G+1]=8,G++,St[8]++;for(;G<=255;)U[2*G+1]=9,G++,St[9]++;for(;G<=279;)U[2*G+1]=7,G++,St[7]++;for(;G<=287;)U[2*G+1]=8,G++,St[8]++;for(Xt(U,h+1,St),G=0;G<u;G++)v[2*G+1]=5,v[2*G]=Ft(G,5);nt=new et(U,O,c+1,h,p),J=new et(v,$,0,u,p),lt=new et(new Array(0),k,0,f,g)})(),Q=!0),R.l_desc=new B(R.dyn_ltree,nt),R.d_desc=new B(R.dyn_dtree,J),R.bl_desc=new B(R.bl_tree,lt),R.bi_buf=0,R.bi_valid=0,Et(R)},e._tr_stored_block=D,e._tr_flush_block=function(R,G,tt,ht){var V,gt,St=0;0<R.level?(R.strm.data_type===2&&(R.strm.data_type=(function(bt){var At,zt=4093624447;for(At=0;At<=31;At++,zt>>>=1)if(1&zt&&bt.dyn_ltree[2*At]!==0)return i;if(bt.dyn_ltree[18]!==0||bt.dyn_ltree[20]!==0||bt.dyn_ltree[26]!==0)return o;for(At=32;At<c;At++)if(bt.dyn_ltree[2*At]!==0)return o;return i})(R)),qt(R,R.l_desc),qt(R,R.d_desc),St=(function(bt){var At;for(x(bt,bt.dyn_ltree,bt.l_desc.max_code),x(bt,bt.dyn_dtree,bt.d_desc.max_code),qt(bt,bt.bl_desc),At=f-1;3<=At&&bt.bl_tree[2*W[At]+1]===0;At--);return bt.opt_len+=3*(At+1)+5+5+4,At})(R),V=R.opt_len+3+7>>>3,(gt=R.static_len+3+7>>>3)<=V&&(V=gt)):V=gt=tt+5,tt+4<=V&&G!==-1?D(R,G,tt,ht):R.strategy===4||gt===V?(dt(R,2+(ht?1:0),3),jt(R,U,v)):(dt(R,4+(ht?1:0),3),(function(bt,At,zt,Mt){var ue;for(dt(bt,At-257,5),dt(bt,zt-1,5),dt(bt,Mt-4,4),ue=0;ue<Mt;ue++)dt(bt,bt.bl_tree[2*W[ue]+1],3);it(bt,bt.dyn_ltree,At-1),it(bt,bt.dyn_dtree,zt-1)})(R,R.l_desc.max_code+1,R.d_desc.max_code+1,St+1),jt(R,R.dyn_ltree,R.dyn_dtree)),Et(R),ht&&_t(R)},e._tr_tally=function(R,G,tt){return R.pending_buf[R.d_buf+2*R.last_lit]=G>>>8&255,R.pending_buf[R.d_buf+2*R.last_lit+1]=255&G,R.pending_buf[R.l_buf+R.last_lit]=255&tt,R.last_lit++,G===0?R.dyn_ltree[2*tt]++:(R.matches++,G--,R.dyn_ltree[2*(y[tt]+c+1)]++,R.dyn_dtree[2*z(G)]++),R.last_lit===R.lit_bufsize-1},e._tr_align=function(R){dt(R,2,3),ft(R,b,U),(function(G){G.bi_valid===16?(st(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(R)}},{\"../utils/common\":41}],53:[function(n,t,e){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,t,e){(function(r){(function(i,o){\"use strict\";if(!i.setImmediate){var a,s,l,c,h=1,u={},f=!1,d=i.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(i);p=p&&p.setTimeout?p:i,a={}.toString.call(i.process)===\"[object process]\"?function(T){process.nextTick(function(){g(T)})}:(function(){if(i.postMessage&&!i.importScripts){var T=!0,S=i.onmessage;return i.onmessage=function(){T=!1},i.postMessage(\"\",\"*\"),i.onmessage=S,T}})()?(c=\"setImmediate$\"+Math.random()+\"$\",i.addEventListener?i.addEventListener(\"message\",b,!1):i.attachEvent(\"onmessage\",b),function(T){i.postMessage(c+T,\"*\")}):i.MessageChannel?((l=new MessageChannel).port1.onmessage=function(T){g(T.data)},function(T){l.port2.postMessage(T)}):d&&\"onreadystatechange\"in d.createElement(\"script\")?(s=d.documentElement,function(T){var S=d.createElement(\"script\");S.onreadystatechange=function(){g(T),S.onreadystatechange=null,s.removeChild(S),S=null},s.appendChild(S)}):function(T){setTimeout(g,0,T)},p.setImmediate=function(T){typeof T!=\"function\"&&(T=new Function(\"\"+T));for(var S=new Array(arguments.length-1),I=0;I<S.length;I++)S[I]=arguments[I+1];var O={callback:T,args:S};return u[h]=O,a(h),h++},p.clearImmediate=m}function m(T){delete u[T]}function g(T){if(f)setTimeout(g,0,T);else{var S=u[T];if(S){f=!0;try{(function(I){var O=I.callback,$=I.args;switch($.length){case 0:O();break;case 1:O($[0]);break;case 2:O($[0],$[1]);break;case 3:O($[0],$[1],$[2]);break;default:O.apply(o,$)}})(S)}finally{m(T),f=!1}}}}function b(T){T.source===i&&typeof T.data==\"string\"&&T.data.indexOf(c)===0&&g(+T.data.slice(c.length))}})(typeof self>\"u\"?r===void 0?this:r:self)}).call(this,typeof global<\"u\"?global:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}]},{},[10])(10)})});var Ch=Eo(()=>{});var Bh=Eo((Vx,Ts)=>{var jr=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";function Nh(n){for(var t=\"\",e=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c<n.length;)e=n.charCodeAt(c++),o=e>>2,r=n.charCodeAt(c++),a=(e&3)<<4|r>>4,i=n.charCodeAt(c++),s=(r&15)<<2|i>>6,l=i&63,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=jr.charAt(o)+jr.charAt(a)+jr.charAt(s)+jr.charAt(l);return t}function Rh(n){var t=\"\",e=0,r=0,i=0,o=0,a=0,s=0,l=0;n=n.replace(/[^\\w\\+\\/\\=]/g,\"\");for(var c=0;c<n.length;)o=jr.indexOf(n.charAt(c++)),a=jr.indexOf(n.charAt(c++)),e=o<<2|a>>4,t+=String.fromCharCode(e),s=jr.indexOf(n.charAt(c++)),r=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(r)),l=jr.indexOf(n.charAt(c++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Ze=(function(){return typeof Buffer<\"u\"&&typeof process<\"u\"&&typeof process.versions<\"u\"&&!!process.versions.node})(),Ss=(function(){if(typeof Buffer<\"u\"){var n=!Buffer.from;if(!n)try{Buffer.from(\"foo\",\"utf8\")}catch{n=!0}return n?function(t,e){return e?new Buffer(t,e):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function Lh(n){if(Ze){if(Buffer.alloc)return Buffer.alloc(n);var t=new Buffer(n);return t.fill(0),t}return typeof Uint8Array<\"u\"?new Uint8Array(n):new Array(n)}function Ph(n){return Ze?Buffer.allocUnsafe?Buffer.allocUnsafe(n):new Buffer(n):typeof Uint8Array<\"u\"?new Uint8Array(n):new Array(n)}var kn=function(t){return Ze?Ss(t,\"binary\"):t.split(\"\").map(function(e){return e.charCodeAt(0)&255})},ii=/\\u0000/g,ho=/[\\u0001-\\u0006]/g,fo=function(n){for(var t=[],e=0;e<n[0].length;++e)t.push.apply(t,n[0][e]);return t},my=fo,Es=function(n,t,e){for(var r=[],i=t;i<e;i+=2)r.push(String.fromCharCode(Mh(n,i)));return r.join(\"\").replace(ii,\"\")},gy=Es,po=function(n,t,e){for(var r=[],i=t;i<t+e;++i)r.push((\"0\"+n[i].toString(16)).slice(-2));return r.join(\"\")},by=po,_h=function(n){if(Array.isArray(n[0]))return[].concat.apply([],n);var t=0,e=0;for(e=0;e<n.length;++e)t+=n[e].length;var r=new Uint8Array(t);for(e=0,t=0;e<n.length;t+=n[e].length,++e)r.set(n[e],t);return r},An=_h;Ze&&(Es=function(n,t,e){return Buffer.isBuffer(n)?n.toString(\"utf16le\",t,e).replace(ii,\"\"):gy(n,t,e)},po=function(n,t,e){return Buffer.isBuffer(n)?n.toString(\"hex\",t,t+e):by(n,t,e)},fo=function(n){return n[0].length>0&&Buffer.isBuffer(n[0][0])?Buffer.concat(n[0]):my(n)},kn=function(n){return Ss(n,\"binary\")},An=function(n){return Buffer.isBuffer(n[0])?Buffer.concat(n):_h(n)});var yy=function(n,t){return n[t]},Mh=function(n,t){return n[t+1]*256+n[t]},xy=function(n,t){var e=n[t+1]*256+n[t];return e<32768?e:(65535-e+1)*-1},Ih=function(n,t){return n[t+3]*(1<<24)+(n[t+2]<<16)+(n[t+1]<<8)+n[t]},Cn=function(n,t){return(n[t+3]<<24)+(n[t+2]<<16)+(n[t+1]<<8)+n[t]};function Fh(n,t){var e,r,i=0;switch(n){case 1:e=yy(this,this.l);break;case 2:e=(t!==\"i\"?Mh:xy)(this,this.l);break;case 4:e=Cn(this,this.l);break;case 16:i=2,r=po(this,this.l,n)}return this.l+=n,i===0?e:r}var wy=function(n,t,e){n[e]=t&255,n[e+1]=t>>>8&255,n[e+2]=t>>>16&255,n[e+3]=t>>>24&255},vy=function(n,t,e){n[e]=t&255,n[e+1]=t>>8&255,n[e+2]=t>>16&255,n[e+3]=t>>24&255};function Ty(n,t,e){var r=0,i=0;switch(e){case\"hex\":for(;i<n;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this;case\"utf16le\":var o=this.l+n;for(i=0;i<Math.min(t.length,n);++i){var a=t.charCodeAt(i);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(n){case 1:r=1,this[this.l]=t&255;break;case 2:r=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 4:r=4,wy(this,t,this.l);break;case-4:r=4,vy(this,t,this.l);break}return this.l+=r,this}function Dh(n,t){var e=po(this,this.l,n.length>>1);if(e!==n)throw new Error(t+\"Expected \"+n+\" saw \"+e);this.l+=n.length>>1}function Gr(n,t){n.l=t,n.read_shift=Fh,n.chk=Dh,n.write_shift=Ty}function dr(n){var t=Lh(n);return Gr(t,0),t}var Oh=(function(){var n={};n.version=\"1.2.1\";function t(){for(var k=0,W=new Array(256),U=0;U!=256;++U)k=U,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,W[U]=k;return typeof Int32Array<\"u\"?new Int32Array(W):W}var e=t();function r(k){var W=0,U=0,v=0,_=typeof Int32Array<\"u\"?new Int32Array(4096):new Array(4096);for(v=0;v!=256;++v)_[v]=k[v];for(v=0;v!=256;++v)for(U=k[v],W=256+v;W<4096;W+=256)U=_[W]=U>>>8^k[U&255];var y=[];for(v=1;v!=16;++v)y[v-1]=typeof Int32Array<\"u\"?_.subarray(v*256,v*256+256):_.slice(v*256,v*256+256);return y}var i=r(e),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],h=i[5],u=i[6],f=i[7],d=i[8],p=i[9],m=i[10],g=i[11],b=i[12],T=i[13],S=i[14];function I(k,W){for(var U=W^-1,v=0,_=k.length;v<_;)U=U>>>8^e[(U^k.charCodeAt(v++))&255];return~U}function O(k,W){for(var U=W^-1,v=k.length-15,_=0;_<v;)U=S[k[_++]^U&255]^T[k[_++]^U>>8&255]^b[k[_++]^U>>16&255]^g[k[_++]^U>>>24]^m[k[_++]]^p[k[_++]]^d[k[_++]]^f[k[_++]]^u[k[_++]]^h[k[_++]]^c[k[_++]]^l[k[_++]]^s[k[_++]]^a[k[_++]]^o[k[_++]]^e[k[_++]];for(v+=15;_<v;)U=U>>>8^e[(U^k[_++])&255];return~U}function $(k,W){for(var U=W^-1,v=0,_=k.length,y=0,H=0;v<_;)y=k.charCodeAt(v++),y<128?U=U>>>8^e[(U^y)&255]:y<2048?(U=U>>>8^e[(U^(192|y>>6&31))&255],U=U>>>8^e[(U^(128|y&63))&255]):y>=55296&&y<57344?(y=(y&1023)+64,H=k.charCodeAt(v++)&1023,U=U>>>8^e[(U^(240|y>>8&7))&255],U=U>>>8^e[(U^(128|y>>2&63))&255],U=U>>>8^e[(U^(128|H>>6&15|(y&3)<<4))&255],U=U>>>8^e[(U^(128|H&63))&255]):(U=U>>>8^e[(U^(224|y>>12&15))&255],U=U>>>8^e[(U^(128|y>>6&63))&255],U=U>>>8^e[(U^(128|y&63))&255]);return~U}return n.table=e,n.bstr=I,n.buf=O,n.str=$,n})(),Nn=(function(){var t={};t.version=\"1.2.2\";function e(E,L){for(var N=E.split(\"/\"),P=L.split(\"/\"),M=0,F=0,K=Math.min(N.length,P.length);M<K;++M){if(F=N[M].length-P[M].length)return F;if(N[M]!=P[M])return N[M]<P[M]?-1:1}return N.length-P.length}function r(E){if(E.charAt(E.length-1)==\"/\")return E.slice(0,-1).indexOf(\"/\")===-1?E:r(E.slice(0,-1));var L=E.lastIndexOf(\"/\");return L===-1?E:E.slice(0,L+1)}function i(E){if(E.charAt(E.length-1)==\"/\")return i(E.slice(0,-1));var L=E.lastIndexOf(\"/\");return L===-1?E:E.slice(L+1)}function o(E,L){typeof L==\"string\"&&(L=new Date(L));var N=L.getHours();N=N<<6|L.getMinutes(),N=N<<5|L.getSeconds()>>>1,E.write_shift(2,N);var P=L.getFullYear()-1980;P=P<<4|L.getMonth()+1,P=P<<5|L.getDate(),E.write_shift(2,P)}function a(E){var L=E.read_shift(2)&65535,N=E.read_shift(2)&65535,P=new Date,M=N&31;N>>>=5;var F=N&15;N>>>=4,P.setMilliseconds(0),P.setFullYear(N+1980),P.setMonth(F-1),P.setDate(M);var K=L&31;L>>>=5;var rt=L&63;return L>>>=6,P.setHours(L),P.setMinutes(rt),P.setSeconds(K<<1),P}function s(E){Gr(E,0);for(var L={},N=0;E.l<=E.length-4;){var P=E.read_shift(2),M=E.read_shift(2),F=E.l+M,K={};P===21589&&(N=E.read_shift(1),N&1&&(K.mtime=E.read_shift(4)),M>5&&(N&2&&(K.atime=E.read_shift(4)),N&4&&(K.ctime=E.read_shift(4))),K.mtime&&(K.mt=new Date(K.mtime*1e3))),E.l=F,L[P]=K}return L}var l;function c(){return l||(l=Ch())}function h(E,L){if(E[0]==80&&E[1]==75)return Qe(E,L);if((E[0]|32)==109&&(E[1]|32)==105)return li(E,L);if(E.length<512)throw new Error(\"CFB file size \"+E.length+\" < 512\");var N=3,P=512,M=0,F=0,K=0,rt=0,q=0,Z=[],j=E.slice(0,512);Gr(j,0);var mt=u(j);switch(N=mt[0],N){case 3:P=512;break;case 4:P=4096;break;case 0:if(mt[1]==0)return Qe(E,L);default:throw new Error(\"Major Version: Expected 3 or 4 saw \"+N)}P!==512&&(j=E.slice(0,P),Gr(j,28));var yt=E.slice(0,P);f(j,N);var kt=j.read_shift(4,\"i\");if(N===3&&kt!==0)throw new Error(\"# Directory Sectors: Expected 0 saw \"+kt);j.l+=4,K=j.read_shift(4,\"i\"),j.l+=4,j.chk(\"00100000\",\"Mini Stream Cutoff Size: \"),rt=j.read_shift(4,\"i\"),M=j.read_shift(4,\"i\"),q=j.read_shift(4,\"i\"),F=j.read_shift(4,\"i\");for(var xt=-1,vt=0;vt<109&&(xt=j.read_shift(4,\"i\"),!(xt<0));++vt)Z[vt]=xt;var Ot=d(E,P);g(q,F,Ot,P,Z);var Jt=T(Ot,K,Z,P);Jt[K].name=\"!Directory\",M>0&&rt!==H&&(Jt[rt].name=\"!MiniFAT\"),Jt[Z[0]].name=\"!FAT\",Jt.fat_addrs=Z,Jt.ssz=P;var pe={},ie=[],Ee=[],Oe=[];S(K,Jt,Ot,ie,M,pe,Ee,rt),p(Ee,Oe,ie),ie.shift();var Lr={FileIndex:Ee,FullPaths:Oe};return L&&L.raw&&(Lr.raw={header:yt,sectors:Ot}),Lr}function u(E){if(E[E.l]==80&&E[E.l+1]==75)return[0,0];E.chk(nt,\"Header Signature: \"),E.l+=16;var L=E.read_shift(2,\"u\");return[E.read_shift(2,\"u\"),L]}function f(E,L){var N=9;switch(E.l+=2,N=E.read_shift(2)){case 9:if(L!=3)throw new Error(\"Sector Shift: Expected 9 saw \"+N);break;case 12:if(L!=4)throw new Error(\"Sector Shift: Expected 12 saw \"+N);break;default:throw new Error(\"Sector Shift: Expected 9 or 12 saw \"+N)}E.chk(\"0600\",\"Mini Sector Shift: \"),E.chk(\"000000000000\",\"Reserved: \")}function d(E,L){for(var N=Math.ceil(E.length/L)-1,P=[],M=1;M<N;++M)P[M-1]=E.slice(M*L,(M+1)*L);return P[N-1]=E.slice(N*L),P}function p(E,L,N){for(var P=0,M=0,F=0,K=0,rt=0,q=N.length,Z=[],j=[];P<q;++P)Z[P]=j[P]=P,L[P]=N[P];for(;rt<j.length;++rt)P=j[rt],M=E[P].L,F=E[P].R,K=E[P].C,Z[P]===P&&(M!==-1&&Z[M]!==M&&(Z[P]=Z[M]),F!==-1&&Z[F]!==F&&(Z[P]=Z[F])),K!==-1&&(Z[K]=P),M!==-1&&P!=Z[P]&&(Z[M]=Z[P],j.lastIndexOf(M)<rt&&j.push(M)),F!==-1&&P!=Z[P]&&(Z[F]=Z[P],j.lastIndexOf(F)<rt&&j.push(F));for(P=1;P<q;++P)Z[P]===P&&(F!==-1&&Z[F]!==F?Z[P]=Z[F]:M!==-1&&Z[M]!==M&&(Z[P]=Z[M]));for(P=1;P<q;++P)if(E[P].type!==0){if(rt=P,rt!=Z[rt])do rt=Z[rt],L[P]=L[rt]+\"/\"+L[P];while(rt!==0&&Z[rt]!==-1&&rt!=Z[rt]);Z[P]=-1}for(L[0]+=\"/\",P=1;P<q;++P)E[P].type!==2&&(L[P]+=\"/\")}function m(E,L,N){for(var P=E.start,M=E.size,F=[],K=P;N&&M>0&&K>=0;)F.push(L.slice(K*y,K*y+y)),M-=y,K=Cn(N,K*4);return F.length===0?dr(0):An(F).slice(0,E.size)}function g(E,L,N,P,M){var F=H;if(E===H){if(L!==0)throw new Error(\"DIFAT chain shorter than expected\")}else if(E!==-1){var K=N[E],rt=(P>>>2)-1;if(!K)return;for(var q=0;q<rt&&(F=Cn(K,q*4))!==H;++q)M.push(F);L>=1&&g(Cn(K,P-4),L-1,N,P,M)}}function b(E,L,N,P,M){var F=[],K=[];M||(M=[]);var rt=P-1,q=0,Z=0;for(q=L;q>=0;){M[q]=!0,F[F.length]=q,K.push(E[q]);var j=N[Math.floor(q*4/P)];if(Z=q*4&rt,P<4+Z)throw new Error(\"FAT boundary crossed: \"+q+\" 4 \"+P);if(!E[j])break;q=Cn(E[j],Z)}return{nodes:F,data:fo([K])}}function T(E,L,N,P){var M=E.length,F=[],K=[],rt=[],q=[],Z=P-1,j=0,mt=0,yt=0,kt=0;for(j=0;j<M;++j)if(rt=[],yt=j+L,yt>=M&&(yt-=M),!K[yt]){q=[];var xt=[];for(mt=yt;mt>=0;){xt[mt]=!0,K[mt]=!0,rt[rt.length]=mt,q.push(E[mt]);var vt=N[Math.floor(mt*4/P)];if(kt=mt*4&Z,P<4+kt)throw new Error(\"FAT boundary crossed: \"+mt+\" 4 \"+P);if(!E[vt]||(mt=Cn(E[vt],kt),xt[mt]))break}F[yt]={nodes:rt,data:fo([q])}}return F}function S(E,L,N,P,M,F,K,rt){for(var q=0,Z=P.length?2:0,j=L[E].data,mt=0,yt=0,kt;mt<j.length;mt+=128){var xt=j.slice(mt,mt+128);Gr(xt,64),yt=xt.read_shift(2),kt=Es(xt,0,yt-Z),P.push(kt);var vt={name:kt,type:xt.read_shift(1),color:xt.read_shift(1),L:xt.read_shift(4,\"i\"),R:xt.read_shift(4,\"i\"),C:xt.read_shift(4,\"i\"),clsid:xt.read_shift(16),state:xt.read_shift(4,\"i\"),start:0,size:0},Ot=xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2);Ot!==0&&(vt.ct=I(xt,xt.l-8));var Jt=xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2);Jt!==0&&(vt.mt=I(xt,xt.l-8)),vt.start=xt.read_shift(4,\"i\"),vt.size=xt.read_shift(4,\"i\"),vt.size<0&&vt.start<0&&(vt.size=vt.type=0,vt.start=H,vt.name=\"\"),vt.type===5?(q=vt.start,M>0&&q!==H&&(L[q].name=\"!StreamData\")):vt.size>=4096?(vt.storage=\"fat\",L[vt.start]===void 0&&(L[vt.start]=b(N,vt.start,L.fat_addrs,L.ssz)),L[vt.start].name=vt.name,vt.content=L[vt.start].data.slice(0,vt.size)):(vt.storage=\"minifat\",vt.size<0?vt.size=0:q!==H&&vt.start!==H&&L[q]&&(vt.content=m(vt,L[q].data,(L[rt]||{}).data))),vt.content&&Gr(vt.content,0),F[kt]=vt,K.push(vt)}}function I(E,L){return new Date((Ih(E,L+4)/1e7*Math.pow(2,32)+Ih(E,L)/1e7-11644473600)*1e3)}function O(E,L){return c(),h(l.readFileSync(E),L)}function $(E,L){var N=L&&L.type;switch(N||Ze&&Buffer.isBuffer(E)&&(N=\"buffer\"),N||\"base64\"){case\"file\":return O(E,L);case\"base64\":return h(kn(Rh(E)),L);case\"binary\":return h(kn(E),L)}return h(E,L)}function k(E,L){var N=L||{},P=N.root||\"Root Entry\";if(E.FullPaths||(E.FullPaths=[]),E.FileIndex||(E.FileIndex=[]),E.FullPaths.length!==E.FileIndex.length)throw new Error(\"inconsistent CFB structure\");E.FullPaths.length===0&&(E.FullPaths[0]=P+\"/\",E.FileIndex[0]={name:P,type:5}),N.CLSID&&(E.FileIndex[0].clsid=N.CLSID),W(E)}function W(E){var L=\"\u0001Sh33tJ5\";if(!Nn.find(E,\"/\"+L)){var N=dr(4);N[0]=55,N[1]=N[3]=50,N[2]=54,E.FileIndex.push({name:L,type:2,content:N,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+L),U(E)}}function U(E,L){k(E);for(var N=!1,P=!1,M=E.FullPaths.length-1;M>=0;--M){var F=E.FileIndex[M];switch(F.type){case 0:P?N=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:P=!0,isNaN(F.R*F.L*F.C)&&(N=!0),F.R>-1&&F.L>-1&&F.R==F.L&&(N=!0);break;default:N=!0;break}}if(!(!N&&!L)){var K=new Date(1987,1,19),rt=0,q=Object.create?Object.create(null):{},Z=[];for(M=0;M<E.FullPaths.length;++M)q[E.FullPaths[M]]=!0,E.FileIndex[M].type!==0&&Z.push([E.FullPaths[M],E.FileIndex[M]]);for(M=0;M<Z.length;++M){var j=r(Z[M][0]);for(P=q[j];!P;){for(;r(j)&&!q[r(j)];)j=r(j);Z.push([j,{name:i(j).replace(\"/\",\"\"),type:1,clsid:lt,ct:K,mt:K,content:null}]),q[j]=!0,j=r(Z[M][0]),P=q[j]}}for(Z.sort(function(kt,xt){return e(kt[0],xt[0])}),E.FullPaths=[],E.FileIndex=[],M=0;M<Z.length;++M)E.FullPaths[M]=Z[M][0],E.FileIndex[M]=Z[M][1];for(M=0;M<Z.length;++M){var mt=E.FileIndex[M],yt=E.FullPaths[M];if(mt.name=i(yt).replace(\"/\",\"\"),mt.L=mt.R=mt.C=-(mt.color=1),mt.size=mt.content?mt.content.length:0,mt.start=0,mt.clsid=mt.clsid||lt,M===0)mt.C=Z.length>1?1:-1,mt.size=0,mt.type=5;else if(yt.slice(-1)==\"/\"){for(rt=M+1;rt<Z.length&&r(E.FullPaths[rt])!=yt;++rt);for(mt.C=rt>=Z.length?-1:rt,rt=M+1;rt<Z.length&&r(E.FullPaths[rt])!=r(yt);++rt);mt.R=rt>=Z.length?-1:rt,mt.type=1}else r(E.FullPaths[M+1]||\"\")==r(yt)&&(mt.R=M+1),mt.type=2}}}function v(E,L){var N=L||{};if(N.fileType==\"mad\")return ci(E,N);if(U(E),N.fileType===\"zip\")return Rn(E,N);var P=(function(kt){for(var xt=0,vt=0,Ot=0;Ot<kt.FileIndex.length;++Ot){var Jt=kt.FileIndex[Ot];if(Jt.content){var pe=Jt.content.length;pe>0&&(pe<4096?xt+=pe+63>>6:vt+=pe+511>>9)}}for(var ie=kt.FullPaths.length+3>>2,Ee=xt+7>>3,Oe=xt+127>>7,Lr=Ee+vt+ie+Oe,tr=Lr+127>>7,ar=tr<=109?0:Math.ceil((tr-109)/127);Lr+tr+ar+127>>7>tr;)ar=++tr<=109?0:Math.ceil((tr-109)/127);var Ye=[1,ar,tr,Oe,ie,vt,xt,0];return kt.FileIndex[0].size=xt<<6,Ye[7]=(kt.FileIndex[0].start=Ye[0]+Ye[1]+Ye[2]+Ye[3]+Ye[4]+Ye[5])+(Ye[6]+7>>3),Ye})(E),M=dr(P[7]<<9),F=0,K=0;{for(F=0;F<8;++F)M.write_shift(1,J[F]);for(F=0;F<8;++F)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),F=0;F<3;++F)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,P[2]),M.write_shift(4,P[0]+P[1]+P[2]+P[3]-1),M.write_shift(4,0),M.write_shift(4,4096),M.write_shift(4,P[3]?P[0]+P[1]+P[2]-1:H),M.write_shift(4,P[3]),M.write_shift(-4,P[1]?P[0]-1:H),M.write_shift(4,P[1]),F=0;F<109;++F)M.write_shift(-4,F<P[2]?P[1]+F:-1)}if(P[1])for(K=0;K<P[1];++K){for(;F<236+K*127;++F)M.write_shift(-4,F<P[2]?P[1]+F:-1);M.write_shift(-4,K===P[1]-1?H:K+1)}var rt=function(kt){for(K+=kt;F<K-1;++F)M.write_shift(-4,F+1);kt&&(++F,M.write_shift(-4,H))};for(K=F=0,K+=P[1];F<K;++F)M.write_shift(-4,ot.DIFSECT);for(K+=P[2];F<K;++F)M.write_shift(-4,ot.FATSECT);rt(P[3]),rt(P[4]);for(var q=0,Z=0,j=E.FileIndex[0];q<E.FileIndex.length;++q)j=E.FileIndex[q],j.content&&(Z=j.content.length,!(Z<4096)&&(j.start=K,rt(Z+511>>9)));for(rt(P[6]+7>>3);M.l&511;)M.write_shift(-4,ot.ENDOFCHAIN);for(K=F=0,q=0;q<E.FileIndex.length;++q)j=E.FileIndex[q],j.content&&(Z=j.content.length,!(!Z||Z>=4096)&&(j.start=K,rt(Z+63>>6)));for(;M.l&511;)M.write_shift(-4,ot.ENDOFCHAIN);for(F=0;F<P[4]<<2;++F){var mt=E.FullPaths[F];if(!mt||mt.length===0){for(q=0;q<17;++q)M.write_shift(4,0);for(q=0;q<3;++q)M.write_shift(4,-1);for(q=0;q<12;++q)M.write_shift(4,0);continue}j=E.FileIndex[F],F===0&&(j.start=j.size?j.start-1:H);var yt=F===0&&N.root||j.name;if(yt.length>32&&(console.error(\"Name \"+yt+\" will be truncated to \"+yt.slice(0,32)),yt=yt.slice(0,32)),Z=2*(yt.length+1),M.write_shift(64,yt,\"utf16le\"),M.write_shift(2,Z),M.write_shift(1,j.type),M.write_shift(1,j.color),M.write_shift(-4,j.L),M.write_shift(-4,j.R),M.write_shift(-4,j.C),j.clsid)M.write_shift(16,j.clsid,\"hex\");else for(q=0;q<4;++q)M.write_shift(4,0);M.write_shift(4,j.state||0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,j.start),M.write_shift(4,j.size),M.write_shift(4,0)}for(F=1;F<E.FileIndex.length;++F)if(j=E.FileIndex[F],j.size>=4096)if(M.l=j.start+1<<9,Ze&&Buffer.isBuffer(j.content))j.content.copy(M,M.l,0,j.size),M.l+=j.size+511&-512;else{for(q=0;q<j.size;++q)M.write_shift(1,j.content[q]);for(;q&511;++q)M.write_shift(1,0)}for(F=1;F<E.FileIndex.length;++F)if(j=E.FileIndex[F],j.size>0&&j.size<4096)if(Ze&&Buffer.isBuffer(j.content))j.content.copy(M,M.l,0,j.size),M.l+=j.size+63&-64;else{for(q=0;q<j.size;++q)M.write_shift(1,j.content[q]);for(;q&63;++q)M.write_shift(1,0)}if(Ze)M.l=M.length;else for(;M.l<M.length;)M.write_shift(1,0);return M}function _(E,L){var N=E.FullPaths.map(function(q){return q.toUpperCase()}),P=N.map(function(q){var Z=q.split(\"/\");return Z[Z.length-(q.slice(-1)==\"/\"?2:1)]}),M=!1;L.charCodeAt(0)===47?(M=!0,L=N[0].slice(0,-1)+L):M=L.indexOf(\"/\")!==-1;var F=L.toUpperCase(),K=M===!0?N.indexOf(F):P.indexOf(F);if(K!==-1)return E.FileIndex[K];var rt=!F.match(ho);for(F=F.replace(ii,\"\"),rt&&(F=F.replace(ho,\"!\")),K=0;K<N.length;++K)if((rt?N[K].replace(ho,\"!\"):N[K]).replace(ii,\"\")==F||(rt?P[K].replace(ho,\"!\"):P[K]).replace(ii,\"\")==F)return E.FileIndex[K];return null}var y=64,H=-2,nt=\"d0cf11e0a1b11ae1\",J=[208,207,17,224,161,177,26,225],lt=\"00000000000000000000000000000000\",ot={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:nt,HEADER_MINOR_VERSION:\"3e00\",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:lt,EntryTypes:[\"unknown\",\"storage\",\"stream\",\"lockbytes\",\"property\",\"root\"]};function et(E,L,N){c();var P=v(E,N);l.writeFileSync(L,P)}function B(E){for(var L=new Array(E.length),N=0;N<E.length;++N)L[N]=String.fromCharCode(E[N]);return L.join(\"\")}function z(E,L){var N=v(E,L);switch(L&&L.type||\"buffer\"){case\"file\":return c(),l.writeFileSync(L.filename,N),N;case\"binary\":return typeof N==\"string\"?N:B(N);case\"base64\":return Nh(typeof N==\"string\"?N:B(N));case\"buffer\":if(Ze)return Buffer.isBuffer(N)?N:Ss(N);case\"array\":return typeof N==\"string\"?kn(N):N}return N}var st;function dt(E){try{var L=E.InflateRaw,N=new L;if(N._processChunk(new Uint8Array([3,0]),N._finishFlushFlag),N.bytesRead)st=E;else throw new Error(\"zlib does not expose bytesRead\")}catch(P){console.error(\"cannot use native zlib: \"+(P.message||P))}}function ft(E,L){if(!st)return Vr(E,L);var N=st.InflateRaw,P=new N,M=P._processChunk(E.slice(E.l),P._finishFlushFlag);return E.l+=P.bytesRead,M}function Ft(E){return st?st.deflateRawSync(E):Te(E)}var Xt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Et=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],_t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Kt(E){var L=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(L>>16|L>>8|L)&255}for(var Pt=typeof Uint8Array<\"u\",jt=Pt?new Uint8Array(256):[],qt=0;qt<256;++qt)jt[qt]=Kt(qt);function x(E,L){var N=jt[E&255];return L<=8?N>>>8-L:(N=N<<8|jt[E>>8&255],L<=16?N>>>16-L:(N=N<<8|jt[E>>16&255],N>>>24-L))}function it(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=6?0:E[P+1]<<8))>>>N&3}function Q(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=5?0:E[P+1]<<8))>>>N&7}function D(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=4?0:E[P+1]<<8))>>>N&15}function R(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=3?0:E[P+1]<<8))>>>N&31}function G(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=1?0:E[P+1]<<8))>>>N&127}function tt(E,L,N){var P=L&7,M=L>>>3,F=(1<<N)-1,K=E[M]>>>P;return N<8-P||(K|=E[M+1]<<8-P,N<16-P)||(K|=E[M+2]<<16-P,N<24-P)||(K|=E[M+3]<<24-P),K&F}function ht(E,L,N){var P=L&7,M=L>>>3;return P<=5?E[M]|=(N&7)<<P:(E[M]|=N<<P&255,E[M+1]=(N&7)>>8-P),L+3}function V(E,L,N){var P=L&7,M=L>>>3;return N=(N&1)<<P,E[M]|=N,L+1}function gt(E,L,N){var P=L&7,M=L>>>3;return N<<=P,E[M]|=N&255,N>>>=8,E[M+1]=N,L+8}function St(E,L,N){var P=L&7,M=L>>>3;return N<<=P,E[M]|=N&255,N>>>=8,E[M+1]=N&255,E[M+2]=N>>>8,L+16}function bt(E,L){var N=E.length,P=2*N>L?2*N:L+5,M=0;if(N>=L)return E;if(Ze){var F=Ph(P);if(E.copy)E.copy(F);else for(;M<E.length;++M)F[M]=E[M];return F}else if(Pt){var K=new Uint8Array(P);if(K.set)K.set(E);else for(;M<N;++M)K[M]=E[M];return K}return E.length=P,E}function At(E){for(var L=new Array(E),N=0;N<E;++N)L[N]=0;return L}function zt(E,L,N){var P=1,M=0,F=0,K=0,rt=0,q=E.length,Z=Pt?new Uint16Array(32):At(32);for(F=0;F<32;++F)Z[F]=0;for(F=q;F<N;++F)E[F]=0;q=E.length;var j=Pt?new Uint16Array(q):At(q);for(F=0;F<q;++F)Z[M=E[F]]++,P<M&&(P=M),j[F]=0;for(Z[0]=0,F=1;F<=P;++F)Z[F+16]=rt=rt+Z[F-1]<<1;for(F=0;F<q;++F)rt=E[F],rt!=0&&(j[F]=Z[rt+16]++);var mt=0;for(F=0;F<q;++F)if(mt=E[F],mt!=0)for(rt=x(j[F],P)>>P-mt,K=(1<<P+4-mt)-1;K>=0;--K)L[rt|K<<mt]=mt&15|F<<4;return P}var Mt=Pt?new Uint16Array(512):At(512),ue=Pt?new Uint16Array(32):At(32);if(!Pt){for(var re=0;re<512;++re)Mt[re]=0;for(re=0;re<32;++re)ue[re]=0}(function(){for(var E=[],L=0;L<32;L++)E.push(5);zt(E,ue,32);var N=[];for(L=0;L<=143;L++)N.push(8);for(;L<=255;L++)N.push(9);for(;L<=279;L++)N.push(7);for(;L<=287;L++)N.push(8);zt(N,Mt,288)})();var he=(function(){for(var L=Pt?new Uint8Array(32768):[],N=0,P=0;N<_t.length-1;++N)for(;P<_t[N+1];++P)L[P]=N;for(;P<32768;++P)L[P]=29;var M=Pt?new Uint8Array(259):[];for(N=0,P=0;N<Et.length-1;++N)for(;P<Et[N+1];++P)M[P]=N;function F(rt,q){for(var Z=0;Z<rt.length;){var j=Math.min(65535,rt.length-Z),mt=Z+j==rt.length;for(q.write_shift(1,+mt),q.write_shift(2,j),q.write_shift(2,~j&65535);j-- >0;)q[q.l++]=rt[Z++]}return q.l}function K(rt,q){for(var Z=0,j=0,mt=Pt?new Uint16Array(32768):[];j<rt.length;){var yt=Math.min(65535,rt.length-j);if(yt<10){for(Z=ht(q,Z,+(j+yt==rt.length)),Z&7&&(Z+=8-(Z&7)),q.l=Z/8|0,q.write_shift(2,yt),q.write_shift(2,~yt&65535);yt-- >0;)q[q.l++]=rt[j++];Z=q.l*8;continue}Z=ht(q,Z,+(j+yt==rt.length)+2);for(var kt=0;yt-- >0;){var xt=rt[j];kt=(kt<<5^xt)&32767;var vt=-1,Ot=0;if((vt=mt[kt])&&(vt|=j&-32768,vt>j&&(vt-=32768),vt<j))for(;rt[vt+Ot]==rt[j+Ot]&&Ot<250;)++Ot;if(Ot>2){xt=M[Ot],xt<=22?Z=gt(q,Z,jt[xt+1]>>1)-1:(gt(q,Z,3),Z+=5,gt(q,Z,jt[xt-23]>>5),Z+=3);var Jt=xt<8?0:xt-4>>2;Jt>0&&(St(q,Z,Ot-Et[xt]),Z+=Jt),xt=L[j-vt],Z=gt(q,Z,jt[xt]>>3),Z-=3;var pe=xt<4?0:xt-2>>1;pe>0&&(St(q,Z,j-vt-_t[xt]),Z+=pe);for(var ie=0;ie<Ot;++ie)mt[kt]=j&32767,kt=(kt<<5^rt[j])&32767,++j;yt-=Ot-1}else xt<=143?xt=xt+48:Z=V(q,Z,1),Z=gt(q,Z,jt[xt]),mt[kt]=j&32767,++j}Z=gt(q,Z,0)-1}return q.l=(Z+7)/8|0,q.l}return function(q,Z){return q.length<8?F(q,Z):K(q,Z)}})();function Te(E){var L=dr(50+Math.floor(E.length*1.1)),N=he(E,L);return L.slice(0,N)}var Zt=Pt?new Uint16Array(32768):At(32768),We=Pt?new Uint16Array(32768):At(32768),Je=Pt?new Uint16Array(128):At(128),Se=1,He=1;function Nr(E,L){var N=R(E,L)+257;L+=5;var P=R(E,L)+1;L+=5;var M=D(E,L)+4;L+=4;for(var F=0,K=Pt?new Uint8Array(19):At(19),rt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q=1,Z=Pt?new Uint8Array(8):At(8),j=Pt?new Uint8Array(8):At(8),mt=K.length,yt=0;yt<M;++yt)K[Xt[yt]]=F=Q(E,L),q<F&&(q=F),Z[F]++,L+=3;var kt=0;for(Z[0]=0,yt=1;yt<=q;++yt)j[yt]=kt=kt+Z[yt-1]<<1;for(yt=0;yt<mt;++yt)(kt=K[yt])!=0&&(rt[yt]=j[kt]++);var xt=0;for(yt=0;yt<mt;++yt)if(xt=K[yt],xt!=0){kt=jt[rt[yt]]>>8-xt;for(var vt=(1<<7-xt)-1;vt>=0;--vt)Je[kt|vt<<xt]=xt&7|yt<<3}var Ot=[];for(q=1;Ot.length<N+P;)switch(kt=Je[G(E,L)],L+=kt&7,kt>>>=3){case 16:for(F=3+it(E,L),L+=2,kt=Ot[Ot.length-1];F-- >0;)Ot.push(kt);break;case 17:for(F=3+Q(E,L),L+=3;F-- >0;)Ot.push(0);break;case 18:for(F=11+G(E,L),L+=7;F-- >0;)Ot.push(0);break;default:Ot.push(kt),q<kt&&(q=kt);break}var Jt=Ot.slice(0,N),pe=Ot.slice(N);for(yt=N;yt<286;++yt)Jt[yt]=0;for(yt=P;yt<30;++yt)pe[yt]=0;return Se=zt(Jt,Zt,286),He=zt(pe,We,30),L}function Rr(E,L){if(E[0]==3&&!(E[1]&3))return[Lh(L),2];for(var N=0,P=0,M=Ph(L||1<<18),F=0,K=M.length>>>0,rt=0,q=0;(P&1)==0;){if(P=Q(E,N),N+=3,P>>>1)P>>1==1?(rt=9,q=5):(N=Nr(E,N),rt=Se,q=He);else{N&7&&(N+=8-(N&7));var Z=E[N>>>3]|E[(N>>>3)+1]<<8;if(N+=32,Z>0)for(!L&&K<F+Z&&(M=bt(M,F+Z),K=M.length);Z-- >0;)M[F++]=E[N>>>3],N+=8;continue}for(;;){!L&&K<F+32767&&(M=bt(M,F+32767),K=M.length);var j=tt(E,N,rt),mt=P>>>1==1?Mt[j]:Zt[j];if(N+=mt&15,mt>>>=4,(mt>>>8&255)===0)M[F++]=mt;else{if(mt==256)break;mt-=257;var yt=mt<8?0:mt-4>>2;yt>5&&(yt=0);var kt=F+Et[mt];yt>0&&(kt+=tt(E,N,yt),N+=yt),j=tt(E,N,q),mt=P>>>1==1?ue[j]:We[j],N+=mt&15,mt>>>=4;var xt=mt<4?0:mt-2>>1,vt=_t[mt];for(xt>0&&(vt+=tt(E,N,xt),N+=xt),!L&&K<kt&&(M=bt(M,kt+100),K=M.length);F<kt;)M[F]=M[F-vt],++F}}}return L?[M,N+7>>>3]:[M.slice(0,F),N+7>>>3]}function Vr(E,L){var N=E.slice(E.l||0),P=Rr(N,L);return E.l+=P[1],P[0]}function fr(E,L){if(E)typeof console<\"u\"&&console.error(L);else throw new Error(L)}function Qe(E,L){var N=E;Gr(N,0);var P=[],M=[],F={FileIndex:P,FullPaths:M};k(F,{root:L.root});for(var K=N.length-4;(N[K]!=80||N[K+1]!=75||N[K+2]!=5||N[K+3]!=6)&&K>=0;)--K;N.l=K+4,N.l+=4;var rt=N.read_shift(2);N.l+=6;var q=N.read_shift(4);for(N.l=q,K=0;K<rt;++K){N.l+=20;var Z=N.read_shift(4),j=N.read_shift(4),mt=N.read_shift(2),yt=N.read_shift(2),kt=N.read_shift(2);N.l+=8;var xt=N.read_shift(4),vt=s(N.slice(N.l+mt,N.l+mt+yt));N.l+=mt+yt+kt;var Ot=N.l;N.l=xt+4,or(N,Z,j,F,vt),N.l=Ot}return F}function or(E,L,N,P,M){E.l+=2;var F=E.read_shift(2),K=E.read_shift(2),rt=a(E);if(F&8257)throw new Error(\"Unsupported ZIP encryption\");for(var q=E.read_shift(4),Z=E.read_shift(4),j=E.read_shift(4),mt=E.read_shift(2),yt=E.read_shift(2),kt=\"\",xt=0;xt<mt;++xt)kt+=String.fromCharCode(E[E.l++]);if(yt){var vt=s(E.slice(E.l,E.l+yt));(vt[21589]||{}).mt&&(rt=vt[21589].mt),((M||{})[21589]||{}).mt&&(rt=M[21589].mt)}E.l+=yt;var Ot=E.slice(E.l,E.l+Z);switch(K){case 8:Ot=ft(E,j);break;case 0:break;default:throw new Error(\"Unsupported ZIP Compression method \"+K)}var Jt=!1;F&8&&(q=E.read_shift(4),q==134695760&&(q=E.read_shift(4),Jt=!0),Z=E.read_shift(4),j=E.read_shift(4)),Z!=L&&fr(Jt,\"Bad compressed size: \"+L+\" != \"+Z),j!=N&&fr(Jt,\"Bad uncompressed size: \"+N+\" != \"+j);var pe=Oh.buf(Ot,0);q>>0!=pe>>0&&fr(Jt,\"Bad CRC32 checksum: \"+q+\" != \"+pe),Ir(P,kt,Ot,{unsafe:!0,mt:rt})}function Rn(E,L){var N=L||{},P=[],M=[],F=dr(1),K=N.compression?8:0,rt=0,q=!1;q&&(rt|=8);var Z=0,j=0,mt=0,yt=0,kt=E.FullPaths[0],xt=kt,vt=E.FileIndex[0],Ot=[],Jt=0;for(Z=1;Z<E.FullPaths.length;++Z)if(xt=E.FullPaths[Z].slice(kt.length),vt=E.FileIndex[Z],!(!vt.size||!vt.content||xt==\"\u0001Sh33tJ5\")){var pe=mt,ie=dr(xt.length);for(j=0;j<xt.length;++j)ie.write_shift(1,xt.charCodeAt(j)&127);ie=ie.slice(0,ie.l),Ot[yt]=Oh.buf(vt.content,0);var Ee=vt.content;K==8&&(Ee=Ft(Ee)),F=dr(30),F.write_shift(4,67324752),F.write_shift(2,20),F.write_shift(2,rt),F.write_shift(2,K),vt.mt?o(F,vt.mt):F.write_shift(4,0),F.write_shift(-4,rt&8?0:Ot[yt]),F.write_shift(4,rt&8?0:Ee.length),F.write_shift(4,rt&8?0:vt.content.length),F.write_shift(2,ie.length),F.write_shift(2,0),mt+=F.length,P.push(F),mt+=ie.length,P.push(ie),mt+=Ee.length,P.push(Ee),rt&8&&(F=dr(12),F.write_shift(-4,Ot[yt]),F.write_shift(4,Ee.length),F.write_shift(4,vt.content.length),mt+=F.l,P.push(F)),F=dr(46),F.write_shift(4,33639248),F.write_shift(2,0),F.write_shift(2,20),F.write_shift(2,rt),F.write_shift(2,K),F.write_shift(4,0),F.write_shift(-4,Ot[yt]),F.write_shift(4,Ee.length),F.write_shift(4,vt.content.length),F.write_shift(2,ie.length),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(4,0),F.write_shift(4,pe),Jt+=F.l,M.push(F),Jt+=ie.length,M.push(ie),++yt}return F=dr(22),F.write_shift(4,101010256),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,yt),F.write_shift(2,yt),F.write_shift(4,Jt),F.write_shift(4,mt),F.write_shift(2,0),An([An(P),An(M),F])}var Ue={htm:\"text/html\",xml:\"text/xml\",gif:\"image/gif\",jpg:\"image/jpeg\",png:\"image/png\",mso:\"application/x-mso\",thmx:\"application/vnd.ms-officetheme\",sh33tj5:\"application/octet-stream\"};function Pr(E,L){if(E.ctype)return E.ctype;var N=E.name||\"\",P=N.match(/\\.([^\\.]+)$/);return P&&Ue[P[1]]||L&&(P=(N=L).match(/[\\.\\\\]([^\\.\\\\])+$/),P&&Ue[P[1]])?Ue[P[1]]:\"application/octet-stream\"}function pr(E){for(var L=Nh(E),N=[],P=0;P<L.length;P+=76)N.push(L.slice(P,P+76));return N.join(`\\r\n`)+`\\r\n`}function oi(E){var L=E.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF=]/g,function(Z){var j=Z.charCodeAt(0).toString(16).toUpperCase();return\"=\"+(j.length==1?\"0\"+j:j)});L=L.replace(/ $/mg,\"=20\").replace(/\\t$/mg,\"=09\"),L.charAt(0)==`\n`&&(L=\"=0D\"+L.slice(1)),L=L.replace(/\\r(?!\\n)/mg,\"=0D\").replace(/\\n\\n/mg,`\n=0A`).replace(/([^\\r\\n])\\n/mg,\"$1=0A\");for(var N=[],P=L.split(`\\r\n`),M=0;M<P.length;++M){var F=P[M];if(F.length==0){N.push(\"\");continue}for(var K=0;K<F.length;){var rt=76,q=F.slice(K,K+rt);q.charAt(rt-1)==\"=\"?rt--:q.charAt(rt-2)==\"=\"?rt-=2:q.charAt(rt-3)==\"=\"&&(rt-=3),q=F.slice(K,K+rt),K+=rt,K<F.length&&(q+=\"=\"),N.push(q)}}return N.join(`\\r\n`)}function ai(E){for(var L=[],N=0;N<E.length;++N){for(var P=E[N];N<=E.length&&P.charAt(P.length-1)==\"=\";)P=P.slice(0,P.length-1)+E[++N];L.push(P)}for(var M=0;M<L.length;++M)L[M]=L[M].replace(/[=][0-9A-Fa-f]{2}/g,function(F){return String.fromCharCode(parseInt(F.slice(1),16))});return kn(L.join(`\\r\n`))}function si(E,L,N){for(var P=\"\",M=\"\",F=\"\",K,rt=0;rt<10;++rt){var q=L[rt];if(!q||q.match(/^\\s*$/))break;var Z=q.match(/^(.*?):\\s*([^\\s].*)$/);if(Z)switch(Z[1].toLowerCase()){case\"content-location\":P=Z[2].trim();break;case\"content-type\":F=Z[2].trim();break;case\"content-transfer-encoding\":M=Z[2].trim();break}}switch(++rt,M.toLowerCase()){case\"base64\":K=kn(Rh(L.slice(rt).join(\"\")));break;case\"quoted-printable\":K=ai(L.slice(rt));break;default:throw new Error(\"Unsupported Content-Transfer-Encoding \"+M)}var j=Ir(E,P.slice(N.length),K,{unsafe:!0});F&&(j.ctype=F)}function li(E,L){if(B(E.slice(0,13)).toLowerCase()!=\"mime-version:\")throw new Error(\"Unsupported MAD header\");var N=L&&L.root||\"\",P=(Ze&&Buffer.isBuffer(E)?E.toString(\"binary\"):B(E)).split(`\\r\n`),M=0,F=\"\";for(M=0;M<P.length;++M)if(F=P[M],!!/^Content-Location:/i.test(F)&&(F=F.slice(F.indexOf(\"file\")),N||(N=F.slice(0,F.lastIndexOf(\"/\")+1)),F.slice(0,N.length)!=N))for(;N.length>0&&(N=N.slice(0,N.length-1),N=N.slice(0,N.lastIndexOf(\"/\")+1),F.slice(0,N.length)!=N););var K=(P[1]||\"\").match(/boundary=\"(.*?)\"/);if(!K)throw new Error(\"MAD cannot find boundary\");var rt=\"--\"+(K[1]||\"\"),q=[],Z=[],j={FileIndex:q,FullPaths:Z};k(j);var mt,yt=0;for(M=0;M<P.length;++M){var kt=P[M];kt!==rt&&kt!==rt+\"--\"||(yt++&&si(j,P.slice(mt,M),N),mt=M)}return j}function ci(E,L){var N=L||{},P=N.boundary||\"SheetJS\";P=\"------=\"+P;for(var M=[\"MIME-Version: 1.0\",'Content-Type: multipart/related; boundary=\"'+P.slice(2)+'\"',\"\",\"\",\"\"],F=E.FullPaths[0],K=F,rt=E.FileIndex[0],q=1;q<E.FullPaths.length;++q)if(K=E.FullPaths[q].slice(F.length),rt=E.FileIndex[q],!(!rt.size||!rt.content||K==\"\u0001Sh33tJ5\")){K=K.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF]/g,function(Ot){return\"_x\"+Ot.charCodeAt(0).toString(16)+\"_\"}).replace(/[\\u0080-\\uFFFF]/g,function(Ot){return\"_u\"+Ot.charCodeAt(0).toString(16)+\"_\"});for(var Z=rt.content,j=Ze&&Buffer.isBuffer(Z)?Z.toString(\"binary\"):B(Z),mt=0,yt=Math.min(1024,j.length),kt=0,xt=0;xt<=yt;++xt)(kt=j.charCodeAt(xt))>=32&&kt<128&&++mt;var vt=mt>=yt*4/5;M.push(P),M.push(\"Content-Location: \"+(N.root||\"file:///C:/SheetJS/\")+K),M.push(\"Content-Transfer-Encoding: \"+(vt?\"quoted-printable\":\"base64\")),M.push(\"Content-Type: \"+Pr(rt,K)),M.push(\"\"),M.push(vt?oi(j):pr(j))}return M.push(P+`--\\r\n`),M.join(`\\r\n`)}function ln(E){var L={};return k(L,E),L}function Ir(E,L,N,P){var M=P&&P.unsafe;M||k(E);var F=!M&&Nn.find(E,L);if(!F){var K=E.FullPaths[0];L.slice(0,K.length)==K?K=L:(K.slice(-1)!=\"/\"&&(K+=\"/\"),K=(K+L).replace(\"//\",\"/\")),F={name:i(L),type:2},E.FileIndex.push(F),E.FullPaths.push(K),M||Nn.utils.cfb_gc(E)}return F.content=N,F.size=N?N.length:0,P&&(P.CLSID&&(F.clsid=P.CLSID),P.mt&&(F.mt=P.mt),P.ct&&(F.ct=P.ct)),F}function ze(E,L){k(E);var N=Nn.find(E,L);if(N){for(var P=0;P<E.FileIndex.length;++P)if(E.FileIndex[P]==N)return E.FileIndex.splice(P,1),E.FullPaths.splice(P,1),!0}return!1}function Or(E,L,N){k(E);var P=Nn.find(E,L);if(P){for(var M=0;M<E.FileIndex.length;++M)if(E.FileIndex[M]==P)return E.FileIndex[M].name=i(N),E.FullPaths[M]=N,!0}return!1}function Pn(E){U(E,!0)}return t.find=_,t.read=$,t.parse=h,t.write=z,t.writeFile=et,t.utils={cfb_new:ln,cfb_add:Ir,cfb_del:ze,cfb_mov:Or,cfb_gc:Pn,ReadShift:Fh,CheckField:Dh,prep_blob:Gr,bconcat:An,use_zlib:dt,_deflateRaw:Te,_inflateRaw:Vr,consts:ot},t})();typeof Xr<\"u\"&&typeof Ts<\"u\"&&typeof DO_NOT_EXPORT_CFB>\"u\"&&(Ts.exports=Nn)});var ky={};ad(ky,{default:()=>zh});function Fs(n,t){let e=document.createElement(\"div\");e.className=`preview-loading preview-loading-${t}`,e.dataset.previewKind=t,e.setAttribute(\"aria-hidden\",\"true\"),e.hidden=!0;let r='<div class=\"loading-lines\"><i></i><i></i><i></i><i></i></div>',i=t===\"presentation\"?`<div class=\"loading-paper\"><i class=\"loading-title\"></i><div class=\"loading-slide-body\">${r}<div class=\"loading-figure\"><i></i><i></i><i></i></div></div></div>`:`<div class=\"loading-paper\"><i class=\"loading-running-head\"></i><i class=\"loading-title\"></i>${r}<div class=\"loading-table\">${\"<span><i></i></span>\".repeat(9)}</div>${r}<i class=\"loading-page-number\"></i></div>`;return e.innerHTML=i+(t===\"word\"?i:\"\"),n.append(e),{show(){e.hidden=!1,n.classList.add(\"preview-is-loading\"),n.setAttribute(\"aria-busy\",\"true\")},hide(){e.hidden=!0,n.classList.remove(\"preview-is-loading\"),n.setAttribute(\"aria-busy\",\"false\")}}}var Ds=()=>new Promise(n=>requestAnimationFrame(()=>setTimeout(n,0)));var De=Uint8Array,hn=Uint16Array,ld=Int32Array,Bs=new De([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),$s=new De([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cd=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ws=function(n,t){for(var e=new hn(31),r=0;r<31;++r)e[r]=t+=1<<n[r-1];for(var i=new ld(e[30]),r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)i[o]=o-e[r]<<5|r;return{b:e,r:i}},Hs=Ws(Bs,2),Us=Hs.b,ud=Hs.r;Us[28]=258,ud[258]=28;var zs=Ws($s,0),hd=zs.b,Iy=zs.r,No=new hn(32768);for(Vt=0;Vt<32768;++Vt)mr=(Vt&43690)>>1|(Vt&21845)<<1,mr=(mr&52428)>>2|(mr&13107)<<2,mr=(mr&61680)>>4|(mr&3855)<<4,No[Vt]=((mr&65280)>>8|(mr&255)<<8)>>1;var mr,Vt,Ln=(function(n,t,e){for(var r=n.length,i=0,o=new hn(t);i<r;++i)n[i]&&++o[n[i]-1];var a=new hn(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(e){s=new hn(1<<t);var l=15-t;for(i=0;i<r;++i)if(n[i])for(var c=i<<4|n[i],h=t-n[i],u=a[n[i]-1]++<<h,f=u|(1<<h)-1;u<=f;++u)s[No[u]>>l]=c}else for(s=new hn(r),i=0;i<r;++i)n[i]&&(s[i]=No[a[n[i]-1]++]>>15-n[i]);return s}),_n=new De(288);for(Vt=0;Vt<144;++Vt)_n[Vt]=8;var Vt;for(Vt=144;Vt<256;++Vt)_n[Vt]=9;var Vt;for(Vt=256;Vt<280;++Vt)_n[Vt]=7;var Vt;for(Vt=280;Vt<288;++Vt)_n[Vt]=8;var Vt,Ys=new De(32);for(Vt=0;Vt<32;++Vt)Ys[Vt]=5;var Vt;var dd=Ln(_n,9,1);var fd=Ln(Ys,5,1),ko=function(n){for(var t=n[0],e=1;e<n.length;++e)n[e]>t&&(t=n[e]);return t},rr=function(n,t,e){var r=t/8|0;return(n[r]|n[r+1]<<8)>>(t&7)&e},Ao=function(n,t){var e=t/8|0;return(n[e]|n[e+1]<<8|n[e+2]<<16)>>(t&7)},pd=function(n){return(n+7)/8|0},Po=function(n,t,e){return(t==null||t<0)&&(t=0),(e==null||e>n.length)&&(e=n.length),new De(n.subarray(t,e))};var md=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],Fe=function(n,t,e){var r=new Error(t||md[n]);if(r.code=n,Error.captureStackTrace&&Error.captureStackTrace(r,Fe),!e)throw r;return r},gd=function(n,t,e,r){var i=n.length,o=r?r.length:0;if(!i||t.f&&!t.l)return e||new De(0);var a=!e,s=a||t.i!=2,l=t.i;a&&(e=new De(i*3));var c=function(qt){var x=e.length;if(qt>x){var it=new De(Math.max(x*2,qt));it.set(e),e=it}},h=t.f||0,u=t.p||0,f=t.b||0,d=t.l,p=t.d,m=t.m,g=t.n,b=i*8;do{if(!d){h=rr(n,u,1);var T=rr(n,u+1,3);if(u+=3,T)if(T==1)d=dd,p=fd,m=9,g=5;else if(T==2){var $=rr(n,u,31)+257,k=rr(n,u+10,15)+4,W=$+rr(n,u+5,31)+1;u+=14;for(var U=new De(W),v=new De(19),_=0;_<k;++_)v[cd[_]]=rr(n,u+_*3,7);u+=k*3;for(var y=ko(v),H=(1<<y)-1,nt=Ln(v,y,1),_=0;_<W;){var J=nt[rr(n,u,H)];u+=J&15;var S=J>>4;if(S<16)U[_++]=S;else{var lt=0,ot=0;for(S==16?(ot=3+rr(n,u,3),u+=2,lt=U[_-1]):S==17?(ot=3+rr(n,u,7),u+=3):S==18&&(ot=11+rr(n,u,127),u+=7);ot--;)U[_++]=lt}}var et=U.subarray(0,$),B=U.subarray($);m=ko(et),g=ko(B),d=Ln(et,m,1),p=Ln(B,g,1)}else Fe(1);else{var S=pd(u)+4,I=n[S-4]|n[S-3]<<8,O=S+I;if(O>i){l&&Fe(0);break}s&&c(f+I),e.set(n.subarray(S,O),f),t.b=f+=I,t.p=u=O*8,t.f=h;continue}if(u>b){l&&Fe(0);break}}s&&c(f+131072);for(var z=(1<<m)-1,st=(1<<g)-1,dt=u;;dt=u){var lt=d[Ao(n,u)&z],ft=lt>>4;if(u+=lt&15,u>b){l&&Fe(0);break}if(lt||Fe(2),ft<256)e[f++]=ft;else if(ft==256){dt=u,d=null;break}else{var Ft=ft-254;if(ft>264){var _=ft-257,Xt=Bs[_];Ft=rr(n,u,(1<<Xt)-1)+Us[_],u+=Xt}var Et=p[Ao(n,u)&st],_t=Et>>4;Et||Fe(3),u+=Et&15;var B=hd[_t];if(_t>3){var Xt=$s[_t];B+=Ao(n,u)&(1<<Xt)-1,u+=Xt}if(u>b){l&&Fe(0);break}s&&c(f+131072);var Kt=f+Ft;if(f<B){var Pt=o-B,jt=Math.min(B,Kt);for(Pt+f<0&&Fe(3);f<jt;++f)e[f]=r[Pt+f]}for(;f<Kt;++f)e[f]=e[f-B]}}t.l=d,t.p=dt,t.b=f,t.f=h,d&&(h=1,t.m=m,t.d=p,t.n=g)}while(!h);return f!=e.length&&a?Po(e,0,f):e.subarray(0,f)};var bd=new De(0);var lr=function(n,t){return n[t]|n[t+1]<<8},Ge=function(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0},Co=function(n,t){return Ge(n,t)+Ge(n,t+4)*4294967296};function yd(n,t){return gd(n,{i:2},t&&t.out,t&&t.dictionary)}var Ro=typeof TextDecoder<\"u\"&&new TextDecoder,xd=0;try{Ro.decode(bd,{stream:!0}),xd=1}catch{}var wd=function(n){for(var t=\"\",e=0;;){var r=n[e++],i=(r>127)+(r>223)+(r>239);if(e+i>n.length)return{s:t,r:Po(n,e-1)};i?i==3?(r=((r&15)<<18|(n[e++]&63)<<12|(n[e++]&63)<<6|n[e++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|n[e++]&63):t+=String.fromCharCode((r&15)<<12|(n[e++]&63)<<6|n[e++]&63):t+=String.fromCharCode(r)}};function vd(n,t){if(t){for(var e=\"\",r=0;r<n.length;r+=16384)e+=String.fromCharCode.apply(null,n.subarray(r,r+16384));return e}else{if(Ro)return Ro.decode(n);var i=wd(n),o=i.s,e=i.r;return e.length&&Fe(8),o}}var Td=function(n,t){return t+30+lr(n,t+26)+lr(n,t+28)},Sd=function(n,t,e){var r=lr(n,t+28),i=lr(n,t+30),o=vd(n.subarray(t+46,t+46+r),!(lr(n,t+8)&2048)),a=t+46+r,s=Ed(n,a,i,e,Ge(n,t+20),Ge(n,t+24),Ge(n,t+42)),l=s[0],c=s[1],h=s[2];return[lr(n,t+10),l,c,o,a+i+lr(n,t+32),h]},Ed=function(n,t,e,r,i,o,a){var s=i==4294967295,l=o==4294967295,c=a==4294967295,h=t+e,u=s+l+c;if(r&&u){for(;t+4<h;t+=4+lr(n,t+2))if(lr(n,t)==1)return[s?Co(n,t+4+8*l):i,l?Co(n,t+4):o,c?Co(n,t+4+8*(l+s)):a,1];r<2&&Fe(13)}return[i,o,a,0]};function Gs(n,t){for(var e={},r=n.length-22;Ge(n,r)!=101010256;--r)(!r||n.length-r>65558)&&Fe(13);var i=lr(n,r+8);if(!i)return{};var o=Ge(n,r+16),a=Ge(n,r-20)==117853008;if(a){var s=Ge(n,r-12);a=Ge(n,s)==101075792,a&&(i=Ge(n,s+32),o=Ge(n,s+48))}for(var l=t&&t.filter,c=0;c<i;++c){var h=Sd(n,o,a),u=h[0],f=h[1],d=h[2],p=h[3],m=h[4],g=h[5],b=Td(n,g);o=m,(!l||l({name:p,size:f,originalSize:d,compression:u}))&&(u?u==8?e[p]=yd(n.subarray(b,b+f),{out:new De(d)}):Fe(14,\"unknown compression type \"+u):e[p]=Po(n,b,b+f))}return e}var Al=Ms(Vs(),1);var fn=new WeakMap,Go=()=>new DOMException(\"DOCX layout was detached or replaced\",\"AbortError\");function Cl(n){fn.get(n)?.cancel();let t=new AbortController,e={signal:t.signal,isCurrent:()=>!t.signal.aborted&&fn.get(n)===e,cancel:()=>t.abort()};return fn.set(n,e),e}function kd(n){fn.get(n)?.cancel(),fn.delete(n)}function Ai(n){let t=fn.get(n);return t?.isCurrent()?t:Cl(n)}function je(n,t,e=!0){if(!t.isCurrent()||e&&!n.isConnected)throw Go()}function Hn(n,t=Ai(n)){let r=Array.from(n.querySelectorAll?.(\"[data-docx-layout-root]\")??[]).length?()=>Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")):()=>Array.from(n.childNodes??[]),i=r();return{signal:t.signal,cancel:()=>t.cancel(),isCurrent:()=>{if(!t.isCurrent())return!1;let o=new Set(r());return!i.length||i.some(a=>o.has(a))},acceptLayoutChanges:o=>{o===n&&t.isCurrent()&&(i=r()),t.acceptLayoutChanges?.(o)}}}async function Un(n,t=[],e=Ai(n)){je(n,e);let r=n.ownerDocument;n.getBoundingClientRect?.();let i=[],o,a=Array.from(n.querySelectorAll(\"img\")),s=Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")),l=Array.from(n.childNodes??[]),c=s.length?()=>Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")):l.length?()=>Array.from(n.childNodes??[]):()=>Array.from(n.querySelectorAll(\"img\")),h=s.length?s:l.length?l:a,u=new Map,f=()=>{je(n,e);let m=new Set(c());if(h.length&&!h.some(b=>m.has(b)))throw e.cancel(),Go();let g=new Set(Array.from(n.querySelectorAll(\"img\")));for(let[b,T]of u)g.has(b)||T()},d=new Promise((m,g)=>{let b=()=>g(Go());e.signal.addEventListener(\"abort\",b,{once:!0}),i.push(()=>e.signal.removeEventListener(\"abort\",b));let T=r.defaultView?.MutationObserver;if(T&&r.documentElement){o=new T(()=>{try{f()}catch(S){g(S)}}),o.observe(r.documentElement,{childList:!0,subtree:!0});for(let S=n.getRootNode?.();S&&S!==r;S=S.host?.getRootNode?.())o.observe(S,{childList:!0,subtree:!0})}}),p=a.map(m=>m.complete?Promise.resolve():new Promise(g=>{let b=()=>g();u.set(m,b),m.addEventListener(\"load\",b,{once:!0}),m.addEventListener(\"error\",b,{once:!0}),i.push(()=>{m.removeEventListener(\"load\",b),m.removeEventListener(\"error\",b)})}));try{await Promise.race([Promise.all([Promise.allSettled(t),r.fonts?.ready??Promise.resolve(),...p]),d]),f()}finally{o?.disconnect(),i.forEach(m=>m())}}var Ad=/[\\u0000-\\u001f\\u007f]/,Cd=/^data:image\\/[a-z0-9.+-]+(?:;[^,]*)?,/i;function cr(n){return n?.targetMode?.trim().toLowerCase()===\"external\"}function Xs(n,t=\"block\"){if(!cr(n))return null;let e=`${n?.target??\"\"}`.trim();if(!e||Ad.test(e))return null;let r;try{r=new URL(e)}catch{return null}switch(r.protocol.toLowerCase()){case\"data:\":return Cd.test(e)?e:null;case\"blob:\":return e;case\"http:\":case\"https:\":return t===\"allow\"?r.href:null;default:return null}}var le;(function(n){n.OfficeDocument=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",n.FontTable=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable\",n.Image=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",n.Numbering=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering\",n.Styles=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\",n.StylesWithEffects=\"http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects\",n.Theme=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",n.Settings=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings\",n.WebSettings=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings\",n.Hyperlink=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\",n.Footnotes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes\",n.Endnotes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes\",n.Footer=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer\",n.Header=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header\",n.ExtendedProperties=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",n.CoreProperties=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",n.CustomProperties=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties\",n.Comments=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments\",n.CommentsExtended=\"http://schemas.microsoft.com/office/2011/relationships/commentsExtended\",n.AltChunk=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\",n.Chart=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart\",n.ChartUserShapes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes\",n.DiagramData=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData\",n.DiagramLayout=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout\",n.DiagramQuickStyle=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle\",n.DiagramColors=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors\",n.Ink=\"http://schemas.microsoft.com/office/2007/relationships/ink\",n.ContentPart=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/contentPart\"})(le||(le={}));function Nd(n,t){return t.elements(n).map(e=>({id:t.attr(e,\"Id\"),type:t.attr(e,\"Type\"),target:t.attr(e,\"Target\"),targetMode:t.attr(e,\"TargetMode\")}))}function Rd(n){return n?.replace(/[ .]+/g,\"-\").replace(/[&]+/g,\"and\").toLowerCase()}function br(n){let t=String(n??\"\").trim();return(t.startsWith(\"'\")&&t.endsWith(\"'\")||t.startsWith('\"')&&t.endsWith('\"'))&&(t=t.slice(1,-1)),/^(?:serif|sans-serif|monospace|cursive|fantasy|system-ui|ui-serif|ui-sans-serif|ui-monospace|ui-rounded|emoji|math|fangsong)$/i.test(t)||/^[^\\u0000-\\u0020\\u007f-\\u009f'\"\\\\;:{}()[\\]<>/,]+$/u.test(t)?t:`'${t.replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/[\\u0000-\\u001f\\u007f-\\u009f]/g,r=>r===\"\\0\"?\"\\uFFFD\":`\\\\${r.codePointAt(0).toString(16)} `)}'`}function Pd(n){let t=String(n??\"\").normalize(\"NFKC\").toLowerCase();return/simsun|nsimsun|宋体|宋體|songti|shusong|书宋|書宋|fangsong|仿宋|mincho|明朝|明體|mingliu|pmingliu|batang|명조|kaiti|楷体|楷體|stkaiti|simhei|黑体|黑體|heiti|dengxian|等线|等線|yahei|fangzheng|方正|fz(?:fs|kt|ht|ss|xbs)|ゴシック|(?:^|\\s)(?:ms|yu)\\s+p?gothic|meiryo|メイリオ|malgun|맑은/.test(t)}function jo(n,t=\"\"){let e=String(n??\"\").trim();if(!e)return[];let r=e.normalize(\"NFKC\").toLowerCase(),i=/mincho|明朝|ゴシック|(?:^|\\s)(?:ms|yu)\\s+p?gothic|meiryo|メイリオ/.test(r),o=[\"Hans\",\"Hant\",\"Jpan\",\"Hang\"].includes(t)?t:i?\"Jpan\":t,a=[br(e)],s=Id(e),l=/simsun|nsimsun|宋体|宋體|songti|shusong|书宋|書宋|fangsong|仿宋|fz(?:fs|ss|xbs)|小标宋|小標宋|mincho|明朝|明體|mingliu|pmingliu|batang|명조/.test(r),c=/kaiti|楷体|楷體|stkaiti|fzkt|kai/.test(r),h=/simhei|黑体|黑體|heiti|fzht|dengxian|等线|等線|yahei|gothic|ゴシック|malgun|맑은/.test(r);return s.length&&a.push(...s.map(br)),l?o==\"Hant\"?a.push(\"'Songti TC'\",\"'Microsoft JhengHei'\",\"'Noto Serif CJK TC'\",\"serif\"):o==\"Jpan\"?a.push(\"'Yu Mincho'\",\"'Hiragino Mincho ProN'\",\"'Noto Serif CJK JP'\",\"serif\"):o==\"Hang\"?a.push(\"Batang\",\"AppleMyungjo\",\"'Noto Serif CJK KR'\",\"serif\"):a.push(\"'Songti SC'\",\"'Noto Serif CJK SC'\",\"serif\"):c?a.push(\"'Kaiti SC'\",\"STKaiti\",\"'Noto Serif CJK SC'\",\"serif\"):h?o==\"Hant\"?a.push(\"'Microsoft JhengHei'\",\"'PingFang TC'\",\"'Noto Sans CJK TC'\",\"sans-serif\"):o==\"Jpan\"?a.push(\"'Yu Gothic'\",\"Meiryo\",\"'Noto Sans CJK JP'\",\"sans-serif\"):o==\"Hang\"?a.push(\"'Malgun Gothic'\",\"'Apple SD Gothic Neo'\",\"'Noto Sans CJK KR'\",\"sans-serif\"):a.push(\"'Microsoft YaHei'\",\"'PingFang SC'\",\"'Noto Sans CJK SC'\",\"sans-serif\"):o==\"Hant\"?a.push(\"'PingFang TC'\",\"'Noto Sans CJK TC'\",\"sans-serif\"):o==\"Jpan\"?a.push(\"'Yu Gothic'\",\"Meiryo\",\"'Noto Sans CJK JP'\",\"sans-serif\"):o==\"Hang\"?a.push(\"'Apple SD Gothic Neo'\",\"'Noto Sans CJK KR'\",\"sans-serif\"):a.push(\"'PingFang SC'\",\"'Noto Sans CJK SC'\",\"sans-serif\"),[...new Set(a)]}function Id(n){let t=String(n??\"\").normalize(\"NFKC\").toLowerCase().replace(/[\\s_-]+/g,\"\");return[[/方正仿宋|fangzhengfangsong|fzfangsong|fzfs/,[\"\\u65B9\\u6B63\\u4EFF\\u5B8B\",\"\\u65B9\\u6B63\\u4EFF\\u5B8B\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u4EFF\\u5B8B_GBK\",\"FZFangSong-Z02\",\"FZFSK--GBK1-0\"]],[/方正楷体|fangzhengkai|fzkai|fzkt/,[\"\\u65B9\\u6B63\\u6977\\u4F53\",\"\\u65B9\\u6B63\\u6977\\u4F53\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u6977\\u4F53_GBK\",\"FZKai-Z03\",\"FZKTK--GBK1-0\"]],[/方正黑体|fangzhenghei|fzhei|fzht/,[\"\\u65B9\\u6B63\\u9ED1\\u4F53\",\"\\u65B9\\u6B63\\u9ED1\\u4F53\\u7B80\\u4F53\",\"FZHei-B01\",\"FZHTK--GBK1-0\"]],[/方正书宋|fangzhengshusong|fzshusong|fzss/,[\"\\u65B9\\u6B63\\u4E66\\u5B8B\",\"\\u65B9\\u6B63\\u4E66\\u5B8B\\u7B80\\u4F53\",\"FZShuSong-Z01\",\"FZSSK--GBK1-0\"]],[/方正小标宋|fangzhengxiaobiaosong|fzxiaobiaosong|fzxbs/,[\"\\u65B9\\u6B63\\u5C0F\\u6807\\u5B8B\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u5C0F\\u6807\\u5B8B\",\"FZXiaoBiaoSong-B05\",\"FZXBSJW--GB1-0\"]]].find(([r])=>r.test(t))?.[1]??[]}function Vo(n){let t=n.lastIndexOf(\"/\")+1,e=t==0?\"\":n.substring(0,t),r=t==0?n:n.substring(t);return[e,r]}function qs(n,t){try{let e=\"http://docx/\";return new URL(n,e+t).toString().substring(e.length)}catch{return`${t}${n}`}}function ur(n,t){return n.reduce((e,r)=>(e[t(r)]=r,e),{})}function Oo(n){return new Promise((t,e)=>{let r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>e(),r.readAsDataURL(n)})}function pi(n){return n&&typeof n==\"object\"&&!Array.isArray(n)}function Jr(n){return typeof n==\"string\"||n instanceof String}function Ci(n,...t){if(!t.length)return n;let e=t.shift();if(pi(n)&&pi(e))for(let r of Object.keys(e)){if(r===\"__proto__\"||r===\"constructor\"||r===\"prototype\")continue;let i=e[r];if(pi(i)){let o=Object.prototype.hasOwnProperty.call(n,r)?n[r]:void 0,a=pi(o)?o:{};n[r]=a,Ci(a,i)}else n[r]=i}return Ci(n,...t)}function Dn(n){let t={};for(let e of(n??\"\").split(\";\")){let r=e.indexOf(\":\");if(r<=0)continue;let i=e.substring(0,r).trim(),o=e.substring(r+1).trim();i&&(t[i]=o)}return t}function qr(n){return Array.isArray(n)?n:[n]}function Od(n,t,e){return t>n?t:e<n?e:n}var Qr={wordml:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",drawingml:\"http://schemas.openxmlformats.org/drawingml/2006/main\",picture:\"http://schemas.openxmlformats.org/drawingml/2006/picture\",wordprocessingCanvas:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",wordprocessingGroup:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wordprocessingShape:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\"},$t={Dxa:{mul:.05,unit:\"pt\"},SignedDxa:{mul:.05,unit:\"pt\"},Emu:{mul:1/12700,unit:\"pt\"},FontSize:{mul:.5,unit:\"pt\"},SignedHalfPoint:{mul:.5,unit:\"pt\"},Border:{mul:.125,unit:\"pt\",min:.25,max:12},Point:{mul:1,unit:\"pt\"},Percent:{mul:.02,unit:\"%\"}};function Be(n,t=$t.Dxa){if(n==null||n===\"\"||/.+(p[xt]|[%])$/i.test(n))return n;var e=parseFloat(n);if(Number.isNaN(e))return null;var r=e*t.mul;return t.min!=null&&t.max!=null&&(r=Od(r,t.min,t.max)),`${r.toFixed(2)}${t.unit}`}function Ks(n,t=!1){switch(n){case\"1\":return!0;case\"0\":return!1;case\"on\":return!0;case\"off\":return!1;case\"true\":return!0;case\"false\":return!1;default:return t}}function Nl(n,t,e){if(n.namespaceURI!=Qr.wordml)return!1;switch(n.localName){case\"color\":t.color=e.attr(n,\"val\");break;case\"sz\":t.fontSize=e.lengthAttr(n,\"val\",$t.FontSize);break;case\"szCs\":t.fontSize??(t.fontSize=e.lengthAttr(n,\"val\",$t.FontSize));break;default:return!1}return!0}var Zs=new Map,Lo=new Map,Ld=\"file-viewer-docx-xml-parser\",_d=\"file-viewer-docx-altchunk-parser\",Md=\"file-viewer-docx-altchunk-srcdoc\",Fd=new Set([\"script\",\"style\",\"base\",\"meta\",\"link\",\"object\",\"embed\",\"applet\",\"iframe\",\"frame\",\"frameset\",\"form\",\"input\",\"button\",\"textarea\",\"select\",\"option\",\"audio\",\"video\",\"source\",\"track\",\"svg\",\"math\",\"template\"]),Dd=/^(?:action|archive|background|cite|classid|codebase|data|dynsrc|formaction|href|longdesc|lowsrc|manifest|ping|poster|profile|src|srcdoc|srcset|usemap|xlink:href)$/;function Na(n,t){let e=globalThis.trustedTypes;if(!e)return t;let r=Zs.get(n);r||(r=e.createPolicy(n,{createHTML(i){if(i!==Lo.get(n))throw new TypeError(`Rejected HTML outside the ${n} boundary`);return i}}),Zs.set(n,r)),Lo.set(n,t);try{return r.createHTML(t)}finally{Lo.delete(n)}}function Bd(n){return typeof document>\"u\"?n:Na(Ld,n)}function $d(n){n.parentNode&&n.parentNode.removeChild(n)}function Wd(n){let t=new DOMParser,e=Na(_d,String(n??\"\")),r=t.parseFromString(e,\"text/html\");for(let a of Array.from(r.getElementsByTagName(\"*\"))){let s=a.localName?.toLowerCase()||a.nodeName.toLowerCase();Fd.has(s)&&$d(a)}for(let a of Array.from(r.getElementsByTagName(\"*\")))for(let s of Array.from(a.attributes??[])){let l=s.name.toLowerCase();(l.startsWith(\"on\")||l===\"style\"||Dd.test(l))&&a.removeAttribute(s.name)}let i=r.documentElement;return`<!doctype html>${i?new XMLSerializer().serializeToString(i):\"<html><head></head><body></body></html>\"}`}function Hd(n,t){let e=Wd(t),r=Na(Md,e);n.srcdoc=r}var Rl={parse:n=>new DOMParser().parseFromString(n,\"application/xml\"),serialize:n=>new XMLSerializer().serializeToString(n)};function Ra(n,t=!1){t&&(n=n.replace(/<[?].*[?]>/,\"\")),n=zd(n);let e=Rl.parse(Bd(n)),r=Ud(e);if(r)throw new Error(r);return e}function Ud(n){return n.getElementsByTagName(\"parsererror\")[0]?.textContent}function zd(n){return n.charCodeAt(0)===65279?n.substring(1):n}function Yd(n){return Rl.serialize(n)}var Ni=class{elements(t,e=null){let r=[];for(let i=0,o=t.childNodes.length;i<o;i++){let a=t.childNodes.item(i);a.nodeType==1&&(e==null||a.localName==e)&&r.push(a)}return r}element(t,e){for(let r=0,i=t.childNodes.length;r<i;r++){let o=t.childNodes.item(r);if(o.nodeType==1&&o.localName==e)return o}return null}elementAttr(t,e,r){var i=this.element(t,e);return i?this.attr(i,r):void 0}attrs(t){return Array.from(t.attributes)}attr(t,e){if(t?.localName==\"blip\"&&(e==\"embed\"||e==\"link\")){let r=this.descendantAttr(t,\"svgBlip\",e);if(r!=null)return r}if(t?.localName==\"cnfStyle\"&&e==\"val\"){let r=this.rawAttr(t,e);return r??this.cnfStyleValue(t)}return this.rawAttr(t,e)}rawAttr(t,e){for(let r=0,i=t.attributes.length;r<i;r++){let o=t.attributes.item(r);if(o.localName==e)return o.value}return null}descendantAttr(t,e,r){for(let i of this.elements(t)){if(i.localName==e){let a=this.rawAttr(i,r);if(a!=null)return a}let o=this.descendantAttr(i,e,r);if(o!=null)return o}return null}cnfStyleValue(t){return[\"firstRow\",\"lastRow\",\"firstColumn\",\"lastColumn\",\"oddVBand\",\"evenVBand\",\"oddHBand\",\"evenHBand\",\"firstRowLastColumn\",\"firstRowFirstColumn\",\"lastRowLastColumn\",\"lastRowFirstColumn\"].map(r=>Ks(this.rawAttr(t,r),!1)?\"1\":\"0\").join(\"\")}intAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseInt(i,10):r}hexAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseInt(i,16):r}floatAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseFloat(i):r}boolAttr(t,e,r=null){return Ks(this.attr(t,e),r)}lengthAttr(t,e,r=$t.Dxa){return Be(this.attr(t,e),r)}},w=new Ni,Pe=class{constructor(t,e){this._package=t,this.path=e}async load(){this.rels=await this._package.loadRelationships(this.path);let t=await this._package.load(this.path),e=this._package.parseXmlDocument(t);this._package.options.keepOrigin&&(this._xmlDocument=e),this.parseXml(e.firstElementChild??e.documentElement)}save(){this._package.update(this.path,Yd(this._xmlDocument))}parseXml(t){}},Gd={embedRegular:\"regular\",embedBold:\"bold\",embedItalic:\"italic\",embedBoldItalic:\"boldItalic\"};function jd(n,t){return t.elements(n).map(e=>Vd(e,t))}function Vd(n,t){let e={name:t.attr(n,\"name\"),embedFontRefs:[]};for(let r of t.elements(n))switch(r.localName){case\"family\":e.family=t.attr(r,\"val\");break;case\"altName\":e.altName=t.attr(r,\"val\");break;case\"embedRegular\":case\"embedBold\":case\"embedItalic\":case\"embedBoldItalic\":e.embedFontRefs.push(Xd(r,t));break}return e}function Xd(n,t){return{id:t.attr(n,\"id\"),key:t.attr(n,\"fontKey\"),type:Gd[n.localName]}}var Xo=class extends Pe{parseXml(t){this.fonts=jd(t,this._package.xmlParser)}};function qd(n,t){return t.elements(n).map(e=>({extension:t.attr(e,\"Extension\"),partName:t.attr(e,\"PartName\"),contentType:t.attr(e,\"ContentType\")}))}var qo=class n{constructor(t,e){this._zip=t,this.options=e,this.xmlParser=new Ni}get(t){let e=Kd(t);return this._zip.files[e]??this._zip.files[e.replace(/\\//g,\"\\\\\")]}update(t,e){this._zip.file(t,e)}static async load(t,e){let r=await(e.zipLoader?e.zipLoader(t):Al.default.loadAsync(t));return new n(r,e)}save(t=\"blob\"){return this._zip.generateAsync({type:t})}load(t,e=\"string\"){return this.get(t)?.async(e)??Promise.resolve(null)}async loadRelationships(t=null){let e=\"_rels/.rels\";if(t!=null){let[i,o]=Vo(t);e=`${i}_rels/${o}.rels`}let r=await this.load(e);return r?Nd(Js(this.parseXmlDocument(r)),this.xmlParser):null}async loadContentTypes(){let t=await this.load(\"[Content_Types].xml\");return t?qd(Js(this.parseXmlDocument(t)),this.xmlParser):[]}parseXmlDocument(t){return Ra(t,this.options.trimXmlDeclaration)}};function Js(n){return n.firstElementChild??n.documentElement}function Kd(n){return n.startsWith(\"/\")?n.substr(1):n}var Ko=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.body=this._documentParser.parseDocumentFile(t)}};function mi(n,t){return{type:t.attr(n,\"val\"),color:t.attr(n,\"color\"),size:t.lengthAttr(n,\"sz\",$t.Border),offset:t.lengthAttr(n,\"space\",$t.Point),frame:t.boolAttr(n,\"frame\"),shadow:t.boolAttr(n,\"shadow\")}}function Zd(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"left\":e.left=mi(r,t);break;case\"top\":e.top=mi(r,t);break;case\"right\":e.right=mi(r,t);break;case\"bottom\":e.bottom=mi(r,t);break}return e}function Ri(n,t){let e={defaultNoteIds:[]};for(let r of t.elements(n))switch(r.localName){case\"numFmt\":e.numberingFormat=e.nummeringFormat=t.attr(r,\"val\");break;case\"numStart\":let i=t.intAttr(r,\"val\",null);Number.isSafeInteger(i)&&i>=0&&(e.start=i);break;case\"numRestart\":let o=t.attr(r,\"val\");[\"continuous\",\"eachSect\",\"eachPage\"].includes(o)&&(e.restart=o);break;case\"footnote\":case\"endnote\":e.defaultNoteIds.push(t.attr(r,\"id\"));break}return e}function Jd(n,t){return{format:t?.numberingFormat??t?.nummeringFormat??n?.numberingFormat??n?.nummeringFormat??\"decimal\",start:t?.start??n?.start??1,restart:t?.restart??n?.restart??\"continuous\"}}var Bn=class{constructor(){this.assignments=new Map,this.counters=new Map}assign(t,e,r,i,o,a){let s=`${t}:${e}`,l=this.assignments.get(s);if(l)return l;let c=this.counters.get(t),h=!c||i.restart===\"eachSect\"&&c.section!==o||i.restart===\"eachPage\"&&c.page!==a,u=r?null:h?i.start:c.next;r||this.counters.set(t,{next:u+1,section:o,page:a});let f={id:e,kind:t,custom:r,value:u,properties:i};return this.assignments.set(s,f),f}};function Qd(n){if(!n||n.custom||n.properties.format===\"none\")return\"\";let t=n.value,e=n.properties.format;switch(e){case\"chicago\":{let r=[\"*\",\"\\u2020\",\"\\u2021\",\"\\xA7\"];return t>0&&t<=384?r[(t-1)%r.length].repeat(Math.floor((t-1)/r.length)+1):`${t}`}case\"upperLetter\":case\"lowerLetter\":{if(t<=0||t>3328)return`${t}`;let r=e===\"upperLetter\"?65:97;return String.fromCharCode(r+(t-1)%26).repeat(Math.floor((t-1)/26)+1)}case\"upperRoman\":case\"lowerRoman\":{if(t<=0||t>3999)return`${t}`;let r=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],i=t,o=\"\";for(let[a,s]of r)for(;i>=a;)o+=s,i-=a;return e===\"lowerRoman\"?o.toLowerCase():o}case\"decimalZero\":return t<10?`0${t}`:`${t}`;case\"numberInDash\":return`-${t}-`;case\"hex\":return t.toString(16).toUpperCase();case\"ordinal\":return`${t}${t%100>=11&&t%100<=13?\"th\":{1:\"st\",2:\"nd\",3:\"rd\"}[t%10]??\"th\"}`;default:return`${t}`}}var pn;(function(n){n.Continuous=\"continuous\",n.NextPage=\"nextPage\",n.NextColumn=\"nextColumn\",n.EvenPage=\"evenPage\",n.OddPage=\"oddPage\"})(pn||(pn={}));function tf(n){return n==null||n===pn.NextPage||n===pn.EvenPage||n===pn.OddPage}function ef(n){return n===pn.NextColumn}var nr={width:\"11906\",height:\"16838\",marginTop:\"1440\",marginRight:\"1440\",marginBottom:\"1440\",marginLeft:\"1440\",header:\"720\",footer:\"720\",gutter:\"0\"};function rf(n=null){let t=n===\"landscape\";return{width:Be(t?nr.height:nr.width),height:Be(t?nr.width:nr.height),orientation:n}}function nf(){return{top:Be(nr.marginTop),right:Be(nr.marginRight),bottom:Be(nr.marginBottom),left:Be(nr.marginLeft),header:Be(nr.header),footer:Be(nr.footer),gutter:Be(nr.gutter)}}function Pl(n=null,t=w){let e=n?t.element(n,\"pgSz\"):null,r=e?t.attr(e,\"orient\"):null,i=rf(r),o=nf();var a={pageSize:i,pageMargins:o};if(!n)return a;for(let s of t.elements(n))switch(s.localName){case\"pgSz\":a.pageSize={width:t.lengthAttr(s,\"w\")??i.width,height:t.lengthAttr(s,\"h\")??i.height,orientation:r};break;case\"type\":a.type=t.attr(s,\"val\");break;case\"pgMar\":a.pageMargins={left:t.lengthAttr(s,\"left\")??o.left,right:t.lengthAttr(s,\"right\")??o.right,top:t.lengthAttr(s,\"top\")??o.top,bottom:t.lengthAttr(s,\"bottom\")??o.bottom,header:t.lengthAttr(s,\"header\")??o.header,footer:t.lengthAttr(s,\"footer\")??o.footer,gutter:t.lengthAttr(s,\"gutter\")??o.gutter};break;case\"cols\":a.columns=of(s,t);break;case\"headerReference\":(a.headerRefs??(a.headerRefs=[])).push(Qs(s,t));break;case\"footerReference\":(a.footerRefs??(a.footerRefs=[])).push(Qs(s,t));break;case\"titlePg\":a.titlePage=t.boolAttr(s,\"val\",!0);break;case\"pgBorders\":a.pageBorders=Zd(s,t);break;case\"pgNumType\":a.pageNumber=af(s,t);break;case\"footnotePr\":a.footnoteProps=Ri(s,t);break;case\"endnotePr\":a.endnoteProps=Ri(s,t);break;case\"docGrid\":a.docGrid=sf(s,t);break}return a}function of(n,t){return{numberOfColumns:t.intAttr(n,\"num\"),space:t.lengthAttr(n,\"space\"),separator:t.boolAttr(n,\"sep\"),equalWidth:t.boolAttr(n,\"equalWidth\",!0),columns:t.elements(n,\"col\").map(e=>({width:t.lengthAttr(e,\"w\"),space:t.lengthAttr(e,\"space\")}))}}function af(n,t){return{chapSep:t.attr(n,\"chapSep\"),chapStyle:t.attr(n,\"chapStyle\"),format:t.attr(n,\"fmt\"),start:t.intAttr(n,\"start\")}}function sf(n,t){let e=t.intAttr(n,\"charSpace\",null),r=e==null?null:e/4096;return{type:t.attr(n,\"type\"),linePitch:t.lengthAttr(n,\"linePitch\"),charSpace:r==null?null:`${r.toFixed(4)}pt`,charSpaceRaw:e}}function Qs(n,t){return{id:t.attr(n,\"id\"),type:t.attr(n,\"type\")}}function lf(n,t){return{before:t.lengthAttr(n,\"before\"),after:t.lengthAttr(n,\"after\"),line:t.intAttr(n,\"line\"),lineRule:t.attr(n,\"lineRule\")}}function Pa(n,t){let e={};for(let r of t.elements(n))cf(r,e,t);return e}function cf(n,t,e){return!!Nl(n,t,e)}function Il(n,t){let e={};for(let r of t.elements(n))Zo(r,e,t);return e}function Zo(n,t,e){if(n.namespaceURI!=Qr.wordml)return!1;if(Nl(n,t,e))return!0;switch(n.localName){case\"tabs\":t.tabs=uf(n,e);break;case\"sectPr\":t.sectionProps=Pl(n,e);break;case\"numPr\":t.numbering=hf(n,e);break;case\"spacing\":return t.lineSpacing=lf(n,e),!1;case\"textAlignment\":return t.textAlignment=e.attr(n,\"val\"),!1;case\"keepLines\":t.keepLines=e.boolAttr(n,\"val\",!0);break;case\"keepNext\":t.keepNext=e.boolAttr(n,\"val\",!0);break;case\"pageBreakBefore\":t.pageBreakBefore=e.boolAttr(n,\"val\",!0);break;case\"widowControl\":t.widowControl=e.boolAttr(n,\"val\",!0);break;case\"outlineLvl\":t.outlineLevel=e.intAttr(n,\"val\");break;case\"pStyle\":t.styleName=e.attr(n,\"val\");break;case\"rPr\":t.runProps=Pa(n,e);break;default:return!1}return!0}function uf(n,t){return t.elements(n,\"tab\").map(e=>({position:t.lengthAttr(e,\"pos\"),leader:t.attr(e,\"leader\"),style:t.attr(e,\"val\")}))}function hf(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"numId\":e.id=t.attr(r,\"val\");break;case\"ilvl\":e.level=t.intAttr(r,\"val\");break}return e}function df(n,t){let e={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of t.elements(n))switch(r.localName){case\"num\":e.numberings.push(ff(r,t));break;case\"abstractNum\":e.abstractNumberings.push(pf(r,t));break;case\"numPicBullet\":e.bulletPictures.push(gf(r,t));break}return e}function ff(n,t){let e={id:t.attr(n,\"numId\"),overrides:[]};for(let r of t.elements(n))switch(r.localName){case\"abstractNumId\":e.abstractId=t.attr(r,\"val\");break;case\"lvlOverride\":e.overrides.push(mf(r,t));break}return e}function pf(n,t){let e={id:t.attr(n,\"abstractNumId\"),levels:[]};for(let r of t.elements(n))switch(r.localName){case\"name\":e.name=t.attr(r,\"val\");break;case\"multiLevelType\":e.multiLevelType=t.attr(r,\"val\");break;case\"numStyleLink\":e.numberingStyleLink=t.attr(r,\"val\");break;case\"styleLink\":e.styleLink=t.attr(r,\"val\");break;case\"lvl\":e.levels.push(Ol(r,t));break}return e}function Ol(n,t){let e={level:t.intAttr(n,\"ilvl\")};for(let r of t.elements(n))switch(r.localName){case\"start\":e.start=t.attr(r,\"val\");break;case\"lvlRestart\":e.restart=t.intAttr(r,\"val\");break;case\"numFmt\":e.format=t.attr(r,\"val\");break;case\"lvlText\":e.text=t.attr(r,\"val\");break;case\"lvlJc\":e.justification=t.attr(r,\"val\");break;case\"lvlPicBulletId\":e.bulletPictureId=t.attr(r,\"val\");break;case\"pStyle\":e.paragraphStyle=t.attr(r,\"val\");break;case\"pPr\":e.paragraphProps=Il(r,t);break;case\"rPr\":e.runProps=Pa(r,t);break}return e}function mf(n,t){let e={level:t.intAttr(n,\"ilvl\")};for(let r of t.elements(n))switch(r.localName){case\"startOverride\":e.start=t.intAttr(r,\"val\");break;case\"lvl\":e.numberingLevel=Ol(r,t);break}return e}function gf(n,t){var e=t.attr(n,\"numPicBulletId\"),r=t.element(n,\"pict\"),i=r&&t.element(r,\"shape\"),o=i&&t.element(i,\"imagedata\");if(o)return{id:e,referenceId:t.attr(o,\"id\"),style:t.attr(i,\"style\")};var a=t.element(n,\"drawing\"),s=a&&Ll(a,\"blip\",t);return s?{id:e,referenceId:t.attr(s,\"embed\")??t.attr(s,\"link\"),style:null}:null}function Ll(n,t,e){for(let r of e.elements(n)){if(r.localName==t)return r;let i=Ll(r,t,e);if(i)return i}return null}var Jo=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){Object.assign(this,df(t,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(t)}},Qo=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.styles=this._documentParser.parseStylesFile(t)}},A;(function(n){n.Document=\"document\",n.Paragraph=\"paragraph\",n.Run=\"run\",n.Break=\"break\",n.NoBreakHyphen=\"noBreakHyphen\",n.Table=\"table\",n.Row=\"row\",n.Cell=\"cell\",n.Hyperlink=\"hyperlink\",n.SmartTag=\"smartTag\",n.Drawing=\"drawing\",n.Image=\"image\",n.Text=\"text\",n.Tab=\"tab\",n.PositionalTab=\"positionalTab\",n.SoftHyphen=\"softHyphen\",n.Symbol=\"symbol\",n.BookmarkStart=\"bookmarkStart\",n.BookmarkEnd=\"bookmarkEnd\",n.Footer=\"footer\",n.Header=\"header\",n.FootnoteReference=\"footnoteReference\",n.EndnoteReference=\"endnoteReference\",n.Footnote=\"footnote\",n.Endnote=\"endnote\",n.SimpleField=\"simpleField\",n.ComplexField=\"complexField\",n.Instruction=\"instruction\",n.VmlPicture=\"vmlPicture\",n.MmlMath=\"mmlMath\",n.Shape=\"shape\",n.MmlMathParagraph=\"mmlMathParagraph\",n.MmlFraction=\"mmlFraction\",n.MmlFunction=\"mmlFunction\",n.MmlFunctionName=\"mmlFunctionName\",n.MmlNumerator=\"mmlNumerator\",n.MmlDenominator=\"mmlDenominator\",n.MmlRadical=\"mmlRadical\",n.MmlBase=\"mmlBase\",n.MmlDegree=\"mmlDegree\",n.MmlSuperscript=\"mmlSuperscript\",n.MmlSubscript=\"mmlSubscript\",n.MmlPreSubSuper=\"mmlPreSubSuper\",n.MmlSubArgument=\"mmlSubArgument\",n.MmlSuperArgument=\"mmlSuperArgument\",n.MmlNary=\"mmlNary\",n.MmlDelimiter=\"mmlDelimiter\",n.MmlRun=\"mmlRun\",n.MmlEquationArray=\"mmlEquationArray\",n.MmlLimit=\"mmlLimit\",n.MmlLimitLower=\"mmlLimitLower\",n.MmlLimitUpper=\"mmlLimitUpper\",n.MmlSubSuperscript=\"mmlSubSuperscript\",n.MmlPhantom=\"mmlPhantom\",n.MmlBorderBox=\"mmlBorderBox\",n.MmlAccent=\"mmlAccent\",n.MmlMatrix=\"mmlMatrix\",n.MmlMatrixRow=\"mmlMatrixRow\",n.MmlBox=\"mmlBox\",n.MmlBar=\"mmlBar\",n.MmlGroupChar=\"mmlGroupChar\",n.VmlElement=\"vmlElement\",n.Chart=\"chart\",n.SmartArt=\"smartArt\",n.Ink=\"ink\",n.Ruby=\"ruby\",n.RubyBase=\"rubyBase\",n.RubyText=\"rubyText\",n.Inserted=\"inserted\",n.Deleted=\"deleted\",n.DeletedText=\"deletedText\",n.Comment=\"comment\",n.CommentReference=\"commentReference\",n.CommentRangeStart=\"commentRangeStart\",n.CommentRangeEnd=\"commentRangeEnd\",n.AltChunk=\"altChunk\"})(A||(A={}));var wr=class{constructor(){this.children=[],this.cssStyle={}}},ta=class extends wr{constructor(){super(...arguments),this.type=A.Header}},ea=class extends wr{constructor(){super(...arguments),this.type=A.Footer}},Pi=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(t)}},ra=class extends Pi{createRootElement(){return new ta}},na=class extends Pi{createRootElement(){return new ea}};function bf(n,t){let e={};for(let r of t.elements(n))switch(r.localName){case\"Template\":e.template=r.textContent;break;case\"Pages\":e.pages=Mn(r.textContent);break;case\"Words\":e.words=Mn(r.textContent);break;case\"Characters\":e.characters=Mn(r.textContent);break;case\"Application\":e.application=r.textContent;break;case\"Lines\":e.lines=Mn(r.textContent);break;case\"Paragraphs\":e.paragraphs=Mn(r.textContent);break;case\"Company\":e.company=r.textContent;break;case\"AppVersion\":e.appVersion=r.textContent;break}return e}function Mn(n){if(!(typeof n>\"u\"))return parseInt(n)}var ia=class extends Pe{parseXml(t){this.props=bf(t,this._package.xmlParser)}};function yf(n,t){let e={};for(let r of t.elements(n))switch(r.localName){case\"title\":e.title=r.textContent;break;case\"description\":e.description=r.textContent;break;case\"subject\":e.subject=r.textContent;break;case\"creator\":e.creator=r.textContent;break;case\"keywords\":e.keywords=r.textContent;break;case\"language\":e.language=r.textContent;break;case\"lastModifiedBy\":e.lastModifiedBy=r.textContent;break;case\"revision\":r.textContent&&(e.revision=parseInt(r.textContent));break}return e}var oa=class extends Pe{parseXml(t){this.props=yf(t,this._package.xmlParser)}},aa=class{};function Ei(n){let t=String(n??\"\").trim().replace(/_/g,\"-\").toLowerCase(),e=t.split(\"-\")[0];return e==\"zh\"?/(?:^|-)hant(?:-|$)|-(?:tw|hk|mo)(?:-|$)/.test(t)?\"Hant\":\"Hans\":{ja:\"Jpan\",ko:\"Hang\",ar:\"Arab\",fa:\"Arab\",ur:\"Arab\",he:\"Hebr\",yi:\"Hebr\",th:\"Thai\",vi:\"Viet\",hi:\"Deva\",bn:\"Beng\",gu:\"Gujr\",kn:\"Knda\",pa:\"Guru\",ta:\"Taml\",te:\"Telu\",ml:\"Mlym\",or:\"Orya\",si:\"Sinh\",km:\"Khmr\",lo:\"Laoo\",my:\"Mymr\",mn:\"Mong\"}[e]??\"\"}function xf(n,t){var e=new aa,r=t.element(n,\"themeElements\");for(let i of t.elements(r))switch(i.localName){case\"clrScheme\":e.colorScheme=wf(i,t);break;case\"fontScheme\":e.fontScheme=vf(i,t);break}return e}function wf(n,t){var e={name:t.attr(n,\"name\"),colors:{}};for(let o of t.elements(n)){var r=t.element(o,\"srgbClr\"),i=t.element(o,\"sysClr\");r?e.colors[o.localName]=t.attr(r,\"val\"):i&&(e.colors[o.localName]=t.attr(i,\"lastClr\"))}return e}function vf(n,t){var e={name:t.attr(n,\"name\")};for(let r of t.elements(n))switch(r.localName){case\"majorFont\":e.majorFont=tl(r,t);break;case\"minorFont\":e.minorFont=tl(r,t);break}return e}function tl(n,t){let e={};for(let r of t.elements(n).filter(i=>i.localName==\"font\")){let i=t.attr(r,\"script\"),o=t.attr(r,\"typeface\");i&&o&&(e[i]=o)}return{latinTypeface:t.elementAttr(n,\"latin\",\"typeface\"),eaTypeface:t.elementAttr(n,\"ea\",\"typeface\"),csTypeface:t.elementAttr(n,\"cs\",\"typeface\"),scriptTypefaces:e}}var sa=class extends Pe{constructor(t,e){super(t,e)}parseXml(t){this.theme=xf(t,this._package.xmlParser)}},Ii=class{},la=class extends Ii{constructor(){super(...arguments),this.type=A.Footnote}},ca=class extends Ii{constructor(){super(...arguments),this.type=A.Endnote}},Oi=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}},ua=class extends Oi{constructor(t,e,r){super(t,e,r)}parseXml(t){this.notes=this._documentParser.parseNotes(t,\"footnote\",la)}},ha=class extends Oi{constructor(t,e,r){super(t,e,r)}parseXml(t){this.notes=this._documentParser.parseNotes(t,\"endnote\",ca)}};function Tf(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"defaultTabStop\":e.defaultTabStop=t.lengthAttr(r,\"val\");break;case\"footnotePr\":e.footnoteProps=Ri(r,t);break;case\"endnotePr\":e.endnoteProps=Ri(r,t);break;case\"autoHyphenation\":e.autoHyphenation=t.boolAttr(r,\"val\");break;case\"kinsoku\":e.kinsoku=t.boolAttr(r,\"val\",!0);break;case\"overflowPunct\":e.overflowPunctuation=t.boolAttr(r,\"val\",!0);break;case\"topLinePunct\":e.topLinePunctuation=t.boolAttr(r,\"val\",!0);break;case\"autoSpaceDE\":e.autoSpaceDE=t.boolAttr(r,\"val\",!0);break;case\"autoSpaceDN\":e.autoSpaceDN=t.boolAttr(r,\"val\",!0);break;case\"noLineBreaksAfter\":e.noLineBreaksAfter=t.attr(r,\"val\")||r.textContent||\"\";break;case\"noLineBreaksBefore\":e.noLineBreaksBefore=t.attr(r,\"val\")||r.textContent||\"\";break;case\"evenAndOddHeaders\":e.evenAndOddHeaders=t.boolAttr(r,\"val\",!0);break;case\"splitPgBreakAndParaMark\":e.splitPageBreakAndParagraphMark=t.boolAttr(r,\"val\",!0);break;case\"compat\":for(let i of t.elements(r))i.localName==\"adjustLineHeightInTable\"&&(e.adjustLineHeightInTable=t.boolAttr(i,\"val\",!0));break}return e}var da=class extends Pe{constructor(t,e){super(t,e)}parseXml(t){this.settings=Tf(t,this._package.xmlParser)}};function Sf(n,t){return t.elements(n,\"property\").map(e=>{let r=e.firstChild;return{formatId:t.attr(e,\"fmtid\"),name:t.attr(e,\"name\"),type:r.nodeName,value:r.textContent}})}var fa=class extends Pe{parseXml(t){this.props=Sf(t,this._package.xmlParser)}},pa=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.comments=this._documentParser.parseComments(t),this.commentMap=ur(this.comments,e=>e.id)}},ma=class extends Pe{constructor(t,e){super(t,e),this.comments=[]}parseXml(t){let e=this._package.xmlParser;for(let r of e.elements(t,\"commentEx\"))this.comments.push({paraId:e.attr(r,\"paraId\"),paraIdParent:e.attr(r,\"paraIdParent\"),done:e.boolAttr(r,\"done\")});this.commentMap=ur(this.comments,r=>r.paraId)}},Tt={HEADER:1,POLYBEZIER:2,POLYGON:3,POLYLINE:4,POLYBEZIERTO:5,POLYLINETO:6,POLYPOLYLINE:7,POLYPOLYGON:8,SETWINDOWEXTEX:9,SETWINDOWORGEX:10,SETVIEWPORTEXTEX:11,SETVIEWPORTORGEX:12,EOF:14,SETPIXELV:15,SETBKMODE:18,SETPOLYFILLMODE:19,SETTEXTALIGN:22,SETTEXTCOLOR:24,SETBKCOLOR:25,MOVETOEX:27,SCALEVIEWPORTEXTEX:31,SCALEWINDOWEXTEX:32,SAVEDC:33,RESTOREDC:34,SETWORLDTRANSFORM:35,MODIFYWORLDTRANSFORM:36,SELECTOBJECT:37,CREATEPEN:38,CREATEBRUSHINDIRECT:39,DELETEOBJECT:40,ELLIPSE:42,RECTANGLE:43,ROUNDRECT:44,ARC:45,CHORD:46,PIE:47,LINETO:54,ARCTO:55,POLYDRAW:56,BEGINPATH:59,ENDPATH:60,CLOSEFIGURE:61,FILLPATH:62,STROKEANDFILLPATH:63,STROKEPATH:64,BITBLT:76,STRETCHBLT:77,STRETCHDIBITS:81,EXTCREATEFONTINDIRECTW:82,EXTTEXTOUTA:83,EXTTEXTOUTW:84,POLYBEZIER16:85,POLYGON16:86,POLYLINE16:87,POLYBEZIERTO16:88,POLYLINETO16:89,POLYPOLYLINE16:90,POLYPOLYGON16:91,POLYDRAW16:92,EXTCREATEPEN:95,POLYTEXTOUTA:96,POLYTEXTOUTW:97,SMALLTEXTOUT:108,ALPHABLEND:114,TRANSPARENTBLT:116},Ef={0:{type:\"brush\",color:\"#ffffff\"},1:{type:\"brush\",color:\"#c0c0c0\"},2:{type:\"brush\",color:\"#808080\"},3:{type:\"brush\",color:\"#404040\"},4:{type:\"brush\",color:\"#000000\"},5:{type:\"brush\",color:\"none\",nullBrush:!0},6:{type:\"pen\",color:\"#ffffff\",width:1},7:{type:\"pen\",color:\"#000000\",width:1},8:{type:\"pen\",color:\"none\",width:0,nullPen:!0},18:{type:\"brush\",color:\"#ffffff\"},19:{type:\"pen\",color:\"#000000\",width:1}},_l={m11:1,m12:0,m21:0,m22:1,dx:0,dy:0};function Ml(n){if(!n||n.length<48)return!1;let t=Bl(n);return t.getUint32(0,!0)==Tt.HEADER&&t.getUint32(40,!0)==1179469088}function kf(n,t){let e=Af(n,t);return e?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`:null}function Af(n,t={}){if(!Ml(n))return null;let e=Bl(n),r=e.getUint32(4,!0),i=$n(e,8),o=$n(e,24),a=e.byteLength>=52?e.getUint32(48,!0):0,s=Math.max(1,i.right-i.left),l=Math.max(1,i.bottom-i.top),c=Math.max(1,o.right-o.left)/100,h=Math.max(1,o.bottom-o.top)/100,u=Cf(),f=[],d={},p=[],m=Math.max(8,r||108),g=1,b=\"\",T=!1,S=0,I=t.maxRecords??Math.max(1e4,a+100),O=t.maxShapes??5e4,$=W=>{!W||S>=O||(p.push(W),S++)},k=W=>{W&&(b+=(b?\" \":\"\")+W)};for(;m+8<=e.byteLength&&g++<=I;){let W=e.getUint32(m,!0),U=e.getUint32(m+4,!0);if(U<8||m+U>e.byteLength)break;switch(W){case Tt.EOF:m+=U,g=I+1;break;case Tt.SETWINDOWEXTEX:u.windowExt=rl(e,m+8);break;case Tt.SETWINDOWORGEX:u.windowOrg=Ne(e,m+8);break;case Tt.SETVIEWPORTEXTEX:u.viewportExt=rl(e,m+8);break;case Tt.SETVIEWPORTORGEX:u.viewportOrg=Ne(e,m+8);break;case Tt.SCALEWINDOWEXTEX:u.windowExt&&(u.windowExt=ol(e,m,u.windowExt));break;case Tt.SCALEVIEWPORTEXTEX:u.viewportExt&&(u.viewportExt=ol(e,m,u.viewportExt));break;case Tt.SETWORLDTRANSFORM:u.world=nl(e,m+8);break;case Tt.MODIFYWORLDTRANSFORM:{let v=nl(e,m+8),_=e.getUint32(m+32,!0);_==1?u.world=Ia(_l):_==2?u.world=il(v,u.world):_==3?u.world=il(u.world,v):_==4&&(u.world=v);break}case Tt.SAVEDC:f.push(el(u));break;case Tt.RESTOREDC:{let v=e.getInt32(m+8,!0);if(v<0)for(let _=0;_<Math.min(-v,f.length);_++)Object.assign(u,f.pop());else if(v>0&&v<=f.length){let _=f[v-1];f.length=v-1,Object.assign(u,el(_))}break}case Tt.SETBKMODE:u.bkMode=e.getUint32(m+8,!0);break;case Tt.SETPOLYFILLMODE:u.polyFillMode=e.getUint32(m+8,!0);break;case Tt.SETTEXTALIGN:u.textAlign=e.getUint32(m+8,!0);break;case Tt.SETTEXTCOLOR:u.textColor=dn(e.getUint32(m+8,!0));break;case Tt.SETBKCOLOR:u.bkColor=dn(e.getUint32(m+8,!0));break;case Tt.CREATEPEN:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+12,!0),y=Math.abs(e.getInt32(m+16,!0)),H=dn(e.getUint32(m+24,!0));d[v]={type:\"pen\",color:H,width:y||1,nullPen:(_&15)==5};break}case Tt.EXTCREATEPEN:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+28,!0),y=Math.abs(e.getInt32(m+32,!0)),H=e.getUint32(m+36,!0),nt=dn(e.getUint32(m+40,!0));d[v]={type:\"pen\",color:nt,width:y||1,nullPen:(_&15)==5||H==1};break}case Tt.CREATEBRUSHINDIRECT:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+12,!0),y=dn(e.getUint32(m+16,!0));d[v]={type:\"brush\",color:y,nullBrush:_==1};break}case Tt.EXTCREATEFONTINDIRECTW:{let v=e.getUint32(m+8,!0);d[v]=Pf(e,m+12,U-12);break}case Tt.SELECTOBJECT:{let v=e.getUint32(m+8,!0),_=v&2147483648?Ef[v&2147483647]:d[v];_?.type==\"pen\"?u.pen=Fl(_):_?.type==\"brush\"?u.brush=Dl(_):_?.type==\"font\"&&(u.font={..._});break}case Tt.DELETEOBJECT:delete d[e.getUint32(m+8,!0)];break;case Tt.BEGINPATH:T=!0,b=\"\";break;case Tt.ENDPATH:T=!1;break;case Tt.CLOSEFIGURE:k(\"Z\");break;case Tt.MOVETOEX:{let v=ae(u,Ne(e,m+8));u.currentPoint=v,T&&k(`M ${wt(v.x)} ${wt(v.y)}`);break}case Tt.LINETO:{let v=ae(u,Ne(e,m+8));T?k(`L ${wt(v.x)} ${wt(v.y)}`):$(`<path d=\"M ${wt(u.currentPoint.x)} ${wt(u.currentPoint.y)} L ${wt(v.x)} ${wt(v.y)}\" ${$r(u,!1,!0)}/>`),u.currentPoint=v;break}case Tt.POLYLINE:case Tt.POLYGON:sl(e,m,W==Tt.POLYGON,!1,T,u,k,$);break;case Tt.POLYLINETO:sl(e,m,!1,!0,T,u,k,$);break;case Tt.POLYLINE16:case Tt.POLYGON16:al(e,m,W==Tt.POLYGON16,!1,T,u,k,$);break;case Tt.POLYLINETO16:al(e,m,!1,!0,T,u,k,$);break;case Tt.POLYBEZIER:bi(e,m,!1,!1,T,u,k,$);break;case Tt.POLYBEZIERTO:bi(e,m,!1,!0,T,u,k,$);break;case Tt.POLYBEZIER16:bi(e,m,!0,!1,T,u,k,$);break;case Tt.POLYBEZIERTO16:bi(e,m,!0,!0,T,u,k,$);break;case Tt.POLYPOLYLINE:case Tt.POLYPOLYGON:ll(e,m,W==Tt.POLYPOLYGON,!1,T,u,k,$);break;case Tt.POLYPOLYLINE16:case Tt.POLYPOLYGON16:ll(e,m,W==Tt.POLYPOLYGON16,!0,T,u,k,$);break;case Tt.POLYDRAW:cl(e,m,!1,T,u,k,$);break;case Tt.POLYDRAW16:cl(e,m,!0,T,u,k,$);break;case Tt.RECTANGLE:ul(e,m,u,$,!1);break;case Tt.ELLIPSE:Nf(e,m,u,$);break;case Tt.ROUNDRECT:ul(e,m,u,$,!0);break;case Tt.ARC:case Tt.ARCTO:case Tt.CHORD:case Tt.PIE:Rf(e,m,W,T,u,k,$);break;case Tt.FILLPATH:gi(b,u,$,!0,!1),b=\"\";break;case Tt.STROKEPATH:gi(b,u,$,!1,!0),b=\"\";break;case Tt.STROKEANDFILLPATH:gi(b,u,$,!0,!0),b=\"\";break;case Tt.EXTTEXTOUTA:case Tt.EXTTEXTOUTW:If(e,m,U,u,$,W==Tt.EXTTEXTOUTW);break;case Tt.POLYTEXTOUTA:case Tt.POLYTEXTOUTW:Of(e,m,U,u,$,W==Tt.POLYTEXTOUTW);break;case Tt.SMALLTEXTOUT:Lf(e,m,U,u,$);break;case Tt.SETPIXELV:Df(e,m,u,$);break;case Tt.BITBLT:case Tt.STRETCHBLT:case Tt.STRETCHDIBITS:case Tt.ALPHABLEND:case Tt.TRANSPARENTBLT:Bf(e,m,U,W,u,$);break}m+=U}if(b&&gi(b,u,$,!0,!0),!p.length){let W=Hf(n,i);W.length&&p.push(...W)}return p.length?`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wt(c)}mm\" height=\"${wt(h)}mm\" viewBox=\"${wt(i.left)} ${wt(i.top)} ${wt(s)} ${wt(l)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"emf\">${p.join(\"\")}</svg>`:qf(s,l,i,c,h,\"Unsupported EMF image\")}function Cf(){return{world:Ia(_l),windowOrg:{x:0,y:0},windowExt:null,viewportOrg:{x:0,y:0},viewportExt:null,pen:{type:\"pen\",color:\"#000000\",width:1},brush:{type:\"brush\",color:\"#ffffff\",nullBrush:!0},font:null,textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,polyFillMode:1,textAlign:0,currentPoint:{x:0,y:0}}}function el(n){return{world:Ia(n.world),windowOrg:{...n.windowOrg},windowExt:n.windowExt?{...n.windowExt}:null,viewportOrg:{...n.viewportOrg},viewportExt:n.viewportExt?{...n.viewportExt}:null,pen:Fl(n.pen),brush:Dl(n.brush),font:n.font?{...n.font}:null,textColor:n.textColor,bkColor:n.bkColor,bkMode:n.bkMode,polyFillMode:n.polyFillMode,textAlign:n.textAlign,currentPoint:{...n.currentPoint}}}function Fl(n){return{...n}}function Dl(n){return{...n}}function Ia(n){return{...n}}function Bl(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function $n(n,t){return{left:n.getInt32(t,!0),top:n.getInt32(t+4,!0),right:n.getInt32(t+8,!0),bottom:n.getInt32(t+12,!0)}}function Ne(n,t){return{x:n.getInt32(t,!0),y:n.getInt32(t+4,!0)}}function rl(n,t){return Ne(n,t)}function Gi(n,t){return{x:n.getInt16(t,!0),y:n.getInt16(t+2,!0)}}function nl(n,t){return{m11:n.getFloat32(t,!0),m12:n.getFloat32(t+4,!0),m21:n.getFloat32(t+8,!0),m22:n.getFloat32(t+12,!0),dx:n.getFloat32(t+16,!0),dy:n.getFloat32(t+20,!0)}}function il(n,t){return{m11:n.m11*t.m11+n.m12*t.m21,m12:n.m11*t.m12+n.m12*t.m22,m21:n.m21*t.m11+n.m22*t.m21,m22:n.m21*t.m12+n.m22*t.m22,dx:n.dx*t.m11+n.dy*t.m21+t.dx,dy:n.dx*t.m12+n.dy*t.m22+t.dy}}function ae(n,t){let e=n.world,r=t.x*e.m11+t.y*e.m21+e.dx,i=t.x*e.m12+t.y*e.m22+e.dy;return n.windowExt&&n.viewportExt&&n.windowExt.x&&n.windowExt.y&&(r=(r-n.windowOrg.x)*n.viewportExt.x/n.windowExt.x+n.viewportOrg.x,i=(i-n.windowOrg.y)*n.viewportExt.y/n.windowExt.y+n.viewportOrg.y),{x:r,y:i}}function $l(n){let t=Math.hypot(n.world.m11,n.world.m12),e=Math.hypot(n.world.m21,n.world.m22);n.windowExt&&n.viewportExt&&n.windowExt.x&&n.windowExt.y&&(t*=Math.abs(n.viewportExt.x/n.windowExt.x),e*=Math.abs(n.viewportExt.y/n.windowExt.y));let r=(t+e)/2;return Number.isFinite(r)&&r>0?r:1}function ol(n,t,e){let r=n.getInt32(t+8,!0),i=n.getInt32(t+12,!0),o=n.getInt32(t+16,!0),a=n.getInt32(t+20,!0);return{x:i?e.x*r/i:e.x,y:a?e.y*o/a:e.y}}function dn(n){let t=n&255,e=n>>8&255,r=n>>16&255;return`#${_o(t)}${_o(e)}${_o(r)}`}function _o(n){return Math.max(0,Math.min(255,n|0)).toString(16).padStart(2,\"0\")}function wt(n){return Number.isFinite(n)?`${Math.round(n*1e3)/1e3}`:\"0\"}function Oa(n){return`${n??\"\"}`.replace(/[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F-\\u009F]/g,\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}function $r(n,t,e){let r=[];if(t&&!n.brush.nullBrush?(r.push(`fill=\"${n.brush.color}\"`),r.push(`fill-rule=\"${n.polyFillMode==2?\"nonzero\":\"evenodd\"}\"`)):r.push('fill=\"none\"'),e&&!n.pen.nullPen){let i=$l(n),o=n.pen.width==0?1:Math.max(.35,n.pen.width*i);r.push(`stroke=\"${n.pen.color}\"`),r.push(`stroke-width=\"${wt(o)}\"`),r.push('stroke-linecap=\"square\"'),r.push('stroke-linejoin=\"miter\"')}else r.push('stroke=\"none\"');return r.join(\" \")}function gi(n,t,e,r,i){n&&e(`<path d=\"${n}\" ${$r(t,r,i)}/>`)}function al(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0);if(!l||t+28+l*4>n.byteLength)return;let c=[];for(let h=0;h<l;h++)c.push(ae(o,Gi(n,t+28+h*4)));La(c,e,r,i,o,a,s)}function sl(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0);if(!l||t+28+l*8>n.byteLength)return;let c=[];for(let h=0;h<l;h++)c.push(ae(o,Ne(n,t+28+h*8)));La(c,e,r,i,o,a,s)}function La(n,t,e,r,i,o,a){if(!n.length)return;let s=r&&e?\"\":e?`M ${wt(i.currentPoint.x)} ${wt(i.currentPoint.y)}`:`M ${wt(n[0].x)} ${wt(n[0].y)}`,l=e?0:1;for(let c=l;c<n.length;c++)s+=` L ${wt(n[c].x)} ${wt(n[c].y)}`;t&&(s+=\" Z\"),i.currentPoint=n[n.length-1],r?o(s.trim()):a(`<path d=\"${s.trim()}\" ${$r(i,t,!0)}/>`)}function bi(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0),c=e?4:8;if(!l||t+28+l*c>n.byteLength)return;let h=[];for(let p=0;p<l;p++){let m=e?Gi(n,t+28+p*c):Ne(n,t+28+p*c);h.push(ae(o,m))}let u=i&&r?\"\":r?`M ${wt(o.currentPoint.x)} ${wt(o.currentPoint.y)}`:`M ${wt(h[0].x)} ${wt(h[0].y)}`,f=r?o.currentPoint:h[0],d=r?0:1;for(let p=d;p+2<h.length;p+=3){let m=h[p],g=h[p+1],b=h[p+2];u+=` C ${wt(m.x)} ${wt(m.y)} ${wt(g.x)} ${wt(g.y)} ${wt(b.x)} ${wt(b.y)}`,f=b}o.currentPoint=f,i?a(u.trim()):s(`<path d=\"${u.trim()}\" ${$r(o,!1,!0)}/>`)}function ll(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0),c=n.getUint32(t+28,!0),h=t+32,u=h+l*4,f=r?4:8;if(!l||!c||u+c*f>n.byteLength)return;let d=0;for(let p=0;p<l;p++){let m=n.getUint32(h+p*4,!0);if(!m||d+m>c)break;let g=[];for(let b=0;b<m;b++){let T=u+(d+b)*f,S=r?Gi(n,T):Ne(n,T);g.push(ae(o,S))}La(g,e,!1,i,o,a,s),d+=m}}function cl(n,t,e,r,i,o,a){let s=n.getUint32(t+24,!0),l=e?4:8,c=t+28,h=c+s*l;if(!s||h+s>n.byteLength)return;let u=[];for(let p=0;p<s;p++){let m=c+p*l,g=e?Gi(n,m):Ne(n,m);u.push(ae(i,g))}let f=\"\",d=0;for(;d<s;){let p=n.getUint8(h+d),m=p&6;m==6?(f+=` M ${wt(u[d].x)} ${wt(u[d].y)}`,i.currentPoint=u[d],d++):m==2?(f+=` L ${wt(u[d].x)} ${wt(u[d].y)}`,i.currentPoint=u[d],d++):m==4&&d+2<s?(f+=` C ${wt(u[d].x)} ${wt(u[d].y)} ${wt(u[d+1].x)} ${wt(u[d+1].y)} ${wt(u[d+2].x)} ${wt(u[d+2].y)}`,i.currentPoint=u[d+2],d+=3):d++,p&1&&(f+=\" Z\")}f=f.trim(),f&&(r?o(f):a(`<path d=\"${f}\" ${$r(i,!1,!0)}/>`))}function ul(n,t,e,r,i){let o=$n(n,t+8),a=ae(e,{x:o.left,y:o.top}),s=ae(e,{x:o.right,y:o.bottom}),l=Math.min(a.x,s.x),c=Math.min(a.y,s.y),h=Math.abs(s.x-a.x),u=Math.abs(s.y-a.y),f=i?` rx=\"${wt(Math.min(h,u)/8)}\" ry=\"${wt(Math.min(h,u)/8)}\"`:\"\";r(`<rect x=\"${wt(l)}\" y=\"${wt(c)}\" width=\"${wt(h)}\" height=\"${wt(u)}\"${f} ${$r(e,!0,!0)}/>`)}function Nf(n,t,e,r){let i=$n(n,t+8),o=ae(e,{x:i.left,y:i.top}),a=ae(e,{x:i.right,y:i.bottom}),s=(o.x+a.x)/2,l=(o.y+a.y)/2,c=Math.abs(a.x-o.x)/2,h=Math.abs(a.y-o.y)/2;r(`<ellipse cx=\"${wt(s)}\" cy=\"${wt(l)}\" rx=\"${wt(c)}\" ry=\"${wt(h)}\" ${$r(e,!0,!0)}/>`)}function Rf(n,t,e,r,i,o,a){let s=$n(n,t+8),l=Ne(n,t+24),c=Ne(n,t+32),h=(s.left+s.right)/2,u=(s.top+s.bottom)/2,f=Math.abs(s.right-s.left)/2,d=Math.abs(s.bottom-s.top)/2;if(!f||!d)return;let p=Math.atan2(l.y-u,l.x-h),m=Math.atan2(c.y-u,c.x-h),g=m-p;g<=0&&(g+=Math.PI*2);let b=g>Math.PI?1:0,T=ae(i,{x:h+Math.cos(p)*f,y:u+Math.sin(p)*d}),S=ae(i,{x:h+Math.cos(m)*f,y:u+Math.sin(m)*d}),I=ae(i,{x:h,y:u}),O=ae(i,{x:h+f,y:u}),$=ae(i,{x:h,y:u+d}),k=Math.max(.01,Math.abs(O.x-I.x)||Math.abs($.x-I.x)),W=Math.max(.01,Math.abs($.y-I.y)||Math.abs(O.y-I.y)),U=`A ${wt(k)} ${wt(W)} 0 ${b} 1 ${wt(S.x)} ${wt(S.y)}`,v=`M ${wt(T.x)} ${wt(T.y)} ${U}`,_=!1,y=!0;e==Tt.CHORD?(v+=\" Z\",_=!0):e==Tt.PIE&&(v+=` L ${wt(I.x)} ${wt(I.y)} Z`,_=!0),e==Tt.ARCTO&&(i.currentPoint=S),r?o(v):a(`<path d=\"${v}\" ${$r(i,_,y)}/>`)}function Pf(n,t,e){let r=e>=4?n.getInt32(t,!0):12,i=e>=20?n.getInt32(t+16,!0):400,o=e>=21?n.getUint8(t+20)!=0:!1,a=e>=22?n.getUint8(t+21)!=0:!1,s=\"\",l=t+28,c=Math.max(0,Math.min(64,e-28));for(let h=0;h+1<c;h+=2){let u=n.getUint16(l+h,!0);if(!u)break;s+=String.fromCharCode(u)}return{type:\"font\",family:s,size:Math.abs(r)||12,weight:i,italic:o,underline:a}}function If(n,t,e,r,i,o){if(e<76)return;let a=ae(r,Ne(n,t+36)),s=n.getUint32(t+44,!0),l=n.getUint32(t+48,!0);if(!s||l<=0||l+s*(o?2:1)>e)return;let h=o?Wl(n,t+l,s):_a(new Uint8Array(n.buffer,n.byteOffset+t+l,s));Ma(h,a,r,i)}function Of(n,t,e,r,i,o){if(e<40)return;let a=n.getUint32(t+36,!0),s=t+40;for(let l=0;l<a&&s+40<=t+e;l++,s+=40){let c=ae(r,Ne(n,s)),h=n.getUint32(s+8,!0),u=n.getUint32(s+12,!0);if(!h||!u||u+h*(o?2:1)>e)continue;let d=o?Wl(n,t+u,h):_a(new Uint8Array(n.buffer,n.byteOffset+t+u,h));Ma(d,c,r,i)}}function Lf(n,t,e,r,i){if(e<36)return;let o=ae(r,Ne(n,t+8)),a=n.getUint32(t+16,!0),l=n.getUint32(t+20,!0)&512?40:28;if(!a||l+a>e)return;let c=_a(new Uint8Array(n.buffer,n.byteOffset+t+l,a));Ma(c,o,r,i)}function Wl(n,t,e){let r=\"\";for(let i=0;i<e;i++){let o=n.getUint16(t+i*2,!0);o&&(r+=String.fromCharCode(o))}return r}function _a(n){if(!n.length)return\"\";let t=globalThis.TextDecoder;if(t)try{return new t(\"gb18030\").decode(n).replace(/\\0+$/g,\"\")}catch{try{return new t(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\")}catch{}}let e=\"\";for(let r of n)r&&(e+=String.fromCharCode(r));return e}function _f(n,t){let e=n.font,r=Math.max(1,(e?.size??12)*$l(n));return[`x=\"${wt(t.x)}\"`,`y=\"${wt(t.y)}\"`,`fill=\"${n.textColor}\"`,`font-size=\"${wt(r)}\"`,e?.family?`font-family=\"${Oa(e.family)}\"`:\"\",e?.weight?`font-weight=\"${e.weight>=600?\"bold\":\"normal\"}\"`:\"\",e?.italic?'font-style=\"italic\"':\"\",e?.underline?'text-decoration=\"underline\"':\"\",Mf(n),Ff(n)].filter(Boolean).join(\" \")}function Mf(n){let t=n.textAlign&6;return t==6?'text-anchor=\"middle\"':t==2?'text-anchor=\"end\"':\"\"}function Ff(n){let t=n.textAlign&24;return t==0?'dominant-baseline=\"text-before-edge\"':t==8?'dominant-baseline=\"text-after-edge\"':\"\"}function Ma(n,t,e,r){n&&r(`<text ${_f(e,t)}>${Oa(n)}</text>`)}function Df(n,t,e,r){if(t+20>n.byteLength)return;let i=ae(e,Ne(n,t+8)),o=dn(n.getUint32(t+16,!0));r(`<rect x=\"${wt(i.x)}\" y=\"${wt(i.y)}\" width=\"1\" height=\"1\" fill=\"${o}\" stroke=\"none\"/>`)}function Bf(n,t,e,r,i,o){let a=0,s=0,l=0,c=0,h=0,u=0,f=0,d=0;if(r==Tt.STRETCHDIBITS){if(e<80)return;a=n.getInt32(t+24,!0),s=n.getInt32(t+28,!0),h=n.getUint32(t+48,!0),u=n.getUint32(t+52,!0),f=n.getUint32(t+56,!0),d=n.getUint32(t+60,!0),l=n.getInt32(t+72,!0),c=n.getInt32(t+76,!0)}else{if(e<100)return;a=n.getInt32(t+24,!0),s=n.getInt32(t+28,!0),l=n.getInt32(t+32,!0),c=n.getInt32(t+36,!0),h=n.getUint32(t+84,!0),u=n.getUint32(t+88,!0),f=n.getUint32(t+92,!0),d=n.getUint32(t+96,!0)}if(!h||!u||!f||!d||h+u>e||f+d>e)return;let p=$f(n,t,h,u,f,d);if(!p)return;let m=ae(i,{x:a,y:s}),g=ae(i,{x:a+l,y:s+c}),b=Math.min(m.x,g.x),T=Math.min(m.y,g.y),S=Math.abs(g.x-m.x),I=Math.abs(g.y-m.y);o(`<image x=\"${wt(b)}\" y=\"${wt(T)}\" width=\"${wt(S)}\" height=\"${wt(I)}\" href=\"${p}\" preserveAspectRatio=\"none\"/>`)}function $f(n,t,e,r,i,o){let a=t+e,s=t+i;if(r<4||a+r>n.byteLength||s+o>n.byteLength)return null;let c=n.getUint32(a,!0)>=40&&r>=20?n.getUint32(a+16,!0):0,h=new Uint8Array(n.buffer,n.byteOffset+s,o);if(c==4)return`data:image/jpeg;base64,${mn(h)}`;if(c==5)return`data:image/png;base64,${mn(h)}`;let u=new Uint8Array(r+o);return u.set(new Uint8Array(n.buffer,n.byteOffset+a,r),0),u.set(h,r),Wf(u,r)}function Wf(n,t){if(!n?.length||t<=0||t>n.length)return null;let e=14,r=e+n.length,i=e+t,o=new Uint8Array(r);return o[0]=66,o[1]=77,hl(o,2,r),hl(o,10,i),o.set(n,e),`data:image/bmp;base64,${mn(o)}`}function Hf(n,t){let e=Uf(n);if(!e)return[];let r=Math.max(1,t.right-t.left),i=Math.max(1,t.bottom-t.top);return[`<image x=\"${wt(t.left)}\" y=\"${wt(t.top)}\" width=\"${wt(r)}\" height=\"${wt(i)}\" href=\"${e}\" preserveAspectRatio=\"xMidYMid meet\"/>`]}function Uf(n){let t=zf(n);if(t)return`data:image/png;base64,${mn(t)}`;let e=Yf(n);if(e)return`data:image/jpeg;base64,${mn(e)}`;let r=Gf(n);return r?`data:image/bmp;base64,${mn(r)}`:null}function zf(n){let t=[137,80,78,71,13,10,26,10];for(let e=0;e+t.length+12<=n.length;e++){if(!jf(n,t,e))continue;let r=e+8;for(;r+12<=n.length;){let i=Vf(n,r),o=String.fromCharCode(n[r+4],n[r+5],n[r+6],n[r+7]);if(r+=12+i,r>n.length)break;if(o==\"IEND\")return n.subarray(e,r)}}return null}function Yf(n){for(let t=0;t+4<n.length;t++)if(!(n[t]!=255||n[t+1]!=216||n[t+2]!=255)){for(let e=t+4;e+1<n.length;e++)if(n[e]==255&&n[e+1]==217)return n.subarray(t,e+2)}return null}function Gf(n){for(let t=0;t+14<n.length;t++){if(n[t]!=66||n[t+1]!=77)continue;let e=Xf(n,t+2);if(e>14&&t+e<=n.length)return n.subarray(t,t+e)}return null}function jf(n,t,e){for(let r=0;r<t.length;r++)if(n[e+r]!=t[r])return!1;return!0}function Vf(n,t){return(n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3])>>>0}function Xf(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0}function hl(n,t,e){n[t]=e&255,n[t+1]=e>>8&255,n[t+2]=e>>16&255,n[t+3]=e>>24&255}function mn(n){let t=\"\";for(let i=0;i<n.length;i+=32768)t+=String.fromCharCode(...n.subarray(i,i+32768));if(typeof btoa==\"function\")return btoa(t);let r=globalThis.Buffer;return r?r.from(n).toString(\"base64\"):t}function qf(n,t,e,r,i,o){return`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wt(r)}mm\" height=\"${wt(i)}mm\" viewBox=\"${wt(e.left)} ${wt(e.top)} ${wt(n)} ${wt(t)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"emf\"><rect x=\"${wt(e.left)}\" y=\"${wt(e.top)}\" width=\"${wt(n)}\" height=\"${wt(t)}\" fill=\"none\" stroke=\"#999\" stroke-width=\"1\"/><text x=\"${wt(e.left+n/2)}\" y=\"${wt(e.top+t/2)}\" text-anchor=\"middle\" font-size=\"12\" fill=\"#666\">${Oa(o)}</text></svg>`}var Hl=2596720087,ne={EOF:0,SETBKMODE:258,SETBKCOLOR:513,SETTEXTCOLOR:521,SETTEXTALIGN:302,SETWINDOWORG:523,SETWINDOWEXT:524,SETVIEWPORTORG:525,SETVIEWPORTEXT:526,MOVETO:532,LINETO:531,POLYLINE:805,POLYGON:804,RECTANGLE:1051,ELLIPSE:1048,CREATEPENINDIRECT:762,CREATEBRUSHINDIRECT:764,CREATEFONTINDIRECT:763,SELECTOBJECT:301,DELETEOBJECT:496,TEXTOUT:1313,EXTTEXTOUT:2610},Kf={0:{type:\"brush\",color:\"#ffffff\"},1:{type:\"brush\",color:\"#c0c0c0\"},2:{type:\"brush\",color:\"#808080\"},3:{type:\"brush\",color:\"#404040\"},4:{type:\"brush\",color:\"#000000\"},5:{type:\"brush\",color:\"none\",nullBrush:!0},6:{type:\"pen\",color:\"#ffffff\",width:1},7:{type:\"pen\",color:\"#000000\",width:1},8:{type:\"pen\",color:\"none\",width:0,nullPen:!0},18:{type:\"brush\",color:\"#ffffff\"},19:{type:\"pen\",color:\"#000000\",width:1}};function Ul(n){if(!n||n.length<22)return!1;let t=Vl(n);return t.getUint32(0,!0)==Hl?!0:n.length>=18&&t.getUint16(0,!0)==1&&t.getUint16(2,!0)==9}function Zf(n,t){let e=Jf(n,t);return e?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`:null}function Jf(n,t={}){if(!Ul(n))return null;let e=Vl(n),r=0,i={left:0,top:0,right:1e3,bottom:1e3},o=100,a=100;if(e.getUint32(0,!0)==Hl&&e.byteLength>=22){i={left:e.getInt16(6,!0),top:e.getInt16(8,!0),right:e.getInt16(10,!0),bottom:e.getInt16(12,!0)};let O=Math.max(1,e.getUint16(14,!0)||1440);o=Math.max(1,i.right-i.left)/O*25.4,a=Math.max(1,i.bottom-i.top)/O*25.4,r=22}if(r+18>e.byteLength)return null;let s=e.getUint32(r+6,!0),l=Math.max(1,e.getUint16(r+10,!0)||16),c=s>0?s*2:e.byteLength;r+=18;let h=Math.max(1,i.right-i.left),u=Math.max(1,i.bottom-i.top),f=Qf(i),d=new Array(l).fill(null),p=[],m=0,g=0,b=t.maxRecords??1e4,T=t.maxShapes??5e4,S=Math.min(e.byteLength,c),I=O=>{!O||m>=T||(p.push(O),m++)};for(;r+6<=S&&g++<b;){let O=e.getUint32(r,!0),$=e.getUint16(r+4,!0),k=r+O*2;if(O<3||k>e.byteLength)break;let W=r+6;switch($){case ne.EOF:r=S;break;case ne.SETBKMODE:f.bkMode=Re(e,W);break;case ne.SETBKCOLOR:f.bkColor=Mi(_i(e,W));break;case ne.SETTEXTCOLOR:f.textColor=Mi(_i(e,W));break;case ne.SETTEXTALIGN:f.textAlign=xr(e,W);break;case ne.SETWINDOWORG:f.windowOrg=Fr(e,W);break;case ne.SETWINDOWEXT:f.windowExt=Fr(e,W),(!o||!a)&&(o=Math.max(1,Math.abs(f.windowExt.x))/100,a=Math.max(1,Math.abs(f.windowExt.y))/100);break;case ne.SETVIEWPORTORG:f.viewportOrg=Fr(e,W);break;case ne.SETVIEWPORTEXT:f.viewportExt=Fr(e,W);break;case ne.CREATEPENINDIRECT:Mo(d,ep(e,W,k));break;case ne.CREATEBRUSHINDIRECT:Mo(d,rp(e,W,k));break;case ne.CREATEFONTINDIRECT:Mo(d,np(e,W,k));break;case ne.SELECTOBJECT:{let U=xr(e,W),v=U>=32768?Kf[U&32767]:d[U];v?.type==\"pen\"?f.pen={...v}:v?.type==\"brush\"?f.brush={...v}:v?.type==\"font\"&&(f.font={...v});break}case ne.DELETEOBJECT:{let U=xr(e,W);U<d.length&&(d[U]=null);break}case ne.MOVETO:f.currentPoint=gn(f,Fr(e,W));break;case ne.LINETO:{let U=gn(f,Fr(e,W));I(`<path d=\"M ${Ut(f.currentPoint.x)} ${Ut(f.currentPoint.y)} L ${Ut(U.x)} ${Ut(U.y)}\" ${Da(f)}/>`),f.currentPoint=U;break}case ne.POLYLINE:case ne.POLYGON:ip(e,W,k,$==ne.POLYGON,f,I);break;case ne.RECTANGLE:dl(e,W,f,I,!1);break;case ne.ELLIPSE:dl(e,W,f,I,!0);break;case ne.TEXTOUT:op(e,W,k,f,I);break;case ne.EXTTEXTOUT:ap(e,W,k,f,I);break}r=k}return p.length?`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${Ut(o)}mm\" height=\"${Ut(a)}mm\" viewBox=\"${Ut(i.left)} ${Ut(i.top)} ${Ut(h)} ${Ut(u)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"wmf\">${p.join(\"\")}</svg>`:dp(h,u,i,o,a,\"Unsupported WMF image\")}function Qf(n){return{windowOrg:{x:n.left,y:n.top},windowExt:{x:Math.max(1,n.right-n.left),y:Math.max(1,n.bottom-n.top)},viewportOrg:{x:0,y:0},viewportExt:null,currentPoint:{x:0,y:0},pen:{type:\"pen\",color:\"#000000\",width:1},brush:{type:\"brush\",color:\"#ffffff\",nullBrush:!0},font:{type:\"font\",family:\"Times New Roman\",size:12,weight:400,italic:!1,underline:!1,strike:!1,charset:0},textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,textAlign:0}}function gn(n,t){let e=n.viewportExt??n.windowExt,r=Li(e.x,n.windowExt.x),i=Li(e.y,n.windowExt.y);return{x:n.viewportOrg.x+(t.x-n.windowOrg.x)*r,y:n.viewportOrg.y+(t.y-n.windowOrg.y)*i}}function Fa(n,t){let e=n.viewportExt??n.windowExt;return Math.abs(t*Li(e.x,n.windowExt.x))}function tp(n,t){let e=n.viewportExt??n.windowExt;return Math.abs(t*Li(e.y,n.windowExt.y))}function Li(n,t){return t?n/t:1}function ep(n,t,e){let r=xr(n,t),i=t+4<e?Math.abs(Re(n,t+2)):1,o=t+6<e?Math.abs(Re(n,t+4)):0;return{type:\"pen\",color:t+10<=e?Mi(_i(n,t+6)):\"#000000\",width:Math.max(1,i,o),nullPen:(r&15)==5}}function rp(n,t,e){let r=xr(n,t);return{type:\"brush\",color:t+6<=e?Mi(_i(n,t+2)):\"#ffffff\",nullBrush:r==1||r==5}}function np(n,t,e){let r=Re(n,t),i=Re(n,t+2),o=Re(n,t+8)||400,a=yi(n,t+10)!=0,s=yi(n,t+11)!=0,l=yi(n,t+12)!=0,c=yi(n,t+13),h=cp(n,t+18,Math.max(0,Math.min(32,e-t-18)));return{type:\"font\",family:up(h)||\"Times New Roman\",size:Math.max(1,Math.abs(r||i||12)),weight:o,italic:a,underline:s,strike:l,charset:c}}function ip(n,t,e,r,i,o){let a=xr(n,t),s=t+2,l=[];for(let h=0;h<a&&s+4<=e;h++,s+=4)l.push(gn(i,{x:Re(n,s),y:Re(n,s+2)}));if(!l.length)return;let c=l.map((h,u)=>`${u==0?\"M\":\"L\"} ${Ut(h.x)} ${Ut(h.y)}`).join(\" \")+(r?\" Z\":\"\");o(`<path d=\"${c}\" ${r?ga(i):Da(i)}/>`),i.currentPoint=l[l.length-1]}function dl(n,t,e,r,i){let o=gn(e,Fr(n,t)),a=gn(e,Fr(n,t+4)),s=Math.min(a.x,o.x),l=Math.min(a.y,o.y),c=Math.abs(o.x-a.x),h=Math.abs(o.y-a.y);r(i?`<ellipse cx=\"${Ut(s+c/2)}\" cy=\"${Ut(l+h/2)}\" rx=\"${Ut(c/2)}\" ry=\"${Ut(h/2)}\" ${ga(e)}/>`:`<rect x=\"${Ut(s)}\" y=\"${Ut(l)}\" width=\"${Ut(c)}\" height=\"${Ut(h)}\" ${ga(e)}/>`)}function op(n,t,e,r,i){let o=xr(n,t),a=t+2,s=a+o+o%2;if(s+4>e)return;let l=jl(n,a,o,r.font.charset),c=Re(n,s),h=Re(n,s+2);Gl(l,zl(r,{x:h,y:c}),null,r,i),Yl(l,null,r)}function ap(n,t,e,r,i){let o=Re(n,t),a=Re(n,t+2),s=xr(n,t+4),l=xr(n,t+6),c=t+8;if(l&6&&(c+=8),c+s>e)return;let h=jl(n,c,s,r.font.charset);c+=s+s%2;let u=[];for(;c+2<=e&&u.length<s;)u.push(Re(n,c)),c+=2;Gl(h,zl(r,{x:a,y:o}),u.length?u:null,r,i),Yl(h,u.length?u:null,r)}function zl(n,t){return n.textAlign&1?{...n.currentPoint}:gn(n,t)}function Yl(n,t,e){if(!(e.textAlign&1))return;let r=t?.length?t.reduce((i,o)=>i+o,0):n.length*e.font.size*.5;e.currentPoint={x:e.currentPoint.x+Fa(e,r),y:e.currentPoint.y}}function Gl(n,t,e,r,i){if(!n)return;let o=r.font,a=Math.max(1,tp(r,o.size)),s=[`font-family:${hp(o.family)}`,`font-size:${Ut(a)}px`,`font-weight:${o.weight>=600?\"700\":o.weight}`,`font-style:${o.italic?\"italic\":\"normal\"}`],l=[];o.underline&&l.push(\"underline\"),o.strike&&l.push(\"line-through\"),l.length&&s.push(`text-decoration:${l.join(\" \")}`);let c=[`x=\"${Ut(t.x)}\"`,`y=\"${Ut(t.y)}\"`,`fill=\"${Di(r.textColor)}\"`,`style=\"${Di(s.join(\";\"))}\"`,`dominant-baseline=\"${(r.textAlign&24)==24?\"alphabetic\":\"text-before-edge\"}\"`,lp(r.textAlign)].filter(Boolean).join(\" \");if(!e||e.length==0){i(`<text ${c}>${Fi(n)}</text>`);return}let h=t.x,f=Array.from(n).map((d,p)=>{let m=`<tspan x=\"${Ut(h)}\">${Fi(d)}</tspan>`;return h+=Fa(r,e[p]??0),m}).join(\"\");i(`<text ${c}>${f}</text>`)}function Mo(n,t){let e=n.findIndex(r=>r==null);if(e<0){n.push(t);return}n[e]=t}function ga(n){return`${sp(n)} ${Da(n)}`}function sp(n){return n.brush?.nullBrush?'fill=\"none\"':`fill=\"${Di(n.brush?.color??\"#ffffff\")}\"`}function Da(n){return n.pen?.nullPen?'stroke=\"none\"':`fill=\"none\" stroke=\"${Di(n.pen?.color??\"#000000\")}\" stroke-width=\"${Ut(Math.max(.5,Fa(n,n.pen?.width??1)))}\"`}function lp(n){return n&6?'text-anchor=\"end\"':n&2?'text-anchor=\"middle\"':\"\"}function jl(n,t,e,r){let i=new Uint8Array(n.buffer,n.byteOffset+t,Math.max(0,Math.min(e,n.byteLength-t))),o=r==2?\"symbol\":r==134?\"gb18030\":\"windows-1252\";try{return new TextDecoder(o).decode(i).replace(/\\0+$/g,\"\")}catch{let a=\"\";for(let s of i)a+=String.fromCharCode(s);return a.replace(/\\0+$/g,\"\")}}function Fr(n,t){return{y:Re(n,t),x:Re(n,t+2)}}function yi(n,t){return t<n.byteLength?n.getUint8(t):0}function xr(n,t){return t+2<=n.byteLength?n.getUint16(t,!0):0}function Re(n,t){return t+2<=n.byteLength?n.getInt16(t,!0):0}function _i(n,t){return t+4<=n.byteLength?n.getUint32(t,!0):0}function cp(n,t,e){let r=\"\";for(let i=0;i<e&&t+i<n.byteLength;i++){let o=n.getUint8(t+i);if(o==0)break;r+=String.fromCharCode(o)}return r}function up(n){return(n??\"\").replace(/[^\\x20-\\x7e]/g,\"\").trim()}function hp(n){let t=(n||\"Times New Roman\").replace(/[\"\\\\]/g,\"\");return/[\\s,]/.test(t)?`\"${t}\"`:t}function Mi(n){let t=n&255,e=n>>8&255,r=n>>16&255;return`#${Fo(t)}${Fo(e)}${Fo(r)}`}function Fo(n){return Math.max(0,Math.min(255,n)).toString(16).padStart(2,\"0\")}function Vl(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function Ut(n){if(!Number.isFinite(n))return\"0\";let t=Math.round(n*1e3)/1e3;return Number.isInteger(t)?`${t}`:`${t}`}function Fi(n){return String(n??\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")}function Di(n){return Fi(n).replace(/\"/g,\"&quot;\")}function dp(n,t,e,r,i,o){return`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${Ut(r)}mm\" height=\"${Ut(i)}mm\" viewBox=\"${Ut(e.left)} ${Ut(e.top)} ${Ut(n)} ${Ut(t)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"wmf\"><rect x=\"${Ut(e.left)}\" y=\"${Ut(e.top)}\" width=\"${Ut(n)}\" height=\"${Ut(t)}\" fill=\"none\" stroke=\"#999\" stroke-width=\"1\"/><text x=\"${Ut(e.left+n/2)}\" y=\"${Ut(e.top+t/2)}\" text-anchor=\"middle\" font-size=\"12\" fill=\"#666\">${Fi(o)}</text></svg>`}var fp=[{type:le.OfficeDocument,target:\"word/document.xml\"},{type:le.ExtendedProperties,target:\"docProps/app.xml\"},{type:le.CoreProperties,target:\"docProps/core.xml\"},{type:le.CustomProperties,target:\"docProps/custom.xml\"}],Bi=class n{constructor(){this.parts=[],this.partsMap={},this.contentTypes=[],this._snapshotAssetDataUrls=null,this._snapshotTextParts=null}static fromSnapshot(t,e){let r=new n;r._options=e,r.rels=t.rels??[],r.contentTypes=t.contentTypes??[],r.parts=[],r.partsMap={},r._snapshotAssetDataUrls=t.assetDataUrls??{},r._snapshotTextParts=t.textParts??{},r._package={load:i=>Promise.resolve(r._snapshotTextParts?.[Ae(i)]??null),parseXmlDocument:i=>Ra(i,e?.trimXmlDeclaration??!0),get:i=>r._snapshotTextParts?.[Ae(i)]!=null?{}:null};for(let i of t.parts??[]){let o=r.restoreSnapshotPart(i);o&&(r.parts.push(o),r.partsMap[o.path]=o)}return r}static async load(t,e,r){var i=new n;return i._options=r,i._parser=e,i._package=await qo.load(t,r),i.rels=await i._package.loadRelationships(),i.contentTypes=await i._package.loadContentTypes(),await Promise.all(fp.map(o=>{let a=i.rels.find(s=>s.type===o.type)??o;return i.loadRelationshipPart(a.target,a.type)})),i}restoreSnapshotPart(t){let e={path:t.path,rels:t.rels??[]};switch(Object.assign(e,t.data??{}),t.kind){case\"document\":this.documentPart=e;break;case\"fontTable\":this.fontTablePart=e;break;case\"numbering\":this.numberingPart=e;break;case\"styles\":this.stylesPart=e;break;case\"theme\":this.themePart=e;break;case\"footnotes\":this.footnotesPart=e;break;case\"endnotes\":this.endnotesPart=e;break;case\"coreProps\":this.corePropsPart=e;break;case\"extendedProps\":this.extendedPropsPart=e;break;case\"settings\":this.settingsPart=e;break;case\"comments\":e.commentMap=ur(e.comments??[],r=>r.id),this.commentsPart=e;break;case\"commentsExtended\":e.commentMap=ur(e.comments??[],r=>r.paraId),this.commentsExtendedPart=e;break}return e}async createSnapshot(){let t={rels:this.rels??[],contentTypes:this.contentTypes??[],parts:this.parts.map(e=>this.snapshotPart(e)).filter(Boolean),assetDataUrls:{},textParts:{}};return await this.preloadSnapshotRelationshipTargets(t),t}snapshotPart(t){let e=t,r=\"part\",i={};if(t===this.documentPart)r=\"document\",i={body:e.body};else if(t===this.fontTablePart)r=\"fontTable\",i={fonts:e.fonts};else if(t===this.numberingPart)r=\"numbering\",i={numberings:e.numberings,abstractNumberings:e.abstractNumberings,bulletPictures:e.bulletPictures,domNumberings:e.domNumberings};else if(t===this.stylesPart)r=\"styles\",i={styles:e.styles};else if(t===this.themePart)r=\"theme\",i={theme:e.theme};else if(t===this.footnotesPart)r=\"footnotes\",i={notes:e.notes};else if(t===this.endnotesPart)r=\"endnotes\",i={notes:e.notes};else if(t===this.corePropsPart)r=\"coreProps\",i={props:e.props};else if(t===this.extendedPropsPart)r=\"extendedProps\",i={props:e.props};else if(t===this.settingsPart)r=\"settings\",i={settings:e.settings};else if(t===this.commentsPart)r=\"comments\",i={comments:e.comments};else if(t===this.commentsExtendedPart)r=\"commentsExtended\",i={comments:e.comments};else if(e.rootElement)r=e.rootElement.type===\"header\"?\"header\":\"footer\",i={rootElement:e.rootElement};else return null;return{kind:r,path:t.path,rels:t.rels??[],data:i}}async preloadSnapshotRelationshipTargets(t){let e=new Set,r=i=>{for(let o of i?.rels??[]){if(!o||cr(o))continue;let a=Ae(this.resolveRelationshipTarget(i,o));!a||e.has(a)||e.add(a)}};for(let i of this.parts)r(i);for(let i of e){if(this.partsMap[i])continue;let o=i.toLowerCase(),a=/\\.(xml|rels|html?|txt)$/i.test(o);try{if(a){let s=await this._package.load(i,\"string\");s!=null&&(t.textParts[i]=s)}else{let s=await this.loadPackageAssetDataUrl(i);s&&(t.assetDataUrls[i]=s)}}catch(s){this._options?.debug&&console.warn(`docx-preview: unable to preload relationship target ${i}`,s)}}}blobWithContentType(t,e){if(!t)return null;let r=this.contentTypeForPath(e);return r?new Blob([t],{type:r}):t}save(t=\"blob\"){return this._package.save(t)}async loadRelationshipPart(t,e){if(this.partsMap[t])return this.partsMap[t];if(!this._package.get(t))return null;let r=null;switch(e){case le.OfficeDocument:this.documentPart=r=new Ko(this._package,t,this._parser);break;case le.FontTable:this.fontTablePart=r=new Xo(this._package,t);break;case le.Numbering:this.numberingPart=r=new Jo(this._package,t,this._parser);break;case le.Styles:this.stylesPart=r=new Qo(this._package,t,this._parser);break;case le.Theme:this.themePart=r=new sa(this._package,t);break;case le.Footnotes:this.footnotesPart=r=new ua(this._package,t,this._parser);break;case le.Endnotes:this.endnotesPart=r=new ha(this._package,t,this._parser);break;case le.Footer:r=new na(this._package,t,this._parser);break;case le.Header:r=new ra(this._package,t,this._parser);break;case le.CoreProperties:this.corePropsPart=r=new oa(this._package,t);break;case le.ExtendedProperties:this.extendedPropsPart=r=new ia(this._package,t);break;case le.CustomProperties:r=new fa(this._package,t);break;case le.Settings:this.settingsPart=r=new da(this._package,t);break;case le.Comments:this.commentsPart=r=new pa(this._package,t,this._parser);break;case le.CommentsExtended:this.commentsExtendedPart=r=new ma(this._package,t);break}if(r==null)return Promise.resolve(null);if(this.partsMap[t]=r,this.parts.push(r),await r.load(),r.rels?.length>0){let[i]=Vo(r.path);await Promise.all(r.rels.filter(o=>!cr(o)).map(o=>this.loadRelationshipPart(qs(o.target,i),o.type)))}return r}async loadRelationshipXml(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return null;let o=this.resolveRelationshipTarget(r,i),a=Ae(o),s=a?this._snapshotTextParts?.[a]??await this._package.load(a,\"string\"):null;return s?this._package.parseXmlDocument(s):null}async loadRelationshipText(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return null;let o=Ae(this.resolveRelationshipTarget(r,i));return o?Promise.resolve(this._snapshotTextParts?.[o]??this._package.load(o,\"string\")):Promise.resolve(null)}async loadRelationshipBlobUrl(t,e,r=this._options?.externalResourcePolicy??\"block\"){let i=e??this.documentPart,o=this.getRelById(i,t);if(!o)return null;if(cr(o))return Xs(o,r);let a=Ae(this.resolveRelationshipTarget(i,o));return a?this.loadPackageAssetUrl(a):null}async loadDocumentImage(t,e,r=this._options?.externalResourcePolicy??\"block\"){let i=e??this.documentPart,o=this.getRelById(i,t);if(!o)return null;if(cr(o))return Xs(o,r);let a=Ae(this.resolveRelationshipTarget(i,o));return a?this.loadPackageAssetUrl(a):null}async loadNumberingImage(t){let e=Ae(this.getPathById(this.numberingPart,t));return e?this.loadPackageAssetUrl(e):null}async loadFont(t,e){let r=Ae(this.getPathById(this.fontTablePart,t));if(!r)return null;if(this._snapshotAssetDataUrls?.[r])return this._snapshotAssetDataUrls[r];let i=await this._package.load(r,\"uint8array\");return i&&this.blobToURL(new Blob([pp(i,e)]),r)}async loadAltChunk(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return Promise.resolve(null);let o=Ae(this.resolveRelationshipTarget(r,i));return o?Promise.resolve(this._snapshotTextParts?.[o]??this._package.load(o,\"string\")):Promise.resolve(null)}blobToURL(t,e){return t?(t=this.blobWithContentType(t,e),this._options.useBase64URL?Oo(t):URL.createObjectURL(t)):null}async loadPackageAssetUrl(t){let e=Ae(t);if(!e)return null;if(this._snapshotAssetDataUrls?.[e])return this._snapshotAssetDataUrls[e];if(this.isConvertibleMetafileAsset(e)){let r=await this._package.load(e,\"uint8array\");if(!r)return null;let i=this.convertMetafileAsset(r,e);return i||this.blobToURL(new Blob([r],{type:this.contentTypeForPath(e)||this.defaultMetafileContentType(e)}),e)}return this.blobToURL(await this._package.load(e,\"blob\"),e)}async loadPackageAssetDataUrl(t){let e=Ae(t);if(!e)return null;if(this.isConvertibleMetafileAsset(e)){let o=await this._package.load(e,\"uint8array\");if(!o)return null;let a=this.convertMetafileAsset(o,e);if(a)return a;let s=o?new Blob([o],{type:this.contentTypeForPath(e)||this.defaultMetafileContentType(e)}):null;return s?Oo(s):null}let r=await this._package.load(e,\"blob\"),i=this.blobWithContentType(r,e);return i?Oo(i):null}convertMetafileAsset(t,e){if(!t)return null;try{if(Ml(t))return kf(t);if(Ul(t))return Zf(t)}catch(r){return this._options?.debug&&console.warn(`docx-preview: unable to convert metafile asset ${e}`,r),null}return null}isConvertibleMetafileAsset(t){let e=this.contentTypeForPath(t).toLowerCase();return/\\.(emf|wmf)$/i.test(t??\"\")||e==\"image/x-emf\"||e==\"image/emf\"||e==\"image/x-wmf\"||e==\"image/wmf\"}defaultMetafileContentType(t){return/\\.wmf$/i.test(t??\"\")?\"image/x-wmf\":\"image/x-emf\"}contentTypeForPath(t){let r=Ae(t??\"\").toLowerCase();for(let s of this.contentTypes??[])if(s.partName&&Ae(s.partName).toLowerCase()==r)return s.contentType??\"\";let o=/\\.([^.\\/]+)$/.exec(r)?.[1]??\"\";return o?(this.contentTypes??[]).find(s=>s.extension?.toLowerCase()==o)?.contentType??\"\":\"\"}findPartByRelId(t,e=null){var r=this.getRelById(e,t);let i=r&&!cr(r)?this.resolveRelationshipTarget(e,r):null;return i?this.partsMap[i]:null}getRelById(t,e){return(t?.rels??this.rels??[]).find(r=>r.id==e)}getPathById(t,e){let r=this.getRelById(t,e);return r&&!cr(r)?this.resolveRelationshipTarget(t,r):null}resolveRelationshipTarget(t,e){let[r]=t?Vo(t.path):[\"\"];return Ae(qs(e.target,r))}};function Ae(n){return n&&(n.startsWith(\"/\")?n.substring(1):n)}function pp(n,t){let r=t.replace(/{|}|-/g,\"\"),i=new Array(16);for(let o=0;o<16;o++)i[16-o-1]=parseInt(r.substring(o*2,o*2+2),16);for(let o=0;o<32;o++)n[o]=n[o]^i[o%16];return n}function fl(n,t){return{type:A.BookmarkStart,id:t.attr(n,\"id\"),name:t.attr(n,\"name\"),colFirst:t.intAttr(n,\"colFirst\"),colLast:t.intAttr(n,\"colLast\")}}function pl(n,t){return{type:A.BookmarkEnd,id:t.attr(n,\"id\")}}var ba=class extends wr{constructor(){super(...arguments),this.type=A.VmlElement,this.attrs={}}};function Xl(n,t){var e=new ba;switch(n.localName){case\"group\":e.tagName=\"g\",e.isGroup=!0;break;case\"roundrect\":e.roundRectArc=.2;case\"rect\":e.tagName=\"rect\",Object.assign(e.attrs,{width:\"100%\",height:\"100%\"});break;case\"oval\":e.tagName=\"ellipse\",Object.assign(e.attrs,{cx:\"50%\",cy:\"50%\",rx:\"50%\",ry:\"50%\"});break;case\"line\":e.tagName=\"line\";break;case\"shape\":e.tagName=\"g\";break;case\"textbox\":e.tagName=\"foreignObject\",e.textInset=[\"0.1in\",\"0.05in\",\"0.1in\",\"0.05in\"],Object.assign(e.attrs,{width:\"100%\",height:\"100%\"});break;default:return null}for(let i of w.attrs(n))switch(i.localName){case\"style\":e.cssStyleText=i.value,e.cssStyle=Dn(i.value);break;case\"coordorigin\":e.coordOrigin=ml(i.value);break;case\"coordsize\":e.coordSize=ml(i.value);break;case\"arcsize\":e.roundRectArc!=null&&(e.roundRectArc=mp(i.value));break;case\"inset\":if(e.textInset){let c=i.value.trim().split(/\\s*,\\s*|\\s+/);e.textInset=e.textInset.map((h,u)=>c[u]||h)}break;case\"id\":e.attrs.id=i.value;break;case\"fillcolor\":e.attrs.fill=i.value;break;case\"strokecolor\":e.attrs.stroke=i.value;break;case\"strokeweight\":e.attrs[\"stroke-width\"]=Be(i.value,$t.Point)??i.value;break;case\"filled\":(i.value==\"f\"||i.value==\"false\")&&(e.attrs.fill=\"none\");break;case\"stroked\":(i.value==\"f\"||i.value==\"false\")&&(e.attrs.stroke=\"none\");break;case\"path\":e.tagName=\"path\",e.attrs.d=xp(i.value);break;case\"from\":let[o,a]=ya(i.value);Object.assign(e.attrs,{x1:o,y1:a});break;case\"to\":let[s,l]=ya(i.value);Object.assign(e.attrs,{x2:s,y2:l});break}for(let i of w.elements(n))switch(i.localName){case\"stroke\":Object.assign(e.attrs,bp(i));break;case\"fill\":Object.assign(e.attrs,yp(i));break;case\"imagedata\":let o=w.attr(i,\"id\")??w.attr(i,\"relid\")??w.attr(i,\"pict\");o&&(e.tagName=\"image\",Object.assign(e.attrs,gp(i)),e.imageHref={id:o,title:w.attr(i,\"title\")});break;case\"txbxContent\":e.children.push(...t.parseBodyElements(i));break;default:let a=Xl(i,t);a&&e.children.push(a);break}let r=e.cssStyle?.rotation?.trim();if(r&&/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:fd|deg)?$/i.test(r)){let i=parseFloat(r)/(/fd$/i.test(r)?65536:1);Number.isFinite(i)&&(e.rotation=i)}if(e.cssStyle?.position==\"absolute\"){let i=e.cssStyle[\"mso-position-horizontal-relative\"]??\"paragraph\",o=e.cssStyle[\"mso-position-vertical-relative\"]??\"paragraph\",a=e.cssStyle[\"mso-position-horizontal\"],s=e.cssStyle[\"mso-position-vertical\"];e.props={anchorPosition:{layoutInCell:!/^(f|false|0|off)$/i.test(w.attr(n,\"allowincell\")??\"\"),horizontal:{relative:i==\"text\"?\"column\":i,align:a,alignSpecified:!!a&&a!=\"absolute\"},vertical:{relative:o==\"text\"?\"paragraph\":o,align:s,alignSpecified:!!s&&s!=\"absolute\"}}}}return e}function mp(n){let t=n.trim();if(!/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:%|f)?$/i.test(t))return .2;let e=parseFloat(t)/(/%$/.test(t)?100:/f$/i.test(t)?65536:1);return Number.isFinite(e)?Math.max(0,Math.min(1,e)):.2}function gp(n){let t=xi(w.attr(n,\"cropleft\")),e=xi(w.attr(n,\"croptop\")),r=xi(w.attr(n,\"cropright\")),i=xi(w.attr(n,\"cropbottom\")),o=Math.max(1e-4,1-t-r),a=Math.max(1e-4,1-e-i),s={x:wi(-t/o),y:wi(-e/a),width:wi(1/o),height:wi(1/a)};return(t||e||r||i)&&(s.preserveAspectRatio=\"none\"),s}function xi(n){if(!n)return 0;let t=String(n).trim();if(!t)return 0;let e;return/^-?\\d+(\\.\\d+)?f$/i.test(t)?e=parseFloat(t.slice(0,-1))/65536:t.endsWith(\"%\")?e=parseFloat(t)/100:e=parseFloat(t),Number.isFinite(e)?Math.max(0,Math.min(.9999,e)):0}function wi(n){return`${Math.round(n*1e5)/1e3}%`}function bp(n){let t={},e=w.attr(n,\"color\"),r=w.attr(n,\"weight\"),i=w.attr(n,\"on\");return i==\"f\"||i==\"false\"?t.stroke=\"none\":e&&(t.stroke=e),r?t[\"stroke-width\"]=Be(r,$t.Point)??r:t[\"stroke-width\"]=\"1px\",t}function yp(n){let t={},e=w.attr(n,\"color\")??w.attr(n,\"color2\"),r=w.attr(n,\"on\"),i=w.attr(n,\"opacity\");return r==\"f\"||r==\"false\"?t.fill=\"none\":e&&(t.fill=e),i&&(t[\"fill-opacity\"]=i.endsWith(\"%\")?`${parseFloat(i)/100}`:i),t}function ya(n){return n.trim().split(/[\\s,]+/)}function ml(n){let[t,e]=ya(n).map(r=>Number(r));return[Number.isFinite(t)?t:0,Number.isFinite(e)?e:0]}function xp(n){return n.replace(/([mlxe])|([-\\d]+)|([,])/g,t=>/[-\\d]/.test(t)||/[ml,]/.test(t)?t:t==\"x\"?\"z\":\"\")}var xa=class extends wr{constructor(){super(...arguments),this.type=A.Comment}},wa=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentReference}},$i=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentRangeStart}},Wi=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentRangeEnd}};function wp(){let n=new WeakMap,t=new WeakSet;function e(r){let i=n.get(r);if(i)return i;let o=r.parentNode?.nodeType===1?r.parentNode:null;if(!o){let s=`/${r.nodeName}`;return n.set(r,s),s}let a=e(o);if(!t.has(o)){let s=new Map;for(let l of Array.from(o.childNodes)){if(l.nodeType!==1)continue;let c=l,h=`${c.namespaceURI}|${c.localName}`,u=s.get(h)??[];u.push(c),s.set(h,u)}for(let l of s.values())l.forEach((c,h)=>{n.set(c,`${a}/${c.nodeName}${l.length>1?`[${h+1}]`:\"\"}`)});t.add(o)}return n.get(r)}return r=>{if(r.localName!==\"p\"||r.namespaceURI!==\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\")return;let i=r.getAttributeNS(\"http://schemas.microsoft.com/office/word/2010/wordml\",\"paraId\");return i?`p:${i}`:`xpath:${e(r)}`}}var Br={shd:\"inherit\",color:\"var(--docx-auto-color, black)\",borderColor:\"var(--docx-auto-color, black)\",highlight:\"transparent\"},vp=[Qr.wordprocessingShape,Qr.wordprocessingCanvas,Qr.wordprocessingGroup,Qr.drawingml,Qr.picture],gl={oMath:A.MmlMath,oMathPara:A.MmlMathParagraph,f:A.MmlFraction,func:A.MmlFunction,fName:A.MmlFunctionName,num:A.MmlNumerator,den:A.MmlDenominator,rad:A.MmlRadical,deg:A.MmlDegree,e:A.MmlBase,sSup:A.MmlSuperscript,sSub:A.MmlSubscript,sPre:A.MmlPreSubSuper,sup:A.MmlSuperArgument,sub:A.MmlSubArgument,d:A.MmlDelimiter,nary:A.MmlNary,eqArr:A.MmlEquationArray,lim:A.MmlLimit,limLow:A.MmlLimitLower,limUpp:A.MmlLimitUpper,sSubSup:A.MmlSubSuperscript,phant:A.MmlPhantom,borderBox:A.MmlBorderBox,acc:A.MmlAccent,m:A.MmlMatrix,mr:A.MmlMatrixRow,box:A.MmlBox,bar:A.MmlBar,groupChr:A.MmlGroupChar},va=class{constructor(t){this.paragraphAddress=wp(),this.options={ignoreWidth:!1,debug:!1,hideWebHiddenContent:!1,...t}}parseNotes(t,e,r){var i=[];for(let o of w.elements(t,e)){let a=new r;a.id=w.attr(o,\"id\"),a.noteType=w.attr(o,\"type\"),a.children=this.parseBodyElements(o),i.push(a)}return i}parseComments(t){var e=[];for(let r of w.elements(t,\"comment\")){let i=new xa;i.id=w.attr(r,\"id\"),i.author=w.attr(r,\"author\"),i.initials=w.attr(r,\"initials\"),i.date=w.attr(r,\"date\"),i.children=this.parseBodyElements(r),e.push(i)}return e}parseDocumentFile(t){var e=w.element(t,\"body\"),r=w.element(t,\"background\"),i=w.element(e,\"sectPr\");let o=r?.getElementsByTagNameNS(\"urn:schemas-microsoft-com:vml\",\"fill\")?.[0],a=o?.getAttributeNS(\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",\"id\");return{type:A.Document,children:this.parseBodyElements(e),props:Pl(i,w),cssStyle:r?this.parseBackground(r):{},backgroundImage:a?{id:a,type:o.getAttribute(\"type\")||\"tile\"}:void 0}}parseBackground(t){var e={},r=Dr.colorAttr(t,\"color\",null,Br.shd);return r&&(e[\"background-color\"]=r),e}parseBodyElements(t){var e=[];for(let r of w.elements(t))switch(r.localName){case\"p\":e.push(this.parseParagraph(r));break;case\"altChunk\":e.push(this.parseAltChunk(r));break;case\"tbl\":e.push(this.parseTable(r));break;case\"sdt\":e.push(...this.parseSdt(r,i=>this.parseBodyElements(i)));break;case\"ins\":e.push(this.parseRevision(A.Inserted,r,i=>({children:this.parseBodyElements(i)}),\"insert\"));break;case\"del\":e.push(this.parseRevision(A.Deleted,r,i=>({children:this.parseBodyElements(i)}),\"delete\"));break;case\"moveFrom\":e.push(this.parseRevision(A.Deleted,r,i=>({children:this.parseBodyElements(i)}),\"move-from\"));break;case\"moveTo\":e.push(this.parseRevision(A.Inserted,r,i=>({children:this.parseBodyElements(i)}),\"move-to\"));break}return e}parseStylesFile(t){var e=[];for(let r of w.elements(t))switch(r.localName){case\"style\":e.push(this.parseStyle(r));break;case\"docDefaults\":e.push(this.parseDefaultStyles(r));break}return e}parseDefaultStyles(t){var e={id:null,name:null,target:null,basedOn:null,styles:[]};for(let o of w.elements(t))switch(o.localName){case\"rPrDefault\":var r=w.element(o,\"rPr\");r&&e.styles.push({target:\"span\",values:this.parseDefaultProperties(r,{})});break;case\"pPrDefault\":var i=w.element(o,\"pPr\");i&&e.styles.push({target:\"p\",values:this.parseDefaultProperties(i,{})});break}return e}parseStyle(t){var e={id:w.attr(t,\"styleId\"),isDefault:w.boolAttr(t,\"default\"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(w.attr(t,\"type\")){case\"paragraph\":e.target=\"p\";break;case\"table\":e.target=\"table\";break;case\"character\":e.target=\"span\";break}for(let r of w.elements(t))switch(r.localName){case\"basedOn\":e.basedOn=w.attr(r,\"val\");break;case\"name\":e.name=w.attr(r,\"val\");break;case\"link\":e.linked=w.attr(r,\"val\");break;case\"next\":e.next=w.attr(r,\"val\");break;case\"aliases\":e.aliases=w.attr(r,\"val\").split(\",\");break;case\"pPr\":e.styles.push({target:\"p\",values:this.parseDefaultProperties(r,{})}),e.paragraphProps=Il(r,w);break;case\"rPr\":e.styles.push({target:\"span\",values:this.parseDefaultProperties(r,{})}),e.runProps=Pa(r,w);break;case\"tblPr\":case\"tcPr\":e.styles.push({target:\"td\",values:this.parseDefaultProperties(r,{})});break;case\"tblStylePr\":for(let i of this.parseTableStyle(r))e.styles.push(i);break;case\"rsid\":case\"qFormat\":case\"hidden\":case\"semiHidden\":case\"unhideWhenUsed\":case\"autoRedefine\":case\"uiPriority\":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${r.localName}`)}return e}parseTableStyle(t){var e=[],r=w.attr(t,\"type\"),i=\"\",o=\"\";switch(r){case\"firstRow\":o=\".first-row\",i=\"tr.first-row td\";break;case\"lastRow\":o=\".last-row\",i=\"tr.last-row td\";break;case\"firstCol\":o=\".first-col\",i=\"td.first-col\";break;case\"lastCol\":o=\".last-col\",i=\"td.last-col\";break;case\"band1Vert\":o=\":not(.no-vband)\",i=\"td.odd-col\";break;case\"band2Vert\":o=\":not(.no-vband)\",i=\"td.even-col\";break;case\"band1Horz\":o=\":not(.no-hband)\",i=\"tr.odd-row\";break;case\"band2Horz\":o=\":not(.no-hband)\",i=\"tr.even-row\";break;default:return[]}for(let a of w.elements(t))switch(a.localName){case\"pPr\":e.push({target:`${i} p`,mod:o,values:this.parseDefaultProperties(a,{})});break;case\"rPr\":e.push({target:`${i} span`,mod:o,values:this.parseDefaultProperties(a,{})});break;case\"tblPr\":case\"tcPr\":e.push({target:i,mod:o,values:this.parseDefaultProperties(a,{})});break}return e}parseNumberingFile(t){let e=[],r=[],i={},o=[],a=[];for(let s of w.elements(t))switch(s.localName){case\"numPicBullet\":r.push(this.parseNumberingPicBullet(s));break;case\"abstractNum\":o.push(s);break;case\"num\":a.push(s);break}for(let s of o)i[w.attr(s,\"abstractNumId\")]=this.parseAbstractNumbering(s,r);for(let s of a){let l=w.attr(s,\"numId\"),c=w.elementAttr(s,\"abstractNumId\",\"val\"),h=(i[c]??[]).map(u=>this.cloneNumberingLevel(u,l));for(let u of w.elements(s,\"lvlOverride\")){let f=w.intAttr(u,\"ilvl\"),d=w.element(u,\"lvl\"),p=w.element(u,\"startOverride\"),m=h.find(g=>g.level==f);if(d){m=this.parseNumberingLevel(l,d,r);let g=h.findIndex(b=>b.level==f);g>=0?h[g]=m:h.push(m)}p&&m&&(m.start=w.intAttr(p,\"val\",m.start))}e.push(...h)}return e}cloneNumberingLevel(t,e){return{...t,id:e,pStyle:{...t.pStyle},rStyle:{...t.rStyle},bullet:t.bullet?{...t.bullet}:null}}parseNumberingPicBullet(t){let e=w.intAttr(t,\"numPicBulletId\"),r=w.element(t,\"pict\"),i=r&&w.element(r,\"shape\"),o=i&&w.element(i,\"imagedata\");if(o)return{id:e,src:w.attr(o,\"id\"),style:w.attr(i,\"style\")};let a=w.element(t,\"drawing\"),s=a?this.findDescendant(a,\"blip\"):null;if(s){let l=a?this.findDescendant(a,\"extent\"):null,c=[];if(l){let h=w.lengthAttr(l,\"cx\",$t.Emu),u=w.lengthAttr(l,\"cy\",$t.Emu);h&&c.push(`width:${h};`),u&&c.push(`height:${u};`)}return{id:e,src:w.attr(s,\"embed\")??w.attr(s,\"link\"),style:c.join(\"\")||void 0}}return null}parseAbstractNumbering(t,e){var r=[],i=w.attr(t,\"abstractNumId\");for(let o of w.elements(t))o.localName===\"lvl\"&&r.push(this.parseNumberingLevel(i,o,e));return r}parseNumberingLevel(t,e,r){var i={id:t,level:w.intAttr(e,\"ilvl\"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:\"tab\"};for(let a of w.elements(e))switch(a.localName){case\"start\":i.start=w.intAttr(a,\"val\");break;case\"pPr\":this.parseDefaultProperties(a,i.pStyle);break;case\"rPr\":this.parseDefaultProperties(a,i.rStyle);break;case\"lvlPicBulletId\":var o=w.intAttr(a,\"val\");i.bullet=r.find(s=>s?.id==o);break;case\"lvlText\":i.levelText=w.attr(a,\"val\");break;case\"pStyle\":i.pStyleName=w.attr(a,\"val\");break;case\"numFmt\":i.format=w.attr(a,\"val\");break;case\"lvlRestart\":i.restart=w.intAttr(a,\"val\");break;case\"suff\":i.suff=w.attr(a,\"val\");break}return i}parseSdt(t,e){let r=w.element(t,\"sdtContent\");return r?e(r):[]}parseInserted(t,e){return this.parseRevision(A.Inserted,t,e)}parseDeleted(t,e){return this.parseRevision(A.Deleted,t,e)}parseRevision(t,e,r,i=t==A.Inserted?\"insert\":\"delete\"){return{type:t,children:r(e)?.children??[],props:{revision:{id:w.attr(e,\"id\"),author:w.attr(e,\"author\"),date:w.attr(e,\"date\"),kind:i}}}}parseAltChunk(t){return{type:A.AltChunk,children:[],id:w.attr(t,\"id\")}}parseParagraph(t){var e={type:A.Paragraph,children:[]};this.options.exposeDisplayTargets&&(e.displayAddress=this.paragraphAddress(t));for(let r of w.elements(t))switch(r.localName){case\"pPr\":this.parseParagraphProperties(r,e);break;case\"r\":e.children.push(this.parseRun(r,e));break;case\"hyperlink\":e.children.push(this.parseHyperlink(r,e));break;case\"fldSimple\":e.children.push(this.parseSimpleField(r,e));break;case\"smartTag\":e.children.push(this.parseSmartTag(r,e));break;case\"bookmarkStart\":e.children.push(fl(r,w));break;case\"bookmarkEnd\":e.children.push(pl(r,w));break;case\"commentRangeStart\":e.children.push(new $i(w.attr(r,\"id\")));break;case\"commentRangeEnd\":e.children.push(new Wi(w.attr(r,\"id\")));break;case\"oMath\":case\"oMathPara\":{let i=this.parseMathElement(r);i&&e.children.push(i);break}case\"sdt\":e.children.push(...this.parseSdt(r,i=>this.parseParagraph(i).children));break;case\"ins\":e.children.push(this.parseInserted(r,i=>this.parseParagraph(i)));break;case\"del\":e.children.push(this.parseDeleted(r,i=>this.parseParagraph(i)));break;case\"moveFrom\":e.children.push(this.parseRevision(A.Deleted,r,i=>this.parseParagraph(i),\"move-from\"));break;case\"moveTo\":e.children.push(this.parseRevision(A.Inserted,r,i=>this.parseParagraph(i),\"move-to\"));break}return e}parseParagraphProperties(t,e){this.parseDefaultProperties(t,e.cssStyle={},null,r=>{if(r.localName==\"rPr\"){let i=w.elements(r).filter(a=>a.localName==\"ins\"||a.localName==\"del\").map(a=>this.revisionMetadata(a,a.localName==\"del\"?\"delete\":\"insert\"));i.length&&(e.props={...e.props??{},paragraphMarkRevisions:[...e.props?.paragraphMarkRevisions??[],...i]}),i.some(a=>a.kind==\"delete\")&&(e.props={...e.props??{},deletedParagraphMark:!0});let o=e.cssStyle[\"background-color\"];return this.parseDefaultProperties(r,e.cssStyle),o==null?delete e.cssStyle[\"background-color\"]:e.cssStyle[\"background-color\"]=o,Zo(r,e,w),!0}if(r.localName==\"pPrChange\")return this.addFormatRevision(e,r,\"paragraph-format\",t),!0;if(Zo(r,e,w))return!0;switch(r.localName){case\"pStyle\":e.styleName=w.attr(r,\"val\");break;case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(r);break;case\"framePr\":this.parseFrame(r,e);break;default:return!1}return!0})}parseFrame(t,e){let r=w.attr(t,\"dropCap\");e.frame={dropCap:r,width:w.lengthAttr(t,\"w\"),height:w.lengthAttr(t,\"h\"),horizontalPosition:w.lengthAttr(t,\"x\"),verticalPosition:w.lengthAttr(t,\"y\"),horizontalAnchor:w.attr(t,\"hAnchor\"),verticalAnchor:w.attr(t,\"vAnchor\"),horizontalAlignment:w.attr(t,\"xAlign\"),verticalAlignment:w.attr(t,\"yAlign\"),horizontalSpace:w.lengthAttr(t,\"hSpace\"),verticalSpace:w.lengthAttr(t,\"vSpace\"),heightRule:w.attr(t,\"hRule\"),wrap:w.attr(t,\"wrap\"),lines:w.intAttr(t,\"lines\")},r==\"drop\"&&(e.cssStyle.float=\"left\")}parseHyperlink(t,e){var r={type:A.Hyperlink,parent:e,children:[]};r.anchor=w.attr(t,\"anchor\"),r.id=w.attr(t,\"id\");for(let i of w.elements(t))i.localName===\"r\"&&r.children.push(this.parseRun(i,r));return r}parseSmartTag(t,e){var r={type:A.SmartTag,parent:e,children:[]},i=w.attr(t,\"uri\"),o=w.attr(t,\"element\");i&&(r.uri=i),o&&(r.element=o);for(let a of w.elements(t))switch(a.localName){case\"r\":r.children.push(this.parseRun(a,r));break;case\"smartTag\":r.children.push(this.parseSmartTag(a,r));break}return r}parseSimpleField(t,e){let r={type:A.SimpleField,parent:e,children:[],instruction:w.attr(t,\"instr\"),lock:w.boolAttr(t,\"lock\",!1),dirty:w.boolAttr(t,\"dirty\",!1)};for(let i of w.elements(t))switch(i.localName){case\"r\":r.children.push(this.parseRun(i,r));break;case\"hyperlink\":r.children.push(this.parseHyperlink(i,r));break;case\"smartTag\":r.children.push(this.parseSmartTag(i,r));break;case\"bookmarkStart\":r.children.push(fl(i,w));break;case\"bookmarkEnd\":r.children.push(pl(i,w));break;case\"commentRangeStart\":r.children.push(new $i(w.attr(i,\"id\")));break;case\"commentRangeEnd\":r.children.push(new Wi(w.attr(i,\"id\")));break;case\"sdt\":r.children.push(...this.parseSdt(i,o=>this.parseParagraph(o).children));break;case\"ins\":r.children.push(this.parseInserted(i,o=>this.parseParagraph(o)));break;case\"del\":r.children.push(this.parseDeleted(i,o=>this.parseParagraph(o)));break;case\"moveFrom\":r.children.push(this.parseRevision(A.Deleted,i,o=>this.parseParagraph(o),\"move-from\"));break;case\"moveTo\":r.children.push(this.parseRevision(A.Inserted,i,o=>this.parseParagraph(o),\"move-to\"));break}return r}parseRun(t,e){var r={type:A.Run,parent:e,children:[]};for(let i of w.elements(t))if(i=this.checkAlternateContent(i),!!i)switch(i.localName){case\"t\":r.children.push({type:A.Text,text:i.textContent});break;case\"delText\":r.children.push({type:A.DeletedText,text:i.textContent});break;case\"commentReference\":r.children.push(new wa(w.attr(i,\"id\")));break;case\"fldSimple\":r.children.push(this.parseSimpleField(i,r));break;case\"instrText\":r.fieldRun=!0,r.children.push({type:A.Instruction,text:i.textContent});break;case\"fldChar\":r.fieldRun=!0,r.children.push({type:A.ComplexField,charType:w.attr(i,\"fldCharType\"),lock:w.boolAttr(i,\"lock\",!1),dirty:w.boolAttr(i,\"dirty\",!1)});break;case\"noBreakHyphen\":r.children.push({type:A.NoBreakHyphen});break;case\"softHyphen\":r.children.push({type:A.SoftHyphen});break;case\"cr\":r.children.push({type:A.Break,break:\"line\"});break;case\"ptab\":r.children.push({type:A.PositionalTab});break;case\"br\":r.children.push({type:A.Break,break:w.attr(i,\"type\")||\"textWrapping\"});break;case\"lastRenderedPageBreak\":r.children.push({type:A.Break,break:\"lastRenderedPageBreak\"});break;case\"sym\":r.children.push({type:A.Symbol,font:br(w.attr(i,\"font\")),char:w.hexAttr(i,\"char\")});break;case\"tab\":r.children.push({type:A.Tab});break;case\"footnoteReference\":r.children.push({type:A.FootnoteReference,id:w.attr(i,\"id\"),customMarkFollows:w.boolAttr(i,\"customMarkFollows\",!1)});break;case\"endnoteReference\":r.children.push({type:A.EndnoteReference,id:w.attr(i,\"id\"),customMarkFollows:w.boolAttr(i,\"customMarkFollows\",!1)});break;case\"drawing\":let o=this.parseDrawing(i);o&&r.children.push(o);break;case\"pict\":r.children.push(this.parseVmlPicture(i));break;case\"object\":r.children.push(this.parseVmlPicture(i));break;case\"ruby\":r.children.push(this.parseRuby(i));break;case\"rPr\":this.parseRunProperties(i,r);break}return r}parseRuby(t){let e={type:A.Ruby,children:[]};for(let r of w.elements(t))switch(r.localName){case\"rubyPr\":for(let i of w.elements(r))i.localName===\"rubyAlign\"&&(e.align=w.attr(i,\"val\"));break;case\"rt\":e.children.push(this.parseRubyContent(r,A.RubyText));break;case\"rubyBase\":e.children.push(this.parseRubyContent(r,A.RubyBase));break}return e}parseRubyContent(t,e){let r={type:e,children:[]};for(let i of w.elements(t))if(i.localName==\"r\")r.children.push(this.parseRun(i,r));else if(e==A.RubyText&&i.localName==\"rPr\"){let o=w.element(i,\"hps\"),a=o?w.intAttr(o,\"val\",null):null;a!=null&&(r.cssStyle={...r.cssStyle??{},fontSize:`${a/2}pt`})}return r}parseMathElement(t){let e=`${t.localName}Pr`,r={type:gl[t.localName],children:[]},i=!1,o=a=>{if(gl[a.localName]){let c=this.parseMathElement(a);c?(c.parent=r,r.children.push(c)):i=!0}else if(a.localName==\"r\"){var l=this.parseRun(a,r);l.type=A.MmlRun,r.children.push(l)}else if(a.localName==e)r.props=this.parseMathProperies(a);else if(a.localName==\"ins\")for(let c of w.elements(a))o(c);else if(a.localName==\"del\")if(this.options.renderChanges||this.options.reviewMode!=null)for(let c of w.elements(a))o(c);else i=!0};for(let a of w.elements(t))o(a);return i&&!this.hasVisibleMathContent(r)?null:r}hasVisibleMathContent(t){for(let e of t.children??[]){switch(e.type){case A.Text:if(e.text?.length)return!0;break;case A.DeletedText:if((this.options.renderChanges||this.options.reviewMode!=null)&&e.text?.length)return!0;break;case A.Symbol:case A.Tab:case A.PositionalTab:case A.NoBreakHyphen:case A.Break:return!0}if(this.hasVisibleMathContent(e))return!0}return!1}parseMathProperies(t){let e={};for(let r of w.elements(t))switch(r.localName){case\"chr\":e.char=w.attr(r,\"val\");break;case\"vertJc\":e.verticalJustification=w.attr(r,\"val\");break;case\"pos\":e.position=w.attr(r,\"val\");break;case\"degHide\":e.hideDegree=w.boolAttr(r,\"val\");break;case\"begChr\":e.beginChar=w.attr(r,\"val\");break;case\"endChr\":e.endChar=w.attr(r,\"val\");break;case\"limLoc\":e.limitLocation=w.attr(r,\"val\");break;case\"grow\":e.grow=w.boolAttr(r,\"val\");break;case\"sepChr\":e.separatorChar=w.attr(r,\"val\");break}return e}parseRunProperties(t,e){this.parseDefaultProperties(t,e.cssStyle={},null,r=>{switch(r.localName){case\"rStyle\":e.styleName=w.attr(r,\"val\");break;case\"vertAlign\":e.verticalAlign=Yt.valueOfVertAlign(r,!0);break;case\"rPrChange\":this.addFormatRevision(e,r,\"run-format\",t);break;default:return!1}return!0})}parseVmlPicture(t){let e={type:A.VmlPicture,children:[]};for(let r of w.elements(t)){let i=Xl(r,this);i&&e.children.push(i)}return e}checkAlternateContent(t){if(t.localName!=\"AlternateContent\")return t;for(let r of w.elements(t).filter(i=>i.localName==\"Choice\")){let i=(w.attr(r,\"Requires\")??\"\").split(/\\s+/).filter(Boolean);if(i.length>0&&i.every(a=>vp.includes(t.lookupNamespaceURI(a)))){let a=w.elements(r)[0];if(a)return a}}let e=w.element(t,\"Fallback\");return e?w.elements(e)[0]:null}parseDrawing(t){for(var e of w.elements(t))switch(e.localName){case\"inline\":case\"anchor\":return this.parseDrawingWrapper(e)}}parseDrawingWrapper(t){var e,r,i,o,a,s,l,c,h,u,f,d={type:A.Drawing,children:[],cssStyle:{},props:{}},p=t.localName==\"anchor\";let m={left:w.lengthAttr(t,\"distL\",$t.Emu),top:w.lengthAttr(t,\"distT\",$t.Emu),right:w.lengthAttr(t,\"distR\",$t.Emu),bottom:w.lengthAttr(t,\"distB\",$t.Emu)},g=(z,st)=>{st&&(d.cssStyle[z]=Yt.addSize(d.cssStyle[z],st))},b=null,T=null,S=null,I=w.boolAttr(t,\"simplePos\",!1),O=w.boolAttr(t,\"behindDoc\",!1),$=w.intAttr(t,\"relativeHeight\",null);$!=null&&(d.cssStyle[\"z-index\"]=`${Math.max(1,Math.round($/1e3))}`),O&&(d.cssStyle[\"z-index\"]=\"0\");let k={relative:\"page\",align:\"left\",offset:\"0\"},W={relative:\"page\",align:\"top\",offset:\"0\"},U=!1,v=!1,_=!1,y=!1;for(var H of w.elements(t))switch(H.localName){case\"simplePos\":I&&(k.offset=w.lengthAttr(H,\"x\",$t.Emu),W.offset=w.lengthAttr(H,\"y\",$t.Emu),_=k.offset!=null,y=W.offset!=null);break;case\"extent\":d.cssStyle.width=w.lengthAttr(H,\"cx\",$t.Emu),d.cssStyle.height=w.lengthAttr(H,\"cy\",$t.Emu);break;case\"effectExtent\":g(\"margin-left\",w.lengthAttr(H,\"l\",$t.Emu)),g(\"margin-top\",w.lengthAttr(H,\"t\",$t.Emu)),g(\"margin-right\",w.lengthAttr(H,\"r\",$t.Emu)),g(\"margin-bottom\",w.lengthAttr(H,\"b\",$t.Emu));break;case\"docPr\":d.props.title=w.attr(H,\"title\")??w.attr(H,\"name\"),d.props.alt=w.attr(H,\"descr\")??d.props.title;break;case\"positionH\":case\"positionV\":if(!I){let z=H.localName==\"positionH\",st=z?k:W;var nt=w.element(H,\"align\"),J=w.element(H,\"posOffset\");st.relative=w.attr(H,\"relativeFrom\")??st.relative,nt&&(st.align=nt.textContent,z?U=!0:v=!0),J&&(st.offset=Be(J.textContent,$t.Emu),z?_=st.offset!=null:y=st.offset!=null)}break;case\"wrapTopAndBottom\":b=\"wrapTopAndBottom\";break;case\"wrapNone\":b=\"wrapNone\";break;case\"wrapSquare\":b=\"wrapSquare\",T=w.attr(H,\"wrapText\");break;case\"wrapTight\":b=\"wrapTight\",T=w.attr(H,\"wrapText\"),S=this.parseWrapPolygon(H);break;case\"wrapThrough\":b=\"wrapThrough\",T=w.attr(H,\"wrapText\"),S=this.parseWrapPolygon(H);break;case\"graphic\":var lt=this.parseGraphic(H);lt&&(lt.type==A.Image?((e=lt).alt??(e.alt=d.props.alt),(r=lt).title??(r.title=d.props.title)):lt.type==A.Shape?((i=lt).alt??(i.alt=d.props.alt),(o=lt).title??(o.title=d.props.title)):lt.type==A.Chart?((a=lt).alt??(a.alt=d.props.alt),(s=lt).title??(s.title=d.props.title)):lt.type==A.SmartArt?((l=lt).alt??(l.alt=d.props.alt),(c=lt).title??(c.title=d.props.title)):lt.type==A.Ink&&((h=lt).alt??(h.alt=d.props.alt),(u=lt).title??(u.title=d.props.title)),d.children.push(lt));break}d.props.anchorPosition={horizontal:{...k,offsetSpecified:_,alignSpecified:U},vertical:{...W,offsetSpecified:y,alignSpecified:v},wrapType:b,layoutInCell:w.boolAttr(t,\"layoutInCell\",!0),simplePos:I},b!=\"wrapNone\"&&(g(\"margin-left\",m.left),g(\"margin-top\",m.top),g(\"margin-right\",m.right),g(\"margin-bottom\",m.bottom));let ot=()=>{switch(k.align){case\"center\":d.cssStyle[\"margin-left\"]=\"auto\",d.cssStyle[\"margin-right\"]=\"auto\";break;case\"right\":d.cssStyle[\"margin-left\"]=\"auto\";break}},et=()=>{U?ot():_&&k.offset&&(d.cssStyle[\"margin-inline-start\"]=Yt.addSize(d.cssStyle[\"margin-inline-start\"],k.offset))},B=()=>{y&&W.offset&&(d.cssStyle[\"margin-top\"]=Yt.addSize(d.cssStyle[\"margin-top\"],W.offset))};return b==\"wrapTopAndBottom\"?(d.cssStyle.display=\"block\",d.cssStyle.clear=\"both\",et(),B()):b==\"wrapNone\"?(d.cssStyle.display=\"block\",d.cssStyle.position=p?\"absolute\":\"relative\",k.offset&&(d.cssStyle.left=k.offset),W.offset&&(d.cssStyle.top=W.offset)):b==\"wrapSquare\"||b==\"wrapTight\"||b==\"wrapThrough\"?(S&&(d.cssStyle[\"shape-outside\"]=S,(f=d.cssStyle)[\"clip-path\"]??(f[\"clip-path\"]=S)),T==\"left\"?d.cssStyle.float=\"right\":T==\"right\"?d.cssStyle.float=\"left\":k.align==\"left\"||k.align==\"right\"?d.cssStyle.float=k.align:(d.cssStyle.display=\"block\",ot())):p&&(k.align==\"left\"||k.align==\"right\")?d.cssStyle.float=k.align:d.cssStyle[\"vertical-align\"]=\"text-bottom\",this.applyDrawingFloatOffsets(d,t)}applyDrawingFloatOffsets(t,e){let r=t.cssStyle,i=t.props?.anchorPosition;if(!r?.float||!i)return t;let o=c=>{if(i.simplePos)return!0;let h=w.element(e,`position${c}`);return!!h&&!!w.element(h,\"posOffset\")},a=/^-?\\d+(?:\\.\\d+)?(?:pt|px|in|cm|mm)?$/,s=i.horizontal,l=i.vertical;return o(\"H\")&&s?.relative==\"column\"&&a.test(s.offset??\"\")&&a.test(r.width??\"\")&&(r[\"--docx-float-column-position\"]=s.offset,r[\"--docx-float-origin-offset\"]=\"0px\",r.float==\"right\"?r[\"margin-right\"]=`calc(100% - ${s.offset} - ${r.width} - var(--docx-float-origin-offset, 0px))`:r.float==\"left\"&&(r[\"margin-left\"]=`calc(${s.offset} + var(--docx-float-origin-offset, 0px))`)),o(\"V\")&&l?.relative==\"paragraph\"&&a.test(l.offset??\"\")&&(r[\"margin-top\"]=l.offset),t}parseWrapPolygon(t){let e=w.element(t,\"wrapPolygon\");if(!e)return null;let r=[],i=o=>{let a=w.lengthAttr(o,\"x\",$t.Emu),s=w.lengthAttr(o,\"y\",$t.Emu);a&&s&&r.push(`${a} ${s}`)};for(let o of w.elements(e))(o.localName==\"start\"||o.localName==\"lineTo\")&&i(o);return r.length>=3?`polygon(${r.join(\", \")})`:null}parseGraphic(t){var e=w.element(t,\"graphicData\");if(!e)return null;for(let i of w.elements(e))switch(i.localName){case\"pic\":return this.parsePicture(i);case\"wpc\":case\"wgp\":case\"grpSp\":return this.parseDrawingContainer(i);case\"wsp\":case\"sp\":case\"cxnSp\":return this.parseWordprocessingShape(i);case\"chart\":return this.parseChartReference(i);case\"relIds\":return this.parseSmartArtReference(i);case\"diagram\":return this.parseSmartArtReference(i);case\"contentPart\":case\"ink\":return this.parseInkReference(i)}let r=this.findDescendant(e,\"contentPart\");return r?this.parseInkReference(r):null}parseDrawingContainer(t,e){let r={type:A.Shape,children:[],cssStyle:{display:\"inline-block\",position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"visible\",\"box-sizing\":\"border-box\"},props:{dmlContainer:!0}},i=this.parseDmlGroupTransform(t,e);for(let o of w.elements(t))switch(o.localName){case\"wsp\":case\"sp\":case\"cxnSp\":let a=this.parseDmlPositionedShape(o,i);a&&r.children.push(a);break;case\"pic\":let s=this.parseDmlPositionedPicture(o,i);s&&r.children.push(s);break;case\"grpSp\":case\"wgp\":let l=this.parseDrawingContainer(o,i);l&&r.children.push(l);break}return r}parseDmlGroupTransform(t,e){let r=w.element(t,\"grpSpPr\"),i=r?w.element(r,\"xfrm\"):w.element(t,\"xfrm\"),o=i?w.element(i,\"off\"):null,a=i?w.element(i,\"ext\"):null,s=i?w.element(i,\"chOff\"):null,l=i?w.element(i,\"chExt\"):null,c=a?w.floatAttr(a,\"cx\",null):null,h=a?w.floatAttr(a,\"cy\",null):null,u=l?w.floatAttr(l,\"cx\",null):null,f=l?w.floatAttr(l,\"cy\",null):null,d=e?.scaleX??1,p=e?.scaleY??1,m=o?w.floatAttr(o,\"x\",0):0,g=o?w.floatAttr(o,\"y\",0):0,b=e?e.originX+(m-e.offsetX)*d:0,T=e?e.originY+(g-e.offsetY)*p:0;return{originX:b,originY:T,offsetX:s?w.floatAttr(s,\"x\",0):0,offsetY:s?w.floatAttr(s,\"y\",0):0,scaleX:d*(c&&u?c/u:1),scaleY:p*(h&&f?h/f:1)}}parseDmlPositionedPicture(t,e){let r=this.parsePicture(t),i=w.element(t,\"spPr\");if(!r||!i)return r;let o=this.parseDmlShapeBounds(i,e);return r.cssStyle.position=\"absolute\",r.cssStyle.left=this.pt(o.left),r.cssStyle.top=this.pt(o.top),r.cssStyle.width=this.pt(o.width),r.cssStyle.height=this.pt(o.height),r}parseDmlPositionedShape(t,e){let r=w.element(t,\"spPr\");if(!r)return null;let i=this.parseDmlShapeBounds(r,e),o=[],a=null,s=!1;for(let g of w.elements(t))switch(g.localName){case\"txbx\":case\"textBox\":s=!0;for(let b of w.elements(g,\"txbxContent\"))o.push(...this.parseBodyElements(b));break;case\"bodyPr\":a=g;break}a??(a=w.element(t,\"bodyPr\"));let l={position:\"absolute\",left:this.pt(i.left),top:this.pt(i.top),width:this.pt(i.width),height:this.pt(i.height),\"box-sizing\":\"border-box\",overflow:\"hidden\"},c=w.element(t,\"cNvPr\"),h=w.element(r,\"custGeom\"),u=w.element(r,\"prstGeom\"),f=this.parseDmlFillStyle(r),d=this.parseDmlLineStyle(w.element(r,\"ln\")),p=h?null:this.parseDmlRoundRectRadius(r,i.width,i.height,e);if(p!=null&&(l[\"border-radius\"]=p),h){let g=this.parseDmlCustomGeometry(h);return{type:A.Shape,children:[],cssStyle:{...l,overflow:\"visible\"},props:{dmlSvg:!0,viewBox:g?.viewBox??\"0 0 1 1\",pathD:g?.d??\"\",fill:f.fill??\"none\",stroke:d.stroke??\"none\",strokeWidth:d.strokeWidth??\"0\",strokeDasharray:d.strokeDasharray},title:c?w.attr(c,\"title\")??w.attr(c,\"name\"):null,alt:c?w.attr(c,\"descr\"):null}}f.backgroundColor&&(l[\"background-color\"]=f.backgroundColor),f.backgroundImage&&(l[\"background-image\"]=f.backgroundImage),d.stroke&&d.stroke!=\"none\"?l.border=`${d.strokeWidth||\"0.75pt\"} ${d.borderType||\"solid\"} ${d.stroke}`:l.border=\"none\";let m=s?this.parseDmlTextBoxProperties(a):null;return{type:A.Shape,children:o,cssStyle:l,props:{dmlShape:!0,presetGeometry:u?w.attr(u,\"prst\"):null,...m},title:c?w.attr(c,\"title\")??w.attr(c,\"name\"):null,alt:c?w.attr(c,\"descr\"):null}}parseDmlRoundRectRadius(t,e,r,i){let o=w.element(t,\"prstGeom\");if(!o||w.attr(o,\"prst\")!=\"roundRect\")return null;let a=w.element(o,\"avLst\"),s=(a?w.elements(a,\"gd\"):[]).find(p=>w.attr(p,\"name\")==\"adj\"),l=s?w.attr(s,\"fmla\"):\"\",c=/^val\\s+[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)\\s*$/.test(l??\"\")?Number(l.trim().split(/\\s+/)[1]):16667,h=Math.max(0,Math.min(5e4,c))/1e5,u=Math.abs(i?.scaleX??1),f=Math.abs(i?.scaleY??1),d=Number.isFinite(u)&&Number.isFinite(f)&&u>0&&f>0?Math.min(e/u,r/f)*h:0;return`${this.pt(Number.isFinite(d*u)?d*u:0)} / ${this.pt(Number.isFinite(d*f)?d*f:0)}`}parseDmlShapeBounds(t,e){let r=w.element(t,\"xfrm\"),i=r?w.element(r,\"off\"):null,o=r?w.element(r,\"ext\"):null,a=e?.scaleX??1,s=e?.scaleY??1,l=e?.offsetX??0,c=e?.offsetY??0,h=e?.originX??0,u=e?.originY??0,f=i?w.floatAttr(i,\"x\",0):0,d=i?w.floatAttr(i,\"y\",0):0,p=o?w.floatAttr(o,\"cx\",0):0,m=o?w.floatAttr(o,\"cy\",0):0;return{left:this.emuToPt(h+(f-l)*a),top:this.emuToPt(u+(d-c)*s),width:Math.max(0,this.emuToPt(p*a)),height:Math.max(0,this.emuToPt(m*s))}}parseDmlFillStyle(t){if(w.element(t,\"noFill\"))return{fill:\"none\",backgroundColor:\"transparent\"};let e=w.element(t,\"solidFill\");if(e){let i=this.parseDmlColor(e)??\"transparent\";return{fill:i,backgroundColor:i}}let r=w.element(t,\"pattFill\");if(r){let i=this.parseDmlColor(w.element(r,\"fgClr\"))??\"currentColor\",o=this.parseDmlColor(w.element(r,\"bgClr\"))??\"transparent\",a=w.attr(r,\"prst\"),s=a&&a.toLowerCase().includes(\"horz\")?\"0deg\":\"90deg\";return{fill:o,backgroundColor:o,backgroundImage:`repeating-linear-gradient(${s}, ${i} 0, ${i} 0.75pt, ${o} 0.75pt, ${o} 3pt)`}}return{fill:\"none\",backgroundColor:\"transparent\"}}parseDmlLineStyle(t){if(!t||w.element(t,\"noFill\"))return{stroke:\"none\",strokeWidth:\"0\",borderType:\"none\"};let e=this.parseDmlColor(w.element(t,\"solidFill\"))??\"black\",r=w.attr(t,\"w\")?this.pt(this.emuToPt(w.floatAttr(t,\"w\",0))):\"0.75pt\",i=w.elementAttr(t,\"prstDash\",\"val\"),o=null,a=\"solid\";return i&&i!=\"solid\"&&(a=\"dashed\",o=i==\"dot\"?\"1 2\":\"4 3\"),{stroke:e,strokeWidth:r,borderType:a,strokeDasharray:o}}parseDmlCustomGeometry(t){let e=w.element(t,\"pathLst\"),r=e?w.elements(e,\"path\"):[],i=\"\",o=1,a=1;for(let s of r){let l=w.floatAttr(s,\"w\",o),c=w.floatAttr(s,\"h\",a);o=Math.max(o,l||1),a=Math.max(a,c||1),i+=this.parseDmlPathData(s,l||1,c||1)}return{d:i.trim(),viewBox:`0 0 ${o} ${a}`}}parseDmlPathData(t,e,r){let i=[],o=a=>{let s=w.element(a,\"pt\");return s?`${this.dmlCoord(w.attr(s,\"x\"),e,r)} ${this.dmlCoord(w.attr(s,\"y\"),e,r)}`:\"0 0\"};for(let a of w.elements(t))switch(a.localName){case\"moveTo\":i.push(`M ${o(a)}`);break;case\"lnTo\":i.push(`L ${o(a)}`);break;case\"cubicBezTo\":let s=w.elements(a,\"pt\").map(c=>`${this.dmlCoord(w.attr(c,\"x\"),e,r)} ${this.dmlCoord(w.attr(c,\"y\"),e,r)}`);s.length==3&&i.push(`C ${s.join(\" \")}`);break;case\"quadBezTo\":let l=w.elements(a,\"pt\").map(c=>`${this.dmlCoord(w.attr(c,\"x\"),e,r)} ${this.dmlCoord(w.attr(c,\"y\"),e,r)}`);l.length==2&&i.push(`Q ${l.join(\" \")}`);break;case\"close\":i.push(\"Z\");break}return i.join(\" \")+\" \"}dmlCoord(t,e,r){if(t==\"w\"||t==\"r\")return e;if(t==\"h\"||t==\"b\")return r;if(t==\"l\"||t==\"t\")return 0;let i=parseFloat(t);return Number.isFinite(i)?i:0}dmlVerticalAlign(t){switch(t?w.attr(t,\"anchor\"):null){case\"ctr\":return\"center\";case\"b\":return\"flex-end\";default:return\"flex-start\"}}applyDmlTextInsets(t,e){if(!t)return;let r={lIns:\"padding-left\",tIns:\"padding-top\",rIns:\"padding-right\",bIns:\"padding-bottom\"};for(let[i,o]of Object.entries(r)){let a=w.attr(t,i);a!=null&&(e[o]=this.pt(this.emuToPt(parseFloat(a))))}}parseDmlTextBoxProperties(t){let e={};return this.applyDmlTextInsets(t,e),{dmlTextBox:!0,textInsets:e,textCompatibleLineSpacing:t?w.boolAttr(t,\"compatLnSpc\",!1):!1,textVerticalAlign:this.dmlVerticalAlign(t)}}emuToPt(t){return(Number.isFinite(t)?t:0)/12700}pt(t){return`${Math.round(t*100)/100}pt`}parseChartReference(t){return{type:A.Chart,id:w.attr(t,\"id\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseSmartArtReference(t){let e=t.localName==\"relIds\"?t:this.findDescendant(t,\"relIds\");return{type:A.SmartArt,dataId:e?w.attr(e,\"dm\"):w.attr(t,\"dm\"),layoutId:e?w.attr(e,\"lo\"):w.attr(t,\"lo\"),styleId:e?w.attr(e,\"qs\"):w.attr(t,\"qs\"),colorId:e?w.attr(e,\"cs\"):w.attr(t,\"cs\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseInkReference(t){return{type:A.Ink,id:w.attr(t,\"id\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseGraphicPlaceholder(t){return{type:A.Shape,children:[{type:A.Text,text:`[${t}]`}],cssStyle:{display:\"inline-flex\",\"align-items\":\"center\",\"justify-content\":\"center\",border:\"1px solid #999\",\"background-color\":\"#f8f8f8\",color:\"#555\",\"min-width\":\"2in\",\"min-height\":\"1in\"}}}parseWordprocessingShape(t){let e={type:A.Shape,children:[],cssStyle:{display:\"inline-block\",position:\"relative\",\"box-sizing\":\"border-box\",overflow:\"hidden\"}},r=this.findDescendant(t,\"cNvPr\"),i=null,o=!1;r&&(e.title=w.attr(r,\"title\")??w.attr(r,\"name\"),e.alt=w.attr(r,\"descr\")??e.title);for(let a of w.elements(t))switch(a.localName){case\"spPr\":this.parseDmlShapeProperties(a,e.cssStyle);break;case\"txbx\":case\"textBox\":o=!0;for(let s of w.elements(a,\"txbxContent\"))e.children.push(...this.parseBodyElements(s));break;case\"bodyPr\":i=a;break}return o&&(e.props={...e.props??{},...this.parseDmlTextBoxProperties(i)}),e}parseDmlShapeProperties(t,e){let r=w.element(t,\"xfrm\"),i=this.parseDmlShapeBounds(t),o=this.parseDmlRoundRectRadius(t,i.width,i.height);if(o!=null&&(e[\"border-radius\"]=o),r)for(let c of w.elements(r))c.localName===\"ext\"&&(e.width=w.lengthAttr(c,\"cx\",$t.Emu),e.height=w.lengthAttr(c,\"cy\",$t.Emu));let a=w.element(t,\"solidFill\"),s=w.element(t,\"noFill\"),l=w.element(t,\"ln\");if(a?e[\"background-color\"]=this.parseDmlColor(a)??e[\"background-color\"]:s&&(e[\"background-color\"]=\"transparent\"),l&&w.element(l,\"noFill\"))e.border=\"none\";else if(l){let c=this.parseDmlColor(w.element(l,\"solidFill\"))??\"black\",h=w.lengthAttr(l,\"w\",$t.Emu)??\"1px\",u=w.elementAttr(l,\"prstDash\",\"val\"),f=u&&u!=\"solid\"?\"dashed\":\"solid\";e.border=`${h} ${f} ${c}`}}parseDmlColor(t){if(!t)return null;let e=w.element(t,\"srgbClr\"),r=w.element(t,\"schemeClr\"),i=w.element(t,\"prstClr\"),o=w.element(t,\"sysClr\");if(e)return this.applyDmlColorTransforms(e,`#${w.attr(e,\"val\")}`);if(r){let a=this.resolveDmlSchemeColor(w.attr(r,\"val\")),s=this.dmlSchemeColorFallback(a);return this.applyDmlColorTransforms(r,`var(--docx-${a}-color${s?`, ${s}`:\"\"})`)}return o?this.applyDmlColorTransforms(o,`#${w.attr(o,\"lastClr\")??w.attr(o,\"val\")}`):i?this.applyDmlColorTransforms(i,w.attr(i,\"val\")):null}resolveDmlSchemeColor(t){switch(t){case\"bg1\":return\"lt1\";case\"tx1\":return\"dk1\";case\"bg2\":return\"lt2\";case\"tx2\":return\"dk2\";default:return t}}dmlSchemeColorFallback(t){return ql(t)}applyDmlColorTransforms(t,e){let r=w.elementAttr(t,\"lumMod\",\"val\"),i=w.elementAttr(t,\"lumOff\",\"val\");if(r!=null){let o=Math.max(0,Math.min(100,parseFloat(r)/1e3));Number.isFinite(o)&&o<100&&(e=`color-mix(in srgb, ${e} ${o}%, black)`)}if(i!=null){let o=Math.max(0,Math.min(100,parseFloat(i)/1e3));Number.isFinite(o)&&o>0&&(e=`color-mix(in srgb, ${e} ${100-o}%, white)`)}return e}findDescendant(t,e){for(let r of w.elements(t)){if(r.localName==e)return r;let i=this.findDescendant(r,e);if(i)return i}return null}parsePicture(t){var e={type:A.Image,src:\"\",cssStyle:{}},r=w.element(t,\"blipFill\"),i=r?w.element(r,\"blip\"):null,o=r?w.element(r,\"srcRect\"):null;e.src=i?w.attr(i,\"embed\")??w.attr(i,\"link\"):\"\";let a=this.findDescendant(t,\"cNvPr\");a&&(e.title=w.attr(a,\"title\")??w.attr(a,\"name\"),e.alt=w.attr(a,\"descr\")??e.title),o&&(e.srcRect=[w.intAttr(o,\"l\",0)/1e5,w.intAttr(o,\"t\",0)/1e5,w.intAttr(o,\"r\",0)/1e5,w.intAttr(o,\"b\",0)/1e5]);var s=w.element(t,\"spPr\"),l=s?w.element(s,\"xfrm\"):null,c=[];if(e.cssStyle.display=\"block\",e.cssStyle.position=\"relative\",e.cssStyle[\"object-fit\"]=\"contain\",l){e.rotation=w.intAttr(l,\"rot\",0)/6e4,w.boolAttr(l,\"flipH\",!1)&&c.push(\"scaleX(-1)\"),w.boolAttr(l,\"flipV\",!1)&&c.push(\"scaleY(-1)\");for(var h of w.elements(l))h.localName===\"ext\"&&(e.cssStyle.width=w.lengthAttr(h,\"cx\",$t.Emu),e.cssStyle.height=w.lengthAttr(h,\"cy\",$t.Emu))}return c.length>0&&(e.cssStyle.transform=c.join(\" \")),e.cssStyle.width||(e.cssStyle.width=\"100%\"),e.cssStyle.height||(e.cssStyle.height=\"100%\"),e}parseTable(t){var e={type:A.Table,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tr\":e.children.push(this.parseTableRow(r));break;case\"tblGrid\":e.columns=this.parseTableColumns(r);break;case\"tblPr\":this.parseTableProperties(r,e);break}return e}parseTableColumns(t){var e=[];for(let r of w.elements(t))r.localName===\"gridCol\"&&e.push({width:w.lengthAttr(r,\"w\")});return e}parseTableProperties(t,e){e.cssStyle={},e.cellStyle={};let r=null;switch(this.parseDefaultProperties(t,e.cssStyle,e.cellStyle,o=>{switch(o.localName){case\"tblStyle\":e.styleName=w.attr(o,\"val\");break;case\"tblLook\":e.className=Yt.classNameOftblLook(o);break;case\"tblInd\":r=this.parseTableIndentation(o);break;case\"tblpPr\":this.parseTablePosition(o,e);break;case\"tblStyleColBandSize\":e.colBandSize=w.intAttr(o,\"val\");break;case\"tblStyleRowBandSize\":e.rowBandSize=w.intAttr(o,\"val\");break;case\"tblPrChange\":this.addFormatRevision(e,o,\"table-format\",t);break;case\"hidden\":w.boolAttr(o,\"val\",!0)&&(e.cssStyle.display=\"none\");break;default:return!1}return!0}),e.cssStyle[\"text-align\"]){case\"center\":delete e.cssStyle[\"text-align\"],e.cssStyle[\"margin-left\"]=\"auto\",e.cssStyle[\"margin-right\"]=\"auto\";break;case\"right\":delete e.cssStyle[\"text-align\"],e.cssStyle[\"margin-left\"]=\"auto\";break;default:delete e.cssStyle[\"text-align\"],r&&(e.cssStyle[\"margin-inline-start\"]=Yt.addSize(e.cssStyle[\"margin-inline-start\"],r));break}}parseTableIndentation(t){let e=w.attr(t,\"type\");return e==\"pct\"||e==\"auto\"?null:w.lengthAttr(t,\"w\",$t.SignedDxa)}parseTablePosition(t,e){var r=w.lengthAttr(t,\"topFromText\"),i=w.lengthAttr(t,\"bottomFromText\"),o=w.lengthAttr(t,\"rightFromText\"),a=w.lengthAttr(t,\"leftFromText\");e.cssStyle.float=\"left\",e.cssStyle[\"margin-bottom\"]=Yt.addSize(e.cssStyle[\"margin-bottom\"],i),e.cssStyle[\"margin-left\"]=Yt.addSize(e.cssStyle[\"margin-left\"],a),e.cssStyle[\"margin-right\"]=Yt.addSize(e.cssStyle[\"margin-right\"],o),e.cssStyle[\"margin-top\"]=Yt.addSize(e.cssStyle[\"margin-top\"],r)}parseTableRow(t){var e={type:A.Row,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tc\":e.children.push(this.parseTableCell(r));break;case\"trPr\":case\"tblPrEx\":this.parseTableRowProperties(r,e);break}return e.children=this.normalizeHorizontalMerges(e.children),e}normalizeHorizontalMerges(t){let e=[];for(let r=0;r<t.length;r++){let i=t[r];if(i.horizontalMerge!=\"restart\"){e.push(i);continue}let o=i.span??1,a=r+1;for(;a<t.length&&t[a].horizontalMerge==\"continue\";)o+=t[a].span??1,a++;a>r+1&&(i.span=o,r=a-1),e.push(i)}return e}parseTableRowProperties(t,e){let r={};e.cssStyle=this.parseDefaultProperties(t,r,null,i=>{switch(i.localName){case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(i);break;case\"tblHeader\":e.isHeader=w.boolAttr(i,\"val\",!0);break;case\"gridBefore\":e.gridBefore=w.intAttr(i,\"val\");break;case\"gridAfter\":e.gridAfter=w.intAttr(i,\"val\");break;case\"cantSplit\":w.boolAttr(i,\"val\",!0)&&(r[\"break-inside\"]=\"avoid\");break;case\"hidden\":w.boolAttr(i,\"val\",!0)&&(r.display=\"none\");break;case\"ins\":this.addStructuralRevision(e,i,\"insert\");break;case\"del\":this.addStructuralRevision(e,i,\"delete\");break;case\"trPrChange\":this.addFormatRevision(e,i,\"row-format\",t);break;default:return!1}return!0})}parseTableCell(t){var e={type:A.Cell,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tbl\":e.children.push(this.parseTable(r));break;case\"p\":e.children.push(this.parseParagraph(r));break;case\"tcPr\":this.parseTableCellProperties(r,e);break}return e}parseTableCellProperties(t,e){e.cssStyle=this.parseDefaultProperties(t,{},null,i=>{switch(i.localName){case\"gridSpan\":e.span=w.intAttr(i,\"val\",null);break;case\"hMerge\":e.horizontalMerge=w.attr(i,\"val\")??\"continue\";break;case\"vMerge\":e.verticalMerge=w.attr(i,\"val\")??\"continue\";break;case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(i);break;case\"tcPrChange\":this.addFormatRevision(e,i,\"cell-format\",t);break;default:return!1}return!0});let r=w.element(t,\"tcBorders\");if(r){let i={};for(let o of w.elements(r))(o.localName===\"tl2br\"||o.localName===\"tr2bl\")&&(i[o.localName]=Yt.valueOfBorder(o));Object.keys(i).length&&(e.props={...e.props,diagonalBorders:i})}this.parseTableCellVerticalText(t,e)}addStructuralRevision(t,e,r){t.props={...t.props??{},revision:this.revisionMetadata(e,r)}}addFormatRevision(t,e,r,i){let o=w.elements(e)[0],a=this.captureFormatProperties(o),s=this.captureFormatProperties(i),c=[...new Set([...Object.keys(a),...Object.keys(s)])].sort().filter(f=>a[f]!==s[f]).map(f=>({property:f,before:a[f],after:s[f]})),h={...this.revisionMetadata(e,r),formatChanges:c},u=[...t.props?.formatRevisions??[],h];t.props={...t.props??{},formatRevisions:u}}captureFormatProperties(t){let e={};if(!t)return e;for(let r of w.elements(t))/PrChange$/.test(r.localName)||(e[r.localName]=this.serializeFormatProperty(r));return e}serializeFormatProperty(t){let e=Array.from(t.attributes??[]).map(i=>[i.localName||i.name,i.value]).sort(([i],[o])=>i.localeCompare(o)).map(([i,o])=>`${i}=${o}`),r=w.elements(t).map(i=>`${i.localName}{${this.serializeFormatProperty(i)}}`);return[...e,...r].join(\"|\")||\"true\"}revisionMetadata(t,e){return{id:w.attr(t,\"id\"),author:w.attr(t,\"author\"),date:w.attr(t,\"date\"),kind:e}}parseTableCellVerticalText(t,e){let r={btLr:{writingMode:\"vertical-rl\",transform:\"rotate(180deg)\"},lrTb:{writingMode:\"vertical-lr\",transform:\"none\"},tbRl:{writingMode:\"vertical-rl\",transform:\"none\"}};for(let i of w.elements(t))if(i.localName===\"textDirection\"){let o=w.attr(i,\"val\"),a=r[o]||{writingMode:\"horizontal-tb\"};e.cssStyle[\"writing-mode\"]=a.writingMode,e.cssStyle.transform=a.transform}}parseDefaultProperties(t,e=null,r=null,i=null){e=e||{};let o=w.element(t,\"lang\"),a={latin:o?w.attr(o,\"val\"):\"\",eastAsia:o?w.attr(o,\"eastAsia\"):\"\",bidi:o?w.attr(o,\"bidi\"):\"\"};for(let s of w.elements(t))if(!i?.(s))switch(s.localName){case\"jc\":e[\"text-align\"]=Yt.valueOfJc(s);break;case\"textAlignment\":e[\"vertical-align\"]=Yt.valueOfTextAlignment(s);break;case\"autoSpaceDE\":case\"autoSpaceDN\":e[s.localName==\"autoSpaceDE\"?\"--docx-auto-space-de\":\"--docx-auto-space-dn\"]=`${w.boolAttr(s,\"val\",!0)}`;break;case\"color\":e.color=Dr.colorAttr(s,\"val\",null,Br.color);break;case\"sz\":e[\"font-size\"]=e[\"min-height\"]=w.lengthAttr(s,\"val\",$t.FontSize);break;case\"szCs\":e[\"font-size\"]??(e[\"font-size\"]=w.lengthAttr(s,\"val\",$t.FontSize)),e[\"min-height\"]??(e[\"min-height\"]=e[\"font-size\"]);break;case\"shd\":e[\"background-color\"]=Dr.colorAttr(s,\"fill\",null,Br.shd);break;case\"highlight\":e[\"background-color\"]=Dr.colorAttr(s,\"val\",null,Br.highlight);break;case\"vertAlign\":e[\"vertical-align\"]=Yt.valueOfVertAlign(s);break;case\"position\":e[\"vertical-align\"]=w.lengthAttr(s,\"val\",$t.SignedHalfPoint);break;case\"w\":case\"scale\":let l=w.intAttr(s,\"val\",100);Number.isFinite(l)&&l>0&&l<=600&&(e[\"--docx-text-scale\"]=`${l/100}`);break;case\"tcW\":if(this.options.ignoreWidth)break;case\"tblW\":e.width=Yt.valueOfSize(s,\"w\");break;case\"trHeight\":this.parseTrHeight(s,e);break;case\"strike\":e[\"text-decoration\"]=w.boolAttr(s,\"val\",!0)?\"line-through\":\"none\";break;case\"dstrike\":w.boolAttr(s,\"val\",!0)?(e[\"text-decoration-line\"]=\"line-through\",e[\"text-decoration-style\"]=\"double\"):e[\"text-decoration\"]=\"none\";break;case\"b\":e[\"font-weight\"]=w.boolAttr(s,\"val\",!0)?\"bold\":\"normal\";break;case\"i\":e[\"font-style\"]=w.boolAttr(s,\"val\",!0)?\"italic\":\"normal\";break;case\"bCs\":e[\"--docx-bidi-font-weight\"]=w.boolAttr(s,\"val\",!0)?\"bold\":\"normal\",e.direction==\"rtl\"&&(e[\"font-weight\"]=e[\"--docx-bidi-font-weight\"]);break;case\"iCs\":e[\"--docx-bidi-font-style\"]=w.boolAttr(s,\"val\",!0)?\"italic\":\"normal\",e.direction==\"rtl\"&&(e[\"font-style\"]=e[\"--docx-bidi-font-style\"]);break;case\"caps\":e[\"text-transform\"]=w.boolAttr(s,\"val\",!0)?\"uppercase\":\"none\";break;case\"smallCaps\":e[\"font-variant\"]=w.boolAttr(s,\"val\",!0)?\"small-caps\":\"none\";break;case\"rtl\":w.boolAttr(s,\"val\",!0)&&(e.direction=\"rtl\",e[\"unicode-bidi\"]=\"embed\",e[\"--docx-bidi-font-weight\"]&&(e[\"font-weight\"]=e[\"--docx-bidi-font-weight\"]),e[\"--docx-bidi-font-style\"]&&(e[\"font-style\"]=e[\"--docx-bidi-font-style\"]));break;case\"outline\":w.boolAttr(s,\"val\",!0)&&(e[\"-webkit-text-stroke\"]=\"0.5px currentColor\");break;case\"shadow\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"1px 1px 0 currentColor\");break;case\"emboss\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"-1px -1px 0 rgba(255,255,255,.75), 1px 1px 0 rgba(0,0,0,.35)\");break;case\"imprint\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"1px 1px 0 rgba(255,255,255,.75), -1px -1px 0 rgba(0,0,0,.35)\");break;case\"em\":e[\"text-emphasis-style\"]=Yt.valueOfEmphasisMark(s);break;case\"u\":this.parseUnderline(s,e);break;case\"ind\":case\"tblInd\":this.parseIndentation(s,e);break;case\"rFonts\":this.parseFont(s,e,a);break;case\"tblBorders\":this.parseBorderProperties(s,r||e);break;case\"tblCellSpacing\":e[\"border-spacing\"]=Yt.valueOfMargin(s),e[\"border-collapse\"]=\"separate\";break;case\"pBdr\":this.parseBorderProperties(s,e);break;case\"bdr\":e.border=Yt.valueOfBorder(s);break;case\"tcBorders\":this.parseBorderProperties(s,e);break;case\"vanish\":w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"kern\":e[\"font-kerning\"]=w.intAttr(s,\"val\",0)>0?\"normal\":\"none\";break;case\"noWrap\":e[\"white-space\"]=w.boolAttr(s,\"val\",!0)?\"nowrap\":\"normal\";break;case\"snapToGrid\":e[\"--docx-snap-to-grid\"]=w.boolAttr(s,\"val\",!0)?\"1\":\"0\";break;case\"fitText\":this.parseFitText(s,e);break;case\"eastAsianLayout\":this.parseEastAsianLayout(s,e);break;case\"tblCellMar\":case\"tcMar\":this.parseMarginProperties(s,r||e);break;case\"tblLayout\":e[\"table-layout\"]=Yt.valueOfTblLayout(s);break;case\"vAlign\":e[\"vertical-align\"]=Yt.valueOfTextAlignment(s);break;case\"spacing\":t.localName==\"pPr\"?this.parseSpacing(s,e):t.localName==\"rPr\"&&(e[\"letter-spacing\"]=w.lengthAttr(s,\"val\",$t.SignedDxa));break;case\"wordWrap\":w.boolAttr(s,\"val\")&&(e[\"overflow-wrap\"]=\"break-word\");break;case\"suppressAutoHyphens\":e.hyphens=w.boolAttr(s,\"val\",!0)?\"none\":\"auto\";break;case\"lang\":e.$lang=w.attr(s,\"val\"),e[\"$lang-eastAsia\"]=w.attr(s,\"eastAsia\"),e[\"$lang-bidi\"]=w.attr(s,\"bidi\");break;case\"rtl\":case\"bidi\":w.boolAttr(s,\"val\",!0)&&(e.direction=\"rtl\");break;case\"pageBreakBefore\":w.boolAttr(s,\"val\",!0)&&(e[\"break-before\"]=\"page\");break;case\"keepLines\":w.boolAttr(s,\"val\",!0)&&(e[\"break-inside\"]=\"avoid\");break;case\"keepNext\":w.boolAttr(s,\"val\",!0)&&(e[\"break-after\"]=\"avoid\");break;case\"widowControl\":w.boolAttr(s,\"val\",!0)&&(e.orphans=\"2\",e.widows=\"2\");break;case\"webHidden\":this.options.hideWebHiddenContent&&w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"specVanish\":w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"tabs\":case\"outlineLvl\":case\"contextualSpacing\":case\"tblStyleColBandSize\":case\"tblStyleRowBandSize\":case\"suppressLineNumbers\":case\"noProof\":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${t.localName}.${s.localName}`);break}return e}parseFitText(t,e){let r=w.lengthAttr(t,\"val\");r&&(e.display=\"inline-block\",e.width=r,e[\"text-align\"]=\"justify\",e[\"text-align-last\"]=\"justify\")}parseEastAsianLayout(t,e){w.boolAttr(t,\"combine\",!1)&&(e[\"text-combine-upright\"]=\"all\"),w.boolAttr(t,\"vert\",!1)&&(e[\"writing-mode\"]=\"vertical-rl\"),w.boolAttr(t,\"vertCompress\",!1)&&(e[\"font-stretch\"]=\"condensed\")}parseUnderline(t,e){var r=w.attr(t,\"val\");if(r!=null){switch(r){case\"dash\":case\"dashDotDotHeavy\":case\"dashDotHeavy\":case\"dashedHeavy\":case\"dashLong\":case\"dashLongHeavy\":case\"dotDash\":case\"dotDotDash\":e[\"text-decoration\"]=\"underline dashed\";break;case\"dotted\":case\"dottedHeavy\":e[\"text-decoration\"]=\"underline dotted\";break;case\"double\":e[\"text-decoration\"]=\"underline double\";break;case\"single\":case\"thick\":e[\"text-decoration\"]=\"underline\";break;case\"wave\":case\"wavyDouble\":case\"wavyHeavy\":e[\"text-decoration\"]=\"underline wavy\";break;case\"words\":e[\"text-decoration\"]=\"underline\";break;case\"none\":e[\"text-decoration\"]=\"none\";break}var i=Dr.colorAttr(t,\"color\");i&&(e[\"text-decoration-color\"]=i)}}parseFont(t,e,r={}){var i=w.attr(t,\"ascii\"),o=w.attr(t,\"hAnsi\"),a=w.attr(t,\"eastAsia\"),s=w.attr(t,\"cs\"),l=Yt.themeValue(t,\"asciiTheme\"),c=Yt.themeValue(t,\"hAnsiTheme\"),h=this.scriptThemeFontValue(Yt.themeValue(t,\"eastAsiaTheme\"),r.eastAsia),u=this.scriptThemeFontValue(Yt.themeValue(t,\"cstheme\")??Yt.themeValue(t,\"csTheme\"),r.bidi);let f=Ei(r.eastAsia),d=(g,b=\"\")=>Pd(g)?jo(g,b):[br(g)];var p=[i,o].filter(g=>g).flatMap(g=>d(g,f));p.push(...[l,c].filter(g=>g).map(g=>g.startsWith(\"var(\")?g:br(g)));let m=p.slice();if(a&&p.push(...jo(a,f)),h&&p.push(h.startsWith(\"var(\")?h:br(h)),s&&p.push(...d(s,Ei(r.bidi))),u&&p.push(u.startsWith(\"var(\")?u:br(u)),p.length>0){let g=(e[\"font-family\"]??\"\").split(\",\").map(b=>b.trim()).filter(b=>b);e[\"font-family\"]=[...new Set([...g,...p])].join(\", \"),m.length&&(e[\"--docx-latin-font-family\"]=[...new Set(m)].join(\", \")),e[\"--docx-partial-eastasia-font\"]=!m.length&&(a||h)&&!s&&!u?\"true\":\"false\"}}scriptThemeFontValue(t,e){if(!t)return t;let r=Ei(e),i=/^var\\((--docx-(?:major|minor)(?:EastAsia|Bidi|Cs)-font)\\)$/.exec(t);return!r||!i?t:`var(${i[1]}-${r}, ${t})`}parseIndentation(t,e){var r=w.lengthAttr(t,\"firstLine\"),i=w.lengthAttr(t,\"hanging\"),o=w.lengthAttr(t,\"left\"),a=w.lengthAttr(t,\"start\"),s=w.lengthAttr(t,\"right\"),l=w.lengthAttr(t,\"end\");r&&(e[\"text-indent\"]=r,e[\"--docx-text-indent\"]=r),i&&(e[\"text-indent\"]=`-${i}`,e[\"--docx-text-indent\"]=`-${i}`,e[\"--docx-hanging-indent\"]=i),(o||a)&&(e[\"margin-inline-start\"]=o||a,e[\"--docx-margin-inline-start\"]=o||a),(s||l)&&(e[\"margin-inline-end\"]=s||l,e[\"--docx-margin-inline-end\"]=s||l)}parseSpacing(t,e){var r=w.lengthAttr(t,\"before\"),i=w.lengthAttr(t,\"after\"),o=w.intAttr(t,\"beforeLines\",null),a=w.intAttr(t,\"afterLines\",null),s=w.boolAttr(t,\"beforeAutospacing\",!1),l=w.boolAttr(t,\"afterAutospacing\",!1),c=w.intAttr(t,\"line\",null),h=w.attr(t,\"lineRule\");if(s?e[\"margin-top\"]=\"auto\":Number.isFinite(o)&&o>=0?e[\"margin-top\"]=`${(o/100).toFixed(2)}em`:r&&(e[\"margin-top\"]=r),l?e[\"margin-bottom\"]=\"auto\":Number.isFinite(a)&&a>=0?e[\"margin-bottom\"]=`${(a/100).toFixed(2)}em`:i&&(e[\"margin-bottom\"]=i),c!==null)switch(h??\"auto\"){case\"auto\":e[\"line-height\"]=`${(c/240).toFixed(2)}`;break;case\"atLeast\":e[\"line-height\"]=`max(1.2em, ${(c/20).toFixed(2)}pt)`,e[\"min-height\"]=`max(1.2em, ${(c/20).toFixed(2)}pt)`;break;case\"exact\":case\"exactly\":e[\"line-height\"]=e[\"min-height\"]=`${(c/20).toFixed(2)}pt`;break;default:e[\"line-height\"]=`${(c/240).toFixed(2)}`;break}}parseMarginProperties(t,e){for(let r of w.elements(t))switch(r.localName){case\"left\":case\"start\":e[\"padding-left\"]=Yt.valueOfMargin(r);break;case\"right\":case\"end\":e[\"padding-right\"]=Yt.valueOfMargin(r);break;case\"top\":e[\"padding-top\"]=Yt.valueOfMargin(r);break;case\"bottom\":e[\"padding-bottom\"]=Yt.valueOfMargin(r);break}}parseTrHeight(t,e){w.attr(t,\"hRule\"),e.height=w.lengthAttr(t,\"val\")}parseBorderProperties(t,e){for(let r of w.elements(t)){let i=Yt.valueOfBorder(r);switch(r.localName){case\"start\":case\"left\":e[\"border-left\"]=i;break;case\"end\":case\"right\":e[\"border-right\"]=i;break;case\"top\":e[\"border-top\"]=i;break;case\"bottom\":e[\"border-bottom\"]=i;break;case\"insideH\":e[\"border-top\"]??(e[\"border-top\"]=i),e[\"border-bottom\"]??(e[\"border-bottom\"]=i);break;case\"insideV\":e[\"border-left\"]??(e[\"border-left\"]=i),e[\"border-right\"]??(e[\"border-right\"]=i);break}}}},Tp=[\"black\",\"blue\",\"cyan\",\"darkBlue\",\"darkCyan\",\"darkGray\",\"darkGreen\",\"darkMagenta\",\"darkRed\",\"darkYellow\",\"green\",\"lightGray\",\"magenta\",\"none\",\"red\",\"white\",\"yellow\"],Sp={dark1:\"dk1\",light1:\"lt1\",dark2:\"dk2\",light2:\"lt2\",text1:\"dk1\",background1:\"lt1\",text2:\"dk2\",background2:\"lt2\",hyperlink:\"hlink\",followedHyperlink:\"folHlink\"};function Ep(n){return Sp[n]??n}function ql(n){switch(n){case\"dk1\":return\"#000000\";case\"lt1\":return\"#FFFFFF\";case\"dk2\":return\"#44546A\";case\"lt2\":return\"#E7E6E6\";case\"accent1\":return\"#4472C4\";case\"accent2\":return\"#ED7D31\";case\"accent3\":return\"#A5A5A5\";case\"accent4\":return\"#FFC000\";case\"accent5\":return\"#5B9BD5\";case\"accent6\":return\"#70AD47\";case\"hlink\":return\"#0563C1\";case\"folHlink\":return\"#954F72\";default:return null}}var Dr=class{static colorAttr(t,e,r=null,i=Br.color){var o=w.attr(t,e);if(o)return o==\"auto\"?i:Tp.includes(o)?o:`#${o}`;var a=w.attr(t,\"themeColor\");if(a){let s=Ep(a),l=ql(s);return`var(--docx-${s}-color${l?`, ${l}`:\"\"})`}return r}},Yt=class n{static themeValue(t,e){var r=w.attr(t,e);return r?`var(--docx-${r}-font)`:null}static valueOfSize(t,e){var r=$t.Dxa;switch(w.attr(t,\"type\")){case\"dxa\":break;case\"pct\":r=$t.Percent;break;case\"auto\":return\"auto\"}return w.lengthAttr(t,e,r)}static valueOfMargin(t){return w.lengthAttr(t,\"w\")}static valueOfBorder(t){var e=n.parseBorderType(w.attr(t,\"val\"));if(e==\"none\")return\"none\";var r=Dr.colorAttr(t,\"color\",Br.borderColor,Br.borderColor),i=w.lengthAttr(t,\"sz\",$t.Border)??\"1pt\";return`${i} ${e} ${r==\"auto\"?Br.borderColor:r}`}static parseBorderType(t){switch(t){case\"single\":return\"solid\";case\"dashDotStroked\":return\"solid\";case\"dashed\":return\"dashed\";case\"dashSmallGap\":return\"dashed\";case\"dotDash\":return\"dotted\";case\"dotDotDash\":return\"dotted\";case\"dotted\":return\"dotted\";case\"double\":return\"double\";case\"doubleWave\":return\"double\";case\"inset\":return\"inset\";case\"nil\":return\"none\";case\"none\":return\"none\";case\"outset\":return\"outset\";case\"thick\":return\"solid\";case\"thickThinLargeGap\":return\"solid\";case\"thickThinMediumGap\":return\"solid\";case\"thickThinSmallGap\":return\"solid\";case\"thinThickLargeGap\":return\"solid\";case\"thinThickMediumGap\":return\"solid\";case\"thinThickSmallGap\":return\"solid\";case\"thinThickThinLargeGap\":return\"solid\";case\"thinThickThinMediumGap\":return\"solid\";case\"thinThickThinSmallGap\":return\"solid\";case\"threeDEmboss\":return\"solid\";case\"threeDEngrave\":return\"solid\";case\"triple\":return\"double\";case\"wave\":return\"solid\"}return\"solid\"}static valueOfTblLayout(t){var e=w.attr(t,\"type\")??w.attr(t,\"val\");return e==\"fixed\"?\"fixed\":\"auto\"}static classNameOfCnfStyle(t){let e=w.attr(t,\"val\");return[\"first-row\",\"last-row\",\"first-col\",\"last-col\",\"odd-col\",\"even-col\",\"odd-row\",\"even-row\",\"ne-cell\",\"nw-cell\",\"se-cell\",\"sw-cell\"].filter((i,o)=>e[o]==\"1\").join(\" \")}static valueOfJc(t){var e=w.attr(t,\"val\");switch(e){case\"start\":case\"left\":return\"left\";case\"center\":return\"center\";case\"end\":case\"right\":return\"right\";case\"both\":return\"justify\"}return e}static valueOfVertAlign(t,e=!1){var r=w.attr(t,\"val\");switch(r){case\"subscript\":return\"sub\";case\"superscript\":return e?\"sup\":\"super\"}return e?null:r}static valueOfEmphasisMark(t){var e=w.attr(t,\"val\");switch(e){case\"none\":return\"none\";case\"comma\":return'\"\\uFE50\"';case\"circle\":return\"circle\";default:return\"dot\"}}static valueOfTextAlignment(t){var e=w.attr(t,\"val\");switch(e){case\"auto\":case\"baseline\":return\"baseline\";case\"top\":return\"top\";case\"center\":return\"middle\";case\"bottom\":return\"bottom\"}return e}static addSize(t,e){return!t||t==\"0.00pt\"||t==\"0px\"?e:!e||e==\"0.00pt\"||e==\"0px\"?t:`calc(${t} + ${e})`}static classNameOftblLook(t){let e=w.hexAttr(t,\"val\",0),r=\"\";return(w.boolAttr(t,\"firstRow\")||e&32)&&(r+=\" first-row\"),(w.boolAttr(t,\"lastRow\")||e&64)&&(r+=\" last-row\"),(w.boolAttr(t,\"firstColumn\")||e&128)&&(r+=\" first-col\"),(w.boolAttr(t,\"lastColumn\")||e&256)&&(r+=\" last-col\"),(w.boolAttr(t,\"noHBand\")||e&512)&&(r+=\" no-hband\"),(w.boolAttr(t,\"noVBand\")||e&1024)&&(r+=\" no-vband\"),r.trim()}};var kp={33:33,34:8704,35:35,36:8707,37:37,38:38,39:8715,40:40,41:41,42:8727,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:8764,160:8364,161:978,162:8242,163:8804,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:9001,229:8721,241:9002,242:8747,243:8992,245:8993};function Ap(n,t){let e=String.fromCharCode(t);if((n??\"\").trim().replace(/^([\"'])(.*)\\1$/,\"$2\").trim().toLowerCase()!==\"symbol\")return{text:e,normalized:!1};let i=t>=61440&&t<=61695?t-61440:t,o=i>=0&&i<=255?kp[i]:void 0,a=o===void 0?e:String.fromCharCode(o);return{text:a,normalized:a!==e}}var Ta=class{constructor(t,e,r){this.className=t,this.createLayer=e,this.layoutContent=r,this.records=new Map,this.bindingRoot=null,this.binding=null,this.root=e(),this.root.dataset.docxCommentLayer=\"true\"}add(t){this.records.set(t.key,t),this.root.appendChild(t.popup)}references(t,e){return Array.from(t.querySelectorAll(\"[data-docx-comment-reference]\")).filter(r=>r.dataset.docxCommentReference===e.key)}place(t,e){let r=e.ownerDocument?.defaultView;if(!r||!e.isConnected||!this.root.isConnected)return;let i=this.root,o=i.getBoundingClientRect(),a=e.getBoundingClientRect(),s=t.references.find(T=>!T.closest(\"a\"))??t.references[0]??e,l=s.getBoundingClientRect(),c=parseFloat(r.getComputedStyle(i).width),h=c>0?o.width/c:0;if(!(h>0)||!Number.isFinite(h)||!a.width||!a.height||!l.width||!l.height)return;t.positionedReference!==s&&t.positionedReference&&delete t.positionedReference.dataset.docxCommentPositioned,t.positionedReference=s,t.reference=e;let u=(a.left-o.left)/h,f=(a.top-o.top)/h,d=(l.left-o.left)/h,p=(l.top-o.top)/h,m=l.width/h,g=s.closest(\"a\");if(g){let T=g.getBoundingClientRect(),S=s.closest(\"section\")??i,I=S.getBoundingClientRect(),O=r.getComputedStyle(S),$=(I.left-o.left)/h,k=(I.right-o.left)/h,W=(T.left-o.left)/h,U=(T.right-o.left)/h,v=4;d=[$+(parseFloat(O.paddingLeft)||0)-m-v,k-(parseFloat(O.paddingRight)||0)+v,$-m-v,k+v].find(y=>y>=0&&y+m<=c&&(y+m<=W-v||y>=U+v))??Math.max(c,U)+v}t.popup.style.position=\"absolute\",t.popup.style.left=`${d}px`,t.popup.style.top=`${p}px`;let b=r.getComputedStyle(s);if(t.summary.style.fontSize=b.fontSize,t.summary.style.fontFamily=b.fontFamily,t.summary.style.lineHeight=b.lineHeight,t.summary.style.width=`${m}px`,t.summary.style.height=`${l.height/h}px`,g?delete s.dataset.docxCommentPositioned:s.dataset.docxCommentPositioned=\"true\",t.popup.open){let T=t.body.getBoundingClientRect().width/h,S=Math.min(0,Math.max(-u,c-u-T));t.body.style.left=`${u-d+S}px`,t.body.style.maxWidth=`${Math.max(0,c)}px`;let I=o.height/h,O=Math.max(0,Math.min(I-f-a.height/h,(r.innerHeight-a.bottom)/h)),$=Math.max(0,Math.min(f,a.top/h)),k=O<120&&$>O;t.body.style.top=k?\"auto\":`${f-p+a.height/h}px`,t.body.style.bottom=k?`${p+l.height/h-f}px`:\"auto\",t.body.style.maxHeight=`${Math.max(1,k?$:O)}px`}}close(t){delete t.restoringOpen,t.revision++,t.opening?.abort(),t.opening=null,t.open=!1,t.popup.open=!1,t.references.forEach(e=>e.setAttribute(\"aria-expanded\",\"false\"))}activate(t,e,r,i=!1){if(!r.generation.isCurrent()||!e.isConnected)return Promise.resolve();delete t.restoringOpen,t.reference=e;let o=t.open;if(t.open=!0,t.popup.open=!0,t.references.forEach(h=>h.setAttribute(\"aria-expanded\",\"true\")),this.place(t,e),o&&!i)return t.layout??Promise.resolve();t.opening?.abort();let a=t.opening=new AbortController,s=++t.revision,l=()=>a.abort();r.generation.signal.addEventListener(\"abort\",l,{once:!0});let c={signal:a.signal,cancel:l,isCurrent:()=>!a.signal.aborted&&r.generation.isCurrent()&&t.revision===s&&t.popup.open&&t.reference.isConnected};return t.body.dataset.docxCommentLayout=\"pending\",t.layout=Un(t.body,[],c).then(()=>{c.isCurrent()&&(this.layoutContent(t.body),this.place(t,t.reference),t.body.dataset.docxCommentLayout=\"ready\")}).catch(h=>{t.revision===s&&(t.body.dataset.docxCommentLayout=h?.name===\"AbortError\"?\"cancelled\":\"failed\")}).finally(()=>r.generation.signal.removeEventListener(\"abort\",l)),t.layout}async bind(t,e){if(!t.isConnected||!e.isCurrent()||typeof t.addEventListener!=\"function\")return;let r=this.binding;if(r&&r.generation.signal===e.signal&&(this.bindingRoot===t||this.bindingRoot.contains(t))){r.generation=e,await this.sync(this.bindingRoot,r,!0);return}r&&r.dispose(r.generation.isCurrent()&&t.isConnected),r=null;let i=[],o=(T,S,I,O=!1)=>{T.addEventListener(S,I,O),i.push(()=>T.removeEventListener(S,I,O))},a=Array.from(this.records.values()).find(T=>T.popup.open)??null,s=null,l=!1,c=!1,h=()=>{let S=t.getRootNode().activeElement??t.ownerDocument.activeElement;for(;S?.shadowRoot?.activeElement;)S=S.shadowRoot.activeElement;return S},u=T=>{let S=T.reference.hasAttribute(\"tabindex\")?T.reference:T.summary;l=!0,S.focus(),l=!1},f=T=>T&&T.nodeType===1?T:null,d=T=>{let S=f(T)?.closest(\"[data-docx-comment-reference], [data-docx-comment-popup]\");return S?this.records.get(S.dataset.docxCommentReference??S.dataset.docxCommentPopup):null},p=(T,S)=>{let I=S;return!!I&&(T.popup.contains(I)||T.references.some(O=>O.contains(I)))},m=(T=a)=>{T&&this.close(T),a===T&&(a=null)};r={generation:e,dispose:(T=!1)=>{i.splice(0).forEach(S=>S());for(let S of this.records.values())T||this.close(S),S.positionedReference&&delete S.positionedReference.dataset.docxCommentPositioned,delete S.positionedReference;this.binding===r&&(this.binding=null,this.bindingRoot=null),(!t.isConnected||!r.generation.isCurrent())&&this.root.remove()}},this.binding=r,this.bindingRoot=t;let g=(T,S)=>{if(c)return;a&&a!==T&&this.close(a),a=T;let I=f(S),O=I?.closest(\"[data-docx-comment-reference]\")??(T.summary.contains(I)?T.positionedReference:null)??T.reference;this.activate(T,O,r)};o(t,\"mouseover\",T=>{let S=d(T.target);if(S){if(a&&a!==S&&p(a,h()))return;s=S,g(S,T.target)}}),o(t,\"mouseout\",T=>{let S=T.relatedTarget;a&&!p(a,S)&&(s=null,p(a,h())||m())}),o(t,\"focusin\",T=>{let S=d(T.target);!l&&S&&f(T.target)?.dataset.docxCommentReference&&g(S,T.target)}),o(t,\"focusout\",T=>{a&&s!==a&&!p(a,T.relatedTarget)&&m()}),o(t,\"click\",T=>{let S=f(T.target)?.closest(\"[data-docx-comment-reference]\"),I=S&&this.records.get(S.dataset.docxCommentReference);I&&(T.preventDefault(),T.stopPropagation(),I.popup.open?m(I):g(I,S))}),o(t,\"keydown\",T=>{let S=T,I=d(T.target);if(!I)return;let O=f(T.target)?.closest(\"[data-docx-comment-reference]\");if(O&&(S.key===\"Enter\"||S.key===\" \"))T.preventDefault(),T.stopPropagation(),I.popup.open?m(I):g(I,O);else if(S.key===\"Escape\")T.preventDefault(),T.stopPropagation(),m(I),u(I);else if(S.key===\"Tab\"&&I.popup.open){let $=Array.from(I.body.querySelectorAll(\"a[href], button, input, select, textarea, [tabindex]\")).filter(k=>k.tabIndex>=0&&!k.disabled);O&&!S.shiftKey&&$.length?(T.preventDefault(),$[0].focus()):S.shiftKey&&T.target===$[0]?(T.preventDefault(),u(I)):!S.shiftKey&&T.target===$[$.length-1]&&(u(I),m(I))}}),o(t,\"toggle\",T=>{let S=d(T.target);if(!(!S||T.target!==S.popup||c)){if(S.restoringOpen!==void 0){let I=S.restoringOpen;if(delete S.restoringOpen,S.popup.open===I)return}S.popup.open&&!S.open?g(S,S.reference):!S.popup.open&&S.open&&(this.close(S),a===S&&(a=null))}},!0);let b=t.ownerDocument.defaultView;if(b){let T=()=>{!c&&r.generation.isCurrent()&&this.sync(t,r,!0)};o(b,\"resize\",T),o(b,\"scroll\",T,!0);let S=new Map;o(b,\"beforeprint\",()=>{if(!(c||!r.generation.isCurrent())){c=!0;for(let O of this.records.values())S.set(O,O.popup.open),O.popup.open=!0,this.layoutContent(O.body)}}),o(b,\"afterprint\",()=>{if(c){for(let[O,$]of S)O.restoringOpen=$,$||O.opening?.abort(),O.open=$,O.popup.open=$,O.references.forEach(k=>k.setAttribute(\"aria-expanded\",`${$}`));S.clear(),c=!1,this.sync(t,r,!0)}});let I=b.MutationObserver;if(I){let O=new I(()=>{(!t.isConnected||!r.generation.isCurrent())&&r.dispose()});O.observe(t.ownerDocument.documentElement,{childList:!0,subtree:!0});for(let $=t.getRootNode();$&&$!==t.ownerDocument;$=$.host?.getRootNode())O.observe($,{childList:!0,subtree:!0});i.push(()=>O.disconnect())}}o(e.signal,\"abort\",()=>r.dispose()),await this.sync(t,r,!0)}async sync(t,e,r=!1){let i=[];for(let o of this.records.values()){let a=this.references(t,o);if(!a.length)continue;o.references=a;let s=a.includes(o.reference)?o.reference:a[0];this.place(o,s),e&&o.popup.open&&r?i.push(this.activate(o,s,e,!0)):o.layout&&i.push(o.layout)}await Promise.all(i)}},Do={pos:0,leader:\"none\",style:\"left\"},Cp=50,ki=.1;function Np(n=document.body){let t=document.createElement(\"div\");t.style.width=\"100pt\",n.appendChild(t);let e=100/t.offsetWidth;return n.removeChild(t),e}function Rp(n,t,e,r=72/96){let i=n.closest(\"p\");if(!i)return;let o=n.getBoundingClientRect(),a=i.getBoundingClientRect(),s=getComputedStyle(i);if(s.direction==\"rtl\"||s.writingMode&&s.writingMode!=\"horizontal-tb\")return;let l=gr(s.marginInlineStart||s.marginLeft),c=gr(s.marginInlineEnd||s.marginRight),h=gr(s.textIndent),u=t?.length>0?t.map(k=>({pos:Bo(k.position),leader:k.leader,style:k.style})).sort((k,W)=>k.pos-W.pos):[Do],f=l*r,d=u.some(k=>Math.abs(k.pos-f)<=ki);h<-ki&&f>ki&&!d&&(u.push({...Do,pos:f}),u.sort((k,W)=>k.pos-W.pos));let p=u[u.length-1],m=(a.width+l+c)*r,g=Number.isFinite(Bo(e))?Bo(e):36,b=p.pos+g;if(b<m)for(;b<m&&u.length<Cp;b+=g)u.push({...Do,pos:b});let T=a.left-l,S=(o.left-T)*r,I=u.find(k=>k.style!=\"clear\"&&k.pos>S);if(I==null||![\"left\",\"right\",\"center\"].includes(I.style||\"left\"))return;let O=1;if(I.style==\"right\"||I.style==\"center\"){let k=Array.from(i.querySelectorAll(`.${n.className}`)),W=k.indexOf(n)+1,U=document.createRange();U.setStart(n,1),W<k.length?U.setEndBefore(k[W]):U.setEnd(i,i.childNodes.length);let v=I.style==\"center\"?.5:1,_=U.getBoundingClientRect(),y=_.left+v*_.width-T;O=I.pos-y*r}else O=I.pos-S;let $=Math.max(Number.isFinite(O)?O:0,0);switch(n.textContent!==\"\\xA0\"&&(n.textContent=\"\\xA0\"),n.style.display=\"inline-block\",n.style.width=`${$.toFixed(2)}pt`,n.style.minWidth=\"0pt\",n.style.lineHeight=\"1\",n.style.whiteSpace=\"nowrap\",n.style.wordSpacing=\"normal\",n.style.textDecoration=\"none\",n.style.borderBottom=\"\",n.style.height=\"\",n.style.transform=\"\",I.leader){case\"dot\":case\"middleDot\":n.style.borderBottom=\"1px dotted currentColor\",n.style.height=\".85em\",n.style.transform=\"translateY(-.18em)\";break;case\"hyphen\":case\"heavy\":case\"underscore\":n.style.borderBottom=\"1px solid currentColor\",n.style.height=\".85em\",n.style.transform=\"translateY(-.18em)\";break}}function gr(n){let t=parseFloat(n);return Number.isFinite(t)?t:0}function Bo(n){return parseFloat(n)}function Ba(n){let t=/^\\s*([-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+))(pt|px|pc|in|cm|mm)?\\s*$/i.exec(n??\"\");if(!t)return null;let e={pt:1,px:.75,pc:12,in:72,cm:72/2.54,mm:72/25.4}[t[2]?.toLowerCase()??\"pt\"],r=Number(t[1])*e;return Number.isFinite(r)?r:null}function Pp(n,t){let e=n.dataset.docxTabLayout==\"explicit\",r=e?n.dataset.docxTabFallbackWidth??\"\":n.style.width,i=e?n.dataset.docxTabFallbackMinWidth??\"\":n.style.minWidth??\"\",o=n.style.display,a=()=>(e&&(n.style.width=r,n.style.minWidth=i),n.style.display=o,!1),s=n.closest(\"p\"),l=n.ownerDocument?.defaultView;if(!s||!l||!n.isConnected)return a();let c=l.getComputedStyle(s);if(c.direction==\"rtl\"||c.writingMode&&c.writingMode!=\"horizontal-tb\")return a();let h=t.filter(W=>W.style!=\"clear\").map(W=>({...W,point:Ba(W.position)}));if(!h.length||h.some(W=>W.point==null))return a();h.sort((W,U)=>W.point-U.point);let u=n.style.width;n.style.display=\"inline-block\",n.style.width=\"0pt\";let f=n.getBoundingClientRect(),d=s.getBoundingClientRect(),p=gr(c.width)+(c.boxSizing==\"border-box\"?0:gr(c.paddingLeft)+gr(c.paddingRight)+gr(c.borderLeftWidth)+gr(c.borderRightWidth)),m=p>0?d.width/p:0;if(!(m>0)||!Number.isFinite(m))return n.style.width=u,a();let g=d.left/m-gr(c.marginLeft),b=(f.left/m-g)*.75,T=h.find(W=>W.point>b+ki);if(!T||![\"left\",\"right\",\"center\"].includes(T.style||\"left\")||T.leader&&T.leader!=\"none\")return n.style.width=u,a();let S=W=>{for(;W&&W!=s;){if(W.nextSibling)return W.nextSibling;W=W.parentNode}return null},I=null;for(let W=S(n);W;){if(W.nodeType==1){let U=W;if(U.tagName==\"BR\"||U.tagName==\"P\"||U.dataset.docxTab==\"true\"||U.dataset.docxDrawing==\"true\"){I=U;break}}W=W.firstChild??S(W)}let O=0;if(T.style==\"right\"||T.style==\"center\"){let W=n.ownerDocument.createRange();if(W.setStartAfter(n),I?W.setEndBefore(I):W.setEnd(s,s.childNodes.length),O=W.getBoundingClientRect().width/m*.75,!Number.isFinite(O))return n.style.width=u,a()}let $=T.style==\"right\"?1:T.style==\"center\"?.5:0,k=Math.max(0,T.point-b-$*O);return n.textContent!==\"\\xA0\"&&(n.textContent=\"\\xA0\"),n.style.width=`${k.toFixed(2)}pt`,n.style.minWidth=\"0pt\",n.style.lineHeight=\"1\",n.style.whiteSpace=\"nowrap\",n.style.wordSpacing=\"normal\",n.dataset.docxTabLayout=\"explicit\",n.dataset.docxTabFallbackWidth=r,n.dataset.docxTabFallbackMinWidth=i,!0}function Ip(n,t,e){if(!t||![t.start,t.size,e].every(Number.isFinite))return null;if(n.alignSpecified)return n.align==\"center\"?t.start+(t.size-e)/2:n.align==\"right\"||n.align==\"bottom\"?t.start+t.size-e:n.align==\"left\"||n.align==\"top\"?t.start:null;let r=Ba(n.offset??\"0pt\");return r==null?null:t.start+r*4/3}var oe=n=>Number.parseFloat(n)||0;function Op(n,t,e){let r=n.ownerDocument?.defaultView,i=n.closest(\"p\"),o=n.closest(\"[data-docx-comment-story]\")??n.closest(`section.${e}`);if(!r||!i||!o||!n.isConnected||i.closest(\"foreignObject\"))return;let a=r.getComputedStyle(i);if(a.direction==\"rtl\"||a.writingMode&&a.writingMode!=\"horizontal-tb\")return;let s=r.getComputedStyle(o),l=o.getBoundingClientRect(),c=oe(s.width)+(s.boxSizing==\"border-box\"?0:oe(s.paddingLeft)+oe(s.paddingRight)+oe(s.borderLeftWidth)+oe(s.borderRightWidth)),h=c>0?l.width/c:0;if(!(h>0)||!Number.isFinite(h))return;let u=(et,B=!1)=>{let z=et.getBoundingClientRect(),st=r.getComputedStyle(et),dt=B?oe(st.borderLeftWidth)+oe(st.paddingLeft):0,ft=B?oe(st.borderTopWidth)+oe(st.paddingTop):0,Ft=B?oe(st.borderRightWidth)+oe(st.paddingRight):0,Xt=B?oe(st.borderBottomWidth)+oe(st.paddingBottom):0;return{x:{start:z.left/h+dt,size:z.width/h-dt-Ft},y:{start:z.top/h+ft,size:z.height/h-ft-Xt}}},f=u(o),d=u(o,!0),p=u(i);if(p.x.size<=0||p.y.size<=0)return;let m=i.closest(\"article, header, footer\");if(!m)return;let g=u(m,!0),b=r.getComputedStyle(m),T=n.previousElementSibling,S=T?.dataset.docxAnchorMarker==\"true\"?u(T):null,I=T?.querySelector?.('[data-docx-anchor-line=\"top\"]'),O=T?.querySelector?.('[data-docx-anchor-line=\"bottom\"]'),$=I?u(I).y.start:null,k=O?u(O).y.start:null,W=$!=null&&k!=null&&k>$?{start:$,size:k-$}:null,U={...g.x},v=oe(b.columnCount),_=oe(b.columnWidth);if(v>1||_>0){let et=b.columnGap==\"normal\"?oe(b.fontSize):oe(b.columnGap),B=_>0?Math.max(1,Math.floor((U.size+et)/(_+et))):v,z=v>0?Math.min(v,B):B,st=(U.size+et)/z;if(!(st>0))return;let dt=S?.x.start??p.x.start-oe(a.marginLeft),ft=Math.max(0,Math.min(z-1,Math.floor((dt-U.start+.1)/st)));U.start+=ft*st,U.size=st-et}let y=t.layoutInCell!==!1?i.closest(\"td, th\"):null,H=y?u(y,!0):null,nt=(et,B)=>H&&[\"page\",\"margin\",\"column\",\"cell\"].includes(B)?H[et]:B==\"page\"?f[et]:B==\"margin\"?d[et]:B==\"column\"?et==\"x\"?U:g.y:B==\"paragraph\"?p[et]:B==\"character\"?S?.[et]:B==\"line\"?et==\"y\"?W:S?.x:B==\"cell\"&&y?u(y,!0)[et]:null,J=r.getComputedStyle(n),lt={x:oe(J.width),y:oe(J.height)},ot={x:p.x.start+oe(a.borderLeftWidth),y:p.y.start+oe(a.borderTopWidth)};for(let[et,B]of[[\"x\",t.horizontal],[\"y\",t.vertical]]){let z=nt(et,B.relative),st=Ip(B,z,lt[et]),dt=Ba(B.offset??\"0pt\");if(st==null||dt==null)continue;let ft=st-ot[et]-dt*4/3;n.style.setProperty(`--docx-anchor-origin-${et}`,`${(Math.abs(ft)<5e-5?0:ft).toFixed(4)}px`)}}function Lp(n,t,e=r=>r){let r=[\"tl2br\",\"tr2bl\"].filter(l=>t?.[l]&&t[l]!==\"none\");if(!r.length)return;let i=n.ownerDocument??document,o=\"http://www.w3.org/2000/svg\",a=i.createElementNS(o,\"svg\"),s=i.createElement(\"span\");for(let l of r){let c=/^(\\d+(?:\\.\\d+)?)(pt|px)\\s+(\\w+)\\s+(.+)$/.exec(t[l]);if(!c||!Number.isFinite(Number(c[1]))||Number(c[1])<=0)continue;let[,h,u,f,d]=c;if(/url\\s*\\(|[;{}<>\\\\\\x00-\\x1f]/i.test(d)||(s.style.color=\"\",s.style.color=d,!s.style.color))continue;let p=i.createElementNS(o,\"line\");p.dataset.docxDiagonal=l,p.setAttribute(\"x1\",l===\"tl2br\"?\"0%\":\"100%\"),p.setAttribute(\"y1\",\"0%\"),p.setAttribute(\"x2\",l===\"tl2br\"?\"100%\":\"0%\"),p.setAttribute(\"y2\",\"100%\"),p.style.stroke=e(s.style.color),p.style.strokeWidth=`${h}${u}`;let m=Number(h)*(u===\"pt\"?4/3:1);f===\"dotted\"?(p.style.strokeDasharray=`0 ${m*2}`,p.style.strokeLinecap=\"round\"):f===\"dashed\"&&(p.style.strokeDasharray=`${m*4} ${m*2}`),a.appendChild(p)}a.hasChildNodes()&&(a.setAttribute(\"aria-hidden\",\"true\"),a.setAttribute(\"focusable\",\"false\"),Object.assign(a.style,{position:\"absolute\",left:\"0\",top:\"0\",width:\"100%\",height:\"100%\",overflow:\"hidden\",pointerEvents:\"none\"}),(!n.style.position||n.style.position===\"static\")&&(n.style.position=\"relative\"),n.appendChild(a))}function _p(n,t,e=()=>!0){let r=n.ownerDocument?.defaultView;if(!r||typeof n.querySelectorAll!=\"function\")return;let i=Array.from(n.querySelectorAll(\"section\"));n.matches?.(\"section\")&&i.unshift(n);for(let o of i){if(!o.classList.contains(t)||!e(o))continue;let a=r.getComputedStyle(o),s=Ht(a.width)+(a.boxSizing===\"border-box\"?0:Ht(a.paddingLeft)+Ht(a.paddingRight)+Ht(a.borderLeftWidth)+Ht(a.borderRightWidth)),l=o.getBoundingClientRect(),c=s>0?l.width/s:0;if(!(!Number.isFinite(c)||c<=0)){for(let h of Array.from(o.querySelectorAll('[data-docx-anchor-context=\"paragraph\"]'))){if(!e(h))continue;let u=h.getBoundingClientRect();h.style.setProperty(\"--docx-paragraph-page-offset-top\",`${(u.top-l.top)/c}px`),h.style.setProperty(\"--docx-paragraph-page-offset-left\",`${(u.left-l.left)/c}px`)}Mp(o,e),Bp(o,e),$p(o,c,e),Up(o,e)}}}var bl=new WeakMap,Ht=n=>Number.parseFloat(n)||0;function Mp(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return;let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),o=Ht(i.width)+(i.boxSizing===\"border-box\"?0:Ht(i.paddingLeft)+Ht(i.paddingRight)+Ht(i.borderLeftWidth)+Ht(i.borderRightWidth)),a=o?r.width/o:0;if(!(!Number.isFinite(a)||a<=0))for(let s of Array.from(n.querySelectorAll('[data-docx-anchor-horizontal=\"column\"], [data-docx-anchor-horizontal=\"margin\"]'))){if(s.dataset.docxAnchorId!=null||!t(s))continue;let l=s.closest('[data-docx-anchor-context=\"paragraph\"]');if(!l||s.offsetParent!==l||e.getComputedStyle(s).position!==\"absolute\"||!s.style.left||l.closest(\"td, th\"))continue;let c=s.dataset.docxAnchorHorizontal===\"margin\"?n:l.closest(\"article, header, footer\");if(!c||!n.contains(c)&&c!==n)continue;let h=e.getComputedStyle(c),f=c.getBoundingClientRect().left+(Ht(h.borderLeftWidth)+Ht(h.paddingLeft))*a,d=e.getComputedStyle(l),p=l.getBoundingClientRect();if(c!==n){let T=Ht(h.columnCount),S=Ht(h.columnWidth);if(T>1||S>0){let I=h.columnGap===\"normal\"?Ht(h.fontSize):Ht(h.columnGap),O=c.clientWidth-Ht(h.paddingLeft)-Ht(h.paddingRight),$=T>0?T:Math.max(1,Math.floor((O+I)/(S+I))),k=(O+I)/$;if(k>0){let W=(p.left-f)/a-Ht(d.marginLeft);f+=Math.round(W/k)*k*a}}}let m=p.left+Ht(d.borderLeftWidth)*a,g=(f-m)/a;if(!Number.isFinite(g))continue;let b=bl.get(s)??s.style.left;bl.set(s,b),s.style.left=Math.abs(g)<.01?b:`calc(${b} + ${g.toFixed(4)}px)`}}var yl=new WeakMap,Fp=/^[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:px|pt|pc|in|cm|mm)?$/i,$o=n=>n!==\"\"&&n!==\"none\"&&n!==\"normal\";function Dp(n,t){for(let e=n.parentElement;e;e=e.parentElement){let r=t.getComputedStyle(e);if(r.position&&r.position!==\"static\"||$o(r.transform)||$o(r.perspective)||$o(r.filter)||/(?:layout|paint|strict|content)/.test(r.contain)||/(?:transform|perspective|filter)/.test(r.willChange))return e}return null}function Bp(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return 0;let r=e.getComputedStyle(n),i=Ht(r.width)+(r.boxSizing===\"border-box\"?0:Ht(r.paddingLeft)+Ht(r.paddingRight)+Ht(r.borderLeftWidth)+Ht(r.borderRightWidth)),o=i>0?n.getBoundingClientRect().width/i:0;if(!Number.isFinite(o)||o<=0)return 0;let a=0;for(let s of Array.from(n.querySelectorAll('svg[data-docx-float=\"true\"]'))){if(s.dataset.docxAnchorId!=null||!t(s)||s.namespaceURI!==\"http://www.w3.org/2000/svg\"||s.ownerSVGElement||e.getComputedStyle(s).position!==\"absolute\")continue;let l=s.dataset.docxAnchorHorizontal===\"text\"&&!!(s.style.left||s.style.marginLeft)&&(!s.style.right||s.style.right===\"auto\"),c=s.dataset.docxAnchorVertical===\"text\"&&!!(s.style.top||s.style.marginTop)&&(!s.style.bottom||s.style.bottom===\"auto\");if(!l&&!c)continue;let h=s.closest(\"p\");if(!h||h.closest(\"td, th, svg, [data-docx-shape-textbox]\"))continue;let u=h.closest(\"article, header, footer\"),f=Dp(s,e);if(!u||!n.contains(u)||!f||f!==h&&f!==u&&f!==n)continue;let d=e.getComputedStyle(f),p=f.getBoundingClientRect(),m=e.getComputedStyle(h);if(m.direction===\"rtl\"||m.writingMode&&m.writingMode!==\"horizontal-tb\")continue;let g=yl.get(s)??{left:s.style.left,top:s.style.top},b=S=>!S||S===\"auto\"||Fp.test(S);if(l&&(!b(g.left)||!b(s.style.marginLeft))||c&&(!b(g.top)||!b(s.style.marginTop)))continue;let T=g.left;if(l){let S=e.getComputedStyle(u),I=u.getBoundingClientRect().left+(Ht(S.borderLeftWidth)+Ht(S.paddingLeft))*o,O=h.getBoundingClientRect(),$=Ht(S.columnCount),k=Ht(S.columnWidth);if($>1||k>0){let v=S.columnGap===\"normal\"?Ht(S.fontSize):Ht(S.columnGap),_=u.clientWidth-Ht(S.paddingLeft)-Ht(S.paddingRight),y=$>0?$:Math.max(1,Math.floor((_+v)/(k+v))),H=(_+v)/y;if(!(H>0))continue;let nt=(O.left-I)/o-Ht(m.marginLeft);I+=Math.round(nt/H)*H*o}let W=(I-p.left)/o-Ht(d.borderLeftWidth);if(!Number.isFinite(W))continue;let U=g.left&&g.left!==\"auto\"?g.left:\"0px\";T=Math.abs(W)<.01?U:`calc(${U} + ${W.toFixed(4)}px)`}if(yl.set(s,g),l&&(s.style.left=T),c){let S=(h.getBoundingClientRect().top-p.top)/o+Ht(m.borderTopWidth)-Ht(d.borderTopWidth),I=g.top&&g.top!==\"auto\"?g.top:\"0px\";Number.isFinite(S)&&(s.style.top=Math.abs(S)<.01?I:`calc(${I} + ${S.toFixed(4)}px)`)}a++}return a}var tn=n=>Number.parseFloat(n)||0;function $p(n,t,e){for(let r of Array.from(n.querySelectorAll(\"[data-docx-vml-text-viewport]\"))){if(!e(r))continue;let i=r.ownerSVGElement;if(!i||i.dataset.docxVml!==\"true\")continue;let o=i.getScreenCTM?.();if(!o)continue;let a=Math.hypot(o.a,o.b)/t,s=Math.hypot(o.c,o.d)/t,l=r.dataset.docxVmlTextViewport.split(\" \").map(Number);if(!(![a,s].every(c=>Number.isFinite(c)&&c>0)||l.length!==4||!l.every(Number.isFinite)||Math.abs(o.a*o.c+o.b*o.d)>1e-5*t*t*a*s)){for(let[c,h]of[\"x\",\"y\",\"width\",\"height\"].entries())r.setAttribute(h,`${l[c]*(c%2?s:a)}`);r.setAttribute(\"transform\",`scale(${1/a} ${1/s})`)}}}function xl(n){let t=/^([+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+))(pt|px|in|cm|mm|pc)?$/i.exec(n?.trim()||\"\");if(!t)return null;let e={pt:4/3,px:1,in:96,cm:96/2.54,mm:96/25.4,pc:16},r=Number(t[1])*(e[t[2]?.toLowerCase()||\"px\"]??1);return Number.isFinite(r)?r:null}function Wp(n){return tn(n.width)+(n.boxSizing===\"border-box\"?0:tn(n.paddingLeft)+tn(n.paddingRight)+tn(n.borderLeftWidth)+tn(n.borderRightWidth))}function Hp(n,t){let e=t.ownerDocument.createTreeWalker(t,1);e.currentNode=n;for(let r=e.nextNode();r;r=e.nextNode())if(r.closest(\"p\")!==t||r.matches(\"br, [data-docx-tab], [data-docx-float], [data-docx-frame-anchor]\"))return r;return null}function Up(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return 0;let r=new Map;for(let o of Array.from(n.querySelectorAll('[data-docx-tab=\"true\"][data-docx-tab-pos]'))){if(o.dataset.docxTabId!=null||!t(o))continue;let a=o.closest(\"p\");if(!a||!n.contains(a)||o.closest('[data-docx-has-tab-leader=\"true\"], [data-docx-toc-entry=\"true\"]')||o.dataset.docxTabLeader&&o.dataset.docxTabLeader!==\"none\"||![\"left\",\"right\",\"center\"].includes(o.dataset.docxTabAlign||\"left\")||xl(o.dataset.docxTabPos)===null)continue;let s=r.get(a)||[];s.push(o),r.set(a,s)}let i=0;for(let[o,a]of r){let s=e.getComputedStyle(o);if(s.direction===\"rtl\"||s.writingMode&&s.writingMode!==\"horizontal-tb\"||s.textAlign===\"center\"||s.textAlign===\"right\"||s.textAlign===\"end\")continue;let l=o.getBoundingClientRect(),c=Wp(s),h=c>0?l.width/c:0;if(!Number.isFinite(h)||h<=0||l.width<=0)continue;let u=l.left+(tn(s.borderLeftWidth)+tn(s.paddingLeft))*h;for(let f of a)f.style.width=\"0px\",f.style.minWidth=\"0px\";for(let f of a){let d=xl(f.dataset.docxTabPos),p=f.getBoundingClientRect(),m=o.ownerDocument.createRange();m.setStartAfter(f);let g=Hp(f,o);g?m.setEndBefore(g):m.setEnd(o,o.childNodes.length);let b=Array.from(m.getClientRects()).filter(k=>k.width>0&&k.bottom>p.top+.1&&k.top<p.bottom-.1),T=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY;for(let k of b)T=Math.min(T,k.left),S=Math.max(S,k.right);let I=b.length?Math.max(0,S-T)/h:0,O=f.dataset.docxTabAlign===\"right\"?1:f.dataset.docxTabAlign===\"center\"?.5:0,$=Math.max(0,d-(p.left-u)/h-I*O);Number.isFinite($)&&(f.style.width=`${$.toFixed(4)}px`,i++)}}return i}var zp=21.247,Kl=Math.pow(6/29,3);function Wo(n){return n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92}function Ho(n){let t=n>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:n*12.92;return Math.min(Math.max(0,t),1)}function Yp(n,t,e){let r=Wo(n/255),i=Wo(t/255),o=Wo(e/255),a=(r*.4124564+i*.3575761+o*.1804375)*100/95.047,s=(r*.2126729+i*.7151522+o*.072175)*100/100,l=(r*.0193339+i*.119192+o*.9503041)*100/108.883,c=h=>h>Kl?Math.cbrt(h):7.787*h+16/116;return a=c(a),s=c(s),l=c(l),[116*s-16,500*(a-s),200*(s-l)]}function Gp(n,t,e){let r=(n+16)/116,i=r+t/500,o=r-e/200,a=d=>d*d*d>Kl?d*d*d:(d-16/116)/7.787,s=a(i)*95.047/100,l=a(r)*100/100,c=a(o)*108.883/100,h=Ho(s*3.2404542+l*-1.5371385+c*-.4985314),u=Ho(s*-.969266+l*1.8760108+c*.041556),f=Ho(s*.0556434+l*-.2040259+c*1.0572252);return[Math.round(h*255),Math.round(u*255),Math.round(f*255)]}var jp={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkmagenta:[139,0,139],darkred:[139,0,0],darkyellow:[128,128,0],green:[0,128,0],gray:[128,128,128],grey:[128,128,128],lightgray:[211,211,211],lightgrey:[211,211,211],magenta:[255,0,255],red:[255,0,0],white:[255,255,255],yellow:[255,255,0]};function Uo(n){return Math.min(255,Math.max(0,n))}function Vp(n){let t=n.trim();if(t.startsWith(\"#\")){let i=t.slice(1);if(i.length===3||i.length===4){let o=parseInt(i[0]+i[0],16),a=parseInt(i[1]+i[1],16),s=parseInt(i[2]+i[2],16),l=i.length===4?parseInt(i[3]+i[3],16)/255:1;return Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(s)?null:{r:o,g:a,b:s,a:l}}if(i.length===6||i.length===8){let o=parseInt(i.slice(0,2),16),a=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16),l=i.length===8?parseInt(i.slice(6,8),16)/255:1;return Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(s)?null:{r:o,g:a,b:s,a:l}}return null}let e=/^rgba?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*(?:,\\s*([\\d.]+)\\s*)?\\)$/i.exec(t);if(e)return{r:Uo(parseFloat(e[1])),g:Uo(parseFloat(e[2])),b:Uo(parseFloat(e[3])),a:e[4]!==void 0?parseFloat(e[4]):1};let r=jp[t.toLowerCase()];return r?{r:r[0],g:r[1],b:r[2],a:1}:null}function Xp(n){return n===\"\"||n===\"none\"||n===\"transparent\"||n===\"inherit\"||n===\"initial\"||n===\"unset\"||n===\"currentcolor\"||n.startsWith(\"var(\")||n.startsWith(\"color-mix(\")||n.startsWith(\"url(\")||n.startsWith(\"linear-gradient(\")||n.startsWith(\"radial-gradient(\")||n.startsWith(\"conic-gradient(\")}var zo=new Map,qp=/^var\\(\\s*(--[\\w-]+)\\s*,\\s*([\\s\\S]+)\\)$/i;function en(n,t=zp){if(!n)return n;let e=n.trim(),r=e.toLowerCase();if(r.startsWith(\"var(\")){let m=qp.exec(e);if(!m)return n;let g=m[2].trim(),b=en(g,t);return b===g?n:`var(${m[1]}, ${b})`}if(Xp(r))return n;let i=`${t}|${e}`,o=zo.get(i);if(o!==void 0)return o;let a=Vp(e);if(!a||a.a===0)return zo.set(i,n),n;let[s,l,c]=Yp(a.r,a.g,a.b),h=(100-s)*((100-t)/100)+t,[u,f,d]=Gp(h,l,c),p=a.a>=1?`rgb(${u}, ${f}, ${d})`:`rgba(${u}, ${f}, ${d}, ${Math.round(a.a*1e3)/1e3})`;return zo.set(i,p),p}var Kp=new Set([\"color\",\"background-color\",\"border-color\",\"border-top-color\",\"border-right-color\",\"border-bottom-color\",\"border-left-color\",\"outline-color\",\"text-decoration-color\",\"caret-color\",\"column-rule-color\",\"fill\",\"stroke\"]),Zp=new Set([\"border\",\"border-top\",\"border-right\",\"border-bottom\",\"border-left\",\"outline\",\"column-rule\"]),Jp=/(var\\([^)]*\\)|rgba?\\([^)]*\\)|#[0-9a-fA-F]{3,8}|[a-zA-Z]+)\\s*$/;function Qp(n,t){return n&&n.replace(Jp,e=>en(e,t))}function tm(n,t){if(!n)return n;let e=n;for(let r in n){let i=n[r];if(typeof i!=\"string\"||!i)continue;let o;Kp.has(r)||r.startsWith(\"--\")&&r.endsWith(\"-color\")?o=en(i,t):Zp.has(r)&&(o=Qp(i,t)),o!==void 0&&o!==i&&(e===n&&(e={...n}),e[r]=o)}return e}var Dt;(function(n){n.html=\"http://www.w3.org/1999/xhtml\",n.svg=\"http://www.w3.org/2000/svg\",n.mathML=\"http://www.w3.org/1998/Math/MathML\"})(Dt||(Dt={}));function Wn(n){if(Jr(n))return document.createTextNode(n);if(n instanceof Node)return n;let{ns:t,tagName:e,className:r,style:i,children:o,...a}=n;if(e===\"#fragment\"){let l=document.createDocumentFragment();return o?.forEach(c=>l.appendChild(Wn(c))),l}if(e===\"#comment\")return document.createComment(o[0]);let s=t?document.createElementNS(t,e):document.createElement(e);if(r&&s.setAttribute(\"class\",r),i)if(Jr(i))s.setAttribute(\"style\",i);else for(let[l,c]of Object.entries(i))c!=null&&(l.startsWith(\"--\")||l.includes(\"-\")?s.style.setProperty(l,c):s.style[l]=c);if(a)for(let[l,c]of Object.entries(a))c!==void 0&&(s[l]=c);return o&&o.forEach(l=>s.appendChild(Wn(l))),s}function Kr(...n){return n.filter(Boolean).join(\" \")}function Ce(n){let t=n?.reviewMode;return t===\"final\"||t===\"original\"||t===\"simple\"||t===\"all\"?t:n?.renderChanges||t===\"auto\"?\"all\":\"final\"}function Zr(n){return n?.reviewMode!=null||n?.renderChanges===!0}function em(n){return n!==\"original\"}function Mr(n){return n===\"original\"}function rm(n){let t=n?.documentPart?.body??n,e=[],r=i=>{if(!i)return;if(i.type===A.Paragraph){e.push(...im(i));return}let o=Sa(i.props?.revision,i.type);if(o&&i.type!==A.Inserted&&i.type!==A.Deleted){let a=Ea(ka(i));e.push(Zl(o,a||am(i.type),!0))}for(let a of i.props?.formatRevisions??[])e.push(Jl(a));for(let a of i.children??[])r(a)};r(t);for(let i of n?.commentsPart?.comments??[]){let o=i.id==null?void 0:String(i.id);e.push({id:o,ids:o==null?[]:[o],kind:\"comment\",author:i.author||void 0,date:i.date||void 0,text:Ea(ka(i)),presentation:\"balloon\"})}return e}function nm(n,t){if(t===\"auto\"){let e=rm(n).length;return{enabled:e>0,mode:e>0?\"all\":\"final\",automatic:!0,changeCount:e}}return{enabled:t!=null,mode:Ce({reviewMode:t??void 0}),automatic:!1,changeCount:0}}function im(n){let t=[],e=null,r=()=>{if(!e)return;let s=Ea(e.text);(s||e.structural)&&t.push(Zl(e.revision,s||\"\\u6BB5\\u843D\\u6807\\u8BB0\",e.structural,e.ids)),e=null},i=(s,l,c=!1)=>{let h=s.id;!e||wl(e.revision)!==wl(s)?(r(),e={revision:s,ids:h==null?[]:[h],text:\"\",structural:c}):(h!=null&&!e.ids.includes(h)&&e.ids.push(h),e.structural||(e.structural=c)),e.text+=l},o=s=>{let l=s.props?.formatRevisions??[];if(l.length){r();for(let c of l)t.push(Jl(c))}};o(n);for(let s of n.props?.paragraphMarkRevisions??[]){let l=Sa(s,s?.kind===\"delete\"?A.Deleted:A.Inserted);l&&i(l,\"\",l.kind===\"delete\"||l.kind===\"move-from\")}let a=(s,l)=>{if(!s)return;o(s);let c=Sa(s.props?.revision,s.type),h=c?[...l,c]:l,u=om(s);if(u!=null){let f=h[h.length-1];f?i(f,u):u.length&&r();return}for(let f of s.children??[])a(f,h)};for(let s of n.children??[])a(s,[]);return r(),t}function Sa(n,t){if(!n)return null;let e=mm(n.kind,t);return e!==\"insert\"&&e!==\"delete\"&&e!==\"move-from\"&&e!==\"move-to\"?null:{id:n.id==null?void 0:String(n.id),kind:e,author:n.author||void 0,date:n.date||void 0}}function Zl(n,t,e=!1,r){let i=Ql(r??(n.id==null?[]:[n.id]));return{id:i[0],ids:i,kind:n.kind,author:n.author,date:n.date,text:t||(e?\"\\u7ED3\\u6784\\u4FEE\\u8BA2\":\"\"),presentation:n.kind===\"insert\"||n.kind===\"move-to\"?\"inline\":\"balloon\"}}function Jl(n){let t=n?.id==null?void 0:String(n.id),e=sm(n?.formatChanges);return{id:t,ids:t==null?[]:[t],kind:\"format\",author:n?.author||void 0,date:n?.date||void 0,text:lm(e,n?.kind),presentation:\"balloon\",formatChanges:e}}function om(n){return n.type===A.Text||n.type===A.DeletedText?n.text??\"\":n.type===A.Tab||n.type===A.PositionalTab?\"\t\":n.type===A.Break?`\n`:n.type===A.NoBreakHyphen?\"\\u2011\":null}function wl(n){return[n.kind,n.author??\"\",n.date??\"\"].join(\"\\0\")}function Ea(n){return String(n??\"\").replace(/[\\u2060\\u200b]/g,\"\").replace(/[ \\t]+\\n/g,`\n`).trim()}function am(n){switch(n){case A.Row:return\"\\u8868\\u683C\\u884C\";case A.Cell:return\"\\u8868\\u683C\\u5355\\u5143\\u683C\";case A.Table:return\"\\u8868\\u683C\";case A.Paragraph:return\"\\u6BB5\\u843D\\u6807\\u8BB0\";default:return\"\\u7ED3\\u6784\\u4FEE\\u8BA2\"}}function sm(n){return Array.isArray(n)?n.filter(t=>t&&t.property).map(t=>({property:String(t.property),before:t.before==null?void 0:String(t.before),after:t.after==null?void 0:String(t.after)})):[]}function lm(n,t){if(!n.length)return Tl(t);let e=n.map(r=>cm(r)).filter(Boolean);return Ql(e).join(\"\\uFF1B\")||Tl(t)}function cm(n){let t=um(n.after);switch(n.property){case\"u\":return t==null||t===\"none\"||t===\"0\"||t===\"false\"?\"\\u65E0\\u4E0B\\u5212\\u7EBF\":hm(t);case\"b\":return vi(t)?\"\\u52A0\\u7C97\":\"\\u53D6\\u6D88\\u52A0\\u7C97\";case\"i\":return vi(t)?\"\\u503E\\u659C\":\"\\u53D6\\u6D88\\u503E\\u659C\";case\"strike\":return vi(t)?\"\\u5220\\u9664\\u7EBF\":\"\\u53D6\\u6D88\\u5220\\u9664\\u7EBF\";case\"dstrike\":return vi(t)?\"\\u53CC\\u5220\\u9664\\u7EBF\":\"\\u53D6\\u6D88\\u53CC\\u5220\\u9664\\u7EBF\";case\"color\":return t?`\\u5B57\\u4F53\\u989C\\u8272 ${vl(t)}`:\"\\u81EA\\u52A8\\u5B57\\u4F53\\u989C\\u8272\";case\"highlight\":return t&&t!==\"none\"?`\\u7A81\\u51FA\\u663E\\u793A ${t}`:\"\\u65E0\\u7A81\\u51FA\\u663E\\u793A\";case\"sz\":case\"szCs\":return t&&!Number.isNaN(Number(t))?`\\u5B57\\u53F7 ${Number(t)/2} \\u78C5`:\"\\u5B57\\u53F7\\u5DF2\\u66F4\\u6539\";case\"rFonts\":return t?`\\u5B57\\u4F53 ${fm(t)}`:\"\\u4F7F\\u7528\\u9ED8\\u8BA4\\u5B57\\u4F53\";case\"jc\":return`\\u5BF9\\u9F50\\u65B9\\u5F0F ${dm(t)}`;case\"spacing\":return\"\\u6BB5\\u843D\\u95F4\\u8DDD\\u5DF2\\u66F4\\u6539\";case\"ind\":return\"\\u6BB5\\u843D\\u7F29\\u8FDB\\u5DF2\\u66F4\\u6539\";case\"shd\":return t?`\\u5E95\\u7EB9 ${vl(t)}`:\"\\u65E0\\u5E95\\u7EB9\";case\"vertAlign\":return t===\"superscript\"?\"\\u4E0A\\u6807\":t===\"subscript\"?\"\\u4E0B\\u6807\":\"\\u57FA\\u7EBF\\u5BF9\\u9F50\";default:return pm(n.property,t)}}function um(n){return n==null?void 0:/(?:^|\\|)val=([^|]+)/.exec(n)?.[1]??n}function vi(n){return n==null||n===\"\"||n===\"1\"||n===\"true\"||n===\"on\"}function hm(n){switch(n){case\"single\":return\"\\u5355\\u4E0B\\u5212\\u7EBF\";case\"double\":return\"\\u53CC\\u4E0B\\u5212\\u7EBF\";case\"words\":return\"\\u4EC5\\u5B57\\u8BCD\\u4E0B\\u5212\\u7EBF\";case\"wave\":case\"wavyDouble\":case\"wavyHeavy\":return\"\\u6CE2\\u6D6A\\u4E0B\\u5212\\u7EBF\";default:return\"\\u4E0B\\u5212\\u7EBF\"}}function dm(n){switch(n){case\"center\":return\"\\u5C45\\u4E2D\";case\"right\":case\"end\":return\"\\u53F3\\u5BF9\\u9F50\";case\"both\":case\"distribute\":return\"\\u4E24\\u7AEF\\u5BF9\\u9F50\";default:return\"\\u5DE6\\u5BF9\\u9F50\"}}function vl(n){return/(?:val|fill)=([^|]+)/.exec(n)?.[1]??n}function fm(n){let t=n.split(\"|\").map(r=>r.split(\"=\")).filter(r=>r.length===2);return(t.find(([r])=>r===\"eastAsia\")??t.find(([r])=>r===\"ascii\")??t[0])?.[1]??n}function pm(n,t){let r={caps:\"\\u5168\\u90E8\\u5927\\u5199\",smallCaps:\"\\u5C0F\\u578B\\u5927\\u5199\\u5B57\\u6BCD\",vanish:\"\\u9690\\u85CF\\u6587\\u5B57\",keepNext:\"\\u4E0E\\u4E0B\\u6BB5\\u540C\\u9875\",keepLines:\"\\u6BB5\\u4E2D\\u4E0D\\u5206\\u9875\",pageBreakBefore:\"\\u6BB5\\u524D\\u5206\\u9875\",tblBorders:\"\\u8868\\u683C\\u8FB9\\u6846\",tcBorders:\"\\u5355\\u5143\\u683C\\u8FB9\\u6846\",tblW:\"\\u8868\\u683C\\u5BBD\\u5EA6\",tcW:\"\\u5355\\u5143\\u683C\\u5BBD\\u5EA6\"}[n]??\"\\u683C\\u5F0F\";return t&&![\"true\",\"1\"].includes(t)?`${r} ${t}`:r}function Tl(n){switch(n){case\"paragraph-format\":return\"\\u6BB5\\u843D\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"table-format\":return\"\\u8868\\u683C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"row-format\":return\"\\u8868\\u683C\\u884C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"cell-format\":return\"\\u5355\\u5143\\u683C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";default:return\"\\u5B57\\u7B26\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\"}}function Ql(n){return[...new Set(n.filter(t=>t!=null&&t!==\"\"))]}function Fn(n){let t=[\"#c2410c\",\"#2563eb\",\"#7c3aed\",\"#0f766e\",\"#be123c\",\"#4d7c0f\",\"#a21caf\",\"#0369a1\"],e=String(n||\"Unknown\"),r=2166136261;for(let i=0;i<e.length;i++)r^=e.charCodeAt(i),r=Math.imul(r,16777619);return t[(r>>>0)%t.length]}function mm(n,t){return n===\"insert\"||n===\"delete\"||n===\"move-from\"||n===\"move-to\"?n:t===A.Deleted?\"delete\":\"insert\"}function ka(n){return n.type===A.Text||n.type===A.DeletedText?n.text??\"\":n.type===A.Tab||n.type===A.PositionalTab?\"\t\":n.type===A.Break?`\n`:(n.children??[]).map(ka).join(\"\").trim()}var gm=/[\\u0000-\\u0020\\u007f-\\u009f]+/g,bm=/^[a-z][a-z0-9+.-]*:/i,ym=/^(?:https?|mailto|tel):/i;function xm(n){let t=String(n??\"\").trim().replace(gm,\"\");return t?t.startsWith(\"#\")?t:t.startsWith(\"//\")||t.includes(\"\\\\\")||bm.test(t)&&!ym.test(t)?null:t:null}function wm(n,t){let e=!1,r=null,i=new Set,o=()=>{e=!1,r=null};for(let s of n){if(s.type!==A.Paragraph){o();continue}let l=s,c=!1,h=u=>{if(!t(u))switch(u.type){case A.Break:let f=u.break;f===\"page\"?(e=!0,r=null,c=!0):f===\"lastRenderedPageBreak\"?(c=!0,e?(i.add(u),r=u):r&&(i.delete(r),r=null),e=!1):o();break;case A.BookmarkStart:case A.BookmarkEnd:break;case A.Run:case A.Hyperlink:(u.children??[]).forEach(h);break;case A.Text:case A.DeletedText:u.text&&o();break;default:o()}};(l.children??[]).forEach(h),(!c||l.sectionProps)&&o()}if(!i.size)return n;let a=s=>{if(i.has(s))return null;if(!s.children?.length)return s;let l=!1,c=[];for(let h of s.children){let u=a(h);l||(l=u!==h),u&&c.push(u)}return l&&c.length===0&&(s.type===A.Run||s.type===A.Hyperlink)?null:l?{...s,children:c}:s};return n.map(a)}var Ti=[\"http://schemas.openxmlformats.org/drawingml/2006/chart\",\"http://purl.oclc.org/ooxml/drawingml/chart\"],Yo=[\"http://schemas.openxmlformats.org/drawingml/2006/main\",\"http://purl.oclc.org/ooxml/drawingml/main\"],yr=new WeakMap;function vm(n){let t=new Set,e=[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root], [data-docx-comment-layer]\"))];for(let r of e){let i=yr.get(r);i&&t.add(i),yr.delete(r)}for(let r of t)r.disposeLayout()}async function Hi(n,t=Hn(n)){je(n,t);let e=new Set;for(let r of[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root]\"))]){let i=yr.get(r);i&&e.add(i)}for(let r of e)je(n,t),await r.prepareLayout(n,t);je(n,t);for(let r of[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root]\"))]){let i=yr.get(r);i?.shouldRunDynamicPagination()&&r.classList.contains(`${i.className}-wrapper`)&&i.scheduleDynamicPagination(r,t)}}var Ui=class n{constructor(){this.className=\"docx\",this.styleMap={},this.currentPart=null,this.currentSectionProps=null,this.currentPageNumber=1,this.currentSectionNumber=1,this.currentSectionPageNumber=1,this.totalPages=1,this.sectionPageCount=1,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.currentTableRow=null,this.repeatedTableHeaderRows=new WeakSet,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.noteNumbering=new Bn,this.renderedNoteIds=new Set,this.noteSectionIds=new Map,this.notePageIndex=1,this.dynamicNoteState=new WeakMap,this.noteContinuationOrigins=new WeakMap,this.headerFooterModels=new Map,this.pageHeaderFooterState=new WeakMap,this.currentTabs=[],this.anchorLayouts=new Map,this.currentParagraph=null,this.currentParagraphTabIndex=0,this.currentParagraphTabCount=0,this.commentMap={},this.commentLayer=null,this.commentPresentations=new Map,this.renderingComment=!1,this.hyperlinkDepth=0,this.layoutGenerations=new Map,this.bookmarkTextMap={},this.bookmarkIdToName={},this.tocEntries=[],this.fieldSeqCounters={},this.fieldSetValues={},this.headingIndex=0,this.tasks=[],this.postRenderTasks=[],this.compatibleTextBoxSpacing=!1,this.h=Wn,this.darkModeVarNames=new Map,this.darkModePrintReset={}}async render(t,e){this.document=t,this.options=e,this.className=e.className,this.rootSelector=e.inWrapper?`.${this.className}-wrapper`:\":root\",this.h=e.h??Wn,this.styleMap=null,this.tasks=[],this.postRenderTasks=[],this.commentLayer=null,this.commentPresentations.clear(),this.renderingComment=!1,this.currentTabs=[],this.currentFootnoteIds=[],this.currentEndnoteIds=[],this.footnoteMap={},this.endnoteMap={},this.noteNumbering=new Bn,this.renderedNoteIds=new Set,this.repeatedTableHeaderRows=new WeakSet,this.noteSectionIds=new Map,this.notePageIndex=1,this.dynamicNoteState=new WeakMap,this.noteContinuationOrigins=new WeakMap,this.anchorLayouts.clear(),this.headerFooterModels.clear(),this.pageHeaderFooterState=new WeakMap,this.fieldSeqCounters={},this.fieldSetValues={},this.headingIndex=0,this.darkModeVarNames=new Map,this.darkModePrintReset={},this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight);let r=[...this.renderDefaultStyle()];if(t.themePart&&r.push(...this.renderTheme(t.themePart)),t.stylesPart!=null){let o=this.cloneRenderData(t.stylesPart.styles);this.styleMap=this.processStyles(o),r.push(...this.renderStyles(o))}t.numberingPart&&(this.prodessNumberings(t.numberingPart.domNumberings),r.push(...await this.renderNumbering(t.numberingPart.domNumberings))),t.footnotesPart&&(this.footnoteMap=ur(this.cloneRenderData(t.footnotesPart.notes),o=>o.id)),t.endnotesPart&&(this.endnoteMap=ur(this.cloneRenderData(t.endnotesPart.notes),o=>o.id)),t.settingsPart&&(this.defaultTabSize=t.settingsPart.settings?.defaultTabStop),!e.ignoreFonts&&t.fontTablePart&&r.push(...await this.renderFontTable(t.fontTablePart));var i=await this.renderSections(this.cloneRenderData(t.documentPart.body));if(this.options.inWrapper){let o=this.renderWrapper(i);this.commentLayer&&o.appendChild(this.commentLayer.root),r.push(o),this.shouldRunDynamicPagination()&&this.scheduleDynamicPagination(o)}else r.push(...i),this.commentLayer&&(this.commentLayer.root.style.position=\"fixed\",r.push(this.commentLayer.root));r.push(...this.renderDarkModePrintReset()),this.commentHighlight&&e.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),await Promise.allSettled(this.tasks),this.postRenderTasks.forEach(o=>o()),this.commentLayer&&yr.set(this.commentLayer.root,this);for(let o of r)[\"section\",\"div\"].includes(o.tagName?.toLowerCase())&&!o.dataset?.docxCommentLayer&&(o.dataset.docxLayoutRoot=\"true\",yr.set(o,this));return r}renderTheme(t){let e={},r=t.theme?.fontScheme,i=this.documentThemeLanguages();r&&(r.majorFont&&(e[\"--docx-majorHAnsi-font\"]=this.themeFontFamily(r.majorFont,\"latin\",i.latin),e[\"--docx-majorEastAsia-font\"]=this.themeFontFamily(r.majorFont,\"eastAsia\",i.eastAsia),e[\"--docx-majorBidi-font\"]=this.themeFontFamily(r.majorFont,\"complexScript\",i.bidi),e[\"--docx-majorCs-font\"]=e[\"--docx-majorBidi-font\"],this.addThemeScriptFontVariables(e,\"major\",r.majorFont)),r.minorFont&&(e[\"--docx-minorHAnsi-font\"]=this.themeFontFamily(r.minorFont,\"latin\",i.latin),e[\"--docx-minorEastAsia-font\"]=this.themeFontFamily(r.minorFont,\"eastAsia\",i.eastAsia),e[\"--docx-minorBidi-font\"]=this.themeFontFamily(r.minorFont,\"complexScript\",i.bidi),e[\"--docx-minorCs-font\"]=e[\"--docx-minorBidi-font\"],this.addThemeScriptFontVariables(e,\"minor\",r.minorFont)));let o=t.theme?.colorScheme,a=[];if(o)for(let[l,c]of Object.entries(o.colors)){let h=`--docx-${l}-color`;e[h]=`#${c}`,a.push(h)}let s=this.styleToString(`.${this.className}`,e);if(this.options.darkMode&&a.length){let l=a.map(c=>` ${c}: ${e[c]};\\r\n`).join(\"\");s+=`@media print {\\r\n.${this.className} {\\r\n${l}}\\r\n}\\r\n`}return[this.h({tagName:\"#comment\",children:[\"docxjs document theme values\"]}),this.h({tagName:\"style\",children:[s]})]}documentThemeLanguages(){let t={latin:\"\",eastAsia:\"\",bidi:\"\"},i=(this.document.stylesPart?.styles??[]).filter(o=>o.id==null||o.isDefault&&o.target==\"span\").flatMap(o=>o.styles??[]).find(o=>o.target==\"span\")?.values??{};return t.latin=i.$lang??\"\",t.eastAsia=i[\"$lang-eastAsia\"]??t.latin,t.bidi=i[\"$lang-bidi\"]??t.latin,t}addThemeScriptFontVariables(t,e,r){let i=new Set([\"Hans\",\"Hant\",\"Jpan\",\"Hang\"]);for(let o of Object.keys(r.scriptTypefaces??{})){let a=i.has(o)?\"eastAsia\":\"complexScript\",s=this.themeFontFamily(r,a,\"\",o);t[`--docx-${e}EastAsia-font-${o}`]=s,t[`--docx-${e}Bidi-font-${o}`]=s,t[`--docx-${e}Cs-font-${o}`]=s}}themeFontFamily(t,e,r,i=\"\"){let o=e==\"latin\"?t.latinTypeface:e==\"eastAsia\"?t.eaTypeface:t.csTypeface,a=i||Ei(r),s=a?t.scriptTypefaces?.[a]:\"\",l=o?.trim()||s?.trim()||t.latinTypeface?.trim();if(!l)return e==\"eastAsia\"?\"sans-serif\":\"serif\";let c=[br(l)];return e==\"eastAsia\"&&c.push(...jo(l,a).slice(1)),[...new Set(c)].join(\", \")}async renderFontTable(t){let e=[];for(let r of t.fonts)for(let i of r.embedFontRefs)try{let o=await this.document.loadFont(i.id,i.key),a={\"font-family\":br(r.name),src:`url(${o})`};(i.type==\"bold\"||i.type==\"boldItalic\")&&(a[\"font-weight\"]=\"bold\"),(i.type==\"italic\"||i.type==\"boldItalic\")&&(a[\"font-style\"]=\"italic\"),e.push(this.h({tagName:\"#comment\",children:[`docxjs ${r.name} font`]})),e.push(this.h({tagName:\"style\",children:[this.styleToString(\"@font-face\",a)]}))}catch{this.options.debug&&console.warn(`Can't load font with id ${i.id} and key ${i.key}`)}return e}processStyleName(t){return t?`${this.className}_${Rd(t)}`:this.className}processStyles(t){let e=ur(t.filter(i=>i.id!=null),i=>i.id);for(let i of t.filter(o=>o.basedOn)){var r=e[i.basedOn];if(r){i.paragraphProps=Ci({},r.paragraphProps,i.paragraphProps),i.runProps=Ci({},r.runProps,i.runProps);for(let o of r.styles){let a=i.styles.find(s=>s.target==o.target);a?this.copyStyleProperties(o.values,a.values):i.styles.push({...o,values:{...o.values}})}}else this.options.debug&&console.warn(`Can't find base style ${i.basedOn}`)}for(let i of t)i.cssName=this.processStyleName(i.id);return e}prodessNumberings(t){for(let e of t.filter(r=>r.pStyleName)){let r=this.findStyle(e.pStyleName);r?.paragraphProps?.numbering&&(r.paragraphProps.numbering.level=e.level)}}processElement(t){if(t&&t.children)for(var e of t.children)e.parent=t,e.type==A.Table?this.processTable(e):this.processElement(e)}processTable(t){let e=t.children??[],r=t.columns?.length??0;for(let a of e){let s=a.gridBefore??0;for(let l of a.children??[])s+=l.span??1;r=Math.max(r,s+(a.gridAfter??0))}let i=Math.max(t.rowBandSize??1,1),o=Math.max(t.colBandSize??1,1);e.forEach((a,s)=>{s==0&&this.appendClassName(a,\"first-row\"),s==e.length-1&&this.appendClassName(a,\"last-row\"),this.appendClassName(a,Math.floor(s/i)%2==0?\"odd-row\":\"even-row\");let l=a.gridBefore??0;for(let c of a.children??[]){c.cssStyle=this.copyStyleProperties(t.cellStyle,c.cssStyle,[\"border-left\",\"border-right\",\"border-top\",\"border-bottom\",\"padding-left\",\"padding-right\",\"padding-top\",\"padding-bottom\"]);let h=c.span??1,u=l+h-1;l==0&&this.appendClassName(c,\"first-col\"),r>0&&u>=r-1&&this.appendClassName(c,\"last-col\"),this.appendClassName(c,Math.floor(l/o)%2==0?\"odd-col\":\"even-col\"),this.processElement(c),l+=h}})}collectDocumentMetadata(t){this.bookmarkTextMap={},this.bookmarkIdToName={},this.tocEntries=[];let e={},r=i=>{if(!(i.type==A.Deleted&&!Mr(Ce(this.options)))){switch(i.type){case A.BookmarkStart:{let o=i;o.id&&o.name&&(this.bookmarkIdToName[o.id]=o.name,e[o.id]=[]);break}case A.BookmarkEnd:{let o=i,a=this.bookmarkIdToName[o.id];a&&e[o.id]&&(this.bookmarkTextMap[a]=e[o.id].join(\"\").trim(),delete e[o.id]);break}case A.Text:for(let o of Object.keys(e))e[o].push(i.text??\"\");break;case A.DeletedText:if(Mr(Ce(this.options)))for(let o of Object.keys(e))e[o].push(i.text??\"\");break}for(let o of i.children??[])r(o)}};for(let i of t.children??[])r(i);for(let[i,o]of Object.entries(e)){let a=this.bookmarkIdToName[i];a&&(this.bookmarkTextMap[a]=o.join(\"\").trim())}for(let i of t.children??[])this.collectTocEntries(i)}collectTocEntries(t){if(!(t.type==A.Deleted&&!Mr(Ce(this.options)))){if(t.type==A.Paragraph){let e=t,r=this.findStyle(e.styleName),i=this.extractText(e).trim(),o=e.outlineLevel??r?.paragraphProps?.outlineLevel;if(o==null&&e.styleName){let a=/heading(\\d+)|(?:^|[-_ ])h(\\d+)$/i.exec(e.styleName);a&&(o=parseInt(a[1]??a[2],10)-1)}if(i&&o!=null&&o>=0&&o<9){let a=this.findFirstBookmark(e),s=a?.name&&!a.name.startsWith(\"_\")?a.name:`${this.className}-heading-${++this.headingIndex}`;e.props={...e.props??{},anchorId:s},this.tocEntries.push({level:o+1,text:i,id:s})}}for(let e of t.children??[])this.collectTocEntries(e)}}findFirstBookmark(t){if(t.type==A.BookmarkStart)return t;for(let e of t.children??[]){let r=this.findFirstBookmark(e);if(r)return r}return null}extractText(t){switch(t.type){case A.Text:return t.text??\"\";case A.DeletedText:return Mr(Ce(this.options))?t.text??\"\":\"\";case A.Deleted:return Mr(Ce(this.options))?(t.children??[]).map(e=>this.extractText(e)).join(\"\"):\"\";case A.Inserted:return Ce(this.options)==\"original\"?\"\":(t.children??[]).map(e=>this.extractText(e)).join(\"\");case A.Tab:case A.PositionalTab:return\"\t\";case A.NoBreakHyphen:return\"\\u2011\";case A.SoftHyphen:return\"\";case A.Break:return`\n`;case A.Instruction:case A.ComplexField:return\"\"}return(t.children??[]).map(e=>this.extractText(e)).join(\"\")}appendClassName(t,e){t.className=[...new Set(Kr(t.className,e).split(/\\s+/).filter(Boolean))].join(\" \")}copyStyleProperties(t,e,r=null){if(!t)return e;e==null&&(e={}),r==null&&(r=Object.getOwnPropertyNames(t));for(var i of r)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i]);return e}createPageElement(t,e,r){let i={...r},o=null,a=null;if(e){if(e.pageMargins&&(i.paddingLeft=this.addSize(e.pageMargins.left,e.pageMargins.gutter),i.paddingRight=e.pageMargins.right,i.paddingTop=e.pageMargins.top,i.paddingBottom=e.pageMargins.bottom),e.pageSize){let l=e.pageSize.width,c=e.pageSize.height;if(e.pageSize.orientation==\"landscape\"){let u=this.parseCssLengthValue(l),f=this.parseCssLengthValue(c);u!=null&&f!=null&&u<f&&([l,c]=[c,l])}o=l,a=c,this.options.ignoreWidth||(i.width=l),(!this.options.ignoreHeight||!this.options.breakPages)&&(i.minHeight=c,!this.options.ignoreHeight&&this.options.breakPages&&this.options.fixedPageHeight&&(i.height=c))}e.pageBorders&&(this.applyPageBorder(i,\"top\",e.pageBorders.top),this.applyPageBorder(i,\"right\",e.pageBorders.right),this.applyPageBorder(i,\"bottom\",e.pageBorders.bottom),this.applyPageBorder(i,\"left\",e.pageBorders.left))}let s=this.h({tagName:\"section\",className:t,style:i});return i.paddingLeft&&this.setCssStyle(s,\"--docx-page-padding-left\",i.paddingLeft),i.paddingTop&&this.setCssStyle(s,\"--docx-page-padding-top\",i.paddingTop),o&&this.setCssStyle(s,\"--docx-page-width\",o),a&&this.setCssStyle(s,\"--docx-page-height\",a),s}addSize(t,e){return t?!e||e==\"0.00pt\"||e==\"0px\"?t:`calc(${t} + ${e})`:e}parseCssLengthValue(t){if(!t)return null;let e=/^(-?\\d+(?:\\.\\d+)?)/.exec(t);return e?parseFloat(e[1]):null}applyPageBorder(t,e,r){if(!r)return;let i=this.borderTypeToCss(r.type);t[`border-${e}`]=i==\"none\"?\"none\":`${r.size??\"1px\"} ${i} ${this.borderColor(r.color)}`}borderTypeToCss(t){switch(t){case\"nil\":case\"none\":return\"none\";case\"double\":case\"triple\":return\"double\";case\"dashed\":case\"dashSmallGap\":return\"dashed\";case\"dotted\":case\"dotDash\":case\"dotDotDash\":return\"dotted\"}return\"solid\"}borderColor(t){return!t||t==\"auto\"?\"var(--docx-auto-color, black)\":/^[0-9a-f]{6}$/i.test(t)?`#${t}`:t}createSectionContent(t){let e={},r=t.columns?.numberOfColumns??t.columns?.columns?.length,i=t.docGrid?.type==\"linesAndChars\"||t.docGrid?.type==\"snapToChars\";return t.docGrid&&(t.docGrid.linePitch&&(e[\"--docx-doc-grid-line-pitch\"]=t.docGrid.linePitch),i&&t.docGrid.charSpace&&(e.letterSpacing=t.docGrid.charSpace)),this.document.settingsPart?.settings?.kinsoku&&(e.lineBreak=\"strict\",e.wordBreak=\"keep-all\"),this.document.settingsPart?.settings?.overflowPunctuation&&(e.hangingPunctuation=\"allow-end\"),this.document.settingsPart?.settings?.topLinePunctuation&&(e[\"text-spacing-trim\"]=\"space-start\"),(this.document.settingsPart?.settings?.autoSpaceDE||this.document.settingsPart?.settings?.autoSpaceDN)&&(e[\"text-autospace\"]=[this.document.settingsPart?.settings?.autoSpaceDE?\"ideograph-alpha\":null,this.document.settingsPart?.settings?.autoSpaceDN?\"ideograph-numeric\":null].filter(Boolean).join(\" \")),t.columns&&r&&(r>1||t.columns.columns?.length>0)&&(e.columnCount=`${r}`,e.columnGap=t.columns.space,!t.columns.equalWidth&&t.columns.columns?.length>0&&(e.columnWidth=t.columns.columns[0].width,e.columnGap=t.columns.columns[0].space??e.columnGap),t.columns.separator&&(e.columnRule=\"1px solid black\")),this.h({tagName:\"article\",style:e})}async renderSections(t){let e=[];this.processElement(t),this.collectDocumentMetadata(t);let r=this.splitBySection(this.reviewParagraphs(t.children),t.props);this.resolveSectionHeaderFooterReferences(r);let i=this.groupByPageBreaks(r);if(t.backgroundImage){let p=await this.document.loadDocumentImage(t.backgroundImage.id,this.document.documentPart,this.options.externalResourcePolicy).catch(()=>null);p&&(t={...t,cssStyle:{...t.cssStyle,\"background-image\":`url(${JSON.stringify(p)})`,\"background-repeat\":t.backgroundImage.type==\"tile\"?\"repeat\":\"no-repeat\",\"background-position\":\"center\",\"background-size\":t.backgroundImage.type==\"tile\"?\"auto\":\"100% 100%\"}})}let o=null,a=0,s=0,l=new Map,c=new Map,h=new Map,u=new Map,f=p=>{if(!h.has(p)){let m=++s;h.set(p,`${this.className}-section-${m}`),u.set(p,m)}};for(let p of i){let m=p[0].sectProps;f(m),l.set(m,(l.get(m)??0)+1)}this.totalPages=i.length;for(let p=0,m=i.length;p<m;p++){this.currentFootnoteIds=[],this.notePageIndex=p+1;let b=i[p][0].sectProps,T=b;f(b);let S=o!=b;a=S&&b?.pageNumber?.start!=null?b.pageNumber.start:a+1,this.currentPageNumber=a,this.currentSectionNumber=u.get(b)??1,this.currentSectionProps=b,this.currentSectionPageNumber=(c.get(b)??0)+1,this.sectionPageCount=l.get(b)??1,c.set(b,this.currentSectionPageNumber);let I=this.createPageElement(this.className,b,t.cssStyle);I.dataset.docxSection=h.get(b),I.dataset.docxSectionNumber=`${this.currentSectionNumber}`,I.dataset.docxSectionPageNumber=`${this.currentSectionPageNumber}`,I.dataset.docxSectionPageCount=`${this.sectionPageCount}`,I.dataset.docxPageNumber=`${a}`,S&&b?.pageNumber?.start!=null&&(I.dataset.docxPageStart=`${b.pageNumber.start}`),this.options.renderHeaders&&this.renderHeaderFooter(b.headerRefs,b,a,S,I);for(let O of i[p]){this.currentSectionProps=O.sectProps;var d=this.createSectionContent(O.sectProps);O.columnBreak&&(d.style.breakBefore=\"column\"),this.renderElements(O.elements,d),I.appendChild(d),b=O.sectProps}if(this.options.renderFootnotes){let O=this.renderNotes(this.currentFootnoteIds,this.footnoteMap,this.document.footnotesPart,\"footnote\");O&&I.appendChild(O)}if(this.options.renderEndnotes&&p==m-1){let O=this.renderNotes(this.currentEndnoteIds,this.endnoteMap,this.document.endnotesPart,\"endnote\");O&&I.appendChild(O)}this.currentSectionProps=b,this.options.renderFooters&&this.renderHeaderFooter(b.footerRefs,b,a,S,I),this.pageHeaderFooterState.set(I,{headerProps:T,footerProps:b,headerId:this.selectHeaderFooterReference(T.headerRefs,T,a,S)?.id,footerId:this.selectHeaderFooterReference(b.footerRefs,b,a,S)?.id}),e.push(I),await this.yieldDuringRender(p+1,m),o=b}return e}resolveSectionHeaderFooterReferences(t){let e=new Map,r=null,i=(o,a)=>{let s=new Map((a??[]).map(l=>[l.type,l]));for(let l of o??[])s.set(l.type,l);return Array.from(s.values())};for(let o of t){let a=o.sectProps,s=e.get(a);s||(s={...a,headerRefs:i(a.headerRefs,r?.headerRefs),footerRefs:i(a.footerRefs,r?.footerRefs)},e.set(a,s),r=s),o.sectProps=s}}selectHeaderFooterReference(t,e,r,i){let o=!!this.document.settingsPart?.settings?.evenAndOddHeaders,a=e.titlePage&&i?\"first\":o&&r%2==0?\"even\":\"default\";return t?.find(s=>s.type==a)}renderHeaderFooter(t,e,r,i,o){let a=this.selectHeaderFooterReference(t,e,r,i);var s=a&&this.document.findPartByRelId(a.id,this.document.documentPart);if(s?.rootElement){this.currentPart=s;let l=this.headerFooterModels.get(s.path);l||(l=this.cloneRenderData(s.rootElement),this.processElement(l),this.headerFooterModels.set(s.path,l));let[c]=this.renderElements([l],o);e?.pageMargins&&(s.rootElement.type===A.Header?(c.style.marginTop=`calc(${e.pageMargins.header} - ${e.pageMargins.top})`,c.style.minHeight=`calc(${e.pageMargins.top} - ${e.pageMargins.header})`):s.rootElement.type===A.Footer&&(c.style.marginBottom=`calc(${e.pageMargins.footer} - ${e.pageMargins.bottom})`,c.style.minHeight=`calc(${e.pageMargins.bottom} - ${e.pageMargins.footer})`)),this.currentPart=null}else s&&this.options.debug&&console.warn(`docx-preview: skipping ${s.path} because its parsed root element is missing`)}isPageBreakElement(t){return t.type!=A.Break?!1:t.break==\"lastRenderedPageBreak\"?!this.options.ignoreLastRenderedPageBreak:t.break==\"page\"}isPageBreakSection(t,e){return!t||!e?!1:t.pageSize?.orientation!=e.pageSize?.orientation||t.pageSize?.width!=e.pageSize?.width||t.pageSize?.height!=e.pageSize?.height}splitBySection(t,e){this.options.breakPages&&!this.options.ignoreLastRenderedPageBreak&&(t=wm(t,s=>this.isHiddenRevisionForPagination(s)));let r={sectProps:null,elements:[],pageBreak:!1,columnBreak:!1,startsAfterExplicitPageBreak:!1},i=[r],o=(s=!1,l=!1,c=!1)=>{if(r.elements.length==0&&r.sectProps==null){r.pageBreak||(r.pageBreak=s),r.columnBreak||(r.columnBreak=l);return}r.pageBreak||(r.pageBreak=s),r.columnBreak||(r.columnBreak=l),r={sectProps:null,elements:[],pageBreak:!1,columnBreak:!1,startsAfterExplicitPageBreak:c},i.push(r)};for(let s of t){if(s.type!=A.Paragraph){if(s.type==A.Table)for(let f of this.splitTableByPageBreaks(s))f.table.children?.length&&r.elements.push(f.table),f.breakAfter&&o(!0,!1,!0);else r.elements.push(s);continue}let l=s,c=this.findStyle(l.styleName),h=l.pageBreakBefore??c?.paragraphProps?.pageBreakBefore;this.options.breakPages&&h&&r.elements.length>0&&o(!0,!1,!0);let u=this.splitParagraphByPageBreaks(l);for(let f of u){r.elements.push(f.paragraph);let d=f.paragraph.sectionProps;d&&(r.sectProps=d),(f.breakAfter||d)&&(r.endsWithExplicitPageBreak||(r.endsWithExplicitPageBreak=f.explicitPageBreak===!0),o(f.breakAfter||d&&tf(d.type),d&&ef(d.type),f.explicitPageBreak===!0))}}if(i=i.filter(s=>s.elements.length>0),i.length==0)return[{sectProps:e,elements:[],pageBreak:!1,columnBreak:!1}];let a=null;for(let s=i.length-1;s>=0;s--)i[s].sectProps==null?i[s].sectProps=a??e:a=i[s].sectProps;return i}hasPageBreakElement(t){return this.isHiddenRevisionForPagination(t)?!1:this.isPageBreakElement(t)?!0:t.children?.some(e=>this.hasPageBreakElement(e))??!1}splitTableByPageBreaks(t){if(!this.options.breakPages||!t.children?.length)return[{table:t,breakAfter:!1}];if(!t.children.some(s=>this.hasPageBreakElement(s)))return[{table:t,breakAfter:!1}];let e=t.children,r=[];for(let s of e){if(!s.isHeader)break;r.push(s)}let i=[],o=[],a=s=>{if(o.length==0&&i.length>0)return;let l=i.length>0,c=o;l&&r.length>0&&!o.some(h=>h.isHeader)&&(c=[...r.map(u=>{let f={...u};return this.repeatedTableHeaderRows.add(f),f}),...o]),i.push({table:{...t,children:c},breakAfter:s}),o=[]};for(let s of e)o.push(s),this.hasPageBreakElement(s)&&a(!0);return a(!1),i.length>0?i:[{table:t,breakAfter:!1}]}isHiddenRevisionForPagination(t){let e=Ce(this.options),r=e===\"all\"&&this.options.reviewPresentation===\"inline\";return t.type===A.Deleted&&!Mr(e)&&!r||t.type===A.Inserted&&!em(e)}hasOnlyHiddenRevisionTail(t){let e=!1,r=i=>this.isHiddenRevisionForPagination(i)?(e=!0,!0):i.type===A.BookmarkStart||i.type===A.BookmarkEnd?!0:[A.Run,A.Hyperlink,A.Inserted,A.Deleted].includes(i.type)&&i.children?.length>0?i.children.every(r):!1;return t.every(r)&&e}splitElementByPageBreaks(t){if(this.isHiddenRevisionForPagination(t))return[{element:t}];if(this.isPageBreakElement(t))return[{breakAfter:!0,explicitPageBreak:t.break===\"page\"}];if(!t.children?.length)return[{element:t}];let e=[],r={...t,children:[]},i=()=>{r.children.length>0&&e.push({element:r}),r={...t,children:[]}};for(let o of t.children)for(let a of this.splitElementByPageBreaks(o))a.element&&r.children.push(a.element),a.breakAfter&&(i(),e.push({breakAfter:!0,explicitPageBreak:a.explicitPageBreak}));return i(),e.length>0?e:[{element:t}]}splitParagraphByPageBreaks(t){if(!this.options.breakPages||!t.children?.length)return[{paragraph:t,breakAfter:!1}];let e=[],r={...t,children:[]},i=(a,s=!1)=>{(r.children.length>0||e.length==0||s)&&e.push({paragraph:r,breakAfter:a,explicitPageBreak:s}),r={...t,sectionProps:null,children:[]}};for(let a of t.children)for(let s of this.splitElementByPageBreaks(a))s.element&&r.children.push(s.element),s.breakAfter&&i(!0,s.explicitPageBreak===!0);e.length>0&&this.hasOnlyHiddenRevisionTail(r.children)?e[e.length-1].paragraph.children.push(...r.children):(r.children.length>0||e.length==0)&&e.push({paragraph:r,breakAfter:!1});let o=e[e.length-1]?.paragraph;for(let a of e)a.paragraph.sectionProps=a.paragraph===o?t.sectionProps:null;if(t.props?.anchorId&&e.length>1){let a=e.find(s=>this.extractText(s.paragraph).trim())??e[0];for(let s of e)s!==a&&(s.paragraph.props={...s.paragraph.props,anchorId:void 0})}return e}styleValuesForTarget(t,e){return t?.styles?.find(r=>r.target==e)?.values}styleValue(t,e,r){return this.styleValuesForTarget(t,e)?.[r]}effectiveParagraphCssValue(t,e,r){return t.cssStyle?.[r]??this.styleValue(e,\"p\",r)}textBoxAutospace(t,e,r=i=>typeof CSS>\"u\"||typeof CSS.supports!=\"function\"||CSS.supports(\"text-autospace\",i)){let i=l=>!/^(0|false|off)$/i.test(this.effectiveParagraphCssValue(t,e,l)??\"true\"),o=i(\"--docx-auto-space-de\"),a=i(\"--docx-auto-space-dn\"),s=o&&a?\"normal\":o?\"ideograph-alpha\":a?\"ideograph-numeric\":\"no-autospace\";return r(s)?s:\"no-autospace\"}applyTextBoxFontInheritance(t,e,r){if(!this.compatibleTextBoxSpacing)return;let i=t.type==A.Paragraph?t:this.currentParagraph,o=this.findStyle(i?.styleName),a=this.document.stylesPart?.styles?.find(u=>u.id==null),s=[t.cssStyle,this.styleValuesForTarget(e,t.type==A.Paragraph?\"p\":\"span\"),i?.cssStyle,this.styleValuesForTarget(o,\"span\"),this.styleValuesForTarget(a,\"span\")],l=u=>s.find(f=>f?.[u]!=null)?.[u];if(l(\"--docx-partial-eastasia-font\")!=\"true\")return;let c=l(\"--docx-latin-font-family\"),h=l(\"font-family\");!c||!h||(this.setCssStyle(r,\"--docx-latin-font-family\",c),this.setCssStyle(r,\"font-family\",`var(--docx-latin-font-family), ${h}`))}isInsideTableCell(t){for(let e=t.parent;e;e=e.parent)if(e.type==A.Cell)return!0;return!1}paragraphUsesDocumentGrid(t,e){if(!this.currentSectionProps?.docGrid?.linePitch||this.isInsideTableCell(t)&&!this.document.settingsPart?.settings?.adjustLineHeightInTable)return!1;let i=this.effectiveParagraphCssValue(t,e,\"--docx-snap-to-grid\");return i==null||!/^(0|false|off)$/i.test(i)}setCssStyle(t,e,r){let i=t.style;typeof i.setProperty==\"function\"?i.setProperty(e,r):i[e]=r}applyDocumentGridMinimumHeight(t,e,r,i){let o=this.effectiveParagraphCssValue(t,e,\"min-height\");this.setCssStyle(r,\"min-height\",o?`max(${o}, ${i})`:i)}applyDocumentGridLinePitch(t,e,r){if(!this.paragraphUsesDocumentGrid(t,e))return;let i=this.currentSectionProps.docGrid.linePitch,o=this.effectiveParagraphCssValue(t,e,\"line-height\"),a=t.lineSpacing??e?.paragraphProps?.lineSpacing;if(o){if(a?.lineRule==\"exact\"||a?.lineRule==\"exactly\")return;let s=/^-?\\d+(?:\\.\\d+)?$/.test(o)?`calc(${o} * 1em)`:o;this.preserveGridInlineMetrics(r),this.setCssStyle(r,\"line-height\",`max(${s}, ${i})`),this.applyDocumentGridMinimumHeight(t,e,r,i);return}this.applyDocumentGridMinimumHeight(t,e,r,i)}preserveGridInlineMetrics(t){let e=/^(span|a|sub|sup|b|i|u|s|strike|strong|em)$/,r=i=>{for(let o of Array.from(i.children??[])){if(o.namespaceURI!==Dt.html||!e.test(o.localName)||!o.style)continue;let a=o.style;if(o.dataset?.docxTextScale&&a.display===\"block\"){r(o);continue}a.lineHeight||a.display&&a.display!==\"inline\"||/^(absolute|fixed)$/.test(a.position)||a.cssFloat&&a.cssFloat!==\"none\"||(a.lineHeight=\"normal\",r(o))}};r(t)}groupByPageBreaks(t){let e=[],r=null,i=[e];for(let a of t)r&&(r.pageBreak||this.isPageBreakSection(r.sectProps,a.sectProps))&&(e=[],i.push(e)),e.push(a),r=a;let o=i.filter(a=>a.length>0).filter(a=>a[0]?.startsAfterExplicitPageBreak||a.some(s=>s.endsWithExplicitPageBreak||s.elements.some(l=>this.hasPageModelContent(l))));return o.length>0?o:i.filter(a=>a.length>0).slice(0,1)}hasPageModelContent(t){if(!t||this.isHiddenRevisionForPagination(t))return!1;switch(t.type){case A.Text:case A.DeletedText:return!!t.text?.trim();case A.Break:case A.Symbol:case A.Drawing:case A.Image:case A.Table:case A.VmlPicture:case A.VmlElement:case A.MmlMath:case A.MmlMathParagraph:case A.Shape:case A.Chart:case A.SmartArt:case A.Ink:case A.AltChunk:case A.FootnoteReference:case A.EndnoteReference:return!0}return t.children?.some(e=>this.hasPageModelContent(e))??!1}async yieldDuringRender(t,e){let r=this.options.renderPageBatchSize??0;this.options.progress&&this.options.progress({phase:\"render\",current:t,total:e,message:`Rendered ${t}/${e} logical pages`}),r>0&&t%r==0&&await this.yieldToBrowser()}async yieldToBrowser(){(this.options.renderYieldEveryMs??0)<=0||await new Promise(t=>{let e=globalThis;typeof e.requestIdleCallback==\"function\"?e.requestIdleCallback(()=>t(),{timeout:Math.max(1,this.options.renderYieldEveryMs??16)}):typeof e.requestAnimationFrame==\"function\"?e.requestAnimationFrame(()=>t()):setTimeout(t,0)})}renderWrapper(t){let e=this.h({tagName:\"div\",className:this.className+\"-wrapper\",children:t});return Zr(this.options)&&(e.dataset.docxReviewEnabled=\"true\",e.dataset.docxReviewMode=Ce(this.options),e.dataset.docxReviewPresentation=this.options.reviewPresentation??\"balloon\"),e}shouldRunDynamicPagination(){return!!(this.options.breakPages&&this.options.fixedPageHeight&&!this.options.ignoreHeight&&typeof document<\"u\"&&typeof requestAnimationFrame==\"function\")}scheduleDynamicPagination(t,e=Hn(t)){!t?.isConnected||!e.isCurrent()||t.dataset.docxPaginated==\"true\"||t.dataset.docxPaginating==\"true\"||t.dataset.docxPaginationScheduled==\"true\"||(t.dataset.docxPaginationScheduled=\"true\",delete t.dataset.docxLayoutError,Un(t,this.tasks,e).then(async()=>{await this.yieldToBrowser(),t.isConnected&&e.isCurrent()&&await this.performDynamicPagination(t,e)}).catch(r=>{delete t.dataset.docxPaginating,t.isConnected&&e.isCurrent()&&(t.dataset.docxLayoutError=r?.message??\"DOCX layout failed\")}).finally(()=>{delete t.dataset.docxPaginationScheduled,t.isConnected||delete t.dataset.docxPaginating}))}async performDynamicPagination(t,e=Ai(t)){if(!t||t.dataset.docxPaginated==\"true\"||t.dataset.docxPaginating==\"true\"||!t.isConnected||!e.isCurrent())return;if(delete t.dataset.docxPaginationScheduled,t.dataset.docxPaginating=\"true\",this.syncDynamicNotes(t),await this.prepareLayout(t,e),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}let r=Array.from(t.querySelectorAll(\":scope > section.\"+this.className)),i=this.options.maxDynamicPaginationPasses??1e3,o=0;for(let a=0;a<r.length;a++){let s=r[a];if(a%2==0&&await this.yieldToBrowser(),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}for(;this.isPageOverflowing(s)&&o++<i;){let l=Array.from(s.querySelectorAll(\":scope > article\"));if(!l.some(f=>f.children.length>0)&&!s.querySelector(\":scope > [data-docx-note-list] > li\"))break;let c=this.createContinuationPage(s);if(await this.refreshDynamicHeaderFooters([...r.slice(0,a+1),c,...r.slice(a+1)]),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}let h=Array.from(c.querySelectorAll(\":scope > article\")),u=this.splitDynamicNotes(s,c);for(let f=l.length-1;f>=0&&this.isPageOverflowing(s);f--){let d=l[f],p=h[f],m=0;if(p){for(;this.isPageOverflowing(s)&&d.lastElementChild&&m++<500;){if(m%20==0&&await this.yieldToBrowser(),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}if(d.children.length>1){if(this.moveOverflowingTail(d,s,p)){u=!0;continue}let g=this.pickPaginationChunk(d);if(g.length==0)break;if(g.length>=d.children.length){if(this.splitOverflowBlock(d.lastElementChild,s,p)){u=!0;continue}g=[d.lastElementChild]}for(let b=g.length-1;b>=0;b--)p.prepend(g[b]),u=!0}else{if(!this.splitOverflowBlock(d.lastElementChild,s,p))break;u=!0}}if(f>0&&this.isPageOverflowing(s))for(;d.lastElementChild;)p.prepend(d.lastElementChild),u=!0}}if(u||(u=Array.from(c.children).some(f=>f.dataset.docxNoteList&&f.children.length>0)),!u){if(c.remove(),this.syncDynamicNotes(t),await this.refreshDynamicHeaderFooters(r),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}break}this.refreshTabStops(t),this.refreshAnchors(t),r.splice(a+1,0,c)}}if(o>=i&&r.some(a=>this.isPageOverflowing(a)))throw new Error(\"DOCX pagination exceeded the configured pass budget\");if(this.cleanupEmptyNumberedParagraphs(t),this.removeEmptyDynamicPages(t),e.acceptLayoutChanges?.(t),this.syncDynamicNotes(t),await this.refreshDynamicHeaderFooters(Array.from(t.querySelectorAll(\":scope > section.\"+this.className))),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}this.updateDynamicFieldPages(t),this.refreshTabStops(t),this.refreshAnchors(t),this.assertDynamicNotesFit(t),delete t.dataset.docxPaginating,t.dataset.docxPaginated=\"true\"}moveOverflowingTail(t,e,r){let i=t.ownerDocument?.defaultView;if(!i||t.children.length<3)return!1;let o=i.getComputedStyle(t);if(o.display!==\"block\"||![\"auto\",\"1\"].includes(o.columnCount)||o.columnWidth!==\"auto\"||o.writingMode!==\"horizontal-tb\")return!1;let a=Array.from(t.children),s=this.getPageBodyBottom(e)+(this.options.paginationTolerance??2),l=a.length;for(;l>1;){let h=l-1;for(;h>0&&this.isKeepWithNext(a[h-1]);)h--;if(h===0)break;let u=!0;for(let f=h;f<l;f++){let d=a[f],p=i.getComputedStyle(d),m=d.getBoundingClientRect();if(!/^(P|TABLE)$/.test(d.tagName)||![\"block\",\"table\",\"list-item\"].includes(p.display)||p.position!==\"static\"||p.cssFloat!==\"none\"||p.transform!==\"none\"||p.clear!==\"none\"||p.writingMode!==\"horizontal-tb\"||!(parseFloat(p.marginTop)>=0&&parseFloat(p.marginBottom)>=0)||!(m.top>s&&m.bottom>m.top)||d.querySelector(\"[data-docx-float]\")){u=!1;break}}if(!u)break;l=h}if(a.length-l<2)return!1;let c=t.ownerDocument.createDocumentFragment();for(let h=l;h<a.length;h++)c.appendChild(a[h]);return r.prepend(c),!0}pickPaginationChunk(t){let e=Array.from(t.children);if(e.length==0)return[];let r=e.length-1;for(;r>0&&this.isKeepWithNext(e[r-1]);)r--;return e.slice(r)}isKeepWithNext(t){if(t.dataset.docxKeepNext==\"true\")return!0;let e=getComputedStyle(t);return e.breakAfter==\"avoid\"||e.pageBreakAfter==\"avoid\"}isPageOverflowing(t){t.parentElement&&this.syncDynamicNotes(t.parentElement),this.refreshTabStops(t);let e=this.options.paginationTolerance??2;if(t.clientHeight<=0)return!1;let i=t.getBoundingClientRect(),o=this.getPageBodyBottom(t),a=i.top;for(let c of Array.from(t.children)){let h=c.getBoundingClientRect();if(a=Math.max(a,h.bottom),c.tagName.toLowerCase()==\"article\"){if(h.bottom>o+e)return!0;for(let u of Array.from(c.children)){let f=u.getBoundingClientRect();if(a=Math.max(a,f.bottom),f.bottom>o+e)return!0}}}let s=this.getPageNoteBottom(t);return Array.from(t.querySelectorAll(\":scope > [data-docx-note-list]\")).some(c=>Array.from(c.querySelectorAll(\"*\")).some(h=>h.getBoundingClientRect().bottom>s+e))||a>i.bottom+e}createContinuationPage(t,e=!0){let r=t.cloneNode(!1);r.dataset.docxDynamicPage=\"true\",r.removeAttribute(\"id\"),delete r.dataset.docxPageStart;let i=this.pageHeaderFooterState.get(t);i&&this.pageHeaderFooterState.set(r,{...i});for(let o of Array.from(t.childNodes)){if(o.nodeType===1&&o.dataset.docxNoteList)continue;let a=o.nodeType===1&&o.localName===\"article\";r.appendChild(o.cloneNode(!a))}return e&&t.after(r),r}syncDynamicNotes(t){let e=this.dynamicNoteState.get(t);if(!e){e={references:Array.from(t.querySelectorAll(\"article [data-docx-note-reference]\")),items:[],fragments:new Map,owners:new Map,text:new Map,fields:new Map};let c=new Map;for(let h of Array.from(t.querySelectorAll(\"[data-docx-note-list] > li[data-docx-note-id]\"))){let u=`${h.dataset.docxNoteKind}:${h.dataset.docxNoteId}`,f=c.get(u);f||(c.set(u,f=h),e.items.push(f),e.fragments.set(f,[]),e.fields.set(f,[]));let d=e.fragments.get(f);h.dataset.docxNoteFragment=`${d.length}`,d.push(h),e.fields.get(f).push(...Array.from(h.querySelectorAll(\"[data-docx-field-instr]\"))),e.text.set(f,(e.text.get(f)??\"\")+this.noteTextSignature(h,e.fields.get(f)))}this.dynamicNoteState.set(t,e)}if(e.items.length===0)return;let r=Array.from(t.querySelectorAll(`:scope > section.${this.className}`));if(r.length===0)return;let i=new Set(r),o=c=>{for(;c&&!i.has(c);)c=c.parentElement;return c},a=new Map;for(let c of e.references){if(c.dataset.docxNoteHidden===\"true\")continue;let h=`${c.dataset.docxNoteReference}:${c.dataset.docxNoteId}`;if(a.has(h))continue;let u=o(c);u&&a.set(h,u)}let s=r.slice().reverse().find(c=>c.querySelector(':scope > [data-docx-note-list=\"footnote\"] > li')||Array.from(c.querySelectorAll(\":scope > article > *\")).some(h=>this.hasVisiblePaginationContent(h)))??r[0],l=new Map;for(let c of e.items){let h=c.dataset.docxNoteKind,u=e.owners.get(c),f=h===\"endnote\"?i.has(u)&&r.indexOf(u)>=r.indexOf(s)?u:s:a.get(`${h}:${c.dataset.docxNoteId}`);if(!f){c.dataset.docxNoteOwnershipError=\"missing-reference\";continue}delete c.dataset.docxNoteOwnershipError;let d=e.fragments.get(c);if(u&&u!==f||d.some(p=>!o(p))){for(let p of d.slice(1))this.mergeNoteContents(c,p),p.remove();d.splice(1)}e.owners.set(c,f);for(let p=0;p<d.length;p++){let m=d[p];m.dataset.docxNoteFragment=`${p}`;let g=p===0?f:o(m),b=l.get(g);b||l.set(g,b=new Map);let T=b.get(h);T||b.set(h,T=[]),T.push(m)}}for(let[c,h]of l)for(let u of[\"footnote\",\"endnote\"]){let f=h.get(u);if(!f)continue;let d=this.getOrCreateNoteList(c,u);for(let p=0;p<f.length;p++)d.children[p]!==f[p]&&d.insertBefore(f[p],d.children[p]??null)}for(let c of r)for(let h of Array.from(c.children))h.dataset.docxNoteList&&h.children.length===0&&h.remove()}getOrCreateNoteList(t,e){let r=Array.from(t.children).find(i=>i.dataset.docxNoteList===e);if(!r){r=this.h({tagName:\"ol\"}),r.dataset.docxNoteList=e;let i=Array.from(t.children).find(o=>o.localName===\"footer\"||e===\"footnote\"&&o.dataset.docxNoteList===\"endnote\");t.insertBefore(r,i??null)}return r}mergeNoteContents(t,e){let r=i=>{for(;this.noteContinuationOrigins.has(i);)i=this.noteContinuationOrigins.get(i);return i};for(let i of Array.from(e.childNodes)){let o=t.lastChild;i.nodeType===1&&o?.nodeType===1&&r(i)===r(o)?(this.mergeNoteContents(o,i),i.id&&!o.id&&(o.id=i.id),i.remove()):i.nodeType===1&&i.dataset.docxNoteColumns===\"true\"?i.remove():t.appendChild(i)}}getPageNoteBottom(t){let e=t.getBoundingClientRect(),r=t.ownerDocument?.defaultView;if(!r)return e.bottom;let i=r.getComputedStyle(t),o=u=>Number.parseFloat(u)||0,a=e.bottom-o(i.borderBottomWidth)-o(i.paddingBottom),s=Array.from(t.children).find(u=>u.localName===\"footer\");if(!s)return a;let l=r.getComputedStyle(s),c=s.getBoundingClientRect(),h=c.height+o(l.marginTop)+o(l.marginBottom);return Math.min(a,a-h,c.top-o(l.marginTop))}getPageBodyBottom(t){let e=Array.from(t.children).filter(o=>o.dataset.docxNoteList),r=t.ownerDocument?.defaultView;if(!r)return t.getBoundingClientRect().bottom;let i=this.getPageNoteBottom(t);for(let o of e){let a=o.getBoundingClientRect(),s=r.getComputedStyle(o),l=a.bottom;for(let c of Array.from(o.querySelectorAll(\"*\")))l=Math.max(l,c.getBoundingClientRect().bottom);i-=Math.max(a.height,l-a.top)+(Number.parseFloat(s.marginTop)||0)+(Number.parseFloat(s.marginBottom)||0)}return i}getMinimumNoteBodyBottom(t){let r=t.ownerDocument?.defaultView?.getComputedStyle(t),i=t.getBoundingClientRect().top+(parseFloat(r?.paddingTop)||0)+(parseFloat(r?.borderTopWidth)||0),o=t.querySelector(\":scope > header\");o&&(i=Math.max(i,o.getBoundingClientRect().bottom));let a=Array.from(t.querySelectorAll(\":scope > article > *\")).find(u=>this.hasVisiblePaginationContent(u));if(!a)return i;let s=a.getBoundingClientRect();if(a.localName===\"table\"){let u=this.tableContentRows(a)[0];if(u)return Math.max(i,u.getBoundingClientRect().bottom,...Array.from(u.cells,f=>f.getBoundingClientRect().bottom))}if(a.localName!==\"p\"||a.dataset.docxKeepLines===\"true\")return Math.max(i,s.bottom);let l=[],c=t.ownerDocument.createTreeWalker(a,NodeFilter.SHOW_TEXT);for(;c.nextNode();){let u=t.ownerDocument.createRange();u.selectNodeContents(c.currentNode);for(let f of Array.from(u.getClientRects()))f.height>0&&f.width>0&&l.push(f)}l.sort((u,f)=>u.top-f.top);let h=l.find(u=>u.top>(l[0]?.top??1/0)+2);return Math.max(i,h?s.top+h.top-l[0].top:s.bottom)}moveEndnotesAfterBody(t,e){let r=this.dynamicNoteState.get(t.parentElement);if(!r||!t.querySelector(\":scope > article > *\")||!this.isPageOverflowing(t))return!1;let i=Array.from(t.querySelectorAll(':scope > [data-docx-note-list=\"endnote\"] > li'));if(!i.length||i.some(c=>r.fragments.get(c)?.length!==1))return!1;let o=i[0].parentElement,a=o.nextSibling,s=i.map(c=>({item:c,next:c.nextSibling,owner:r.owners.get(c)})),l=this.getOrCreateNoteList(e,\"endnote\");for(let c of i)l.appendChild(c),r.owners.set(c,e);if(o.children.length||o.remove(),!this.isPageOverflowing(t))return!0;o.parentNode!==t&&t.insertBefore(o,a?.parentNode===t?a:null);for(let{item:c,next:h,owner:u}of s.reverse())o.insertBefore(c,h?.parentNode===o?h:null),r.owners.set(c,u);return l.children.length||l.remove(),!1}splitDynamicNotes(t,e){let r=t.parentElement,i=this.dynamicNoteState.get(r);if(!i?.items.length||t.clientHeight<=0)return!1;if(this.moveEndnotesAfterBody(t,e))return!0;let o=this.options.paginationTolerance??2,a=this.getMinimumNoteBodyBottom(t),s=()=>this.getPageBodyBottom(t)+o<a;if(!s())return!1;let l=!1,c=new Map,h=Array.from(t.querySelectorAll(\":scope > [data-docx-note-list] > li\"));for(let u of h.slice().reverse()){if(!s())break;let f=i.items.find(H=>H.dataset.docxNoteKind===u.dataset.docxNoteKind&&H.dataset.docxNoteId===u.dataset.docxNoteId);if(!f)continue;let d=i.fragments.get(f),p=d.indexOf(u),m=u.dataset.docxNoteKind,g=this.getOrCreateNoteList(e,m);if(m===\"endnote\"&&p===0&&t.querySelector(\":scope > article > *\")){let H=u.parentElement;g.prepend(u),H.children.length||H.remove(),i.owners.set(f,e),l=!0;continue}let b=Array.from(t.querySelectorAll(\":scope > [data-docx-note-list] > li\")),T=new Map(b.map(H=>[H,this.getNoteItemHeight(H)])),S=this.getPageBodyBottom(t)-a+Array.from(T.values()).reduce((H,nt)=>H+nt,0);for(let H of b)c.has(H)||c.set(H,this.measureNoteMinimum(H,e,t));let I=b.find(H=>c.get(H)>S+o);if(I)throw e.remove(),this.syncDynamicNotes(r),t.dataset.docxNoteLayoutError=r.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: unbreakable ${I.dataset.docxNoteKind}:${I.dataset.docxNoteId} exceeds its note region; all note content has been preserved`);let O=S-b.reduce((H,nt)=>H+c.get(nt),0),$=b.map(H=>Math.max(0,T.get(H)-c.get(H))).sort((H,nt)=>H-nt),k=$.length;for(let H of $){if(H*k>O)break;O-=H,k--}let W=k>0?Math.max(0,O/k):1/0,U=c.get(u)+Math.min(T.get(u)-c.get(u),W),v=()=>s()&&this.getNoteItemHeight(u)>U;if(!v()){g.children.length||g.remove();continue}let _=this.cloneBlockShell(u);if(_.dataset.docxNoteFragment=`${p+1}`,_.dataset.docxContinued=\"true\",g.prepend(_),!this.moveNoteItemTail(u,_,t,v)||!this.hasVisibleNoteContent(u)||v()&&this.getNoteItemHeight(u)>S+o){if(this.mergeNoteContents(u,_),_.remove(),p>0&&this.getNoteItemHeight(u)<=S+o&&t.querySelector(\":scope > article > *\")){g.prepend(u),l=!0;continue}if(g.children.length||g.remove(),s()&&(h.length===1||this.getNoteItemHeight(u)>S+o))throw e.remove(),this.syncDynamicNotes(r),t.dataset.docxNoteLayoutError=r.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: unbreakable ${m}:${u.dataset.docxNoteId} exceeds its note region; all note content has been preserved`);continue}d.splice(p+1,0,_),d.forEach((H,nt)=>H.dataset.docxNoteFragment=`${nt}`),l=!0}return this.syncDynamicNotes(r),l}measureNoteMinimum(t,e,r){let i=this.getOrCreateNoteList(e,t.dataset.docxNoteKind),o=this.cloneBlockShell(t);o.dataset.docxNoteFragment=\"1\",i.appendChild(o);try{return this.moveNoteItemTail(t,o,r,()=>!0),this.getNoteItemHeight(t)}finally{this.mergeNoteContents(t,o),o.remove()}}moveNoteItemTail(t,e,r,i){let o=!1;for(;i()&&t.lastChild;){let a=t.lastChild;if(t.childNodes.length>1&&this.hasNoteContentOutside(t,a))e.prepend(a),o=!0;else if(a.nodeType===1&&this.splitNoteBlock(a,e,r,i,t))o=!0;else break}return o}hasNoteContentOutside(t,e){let r=Array.from(t.childNodes);for(;r.length;){let i=r.pop();if(i!==e){if(i.nodeType===Node.TEXT_NODE&&i.textContent.length>0)return!0;if(i.nodeType===1){if(this.isNoteAtomicElement(i))return!0;r.push(...Array.from(i.childNodes))}}}return!1}firstNoteTextBoundary(t){let e=globalThis.Intl?.Segmenter;if(e){let o=0;for(let a of new e(void 0,{granularity:\"grapheme\"}).segment(t))if(o||(o=a.segment.length),a.segment.trim())return a.index+a.segment.length;return o}let r=t.search(/\\S/),i=Math.max(0,r);return i+(t.codePointAt(i)>65535?2:1)}getNoteItemHeight(t){let e=t.getBoundingClientRect(),r=e.bottom;for(let o of Array.from(t.querySelectorAll(\"*\")))r=Math.max(r,o.getBoundingClientRect().bottom);let i=t.ownerDocument.defaultView.getComputedStyle(t);return Math.max(e.height,r-e.top)+(parseFloat(i.marginTop)||0)+(parseFloat(i.marginBottom)||0)}hasVisibleNoteContent(t){return!!t.textContent?.length||!!t.querySelector(\"img,svg,math,object,canvas,video,br,[data-docx-field-instr]\")}splitNoteBlock(t,e,r,i,o=t.parentElement){let a=t.ownerDocument.defaultView.getComputedStyle(t);if(t.dataset.docxKeepLines===\"true\"||a.breakInside===\"avoid\"||a.pageBreakInside===\"avoid\"||!/^(p|table|div|blockquote)$/.test(t.localName))return!1;let s=this.cloneBlockShell(t);s.dataset.docxContinued=\"true\",this.noteContinuationOrigins.set(s,t),e.prepend(s);let l=!1;if(t.localName===\"table\"){for(let d of Array.from(t.querySelectorAll(\":scope > colgroup\"))){let p=d.cloneNode(!0);p.removeAttribute(\"id\"),p.querySelectorAll(\"[id]\").forEach(m=>m.removeAttribute(\"id\")),p.dataset.docxNoteColumns=\"true\",s.appendChild(p)}let c=new Map,h=(d,p)=>{if(p===t){s.appendChild(d);return}let m=c.get(p);m||(m=this.cloneBlockShell(p),this.noteContinuationOrigins.set(m,p),c.set(p,m),s.appendChild(m)),m.appendChild(d)},u=this.tableContentRows(t),f=u.length-1;for(;f>0&&u.slice(0,f).some((d,p)=>Array.from(d.cells).some(m=>p+m.rowSpan>f));)f--;if(f>0){for(let d of u.slice(f))h(d,d.parentElement);l=!0}else if(u.length===1&&u[0].cells.length===1&&u[0].cells[0].rowSpan===1){let d=u[0],p=d.cells[0],m=d.ownerDocument.defaultView.getComputedStyle(d);if(m.breakInside!==\"avoid\"&&m.pageBreakInside!==\"avoid\"){let g=this.cloneBlockShell(d),b=this.cloneBlockShell(p);this.noteContinuationOrigins.set(g,d),this.noteContinuationOrigins.set(b,p),h(g,d.parentElement),g.appendChild(b),l=this.moveNoteBlockTail(p,b,r,i,o)}}}else if(t.localName===\"p\")for(;i()&&t.lastChild&&this.moveNoteTailNode(t,s,r,i,o);)l=!0;else l=this.moveNoteBlockTail(t,s,r,i,o);return l?t.hasChildNodes()||(t.id&&(s.id=t.id),t.remove()):s.remove(),l}moveNoteBlockTail(t,e,r,i,o){let a=!1;for(;i()&&t.lastChild;){let s=t.lastChild;if(t.childNodes.length>1&&this.hasNoteContentOutside(o,s))e.prepend(s),a=!0;else if(s.nodeType===1&&this.splitNoteBlock(s,e,r,i,o))a=!0;else break}return a}moveNoteTailNode(t,e,r,i,o){let a=t.lastChild;if(!a)return!1;if(a.nodeType===Node.TEXT_NODE){let s=this.hasNoteContentOutside(o,a)?0:this.firstNoteTextBoundary(a.textContent);return this.moveTextTail(a,e,r,i,!0,s)}if(a.nodeType===1){let s=a;if(s.hasChildNodes()&&!this.isNoteAtomicElement(s)&&!s.dataset.docxFloat&&!s.dataset.docxNoteReference){let l=this.cloneBlockShell(s);l.removeAttribute(\"name\"),this.noteContinuationOrigins.set(l,s),e.prepend(l);let c=this.moveNoteTailNode(s,l,r,i,o);return s.hasChildNodes()||(s.id&&(l.id=s.id),s.hasAttribute(\"name\")&&l.setAttribute(\"name\",s.getAttribute(\"name\")),s.remove()),l.hasChildNodes()||l.remove(),c}}return a.nodeType===1&&this.isNoteAtomicElement(a)&&!this.hasNoteContentOutside(o,a)?!1:(e.prepend(a),!0)}isNoteAtomicElement(t){return/^(img|svg|math|object|canvas|video|picture|br)$/i.test(t.localName)||t.hasAttribute(\"data-docx-field-instr\")}isMutableNoteField(t){if(!t.hasAttribute(\"data-docx-field-instr\"))return!1;let r=this.tokenizeFieldInstruction((t.dataset.docxFieldInstr??\"\").replace(/\\s+/g,\" \").trim())[0]?.replace(/^=/,\"\").toUpperCase();return[\"PAGE\",\"NUMPAGES\",\"SECTIONPAGES\",\"SECTION\"].includes(r)||r===\"PAGEREF\"&&!!this.options.updatePageReferences}noteTextSignature(t,e){let r=i=>i.nodeType===Node.TEXT_NODE?i.textContent:i.nodeType===1&&this.isMutableNoteField(i)?`\\0docx-field-${e.indexOf(i)}\\0`:Array.from(i.childNodes).map(r).join(\"\");return r(t)}assertDynamicNotesFit(t){let e=[],r=this.dynamicNoteState.get(t);if(r)for(let o of r.items){let a=r.fragments.get(o),s=r.fields.get(o),l=a.flatMap(c=>Array.from(c.querySelectorAll(\"[data-docx-field-instr]\")));(a.map(c=>this.noteTextSignature(c,s)).join(\"\")!==r.text.get(o)||l.length!==s.length||l.some((c,h)=>c!==s[h])||a.some((c,h)=>!t.contains(c)||c.dataset.docxNoteFragment!==`${h}`))&&e.push(`fragment conservation ${o.dataset.docxNoteKind}:${o.dataset.docxNoteId}`)}let i=this.options.paginationTolerance??2;for(let o of Array.from(t.querySelectorAll(`:scope > section.${this.className}`))){let a=Array.from(o.children).filter(u=>u.dataset.docxNoteList);if(!a.length||o.clientHeight<=0)continue;delete o.dataset.docxNoteLayoutError;let s=this.getPageBodyBottom(o),l=this.getPageNoteBottom(o),c=Array.from(o.querySelectorAll(\":scope > article > *\")).some(u=>u.getBoundingClientRect().bottom>s+i),h=a.some(u=>Array.from(u.querySelectorAll(\"*\")).some(f=>f.getBoundingClientRect().bottom>l+i));(c||h)&&(o.dataset.docxNoteLayoutError=\"unresolved-overflow\",e.push(a.flatMap(u=>Array.from(u.children,f=>`${f.dataset.docxNoteKind}:${f.dataset.docxNoteId}`)).join(\",\")))}if(e.length)throw t.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: note layout requires continuation or unsupported geometry (${e.join(\"; \")}); all note content has been preserved`);delete t.dataset.docxNoteLayoutError}async refreshDynamicHeaderFooters(t){let e=\"\",r=0,i=0,o=this.tasks.length;for(let a of t){let s=a.dataset.docxSection??\"\",l=s!==e;if(l){let h=Number(a.dataset.docxPageStart);r=a.dataset.docxPageStart!=null&&Number.isFinite(h)?h:r+1,i=1,e=s}else r++,i++;let c=this.pageHeaderFooterState.get(a);if(c){this.currentPageNumber=r,this.currentSectionPageNumber=i,this.currentSectionNumber=Number(a.dataset.docxSectionNumber)||1;for(let h of[\"header\",\"footer\"]){let u=h===\"header\"?c.headerProps:c.footerProps,f=h===\"header\"?u.headerRefs:u.footerRefs,d=h===\"header\"?\"headerId\":\"footerId\",p=this.selectHeaderFooterReference(f,u,r,l);if(c[d]!==p?.id&&(c[d]=p?.id,a.querySelector(`:scope > ${h}`)?.remove(),(h===\"header\"?this.options.renderHeaders:this.options.renderFooters)&&(this.currentSectionProps=u,this.renderHeaderFooter(f,u,r,l,a),h===\"header\"))){let m=a.querySelector(\":scope > header\");m&&a.prepend(m)}}}}await Promise.allSettled(this.tasks.slice(o))}splitOverflowBlock(t,e,r){if(!r.isConnected&&e.isConnected&&r.parentElement&&e.after(r.parentElement),!t||t.dataset.docxKeepLines==\"true\")return!1;let i=getComputedStyle(t);if(i.breakInside==\"avoid\"||i.pageBreakInside==\"avoid\")return!1;switch(t.tagName.toLowerCase()){case\"p\":return this.splitParagraphBlock(t,e,r);case\"table\":return this.splitTableBlock(t,e,r)}return!1}splitParagraphBlock(t,e,r){if(!t.hasChildNodes()||this.fitOversizedInlinePicture(t,e))return!1;let i=this.cloneBlockShell(t);i.dataset.docxContinued=\"true\",r.prepend(i);let o=!1,a=0;for(;this.isPageOverflowing(e)&&t.hasChildNodes()&&a++<1e3&&this.moveTailInlineNode(t,i,e);)o=!0,this.removeEmptyInlineContainers(t);return o?(t.hasChildNodes()?this.options.strictWordCompatibility&&t.dataset.docxWidowControl==\"true\"&&this.rebalanceWidowOrphan(t,i,e):t.remove(),!0):(i.remove(),!1)}fitOversizedInlinePicture(t,e){let r=t.parentElement;if(r?.localName!==\"article\"||r.firstElementChild!==t||e.querySelector(\":scope > article > *\")!==t||t.textContent?.trim()||t.querySelector(\"table,math,object,canvas,video,[data-docx-note-reference]\"))return!1;let i=Array.from(t.querySelectorAll(\"[data-docx-drawing]\")),o=i[0];if(i.length!==1||!o||o.children.length!==1||t.querySelectorAll(\"img\").length!==1||o.dataset.docxFloat)return!1;let a=o.firstElementChild;if(a.localName!==\"img\"&&a.dataset.docxImageCrop!==\"true\")return!1;let s=t.ownerDocument.defaultView,l=s?.getComputedStyle(o);if(!s||!l||l.position===\"absolute\"||l.position===\"fixed\"||l.transform!==\"none\"||l.cssFloat!==\"none\")return!1;let c=t.getBoundingClientRect(),h=o.getBoundingClientRect(),u=e.getBoundingClientRect(),f=e.clientHeight>0?u.height/e.clientHeight:1,d=(parseFloat(s.getComputedStyle(t).marginBottom)||0)*f,p=Math.max(0,c.height-h.height),m=this.getPageBodyBottom(e)-c.top-p-d-f,g=parseFloat(l.width),b=parseFloat(l.height);if(![m,g,b,h.height].every(Number.isFinite)||m<=0||g<=0||b<=0||h.height<=m)return!1;let T=m/h.height;return o.style.width=`${g*T}px`,o.style.height=`${b*T}px`,a.style.width=\"100%\",a.style.height=\"100%\",o.dataset.docxPageFitScale=`${T}`,!0}splitTableBlock(t,e,r){let i=this.tableContentRows(t);if(i.length<=1)return!1;let o=this.cloneBlockShell(t);o.dataset.docxContinued=\"true\";for(let l of Array.from(t.children))l.tagName?.toLowerCase()==\"colgroup\"&&o.appendChild(l.cloneNode(!0));for(let l of i.filter(c=>c.dataset.docxRepeatHeader==\"true\")){let c=l.cloneNode(!0);c.dataset.docxRepeatedHeader=\"true\",o.appendChild(c)}r.prepend(o);let a=!1,s=0;for(;this.isPageOverflowing(e)&&this.tableContentRows(t).length>1&&s++<500;){let l=this.tableContentRows(t).filter(h=>h.dataset.docxRepeatedHeader!=\"true\"),c=l[l.length-1];if(!c)break;o.insertBefore(c,this.firstMovedTableRow(o)),a=!0}return a?!0:(o.remove(),!1)}cloneBlockShell(t){let e=t.cloneNode(!1);return e.removeAttribute(\"id\"),e}tableContentRows(t){return Array.from(t.querySelectorAll(\":scope > tr, :scope > tbody > tr\"))}firstMovedTableRow(t){return this.tableContentRows(t).find(e=>e.dataset.docxRepeatedHeader!=\"true\")??null}moveTailInlineNode(t,e,r){let i=t.lastChild;if(!i)return!1;if(i.nodeType==Node.TEXT_NODE)return this.moveTextTail(i,e,r);if(i instanceof Element){if(i.dataset?.docxNoteReference)return e.prepend(i),!0;if(i.childNodes.length>0&&i.tagName?.toLowerCase()!=\"br\"){let o=i.cloneNode(!1);o.removeAttribute(\"id\"),e.prepend(o);let a=this.moveTailInlineNode(i,o,r);return i.hasChildNodes()||i.remove(),o.hasChildNodes()||o.remove(),a}}return e.prepend(i),!0}moveTextTail(t,e,r,i=()=>this.isPageOverflowing(r),o=!1,a=0){let s=t.data??\"\";if(!s||s.length<=a)return!1;let l=document.createTextNode(\"\");if(e.prepend(l),s.length==1)return l.data=s,t.remove(),!0;let c=1,h=s.length-a,u=h;for(;c<=h;){let f=Math.floor((c+h)/2);t.data=s.substring(0,s.length-f),l.data=s.substring(s.length-f),i()?c=f+1:(u=f,h=f-1)}if(u=Math.min(s.length-a,this.adjustSplitToWordBoundary(s,u)),o){let f=s.length-u,d=globalThis.Intl?.Segmenter,p=0;if(d)for(let m of new d(void 0,{granularity:\"grapheme\"}).segment(s)){if(m.index>f)break;p=m.index}else for(p=f,p>0&&/[\\uDC00-\\uDFFF]/.test(s[p])&&/[\\uD800-\\uDBFF]/.test(s[p-1])&&p--;p>0&&/[\\u0300-\\u036f\\u1ab0-\\u1aff\\u1dc0-\\u1dff\\u20d0-\\u20ff\\ufe20-\\ufe2f\\ufe00-\\ufe0f\\u200d]/.test(s[p]);)p--;u=s.length-Math.max(p,a)}return t.data=s.substring(0,s.length-u),l.data=s.substring(s.length-u),t.data||t.remove(),!0}adjustSplitToWordBoundary(t,e){if(e<=1||e>=t.length)return e;let r=t.length-e,i=t.lastIndexOf(\" \",r);return i>0&&r-i<32?t.length-i-1:e}removeEmptyInlineContainers(t){for(let e of Array.from(t.childNodes))e instanceof HTMLElement&&(this.removeEmptyInlineContainers(e),!e.hasChildNodes()&&!/^(br|img|svg|math)$/i.test(e.tagName)&&e.remove())}cleanupEmptyNumberedParagraphs(t){let e=`p[class*=\"${this.className}-num-\"]`;for(let r of Array.from(t.querySelectorAll(e))){if(this.hasVisiblePaginationContent(r)||!r.id&&!r.querySelector(\"[id], a[name]\"))continue;let i=this.findNextVisiblePaginationBlock(t,r);i&&this.moveAnchorsToBlock(r,i),r.remove()}}removeEmptyDynamicPages(t){let e=Array.from(t.querySelectorAll(`:scope > section.${this.className}[data-docx-dynamic-page=\"true\"]`));for(let r of e){let i=Array.from(r.querySelectorAll(\":scope > article\")),o=i.some(s=>Array.from(s.children).some(l=>this.hasVisiblePaginationContent(l))),a=Array.from(r.children).some(s=>s.dataset.docxNoteList&&s.children.length>0);i.length>0&&!o&&!a&&r.remove()}}findNextVisiblePaginationBlock(t,e){let r=Array.from(t.querySelectorAll(\"article p, article table, article figure, article img, article svg, article math\")),i=r.indexOf(e);for(let o=i+1;o<r.length;o++){let a=r[o];if(this.hasVisiblePaginationContent(a))return a}return null}hasVisiblePaginationContent(t){return(t.textContent??\"\").replace(/\\s+/g,\"\").length>0?!0:!!t.querySelector(\"br,img,svg,math,object,canvas,video,table\")}moveAnchorsToBlock(t,e){let r=Array.from(t.querySelectorAll(\"[id], a[name]\"));t.id&&!e.id&&(e.id=t.id);for(let i=r.length-1;i>=0;i--){let o=r[i];o.id&&e.querySelector(`#${CSS.escape(o.id)}`)||e.prepend(o)}}rebalanceWidowOrphan(t,e,r){let i=this.visualLineCount(t),o=this.visualLineCount(e);if(i>=2&&o>=2)return;if(i<2&&t.parentElement&&e.hasChildNodes()){e.prepend(...Array.from(t.childNodes)),t.remove();return}let a=0;for(;this.visualLineCount(e)<2&&t.hasChildNodes()&&a++<20&&!this.isPageOverflowing(r)&&this.moveTailInlineNode(t,e,r););}visualLineCount(t){try{let e=document.createRange();e.selectNodeContents(t);let r=Array.from(e.getClientRects());e.detach?.();let i=new Set(r.map(o=>Math.round(o.top)));return Math.max(i.size,1)}catch{return 1}}updateDynamicFieldPages(t){let e=Array.from(t.querySelectorAll(\":scope > section.\"+this.className)),r={},i={},o={},a=[],s=[],l=0,c=\"\";for(let h of e){let u=h.dataset.docxSection??\"\";i[u]=(i[u]??0)+1}if(e.forEach((h,u)=>{let f=h.dataset.docxSection??\"\";if(f!=c){let d=h.dataset.docxPageStart!=null?parseInt(h.dataset.docxPageStart,10):null;l=Number.isFinite(d)?d:l+1,o[f]=1,c=f}else l++,o[f]=(o[f]??0)+1;h.dataset.docxPageNumber=`${l}`,h.dataset.docxSectionPageNumber=`${o[f]}`,h.dataset.docxSectionPageCount=`${i[f]??1}`,a[u]=l,s[u]=o[f];for(let d of Array.from(h.querySelectorAll(\"[id]\")))d.id&&r[d.id]==null&&(r[d.id]=l)}),e.forEach((h,u)=>{let f=h.dataset.docxSection??\"\";for(let d of Array.from(h.querySelectorAll(\"[data-docx-field-instr]\"))){let p=this.evaluateDynamicField(d.dataset.docxFieldInstr,a[u]??u+1,e.length,r,i[f]??1,s[u]??1,parseInt(h.dataset.docxSectionNumber??\"1\",10));p!=null&&(d.textContent=p)}}),this.options.updatePageReferences)for(let h of Array.from(t.querySelectorAll(\"[data-docx-page-ref]\"))){let u=h.dataset.docxPageRef;h.textContent=`${r[u]??1}`}this.updateDynamicNoteNumbers(t)}evaluateDynamicField(t,e,r,i,o=r,a=e,s=1){let l=this.tokenizeFieldInstruction((t??\"\").replace(/\\s+/g,\" \").trim()),c=l[0]?.replace(/^=/,\"\").toUpperCase(),h=null;switch(c){case\"PAGE\":h=this.formatFieldNumber(e,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"NUMPAGES\":h=this.formatFieldNumber(r,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"SECTIONPAGES\":h=this.formatFieldNumber(o,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"SECTION\":h=this.formatFieldNumber(s,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??\"decimal\"));break;case\"PAGEREF\":{if(!this.options.updatePageReferences)return null;let u=this.firstFieldArgument(l);h=u?`${i[u]??1}`:\"\";break}}return h==null?null:this.applyFieldFormatting(h,t)}renderDefaultStyle(){var t=this.className;let e=!!this.options.darkMode,r=e?\"#242424\":\"gray\",i=e?en(\"white\"):\"white\",o=e?en(\"black\"):\"black\";var l=`\n.${t}-wrapper { position: relative; background: ${r}; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }\n.${t}-wrapper>section.${t} { background: ${i}; box-shadow: ${e?\"0 0 10px rgba(0, 0, 0, 0.8)\":\"0 0 10px rgba(0, 0, 0, 0.5)\"}; margin-bottom: 30px;${e?\" outline: 1px solid rgba(255, 255, 255, 0.15); outline-offset: -1px;\":\"\"} }`;this.options.hideWrapperOnPrint&&(l=`@media not print { ${l} }`);var c=`${l}\n.${t} { --docx-auto-color: ${o}; color: var(--docx-auto-color); font-size: 10.5pt; font-family: var(--docx-minorHAnsi-font, \"Times New Roman\", serif); hyphens: auto; text-underline-position: from-font; font-kerning: normal; font-variant-ligatures: common-ligatures contextual; text-rendering: optimizeLegibility; line-break: auto; }\nsection.${t} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: visible; isolation: isolate; }\nsection.${t}>header, section.${t}>footer { flex-shrink: 0; }\nsection.${t}>[data-docx-note-list] { flex-shrink: 0; }\nsection.${t}>article { z-index: 1; }\nsection.${t}>article:last-of-type { margin-bottom: auto; }\nsection.${t}>footer { z-index: 1; }\n.${t} [data-docx-continued=\"true\"] { margin-top: 0 !important; }\n.${t} tr[data-docx-repeat-header=\"true\"], .${t} tr[data-docx-repeated-header=\"true\"] { break-after: avoid; }\n.${t} li[data-docx-note-label]::marker { content: attr(data-docx-note-label) \" \"; }\n.${t} li[data-docx-note-custom=\"true\"]::marker, .${t} li[data-docx-note-label=\"\"]::marker,\n.${t} li[data-docx-note-fragment]:not([data-docx-note-fragment=\"0\"])::marker { content: \"\"; }\n.${t} table { border-collapse: collapse; }\n.${t} table td, .${t} table th { vertical-align: top; overflow-wrap: anywhere; }\n.${t} p { margin: 0pt; min-height: 1em; }\n.${t} .${t}-paragraph-frame > p { margin: 0; }\n.${t} span { white-space: pre-wrap; overflow-wrap: break-word; font-feature-settings: \"kern\" 1; }\n.${t} table span { overflow-wrap: anywhere; }\n.${t} .${t}-float-wrap { shape-margin: 0.15in; }\n.${t} .${t}-field { white-space: pre-wrap; }\n.${t} .${t}-tab-stop { display: inline-block; min-width: 1em; white-space: nowrap; line-height: 1; }\n.${t} .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"] { min-width: 2em; border-bottom: 1px dotted currentColor; height: .85em; transform: translateY(-.18em); }\n.${t} .${t}-tab-stop[data-docx-tab-leader=\"hyphen\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"heavy\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"underscore\"] { min-width: 2em; border-bottom: 1px solid currentColor; height: .85em; transform: translateY(-.18em); }\n.${t} .${t}-tab-leader-paragraph > a, .${t} .${t}-tab-leader-paragraph > .${t}-tab-leader-line, .${t} .${t}-tab-leader-line { display: inline-flex; align-items: baseline; width: calc(100% - var(--docx-text-indent, 0pt)); color: inherit !important; text-decoration: none !important; box-sizing: border-box; max-width: none; text-indent: 0; }\n.${t} .${t}-tab-leader-paragraph > a, .${t} .${t}-tab-leader-paragraph > a * { color: inherit !important; text-decoration: none !important; }\n.${t} .${t}-toc-paragraph a, .${t} .${t}-toc-paragraph a * { color: inherit !important; text-decoration: none !important; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"] { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .35em; align-items: baseline; list-style-position: outside; list-style-type: none; text-indent: 0 !important; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"]::before { grid-column: 1; grid-row: 1; white-space: pre; margin-inline-end: 0; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"] > a { grid-column: 2; grid-row: 1; display: inline-flex; flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; }\n.${t} .${t}-tab-leader-title { flex: 0 1 auto; min-width: 0; }\n.${t} .${t}-tab-leader-page { flex: 0 0 auto; white-space: nowrap; text-align: right; }\n.${t} .${t}-tab-leader-fill, .${t} .${t}-tab-leader-paragraph > a > .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-leader-paragraph > a > .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"], .${t} .${t}-tab-leader-paragraph > .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-leader-paragraph > .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"] { flex: 1 1 auto; width: auto; margin: 0 .2em; }\n.${t} .${t}-literal-leader-line > .${t}-tab-leader-title { flex: 0 0 auto; white-space: nowrap; }\n.${t} .${t}-toc { display: table; width: 100%; }\n.${t} .${t}-toc-entry { display: table-row; }\n.${t} .${t}-toc-title, .${t} .${t}-toc-page { display: table-cell; }\n.${t} .${t}-toc-title { border-bottom: 1px dotted currentColor; }\n.${t} .${t}-toc-page { text-align: right; width: 3em; }\n.${t} math { font-family: Cambria Math, STIX Two Math, Latin Modern Math, serif; }\n.${t} ruby { ruby-position: over; }\n.${t} rt { font-size: 0.5em; line-height: 1; }\n.${t} .${t}-chart, .${t} .${t}-smartart, .${t} .${t}-ink { min-width: 2in; min-height: 1in; }\n.${t} a { color: inherit; text-decoration: inherit; }\n.${t} svg { fill: transparent; }\n[data-docx-review-enabled=\"true\"] { --docx-review-color: #c2410c; }\n[data-docx-review-enabled=\"true\"] ins[data-docx-change-kind], [data-docx-review-enabled=\"true\"] del[data-docx-change-kind] { text-decoration: none; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"delete\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"move-from\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-change-kind=\"delete\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-change-kind=\"move-from\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"insert\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"move-to\"] { display: none !important; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] ins[data-docx-change-kind]:not([data-docx-change-empty=\"true\"]) { color: var(--docx-review-color); text-decoration: underline; text-decoration-color: var(--docx-review-color); text-underline-offset: .16em; background: color-mix(in srgb, var(--docx-review-color) 7%, transparent); }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] ins[data-docx-change-empty=\"true\"] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] del[data-docx-change-kind] { display: inline-block !important; width: 0 !important; max-width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; line-height: 0 !important; vertical-align: baseline; color: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"][data-docx-review-presentation=\"inline\"] del[data-docx-change-kind] { display: inline !important; width: auto !important; max-width: none !important; height: auto !important; overflow: visible !important; line-height: inherit !important; color: var(--docx-review-color); text-decoration: line-through; text-decoration-color: var(--docx-review-color); }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] ins[data-docx-change-kind] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] del[data-docx-change-kind] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] [data-docx-format-change=\"true\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-format-change=\"true\"] { outline: 0; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"comment\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"comment\"] { display: none !important; }\n@media print { .${t}-wrapper { background: transparent; padding: 0; display: block; } .${t}-wrapper>section.${t}, section.${t} { background: white; margin: 0 auto; box-shadow: none; outline: none; break-after: page; page-break-after: always; } .${t} { --docx-auto-color: black; color: black; } }\n`;return this.options.renderComments&&(c+=`\n.${t}-comment-ref { cursor: pointer; }\n.${t}-comment-ref[data-docx-comment-positioned=\"true\"]:not(:focus) { opacity: 0; }\n.${t}-comment-ref:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }\n.${t}-comment-anchor { display: inline-block; width: 0; height: 0; overflow: visible; vertical-align: baseline; }\n.${t}-comment-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1000; }\n.${t}-comment-popover { display: block; width: max-content; pointer-events: auto; margin: 0; padding: 0; }\n.${t}-comment-popover > summary { list-style: none; cursor: pointer; display: block; padding: 0; margin: 0; }\n.${t}-comment-popover > summary::-webkit-details-marker { display: none; }\n.${t}-comment-popover > summary:focus-visible { outline: 2px solid currentColor; }\n.${t}-comment-body { position: absolute; top: 100%; width: 30ch; box-sizing: border-box; overflow: auto; padding: .5rem; background: ${i}; color: var(--docx-auto-color); box-shadow: 0 0 .25rem rgba(0,0,0,.25); }\n.${t}-comment-author,.${t}-comment-date { font-size: .875rem; color: ${e?en(\"#888888\"):\"#888\"}; }\n@media print { .${t}-comment-layer, .${t}-comment-popover, .${t}-comment-body { position: static !important; width: auto !important; max-width: none !important; max-height: none !important; overflow: visible; } .${t}-comment-layer { pointer-events: auto; } .${t}-comment-body { box-shadow: none; } }\n\n`),[this.h({tagName:\"#comment\",children:[\"docxjs library predefined styles\"]}),this.h({tagName:\"style\",children:[c]})]}async renderNumbering(t){var e=\"\",r=[];let i=new Map,o=new Map(t.map(h=>[`${h.id}:${h.level}`,this.numFormatToCssValue(h.format)])),a=(h,u)=>{let f=i.get(h)??[];f.push(u),i.set(h,f)};for(var s of t){var l=this.numberingSelector(s.id,s.level),c=\"none\";if(s.bullet){let h=`--${this.className}-${s.bullet.src}`.toLowerCase();e+=this.styleToString(`${l}:before`,{content:\"' '\",display:\"inline-block\",background:`var(${h})`},s.bullet.style);try{let u=await this.document.loadNumberingImage(s.bullet.src);e+=`${this.rootSelector} { ${h}: url(${u}) }`}catch{this.options.debug&&console.warn(`Can't load numbering image with src ${s.bullet.src}`)}}else if(s.levelText){let h=this.numberingCounter(s.id,s.level),u=h+\" \"+(s.start-1),f=this.numberingRestartLevel(s);f!=null&&a(this.numberingSelector(s.id,f),u),r.push(u);let d=this.normalizeNumberingLevelText(s.levelText,s.format,s.rStyle),p=this.numberingMarkerRunStyle(s.rStyle,d.normalized);e+=this.styleToString(`${l}:before`,{content:this.levelTextToContent(d.text,s.suff,s.id,this.numFormatToCssValue(s.format),o),\"counter-increment\":h,\"font-family\":\"var(--docx-marker-font-family, inherit)\",\"font-size\":\"var(--docx-marker-font-size, inherit)\",\"font-style\":\"var(--docx-marker-font-style, inherit)\",\"font-weight\":\"var(--docx-marker-font-weight, inherit)\",...p})}else c=this.numFormatToCssValue(s.format);e+=this.styleToString(l,{display:\"list-item\",\"list-style-position\":\"inside\",\"list-style-type\":c,...s.pStyle})}for(let[h,u]of i)e+=this.styleToString(h,{\"counter-set\":u.join(\" \")});return r.length>0&&(e+=this.styleToString(this.rootSelector,{\"counter-reset\":r.join(\" \")})),[this.h({tagName:\"#comment\",children:[\"docxjs document numbering styles\"]}),this.h({tagName:\"style\",children:[e]})]}renderStyles(t){var e=\"\";let r=this.styleMap,i=ur(t.filter(l=>l.isDefault),l=>l.target);for(let l of t){var o=l.styles;if(l.linked){var a=l.linked&&r[l.linked];a?o=o.concat(a.styles):this.options.debug&&console.warn(`Can't find linked style ${l.linked}`)}for(let c of o){var s=`${l.target??\"\"}.${l.cssName}${c.mod??\"\"}`;l.target!=c.target&&(s+=` ${c.target}`),s=this.scopeDocumentStyleSelector(s),i[l.target]==l&&(s=`.${this.className} ${l.target}, `+s),e+=this.styleToString(s,c.values)}}return[this.h({tagName:\"#comment\",children:[\"docxjs document styles\"]}),this.h({tagName:\"style\",children:[e]})]}renderNotes(t,e,r,i=\"footnote\"){let o=Array.from(new Set(t)).filter(s=>e[s]&&![\"separator\",\"continuationSeparator\",\"continuationNotice\"].includes(e[s].noteType)&&!this.renderedNoteIds.has(`${i}:${s}`));if(o.length===0)return null;let a=this.currentPart;this.currentPart=r??a;try{let s=o.map(c=>{let h=this.renderElement(e[c]);return h.dataset.docxNoteId=c,h.dataset.docxNoteKind=i,h.dataset.docxNoteFragment=\"0\",this.applyNoteAssignment(h,this.noteNumbering.assignments.get(`${i}:${c}`),!1),this.renderedNoteIds.add(`${i}:${c}`),h}),l=this.h({tagName:\"ol\",children:s});return l.dataset.docxNoteList=i,l}finally{this.currentPart=a}}formatNoteAssignment(t){return Qd(t)}applyNoteAssignment(t,e,r){if(!e)return;let i=this.formatNoteAssignment(e);t.dataset.docxNoteLabel=i,t.dataset.docxNoteCustom=`${e.custom}`,r?t.childNodes?.length?t.textContent=i:t.appendChild(this.h(i)):(e.value!=null&&t.setAttribute(\"value\",`${e.value}`),t.style.listStyleType=e.custom?\"none\":this.numFormatToCssValue(e.properties.format))}renderElement(t){switch(t.type){case A.Paragraph:return this.renderParagraph(t);case A.BookmarkStart:return this.renderBookmarkStart(t);case A.BookmarkEnd:return null;case A.Run:return this.renderRun(t);case A.Table:return this.renderTable(t);case A.Row:return this.renderTableRow(t);case A.Cell:return this.renderTableCell(t);case A.Hyperlink:return this.renderHyperlink(t);case A.SmartTag:return this.renderSmartTag(t);case A.Drawing:return this.renderAnchoredElement(t,this.renderDrawing(t));case A.Image:return this.renderImage(t);case A.Shape:return this.renderShape(t);case A.Chart:return this.renderChart(t);case A.SmartArt:return this.renderSmartArt(t);case A.Ink:return this.renderInk(t);case A.SimpleField:return this.renderSimpleField(t);case A.Instruction:case A.ComplexField:return null;case A.Text:return this.renderText(t);case A.DeletedText:return this.renderDeletedText(t);case A.Tab:return this.renderTab(t);case A.Symbol:return this.renderSymbol(t);case A.Break:return this.renderBreak(t);case A.Footer:return this.renderContainer(t,\"footer\");case A.Header:return this.renderContainer(t,\"header\");case A.Footnote:case A.Endnote:return this.renderContainer(t,\"li\");case A.FootnoteReference:return this.renderFootnoteReference(t);case A.EndnoteReference:return this.renderEndnoteReference(t);case A.NoBreakHyphen:return this.h(\"\\u2011\");case A.SoftHyphen:return this.h(\"\\xAD\");case A.PositionalTab:return this.renderTab(t);case A.Ruby:return this.renderRuby(t);case A.RubyBase:return this.renderContainer(t,\"span\");case A.RubyText:return this.toHTML(t,Dt.html,\"rt\");case A.VmlPicture:return this.renderVmlPicture(t);case A.VmlElement:return this.renderAnchoredElement(t,this.renderVmlElement(t));case A.MmlMath:return this.renderContainerNS(t,Dt.mathML,\"math\",{xmlns:Dt.mathML});case A.MmlMathParagraph:return this.renderMmlMathParagraph(t);case A.MmlFraction:return this.renderContainerNS(t,Dt.mathML,\"mfrac\");case A.MmlBase:return this.renderContainerNS(t,Dt.mathML,t.parent?.type==A.MmlMatrixRow?\"mtd\":\"mrow\");case A.MmlNumerator:case A.MmlDenominator:case A.MmlFunction:case A.MmlLimit:case A.MmlBox:return this.renderContainerNS(t,Dt.mathML,\"mrow\");case A.MmlGroupChar:return this.renderMmlGroupChar(t);case A.MmlLimitLower:return this.renderContainerNS(t,Dt.mathML,\"munder\");case A.MmlLimitUpper:return this.renderContainerNS(t,Dt.mathML,\"mover\");case A.MmlSubSuperscript:return this.renderContainerNS(t,Dt.mathML,\"msubsup\");case A.MmlPhantom:return this.renderMmlPhantom(t);case A.MmlBorderBox:return this.renderContainerNS(t,Dt.mathML,\"menclose\");case A.MmlAccent:return this.renderMmlAccent(t);case A.MmlMatrix:return this.renderContainerNS(t,Dt.mathML,\"mtable\");case A.MmlMatrixRow:return this.renderContainerNS(t,Dt.mathML,\"mtr\");case A.MmlRadical:return this.renderMmlRadical(t);case A.MmlSuperscript:return this.renderContainerNS(t,Dt.mathML,\"msup\");case A.MmlSubscript:return this.renderContainerNS(t,Dt.mathML,\"msub\");case A.MmlDegree:case A.MmlSuperArgument:case A.MmlSubArgument:return this.renderContainerNS(t,Dt.mathML,\"mrow\");case A.MmlFunctionName:return this.renderContainerNS(t,Dt.mathML,\"mi\");case A.MmlDelimiter:return this.renderMmlDelimiter(t);case A.MmlRun:return this.renderMmlRun(t);case A.MmlNary:return this.renderMmlNary(t);case A.MmlPreSubSuper:return this.renderMmlPreSubSuper(t);case A.MmlBar:return this.renderMmlBar(t);case A.MmlEquationArray:return this.renderMllList(t);case A.Inserted:return this.renderInserted(t);case A.Deleted:return this.renderDeleted(t);case A.CommentRangeStart:return this.renderCommentRangeStart(t);case A.CommentRangeEnd:return this.renderCommentRangeEnd(t);case A.CommentReference:return this.renderCommentReference(t);case A.AltChunk:return this.renderAltChunk(t)}return null}renderElements(t,e){if(t==null)return null;t=this.reviewParagraphs(t);let r=[];for(let i=0;i<t.length;i++){let o=t[i].type==A.Paragraph?t[i]:null;if(this.isPositionedParagraphFrame(o)){let s=this.paragraphFrameKey(o),l=[o];for(;i+1<t.length;){let u=t[i+1].type==A.Paragraph?t[i+1]:null;if(!this.isPositionedParagraphFrame(u)||this.paragraphFrameKey(u)!=s)break;l.push(u),i++}let c=l.flatMap(u=>qr(this.renderElement(u)).filter(f=>f!=null)),h=this.h({tagName:\"div\",className:`${this.className}-paragraph-frame`,style:this.paragraphFrameStyle(o),children:c});h.dataset.docxFrameAnchor=`${o.frame.horizontalAnchor??\"text\"}/${o.frame.verticalAnchor??\"text\"}`,h.dataset.docxFrameParagraphs=`${l.length}`,r.push(h);continue}let a=this.tryRenderComplexField(t,i);if(a){r.push(...qr(a.node).filter(s=>s!=null)),i=a.nextIndex-1;continue}r.push(...qr(this.renderElement(t[i])).filter(s=>s!=null))}return e&&r.forEach(i=>e.appendChild(Jr(i)?document.createTextNode(i):i)),r}reviewParagraphs(t){let e=Ce(this.options);if(e==\"all\")return t;let r=[];for(let i of t??[]){let o=r[r.length-1],a=i,s=o?.props?.paragraphMarkRevisions??[],l=e==\"original\"?s.some(c=>c.kind==\"insert\"):o?.props?.deletedParagraphMark;o?.type==A.Paragraph&&i.type==A.Paragraph&&l&&!o.sectionProps&&this.paragraphFrameKey(o)==this.paragraphFrameKey(a)?r[r.length-1]={...a,children:[...o.children??[],...a.children??[]]}:r.push(i)}return r}isPositionedParagraphFrame(t){let e=t?.frame;return!!e&&e.dropCap!=\"drop\"&&!!(e.width||e.height||e.horizontalPosition||e.verticalPosition||e.horizontalAlignment||e.verticalAlignment)}paragraphFrameKey(t){let e=t.frame??{};return JSON.stringify([e.width,e.height,e.horizontalPosition,e.verticalPosition,e.horizontalAnchor,e.verticalAnchor,e.horizontalAlignment,e.verticalAlignment,e.horizontalSpace,e.verticalSpace,e.heightRule,e.wrap])}paragraphFrameStyle(t){let e=t.frame,r={position:\"absolute\",boxSizing:\"border-box\",zIndex:\"2\"},i=e.horizontalAnchor==\"page\",o=e.verticalAnchor==\"page\";return e.width&&(r.width=e.width),e.height&&(e.heightRule==\"exact\"?(r.height=e.height,r.overflow=\"hidden\"):r.minHeight=e.height),e.horizontalPosition?r.left=i?`calc(${e.horizontalPosition} - var(--docx-page-padding-left, 0pt))`:e.horizontalPosition:e.horizontalAlignment==\"center\"?(r.left=\"50%\",r.transform=\"translateX(-50%)\"):e.horizontalAlignment==\"right\"||e.horizontalAlignment==\"outside\"?r.right=\"0\":(e.horizontalAlignment==\"left\"||e.horizontalAlignment==\"inside\")&&(r.left=\"0\"),e.verticalPosition?r.top=o?`calc(${e.verticalPosition} - var(--docx-page-padding-top, 0pt))`:e.verticalPosition:e.verticalAlignment==\"center\"?(r.top=\"50%\",r.transform=`${r.transform??\"\"} translateY(-50%)`.trim()):e.verticalAlignment==\"bottom\"||e.verticalAlignment==\"outside\"?r.bottom=\"0\":(e.verticalAlignment==\"top\"||e.verticalAlignment==\"inside\")&&(r.top=\"0\"),r}tryRenderComplexField(t,e){if(!this.hasFieldChar(t[e],\"begin\"))return null;let r=0,i=!1,o=\"\",a=[];for(let s=e;s<t.length;s++){let l=t[s],c=l.type==A.Run?{...l,fieldRun:!1,children:[]}:null;if(l.type==A.Run){for(let h of l.children??[]){if(h.type==A.ComplexField){let u=h;if(u.charType==\"begin\")r++;else if(u.charType==\"separate\"&&r==1)i=!0;else if(u.charType==\"end\"&&(r--,r==0))return c.children.length>0&&a.push(c),{node:this.renderSimpleField({type:A.SimpleField,instruction:o,lock:!1,dirty:!1,children:a}),nextIndex:s+1};continue}if(!i&&r==1&&h.type==A.Instruction){o+=h.text??\"\";continue}i&&r>0&&c.children.push(h)}c.children.length>0&&a.push(c)}else i&&r>0&&a.push(l)}return null}hasFieldChar(t,e){return t.type==A.Run&&t.children?.some(r=>r.type==A.ComplexField&&r.charType==e)}renderContainer(t,e){return this.h({tagName:e,children:this.renderElements(t.children)})}renderContainerNS(t,e,r,i){return this.h({ns:e,tagName:r,children:this.renderElements(t.children),...i})}effectiveParagraphTabs(t,e){if(!t?.length)return e;if(!e?.length)return t;let r=[...e];for(let i of t){let o=this.parseCssLengthValue(i.position),a=r.findIndex(s=>this.parseCssLengthValue(s.position)==o);a>=0?r[a]=i:r.push(i)}return r.sort((i,o)=>(this.parseCssLengthValue(i.position)??0)-(this.parseCssLengthValue(o.position)??0))}countParagraphTabs(t){let e=0,r=i=>{(i.type==A.Tab||i.type==A.PositionalTab)&&e++;for(let o of i.children??[])r(o)};return r(t),e}isLeaderTabStop(t){return!!t?.leader&&t.leader!=\"none\"&&t.style!=\"clear\"}resolveRenderedTabStop(t,e,r){if(!t?.length)return null;let i=t[Math.min(e,Math.max(t.length-1,0))],o=[...t].reverse().find(c=>this.isLeaderTabStop(c)),a=this.findStyle(this.currentParagraph?.styleName),s=this.isTocParagraphStyle(this.currentParagraph?.styleName,a),l=!!o&&!!(this.currentParagraph?.numbering??a?.paragraphProps?.numbering)&&s;return o?r<=1?s||l?o:i:e>=r-1?o:this.isLeaderTabStop(i)?t.slice(0,Math.min(e+1,t.length)).reverse().find(c=>!this.isLeaderTabStop(c)&&c.style!=\"clear\")??t.find(c=>!this.isLeaderTabStop(c)&&c.style!=\"clear\")??null:i:i}renderParagraph(t){let e=this.findStyle(t.styleName);t.tabs=this.effectiveParagraphTabs(t.tabs,e?.paragraphProps?.tabs);let r=this.currentParagraph,i=this.currentParagraphTabIndex,o=this.currentParagraphTabCount;this.currentParagraph=t,this.currentParagraphTabIndex=0,this.currentParagraphTabCount=this.countParagraphTabs(t);let a=this.renderElements(t.children),s=this.uniformParagraphTextScale(t,e);if(s!=null&&s!=1){let p=this.effectiveParagraphCssValue(t,e,\"text-indent\")??\"0pt\",m=this.effectiveParagraphCssValue(t,e,\"direction\")==\"rtl\",g=this.h({tagName:\"span\",className:`${this.className}-text-scale`,style:{display:\"block\",font:\"inherit\",background:\"none\",border:\"none\",width:`${100/s}%`,transform:`scaleX(${s})`,transformOrigin:m?\"right top\":\"left top\",textIndent:`calc(${p} / ${s})`},children:a});g.dataset.docxTextScale=`${s}`,a=[g]}var l=this.toHTML(t,Dt.html,\"p\",this.wrapTabLeaderChildren(a,!0));if(this.applyTextBoxFontInheritance(t,e,l),this.options.exposeDisplayTargets&&t.displayAddress){let p=this.currentPart??this.document.documentPart;l.setAttribute(\"data-office-target\",`${p.path}#${t.displayAddress}`)}let c=this.effectiveParagraphCssValue(t,e,\"--docx-snap-to-grid\");/^(0|false|off)$/i.test(c??\"\")&&(l.style.letterSpacing=\"normal\"),this.currentParagraph=r,this.currentParagraphTabIndex=i,this.currentParagraphTabCount=o;let h=t.numbering??e?.paragraphProps?.numbering;h&&l.classList.add(this.numberingClass(h.id,h.level));let u=e?.paragraphProps;(t.pageBreakBefore??u?.pageBreakBefore)&&(l.style.breakBefore=\"page\",l.dataset.docxPageBreakBefore=\"true\"),(t.keepLines??u?.keepLines)&&(l.style.breakInside=\"avoid\",l.dataset.docxKeepLines=\"true\"),(t.keepNext??u?.keepNext)&&(l.style.breakAfter=\"avoid\",l.dataset.docxKeepNext=\"true\"),(t.widowControl??u?.widowControl)&&(l.style.orphans=\"2\",l.style.widows=\"2\",l.dataset.docxWidowControl=\"true\"),this.applyDocumentGridLinePitch(t,e,l),this.compatibleTextBoxSpacing&&this.setCssStyle(l,\"text-autospace\",this.textBoxAutospace(t,e));let f=(t.lineSpacing??e?.paragraphProps?.lineSpacing)?.lineRule;this.compatibleTextBoxSpacing&&[\"lines\",\"linesAndChars\"].includes(this.currentSectionProps?.docGrid?.type)&&this.paragraphUsesDocumentGrid(t,e)&&f!=\"exact\"&&f!=\"exactly\"&&(l.dataset.docxTextboxGridPitch=this.currentSectionProps.docGrid.linePitch,l.dataset.docxTextboxBaseLineHeight=l.style.lineHeight??\"\",l.style.flexShrink=\"0\");let d=t.tabs?.find(p=>this.isLeaderTabStop(p));return d&&(l.classList.add(`${this.className}-tab-leader-paragraph`),l.dataset.docxHasTabLeader=\"true\",l.dataset.docxTabLeader=d.leader,l.dataset.docxTabAlign=d.style),this.isTocParagraphStyle(t.styleName,e)&&(l.classList.add(`${this.className}-toc-paragraph`),l.dataset.docxTocEntry=\"true\"),this.hasParagraphRelativeAnchor(t)&&((!l.style.position||l.style.position==\"static\")&&(l.style.position=\"relative\"),l.dataset.docxAnchorContext=\"paragraph\"),t.props?.anchorId&&(l.id=t.props.anchorId,l.setAttribute(\"id\",t.props.anchorId)),l}uniformParagraphTextScale(t,e){if(t.numbering||e?.paragraphProps?.numbering||t.frame||this.effectiveParagraphCssValue(t,e,\"writing-mode\"))return null;let r=\"--docx-text-scale\",i=t.cssStyle?.[r]??this.styleValue(e,\"span\",r)??this.styleValue(e,\"p\",r)??\"1\",o=null,a=(s,l)=>{let c=s.cssStyle?.[r]??this.styleValue(this.findStyle(s.styleName),\"span\",r)??l;switch(s.type){case A.Text:case A.DeletedText:if(!s.text)return!0;let h=Number(c);return!Number.isFinite(h)||h<=0||h>6||o!=null&&o!=h?!1:(o=h,!0);case A.Run:case A.Hyperlink:case A.SmartTag:case A.Inserted:case A.Deleted:return(s.children??[]).every(u=>a(u,c));case A.BookmarkStart:case A.BookmarkEnd:case A.CommentRangeStart:case A.CommentRangeEnd:case A.NoBreakHyphen:case A.SoftHyphen:return!0;case A.Break:return[\"line\",\"textWrapping\"].includes(s.break);default:return!1}};return(t.children??[]).every(s=>a(s,i))?o:null}hasParagraphRelativeAnchor(t){return(t.children??[]).some(e=>(e.type==A.Drawing||e.type==A.VmlElement)&&e.cssStyle?.position==\"absolute\"||this.hasParagraphRelativeAnchor(e))}renderAnchoredElement(t,e){if(e.dataset.docxDrawing=\"true\",t.cssStyle?.position!=\"absolute\"||!t.props?.anchorPosition)return e;let r=t.props.anchorPosition,i={...r,horizontal:{...r.horizontal,offset:r.horizontal.offset??(e.style.left||\"0pt\")},vertical:{...r.vertical,offset:r.vertical.offset??(e.style.top||\"0pt\")}},o=`${this.anchorLayouts.size}`;this.anchorLayouts.set(o,i),e.dataset.docxAnchorId=o,e.dataset.docxLayoutInCell=`${r.layoutInCell!==!1}`;let a=h=>/^[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)$/.test(h)?`${h}pt`:h;e.style.left=`calc(${a(i.horizontal.offset)} + var(--docx-anchor-origin-x, 0px))`,e.style.top=`calc(${a(i.vertical.offset)} + var(--docx-anchor-origin-y, 0px))`;let s=[\"top\",\"bottom\"].map(h=>{let u=this.h({tagName:\"span\",style:{display:\"inline-block\",width:\"0px\",height:\"0px\",padding:\"0px\",border:\"0px\",verticalAlign:h}});return u.dataset.docxAnchorLine=h,u}),l=this.h({tagName:\"span\",children:s});l.dataset.docxAnchorMarker=\"true\",l.setAttribute(\"aria-hidden\",\"true\");let c=this.h({tagName:\"span\",children:[l,e]});return c.dataset.docxDrawing=\"true\",c}refreshAnchors(t){_p(t,this.className,e=>this.ownsLayoutElement(e));for(let e of Array.from(t.querySelectorAll(\"[data-docx-anchor-id]\"))){if(!this.ownsLayoutElement(e))continue;let r=this.anchorLayouts.get(e.dataset.docxAnchorId);r&&Op(e,r,this.className)}}ownsLayoutElement(t){for(let e=t;e;e=e.parentElement){let r=yr.get(e);if(r)return r==this}return!0}textBoxGridLineHeight(t,e){return!Number.isFinite(t)||!Number.isFinite(e)||t<0||e<=0?null:Math.max(1,Math.ceil((t-1/64)/e))*e}refreshTextBoxLineGrid(t){let e=t.ownerDocument?.defaultView,r=Array.from(t.querySelectorAll(\"[data-docx-textbox-grid-pitch]\")).filter(l=>this.ownsLayoutElement(l));if(!e||!r.length)return;let i=t.ownerDocument.createElement(\"span\");Object.assign(i.style,{position:\"absolute\",visibility:\"hidden\",pointerEvents:\"none\",display:\"inline-block\",whiteSpace:\"pre\",width:\"max-content\",margin:\"0\",padding:\"0\",border:\"0\",minHeight:\"0\"}),i.setAttribute(\"aria-hidden\",\"true\");let o=t.getRootNode();(o.nodeType==11&&\"host\"in o?o:t.ownerDocument.body).appendChild(i);let s=(l,c,h=\"normal\")=>{let u=e.getComputedStyle(c);Object.assign(l.style,{fontFamily:u.fontFamily,fontSize:u.fontSize,fontWeight:u.fontWeight,fontStyle:u.fontStyle,fontStretch:u.fontStretch,verticalAlign:u.verticalAlign,lineHeight:h})};try{for(let l of r){if(l.querySelector(\"svg, img, table, math, [data-docx-drawing]\"))continue;this.preserveGridInlineMetrics(l),i.style.height=l.dataset.docxTextboxGridPitch;let c=parseFloat(e.getComputedStyle(i).height);s(i,l,l.dataset.docxTextboxBaseLineHeight||\"normal\"),i.style.height=\"auto\",i.replaceChildren();let h=t.ownerDocument.createTreeWalker(l,4);for(;h.nextNode();){let d=h.currentNode,p=d.parentElement;if(!d.textContent||!p||!Array.from(p.getClientRects()).some(b=>b.width>0&&b.height>0))continue;let m=p==l?l.dataset.docxTextboxBaseLineHeight:p.style.lineHeight,g=t.ownerDocument.createElement(\"span\");s(g,p,m||\"normal\"),g.style.whiteSpace=\"pre\",g.textContent=d.textContent.replace(/[\\r\\n]/g,\" \"),i.appendChild(g)}i.hasChildNodes()||(i.textContent=\"\\xA0\");let u=parseFloat(e.getComputedStyle(i).height),f=this.textBoxGridLineHeight(u,c);f!=null&&(l.style.lineHeight=`${Math.round(f*1e3)/1e3}px`)}}finally{i.remove()}}async prepareLayout(t,e=Ai(t)){if(!(!t.isConnected||!e.isCurrent())&&(this.layoutGenerations.has(e.signal)||(this.layoutGenerations.set(e.signal,e),e.signal.addEventListener(\"abort\",()=>this.layoutGenerations.delete(e.signal),{once:!0})),await this.yieldToBrowser(),!(!t.isConnected||!e.isCurrent()))){if(this.commentLayer&&(yr.set(this.commentLayer.root,this),!this.commentLayer.root.parentElement)){let r=[t,...Array.from(t.querySelectorAll(\"[data-docx-layout-root]\"))].find(i=>yr.get(i)===this&&i.classList.contains(`${this.className}-wrapper`));r||(this.commentLayer.root.style.position=\"fixed\"),(r??t).appendChild(this.commentLayer.root)}this.refreshTextBoxLineGrid(t),this.refreshTabStops(t),this.refreshAnchors(t),await this.commentLayer?.bind(t,e)}}disposeLayout(){for(let e of Array.from(this.layoutGenerations.values()))e.cancel();this.layoutGenerations.clear(),this.commentLayer?.root.remove();let t=globalThis.CSS?.highlights;t&&this.commentHighlight&&t.get(`${this.className}-comments`)===this.commentHighlight&&t.delete(`${this.className}-comments`)}renderHyperlink(t){let e=this.renderHyperlinkChildren(t.children),r=this.h(this.toH(t,Dt.html,\"a\",this.wrapTabLeaderChildren(e))),i=\"\",o=!1;return t.id&&(i=(this.currentPart??this.document.documentPart)?.rels?.find(l=>l.id==t.id&&l.targetMode===\"External\")?.target??i,o=!!i),!i&&t.anchor&&(i=`#${t.anchor}`),this.applyHyperlinkTarget(r,i,o),r}renderHyperlinkChildren(t){this.hyperlinkDepth++;try{return this.renderElements(t)}finally{this.hyperlinkDepth--}}applyHyperlinkTarget(t,e,r){let i=xm(e);if(i){if(r&&this.options.externalLinkPolicy==\"block\"){t.setAttribute(\"data-docx-external-href\",i),t.setAttribute(\"aria-disabled\",\"true\");return}t.setAttribute(\"href\",i)}}wrapTabLeaderChildren(t,e=!1){if(!t?.length||t.some(l=>this.hasCssClass(l,`${this.className}-tab-leader-title`)))return t;let r=-1;for(let l=t.length-1;l>=0;l--)if(this.isTabLeaderNode(t[l])){r=l;break}if(r<0)return this.wrapLiteralLeaderChildren(t,e)??t;let i=t.slice(0,r),o=t[r],a=t.slice(r+1);this.addCssClass(o,`${this.className}-tab-leader-fill`);let s=[this.h({tagName:\"span\",className:`${this.className}-tab-leader-title`,children:i}),o,this.h({tagName:\"span\",className:`${this.className}-tab-leader-page`,children:a})];return e?[this.h({tagName:\"span\",className:`${this.className}-tab-leader-line`,children:s})]:s}wrapLiteralLeaderChildren(t,e=!1){let r=this.findLastTextualNodeIndex(t);if(r<0)return null;let i=t[r],o=this.nodeTextContent(i),a=/^(.*?)([.\\u2026\\u00b7\\u2022\\u2027\\u2219\\u22c5]{6,})(\\s*[0-90-9IVXLCDMivxlcdm]+)\\s*$/.exec(o);if(!a)return null;let[,s,l,c]=a,h=t.slice(0,r),u=t.slice(r+1),f=[...h];s&&f.push(this.cloneTextNodeWithText(i,s));let d=this.h({tagName:\"span\",className:`${this.tabStopClass()} ${this.className}-tab-leader-fill`,children:[\"\\xA0\"],style:this.nodeStyleObject(i)});d.dataset.docxTab=\"true\",d.dataset.docxTabLeader=this.literalLeaderKind(l),d.dataset.docxLiteralLeader=\"true\";let p=[this.h({tagName:\"span\",className:`${this.className}-tab-leader-title`,children:f}),d,this.h({tagName:\"span\",className:`${this.className}-tab-leader-page`,children:[this.cloneTextNodeWithText(i,c.trim()),...u]})];return e?[this.h({tagName:\"span\",className:`${this.className}-tab-leader-line ${this.className}-literal-leader-line`,children:p})]:p}findLastTextualNodeIndex(t){for(let e=t.length-1;e>=0;e--)if(this.nodeTextContent(t[e]).trim())return e;return-1}literalLeaderKind(t){return/^[.\\u2026]+$/.test(t)?\"dot\":\"middleDot\"}cloneTextNodeWithText(t,e){return this.nodeElementName(t)?this.h({tagName:this.nodeElementName(t),className:this.nodeClassName(t),style:this.nodeStyleObject(t),children:[e]}):this.h({tagName:\"span\",children:[e]})}nodeElementName(t){let e=t,r=e?.tagName??e?.nodeName;return r&&!String(r).startsWith(\"#\")?String(r).toLowerCase():\"\"}nodeStyleObject(t){let e=t?.style,r={};if(!e)return r;if(typeof e.length==\"number\"&&typeof e.getPropertyValue==\"function\")for(let i=0;i<e.length;i++){let o=e.item(i),a=e.getPropertyValue(o);a&&(r[o]=a)}else for(let[i,o]of Object.entries(e))o!=null&&o!==\"\"&&(r[i]=String(o));return r}nodeTextContent(t){let e=t;return e?typeof e.textContent==\"string\"?e.textContent:typeof e.text==\"string\"?e.text:Array.from(e.children??e.childNodes??[]).map(r=>this.nodeTextContent(r)).join(\"\"):\"\"}isTabLeaderNode(t){let e=this.nodeDatasetValue(t,\"docxTabLeader\");return this.hasCssClass(t,this.tabStopClass())&&!!e&&e!=\"none\"}nodeDatasetValue(t,e){let r=t,i=r?.dataset?.[e];if(i!=null)return String(i);let o=\"data-\"+e.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());return typeof r?.getAttribute==\"function\"?r.getAttribute(o):r?.attributes?.[o]}hasCssClass(t,e){let r=t;return!r||!e?!1:typeof r.classList?.contains==\"function\"?r.classList.contains(e):this.nodeClassName(r).split(/\\s+/).includes(e)}addCssClass(t,e){let r=t;if(!r||!e||this.hasCssClass(t,e))return;if(typeof r.classList?.add==\"function\"){r.classList.add(e);return}let i=Kr(this.nodeClassName(r),e);typeof r.setAttribute==\"function\"?r.setAttribute(\"class\",i):(r.attributes??(r.attributes={}),r.attributes.class=i)}nodeClassName(t){return typeof t?.className==\"string\"?t.className:typeof t?.className?.baseVal==\"string\"?t.className.baseVal:typeof t?.getAttribute==\"function\"?t.getAttribute(\"class\")??\"\":t?.attributes?.class??\"\"}renderSmartTag(t){return this.renderContainer(t,\"span\")}renderCommentRangeStart(t){if(!this.options.renderComments)return null;let e=typeof Range>\"u\"?null:new Range;e&&this.commentHighlight?.add(e);let r=this.h({tagName:\"#comment\",children:[\"start of DOCX comment\"]});return e&&(this.later(()=>e.setStart(r,0)),this.commentMap[t.id]=e),r}renderCommentRangeEnd(t){if(!this.options.renderComments)return null;let e=this.commentMap[t.id],r=this.document.commentsPart?.commentMap[t.id],i=this.h({tagName:\"span\",className:`${this.className}-comment-anchor`});return i.dataset.docxChangeKind=\"comment\",i.dataset.docxChangeId=`${t.id}`,i.setAttribute(\"aria-hidden\",\"true\"),i.style.setProperty(\"--docx-review-color\",Fn(r?.author)),r?.author&&(i.dataset.docxChangeAuthor=r.author),r?.date&&(i.dataset.docxChangeDate=r.date),this.later(()=>e?.setEnd(i,0)),i}renderCommentReference(t){if(!this.options.renderComments||this.renderingComment)return null;let e=this.document.commentsPart?.commentMap[t.id];if(!e)return null;this.commentLayer||(this.commentLayer=new Ta(this.className,()=>this.h({tagName:\"div\",className:`${this.className} ${this.className}-comment-layer`}),a=>{this.refreshTabStops(a),this.refreshAnchors(a)}));let r=`${e.id}`,i=this.h({tagName:\"span\",className:`${this.className}-comment-ref`,children:[\"\\u{1F4AC}\"]});i.dataset.docxChangeKind=\"comment\",i.dataset.docxChangeId=r,i.style.setProperty(\"--docx-review-color\",Fn(e.author)),e.author&&(i.dataset.docxChangeAuthor=e.author),e.date&&(i.dataset.docxChangeDate=e.date),this.hyperlinkDepth||i.setAttribute(\"tabindex\",\"0\"),i.setAttribute(\"role\",\"note\"),i.setAttribute(\"aria-label\",e.author?`Comment by ${e.author}`:\"Comment\"),i.setAttribute(\"aria-expanded\",\"false\");let o=this.commentPresentations.get(r);if(!o){let a=`${this.className}-comment-${++n.nextCommentId}`,s=this.h({tagName:\"summary\",children:[\"\\u{1F4AC}\"]});s.setAttribute(\"aria-label\",e.author?`Comment by ${e.author}`:\"Comment\");let l=e.date?new Date(e.date):null,c=this.h({tagName:\"article\",children:this.renderCommentContent(e)});c.dataset.docxCommentStory=\"true\";let h=this.h({tagName:\"div\",className:`${this.className}-comment-body`,children:[this.h({tagName:\"div\",className:`${this.className}-comment-author`,children:[e.author??\"\"]}),this.h({tagName:\"div\",className:`${this.className}-comment-date`,children:[l&&Number.isFinite(l.getTime())?l.toLocaleString():e.date??\"\"]}),c]});h.setAttribute(\"id\",a),h.setAttribute(\"role\",\"note\");let u=this.h({tagName:\"details\",className:`${this.className}-comment-popover`,children:[s,h]});u.dataset.docxCommentPopup=a,Object.assign(u.dataset,{docxChangeKind:\"comment\",docxChangeId:r}),e.author&&(u.dataset.docxChangeAuthor=e.author),e.date&&(u.dataset.docxChangeDate=e.date),o={key:a,descriptionId:a,reference:i,references:[],popup:u,summary:s,body:h,revision:0,open:!1},this.commentLayer.add(o),this.commentPresentations.set(r,o)}return i.dataset.docxCommentReference=o.key,o.references.push(i),i.setAttribute(\"aria-describedby\",o.descriptionId),i.setAttribute(\"aria-controls\",o.descriptionId),i}cloneRenderData(t,e=new Map){if(!t||typeof t!=\"object\")return t;if(e.has(t))return e.get(t);let r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));e.set(t,r);for(let i of Object.keys(t))i!==\"parent\"&&Object.defineProperty(r,i,{value:this.cloneRenderData(t[i],e),writable:!0,enumerable:!0,configurable:!0});return r}renderCommentContent(t){let e={part:this.currentPart,paragraph:this.currentParagraph,index:this.currentParagraphTabIndex,count:this.currentParagraphTabCount,rendering:this.renderingComment};this.currentPart=this.document.commentsPart,this.currentParagraph=null,this.renderingComment=!0;try{let r=this.cloneRenderData(t);return this.processElement(r),this.renderElements(r.children)??[]}finally{this.currentPart=e.part,this.currentParagraph=e.paragraph,this.currentParagraphTabIndex=e.index,this.currentParagraphTabCount=e.count,this.renderingComment=e.rendering}}renderAltChunk(t){if(!this.options.renderAltChunks)return null;var e=this.h({tagName:\"iframe\",sandbox:\"\",referrerPolicy:\"no-referrer\",loading:\"lazy\"});return this.tasks.push(this.document.loadAltChunk(t.id,this.currentPart).then(r=>{Hd(e,r)})),e}renderDrawing(t){t.cssStyle?.[\"shape-outside\"]&&(t.className=Kr(t.className,`${this.className}-float-wrap`));var e=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\");(t.cssStyle?.float||t.cssStyle?.position==\"absolute\")&&(e.dataset.docxFloat=\"true\");let r=t.props?.anchorPosition;r?.vertical?.relative&&(e.dataset.docxAnchorVertical=r.vertical.relative),r?.horizontal?.relative&&(e.dataset.docxAnchorHorizontal=r.horizontal.relative),e.style.display||(e.style.display=\"inline-block\"),e.style.position||(e.style.position=\"relative\"),e.style.textIndent=\"0px\";for(let i of Array.from(e.children??[]))i.style.verticalAlign=\"top\";return e}renderImage(t){let e=t.srcRect,r=e?1-e[0]-e[2]:1,i=e?1-e[1]-e[3]:1,o=e?.length===4&&e.some(c=>c!==0)&&e.every(Number.isFinite)&&r>0&&i>0&&Number.isFinite(100/r)&&Number.isFinite(100/i),a=this.toHTML(t,Dt.html,o?\"span\":\"img\",[]),s=o?this.h({tagName:\"img\"}):a,l=t.cssStyle?.transform;return t.alt&&(s.alt=t.alt),t.title&&(s.title=t.title),o&&(a.setAttribute(\"data-docx-image-crop\",\"true\"),a.style.overflow=\"hidden\",a.style.position=\"relative\",Object.assign(s.style,{position:\"absolute\",display:\"block\",margin:\"0\",left:`${-100*e[0]/r}%`,top:`${-100*e[1]/i}%`,width:`${100/r}%`,height:`${100/i}%`,maxWidth:\"none\",maxHeight:\"none\",objectFit:\"fill\"}),a.appendChild(s)),t.rotation&&(l=`rotate(${t.rotation}deg) ${l??\"\"}`),a.style.transform=l?.trim(),this.document&&t.src&&this.tasks.push(this.document.loadDocumentImage(t.src,this.currentPart,this.options.externalResourcePolicy).then(c=>{c&&s.setAttribute(\"src\",c)})),a}renderShape(t){if(t.props?.dmlSvg)return this.renderDmlSvgShape(t);let e=t.props?.dmlTextBox?[this.renderDmlTextBox(t)]:null,r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",e);return r.style.display||(r.style.display=\"inline-block\"),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r}renderDmlTextBox(t){let e=this.currentParagraph,r=this.compatibleTextBoxSpacing;this.currentParagraph=null,this.compatibleTextBoxSpacing=t.props?.textCompatibleLineSpacing===!0;let i;try{i=this.renderElements(t.children)}finally{this.currentParagraph=e,this.compatibleTextBoxSpacing=r}let o=this.h({tagName:\"div\",className:`${this.className}-shape-textbox`,style:{\"box-sizing\":\"border-box\",display:\"flex\",\"flex-direction\":\"column\",\"justify-content\":t.props?.textVerticalAlign??\"flex-start\",\"align-items\":\"stretch\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...t.props?.textInsets??{}},children:i});o.dataset.docxShapeTextbox=\"true\",o.setAttribute(\"xmlns\",Dt.html);let a=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\",overflow:\"hidden\"}});a.setAttribute(\"focusable\",\"false\");let s=this.createSvgElement(\"foreignObject\");return s.setAttribute(\"width\",\"100%\"),s.setAttribute(\"height\",\"100%\"),s.appendChild(o),a.appendChild(s),a}renderDmlSvgShape(t){let e=this.createSvgElement(\"svg\",{style:t.cssStyle}),r=t.props??{};e.setAttribute(\"viewBox\",r.viewBox??\"0 0 1 1\"),e.setAttribute(\"preserveAspectRatio\",\"none\"),e.setAttribute(\"focusable\",\"false\"),t.title&&e.appendChild(this.createSvgElement(\"title\",null,[t.title])),t.alt&&(e.setAttribute(\"role\",\"img\"),e.setAttribute(\"aria-label\",t.alt));let i=this.createSvgElement(\"path\");return i.setAttribute(\"d\",r.pathD??\"\"),i.setAttribute(\"fill\",this.darkenColorAttr(r.fill??\"none\")),i.setAttribute(\"stroke\",this.darkenColorAttr(r.stroke??\"none\")),i.setAttribute(\"stroke-width\",r.strokeWidth??\"0\"),i.setAttribute(\"stroke-linejoin\",\"round\"),i.setAttribute(\"stroke-linecap\",\"round\"),r.strokeDasharray&&i.setAttribute(\"stroke-dasharray\",r.strokeDasharray),e.appendChild(i),e}renderChart(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-chart`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"Chart\")),t.id){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipXml(t.id,i).then(o=>{r.textContent=\"\",r.appendChild(o?this.renderChartSvg(o):this.renderGraphicLoading(\"Chart\"))}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"Chart\"))}))}return r}renderSmartArt(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-smartart`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"SmartArt\")),t.dataId){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipXml(t.dataId,i).then(o=>{r.textContent=\"\",r.appendChild(o?this.renderSmartArtSvg(o):this.renderGraphicLoading(\"SmartArt\"))}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"SmartArt\"))}))}return r}renderInk(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-ink`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"Ink\")),t.id){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipText(t.id,i).then(o=>{if(r.textContent=\"\",o?.trim().startsWith(\"<\"))try{r.appendChild(this.renderInkSvg(Ra(o,!0)));return}catch{}return this.document.loadRelationshipBlobUrl(t.id,i,this.options.externalResourcePolicy).then(a=>{r.textContent=\"\",a?r.appendChild(this.h({tagName:\"img\",src:a,alt:t.alt??\"Ink\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}})):r.appendChild(this.renderGraphicLoading(\"Ink\"))})}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"Ink\"))}))}return r}renderGraphicLoading(t){return this.h({tagName:\"span\",style:{display:\"inline-flex\",\"align-items\":\"center\",\"justify-content\":\"center\",width:\"100%\",height:\"100%\",\"min-width\":\"2in\",\"min-height\":\"1in\",border:\"1px solid currentColor\"},children:[`[${t}]`]})}renderChartSvg(t){let e=t.documentElement,r=this.detectChartType(e),i=this.parseChartSeries(e,r),o=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});o.setAttribute(\"viewBox\",\"0 0 640 360\"),o.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");let a=this.extractChartTitle(e);if(a){let f=this.svgText(a,320,24,\"middle\",\"14px\",\"bold\");f.setAttribute(\"data-docx-chart-title\",\"true\"),o.appendChild(f)}if(!i.length||i.every(f=>!f.values.length))return o.appendChild(this.svgText(\"Chart\",320,180,\"middle\",\"18px\")),o;let s=e.localName==\"chart\"?e:this.chartChild(e,\"chart\"),l=this.chartChild(s,\"plotArea\"),c=this.chartChildren(l).filter(f=>f.localName.endsWith(\"Chart\"));if(c.length>1&&c.every(f=>{let d=this.resolveChartAxes(e,f.localName,f),p=this.chartChild(f,\"barDir\")?.getAttribute(\"val\"),m=this.chartChild(f,\"grouping\")?.getAttribute(\"val\");return d?.category&&d.value&&[\"barChart\",\"lineChart\"].includes(f.localName)&&(!p||p==\"col\")&&![\"stacked\",\"percentStacked\"].includes(m)}))return this.drawCombinedChartAxes(o,e,c),o;let u=this.resolveChartAxes(e,r);return r==\"lineChart\"&&u?.category?.localName==\"dateAx\"?this.drawDateLineChart(o,i,u,{seriesNodes:this.chartChildren(this.chartChild(l,r),\"ser\")}):r==\"pieChart\"||r==\"doughnutChart\"?this.drawPieChart(o,i[0]):[\"lineChart\",\"scatterChart\",\"areaChart\"].includes(r)?this.drawLineChart(o,i,r==\"areaChart\"):this.drawBarChart(o,i),this.drawChartAxisTitles(o,u),o}chartChildren(t,e){return Array.from(t?.childNodes??[]).filter(r=>r.nodeType==1&&Ti.includes(r.namespaceURI)&&(!e||r.localName==e))}chartChild(t,e){return this.chartChildren(t,e)[0]??null}chartDescendant(t,e){return t?Array.from(t.getElementsByTagName(\"*\")).find(r=>r.localName==e&&Ti.includes(r.namespaceURI))??null:null}detectChartType(t){return[\"barChart\",\"bar3DChart\",\"lineChart\",\"pieChart\",\"doughnutChart\",\"areaChart\",\"scatterChart\",\"ofPieChart\",\"radarChart\"].find(r=>t.localName==r&&Ti.includes(t.namespaceURI)||this.chartDescendant(t,r))??\"barChart\"}parseChartSeries(t,e){let r=t.localName==e&&Ti.includes(t.namespaceURI)?t:this.chartDescendant(t,e);return this.chartChildren(r,\"ser\").map((i,o)=>{let a=this.chartCacheValues(this.chartChild(i,\"cat\")??this.chartChild(i,\"xVal\")),s=this.chartCacheValues(this.chartChild(i,\"val\")??this.chartChild(i,\"yVal\")).map(l=>l.trim()&&Number.isFinite(Number(l))?Number(l):NaN);return{name:this.chartText(this.chartChild(i,\"tx\"))||`Series ${o+1}`,categories:a.length?a:s.map((l,c)=>`${c+1}`),values:s}})}chartCacheValues(t){if(!t)return[];let e=[\"strCache\",\"numCache\",\"strLit\",\"numLit\"].map(c=>this.chartDescendant(t,c)).find(Boolean)??t,r=2e4,i=this.chartChild(e,\"ptCount\")?.getAttribute(\"val\")??\"\",o=/^\\d+$/.test(i)?Math.min(Number(i),r):0,a=[];for(let c of this.chartChildren(e,\"pt\")){let h=c.getAttribute(\"idx\")??\"\";if(!/^\\d+$/.test(h))continue;let u=Number(h);!Number.isSafeInteger(u)||u>=r||(o=Math.max(o,u+1),a.push({index:u,value:this.chartChild(c,\"v\")?.textContent??\"\"}))}let s=Array(o).fill(\"\"),l=new Set;for(let c of a)l.has(c.index)||(s[c.index]=c.value),l.add(c.index);return s}chartText(t){if(!t)return\"\";let e=this.chartCacheValues(t);return e.length?e.join(\" \"):Array.from(t.getElementsByTagName(\"*\")).filter(i=>i.localName==\"t\"&&Yo.includes(i.namespaceURI)).map(i=>i.textContent).filter(Boolean).join(\" \").trim()||this.chartDescendant(t,\"v\")?.textContent?.trim()||\"\"}chartNumber(t,e){let r=this.chartChild(t,e)?.getAttribute(\"val\");return r!=null&&r.trim()&&Number.isFinite(Number(r))?Number(r):null}chartBoolean(t){return!!t&&![\"0\",\"false\",\"off\"].includes((t.getAttribute(\"val\")??\"1\").toLowerCase())}chartTitleText(t){let e=this.chartChild(this.chartChild(t,\"tx\"),\"rich\");return e?Array.from(e.childNodes).filter(r=>r.nodeType==1&&r.localName==\"p\"&&Yo.includes(r.namespaceURI)).map(r=>Array.from(r.getElementsByTagNameNS(r.namespaceURI,\"t\")).map(i=>i.textContent??\"\").join(\"\")).join(`\n`):this.chartText(t)}extractChartTitle(t){let e=t.localName==\"chart\"?t:this.chartChild(t,\"chart\");return this.chartTitleText(this.chartChild(e,\"title\"))}resolveChartAxes(t,e,r){let i=t.localName==\"chart\"?t:this.chartChild(t,\"chart\"),o=this.chartChild(i,\"plotArea\"),a=r??this.chartChild(o,e);if(!a)return null;let s=this.chartChildren(a,\"axId\").map(u=>u.getAttribute(\"val\")),l=this.chartChildren(o).filter(u=>/^(catAx|dateAx|valAx)$/.test(u.localName)&&s.includes(this.chartChild(u,\"axId\")?.getAttribute(\"val\"))),c=l.find(u=>u.localName==\"dateAx\")??l.find(u=>u.localName==\"catAx\")??null,h=l.find(u=>u.localName==\"valAx\"&&(!c||this.chartChild(c,\"crossAx\")?.getAttribute(\"val\")==this.chartChild(u,\"axId\")?.getAttribute(\"val\")))??l.find(u=>u.localName==\"valAx\")??null;return{category:c,value:h,date1904:this.chartBoolean(this.chartChild(t,\"date1904\"))}}chartValueBounds(t){let e=0,r=0;for(let i of t)for(let o of i.values)Number.isFinite(o)&&(e=Math.min(e,o),r=Math.max(r,o));return{min:e,max:e==r?e+1:r}}drawCategoryLabels(t,e,r,i){let o=e.map((c,h)=>({text:c,index:h})).filter(c=>c.text.trim());if(!o.length)return;let a=o[o.length-1],s=r(a.index)-this.chartLegendTextWidth(a.text)/2,l=-1/0;o.forEach((c,h)=>{let u=r(c.index),f=this.chartLegendTextWidth(c.text)/2;if(h>0&&h<o.length-1&&(u-f<l+3||u+f+3>s))return;let d=this.svgText(c.text,u,i,\"middle\",\"10px\");d.setAttribute(\"data-docx-chart-category-index\",`${c.index}`),t.appendChild(d),l=u+f})}drawBarChart(t,e){let r=e[0]?.categories??[],i=Math.max(1,r.length,...e.map(h=>h.values.length)),o=this.chartValueBounds(e),a=h=>300-(h-o.min)/(o.max-o.min)*230,s=a(0),l=540/i,c=l/Math.max(e.length+1,2);t.appendChild(this.svgLine(60,s,600,s)),t.appendChild(this.svgLine(60,300,60,70)),e.forEach((h,u)=>h.values.forEach((f,d)=>{if(!Number.isFinite(f))return;let p=a(f),m=this.createSvgElement(\"rect\");m.setAttribute(\"x\",`${60+d*l+u*c+c*.2}`),m.setAttribute(\"y\",`${Math.min(s,p)}`),m.setAttribute(\"width\",`${c*.8}`),m.setAttribute(\"height\",`${Math.abs(p-s)}`),m.setAttribute(\"data-docx-chart-point-index\",`${d}`),m.style.fill=this.chartColor(u),t.appendChild(m)})),this.drawCategoryLabels(t,r,h=>60+(h+.5)*l,318),this.drawBottomLegend(t,e.map(h=>h.name),335)}drawLineChart(t,e,r=!1){let i=this.chartValueBounds(e),o=c=>300-(c-i.min)/(i.max-i.min)*230,a=o(0),s=Math.max(1,...e.map(c=>Math.max(c.values.length,c.categories.length))),l=540/Math.max(s-1,1);t.appendChild(this.svgLine(60,a,600,a)),t.appendChild(this.svgLine(60,300,60,70)),e.forEach((c,h)=>{let u=[],f=()=>{if(!u.length)return;let d=u.map((m,g)=>`${g?\"L\":\"M\"}${m[0]},${m[1]}`).join(\" \");if(r&&u.length>1){let m=this.createSvgElement(\"path\");m.setAttribute(\"d\",`${d} L${u[u.length-1][0]},${a} L${u[0][0]},${a} Z`),m.style.fill=this.chartColor(h),m.style.opacity=\"0.25\",t.appendChild(m)}let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d),p.style.stroke=this.chartColor(h),p.style.strokeWidth=\"2\",p.style.fill=\"none\",t.appendChild(p),u=[]};c.values.forEach((d,p)=>{if(!Number.isFinite(d)){f();return}let m=60+p*l,g=o(d);u.push([m,g]);let b=this.createSvgElement(\"circle\");b.setAttribute(\"cx\",`${m}`),b.setAttribute(\"cy\",`${g}`),b.setAttribute(\"r\",\"3\"),b.setAttribute(\"data-docx-chart-point-index\",`${p}`),b.style.fill=this.chartColor(h),t.appendChild(b)}),f()}),this.drawCategoryLabels(t,e[0]?.categories??[],c=>60+c*l,318),this.drawBottomLegend(t,e.map(c=>c.name),335)}drawPieChart(t,e){let r=e.values.reduce((o,a)=>o+(Number.isFinite(a)?Math.max(0,a):0),0)||1,i=-90;e.values.forEach((o,a)=>{if(!Number.isFinite(o)||o<0)return;let s=o/r*360,l=this.createSvgElement(s==360?\"circle\":\"path\");s==360?(l.setAttribute(\"cx\",\"300\"),l.setAttribute(\"cy\",\"180\"),l.setAttribute(\"r\",\"110\")):l.setAttribute(\"d\",this.pieSlicePath(300,180,110,i,i+s)),l.setAttribute(\"data-docx-chart-point-index\",`${a}`),l.style.fill=this.chartColor(a),t.appendChild(l),this.drawLegend(t,e.categories[a]||`${a+1}`,a,450,90+a*22),i+=s})}drawCombinedChartAxes(t,e,r){let i=0,o=[];for(let a of r){let s=this.resolveChartAxes(e,a.localName,a),l=this.parseChartSeries(a,a.localName);if(!s?.category||!s.value||!l.length)continue;let c=this.createSvgElement(\"g\");c.setAttribute(\"data-docx-chart-axis-group\",a.localName),c.setAttribute(\"data-docx-chart-value-axis-id\",this.chartChild(s.value,\"axId\")?.getAttribute(\"val\")??\"\"),t.appendChild(c),this.drawDateLineChart(c,l,s,{type:a.localName,group:a,colorOffset:i,noLegend:!0,seriesNodes:this.chartChildren(a,\"ser\")}),this.drawChartAxisTitles(t,s),i+=l.length,o.push(...l.map(h=>h.name))}this.drawBottomLegend(t,o,335),this.syncChartAxisLegend(t)}drawDateLineChart(t,e,r,i={}){let o=r.category,a=r.value,s=o?.localName!=\"dateAx\",l=e.map(J=>J.categories.map(lt=>lt.trim()&&Number.isFinite(Number(lt))?Number(lt):NaN)),c=l.flat().filter(Number.isFinite);if(!s&&!c.length){this.drawLineChart(t,e);return}let h=e.reduce((J,lt)=>Math.max(J,lt.values.length,lt.categories.length),1),u=this.chartChild(o,\"scaling\"),f=this.chartChild(a,\"scaling\"),d=s?0:this.chartNumber(u,\"min\")??c.reduce((J,lt)=>Math.min(J,lt),1/0),p=s?h:this.chartNumber(u,\"max\")??c.reduce((J,lt)=>Math.max(J,lt),-1/0);p<=d&&(p=d+1);let m=this.chartValueBounds(e),g=this.chartNumber(f,\"min\")??m.min,b=this.chartNumber(f,\"max\")??m.max;if(b<=g&&(g=m.min,b=m.max),!Number.isFinite(p-d)||!Number.isFinite(b-g))return;let T=this.chartChild(u,\"orientation\")?.getAttribute(\"val\")==\"maxMin\",S=this.chartChild(f,\"orientation\")?.getAttribute(\"val\")==\"maxMin\",I=J=>{let lt=(J-d)/(p-d);return 60+(T?1-lt:lt)*540},O=J=>{let lt=(J-g)/(b-g);return 300-(S?1-lt:lt)*230},$=(J,lt)=>I(s?lt+.5:J),k=this.chartChild(a,\"axPos\")?.getAttribute(\"val\")==\"r\",W=this.chartBoolean(this.chartChild(o,\"delete\")),U=this.chartBoolean(this.chartChild(a,\"delete\")),v=this.chartChild(a,\"crosses\")?.getAttribute(\"val\"),_=this.chartChild(o,\"crosses\")?.getAttribute(\"val\"),y=Math.min(b,Math.max(g,this.chartNumber(a,\"crossesAt\")??(v==\"max\"?b:v==\"min\"?g:0))),H=Math.min(p,Math.max(d,this.chartNumber(o,\"crossesAt\")??(_==\"max\"?p:d)));if(W||t.appendChild(this.svgLine(60,O(y),600,O(y))),!U){let J=k?600:I(H);t.appendChild(this.svgLine(J,300,J,70))}t.setAttribute(\"data-docx-chart-x-range\",`${d},${p}`),t.setAttribute(\"data-docx-chart-y-range\",`${g},${b}`);let nt=this.createSvgElement(\"svg\");for(let[J,lt]of Object.entries({x:60,y:70,width:540,height:230,viewBox:\"60 70 540 230\",overflow:\"hidden\"}))nt.setAttribute(J,String(lt));if(nt.setAttribute(\"data-docx-chart-date-plot\",\"true\"),t.appendChild(nt),e.forEach((J,lt)=>{let ot=i.seriesNodes?.[lt],et=this.chartChild(ot,\"spPr\"),B=(Pt,jt)=>Array.from(Pt?.getElementsByTagName(\"*\")??[]).find(qt=>qt.localName==jt&&Yo.includes(qt.namespaceURI)),z=B(et,\"ln\"),st=B(i.type==\"barChart\"?et:z,\"srgbClr\")?.getAttribute(\"val\"),dt=lt+(i.colorOffset??0),ft=/^[0-9a-f]{6}$/i.test(st??\"\")?`#${st}`:this.chartColor(dt),Ft=z?.getAttribute(\"w\"),Xt=Ft&&Number.isFinite(Number(Ft))?Math.max(0,Number(Ft)/9525):2,Et=this.chartChild(this.chartChild(ot,\"marker\"),\"symbol\")?.getAttribute(\"val\")!=\"none\",_t=[],Kt=()=>{if(!_t.length)return;let Pt=this.createSvgElement(\"path\");Pt.setAttribute(\"d\",_t.map(([jt,qt],x)=>`${x?\"L\":\"M\"}${jt},${qt}`).join(\" \")),Pt.style.stroke=ft,Pt.style.strokeWidth=String(Xt),Pt.style.fill=\"none\",nt.appendChild(Pt),_t=[]};J.values.forEach((Pt,jt)=>{let qt=l[lt][jt];if(!s&&!Number.isFinite(qt)||!Number.isFinite(Pt)){Kt();return}let x=$(qt,jt),it=O(Pt),Q=i.type==\"barChart\";Q||_t.push([x,it]);let D=this.createSvgElement(Q?\"rect\":\"circle\"),R={\"data-docx-chart-point-index\":jt,\"data-docx-chart-series-index\":dt,\"data-docx-chart-date-value\":qt,\"data-docx-chart-center-x\":x,\"data-docx-chart-center-y\":it};if(Q){let G=Math.max(0,Math.min(500,this.chartNumber(i.group,\"gapWidth\")??150)),tt=540/h/(e.length+G/100),ht=O(Math.min(b,Math.max(g,0)));Object.assign(R,{x:x-e.length*tt/2+lt*tt,y:Math.min(it,ht),width:tt,height:Math.abs(ht-it)})}else Object.assign(R,{cx:x,cy:it,r:Et?3:0});for(let[G,tt]of Object.entries(R))Number.isFinite(tt)&&D.setAttribute(G,String(tt));D.style.fill=ft,nt.appendChild(D)}),Kt()}),!W&&this.chartChild(o,\"tickLblPos\")?.getAttribute(\"val\")!=\"none\"){let J=this.chartChild(o,\"numFmt\")?.getAttribute(\"formatCode\")??(s?\"General\":\"yyyy/m/d\"),lt=s?e[0].categories.map((B,z)=>({raw:B,value:Number(B),x:$(Number(B),z),index:z})):this.chartDateTicks(o,c,d,p,r.date1904).map(B=>({raw:String(B),value:B,x:I(B)}));lt.sort((B,z)=>B.x-z.x);let ot=-1/0,et=null;for(let B of lt){let z=this.formatChartDateLabel(B.raw,J,r.date1904),st=this.chartLegendTextWidth(z)/2;if(z==et||B.x-st<ot+4)continue;let dt=this.svgText(z,B.x,318,\"middle\",\"10px\");dt.setAttribute(\"data-docx-chart-date-tick\",Number.isFinite(B.value)?String(B.value):B.raw),s&&dt.setAttribute(\"data-docx-chart-category-index\",String(B.index)),t.appendChild(dt),ot=B.x+st,et=z}}if(!U&&this.chartChild(a,\"tickLblPos\")?.getAttribute(\"val\")!=\"none\"){let J=this.chartNumber(a,\"majorUnit\"),lt=J!=null&&J>0?J:(b-g)/5,ot=Math.floor((b-g)/lt+1e-8)+1;if(ot>0&&ot<=100)for(let et=0;et<ot;et++){let B=Number((g+et*lt).toPrecision(12)),z=this.chartAxisNumberLabel(B,this.chartChild(a,\"numFmt\")?.getAttribute(\"formatCode\")),st=this.svgText(z,k?606:54,O(B)+3,k?\"start\":\"end\",\"10px\");st.setAttribute(\"data-docx-chart-value-tick\",String(B)),t.appendChild(st)}}i.noLegend||(this.drawBottomLegend(t,e.map(J=>J.name),335),this.syncChartAxisLegend(t))}drawChartAxisTitles(t,e){for(let r of[e?.category,e?.value]){if(!r||this.chartBoolean(this.chartChild(r,\"delete\")))continue;let i=this.chartChild(r,\"title\"),o=this.chartTitleText(i);if(!o)continue;let a=this.chartChild(r,\"axPos\")?.getAttribute(\"val\")??(r.localName==\"valAx\"?\"l\":\"b\"),s=this.chartChild(this.chartChild(i,\"layout\"),\"manualLayout\"),l=this.chartNumber(s,\"x\"),c=this.chartNumber(s,\"y\"),h=l!=null&&c!=null&&this.chartChild(s,\"xMode\")?.getAttribute(\"val\")==\"edge\"&&this.chartChild(s,\"yMode\")?.getAttribute(\"val\")==\"edge\",u={b:[330,349],t:[330,50],l:[16,185],r:[625,185]},f=u[a]??u.b,d=h?l*640:f[0],p=h?c*360:f[1],m=this.svgText(o,d,p,h?\"start\":\"middle\",\"12px\");m.setAttribute(\"data-docx-chart-axis-title\",this.chartChild(r,\"axId\")?.getAttribute(\"val\")??a),h?m.setAttribute(\"dominant-baseline\",\"hanging\"):(a==\"l\"||a==\"r\")&&m.setAttribute(\"transform\",`rotate(${a==\"l\"?-90:90} ${d} ${p})`),t.appendChild(m)}}syncChartAxisLegend(t){let e=new Map;for(let r of Array.from(t.querySelectorAll(\"[data-docx-chart-series-index]\"))){let i=Number(r.getAttribute(\"data-docx-chart-series-index\"));e.has(i)||e.set(i,r.style.fill)}t.querySelector(\"[data-docx-chart-legend]\")?.querySelectorAll(\"rect\").forEach((r,i)=>{e.has(i)&&(r.style.fill=e.get(i))})}chartAxisNumberLabel(t,e){let r=/^(0)(?:\\.(0{1,10}))?(%)?$/.exec(e??\"\");return r?(t*(r[3]?100:1)).toFixed(r[2]?.length??0)+(r[3]?\"%\":\"\"):String(t)}chartDateTicks(t,e,r,i,o){let a=this.chartNumber(t,\"majorUnit\"),s=this.chartChild(t,\"majorTimeUnit\")?.getAttribute(\"val\")??\"days\";if(a!=null&&a>0){if(s==\"days\"){let l=Math.floor((i-r)/a+1e-9)+1;if(l>0&&l<=1e3)return Array.from({length:l},(c,h)=>r+h*a)}else if(Number.isInteger(a)&&[\"months\",\"years\"].includes(s)){let l=this.formatChartDateLabel(String(r),\"yyyy/mm/dd\",o);if(/^\\d{4}\\/\\d{2}\\/\\d{2}$/.test(l)){let[c,h,u]=l.split(\"/\").map(Number),f=[];for(let d=0;d<1e3;d++){let p=new Date(Date.UTC(c,h-1+d*a*(s==\"years\"?12:1),1)),m=new Date(Date.UTC(p.getUTCFullYear(),p.getUTCMonth()+1,0)).getUTCDate(),g=Date.UTC(p.getUTCFullYear(),p.getUTCMonth(),Math.min(u,m)),b=(g-Date.UTC(o?1904:1899,o?0:11,o?1:31))/864e5;if(!o&&g>=Date.UTC(1900,2,1)&&b++,b+=r-Math.floor(r),!Number.isFinite(b)||b>i+1e-9)break;b>=r-1e-9&&f.push(b)}if(f.length&&f.length<1e3)return f}}}return[...new Set(e)].filter(l=>l>=r&&l<=i)}formatChartDateLabel(t,e,r=!1){if(!t.trim()||!Number.isFinite(Number(t)))return t;let i=Number(t),o=Math.floor(i);if(o<0||o>(r?2957003:2958465))return t;let a=Math.min(86399999,Math.round((i-o)*864e5)),s=new Date(Date.UTC(r?1904:1899,r?0:11,r?1:31)+(o-(!r&&o>60?1:0))*864e5+a),l=!r&&o==60,c=l?1900:s.getUTCFullYear(),h=l?2:s.getUTCMonth()+1,u=l?29:s.getUTCDate(),f=(I,O=2)=>String(I).padStart(O,\"0\"),d=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],p=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],m=\"\",g=!1;for(let I=0;I<(e??\"\").length;I++){let O=e[I];if(O==\"\\\\\"&&I+1<e.length){m+=O+e[++I];continue}if(O=='\"'&&(g=!g),O==\";\"&&!g)break;m+=O}if(!m||g)return t;let b=m.match(/\"[^\"]*\"|\\\\.|\\[\\$-[\\w-]+\\]|AM\\/PM|A\\/P|y+|m+|d+|h+|s+|./gi)??[];if(!b.some(I=>/^(y+|m+|d+|h+|s+)$/i.test(I)))return t;let T=b.some(I=>/^(AM\\/PM|A\\/P)$/i.test(I)),S=\"\";for(let I=0;I<b.length;I++){let O=b[I],$=O.toLowerCase();if(O.startsWith('\"')){S+=O.slice(1,-1);continue}if(O.startsWith(\"\\\\\")){S+=O.slice(1);continue}if(/^\\[\\$-/i.test(O)){if(!/^\\[\\$-(409|en-us)\\]$/i.test(O))return t;continue}let k=b.slice(0,I).reverse().find(U=>/^[ymdhs]+$/i.test(U)),W=b.slice(I+1).find(U=>/^[ymdhs]+$/i.test(U));if(/^y{1,4}$/.test($))S+=$.length<=2?f(c%100):f(c,4);else if(/^m{1,5}$/.test($))/^h+$/i.test(k??\"\")||/^s+$/i.test(W??\"\")?S+=$.length==1?s.getUTCMinutes():f(s.getUTCMinutes()):S+=$.length==1?h:$.length==2?f(h):$.length==3?d[h-1].slice(0,3):$.length==4?d[h-1]:d[h-1][0];else if(/^d{1,4}$/.test($))S+=$.length==1?u:$.length==2?f(u):$.length==3?p[s.getUTCDay()].slice(0,3):p[s.getUTCDay()];else if(/^h{1,2}$/.test($)){let U=T?s.getUTCHours()%12||12:s.getUTCHours();S+=$.length==1?U:f(U)}else if(/^s{1,2}$/.test($))S+=$.length==1?s.getUTCSeconds():f(s.getUTCSeconds());else if(/^(am\\/pm|a\\/p)$/.test($)){let U=s.getUTCHours()<12?\"AM\":\"PM\",v=$==\"a/p\"?U[0]:U;S+=O==$?v.toLowerCase():v}else if(/^[\\s/.,:\\-年月日时分秒()]$/.test(O))S+=O;else return t}return S}pieSlicePath(t,e,r,i,o){let a=this.polar(t,e,r,o),s=this.polar(t,e,r,i),l=o-i<=180?\"0\":\"1\";return`M${t},${e} L${a.x},${a.y} A${r},${r} 0 ${l},0 ${s.x},${s.y} Z`}polar(t,e,r,i){let o=(i-90)*Math.PI/180;return{x:t+r*Math.cos(o),y:e+r*Math.sin(o)}}drawLegend(t,e,r,i,o){let a=this.createSvgElement(\"rect\");a.setAttribute(\"x\",`${i}`),a.setAttribute(\"y\",`${o-10}`),a.setAttribute(\"width\",\"10\"),a.setAttribute(\"height\",\"10\"),a.style.fill=this.chartColor(r),t.appendChild(a),t.appendChild(this.svgText(e,i+14,o,\"start\",\"10px\"))}drawBottomLegend(t,e,r){if(e.length==0)return;let i=18,o=e.map(c=>14+this.chartLegendTextWidth(c)),a=o.reduce((c,h)=>c+h,0)+i*Math.max(0,e.length-1),s=this.createSvgElement(\"g\");s.setAttribute(\"data-docx-chart-legend\",\"bottom\"),s.setAttribute(\"transform\",`translate(${Math.max(0,(640-a)/2)}, 0)`);let l=0;e.forEach((c,h)=>{this.drawLegend(s,c,h,l,r),l+=o[h]+i}),t.appendChild(s)}chartLegendTextWidth(t){return Array.from(t).reduce((e,r)=>/\\s/.test(r)?e+3:e+((r.codePointAt(0)??0)>255?10:6),0)}chartColor(t){return`hsl(${t*47%360}, 65%, 48%)`}renderSmartArtSvg(t){let e=t.documentElement,r=this.elementsByLocal(e,\"pt\").map(u=>({id:u.getAttribute(\"modelId\"),type:u.getAttribute(\"type\"),text:this.elementsByLocal(u,\"t\").map(f=>f.textContent).filter(Boolean).join(\" \").trim()})).filter(u=>u.id&&u.text&&u.type!=\"doc\"),i=this.elementsByLocal(e,\"cxn\").map(u=>({src:u.getAttribute(\"srcId\"),dst:u.getAttribute(\"destId\")})).filter(u=>u.src&&u.dst&&r.some(f=>f.id==u.src)&&r.some(f=>f.id==u.dst)),o=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});if(o.setAttribute(\"viewBox\",\"0 0 640 360\"),o.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\"),r.length==0)return o.appendChild(this.svgText(\"SmartArt\",320,180,\"middle\",\"18px\")),o;let a=this.layoutDiagramNodes(r,i),s={},l=140,c=44,h=Math.min(90,260/Math.max(a.length,1));a.forEach((u,f)=>{let d=55+f*h,p=560/Math.max(u.length,1);u.forEach((m,g)=>{s[m.id]={x:40+p*g+Math.max(0,p-l)/2,y:d}})});for(let u of i){let f=s[u.src],d=s[u.dst];f&&d&&o.appendChild(this.svgLine(f.x+l/2,f.y+c,d.x+l/2,d.y))}return r.forEach((u,f)=>{let d=s[u.id];if(!d)return;let p=this.createSvgElement(\"rect\");p.setAttribute(\"x\",`${d.x}`),p.setAttribute(\"y\",`${d.y}`),p.setAttribute(\"width\",`${l}`),p.setAttribute(\"height\",`${c}`),p.setAttribute(\"rx\",\"8\"),p.style.fill=this.chartColor(f),p.style.opacity=\"0.18\",p.style.stroke=this.chartColor(f),o.appendChild(p),o.appendChild(this.svgText(u.text,d.x+l/2,d.y+27,\"middle\",\"11px\"))}),o}layoutDiagramNodes(t,e){let r=new Map(t.map(l=>[l.id,0]));e.forEach(l=>r.set(l.dst,(r.get(l.dst)??0)+1));let i=t.filter(l=>(r.get(l.id)??0)==0),o=new Set,a=[];for(i.length==0&&(i=t.slice(0,1));i.length>0;){a.push(i),i.forEach(c=>o.add(c.id));let l=e.filter(c=>i.some(h=>h.id==c.src)).map(c=>c.dst).filter(c=>!o.has(c));i=[...new Set(l)].map(c=>t.find(h=>h.id==c)).filter(Boolean)}let s=t.filter(l=>!o.has(l.id));return s.length>0&&a.push(s),a}renderInkSvg(t){let e=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});e.setAttribute(\"viewBox\",\"0 0 640 360\"),e.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");let r=this.elementsByLocal(t.documentElement,\"trace\").map(d=>this.inkTraceToPoints(d.textContent)),i=this.elementsByLocal(t.documentElement,\"path\").map(d=>d.getAttribute(\"d\")).filter(Boolean);if(r.length==0&&i.length==0)return e.appendChild(this.svgText(\"Ink\",320,180,\"middle\",\"18px\")),e;let o=r.flat(),a=Math.min(...o.map(d=>d[0]),0),s=Math.min(...o.map(d=>d[1]),0),l=Math.max(...o.map(d=>d[0]),640),c=Math.max(...o.map(d=>d[1]),360),h=Math.min(600/Math.max(l-a,1),320/Math.max(c-s,1)),u=20-a*h,f=20-s*h;for(let d of r){if(d.length<2)continue;let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d.map((m,g)=>`${g==0?\"M\":\"L\"}${m[0]*h+u},${m[1]*h+f}`).join(\" \")),p.style.fill=\"none\",p.style.stroke=\"currentColor\",p.style.strokeWidth=\"2\",p.style.strokeLinecap=\"round\",p.style.strokeLinejoin=\"round\",e.appendChild(p)}for(let d of i){let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d),p.style.fill=\"none\",p.style.stroke=\"currentColor\",p.style.strokeWidth=\"2\",e.appendChild(p)}return e}inkTraceToPoints(t){let e=(t??\"\").match(/-?\\d+(?:\\.\\d+)?/g)?.map(Number)??[],r=[];for(let i=0;i+1<e.length;i+=2)r.push([e[i],e[i+1]]);return r}svgLine(t,e,r,i){let o=this.createSvgElement(\"line\");return o.setAttribute(\"x1\",`${t}`),o.setAttribute(\"y1\",`${e}`),o.setAttribute(\"x2\",`${r}`),o.setAttribute(\"y2\",`${i}`),o.style.stroke=\"currentColor\",o.style.strokeWidth=\"1\",o}svgText(t,e,r,i=\"start\",o=\"12px\",a=null){let s=this.createSvgElement(\"text\");return s.setAttribute(\"x\",`${e}`),s.setAttribute(\"y\",`${r}`),s.setAttribute(\"text-anchor\",i),s.style.fill=\"currentColor\",s.style.fontSize=o,a&&(s.style.fontWeight=a),s.appendChild(document.createTextNode(t)),s}elementsByLocal(t,e){let r=t.documentElement??t;return Array.from(r.getElementsByTagName(\"*\")).filter(i=>i.localName==e)}firstByLocal(t,e){return this.elementsByLocal(t,e)[0]??null}renderSimpleField(t){let e=this.evaluateFieldNode(t);return e===void 0?this.renderElements(t.children??[]):e==null?null:Jr(e)?this.renderFieldText(e,t.instruction):e}renderFieldText(t,e){let r=this.h({tagName:\"span\",className:`${this.className}-field`,children:[t]});return e&&(r.dataset.docxFieldInstr=e),r}evaluateFieldNode(t){let e=(t.instruction??\"\").replace(/\\s+/g,\" \").trim();if(!e)return;if(e.startsWith(\"=\")){let o=this.evaluateFormula(e.substring(1));return o==null?void 0:this.applyFieldFormatting(`${o}`,e)}let r=this.tokenizeFieldInstruction(e),i=r[0]?.replace(/^=/,\"\").toUpperCase();if(!this.shouldPreserveStoredFieldResult(i,t))switch(i){case\"PAGE\":return this.applyFieldFormatting(this.formatFieldNumber(this.currentPageNumber,this.currentSectionProps?.pageNumber?.format),e);case\"NUMPAGES\":return this.applyFieldFormatting(this.formatFieldNumber(this.totalPages,this.currentSectionProps?.pageNumber?.format),e);case\"SECTIONPAGES\":return this.applyFieldFormatting(this.formatFieldNumber(this.sectionPageCount,this.currentSectionProps?.pageNumber?.format),e);case\"SECTION\":return this.applyFieldFormatting(this.formatFieldNumber(this.currentSectionNumber,\"decimal\"),e);case\"DATE\":case\"TIME\":case\"CREATEDATE\":case\"SAVEDATE\":case\"PRINTDATE\":return this.applyFieldFormatting(this.evaluateDateField(r,i),e);case\"AUTHOR\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.creator??\"\",e);case\"TITLE\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.title??\"\",e);case\"SUBJECT\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.subject??\"\",e);case\"KEYWORDS\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.keywords??\"\",e);case\"NUMWORDS\":return this.applyFieldFormatting(`${this.document.extendedPropsPart?.props?.words??\"\"}`,e);case\"NUMCHARS\":return this.applyFieldFormatting(`${this.document.extendedPropsPart?.props?.characters??\"\"}`,e);case\"FILENAME\":return this.applyFieldFormatting(this.document.documentPart?.path?.split(\"/\").pop()??\"\",e);case\"DOCPROPERTY\":return this.applyFieldFormatting(this.evaluateDocPropertyField(r),e);case\"DOCVARIABLE\":return this.applyFieldFormatting(this.evaluateDocVariableField(r),e);case\"MERGEFIELD\":return;case\"SET\":return this.evaluateSetField(r),null;case\"QUOTE\":return this.applyFieldFormatting(r.slice(1).map(o=>this.resolveFieldValue(o)).join(\"\"),e);case\"HYPERLINK\":return this.renderHyperlinkField(r,t);case\"IF\":return this.applyFieldFormatting(this.evaluateIfField(r),e);case\"REF\":case\"STYLEREF\":return this.applyFieldFormatting(this.evaluateRefField(r),e);case\"PAGEREF\":return this.applyFieldFormatting(this.evaluatePageRefField(r),e);case\"NOTEREF\":return this.applyFieldFormatting(this.evaluateRefField(r),e);case\"SEQ\":return this.applyFieldFormatting(this.evaluateSeqField(r),e);case\"LISTNUM\":return this.applyFieldFormatting(this.evaluateListNumField(r),e);case\"TC\":case\"XE\":return null;case\"TOC\":return this.renderTocField(r);case\"SYMBOL\":return this.evaluateSymbolField(r)}}shouldPreserveStoredFieldResult(t,e){if(!this.options.preserveComplexFieldResults||!e.children?.length)return!1;switch(t){case\"PAGE\":case\"NUMPAGES\":case\"SECTIONPAGES\":case\"SECTION\":return!1;case\"PAGEREF\":return!this.options.updatePageReferences;case\"TOC\":case\"REF\":case\"STYLEREF\":case\"NOTEREF\":case\"SEQ\":case\"LISTNUM\":case\"IF\":case\"DOCVARIABLE\":case\"MERGEFIELD\":return!0}return!1}tokenizeFieldInstruction(t){let e=[],r=\"\",i=null,o=!1;for(let a of t){if(o){r+=a,o=!1;continue}if(a==\"\\\\\"){i?o=!0:(r&&(e.push(r),r=\"\"),r=\"\\\\\");continue}if(a=='\"'||a==\"'\"){i==a?(i=null,e.push(r),r=\"\"):i?r+=a:(r.trim()&&e.push(r.trim()),r=\"\",i=a);continue}if(/\\s/.test(a)&&!i){r&&(e.push(r),r=\"\");continue}r+=a}return r&&e.push(r),e}fieldSwitch(t,e){let r=e.toLowerCase(),i=t.findIndex(o=>o.toLowerCase()==r);return i>=0?t[i+1]:null}hasFieldSwitch(t,e){let r=e.toLowerCase();return t.some(i=>i.toLowerCase()==r)}firstFieldArgument(t,e=1){for(let r=e;r<t.length;r++){if(!t[r]?.startsWith(\"\\\\\"))return t[r];r++}return null}evaluateDateField(t,e){let r=this.fieldSwitch(t,\"\\\\@\"),i=new Date;return r?this.formatFieldDate(i,r):e==\"TIME\"?i.toLocaleTimeString():i.toLocaleDateString()}formatFieldDate(t,e){let r=(h,u=2)=>`${h}`.padStart(u,\"0\"),i=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],o=i.map(h=>h.substring(0,3)),a=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],s=a.map(h=>h.substring(0,3)),l=[[/yyyy/g,`${t.getFullYear()}`],[/yy/g,r(t.getFullYear()%100)],[/MMMM/g,i[t.getMonth()]],[/MMM/g,o[t.getMonth()]],[/MM/g,r(t.getMonth()+1)],[/M/g,`${t.getMonth()+1}`],[/dddd/g,a[t.getDay()]],[/ddd/g,s[t.getDay()]],[/dd/g,r(t.getDate())],[/d/g,`${t.getDate()}`],[/HH/g,r(t.getHours())],[/H/g,`${t.getHours()}`],[/hh/g,r((t.getHours()+11)%12+1)],[/h/g,`${(t.getHours()+11)%12+1}`],[/mm/g,r(t.getMinutes())],[/m/g,`${t.getMinutes()}`],[/ss/g,r(t.getSeconds())],[/s/g,`${t.getSeconds()}`],[/AM\\/PM/g,t.getHours()<12?\"AM\":\"PM\"],[/am\\/pm/g,t.getHours()<12?\"am\":\"pm\"]],c=e;for(let[h,u]of l)c=c.replace(h,u);return c}evaluateDocPropertyField(t){let e=this.firstFieldArgument(t)?.toLowerCase();if(!e)return\"\";let r={...this.document.corePropsPart?.props??{},...this.document.extendedPropsPart?.props??{}};for(let[i,o]of Object.entries(r))if(i.toLowerCase()==e)return o==null?\"\":`${o}`;return\"\"}evaluateSetField(t){let e=this.firstFieldArgument(t);if(!e)return;let r=t.slice(t.indexOf(e)+1).filter(i=>!i.startsWith(\"\\\\\")).map(i=>this.resolveFieldValue(i)).join(\" \");this.fieldSetValues[e]=r}evaluateDocVariableField(t){let e=this.firstFieldArgument(t);return e?this.fieldSetValues[e]??\"\":\"\"}renderHyperlinkField(t,e){let r=this.fieldSwitch(t,\"\\\\l\"),i=this.firstFieldArgument(t)??\"\",o=r?`${i}#${r}`:i,a=this.h({tagName:\"a\",children:this.renderHyperlinkChildren(e.children??[])});return this.applyHyperlinkTarget(a,o,!!i),a.textContent||(a.textContent=o||r),a}evaluateIfField(t){let e=[\"<>\",\">=\",\"<=\",\"=\",\">\",\"<\"],r=t.findIndex((m,g)=>g>0&&e.includes(m));if(r<0)return\"\";let i=this.resolveFieldValue(t.slice(1,r).join(\" \")),o=t[r],a=this.resolveFieldValue(t[r+1]??\"\"),s=t[r+2]??\"\",l=t[r+3]??\"\",c=parseFloat(i),h=parseFloat(a),u=!Number.isNaN(c)&&!Number.isNaN(h),f=u?c:i,d=u?h:a,p=!1;switch(o){case\"=\":p=f==d;break;case\"<>\":p=f!=d;break;case\">\":p=f>d;break;case\"<\":p=f<d;break;case\">=\":p=f>=d;break;case\"<=\":p=f<=d;break}return this.resolveFieldValue(p?s:l)}resolveFieldValue(t){let e=(t??\"\").trim();if(/^[-+]?\\d+(?:\\.\\d+)?$/.test(e))return e;if(this.bookmarkTextMap.hasOwnProperty(e))return this.bookmarkTextMap[e];if(this.fieldSetValues.hasOwnProperty(e))return this.fieldSetValues[e];if(e.startsWith(\"=\")){let i=this.evaluateFormula(e.substring(1));return i==null?\"\":`${i}`}let r=this.tokenizeFieldInstruction(e)[0]?.toUpperCase();if([\"PAGE\",\"NUMPAGES\",\"SECTIONPAGES\",\"SECTION\",\"DATE\",\"TIME\",\"AUTHOR\",\"TITLE\",\"SUBJECT\",\"KEYWORDS\",\"REF\",\"PAGEREF\",\"SEQ\",\"DOCPROPERTY\"].includes(r)){let i=this.evaluateFieldNode({type:A.SimpleField,instruction:e,lock:!1,dirty:!1,children:[]});if(Jr(i))return i}return e}evaluateRefField(t){let e=this.firstFieldArgument(t);return e?this.bookmarkTextMap[e]??this.fieldSetValues[e]??\"\":\"\"}evaluatePageRefField(t){let e=this.firstFieldArgument(t);return e?`${this.bookmarkTextMap[e]!=null?Math.max(this.currentPageNumber,1):1}`:\"\"}evaluateSeqField(t){let e=this.firstFieldArgument(t);if(!e||this.hasFieldSwitch(t,\"\\\\h\"))return\"\";let r=this.fieldSwitch(t,\"\\\\r\"),i=this.hasFieldSwitch(t,\"\\\\c\");r!=null?this.fieldSeqCounters[e]=parseInt(r,10)||0:i||(this.fieldSeqCounters[e]=(this.fieldSeqCounters[e]??0)+1);let o=this.fieldSwitch(t,\"\\\\*\")??\"decimal\";return this.formatFieldNumber(this.fieldSeqCounters[e]??0,this.fieldFormatSwitchToNumFormat(o))}evaluateListNumField(t){let e=this.firstFieldArgument(t)??\"LISTNUM\";this.fieldSeqCounters[e]=(this.fieldSeqCounters[e]??0)+1;let r=this.fieldSwitch(t,\"*\")??\"decimal\";return this.formatFieldNumber(this.fieldSeqCounters[e],this.fieldFormatSwitchToNumFormat(r))}renderTocField(t){let e=1,r=9,i=this.fieldSwitch(t,\"\\\\o\");if(i){let s=/(\\d+)\\s*-\\s*(\\d+)/.exec(i);s&&(e=parseInt(s[1],10),r=parseInt(s[2],10))}let a=this.tocEntries.filter(s=>s.level>=e&&s.level<=r).map(s=>{let l=this.h({tagName:\"span\",className:`${this.className}-toc-page`,children:[\"1\"]});return l.dataset.docxPageRef=s.id,this.h({tagName:\"div\",className:`${this.className}-toc-entry ${this.className}-toc-level-${s.level}`,children:[this.h({tagName:\"a\",className:`${this.className}-toc-title`,href:`#${s.id}`,children:[s.text]}),l]})});return this.h({tagName:\"div\",className:`${this.className}-toc`,children:a})}evaluateSymbolField(t){let e=parseInt(t[1],10);return Number.isFinite(e)?String.fromCharCode(e):\"\"}evaluateFormula(t){let e=t.replace(/,/g,\"\").trim();if(!/^[0-9+\\-*/().\\s]+$/.test(e))return null;try{let r=Function(`\"use strict\"; return (${e});`)();return Number.isFinite(r)?r:null}catch{return null}}applyFieldFormatting(t,e){let r=this.tokenizeFieldInstruction(e),i=t??\"\",o=this.fieldSwitch(r,\"\\\\*\"),a=o?.toUpperCase(),s=this.fieldSwitch(r,\"\\\\#\");if(s){let l=parseFloat(i);Number.isNaN(l)||(i=this.formatNumberPicture(l,s))}switch(a){case\"UPPER\":i=i.toUpperCase();break;case\"LOWER\":i=i.toLowerCase();break;case\"FIRSTCAP\":i=i.substring(0,1).toUpperCase()+i.substring(1).toLowerCase();break;case\"CAPS\":i=i.replace(/\\b\\w/g,l=>l.toUpperCase());break;case\"ROMAN\":{let l=parseInt(i,10);Number.isNaN(l)||(i=o==\"roman\"?this.toRoman(l).toLowerCase():this.toRoman(l).toUpperCase());break}case\"ALPHABETIC\":{let l=parseInt(i,10);Number.isNaN(l)||(i=o==\"alphabetic\"?this.toLetters(l).toLowerCase():this.toLetters(l).toUpperCase());break}}return i}formatNumberPicture(t,e){let r=e.indexOf(\".\"),i=r>=0?e.length-r-1:0,o=t.toFixed(i);if(e.includes(\",\")){let[a,s]=o.split(\".\");o=a.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\")+(s!=null?`.${s}`:\"\")}return o}fieldFormatSwitchToNumFormat(t){if(t==\"roman\")return\"lowerRoman\";if(t==\"alphabetic\")return\"lowerLetter\";switch(t?.toUpperCase()){case\"ROMAN\":return\"upperRoman\";case\"ALPHABETIC\":return\"upperLetter\";default:return\"decimal\"}}formatFieldNumber(t,e){switch(e){case\"upperRoman\":return this.toRoman(t).toUpperCase();case\"lowerRoman\":return this.toRoman(t).toLowerCase();case\"upperLetter\":return this.toLetters(t).toUpperCase();case\"lowerLetter\":return this.toLetters(t).toLowerCase();case\"decimalZero\":return t<10?`0${t}`:`${t}`;default:return`${t}`}}toRoman(t){let e=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=Math.max(Math.floor(t),0),i=\"\";for(let[o,a]of e)for(;r>=o;)i+=a,r-=o;return i||`${t}`}toLetters(t){let e=Math.max(Math.floor(t),1),r=\"\";for(;e>0;)e--,r=String.fromCharCode(65+e%26)+r,e=Math.floor(e/26);return r}renderRuby(t){let e=t.children?.find(a=>a.type==A.RubyBase),r=t.children?.find(a=>a.type==A.RubyText),i=[...e?this.renderElements(e.children):[],...r?qr(this.renderElement(r)).filter(a=>a!=null):[]],o=this.h({tagName:\"ruby\",children:i});return t.align&&(o.style.rubyAlign=t.align),o}hasRenderedContent(t){for(let e of t??[]){if(!e)continue;let r=e,i=r.nodeType,o=String(r.localName??r.tagName??r.nodeName??\"\").toLowerCase();if(i==3||o==\"#text\"){if((r.textContent??r.text??r.data??\"\").length)return!0;continue}if([\"br\",\"img\",\"svg\",\"math\",\"table\"].includes(o)||(r.textContent??\"\").length)return!0;let a=Array.from(r.childNodes??r.children??[]);if(a.length&&this.hasRenderedContent(a))return!0}return!1}renderText(t){return this.h(this.applyCjkLineBreakGuards(t.text))}applyCjkLineBreakGuards(t){if(!t||!this.document.settingsPart?.settings?.kinsoku)return t;let e=this.document.settingsPart.settings.noLineBreaksBefore??`!),.:;?]}\\xA2\\xB0\\xB7'\"\\u2020\\u2021\\u203A\\u2103\\u2236\\u3001\\u3002\\u3005\\u3009\\u300B\\u300D\\u300F\\u3011\\u3015\\u3017\\u3019\\u301B\\u301C\\u30A0\\u30A1\\u30A3\\u30A5\\u30A7\\u30A9\\u30C3\\u30E3\\u30E5\\u30E7\\u30EE\\u30FB\\u30FC\\uFF0D\\uFF1F\\uFF01\\uFF05\\uFF0C\\uFF0E\\uFF1A\\uFF1B\\u309B\\u309C\\u30FD\\u30FE\\u309D\\u309E\\u30FC`,r=this.document.settingsPart.settings.noLineBreaksAfter??`([{$\\xA3\\xA5'\"\\u201C\\u2018\\u3008\\u300A\\u300C\\u300E\\u3010\\u3014\\u3016\\u3018\\u301A`,i=\"\";for(let o of t)e.includes(o)&&(i+=\"\\u2060\"),i+=o,r.includes(o)&&(i+=\"\\u2060\");return i}renderDeletedText(t){return Zr(this.options)||Mr(Ce(this.options))?this.renderText(t):null}renderBreak(t){switch(t.break){case\"textWrapping\":case\"line\":return this.h({tagName:\"br\"});case\"column\":return this.h({tagName:\"span\",style:{breakAfter:\"column\"}});case\"page\":return this.options.breakPages?null:this.h({tagName:\"span\",style:{breakAfter:\"page\"}});case\"lastRenderedPageBreak\":return this.options.breakPages||this.options.ignoreLastRenderedPageBreak?null:this.h({tagName:\"span\",style:{breakAfter:\"page\"}})}return null}renderInserted(t){return Zr(this.options)?this.renderRevisionContainer(t,\"ins\"):Ce(this.options)==\"original\"?null:this.renderElements(t.children)}renderDeleted(t){return Zr(this.options)?this.renderRevisionContainer(t,\"del\"):Ce(this.options)==\"original\"?this.renderElements(t.children):null}renderRevisionContainer(t,e){let r=this.renderContainer(t,e),i=t.props?.revision,o=i?.kind??(e==\"ins\"?\"insert\":\"delete\");r.dataset.docxChangeKind=o,this.hasOwnRevisionContent(t)||(r.dataset.docxChangeEmpty=\"true\"),r.style.setProperty(\"--docx-review-color\",Fn(i?.author)),i?.id!=null&&(r.dataset.docxChangeId=`${i.id}`),i?.author&&(r.dataset.docxChangeAuthor=i.author),i?.date&&(r.dataset.docxChangeDate=i.date,r.setAttribute(\"datetime\",i.date));let a=[i?.author,i?.date].filter(Boolean).join(\" - \");return a&&r.setAttribute(\"title\",a),r}hasOwnRevisionContent(t){let e=r=>{for(let i of r.children??[])if(!i.props?.revision&&((i.type==A.Text||i.type==A.DeletedText)&&(i.text??\"\").length||i.type==A.Tab||i.type==A.PositionalTab||i.type==A.Break||i.type==A.Symbol||e(i)))return!0;return!1};return e(t)}renderSymbol(t){let e=Ap(t.font,t.char),r=this.h({tagName:\"span\",children:[e.text],style:{fontFamily:t.font}});return Number.isFinite(t.char)&&r.setAttribute(\"data-docx-symbol-code\",t.char.toString(16).padStart(4,\"0\").toUpperCase()),t.font&&r.setAttribute(\"data-docx-symbol-font\",t.font),e.normalized&&r.setAttribute(\"data-docx-symbol-normalized\",\"true\"),r}renderFootnoteReference(t){return this.renderNoteReference(t,\"footnote\")}renderEndnoteReference(t){return this.renderNoteReference(t,\"endnote\")}renderNoteReference(t,e){let r=this.h({tagName:\"sup\",children:[]});r.dataset.docxNoteReference=e,r.dataset.docxNoteId=t.id;for(let c=t;c;c=c.parent)if(this.isHiddenRevisionForPagination(c))return r.dataset.docxNoteHidden=\"true\",r;let i=e===\"footnote\"?\"footnoteProps\":\"endnoteProps\",o=Jd(this.document.settingsPart?.settings?.[i],this.currentSectionProps?.[i]),a=this.noteSectionIds.get(this.currentSectionProps);a==null&&(a=`${this.noteSectionIds.size+1}`,this.noteSectionIds.set(this.currentSectionProps,a));let s=this.noteNumbering.assign(e,t.id,!!t.customMarkFollows,o,a,`${this.notePageIndex}`),l=e===\"footnote\"?this.currentFootnoteIds:this.currentEndnoteIds;return l.includes(t.id)||l.push(t.id),r.dataset.docxNoteSection=a,r.dataset.docxNoteFormat=o.format,r.dataset.docxNoteStart=`${o.start}`,r.dataset.docxNoteRestart=o.restart,this.applyNoteAssignment(r,s,!0),r}updateDynamicNoteNumbers(t){let e=Array.from(t.querySelectorAll(`:scope > section.${this.className}`)),r=new Bn;for(let i=0;i<e.length;i++)for(let o of Array.from(e[i].querySelectorAll(\"article [data-docx-note-reference]\"))){if(o.dataset.docxNoteHidden===\"true\")continue;let a=r.assign(o.dataset.docxNoteReference,o.dataset.docxNoteId,o.dataset.docxNoteCustom===\"true\",{format:o.dataset.docxNoteFormat,start:Number(o.dataset.docxNoteStart),restart:o.dataset.docxNoteRestart},o.dataset.docxNoteSection,`${i+1}`);this.applyNoteAssignment(o,a,!0)}for(let i of Array.from(t.querySelectorAll(\"li[data-docx-note-id]\")))this.applyNoteAssignment(i,r.assignments.get(`${i.dataset.docxNoteKind}:${i.dataset.docxNoteId}`),!1)}renderTab(t){let r=(this.currentParagraph??Sm(t,A.Paragraph))?.tabs??[],i=r.filter(l=>l?.style!=\"clear\"),o=this.currentParagraphTabIndex++,a=this.resolveRenderedTabStop(i,o,this.currentParagraphTabCount);var s=this.h({tagName:\"span\",className:this.tabStopClass(),children:[\"\\xA0\"]});return s.dataset.docxTab=\"true\",a&&(s.dataset.docxTabAlign=a.style??\"left\",s.dataset.docxTabLeader=a.leader??\"none\",a.position&&(s.dataset.docxTabPos=a.position)),s.dataset.docxTabId=`${this.currentTabs.length}`,this.currentTabs.push({stops:r,span:s}),s}renderBookmarkStart(t){let e=this.h({tagName:\"span\"});return t.name&&(e.id=t.name,e.setAttribute(\"id\",t.name)),e}renderRun(t){let e=t.fieldRun?t.children?.filter(l=>l.type!=A.Instruction&&l.type!=A.ComplexField):t.children;if(t.fieldRun&&(!e||e.length==0))return null;let r=this.renderElements(e);if(t.verticalAlign&&(r=[this.h({tagName:t.verticalAlign,children:r})]),!t.verticalAlign&&e?.length==1&&(e[0].type==A.Tab||e[0].type==A.PositionalTab)&&r?.length==1){let l=r[0];return t.cssStyle&&Object.assign(l.style,t.cssStyle),t.className&&l.classList.add(t.className),l}let o=this.toHTML(t,Dt.html,\"span\",r),a=this.findStyle(t.styleName);this.applyTextBoxFontInheritance(t,a,o);let s=t.cssStyle?.[\"--docx-snap-to-grid\"]??this.styleValue(a,\"span\",\"--docx-snap-to-grid\");if(/^(0|false|off)$/i.test(s??\"\"))o.style.letterSpacing=\"normal\";else if(/^(1|true|on)$/i.test(s??\"\")){let l=this.currentSectionProps?.docGrid;(l?.type==\"linesAndChars\"||l?.type==\"snapToChars\")&&l.charSpace&&(o.style.letterSpacing=l.charSpace)}return t.id&&(o.id=t.id),o}renderTable(t){t.columns?.length&&!t.cssStyle?.[\"table-layout\"]&&(t.cssStyle??(t.cssStyle={}),t.cssStyle[\"table-layout\"]=\"fixed\"),this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0};let e=[];return t.columns&&e.push(this.renderTableColumns(t.columns)),e.push(...this.renderElements(t.children)),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),this.toHTML(t,Dt.html,\"table\",e)}renderTableColumns(t){let e=t.map(r=>this.h({tagName:\"col\",style:{width:r.width}}));return this.h({tagName:\"colgroup\",children:e})}renderTableRow(t){this.currentCellPosition.col=t.gridBefore??0;let e=[],r=this.currentTableRow;this.currentTableRow=t,t.gridBefore&&e.push(this.renderTableCellPlaceholder(t.gridBefore)),e.push(...this.renderElements(t.children)),t.gridAfter&&e.push(this.renderTableCellPlaceholder(t.gridAfter));for(let o of Object.keys(this.currentVerticalMerge))this.currentVerticalMerge[o]?.lastRow!=this.currentCellPosition.row&&delete this.currentVerticalMerge[o];this.currentTableRow=r,this.currentCellPosition.row++;let i=this.toHTML(t,Dt.html,\"tr\",e);return t.isHeader&&(i.dataset.docxRepeatHeader=\"true\"),this.repeatedTableHeaderRows.has(t)&&(i.dataset.docxRepeatedHeader=\"true\"),i}renderTableCellPlaceholder(t){return this.h({tagName:\"td\",colSpan:t,style:{border:\"none\"}})}renderTableCell(t){let e=this.currentTableRow?.isHeader?\"th\":\"td\",r=this.toHTML(t,Dt.html,e),i=this.currentCellPosition.col,o=Math.max(1,t.span??1),a=this.currentVerticalMerge[i],s=r.style.getPropertyValue?.(\"border-bottom\")||r.style[\"border-bottom\"]||t.cssStyle?.[\"border-bottom\"]||\"\",l=r.style.getPropertyPriority?.(\"border-bottom\")||\"\";if(t.verticalMerge)if(t.verticalMerge==\"restart\")this.currentVerticalMerge[i]={cell:r,span:o,lastRow:this.currentCellPosition.row,bottomBorder:s,bottomBorderPriority:l},r.rowSpan=1;else if(a?.span==o&&a.lastRow==this.currentCellPosition.row-1){a.cell.rowSpan+=1,a.lastRow=this.currentCellPosition.row;let c=s||a.bottomBorder||\"\";a.cell.style.setProperty?a.cell.style.setProperty(\"border-bottom\",c,l||a.bottomBorderPriority):a.cell.style[\"border-bottom\"]=c,r.style.display=\"none\"}else delete this.currentVerticalMerge[i];else delete this.currentVerticalMerge[i];return t.span&&(r.colSpan=t.span),this.currentCellPosition.col+=r.colSpan,Lp(r,t.props?.diagonalBorders,c=>this.darkenColorAttr(c)),r}renderVmlPicture(t){let e=this.renderContainer(t,this.currentParagraph?\"span\":\"div\");return e.style.display=\"block\",e}vmlLengthInPoints(t){if(t==null)return null;let e=String(t).trim();if(!/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?(?:pt|px|in|cm|mm|pc)?$/i.test(e))return null;let r=parseFloat(e);return Number.isFinite(r)?/px$/i.test(e)?r*.75:/in$/i.test(e)?r*72:/cm$/i.test(e)?r*72/2.54:/mm$/i.test(e)?r*72/25.4:/pc$/i.test(e)?r*12:r:null}vmlRenderContext(t,e){let r=Dn(t.cssStyleText),[i,o]=t.coordOrigin??[0,0],a=d=>Number.isFinite(d)?d:0,s=this.vmlLengthInPoints(r.width),l=this.vmlLengthInPoints(r.height),c=Math.max(0,a(e?.width??(s??Math.abs(t.coordSize?.[0]??1))*4/3)),h=Math.max(0,a(e?.height??(l??Math.abs(t.coordSize?.[1]??1))*4/3)),u=t.coordSize?.[0]??s??c*3/4,f=t.coordSize?.[1]??l??h*3/4;return{originX:a(i),originY:a(o),offsetX:a(e?.x??0),offsetY:a(e?.y??0),scaleX:u>0?a(c/u):0,scaleY:f>0?a(h/f):0,width:c,height:h}}vmlMappedValue(t,e,r,i){if(t==null)return 0;let o=String(t).trim(),a=parseFloat(o);if(!Number.isFinite(a))return 0;let s=r==\"x\"?e.scaleX:e.scaleY,l=r==\"x\"?e.originX:e.originY,c=i?0:r==\"x\"?e.offsetX:e.offsetY,h;return/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)%$/.test(o)?h=a*(r==\"x\"?e.width:e.height)/100+c:/(?:pt|px|in|cm|mm|pc)$/i.test(o)?h=(this.vmlLengthInPoints(o)??0)*4/3+c:this.vmlLengthInPoints(o)!=null?h=(i?a:a-l)*s+c:h=0,Number.isFinite(h)?h:0}vmlBounds(t,e,r){if(r)return r;let i=Dn(t.cssStyleText),o=i.width==null?e.width:this.vmlMappedValue(i.width,e,\"x\",!0),a=i.height==null?e.height:this.vmlMappedValue(i.height,e,\"y\",!0);return{x:i.left==null?e.offsetX:this.vmlMappedValue(i.left,e,\"x\",!1),y:i.top==null?e.offsetY:this.vmlMappedValue(i.top,e,\"y\",!1),width:Math.max(0,o),height:Math.max(0,a)}}vmlCombinedLength(t,e){if(!t)return e;if(!e)return t;let r=this.vmlLengthInPoints(t),i=this.vmlLengthInPoints(e);return r!=null&&i!=null?`${r+i}pt`:`calc(${t} + ${e})`}vmlRootStyle(t){let e=Dn(t.cssStyleText),r={},i=[\"position\",\"display\",\"left\",\"top\",\"right\",\"bottom\",\"margin-left\",\"margin-top\",\"width\",\"height\",\"z-index\",\"opacity\",\"visibility\",\"overflow\"];for(let o of i)e[o]!=null&&(r[o]=e[o]);return e[\"mso-position-horizontal-relative\"]==\"page\"&&(r.left=this.vmlCombinedLength(r.left,r[\"margin-left\"]),delete r[\"margin-left\"]),e[\"mso-position-vertical-relative\"]==\"page\"&&(r.top=this.vmlCombinedLength(r.top,r[\"margin-top\"]),delete r[\"margin-top\"]),r.display??(r.display=\"block\"),r.overflow??(r.overflow=\"visible\"),r[\"pointer-events\"]=\"none\",r}applyVmlAttributes(t,e,r=new Set){for(let[i,o]of Object.entries(e??{}))r.has(i)||t.setAttribute(i,i==\"fill\"||i==\"stroke\"?this.darkenColorAttr(o):o)}loadVmlImage(t,e){t.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(t.imageHref.id,this.currentPart,this.options.externalResourcePolicy).then(r=>{r&&e.setAttribute(\"href\",r)}))}renderVmlElement(t){let e=this.vmlRenderContext(t),r=this.vmlRootStyle(t);r.width??(r.width=`${e.width}px`),r.height??(r.height=`${e.height}px`);for(let o of[\"width\",\"height\"])/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)$/.test(r[o])&&(r[o]=`${e[o]}px`);let i=this.createSvgElement(\"svg\",{style:r});if(e.width>0&&e.height>0&&this.vmlLengthInPoints(r.width)!=null&&this.vmlLengthInPoints(r.height)!=null&&i.setAttribute(\"viewBox\",`0 0 ${e.width} ${e.height}`),i.setAttribute(\"preserveAspectRatio\",\"none\"),i.setAttribute(\"focusable\",\"false\"),i.dataset.docxVml=\"true\",t.cssStyle?.position==\"absolute\"){i.dataset.docxFloat=\"true\";let o=t.props?.anchorPosition;o?.horizontal?.relative&&(i.dataset.docxAnchorHorizontal=o.horizontal.relative),o?.vertical?.relative&&(i.dataset.docxAnchorVertical=o.vertical.relative)}return i.appendChild(this.renderVmlChildElement(t,e,{x:0,y:0,width:e.width,height:e.height},!0)),i}renderVmlChildElement(t,e,r,i=!1){let o=this.vmlBounds(t,e,r),a=this.vmlRenderContext(t,o),s=Dn(t.cssStyleText),l;switch(t.tagName){case\"image\":{let p=this.createSvgElement(\"svg\");p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),p.setAttribute(\"viewBox\",\"0 0 100 100\"),p.setAttribute(\"preserveAspectRatio\",\"none\"),p.setAttribute(\"overflow\",\"hidden\");let m=this.createSvgElement(\"image\");this.applyVmlAttributes(m,t.attrs),m.setAttribute(\"x\",t.attrs.x??\"0\"),m.setAttribute(\"y\",t.attrs.y??\"0\"),m.setAttribute(\"width\",t.attrs.width??\"100%\"),m.setAttribute(\"height\",t.attrs.height??\"100%\"),this.loadVmlImage(t,m),p.appendChild(m),l=p;break}case\"line\":{let p=this.createSvgElement(\"line\"),m=t.attrs.x1==null?o.x:this.vmlMappedValue(t.attrs.x1,e,\"x\",!1),g=t.attrs.y1==null?o.y:this.vmlMappedValue(t.attrs.y1,e,\"y\",!1),b=t.attrs.x2==null?o.x+o.width:this.vmlMappedValue(t.attrs.x2,e,\"x\",!1),T=t.attrs.y2==null?o.y+o.height:this.vmlMappedValue(t.attrs.y2,e,\"y\",!1);p.setAttribute(\"x1\",`${m}`),p.setAttribute(\"y1\",`${g}`),p.setAttribute(\"x2\",`${b}`),p.setAttribute(\"y2\",`${T}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x1\",\"y1\",\"x2\",\"y2\"])),t.attrs.stroke||p.setAttribute(\"stroke\",\"currentColor\"),l=p;break}case\"path\":{let p=this.createSvgElement(\"path\");this.applyVmlAttributes(p,t.attrs,new Set([\"d\"])),p.setAttribute(\"d\",t.attrs.d??\"\"),p.setAttribute(\"transform\",`matrix(${a.scaleX} 0 0 ${a.scaleY} ${o.x-a.originX*a.scaleX} ${o.y-a.originY*a.scaleY})`),p.setAttribute(\"vector-effect\",\"non-scaling-stroke\"),l=p;break}case\"rect\":{let p=this.createSvgElement(\"rect\");if(p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x\",\"y\",\"width\",\"height\"])),t.roundRectArc!=null){let m=Math.min(o.width,o.height)*t.roundRectArc/2;p.setAttribute(\"rx\",`${m}`),p.setAttribute(\"ry\",`${m}`)}l=p;break}case\"ellipse\":{let p=this.createSvgElement(\"ellipse\");p.setAttribute(\"cx\",`${o.x+o.width/2}`),p.setAttribute(\"cy\",`${o.y+o.height/2}`),p.setAttribute(\"rx\",`${o.width/2}`),p.setAttribute(\"ry\",`${o.height/2}`),this.applyVmlAttributes(p,t.attrs,new Set([\"cx\",\"cy\",\"rx\",\"ry\"])),l=p;break}case\"foreignObject\":{let p=this.createSvgElement(\"foreignObject\"),[m,g,b,T]=(t.textInset??[\"0\",\"0\",\"0\",\"0\"]).map(I=>(this.vmlLengthInPoints(I)??0)*4/3);p.setAttribute(\"x\",`${o.x+m}`),p.setAttribute(\"y\",`${o.y+g}`),p.setAttribute(\"width\",`${Math.max(0,o.width-m-b)}`),p.setAttribute(\"height\",`${Math.max(0,o.height-g-T)}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x\",\"y\",\"width\",\"height\"])),p.setAttribute(\"overflow\",\"hidden\");let S=this.createElement(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",boxSizing:\"border-box\"}});S.setAttribute(\"xmlns\",Dt.html);for(let I of t.children??[])for(let O of qr(this.renderElement(I)).filter($=>$!=null))S.appendChild(Jr(O)?document.createTextNode(O):O);p.appendChild(S),l=p;break}default:l=this.createSvgElement(\"g\"),this.applyVmlAttributes(l,t.attrs);break}if(t.tagName!=\"foreignObject\"){if(t.children?.length&&t.tagName!=\"g\"){let p=this.createSvgElement(\"g\");p.appendChild(l),l=p}for(let p of t.children??[])if(p.type==A.VmlElement)l.appendChild(this.renderVmlChildElement(p,a,t.isGroup?void 0:o));else for(let m of qr(this.renderElement(p)).filter(g=>g!=null))l.appendChild(Jr(m)?document.createTextNode(m):m)}if(t.isGroup&&s.overflow==\"hidden\"){let p=this.createSvgElement(\"svg\");p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),o.width>0&&o.height>0&&p.setAttribute(\"viewBox\",`${o.x} ${o.y} ${o.width} ${o.height}`),p.setAttribute(\"overflow\",\"hidden\"),p.appendChild(l),l=p}let c=[],h=o.x+o.width/2,u=o.y+o.height/2;Number.isFinite(t.rotation)&&t.rotation&&c.push(`rotate(${t.rotation} ${h} ${u})`);let f=/x/i.test(s.flip??\"\"),d=/y/i.test(s.flip??\"\");if((f||d)&&c.push(`translate(${h} ${u}) scale(${f?-1:1} ${d?-1:1}) translate(${-h} ${-u})`),c.length){let p=this.createSvgElement(\"g\");p.setAttribute(\"transform\",c.join(\" \")),p.appendChild(l),l=p}if(!i)for(let p of[\"display\",\"visibility\",\"opacity\"])s[p]!=null&&l.style.setProperty(p,s[p]);return l}renderMmlMathParagraph(t){let e=this.renderElements(t.children);for(let r of e)r?.localName==\"math\"&&r.setAttribute(\"display\",\"block\");return this.h({tagName:this.currentParagraph?\"span\":\"div\",className:`${this.className}-math-paragraph`,style:{display:\"block\",textAlign:\"center\"},children:e})}renderMmlPhantom(t){return this.renderContainerNS(t,Dt.mathML,\"mphantom\")}renderMmlAccent(t){let e=t.children?.find(o=>o.type==A.MmlBase),r=this.createMathMLElement(\"mo\",null,[t.props?.char??\"^\"]),i=e?qr(this.renderElement(e)).filter(o=>o!=null):[];return this.createMathMLElement(\"mover\",null,[...i,r])}renderMmlRadical(t){let e=t.children.find(i=>i.type==A.MmlBase);if(t.props?.hideDegree)return this.createMathMLElement(\"msqrt\",null,this.renderElements([e]));let r=t.children.find(i=>i.type==A.MmlDegree);return this.createMathMLElement(\"mroot\",null,this.renderElements([e,r]))}renderMmlDelimiter(t){let e=[],r=t.props?.beginChar,i=t.props?.endChar;return r!==\"\"&&e.push(this.createMathMLElement(\"mo\",null,[r??\"(\"])),e.push(...this.renderElements(t.children)),i!==\"\"&&e.push(this.createMathMLElement(\"mo\",null,[i??\")\"])),this.createMathMLElement(\"mrow\",null,e)}renderMmlNary(t){let e=[],r=ur(t.children,c=>c.type),i=r[A.MmlSuperArgument],o=r[A.MmlSubArgument],a=i?this.createMathMLElement(\"mrow\",null,this.renderElements(i.children)):null,s=o?this.createMathMLElement(\"mrow\",null,this.renderElements(o.children)):null,l=this.createMathMLElement(\"mo\",null,[t.props?.char??\"\\u222B\"]);return a&&s?e.push(this.createMathMLElement(\"munderover\",null,[l,s,a])):a?e.push(this.createMathMLElement(\"mover\",null,[l,a])):s?e.push(this.createMathMLElement(\"munder\",null,[l,s])):e.push(l),r[A.MmlBase]&&e.push(...this.renderElements(r[A.MmlBase].children)),this.createMathMLElement(\"mrow\",null,e)}renderMmlPreSubSuper(t){let e=[],r=ur(t.children,c=>c.type),i=r[A.MmlSuperArgument],o=r[A.MmlSubArgument],a=this.createMathMLElement(\"mrow\",null,i?this.renderElements(i.children):[]),s=this.createMathMLElement(\"mrow\",null,o?this.renderElements(o.children):[]),l=this.createMathMLElement(\"mrow\",null,[]);return e.push(this.createMathMLElement(\"msubsup\",null,[l,s,a])),r[A.MmlBase]&&e.push(...this.renderElements(r[A.MmlBase].children)),this.createMathMLElement(\"mrow\",null,e)}renderMmlGroupChar(t){let e=t.props?.verticalJustification===\"bot\"?\"munder\":\"mover\",r=this.createMathMLElement(\"mrow\",null,this.renderElements(t.children)),i=this.createMathMLElement(\"mo\",null,[t.props?.char??\"\\u23DE\"]);return this.createMathMLElement(e,null,[r,i])}renderMmlBar(t){let e={};switch(t.props.position){case\"top\":e.textDecoration=\"overline\";break;case\"bottom\":e.textDecoration=\"underline\";break}return this.renderContainerNS(t,Dt.mathML,\"mrow\",{style:e})}renderMmlRun(t){let e=this.extractMathRunText(t);if(e!=null){let r=this.renderMathTextTokens(e,t.cssStyle);return r.length?r:null}return this.renderContainerNS(t,Dt.mathML,\"mrow\")}extractMathRunText(t){let e=\"\";for(let r of t.children??[])switch(r.type){case A.Text:e+=r.text??\"\";break;case A.DeletedText:Mr(Ce(this.options))&&(e+=r.text??\"\");break;case A.Symbol:e+=String.fromCharCode(r.char);break;case A.Tab:e+=\" \";break;case A.NoBreakHyphen:e+=\"\\u2011\";break;case A.SoftHyphen:break;default:return null}return e}renderMathTextTokens(t,e){let r=[],i=0;for(;i<t.length;){let o=t[i];if(/\\s/.test(o)){let a=i+1;for(;a<t.length&&/\\s/.test(t[a]);)a++;r.push(this.createMathMLElement(\"mspace\",{width:`${Math.max(1,a-i)*.25}em`})),i=a;continue}if(Sl(o)){let a=i+1;for(;a<t.length&&(Sl(t[a])||t[a]==\".\");)a++;r.push(this.createMathToken(\"mn\",t.substring(i,a),e)),i=a;continue}if(El(o)){let a=i+1;for(;a<t.length&&El(t[a]);)a++;r.push(this.createMathToken(\"mi\",t.substring(i,a),e)),i=a;continue}Tm(o)?r.push(this.createMathToken(\"mo\",o,e)):r.push(this.createMathToken(\"mtext\",o,e)),i++}return r}createMathToken(t,e,r){return this.createMathMLElement(t,r?{style:r}:null,[e])}renderMllList(t){let e=this.renderElements(t.children).map(r=>this.createMathMLElement(\"mtr\",null,[this.createMathMLElement(\"mtd\",null,[r])]));return this.toHTML(t,Dt.mathML,\"mtable\",e)}toH(t,e,r,i=null){let{$lang:o,\"$lang-eastAsia\":a,\"$lang-bidi\":s,...l}=t.cssStyle??{},c=Kr(t.className,t.styleName&&this.processStyleName(t.styleName));return{ns:e,tagName:r,className:c,lang:o,style:this.darkenStyle(l),children:i??this.renderElements(t.children)}}darkenStyle(t){if(!this.options.darkMode)return t;let e=tm(t);if(e===t)return t;let r={...e};for(let i in e){if(i.startsWith(\"--\"))continue;let o=t[i],a=e[i];a===o||typeof a!=\"string\"||a.toLowerCase().includes(\"var(\")||(r[i]=this.wrapForPrint(o,a))}return r}darkenColorAttr(t){if(!this.options.darkMode)return t;let e=en(t);return e===t||e.toLowerCase().includes(\"var(\")?e:this.wrapForPrint(t,e)}wrapForPrint(t,e){let r=this.darkModeVarNames.get(t);return r||(r=`--docx-dm-${this.darkModeVarNames.size}`,this.darkModeVarNames.set(t,r),this.darkModePrintReset[r]=t),`var(${r}, ${e})`}renderDarkModePrintReset(){let t=Object.entries(this.darkModePrintReset);if(!this.options.darkMode||t.length===0)return[];let e=t.map(([i,o])=>` ${i}: ${o};\\r\n`).join(\"\"),r=`@media print {\\r\n.${this.className} {\\r\n${e}}\\r\n}\\r\n`;return[this.h({tagName:\"style\",children:[r]})]}toHTML(t,e,r,i=null){let o=this.h(this.toH(t,e,r,i));return o?.nodeType===1&&this.applyElementRevisionMetadata(o,t),o}applyElementRevisionMetadata(t,e){let r=e.props?.revision;(r?.kind===\"insert\"||r?.kind===\"delete\")&&(Zr(this.options)?(t.dataset.docxChangeKind=r.kind,t.style.setProperty(\"--docx-review-color\",Fn(r.author)),r.id!=null&&(t.dataset.docxChangeId=`${r.id}`),r.author&&(t.dataset.docxChangeAuthor=r.author),r.date&&(t.dataset.docxChangeDate=r.date)):r.kind===\"delete\"&&(t.style.display=\"none\"));let i=e.props?.formatRevisions?.[0];i&&Zr(this.options)&&(t.dataset.docxFormatChange=\"true\",t.style.setProperty(\"--docx-review-color\",Fn(i.author)),i.id!=null&&(t.dataset.docxChangeId=`${i.id}`),i.author&&(t.dataset.docxChangeAuthor=i.author),i.date&&(t.dataset.docxChangeDate=i.date))}findStyle(t){return t&&this.styleMap?.[t]}isTocParagraphStyle(t,e){return[t,e?.id,e?.name,e?.cssName,...e?.aliases??[]].filter(Boolean).map(i=>String(i).replace(/[\\s_-]+/g,\"\").toLowerCase()).some(i=>/^toc[1-9]$/.test(i))}numberingClass(t,e){return`${this.className}-num-${t}-${e}`}numberingSelector(t,e){return`.${this.className} p.${this.numberingClass(t,e)}`}tabStopClass(){return`${this.className}-tab-stop`}scopeDocumentStyleSelector(t){let e=t.trim();return!e||e.startsWith(`.${this.className}`)||e.startsWith(`section.${this.className}`)||e.startsWith(`.${this.className}-wrapper`)?t:`.${this.className} ${t}`}styleToString(t,e,r=null){let i=`${t} {\\r\n`,o=this.darkenStyle(e);for(let a in o)a.startsWith(\"$\")||(i+=` ${a}: ${o[a]};\\r\n`);return r&&(i+=r),i+`}\\r\n`}numberingCounter(t,e){return`${this.className}-num-${t}-${e}`}numberingRestartLevel(t){if(t.level<=0)return null;if(t.restart==null)return t.level-1;if(t.restart==0)return null;let e=t.restart-1;return e>=0&&e<t.level?e:null}numberingMarkerRunStyle(t,e){if(!t)return t;let r={...t};return e&&(delete r[\"font-family\"],delete r[\"--docx-latin-font-family\"],delete r[\"--docx-partial-eastasia-font\"]),r}normalizeNumberingLevelText(t,e,r){if(e!=\"bullet\"||!t)return{text:t,normalized:!1};let i=(r?.[\"font-family\"]??\"\").toLowerCase(),o=!1,a=null;if(i.includes(\"wingdings\"))a=this.wingdingsBulletMap();else if(i.includes(\"symbol\"))a=this.symbolBulletMap();else return{text:t,normalized:!1};let s=\"\";for(let l of t){let c=a[l.charCodeAt(0)];c?(s+=c,o=!0):s+=l}return{text:s,normalized:o}}symbolBulletMap(){return{183:\"\\u2022\",8226:\"\\u2022\",61623:\"\\u2022\"}}wingdingsBulletMap(){return{61548:\"\\u25CF\",61550:\"\\u25A0\",61557:\"\\u25C6\",61598:\"\\xB7\",61599:\"\\u2022\",61600:\"\\u25AA\",61601:\"\\u25CB\",61604:\"\\u25C9\",61605:\"\\u25CE\",61607:\"\\u25AA\",61608:\"\\u25FB\",61656:\"\\u27A2\",61672:\"\\u2794\",61690:\"\\u25AB\",61691:\"\\u2717\",61692:\"\\u2713\",61693:\"\\u2612\",61694:\"\\u2611\"}}levelTextToContent(t,e,r,i,o){let a=[],s=0;for(let h of t.matchAll(/%\\d+/g)){h.index>s&&a.push(`\"${this.escapeCssString(t.substring(s,h.index))}\"`);let u=parseInt(h[0].substring(1),10)-1,f=o?.get(`${r}:${u}`)??i??\"decimal\";a.push(`counter(${this.numberingCounter(r,u)}, ${f})`),s=h.index+h[0].length}let l=t.substring(s);l&&a.push(`\"${this.escapeCssString(l)}\"`);let c=this.numberingSuffixToCssContent(e);return c&&a.push(c),a.length>0?a.join(\" \"):'\"\"'}numberingSuffixToCssContent(t){switch(t||\"tab\"){case\"nothing\":return\"\";case\"space\":return'\"\\\\000020\"';default:return'\"\\\\000009\"'}}escapeCssString(t){return t.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\r?\\n/g,\"\\\\A \")}numFormatToCssValue(t){var e={none:\"none\",bullet:\"disc\",decimal:\"decimal\",lowerLetter:\"lower-alpha\",upperLetter:\"upper-alpha\",lowerRoman:\"lower-roman\",upperRoman:\"upper-roman\",decimalZero:\"decimal-leading-zero\",aiueo:\"katakana\",aiueoFullWidth:\"katakana\",chineseCounting:\"simp-chinese-informal\",chineseCountingThousand:\"simp-chinese-informal\",chineseLegalSimplified:\"simp-chinese-formal\",chosung:\"hangul-consonant\",ideographDigital:\"cjk-ideographic\",ideographTraditional:\"cjk-heavenly-stem\",ideographLegalTraditional:\"trad-chinese-formal\",ideographZodiac:\"cjk-earthly-branch\",iroha:\"katakana-iroha\",irohaFullWidth:\"katakana-iroha\",japaneseCounting:\"japanese-informal\",japaneseDigitalTenThousand:\"cjk-decimal\",japaneseLegal:\"japanese-formal\",thaiNumbers:\"thai\",koreanCounting:\"korean-hangul-formal\",koreanDigital:\"korean-hangul-formal\",koreanDigital2:\"korean-hanja-informal\",hebrew1:\"hebrew\",hebrew2:\"hebrew\",hindiNumbers:\"devanagari\",ganada:\"hangul\",taiwaneseCounting:\"cjk-ideographic\",taiwaneseCountingThousand:\"cjk-ideographic\",taiwaneseDigital:\"cjk-decimal\"};return e[t]??t??\"decimal\"}refreshTabStops(t){let e=t?.querySelectorAll?Array.from(t.querySelectorAll(\"[data-docx-tab-id]\")):this.currentTabs.map(r=>r.span);for(let r of e){if(!r.isConnected||!this.ownsLayoutElement(r))continue;let i=this.currentTabs[Number(r.dataset.docxTabId)];i&&!Pp(r,i.stops)&&this.options.experimental&&Rp(r,i.stops,this.defaultTabSize,Np())}}createElementNS(t,e,r,i){return this.h({ns:t,tagName:e,children:i,...r})}createElement(t,e,r){return this.createElementNS(Dt.html,t,e,r)}createMathMLElement(t,e,r){return this.createElementNS(Dt.mathML,t,e,r)}createSvgElement(t,e,r){return this.createElementNS(Dt.svg,t,e,r)}later(t){this.postRenderTasks.push(t)}};Ui.nextCommentId=0;function Sl(n){return n>=\"0\"&&n<=\"9\"}function El(n){if(!n)return!1;let t=n.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t>=913&&t<=1023||t>=119808&&t<=120831}function Tm(n){return\"()+-\\u2212=<>\\u2264\\u2265\\u2248\\u2260\\xD7\\xF7*/\\xB7\\u2219\\u2211\\u03A3\\u220F\\u222B\\u221A\\u221E\\u2202\\u2207,.;:[]{}|\\u2016!\\u2032\\u2033\\u2192\\u2190\\u2194\\u21D2\\u21D4\\u2208\\u2209\\u2282\\u2283\\u2286\\u2287\\u2227\\u2228\\xAC\".includes(n)}function Sm(n,t){for(var e=n.parent;e!=null&&e.type!=t;)e=e.parent;return e}var Em=\"\\u6587\\u4EF6\\u4E3A\\u7A7A\\u6216\\u5C1A\\u672A\\u4FDD\\u5B58\\uFF0C\\u65E0\\u6CD5\\u4F5C\\u4E3A Word \\u6587\\u6863\\u6253\\u5F00\\u3002\\u8BF7\\u5728 WPS/Word \\u4E2D\\u4FDD\\u5B58\\u540E\\u91CD\\u65B0\\u4E0A\\u4F20\\u3002\";function $a(n){if(km(n)===0)throw new Error(Em)}function km(n){return n==null?0:typeof Blob<\"u\"&&n instanceof Blob?n.size:typeof ArrayBuffer<\"u\"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))?n.byteLength:typeof n.size==\"number\"?n.size:typeof n.byteLength==\"number\"?n.byteLength:typeof n.length==\"number\"?n.length:null}var ji={ignoreHeight:!1,ignoreWidth:!1,fixedPageHeight:!0,ignoreFonts:!1,breakPages:!0,strictWordCompatibility:!0,paginationTolerance:2,maxDynamicPaginationPasses:1e3,awaitLayout:!0,useWorker:!0,workerUrl:void 0,workerFactory:void 0,workerJsZipUrl:void 0,workerFallback:!0,workerTimeout:12e4,renderPageBatchSize:2,renderYieldEveryMs:16,progress:void 0,preserveComplexFieldResults:!0,updatePageReferences:!1,hideWebHiddenContent:!1,externalLinkPolicy:\"allow\",externalResourcePolicy:\"block\",darkMode:!1,debug:!1,experimental:!1,className:\"docx\",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,reviewMode:void 0,reviewPresentation:\"balloon\",renderComments:!1,renderAltChunks:!0,h:Wn};function Wa(n){let t={...ji,...n};return n?.reviewMode!=null&&n.renderComments==null&&(t.renderComments=!0),t}function tc(n,t,e){if(t.reviewMode!==\"auto\")return t;let r=nm(n,\"auto\");return t.reviewMode=r.enabled?r.mode:void 0,t.renderChanges=r.enabled,e?.renderComments==null&&(t.renderComments=r.enabled),t}function Am(n,t){let e=Wa(t);return e.licenseToken,$a(n),Rm(e)?Om(n,e).catch(r=>{if(!e.workerFallback)throw r;e.debug&&console.warn(\"docx-preview: worker parsing failed; falling back to main thread\",r);let i={...e,useWorker:!1};return Aa(n,i)}):Aa(n,e)}function Aa(n,t){return $a(n),t.progress?.({phase:\"parse\",message:\"Parsing DOCX on main thread\"}),Bi.load(n,new va(t),t)}async function Cm(n,t){let e=tc(n,Wa(t),t);return e.licenseToken,await new Ui().render(n,e)}async function ec(n,t,e,r){let i=Wa(r);i.licenseToken,zn(t);let o=Cl(t),a=await Am(n,i);je(t,o,!1),tc(a,i,r);let s=await Cm(a,i);je(t,o,!1),e??(e=t),e===t||e.replaceChildren(),t.replaceChildren();let l=0;for(let h of s)(h.nodeName===\"STYLE\"?e:t).appendChild(h),l++,i.renderYieldEveryMs>0&&l%8==0&&(await Ca(),je(t,o,!1));Nm(t),Zr(i)?(t.dataset.docxReviewEnabled=\"true\",t.dataset.docxReviewMode=Ce(i),t.dataset.docxReviewPresentation=i.reviewPresentation??\"balloon\"):(delete t.dataset.docxReviewEnabled,delete t.dataset.docxReviewMode,delete t.dataset.docxReviewPresentation),kl(t,i.className);let c=null;if(i.awaitLayout)i.progress?.({phase:\"layout\",message:\"Measuring rendered pages\"}),c=await Lm(t,i),je(t,o),kl(t,i.className);else{let h=Hn(t,o);Un(t,[],h).then(()=>Hi(t,h)).catch(()=>{})}return _m(t,i,o),i.progress?.({phase:\"done\",current:c?.pageCount,total:c?.pageCount,message:\"DOCX render complete\"}),a}var zi=new WeakMap;function Nm(n){let t=zi.get(n);t&&n.removeEventListener(\"click\",t);let e=r=>{let i=r;if(i.defaultPrevented||i.button!=0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let o=i.target;if(!(o instanceof Element))return;let a=o.closest('a[href^=\"#\"]');if(!a||!n.contains(a))return;let s=a.getAttribute(\"href\");if(!s||s==\"#\")return;let l=s.substring(1);try{l=decodeURIComponent(l)}catch{return}let c=Array.from(n.querySelectorAll(\"[id]\")).find(h=>h.id==l);c&&(i.preventDefault(),c.scrollIntoView({block:\"start\",inline:\"nearest\"}))};n.addEventListener(\"click\",e),zi.set(n,e)}function Rm(n){return!!(n.useWorker&&(n.workerFactory||n.workerUrl)&&typeof Worker<\"u\")}function Pm(n){let{h:t,progress:e,licenseToken:r,workerFactory:i,...o}=n;return{...o,useWorker:!1}}var Im=0;function Om(n,t){let e={...ji,...t};return e.licenseToken,$a(n),!e.workerFactory&&!e.workerUrl||typeof Worker>\"u\"?Aa(n,{...e,useWorker:!1}):(e.progress?.({phase:\"worker\",message:\"Starting DOCX parse worker\"}),new Promise((r,i)=>{let o=++Im,a=e.workerFactory?e.workerFactory():new Worker(e.workerUrl),s=!1,l=null,c=()=>{s=!0,l&&clearTimeout(l),a.terminate()};e.workerTimeout>0&&(l=setTimeout(()=>{s||(c(),i(new Error(`docx-preview worker timed out after ${e.workerTimeout}ms`)))},e.workerTimeout)),a.onerror=h=>{s||(c(),i(new Error(h.message||\"docx-preview worker error\")))},a.onmessage=h=>{let u=h.data??{};if(!(u.id!==o&&u.type!==\"ready\")){if(u.type===\"progress\"){e.progress?.({phase:\"worker\",current:u.current,total:u.total,message:u.message});return}if(u.type===\"parsed\"){c(),e.progress?.({phase:\"worker\",message:\"Worker parse complete\"}),r(Bi.fromSnapshot(u.snapshot,e));return}if(u.type===\"error\"){c();let f=new Error(u.error?.message??\"docx-preview worker parse failed\");f.stack=u.error?.stack,i(f)}}},a.postMessage({type:\"parse\",id:o,data:n,options:Pm(e),jsZipUrl:e.workerJsZipUrl})}))}async function Lm(n,t){let e={...ji,...t},r=Hn(n);await Un(n,[],r),await Hi(n,r);let i=Array.from(n.querySelectorAll(`.${e.className}-wrapper`));if(n.classList?.contains(`${e.className}-wrapper`)&&i.unshift(n),e.breakPages&&e.fixedPageHeight&&!e.ignoreHeight&&i.length){let o=Math.max(2,e.maxDynamicPaginationPasses??120),a=()=>i.some(s=>s.dataset.docxPaginating===\"true\"||s.dataset.docxPaginationScheduled===\"true\");for(let s=0;s<o;s++){await Ca(),je(n,r);let l=i.find(c=>c.dataset.docxLayoutError);if(l)throw new Error(l.dataset.docxLayoutError);if(!a())break}if(a())throw new Error(\"DOCX layout did not settle within the configured pagination wait budget\")}return await Ca(),je(n,r),await Hi(n,r),je(n,r),Mm(n,e)}var Yi=new WeakMap;function zn(n){kd(n),Yi.get(n)?.(),Yi.delete(n),vm(n);let t=zi.get(n);t&&n.removeEventListener(\"click\",t),zi.delete(n)}function _m(n,t,e){Yi.get(n)?.();let r=n.ownerDocument.defaultView;if(!r||typeof r.requestAnimationFrame!=\"function\"||typeof r.cancelAnimationFrame!=\"function\")return;let i=0,o=!1,a=!1,s=!1,l=async()=>{if(i=0,o||a||!e.isCurrent()||!n.isConnected)return;let p=n.querySelector(`.${t.className}-wrapper`);if(!(p?.dataset.docxPaginating===\"true\"||p?.dataset.docxPaginationScheduled===\"true\")){a=!0,s=!1;try{let m=Hn(n,e);await Un(n,[],m),await Hi(n,m)}catch(m){e.isCurrent()&&m?.name!==\"AbortError\"&&(p&&(p.dataset.docxLayoutError=m?.message??\"DOCX layout failed\"),t.debug&&console.warn(\"DOCX layout refresh failed\",m))}finally{a=!1,s&&c()}}},c=()=>{if(!(o||!e.isCurrent())){if(a){s=!0;return}i||(i=r.requestAnimationFrame(()=>{l()}))}},h=r.ResizeObserver?new r.ResizeObserver(c):null,u=p=>{let m=new Set(p.flatMap(T=>Array.from(T.addedNodes))),g=new Set(p.flatMap(T=>Array.from(T.removedNodes)));[...m,...g].some(T=>T.isConnected||!m.has(T)||!g.has(T))&&c()},f=typeof r.MutationObserver==\"function\"?new r.MutationObserver(u):null;h?.observe(n),f?.observe(n,{childList:!0,subtree:!0}),r.addEventListener(\"resize\",c),n.ownerDocument.fonts?.addEventListener?.(\"loadingdone\",c);let d=()=>{o||(o=!0,r.cancelAnimationFrame(i),h?.disconnect(),f?.disconnect(),r.removeEventListener(\"resize\",c),n.ownerDocument.fonts?.removeEventListener?.(\"loadingdone\",c),e.signal.removeEventListener(\"abort\",d))};e.signal.addEventListener(\"abort\",d,{once:!0}),Yi.set(n,d)}function Mm(n,t){let e={...ji,...t},i=Array.from(n.querySelectorAll(`section.${e.className}`)).map((o,a)=>{let s=Array.from(o.querySelectorAll(\"[data-docx-field-instr]\")),l=Array.from(o.querySelectorAll(\"img\")).filter(h=>!h.complete||h.naturalWidth===0).length,c=o.clientHeight>0&&o.scrollHeight>o.clientHeight+(e.paginationTolerance??2);return{index:a+1,section:o.dataset.docxSection??\"\",pageNumber:parseInt(o.dataset.docxPageNumber??`${a+1}`,10),sectionPageNumber:parseInt(o.dataset.docxSectionPageNumber??\"1\",10),width:o.clientWidth,height:o.clientHeight,scrollHeight:o.scrollHeight,overflow:c,textLength:o.textContent?.length??0,anchors:Array.from(o.querySelectorAll(\"[id]\")).map(h=>h.id).filter(Boolean),fields:s.map(h=>({instruction:h.dataset.docxFieldInstr??\"\",value:h.textContent??\"\"})),floats:o.querySelectorAll('[data-docx-float=\"true\"]').length,unresolvedMedia:l}});return{pageCount:i.length,overflowPages:i.filter(o=>o.overflow).map(o=>o.index),unresolvedMedia:i.reduce((o,a)=>o+a.unresolvedMedia,0),textLength:i.reduce((o,a)=>o+a.textLength,0),fields:i.flatMap(o=>o.fields),floats:i.reduce((o,a)=>o+a.floats,0),pages:i}}function kl(n,t=\"docx\"){if(!n||typeof getComputedStyle!=\"function\")return;let e=Array.from(n.querySelectorAll(\"p\")),r=`${t}-num-`;for(let i of e){if(!i.className?.includes(r))continue;let o=getComputedStyle(i,\"::before\");if(!o.content||o.content==\"none\"||o.content==\"normal\")continue;let a=Fm(i);if(!a||a==i)continue;let s=getComputedStyle(a);Si(i,\"--docx-marker-font-family\",s.fontFamily),Si(i,\"--docx-marker-font-size\",s.fontSize),Si(i,\"--docx-marker-font-style\",s.fontStyle),Si(i,\"--docx-marker-font-weight\",s.fontWeight)}}function Fm(n){let t=document.createTreeWalker(n,NodeFilter.SHOW_TEXT);for(;t.nextNode();){let e=t.currentNode;if(!e.nodeValue?.trim())continue;let r=e.parentElement;if(!r||r==n)return n;let i=getComputedStyle(r);if(!(i.display==\"none\"||i.visibility==\"hidden\"))return r}return null}function Si(n,t,e){e&&n.style.setProperty(t,e)}function Ca(){return new Promise(n=>{let t=globalThis;typeof t.requestIdleCallback==\"function\"?t.requestIdleCallback(()=>n(),{timeout:32}):typeof t.requestAnimationFrame==\"function\"?t.requestAnimationFrame(()=>n()):setTimeout(n,0)})}var rc=globalThis.Buffer,nc=0;function ce(n){return String(n).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#39;\")}function Ve(n=\"id\"){return nc+=1,`${n}-${nc}`}function bn(n){return n%2===0?n:n+1}function Dm(n){let t=n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(rc)return rc.from(t).toString(\"base64\");let e=\"\",r=32768;for(let i=0;i<t.length;i+=r)e+=String.fromCharCode(...t.subarray(i,Math.min(i+r,t.length)));return btoa(e)}function vr(n,t=\"application/octet-stream\"){return`data:${t};base64,${Dm(n)}`}function Vi(n){return String(n??\"\").toLowerCase().replace(/[^a-z0-9\\u4e00-\\u9fa5]+/g,\"-\").replace(/^-/,\"\").replace(/-$/,\"\")||\"item\"}function Ha(n,t){if(n===t)return!0;if(!n||!t)return!1;let e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(let i of e)if(n[i]!==t[i])return!1;return!0}function rn(n,t,e){let r=e?{message:t,...e}:{message:t};return n.push(r),r}function de(n,t=96){if(!(n==null||Number.isNaN(n)))return n/1440*t}function ic(n){return String(n??\"\").replace(/\\u000b/g,`\n`).replace(/\\u000c/g,`\n`)}function Xi(n=\"utf-8\"){return new TextDecoder(n,{fatal:!1})}var oc=Xi(\"utf-16le\"),Bm=typeof TextDecoder<\"u\"?Xi(\"windows-1252\"):Xi(\"latin1\"),Rt=class{bytes;view;length;constructor(t){if(t instanceof Uint8Array)this.bytes=t;else if(t instanceof ArrayBuffer)this.bytes=new Uint8Array(t);else if(ArrayBuffer.isView(t))this.bytes=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);else throw new TypeError(\"BinaryReader expects ArrayBuffer or Uint8Array\");this.view=new DataView(this.bytes.buffer,this.bytes.byteOffset,this.bytes.byteLength),this.length=this.bytes.byteLength}ensure(t,e=1){return t>=0&&t+e<=this.length}u8(t){return this.ensure(t,1)?this.view.getUint8(t):0}i8(t){return this.ensure(t,1)?this.view.getInt8(t):0}u16(t){return this.ensure(t,2)?this.view.getUint16(t,!0):0}i16(t){return this.ensure(t,2)?this.view.getInt16(t,!0):0}u32(t){return this.ensure(t,4)?this.view.getUint32(t,!0):0}i32(t){return this.ensure(t,4)?this.view.getInt32(t,!0):0}u64(t){let e=this.u32(t);return this.u32(t+4)*4294967296+e}slice(t,e){return this.ensure(t,e)?this.bytes.subarray(t,t+e):new Uint8Array(0)}array(t,e,r){let i=[],o=r.byteWidth??1;for(let a=0;a<e;a+=1)i.push(r.call(this,t+a*o));return i}utf16le(t,e){return this.ensure(t,e)?oc.decode(this.slice(t,e)):\"\"}latin1(t,e){return this.ensure(t,e)?Bm.decode(this.slice(t,e)):\"\"}ascii(t,e){if(!this.ensure(t,e))return\"\";let r=\"\",i=this.slice(t,e);for(let o=0;o<i.length;o+=1)r+=String.fromCharCode(i[o]??0);return r}utf16z(t,e){let r=this.slice(t,e),i=r.length;for(let o=0;o+1<r.length;o+=2)if(r[o]===0&&r[o+1]===0){i=o;break}return oc.decode(r.subarray(0,i))}};Rt.prototype.u8.byteWidth=1;Rt.prototype.i8.byteWidth=1;Rt.prototype.u16.byteWidth=2;Rt.prototype.i16.byteWidth=2;Rt.prototype.u32.byteWidth=4;Rt.prototype.i32.byteWidth=4;function ac(n){if(n instanceof Uint8Array)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new TypeError(\"Unsupported binary input\")}var sc=[208,207,17,224,161,177,26,225],Ki=4294967295,yn=4294967294,$m=4294967293,Wm=4294967292,Hm=1<<20,Um=4096;function lc(n){return n===Ki||n===yn||n===$m||n===Wm}function Ua(n,t,e){let r=512+e*t,i=r+t;if(r<0||r>=n.length)throw new Error(`Sector ${e} is out of bounds`);if(i<=n.length)return n.subarray(r,i);let o=new Uint8Array(t);return o.set(n.subarray(r)),o}function cc(n,t,e=Hm){let r=[],i=new Set,o=n,a=0;for(;o!==yn&&o!==Ki&&o>=0;){if(i.has(o))throw new Error(`Detected sector loop at ${o}`);if(i.add(o),r.push(o),o=t(o),a+=1,a>e)throw new Error(\"Sector chain exceeds safe limit\")}return r}function qi(n,t,e,r,i=null){if(e===yn||e===Ki||e<0)return new Uint8Array(0);let o=cc(e,l=>r[l]??yn),a=new Uint8Array(o.length*t),s=0;for(let l of o)a.set(Ua(n,t,l),s),s+=t;return i==null?a:a.subarray(0,Math.min(i,a.length))}function zm(n){function t(i,o){if(i<0||i>=n.length)return;let a=n[i];a&&(t(a.leftSiblingId,o),o.push(i),t(a.rightSiblingId,o))}function e(i){let o=n[i];if(!o||o.childId<0)return;let a=[];t(o.childId,a),o.children=a;for(let s of a){let l=n[s];l&&(l.parentId=i,e(s))}}let r=n.find(i=>i.objectType===5);if(!r)throw new Error(\"CFB root storage not found\");return e(r.id),r}function Ym(n){let t=new Map;for(let e of n){if(!e||!e.name)continue;let r=[],i=e;for(;i;)i.objectType!==5&&r.push(i.name),i=i.parentId!=null?n[i.parentId]??null:null;let o=`/${r.reverse().join(\"/\")}`;e.path=o===\"/\"?`/${e.name}`:o,t.set(e.path,e)}return t}function Gm(n){return n.replace(/\\u0000+$/,\"\")}function uc(n,t={}){let e=ac(n),r=new Rt(e),i=[];for(let et=0;et<sc.length;et+=1)if(r.u8(et)!==sc[et])throw new Error(\"Not a Compound File Binary document\");let o=r.u16(26),a=r.u16(30),s=r.u16(32),l=1<<a,c=1<<s,h=r.u32(40),u=r.u32(44),f=r.i32(48),d=r.u32(52),p=r.u32(56),m=r.i32(60),g=r.u32(64),b=r.i32(68),T=r.u32(72);p!==Um&&rn(i,`Unexpected mini stream cutoff size ${p}`);let S=[];for(let et=0;et<109;et+=1){let B=r.i32(76+et*4);!lc(B)&&B>=0&&S.push(B)}let I=[...S],O=b,$=0;for(;O!==yn&&O!==Ki&&O>=0;){let et=Ua(e,l,O),B=new Rt(et),z=l/4-1;for(let st=0;st<z;st+=1){let dt=B.i32(st*4);!lc(dt)&&dt>=0&&I.push(dt)}if(O=B.i32(l-4),$+=1,$>T+4){rn(i,\"DIFAT chain exceeded declared sector count; stopping early\");break}}u&&I.length<u&&rn(i,`FAT sector count mismatch: header says ${u}, found ${I.length}`);let k=[];for(let et of I){let B=Ua(e,l,et),z=new Rt(B);for(let st=0;st<l/4;st+=1)k.push(z.i32(st*4))}let W=qi(e,l,f,k),U=new Rt(W),v=[];for(let et=0,B=0;et+128<=W.length;et+=128,B+=1){let z=U.u16(et+64),st=Gm(U.utf16le(et,Math.max(0,z-2)));!st&&U.u8(et+66)===0||v.push({id:B,name:st,objectType:U.u8(et+66),colorFlag:U.u8(et+67),leftSiblingId:U.i32(et+68),rightSiblingId:U.i32(et+72),childId:U.i32(et+76),clsid:U.slice(et+80,16),stateBits:U.u32(et+96),creationTime:U.u64(et+100),modifiedTime:U.u64(et+108),startSector:U.i32(et+116),streamSize:o===3?U.u32(et+120):U.u64(et+120),children:[],parentId:null})}let _=zm(v),y=Ym(v),H=[];if(g&&m>=0){let et=qi(e,l,m,k),B=new Rt(et);for(let z=0;z+4<=et.length;z+=4)H.push(B.i32(z))}let nt=qi(e,l,_.startSector,k,_.streamSize);function J(et){if(et.startSector<0)return new Uint8Array(0);let B=cc(et.startSector,dt=>H[dt]??yn),z=new Uint8Array(B.length*c),st=0;for(let dt of B){let ft=dt*c,Ft=ft+c;if(Ft>nt.length)throw new Error(`Mini sector ${dt} is out of bounds`);z.set(nt.subarray(ft,Ft),st),st+=c}return z.subarray(0,Math.min(et.streamSize,z.length))}function lt(et){let B=typeof et==\"string\"?y.get(et)??null:et;return!B||B.objectType!==2&&B.objectType!==5?null:B.objectType===5?nt:B.streamSize<p&&B.startSector>=0&&H.length?J(B):qi(e,l,B.startSector,k,B.streamSize)}function ot(et){let B=typeof et==\"string\"?y.get(et)??null:et;return B?(B.children||[]).map(z=>v[z]).filter(z=>!!z):[]}return{bytes:e,majorVersion:o,sectorSize:l,miniSectorSize:c,numDirSectors:h,numFatSectors:u,firstDirSector:f,transactionSignature:d,miniStreamCutoffSize:p,warnings:i,entries:v,root:_,pathMap:y,getEntry(et){return y.get(et)??null},getStream:lt,listChildren:ot,findByName(et,B=\"/\"){let z=B===\"/\"?_:y.get(B)??null;if(!z)return null;let st=[z];for(;st.length;){let dt=st.pop();if(dt){if(dt.name===et)return dt;for(let ft of dt.children||[]){let Ft=v[ft];Ft&&st.push(Ft)}}}return null}}}var jm={\"\\x82\":\"\\u201A\",\"\\x83\":\"\\u0192\",\"\\x84\":\"\\u201E\",\"\\x85\":\"\\u2026\",\"\\x86\":\"\\u2020\",\"\\x87\":\"\\u2021\",\"\\x88\":\"\\u02C6\",\"\\x89\":\"\\u2030\",\"\\x8A\":\"\\u0160\",\"\\x8B\":\"\\u2039\",\"\\x8C\":\"\\u0152\",\"\\x91\":\"\\u2018\",\"\\x92\":\"\\u2019\",\"\\x93\":\"\\u201C\",\"\\x94\":\"\\u201D\",\"\\x95\":\"\\u2022\",\"\\x96\":\"\\u2013\",\"\\x97\":\"\\u2014\",\"\\x98\":\"\\u02DC\",\"\\x99\":\"\\u2122\",\"\\x9A\":\"\\u0161\",\"\\x9B\":\"\\u203A\",\"\\x9C\":\"\\u0153\",\"\\x9F\":\"\\u0178\"};function Vm(n){return n.replace(/[\\x82-\\x8C\\x91-\\x9C\\x9F]/g,t=>jm[t]||t)}function Xm(n){let t=\"\";for(let e=0;e<n.length;e+=1)t+=String.fromCharCode(n[e]??0);return Vm(t)}function qm(n){return new TextDecoder(\"utf-16le\").decode(n)}function hc(n,t){let e=t.fcClx,r=t.lcbClx;if(e==null||r==null||r<=0)throw new Error(\"FIB does not point to a CLX structure\");let i=n.subarray(e,e+r),o=new Rt(i),a=0,s=[];for(;a<i.length&&o.u8(a)===1;){let u=o.u16(a+1);s.push({type:1,cbGrpprl:u,bytes:o.slice(a+3,u)}),a+=3+u}if(o.u8(a)!==2)throw new Error(\"CLX does not contain a Pcdt marker\");let l=o.u32(a+1),c=o.slice(a+5,l),h=Km(c);return{prcs:s,pcdt:{lcb:l,pieceTable:h}}}function Km(n){if(!n.length)throw new Error(\"Empty PlcPcd\");let t=new Rt(n),e=(n.length-4)/12;if(!Number.isInteger(e)||e<0)throw new Error(\"Invalid PlcPcd size\");let r=[];for(let a=0;a<e+1;a+=1)r.push(t.u32(a*4));let i=[],o=(e+1)*4;for(let a=0;a<e;a+=1){let s=t.u16(o),l=t.u32(o+2)>>>0,c=t.u16(o+6),h=!!(l&1073741824),u=l&1073741823,f=r[a]??0,d=r[a+1]??f,p=h?Math.floor(u/2):u,m=h?d-f:(d-f)*2;i.push({index:a,descriptor:s,fNoParaLast:!!(s&1),fRaw:!!(s&2),prm:c,compressed:h,fcRaw:l,fc:u,cpStart:f,cpEnd:d,actualByteStart:p,byteLength:m,actualByteEnd:p+m}),o+=8}return{cps:r,pieces:i}}function Zm(n,t){let e=n.subarray(t.actualByteStart,t.actualByteEnd);return t.compressed?Xm(e):qm(e)}function dc(n,t){return t.pcdt.pieceTable.pieces.map(e=>Zm(n,e))}function Yn(n,t,e=null){let r=n.pcdt.pieceTable.pieces,i=e??!!(t&1073741824),o=e==null?t&1073741823:t,a=i?Math.floor(o/2):o;for(let s of r){if(a<s.actualByteStart||a>s.actualByteEnd)continue;let l=a-s.actualByteStart,c=s.cpStart+Math.floor(l/(s.compressed?1:2));if(c>=s.cpStart&&c<=s.cpEnd)return c}for(let s of r){if(t<s.actualByteStart||t>s.actualByteEnd)continue;let l=t-s.actualByteStart,c=s.cpStart+Math.floor(l/(s.compressed?1:2));if(c>=s.cpStart&&c<=s.cpEnd)return c}return null}function fc(n,t,e,r,i){if(i<=r)return\"\";let o=[];for(let a=0;a<t.pcdt.pieceTable.pieces.length;a+=1){let s=t.pcdt.pieceTable.pieces[a];if(s.cpEnd<=r)continue;if(s.cpStart>=i)break;let l=Math.max(r,s.cpStart)-s.cpStart,c=Math.min(i,s.cpEnd)-s.cpStart;o.push((e[a]??\"\").slice(l,c))}return o.join(\"\")}function pc(n){let t=[],e=0;for(let r=0;r<n.length;r+=1){let i=n[r];(i===\"\\r\"||i===\"\\x07\")&&(t.push({cpStart:e,cpEnd:r+1,terminator:i}),e=r+1)}return e<n.length&&t.push({cpStart:e,cpEnd:n.length,terminator:\"\"}),t}var ge={paragraph:\"\\r\",cellMark:\"\\x07\",picture:\"\u0001\",textBoxPlaceholder:\"\\b\",fieldStart:\"\u0013\",fieldSeparator:\"\u0014\",fieldEnd:\"\u0015\",annotationRef:\"\u0005\",hardLineBreak:\"\\v\",pageBreak:\"\\f\",nonBreakingHyphen:\"\u001e\",nonRequiredHyphen:\"\u001f\"},mc={0:\"none\",1:\"single\",2:\"word\",3:\"double\",4:\"dotted\",5:\"hidden\",6:\"thick\",7:\"dash\",9:\"dot-dash\",10:\"dot-dot-dash\",11:\"wave\",16:\"dotted-heavy\",17:\"dashed-heavy\",18:\"dash-long\",19:\"dash-long-heavy\",20:\"dot-dash-heavy\",21:\"dot-dot-dash-heavy\",22:\"wavy-heavy\",23:\"wavy-double\"},gc={0:\"left\",1:\"center\",2:\"right\",3:\"justify\",4:\"distributed\"},bc={0:\"top\",1:\"middle\",2:\"bottom\"},Gn={1:\"#000000\",2:\"#0000ff\",3:\"#00ffff\",4:\"#00ff00\",5:\"#ff00ff\",6:\"#ff0000\",7:\"#ffff00\",8:\"#ffffff\",9:\"#000080\",10:\"#008080\",11:\"#008000\",12:\"#800080\",13:\"#800000\",14:\"#808000\",15:\"#808080\",16:\"#c0c0c0\"};var Jm=[\"StshfOrig\",\"Stshf\",\"PlcffndRef\",\"PlcffndTxt\",\"PlcfandRef\",\"PlcfandTxt\",\"PlcfSed\",\"PlcPad\",\"PlcfPhe\",\"SttbfGlsy\",\"PlcfGlsy\",\"PlcfHdd\",\"PlcfBteChpx\",\"PlcfBtePapx\",\"PlcfSea\",\"SttbfFfn\",\"PlcfFldMom\",\"PlcfFldHdr\",\"PlcfFldFtn\",\"PlcfFldAtn\",\"PlcfFldMcr\",\"SttbfBkmk\",\"PlcfBkf\",\"PlcfBkl\",\"Cmds\",\"Unused1\",\"SttbfMcr\",\"PrDrvr\",\"PrEnvPort\",\"PrEnvLand\",\"Wss\",\"Dop\",\"SttbfAssoc\",\"Clx\",\"PlcfPgdFtn\",\"AutosaveSource\",\"GrpXstAtnOwners\",\"SttbfAtnBkmk\",\"Unused2\",\"Unused3\",\"PlcSpaMom\",\"PlcSpaHdr\",\"PlcfAtnBkf\",\"PlcfAtnBkl\",\"Pms\",\"FormFldSttbs\",\"PlcfendRef\",\"PlcfendTxt\",\"PlcfFldEdn\",\"Unused4\",\"DggInfo\",\"SttbfRMark\",\"SttbfCaption\",\"SttbfAutoCaption\",\"PlcfWkb\",\"PlcfSpl\",\"PlcftxbxTxt\",\"PlcfFldTxbx\",\"PlcfHdrtxbxTxt\",\"PlcffldHdrTxbx\",\"StwUser\",\"SttbTtmbd\",\"CookieData\",\"PgdMotherOldOld\",\"BkdMotherOldOld\",\"PgdFtnOldOld\",\"BkdFtnOldOld\",\"PgdEdnOldOld\",\"BkdEdnOldOld\",\"SttbfIntlFld\",\"RouteSlip\",\"SttbSavedBy\",\"SttbFnm\",\"PlfLst\",\"PlfLfo\",\"PlcfTxbxBkd\",\"PlcfTxbxHdrBkd\",\"DocUndoWord9\",\"RgbUse\",\"Usp\",\"Uskf\",\"PlcupcRgbUse\",\"PlcupcUsp\",\"SttbGlsyStyle\",\"Plgosl\",\"Plcocx\",\"PlcfBteLvc\",\"dwLowDateTime\",\"dwHighDateTime\",\"PlcfLvcPre10\",\"PlcfAsumy\",\"PlcfGram\",\"SttbListNames\",\"SttbfUssr\"];function yc(n){let t=new Rt(n),e=Qm(t),r=32,i=t.u16(r);r+=2;let o=t.slice(r,i*2);r+=i*2;let a=t.u16(r);r+=2;let s=t.slice(r,a*4);r+=a*4;let l=t.u16(r);r+=2;let c=t.slice(r,l*8);r+=l*8;let h=t.ensure(r,2)?t.u16(r):0;t.ensure(r,2)&&(r+=2);let u=h?t.slice(r,h*2):new Uint8Array(0),f=tg(s),d=eg(c,l),p=h?new Rt(u).u16(0):0;return{base:e,csw:i,cslw:a,cbRgFcLcb:l,cswNew:h,nFibNew:p,fibRgWBytes:o,fibRgLwBytes:s,fibRgFcLcbBytes:c,fibRgCswNewBytes:u,fibRgLw:f,fibRgFcLcb:d}}function Qm(n){let t=n.u16(0),e=n.u16(2),r=n.u16(6),i=n.u16(8),o=n.u16(10),a=n.u16(18);return{wIdent:t,nFib:e,lid:r,pnNext:i,flags:o,envFlags:a,fDot:!!(o&1),fGlsy:!!(o&2),fComplex:!!(o&4),fHasPic:!!(o&8),cQuickSaves:o>>4&15,fEncrypted:!!(o&256),fWhichTblStm:o&512?1:0,fReadOnlyRecommended:!!(o&1024),fWriteReservation:!!(o&2048),fExtChar:!!(o&4096),fLoadOverride:!!(o&8192),fFarEast:!!(o&16384),fObfuscated:!!(o&32768),nFibBack:n.u16(12),lKey:n.u32(14),envr:n.u8(18),fMac:!!(a&1),fEmptySpecial:!!(a&2),fLoadOverridePage:!!(a&4)}}function tg(n){let t=new Rt(n),e=[];for(let r=0;r+4<=n.length;r+=4)e.push(t.i32(r));return{raw:e,cbMac:e[0]??0,ccpText:e[3]??0,ccpFtn:e[4]??0,ccpHdd:e[5]??0,ccpMcr:e[6]??0,ccpAtn:e[7]??0,ccpEdn:e[8]??0,ccpTxbx:e[9]??0,ccpHdrTxbx:e[10]??0}}function eg(n,t){let e=new Rt(n),r={_pairs:[]},i=[];for(let o=0;o<t&&o*8+8<=n.length;o+=1){let a=e.u32(o*8),s=e.u32(o*8+4),l=Jm[o]||`Field${o}`;r[`fc${l}`]=a,r[`lcb${l}`]=s,i.push({name:l,fc:a,lcb:s,index:o})}return r._pairs=i,r}var X={sprmCFRMarkDel:2048,sprmCFRMark:2049,sprmCFFldVanish:2050,sprmCPicLocation:27139,sprmCIbstRMark:18436,sprmCDttmRMark:26629,sprmCFData:2054,sprmCFOle2:2058,sprmCHighlight:10764,sprmCIstd:18992,sprmCPlain:10803,sprmCFBold:2101,sprmCFItalic:2102,sprmCFStrike:2103,sprmCFOutline:2104,sprmCFShadow:2105,sprmCFSmallCaps:2106,sprmCFCaps:2107,sprmCFVanish:2108,sprmCKul:10814,sprmCDxaSpace:34880,sprmCIco:10818,sprmCHps:19011,sprmCHpsPos:18501,sprmCSymbol:27145,sprmCHpsKern:18507,sprmCRgFtc0:19023,sprmCRgFtc1:19024,sprmCRgFtc2:19025,sprmCCharScale:18514,sprmCFDStrike:10835,sprmCFImprint:2132,sprmCFSpec:2133,sprmCFObj:2134,sprmCFEmboss:2136,sprmCFBiDi:2138,sprmCFBoldBi:2140,sprmCFItalicBi:2141,sprmCFtcBi:19038,sprmCIcoBi:19040,sprmCHpsBi:19041,sprmPIstd:17920,sprmPIstdPermute:50689,sprmPIncLvl:9730,sprmPJc80:9219,sprmPFKeep:9221,sprmPFKeepFollow:9222,sprmPFPageBreakBefore:9223,sprmPIlvl:9738,sprmPIlfo:17931,sprmPChgTabsPapx:50701,sprmPDxaRight80:33806,sprmPDxaLeft80:33807,sprmPNest80:17936,sprmPDxaLeft180:33809,sprmPDyaLine:25618,sprmPDyaBefore:42003,sprmPDyaAfter:42004,sprmPChgTabs:50709,sprmPFInTable:9238,sprmPFTtp:9239,sprmPDxaAbs:33816,sprmPDyaAbs:33817,sprmPDxaWidth:33818,sprmPPc:9755,sprmPWr:9251,sprmPBrcTop80:25636,sprmPBrcLeft80:25637,sprmPBrcBottom80:25638,sprmPBrcRight80:25639,sprmPBrcBetween80:25640,sprmPBrcBar80:26153,sprmPWHeightAbs:17451,sprmPDcs:17452,sprmPShd80:17453,sprmPDyaFromText:33838,sprmPDxaFromText:33839,sprmPFLocked:9264,sprmPFWidowControl:9265,sprmPFBiDi:9281,sprmPHugePapx:26182,sprmPFAdjustRight:9288,sprmPItap:26185,sprmPDtap:26186,sprmPFInnerTableCell:9291,sprmPFInnerTtp:9292,sprmPShd:50765,sprmPBrcTop:50766,sprmPBrcLeft:50767,sprmPBrcBottom:50768,sprmPBrcRight:50769,sprmPBrcBetween:50770,sprmPBrcBar:50771,sprmPDxcRight:17493,sprmPDxcLeft:17494,sprmPDxcLeft1:17495,sprmPDylBefore:17496,sprmPDylAfter:17497,sprmPFDyaBeforeAuto:9307,sprmPFDyaAfterAuto:9308,sprmPDxaRight:33885,sprmPDxaLeft:33886,sprmPNest:18015,sprmPDxaLeft1:33888,sprmPJc:9313,sprmTJc90:21504,sprmTDxaLeft:38401,sprmTDxaGapHalf:38402,sprmTFCantSplit90:13315,sprmTTableHeader:13316,sprmTTableBorders80:54789,sprmTDyaRowHeight:37895,sprmTDefTable:54792,sprmTDefTableShd80:54793,sprmTTlp:29706,sprmTFBiDi:22027,sprmTDefTableShd3rd:54796,sprmTPc:13837,sprmTDxaAbs:37902,sprmTDyaAbs:37903,sprmTDxaFromText:37904,sprmTDyaFromText:37905,sprmTDefTableShd:54802,sprmTTableBorders:54803,sprmTTableWidth:62996,sprmTFAutofit:13845,sprmTDefTableShd2nd:54806,sprmTWidthBefore:62999,sprmTWidthAfter:63e3,sprmTSetBrc80:54816,sprmTInsert:30241,sprmTDelete:22050,sprmTDxaCol:30243,sprmTMerge:22052,sprmTSplit:22053,sprmTTextFlow:30249,sprmTVertMerge:54827,sprmTVertAlign:54828,sprmTSetShd:54829,sprmTSetShdOdd:54830,sprmTSetBrc:54831,sprmTCellPadding:54834,sprmTCellSpacingDefault:54835,sprmTCellPaddingDefault:54836,sprmTCellWidth:54837,sprmTFitText:63030,sprmTFCellNoWrap:54841,sprmTIstd:22074,sprmTDefTableShdRaw:54896,sprmTDefTableShdRaw2nd:54897,sprmTDefTableShdRaw3rd:54898},rg=new Set([X.sprmPChgTabs,X.sprmPChgTabsPapx,X.sprmTDefTable,X.sprmTTableBorders80,X.sprmTTableBorders,X.sprmTDefTableShd,X.sprmTDefTableShd80,X.sprmTDefTableShd3rd,X.sprmTDefTableShd2nd,X.sprmTDefTableShdRaw,X.sprmTDefTableShdRaw2nd,X.sprmTDefTableShdRaw3rd,X.sprmTSetBrc80,X.sprmTSetBrc,X.sprmTSetShd,X.sprmTSetShdOdd,X.sprmTCellPadding,X.sprmTCellSpacingDefault,X.sprmTCellPaddingDefault,X.sprmTCellWidth,X.sprmTVertAlign,X.sprmTVertMerge]);function ng(n){return n>>13&7}function Qt(n,t=0){return t+2>n.length?0:(n[t]??0)|(n[t+1]??0)<<8}function se(n,t=0){let e=Qt(n,t);return e>32767?e-65536:e}function Hr(n,t=0){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function qe(n,t=0){return{first:n[t]??0,lim:n[t+1]??0}}function Xe(n,t=0){if(t+4>n.length)return null;let e=Hr(n,t)>>>0;if(e===4294967295)return{raw:e,nil:!0};let r=e&255,i=e>>8&255,o=e>>16&255,a=e>>>24&255;return{raw:e,lineWidth:r,borderType:i,color:o,space:a&31,shadow:!!(a&32),frame:!!(a&64)}}function Wr(n,t=0){if(t+8>n.length)return null;let e=Hr(n,t)>>>0,r=Hr(n,t+4)>>>0;return r===4294967295?{raw:r,colorRef:e,nil:!0}:{raw:r,colorRef:e,lineWidth:r&255,borderType:r>>>8&255,space:r>>>16&31,shadow:!!(r&1<<21),frame:!!(r&1<<22)}}function ig(n,t=0){let e=Qt(n,t);return{raw:e,horzMerge:e&3,textFlow:e>>2&7,vertMerge:e>>5&3,vertAlign:e>>7&3,ftsWidth:e>>9&7,fitText:!!(e&4096),noWrap:!!(e&8192),hideMark:!!(e&16384)}}function og(n,t=0){return t+20>n.length?null:{tcgrf:ig(n,t),wWidth:Qt(n,t+2),borders:{top:Xe(n,t+4)||{},left:Xe(n,t+8)||{},bottom:Xe(n,t+12)||{},right:Xe(n,t+16)||{}}}}function ag(n,t=0){if(t+2>n.length)return null;let e=Qt(n,t),r=e&31,i=e>>>5&31,o=e>>>10&63;return{foregroundColorIndex:r,backgroundColorIndex:i,pattern:o,auto:o===0,nil:e===65535,legacy:!0}}function Sc(n,t=0){if(t+10>n.length)return null;let e=Hr(n,t)>>>0,r=Hr(n,t+4)>>>0,i=Qt(n,t+8);return{foregroundColorRef:e,backgroundColorRef:r,pattern:i,auto:i===0,nil:i===65535}}function xc(n,t){let e=t?4:8;if(!n.length||n.length<1+e*6)return null;let r=t?Xe:Wr,i=[\"top\",\"left\",\"bottom\",\"right\",\"horizontalInside\",\"verticalInside\"],o={};return i.forEach((a,s)=>{let l=r(n,1+s*e);l&&(o[a]=l)}),o}function Zi(n,t,e){let r=e?2:10,i=Math.floor(Math.min(n[0]??0,Math.max(0,n.length-1))/r),o=[];for(let a=0;a<i;a+=1){let s=e?ag(n,1+a*r):Sc(n,1+a*r);s&&o.push(s)}return{start:t,values:o}}function sg(n){if(n.length<3)return null;let t=Qt(n,0),e=n[2]??0,r=3,i=[];for(let a=0;a<e+1&&r+2<=n.length;a+=1)i.push(se(n,r)),r+=2;let o=[];for(let a=0;a<e&&r+20<=n.length;a+=1){let s=og(n,r);s&&o.push(s),r+=20}return{cb:t,numberOfColumns:e,rgdxaCenter:i,cells:o}}function wc(n){return n.length?{cb:n[0]??0,range:qe(n,1),value:n[3]??0,extra:n.subarray(4)}:null}function lg(n){if(!n.length)return null;let t=n[0]??0,e=Qt(n,4);return{cb:t,range:qe(n,1),ftsWidth:n[3]??0,width:e,wWidth:e}}function vc(n){if(n.length<7)return null;let t=Qt(n,5);return{cb:n[0]??0,range:qe(n,1),sides:n[3]??0,ftsWidth:n[4]??0,width:t,wWidth:t}}function cg(n){return n.length<8?null:{cb:n[0]??0,range:qe(n,1),bordersToApply:n[3]??0,border:Xe(n,4)||{nil:!0},extra:n.subarray(8)}}function ug(n){return n.length<12?null:{cb:n[0]??0,range:qe(n,1),bordersToApply:n[3]??0,border:Wr(n,4)||{nil:!0},extra:n.subarray(12)}}function Tc(n,t=!1){return n.length<13?null:{cb:n[0]??0,range:qe(n,1),shading:Sc(n,3),odd:t}}function hg(n){return n.length<3?null:{cb:n[0]??0,index:n[1]??0,value:n[2]??0}}function dg(n){return n.length<3?null:{range:qe(n,0),value:n[2]??0}}function fg(n){if(n.length<4)return null;let t=se(n,2);return{range:qe(n,0),width:t,wWidth:t}}function za(n){if(!n.length)return null;let t=Qt(n,1);return{ftsWidth:n[0]??0,width:t,wWidth:t}}function pg(n){return n.length<4?null:{itcFirst:n[0]??0,ctc:n[1]??0,dxaCol:Qt(n,2)}}function mg(n,t,e){let r=e>>13&7;if(t>=n.length)return 0;if(e===X.sprmTDefTable){let i=Qt(n,t);return i?i+1:0}if(rg.has(e))return(n[t]??0)+1;switch(r){case 0:return 1;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 2;case 5:return 2;case 6:return(n[t]??0)+1;case 7:return 3;default:return 0}}function Wt(n){return!!(n[0]??0)}function at(n,t,e,r,i){return{kind:n,name:t,value:e,raw:r,operandBytes:i}}function gg(n,t){let e=ng(n),r=t,i=n;switch(n){case X.sprmCFRMarkDel:return at(\"char\",\"revisionDeleted\",Wt(r),i,r);case X.sprmCFRMark:return at(\"char\",\"revisionInserted\",Wt(r),i,r);case X.sprmCPicLocation:return at(\"char\",\"pictureOffset\",Hr(r,0)>>>0,i,r);case X.sprmCFData:return at(\"char\",\"data\",Wt(r),i,r);case X.sprmCFOle2:return at(\"char\",\"ole2\",Wt(r),i,r);case X.sprmCIstd:return at(\"char\",\"charStyleId\",Qt(r,0),i,r);case X.sprmCPlain:return at(\"char\",\"plain\",Wt(r),i,r);case X.sprmCFBold:return at(\"char\",\"bold\",Wt(r),i,r);case X.sprmCFItalic:return at(\"char\",\"italic\",Wt(r),i,r);case X.sprmCFStrike:return at(\"char\",\"strike\",Wt(r),i,r);case X.sprmCFOutline:return at(\"char\",\"outline\",Wt(r),i,r);case X.sprmCFShadow:return at(\"char\",\"shadow\",Wt(r),i,r);case X.sprmCFSmallCaps:return at(\"char\",\"smallCaps\",Wt(r),i,r);case X.sprmCFCaps:return at(\"char\",\"caps\",Wt(r),i,r);case X.sprmCFVanish:return at(\"char\",\"hidden\",Wt(r),i,r);case X.sprmCKul:return at(\"char\",\"underline\",r[0]??0,i,r);case X.sprmCDxaSpace:return at(\"char\",\"spacing\",se(r,0),i,r);case X.sprmCIco:case X.sprmCIcoBi:return at(\"char\",\"colorIndex\",r[0]??0,i,r);case X.sprmCHighlight:{let o=r[0]??0,a={index:o,color:Gn[o]};return at(\"char\",\"highlight\",a,i,r)}case X.sprmCHps:case X.sprmCHpsBi:return at(\"char\",\"fontSizeHalfPoints\",Qt(r,0),i,r);case X.sprmCHpsPos:return at(\"char\",\"positionHalfPoints\",se(r,0),i,r);case X.sprmCSymbol:return at(\"char\",\"symbol\",{font:Qt(r,0),charCode:Qt(r,2)},i,r);case X.sprmCRgFtc0:return at(\"char\",\"fontFamilyId\",Qt(r,0),i,r);case X.sprmCRgFtc1:return at(\"char\",\"fontFamilyEastAsiaId\",Qt(r,0),i,r);case X.sprmCRgFtc2:return at(\"char\",\"fontFamilyOtherId\",Qt(r,0),i,r);case X.sprmCFtcBi:return at(\"char\",\"fontFamilyBiId\",Qt(r,0),i,r);case X.sprmCCharScale:return at(\"char\",\"scale\",Qt(r,0),i,r);case X.sprmCFDStrike:return at(\"char\",\"doubleStrike\",Wt(r),i,r);case X.sprmCFImprint:return at(\"char\",\"imprint\",Wt(r),i,r);case X.sprmCFSpec:return at(\"char\",\"special\",Wt(r),i,r);case X.sprmCFObj:return at(\"char\",\"object\",Wt(r),i,r);case X.sprmCFEmboss:return at(\"char\",\"emboss\",Wt(r),i,r);case X.sprmCFBiDi:return at(\"char\",\"rtl\",Wt(r),i,r);case X.sprmCFBoldBi:return at(\"char\",\"boldBi\",Wt(r),i,r);case X.sprmCFItalicBi:return at(\"char\",\"italicBi\",Wt(r),i,r);case X.sprmPIstd:return at(\"para\",\"styleId\",Qt(r,0),i,r);case X.sprmPJc80:case X.sprmPJc:return at(\"para\",\"alignment\",r[0]??0,i,r);case X.sprmPFKeep:return at(\"para\",\"keepLines\",Wt(r),i,r);case X.sprmPFKeepFollow:return at(\"para\",\"keepNext\",Wt(r),i,r);case X.sprmPFPageBreakBefore:return at(\"para\",\"pageBreakBefore\",Wt(r),i,r);case X.sprmPIlvl:return at(\"para\",\"listLevel\",r[0]??0,i,r);case X.sprmPIlfo:return at(\"para\",\"listId\",Qt(r,0),i,r);case X.sprmPDxaRight80:case X.sprmPDxaRight:return at(\"para\",\"rightIndent\",se(r,0),i,r);case X.sprmPDxaLeft80:case X.sprmPDxaLeft:return at(\"para\",\"leftIndent\",se(r,0),i,r);case X.sprmPDxaLeft180:case X.sprmPDxaLeft1:return at(\"para\",\"firstLineIndent\",se(r,0),i,r);case X.sprmPDyaLine:return at(\"para\",\"lineSpacing\",se(r,0),i,r);case X.sprmPDyaBefore:return at(\"para\",\"spacingBefore\",se(r,0),i,r);case X.sprmPDyaAfter:return at(\"para\",\"spacingAfter\",se(r,0),i,r);case X.sprmPFInTable:return at(\"para\",\"inTable\",Wt(r),i,r);case X.sprmPFTtp:return at(\"para\",\"tableRowEnd\",Wt(r),i,r);case X.sprmPDxaAbs:return at(\"para\",\"frameLeft\",se(r,0),i,r);case X.sprmPDyaAbs:return at(\"para\",\"frameTop\",se(r,0),i,r);case X.sprmPDxaWidth:return at(\"para\",\"frameWidth\",se(r,0),i,r);case X.sprmPPc:return at(\"para\",\"framePosition\",r[0]??0,i,r);case X.sprmPWr:return at(\"para\",\"frameWrap\",r[0]??0,i,r);case X.sprmPBrcTop80:return at(\"para\",\"borderTop\",Xe(r,0),i,r);case X.sprmPBrcTop:return at(\"para\",\"borderTop\",Wr(r,1),i,r);case X.sprmPBrcLeft80:return at(\"para\",\"borderLeft\",Xe(r,0),i,r);case X.sprmPBrcLeft:return at(\"para\",\"borderLeft\",Wr(r,1),i,r);case X.sprmPBrcBottom80:return at(\"para\",\"borderBottom\",Xe(r,0),i,r);case X.sprmPBrcBottom:return at(\"para\",\"borderBottom\",Wr(r,1),i,r);case X.sprmPBrcRight80:return at(\"para\",\"borderRight\",Xe(r,0),i,r);case X.sprmPBrcRight:return at(\"para\",\"borderRight\",Wr(r,1),i,r);case X.sprmPBrcBetween80:return at(\"para\",\"borderBetween\",Xe(r,0),i,r);case X.sprmPBrcBetween:return at(\"para\",\"borderBetween\",Wr(r,1),i,r);case X.sprmPBrcBar80:return at(\"para\",\"borderBar\",Xe(r,0),i,r);case X.sprmPBrcBar:return at(\"para\",\"borderBar\",Wr(r,1),i,r);case X.sprmPWHeightAbs:return at(\"para\",\"frameHeight\",se(r,0),i,r);case X.sprmPShd80:case X.sprmPShd:return at(\"para\",\"shading\",r.slice(),i,r);case X.sprmPDyaFromText:return at(\"para\",\"distanceFromTextY\",se(r,0),i,r);case X.sprmPDxaFromText:return at(\"para\",\"distanceFromTextX\",se(r,0),i,r);case X.sprmPFLocked:return at(\"para\",\"locked\",Wt(r),i,r);case X.sprmPFWidowControl:return at(\"para\",\"widowControl\",Wt(r),i,r);case X.sprmPFBiDi:return at(\"para\",\"rtlPara\",Wt(r),i,r);case X.sprmPFAdjustRight:return at(\"para\",\"adjustRight\",Wt(r),i,r);case X.sprmPItap:return at(\"para\",\"itap\",Hr(r,0),i,r);case X.sprmPDtap:return at(\"para\",\"dtap\",Hr(r,0),i,r);case X.sprmPFInnerTableCell:return at(\"para\",\"innerTableCell\",Wt(r),i,r);case X.sprmPFInnerTtp:return at(\"para\",\"innerTableRowEnd\",Wt(r),i,r);case X.sprmPFDyaBeforeAuto:return at(\"para\",\"spacingBeforeAuto\",Wt(r),i,r);case X.sprmPFDyaAfterAuto:return at(\"para\",\"spacingAfterAuto\",Wt(r),i,r);case X.sprmTJc90:return at(\"table\",\"alignment\",Qt(r,0),i,r);case X.sprmTDxaLeft:return at(\"table\",\"leftIndent\",se(r,0),i,r);case X.sprmTDxaGapHalf:return at(\"table\",\"gapHalf\",Qt(r,0),i,r);case X.sprmTFCantSplit90:return at(\"table\",\"cantSplit\",Wt(r),i,r);case X.sprmTTableHeader:return at(\"table\",\"header\",Wt(r),i,r);case X.sprmTDyaRowHeight:return at(\"table\",\"rowHeight\",se(r,0),i,r);case X.sprmTDefTable:return at(\"table\",\"defTable\",sg(r),i,r);case X.sprmTTableBorders80:return at(\"table\",\"tableBorders\",xc(r,!0),i,r);case X.sprmTTableBorders:return at(\"table\",\"tableBorders\",xc(r,!1),i,r);case X.sprmTDefTableShd80:return at(\"table\",\"defaultShading\",Zi(r,0,!0),i,r);case X.sprmTDefTableShd:case X.sprmTDefTableShdRaw:return at(\"table\",\"defaultShading\",Zi(r,0,!1),i,r);case X.sprmTDefTableShd2nd:case X.sprmTDefTableShdRaw2nd:return at(\"table\",\"defaultShading\",Zi(r,22,!1),i,r);case X.sprmTDefTableShd3rd:case X.sprmTDefTableShdRaw3rd:return at(\"table\",\"defaultShading\",Zi(r,44,!1),i,r);case X.sprmTFBiDi:return at(\"table\",\"rtl\",Wt(r),i,r);case X.sprmTPc:return at(\"table\",\"positionCode\",r[0]??0,i,r);case X.sprmTDxaAbs:return at(\"table\",\"absLeft\",se(r,0),i,r);case X.sprmTDyaAbs:return at(\"table\",\"absTop\",se(r,0),i,r);case X.sprmTDxaFromText:return at(\"table\",\"distanceLeft\",se(r,0),i,r);case X.sprmTDyaFromText:return at(\"table\",\"distanceTop\",se(r,0),i,r);case X.sprmTTableWidth:return at(\"table\",\"tableWidth\",za(r),i,r);case X.sprmTFAutofit:return at(\"table\",\"autoFit\",Wt(r),i,r);case X.sprmTWidthBefore:return at(\"table\",\"widthBefore\",za(r),i,r);case X.sprmTWidthAfter:return at(\"table\",\"widthAfter\",za(r),i,r);case X.sprmTInsert:return at(\"table\",\"insertCells\",pg(r),i,r);case X.sprmTDelete:return at(\"table\",\"deleteCells\",qe(r,0),i,r);case X.sprmTDxaCol:return at(\"table\",\"columnWidth\",fg(r),i,r);case X.sprmTMerge:return at(\"table\",\"merge\",qe(r,0),i,r);case X.sprmTSplit:return at(\"table\",\"split\",qe(r,0),i,r);case X.sprmTTextFlow:return at(\"table\",\"textFlow\",{range:qe(r,0),value:Qt(r,2)},i,r);case X.sprmTVertMerge:return at(\"table\",\"vertMerge\",hg(r),i,r);case X.sprmTVertAlign:return at(\"table\",\"vertAlign\",wc(r),i,r);case X.sprmTSetShd:return at(\"table\",\"setShading\",Tc(r),i,r);case X.sprmTSetShdOdd:return at(\"table\",\"setShading\",Tc(r,!0),i,r);case X.sprmTSetBrc80:return at(\"table\",\"setBorder\",cg(r),i,r);case X.sprmTSetBrc:return at(\"table\",\"setBorder\",ug(r),i,r);case X.sprmTCellPadding:case X.sprmTCellPaddingDefault:return at(\"table\",\"cellPadding\",vc(r),i,r);case X.sprmTCellSpacingDefault:return at(\"table\",\"cellSpacing\",vc(r),i,r);case X.sprmTCellWidth:return at(\"table\",\"cellWidth\",lg(r),i,r);case X.sprmTFitText:return at(\"table\",\"fitText\",dg(r),i,r);case X.sprmTFCellNoWrap:return at(\"table\",\"cellNoWrap\",wc(r),i,r);case X.sprmTIstd:return at(\"table\",\"styleId\",Qt(r,0),i,r);default:return{kind:e===1?\"para\":e===2?\"char\":e===5?\"table\":\"unknown\",name:`sprm_${n.toString(16)}`,value:r,raw:n,operandBytes:r}}}function Ur(n,t,e){let r=[],i=t;for(;i+2<=e;){let o=Qt(n,i);i+=2;let a=mg(n,i,o);if(!a||i+a>e)break;let s=n.subarray(i,i+a);i+=a,r.push(gg(o,s))}return r}function bg(n,t=0){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function Ec(n,t,e){if(t==null||e==null||e<=0)return{aFC:[],pages:[]};let r=n.subarray(t,t+e),i=new Rt(r),o=Math.floor((e-4)/8);if(o<=0)return{aFC:[],pages:[]};let a=[];for(let c=0;c<=o;c+=1)a.push(i.u32(c*4)>>>0);let s=[],l=(o+1)*4;for(let c=0;c<o;c+=1)s.push(i.u32(l+c*4)&4194303);return{aFC:a,pages:s}}function yg(n,t){let e=t*512,r=n.subarray(e,e+512);if(r.length<512)return null;let i=new Rt(r),o=i.u8(511);if(!o||o>100)return null;let a=[];for(let h=0;h<=o;h+=1)a.push(i.u32(h*4)>>>0);let s=[],l=[],c=(o+1)*4;for(let h=0;h<o;h+=1){let u=i.u8(c+h);s.push(u),l.push(u?e+u*2:0)}return{crun:o,rgfc:a,rgb:s,chpxOffsets:l}}function xg(n,t){let e=t*512,r=n.subarray(e,e+512);if(r.length<512)return null;let i=new Rt(r),o=i.u8(511);if(o>29)return null;let a=[];for(let h=0;h<=o;h+=1)a.push(i.u32(h*4)>>>0);let s=(o+1)*4,l=[],c=[];for(let h=0;h<o;h+=1){let u=i.u8(s+h*13);l.push(u),c.push(u?e+u*2:0)}return{cpara:o,rgfc:a,bOffsets:l,papxOffsets:c}}function kc(n,t,e,r){let i=e.fibRgFcLcb.fcPlcfBteChpx,o=e.fibRgFcLcb.lcbPlcfBteChpx,a=Ec(t,i,o),s=[];for(let l of a.pages){let c=yg(n,l);if(c)for(let h=0;h<c.crun;h+=1){let u=c.rgfc[h]??0,f=c.rgfc[h+1]??u,d=Yn(r,u),p=Yn(r,f);if(d==null||p==null||p<=d)continue;let m=c.chpxOffsets[h]?wg(n,c.chpxOffsets[h]):[];s.push({cpStart:d,cpEnd:p,fcStart:u,fcEnd:f,properties:m})}}return s.sort((l,c)=>l.cpStart-c.cpStart||l.cpEnd-c.cpEnd),s}function Ac(n,t,e,r,i){let o=e.fibRgFcLcb.fcPlcfBtePapx,a=e.fibRgFcLcb.lcbPlcfBtePapx,s=Ec(t,o,a),l=[];for(let c of s.pages){let h=xg(n,c);if(h)for(let u=0;u<h.cpara;u+=1){let f=h.rgfc[u]??0,d=h.rgfc[u+1]??f,p=Yn(r,f),m=Yn(r,d);if(p==null||m==null||m<p)continue;let g=h.papxOffsets[u]?Sg(n,h.papxOffsets[u],i):{styleId:0,properties:[]};l.push({cpStart:p,cpEnd:m,fcStart:f,fcEnd:d,styleId:g.styleId,properties:g.properties,rawOffset:h.papxOffsets[u]??0})}}return l.sort((c,h)=>c.cpStart-h.cpStart||c.cpEnd-h.cpEnd),l}function wg(n,t){if(t==null||t<0||t>=n.length)return[];let e=n[t]??0;if(!e)return[];let r=t+1,i=Math.min(n.length,r+e);return Ur(n,r,i)}function vg(n,t){if(t<0||t+2>n.length)return[];let e=(n[t]??0)|(n[t+1]??0)<<8;return!e||t+2+e>n.length?[]:Ur(n,t+2,t+2+e)}function Tg(n,t){if(!t?.length)return n;let e=[];for(let r of n){if(r.raw!==X.sprmPHugePapx){e.push(r);continue}let i=r.operandBytes||(r.value instanceof Uint8Array?r.value:null);if(!i||i.length<4){e.push(r);continue}let o=bg(i),a=vg(t,o);e.push(...a.length?a:[r])}return e}function Sg(n,t,e){if(t==null||t<0||t>=n.length)return{styleId:0,properties:[]};let r=new Rt(n),i=r.u8(t);if(i===0&&!r.ensure(t+1,1))return{styleId:0,properties:[]};let o,a;if(i===0?(a=r.u8(t+1)*2,o=t+2):(a=i*2-1,o=t+1),a<2||!r.ensure(o,Math.max(2,a)))return{styleId:0,properties:[]};let s=r.u16(o),l=o+2,c=Math.min(n.length,o+a),h=Tg(Ur(n,l,c),e);return{styleId:s,properties:h}}function Eg(n,t){let e=t;for(;e+1<n.length&&!(n[e]===0&&n[e+1]===0);)e+=2;return{value:new TextDecoder(\"utf-16le\").decode(n.subarray(t,e)),nextOffset:Math.min(n.length,e+2)}}function kg(n,t){if(!n.length)return null;let e=new Rt(n),r=e.u8(0),i=e.u8(1),o=e.u16(2),a=e.u8(4),s=e.u8(5),l=e.slice(6,10),c=e.slice(16,24),h=40,u=\"\",f=\"\";if(n.length>h){let p=new TextDecoder(\"utf-16le\").decode(n.subarray(h)).split(\"\\0\").filter(Boolean);if(u=p[0]||\"\",f=p[1]||\"\",!f&&s){let m=h+s*2;m+2<=n.length&&(f=Eg(n,m).value)}}return{index:t,cbFfnM1:r,ffid:i,weight:o,charset:a,ixchSzAlt:s,panose:l,fontSignature:c,name:u,altName:f}}function Cc(n,t){let e=t.fcSttbfFfn,r=t.lcbSttbfFfn;if(e==null||r==null||r<=0)return{header:null,fonts:[],byIndex(h){return h==null,null}};let i=n.subarray(e,e+r),o=new Rt(i),a=o.u16(0),s=o.u16(2),l=4,c=[];for(let h=0;h<a&&l<i.length;h+=1){let f=o.u8(l)+1,d=i.subarray(l,Math.min(l+f,i.length)),p=kg(d,h);p&&c.push(p),l+=f+s}return{header:{cData:a,cbExtra:s},fonts:c,byIndex(h){return h==null||h<0?null:c[h]||null}}}function xn(n){let t={bold:!1,italic:!1,strike:!1,underline:0,fontSizeHalfPoints:void 0,fontFamilyId:void 0,colorIndex:void 0,highlight:void 0,spacing:0,positionHalfPoints:0,scale:100,hidden:!1,smallCaps:!1,caps:!1,outline:!1,shadow:!1,emboss:!1,imprint:!1,rtl:!1,pictureOffset:void 0,data:!1,ole2:!1,object:!1,special:!1,charStyleId:void 0};for(let e of n||[])switch(e.name){case\"plain\":e.value&&(t.bold=!1,t.italic=!1,t.strike=!1,t.underline=0,t.smallCaps=!1,t.caps=!1);break;case\"bold\":case\"revisionDeleted\":case\"revisionInserted\":case\"italic\":case\"strike\":case\"hidden\":case\"smallCaps\":case\"caps\":case\"outline\":case\"shadow\":case\"emboss\":case\"imprint\":case\"rtl\":case\"data\":case\"ole2\":case\"object\":case\"special\":t[e.name]=!!e.value;break;case\"underline\":t.underline=e.value??0;break;case\"fontSizeHalfPoints\":t.fontSizeHalfPoints=e.value;break;case\"fontFamilyId\":t.fontFamilyId=e.value;break;case\"colorIndex\":t.colorIndex=e.value;break;case\"highlight\":t.highlight=e.value;break;case\"spacing\":t.spacing=e.value||0;break;case\"positionHalfPoints\":t.positionHalfPoints=e.value||0;break;case\"scale\":t.scale=e.value||100;break;case\"pictureOffset\":t.pictureOffset=e.value;break;case\"charStyleId\":t.charStyleId=e.value;break;default:t[e.name]=e.value;break}return t}function Ji(n){let t={styleId:0,alignment:0,spacingBefore:0,spacingAfter:0,lineSpacing:0,lineSpacingRule:\"auto\",leftIndent:0,rightIndent:0,firstLineIndent:0,keepLines:!1,keepNext:!1,pageBreakBefore:!1,widowControl:!1,inTable:!1,tableRowEnd:!1,innerTableCell:!1,innerTableRowEnd:!1,itap:0,dtap:0,listLevel:void 0,listId:void 0,rtlPara:!1,adjustRight:!1,frameLeft:void 0,frameTop:void 0,frameWidth:void 0,frameHeight:void 0,framePosition:void 0,frameWrap:void 0,borders:{},shading:void 0};for(let e of n||[])switch(e.name){case\"styleId\":t.styleId=e.value||0;break;case\"alignment\":t.alignment=e.value??0;break;case\"spacingBefore\":t.spacingBefore=e.value||0;break;case\"spacingAfter\":t.spacingAfter=e.value||0;break;case\"lineSpacing\":{t.lineSpacing=e.value||0;let r=e.operandBytes,i=r&&r.length>=4?r[2]===0&&r[3]===0:t.lineSpacing<0;t.lineSpacingRule=i?t.lineSpacing<0?\"exact\":\"atLeast\":\"auto\";break}case\"leftIndent\":t.leftIndent=e.value||0;break;case\"rightIndent\":t.rightIndent=e.value||0;break;case\"firstLineIndent\":t.firstLineIndent=e.value||0;break;case\"keepLines\":case\"keepNext\":case\"pageBreakBefore\":case\"widowControl\":case\"inTable\":case\"tableRowEnd\":case\"innerTableCell\":case\"innerTableRowEnd\":case\"rtlPara\":case\"adjustRight\":t[e.name]=!!e.value;break;case\"itap\":t.itap=e.value||0;break;case\"dtap\":t.dtap=e.value||0;break;case\"listLevel\":t.listLevel=e.value;break;case\"listId\":t.listId=e.value;break;case\"frameLeft\":t.frameLeft=e.value;break;case\"frameTop\":t.frameTop=e.value;break;case\"frameWidth\":t.frameWidth=e.value;break;case\"frameHeight\":t.frameHeight=e.value;break;case\"framePosition\":t.framePosition=e.value;break;case\"frameWrap\":t.frameWrap=e.value;break;case\"borderTop\":t.borders.top=e.value;break;case\"borderLeft\":t.borders.left=e.value;break;case\"borderBottom\":t.borders.bottom=e.value;break;case\"borderRight\":t.borders.right=e.value;break;case\"borderBetween\":t.borders.between=e.value;break;case\"borderBar\":t.borders.bar=e.value;break;case\"shading\":t.shading=e.value;break;default:t[e.name]=e.value;break}return t}function Ya(n){let t={styleId:void 0,alignment:0,leftIndent:0,gapHalf:0,cantSplit:!1,header:!1,rowHeight:0,rtl:!1,positionCode:void 0,absLeft:void 0,absTop:void 0,distanceLeft:void 0,distanceTop:void 0,tableWidth:void 0,autoFit:void 0,widthBefore:void 0,widthAfter:void 0,borders:{},defTable:void 0,operations:[]};for(let e of n||[])switch(e.name){case\"styleId\":t.styleId=e.value;break;case\"alignment\":t.alignment=e.value??0;break;case\"leftIndent\":t.leftIndent=e.value||0;break;case\"gapHalf\":t.gapHalf=e.value||0;break;case\"cantSplit\":case\"header\":case\"rtl\":t[e.name]=!!e.value;break;case\"rowHeight\":t.rowHeight=e.value||0;break;case\"positionCode\":t.positionCode=e.value;break;case\"absLeft\":t.absLeft=e.value;break;case\"absTop\":t.absTop=e.value;break;case\"distanceLeft\":t.distanceLeft=e.value;break;case\"distanceTop\":t.distanceTop=e.value;break;case\"tableWidth\":t.tableWidth=e.value;break;case\"autoFit\":t.autoFit=e.value;break;case\"widthBefore\":t.widthBefore=e.value;break;case\"widthAfter\":t.widthAfter=e.value;break;case\"tableBorders\":t.borders=e.value||{};break;case\"defTable\":t.defTable=e.value;break;default:t.operations.push(e);break}return t}function Nc(n){return n?.inTable?Math.max(1,n.itap||0||(n.dtap?n.dtap:1)):0}function Rc(n){return gc[n]||\"left\"}function Pc(n){return mc[n]||(n?\"single\":\"none\")}function Ic(n){return bc[n]||\"top\"}function ir(n,t,e){if(!t)return;let r=Math.max(0,t.first||0),i=Math.max(r,t.lim||r);for(let o=r;o<i&&o<n.length;o+=1)e(n[o],o)}function Qi(n){let t=n?.defTable,e=(t?.cells||[]).map((o,a)=>({index:a,width:t?.rgdxaCenter?.[a+1]!=null&&t?.rgdxaCenter?.[a]!=null?Math.max(0,t.rgdxaCenter[a+1]-t.rgdxaCenter[a]):o?.wWidth,ftsWidth:o?.tcgrf?.ftsWidth,borders:o?.borders||{},merge:o?.tcgrf?.horzMerge||0,vertMerge:o?.tcgrf?.vertMerge||0,vertAlign:o?.tcgrf?.vertAlign||0,fitText:!!o?.tcgrf?.fitText,noWrap:!!o?.tcgrf?.noWrap,hideMark:!!o?.tcgrf?.hideMark,textFlow:o?.tcgrf?.textFlow||0,rightBoundary:t?.rgdxaCenter?.[a+1],leftBoundary:t?.rgdxaCenter?.[a]})),r=!1,i=e[0]?.leftBoundary||0;for(let o of n.operations||[])switch(o.name){case\"insertCells\":{if(t?.cells?.length)break;let a=o.value,s=Math.min(e.length,Math.max(0,a?.itcFirst||0)),l=Math.min(63-e.length,Math.max(0,a?.ctc||0)),c=Math.max(0,a?.dxaCol||0);l&&(e.splice(s,0,...Array.from({length:l},(h,u)=>({index:s+u,width:c,borders:{},merge:0,vertMerge:0,vertAlign:0,fitText:!1,noWrap:!1,hideMark:!1,textFlow:0}))),r=!0);break}case\"deleteCells\":{let a=o.value;if(a){let s=Math.max(0,a.first||0),l=Math.max(0,(a.lim||s)-s);l&&(e.splice(s,l),r=!0)}break}case\"merge\":ir(e,o.value,(a,s)=>{let l=o.value;s===l.first?a.merge=2:a.merge=1});break;case\"split\":ir(e,o.value,a=>{a.merge=0});break;case\"cellWidth\":ir(e,o.value.range,a=>{let s=o.value;a.ftsWidth=s.ftsWidth,(s.ftsWidth===2||s.ftsWidth===3)&&s.width!=null&&(a.width=s.width)});break;case\"columnWidth\":ir(e,o.value.range,a=>{a.width=Math.max(0,o.value.width||0),r=!0});break;case\"vertMerge\":{let a=o.value,s=a?.index!=null?e[a.index]:void 0;s&&(s.vertMerge=a?.value||0);break}case\"vertAlign\":ir(e,o.value.range,a=>{a.vertAlign=o.value.value});break;case\"setBorder\":ir(e,o.value.range,a=>{let s=o.value,l={...a.borders||{}};s.bordersToApply&1&&(l.top=s.border),s.bordersToApply&2&&(l.left=s.border),s.bordersToApply&4&&(l.bottom=s.border),s.bordersToApply&8&&(l.right=s.border),s.bordersToApply&16&&(l.diagonalDown=s.border),s.bordersToApply&32&&(l.diagonalUp=s.border),a.borders=l});break;case\"setShading\":ir(e,o.value.range,(a,s)=>{let l=o.value;(!l.odd||(s-l.range.first)%2===0)&&(a.shading=l.shading)});break;case\"cellPadding\":case\"cellSpacing\":{let a=o.value,s=a?.ftsWidth===3||o.name===\"cellSpacing\"&&a?.ftsWidth===19;if(!a?.range||!s||a.width==null)break;ir(e,a.range,l=>{let c=o.name===\"cellPadding\"?\"paddingTwips\":\"spacingTwips\",h={...l[c]||{}};(a.sides||0)&1&&(h.top=a.width),(a.sides||0)&2&&(h.left=a.width),(a.sides||0)&4&&(h.bottom=a.width),(a.sides||0)&8&&(h.right=a.width),l[c]=h});break}case\"defaultShading\":{let a=o.value;(a?.values||[]).forEach((s,l)=>{let c=e[(a?.start||0)+l];c&&(c.shading=s)});break}case\"fitText\":ir(e,o.value.range,a=>{a.fitText=!!o.value.value});break;case\"cellNoWrap\":ir(e,o.value.range,a=>{a.noWrap=!!o.value.value});break;case\"textFlow\":ir(e,o.value.range,a=>{a.textFlow=o.value.value});break;default:break}if(r){let o=i;e.forEach(a=>{let s=Math.max(0,a.width||0);a.leftBoundary=o,o+=s,a.rightBoundary=o})}return e.forEach((o,a)=>{o.index=a}),e}var Ag=/^(?:<!doctype\\s+html\\b|<html\\b|<body\\b)/i,Cg=new Set([\"br\"]),Ng=new Set([\"div\",\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"li\",\"pre\",\"blockquote\",\"tr\"]),Rg=new Set([\"div\",\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"li\",\"pre\",\"blockquote\",\"tr\",\"table\"]),Pg=new Set([\"td\",\"th\"]),Lc=new Set([\"script\",\"style\",\"noscript\",\"iframe\",\"object\",\"embed\",\"svg\"]);function _c(n,t=1024){return Array.from(n.subarray(0,Math.min(t,n.length)),e=>e===0?\"\":String.fromCharCode(e)).join(\"\")}function Ig(n){let t=_c(n).replace(/^\\uFEFF/,\"\").trimStart();return Ag.test(t)}function to(n,t,e=!1){try{return new TextDecoder(t,{fatal:e}).decode(n)}catch{return null}}function Og(n){let t=n.length;for(;t>0&&n[t-1]===0;)t-=1;let e=n.subarray(0,t),r=_c(e,4096),i=/charset\\s*=\\s*[\"']?([a-z0-9._-]+)/i.exec(r)?.[1]?.toLowerCase(),o=i===\"gb2312\"||i===\"gbk\"?\"gb18030\":i;if(o){let s=to(e,o);if(s!=null)return s}let a=to(e,\"utf-8\",!0);return a??to(e,\"gb18030\")??to(e,\"utf-8\")??\"\"}function Lg(n){let t={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\"\\xA0\",quot:'\"'};return n.replace(/&(#(?:x[0-9a-f]+|\\d+)|[a-z][a-z0-9]+);/gi,(e,r)=>{if(r[0]===\"#\"){let i=r[1]?.toLowerCase()===\"x\",o=Number.parseInt(r.slice(i?2:1),i?16:10);if(Number.isFinite(o)&&o>=0&&o<=1114111)try{return String.fromCodePoint(o)}catch{return e}return e}return t[r.toLowerCase()]??e})}function Ga(n,t){let e=\"\";for(let r=t+1;r<n.length;r+=1){let i=n[r]||\"\";if(e){i===e&&(e=\"\");continue}if(i==='\"'||i===\"'\")e=i;else if(i===\">\")return r}return-1}function Mc(n,t,e){let r=t+1;for(;r<e&&/\\s/.test(n[r]||\"\");)r+=1;let i=n[r]===\"/\";for(i&&(r+=1);r<e&&/\\s/.test(n[r]||\"\");)r+=1;let o=r;for(;r<e&&/[A-Za-z0-9]/.test(n[r]||\"\");)r+=1;return{closing:i,name:n.slice(o,r).toLowerCase(),attributes:i?\"\":n.slice(r,e),selfClosing:!i&&/\\/\\s*$/.test(n.slice(r,e))}}function Fc(n,t,e,r){let i=`</${e}`,o=r;for(;o<n.length;){let a=t.indexOf(i,o);if(a<0)return n.length;let s=t[a+i.length]||\"\";if(s&&!/[\\s>]/.test(s)){o=a+i.length;continue}let l=Ga(n,a);return l<0?n.length:l+1}return n.length}function _g(n){let t=[],e=n.toLowerCase(),r=0;for(;r<n.length;){let i=n.indexOf(\"<\",r);if(i<0){t.push(n.slice(r));break}if(t.push(n.slice(r,i)),n.startsWith(\"<!--\",i)){let s=n.indexOf(\"-->\",i+4);r=s<0?n.length:s+3;continue}let o=Ga(n,i);if(o<0){t.push(n.slice(i));break}let a=Mc(n,i,o);if(!a.closing&&Lc.has(a.name)){r=Fc(n,e,a.name,o+1);continue}Cg.has(a.name)||a.closing&&Rg.has(a.name)?t.push(`\n`):Pg.has(a.name)&&t.push(\"\t\"),r=o+1}return t.join(\"\").replace(/\\u0000/g,\"\")}function Oc(n){return Lg(_g(n)).replace(/\\r\\n?/g,`\n`).replace(/[\\t\\f\\v ]+/g,\" \").replace(/ *\\n */g,`\n`).trim()}function Mg(n){let t=[],e=n.toLowerCase(),r=null,i=0,o=(s,l)=>{let c=Oc(l);c&&t.push({text:c,attributes:s,content:l})};for(;i<n.length;){let s=n.indexOf(\"<\",i);if(s<0)break;if(n.startsWith(\"<!--\",s)){let h=n.indexOf(\"-->\",s+4);i=h<0?n.length:h+3;continue}let l=Ga(n,s);if(l<0)break;let c=Mc(n,s,l);if(!c.closing&&Lc.has(c.name)){i=Fc(n,e,c.name,l+1);continue}Ng.has(c.name)&&!c.selfClosing&&(c.closing?r?.name===c.name&&(r.sameNameDepth>0?r.sameNameDepth-=1:(o(r.attributes,n.slice(r.contentStart,s)),r=null)):r?r.name===c.name&&(r.sameNameDepth+=1):r={attributes:c.attributes,contentStart:l+1,name:c.name,sameNameDepth:0}),i=l+1}if(r&&o(r.attributes,n.slice(r.contentStart)),t.length)return t;let a=Oc(n);return a?[{text:a,attributes:\"\",content:n}]:[]}function Fg(n){return/\\bstyle\\s*=\\s*([\"'])([\\s\\S]*?)\\1/i.exec(n)?.[2]||\"\"}function Dg(n,t){let e=Ji([]),r=xn([]),i=Fg(n.attributes),o=/text-align\\s*:\\s*(center|right|justify)/i.exec(i)?.[1]?.toLowerCase();o===\"center\"&&(e.alignment=1),o===\"right\"&&(e.alignment=2),o===\"justify\"&&(e.alignment=3);let a=Number.parseFloat(/text-indent\\s*:\\s*([\\d.]+)pt/i.exec(i)?.[1]||\"\");Number.isFinite(a)&&(e.firstLineIndent=Math.round(a*20));let s=Number.parseFloat(/font-size\\s*:\\s*([\\d.]+)pt/i.exec(i)?.[1]||\"\");Number.isFinite(s)&&(r.fontSizeHalfPoints=Math.round(Math.min(96,Math.max(8,s))*2)),(/font-weight\\s*:\\s*(?:bold|[6-9]00)/i.test(i)||/<(?:b|strong)\\b/i.test(n.content))&&(r.bold=!0),(/font-style\\s*:\\s*italic/i.test(i)||/<(?:i|em)\\b/i.test(n.content))&&(r.italic=!0);let l=n.text.split(`\n`).flatMap((c,h)=>[...h?[{type:\"lineBreak\"}]:[],...c?[{type:\"text\",text:c,style:{...r}}]:[]]);return{type:\"paragraph\",id:`html-word-paragraph-${t+1}`,styleId:0,styleName:\"Normal\",paraState:e,inlines:l,text:n.text}}function Dc(n){if(!Ig(n))return null;let t=Mg(Og(n));if(!t.length)return null;let e=t.map(Dg),r=t.reduce((i,o)=>i+o.text.length,0);return{kind:\"msdoc\",version:1,warnings:[{message:\"Recovered an HTML document stored inside the legacy WordDocument stream.\",code:\"MSDOC_HTML_WORDDOCUMENT_RECOVERED\"}],meta:{fib:{wIdent:0,nFib:0,fWhichTblStm:0,fComplex:!1,fEncrypted:!1,ccpText:r},counts:{paragraphs:e.length,blocks:e.length,assets:0,styles:0,fonts:0}},fonts:[],styles:[],blocks:e,assets:[]}}var Ie=class extends Error{name=\"InflateError\"},Va=class{bytes;byteOffset=0;bitBuffer=0;bitCount=0;constructor(t){this.bytes=t}readBits(t){if(t<0||t>24)throw new Ie(\"Invalid bit count\");for(;this.bitCount<t;){if(this.byteOffset>=this.bytes.length)throw new Ie(\"Unexpected end of deflate stream\");this.bitBuffer|=(this.bytes[this.byteOffset++]??0)<<this.bitCount,this.bitCount+=8}let e=t===0?0:(1<<t)-1,r=this.bitBuffer&e;return this.bitBuffer>>>=t,this.bitCount-=t,r}readBit(){return this.readBits(1)}alignToByte(){this.bitBuffer=0,this.bitCount=0}readByte(){return this.readBits(8)}},Xa=class{buffer;length=0;constructor(t=32768){this.buffer=new Uint8Array(t)}reserve(t){let e=this.length+t;if(e<=this.buffer.length)return;let r=this.buffer.length;for(;r<e;)r*=2;let i=new Uint8Array(r);i.set(this.buffer.subarray(0,this.length)),this.buffer=i}push(t){this.reserve(1),this.buffer[this.length++]=t&255}pushBytes(t){this.reserve(t.length),this.buffer.set(t,this.length),this.length+=t.length}copyFromBack(t,e){if(t<=0||t>this.length)throw new Ie(\"Invalid back-reference distance\");this.reserve(e);for(let r=0;r<e;r+=1)this.buffer[this.length]=this.buffer[this.length-t]??0,this.length+=1}toUint8Array(t){let e=this.buffer.slice(0,this.length);return t!=null&&t>=0&&e.length!==t,e}};function jn(n){let t=Math.max(0,...n);if(t===0)throw new Ie(\"Empty Huffman table\");let e=new Array(t+1).fill(0);for(let a of n){if(a<0||a>t)throw new Ie(\"Invalid code length\");a&&(e[a]+=1)}let r=new Array(t+1).fill(0),i=0;for(let a=1;a<=t;a+=1)i=i+(e[a-1]??0)<<1,r[a]=i;let o=Array.from({length:t+1},()=>new Map);for(let a=0;a<n.length;a+=1){let s=n[a]??0;if(!s)continue;let l=r[s]??0;r[s]=l+1,o[s].set(l,a)}return{maps:o,maxBits:t}}function qa(n,t){let e=0;for(let r=1;r<=t.maxBits;r+=1){e=e<<1|n.readBit();let i=t.maps[r]?.get(e);if(i!=null)return i}throw new Ie(\"Invalid Huffman code\")}var Bg=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],$g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Bc=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Wg=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ja=null,$c=null;function Hg(){if(!ja){let n=new Array(288).fill(0);for(let t=0;t<=143;t+=1)n[t]=8;for(let t=144;t<=255;t+=1)n[t]=9;for(let t=256;t<=279;t+=1)n[t]=7;for(let t=280;t<=287;t+=1)n[t]=8;ja=jn(n),$c=jn(new Array(32).fill(5))}return{literalLength:ja,distance:$c}}var Ug=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function zg(n){let t=n.readBits(5)+257,e=n.readBits(5)+1,r=n.readBits(4)+4,i=new Array(19).fill(0);for(let c=0;c<r;c+=1)i[Ug[c]]=n.readBits(3);let o=jn(i),a=[];for(;a.length<t+e;){let c=qa(n,o);if(c<=15)a.push(c);else if(c===16){if(!a.length)throw new Ie(\"Repeat code length without previous value\");let h=n.readBits(2)+3,u=a[a.length-1]??0;for(let f=0;f<h;f+=1)a.push(u)}else if(c===17){let h=n.readBits(3)+3;for(let u=0;u<h;u+=1)a.push(0)}else if(c===18){let h=n.readBits(7)+11;for(let u=0;u<h;u+=1)a.push(0)}else throw new Ie(\"Invalid code length symbol\")}let s=a.slice(0,t),l=a.slice(t,t+e);if(!s[256])throw new Ie(\"Missing end-of-block code\");return l.some(Boolean)||(l[0]=1),{literalLength:jn(s),distance:jn(l)}}function Wc(n,t,e,r){for(;;){let i=qa(n,e);if(i<256){t.push(i);continue}if(i===256)return;if(i<257||i>285)throw new Ie(\"Invalid length symbol\");let o=i-257,a=Bg[o]??0,s=$g[o]??0;s&&(a+=n.readBits(s));let l=qa(n,r);if(l<0||l>=Bc.length)throw new Ie(\"Invalid distance symbol\");let c=Bc[l]??0,h=Wg[l]??0;h&&(c+=n.readBits(h)),t.copyFromBack(c,a)}}function Yg(n,t){let e=new Va(n),r=new Xa(t&&t>0?t:void 0),i=!1;for(;!i;){i=e.readBit()===1;let o=e.readBits(2);if(o===0){e.alignToByte();let a=e.readByte()|e.readByte()<<8,s=e.readByte()|e.readByte()<<8;if(((a^65535)&65535)!==s)throw new Ie(\"Invalid stored block length\");let l=new Uint8Array(a);for(let c=0;c<a;c+=1)l[c]=e.readByte();r.pushBytes(l)}else if(o===1){let a=Hg();Wc(e,r,a.literalLength,a.distance)}else if(o===2){let a=zg(e);Wc(e,r,a.literalLength,a.distance)}else throw new Ie(\"Reserved deflate block type\")}return r.toUint8Array(t)}function Gg(n){let t=1,e=0;for(let r of n)t=(t+r)%65521,e=(e+t)%65521;return(e<<16|t)>>>0}function Hc(n,t){if(n.length<6)return null;let e=n[0]??0,r=n[1]??0;if((e&15)!==8||e>>>4>7||((e<<8)+r)%31!==0||r&32)return null;try{let i=n.subarray(2,Math.max(2,n.length-4)),o=Yg(i,t),a=(n[n.length-4]??0)<<24|(n[n.length-3]??0)<<16|(n[n.length-2]??0)<<8|(n[n.length-1]??0);return a>>>0&&Gg(o)!==a>>>0?null:o}catch{return null}}var zc=15,jg=61444,Vg=61450,Xg=61451,qg=61729,Kg=61730,Zg=260,Jg=390,Qg=261,t0=896,e0=897;function r0(n,t){return t+2>n.length?0:(n[t]??0)|(n[t+1]??0)<<8}function Yc(n,t){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function n0(n){if(n?.length)try{return new TextDecoder(\"utf-16le\").decode(n).replace(/\\0+$/g,\"\").trim()||void 0}catch{return}}function i0(n){if(n?.length)try{return new TextDecoder(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\").trim()||void 0}catch{return}}function Uc(n){return n0(n)||i0(n)}function Gc(n){switch(n){case 2:return\"image/emf\";case 3:return\"image/wmf\";case 4:return\"image/pict\";case 5:return\"image/jpeg\";case 6:return\"image/png\";case 7:return\"image/dib\";case 17:return\"image/tiff\";case 18:return\"image/jpeg\";default:return null}}function jc(n,t){if(t<0||t+8>n.length)return null;let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u32(t+4),a=8+o;return i<61440||i>65535||o>n.length||t+a>n.length?null:{recVer:r&15,recInstance:r>>>4,recType:i,recLen:o,size:a}}function o0(n,t,e){let r=t+8;if(r+e*6>n.length)return[];let i=[],o=r,a=r+e*6;for(let s=0;s<e;s+=1){let l=r0(n,o),c=Yc(n,o+2);o+=6;let h=l&16383,u=!!(l>>14&1),f=!!(l>>15&1),d;if(f){if(a+c>n.length)break;d=n.subarray(a,a+c),a+=c}i.push({propertyId:h,isBlipId:u,isComplex:f,value:c,complexData:d})}return i}function Vc(n,t,e,r){let i=Math.max(0,t),o=Math.min(e,n.length);for(;i+8<=o;){let a=jc(n,i);if(!a||i+a.size>o){i+=1;continue}if(r(i,a)===!0||a.recVer===zc&&Vc(n,i+8,i+a.size,r))return!0;i+=a.size}return!1}function Xc(n,t=0){let e=null;return Vc(n,t,n.length,(r,i)=>{if(i.recType!==jg||i.recVer!==zc)return!1;let o=r+i.size,a=r+8,s=0,l,c,h;for(;a+8<=o;){let u=jc(n,a);if(!u||a+u.size>o)break;if(u.recType===Vg&&u.recLen>=8)s=Yc(n,a+8);else if(u.recType===Xg||u.recType===qg||u.recType===Kg){let f=o0(n,a,u.recInstance);for(let d of f)(d.isBlipId||d.propertyId===Zg||d.propertyId===Jg)&&d.value>0?l=d.value:d.propertyId===t0?c=Uc(d.complexData)||c:(d.propertyId===e0||d.propertyId===Qg)&&(h=Uc(d.complexData)||h)}a+=u.size}return s?(e={shapeId:s,blipIndex:l,name:c,description:h},!0):!1}),e}var a0={color:\"#000000\",width:1},s0={color:\"#ffffff\",none:!0},l0={family:\"sans-serif\",size:12},Qc={m11:1,m12:0,m21:0,m22:1,dx:0,dy:0},c0=2596720087,u0=18,te={META_EOF:0,META_SETBKMODE:258,META_SETPOLYFILLMODE:262,META_SETBKCOLOR:513,META_SETTEXTCOLOR:521,META_SETWINDOWORG:523,META_SETWINDOWEXT:524,META_SETVIEWPORTORG:525,META_SETVIEWPORTEXT:526,META_OFFSETWINDOWORG:527,META_OFFSETVIEWPORTORG:529,META_LINETO:531,META_MOVETO:532,META_POLYGON:804,META_POLYLINE:805,META_TEXTOUT:1313,META_POLYPOLYGON:1336,META_ELLIPSE:1048,META_RECTANGLE:1051,META_ROUNDRECT:1564,META_CREATEBRUSHINDIRECT:764,META_CREATEPENINDIRECT:762,META_CREATEFONTINDIRECT:763,META_SELECTOBJECT:301,META_DELETEOBJECT:496},Ct={EMR_HEADER:1,EMR_POLYBEZIER:2,EMR_POLYGON:3,EMR_POLYLINE:4,EMR_POLYBEZIERTO:5,EMR_POLYLINETO:6,EMR_POLYPOLYLINE:7,EMR_POLYPOLYGON:8,EMR_SETWINDOWEXTEX:9,EMR_SETWINDOWORGEX:10,EMR_SETVIEWPORTEXTEX:11,EMR_SETVIEWPORTORGEX:12,EMR_EOF:14,EMR_SETBKMODE:18,EMR_SETPOLYFILLMODE:19,EMR_SETTEXTALIGN:22,EMR_SETTEXTCOLOR:24,EMR_SETBKCOLOR:25,EMR_MOVETOEX:27,EMR_SAVEDC:33,EMR_RESTOREDC:34,EMR_SETWORLDTRANSFORM:35,EMR_MODIFYWORLDTRANSFORM:36,EMR_SELECTOBJECT:37,EMR_CREATEPEN:38,EMR_CREATEBRUSHINDIRECT:39,EMR_DELETEOBJECT:40,EMR_ELLIPSE:42,EMR_RECTANGLE:43,EMR_ROUNDRECT:44,EMR_BEGINPATH:59,EMR_ENDPATH:60,EMR_CLOSEFIGURE:61,EMR_FILLPATH:62,EMR_STROKEANDFILLPATH:63,EMR_STROKEPATH:64,EMR_SELECTCLIPPATH:67,EMR_LINETO:54,EMR_BITBLT:76,EMR_STRETCHBLT:77,EMR_STRETCHDIBITS:81,EMR_EXTCREATEFONTINDIRECTW:82,EMR_EXTTEXTOUTA:83,EMR_EXTTEXTOUTW:84,EMR_POLYBEZIER16:85,EMR_POLYGON16:86,EMR_POLYLINE16:87,EMR_POLYBEZIERTO16:88,EMR_POLYLINETO16:89,EMR_POLYPOLYLINE16:90,EMR_POLYPOLYGON16:91,EMR_EXTCREATEPEN:95,EMR_SMALLTEXTOUT:108,EMR_ALPHABLEND:114},Tr=2147483648,Sr={WHITE_BRUSH:Tr,LTGRAY_BRUSH:Tr+1,GRAY_BRUSH:Tr+2,DKGRAY_BRUSH:Tr+3,BLACK_BRUSH:Tr+4,NULL_BRUSH:Tr+5,WHITE_PEN:Tr+6,BLACK_PEN:Tr+7,NULL_PEN:Tr+8},eo={MWT_IDENTITY:1,MWT_LEFTMULTIPLY:2,MWT_RIGHTMULTIPLY:3,MWT_SET:4};function It(n){let t=Math.round(n*100)/100;return Number.isInteger(t),String(t)}function be(n){return Math.max(1,n.right-n.left||0)}function ye(n){return Math.max(1,n.bottom-n.top||0)}function wn(n){return{left:Math.min(n.left,n.right),top:Math.min(n.top,n.bottom),right:Math.max(n.left,n.right),bottom:Math.max(n.top,n.bottom)}}function h0(n,t){for(let e of t)if(!(!Number.isFinite(e.x)||!Number.isFinite(e.y))){if(!n.contentBounds){n.contentBounds={left:e.x,top:e.y,right:e.x,bottom:e.y};continue}n.contentBounds.left=Math.min(n.contentBounds.left,e.x),n.contentBounds.top=Math.min(n.contentBounds.top,e.y),n.contentBounds.right=Math.max(n.contentBounds.right,e.x),n.contentBounds.bottom=Math.max(n.contentBounds.bottom,e.y)}}function Er(n){let t=n&255,e=n>>>8&255,r=n>>>16&255;return`#${t.toString(16).padStart(2,\"0\")}${e.toString(16).padStart(2,\"0\")}${r.toString(16).padStart(2,\"0\")}`}function d0(n,t){let e=new Uint8Array(14),r=new DataView(e.buffer);return e[0]=66,e[1]=77,r.setUint32(2,t>>>0,!0),r.setUint32(10,n>>>0,!0),e}function f0(n,t){if(n.length<12||!t.length)return null;let e=14+n.length,r=e+t.length,i=new Uint8Array(r);return i.set(d0(e,r),0),i.set(n,14),i.set(t,e),i}function Qa(n,t,e){let r=Math.max(1,Math.abs(t)||1),i={color:e,width:r};switch(n&15){case 1:return{...i,dasharray:`${r*4} ${r*2}`};case 2:return{...i,dasharray:`${r} ${r*2}`};case 3:return{...i,dasharray:`${r*4} ${r*2} ${r} ${r*2}`};case 4:return{...i,dasharray:`${r*4} ${r*2} ${r} ${r*2} ${r} ${r*2}`};case 5:return{...i,none:!0};default:return i}}function tu(n,t){return n===1?{color:t,none:!0}:{color:t}}function Ka(n){return{...n,windowOrg:{...n.windowOrg},windowExt:{...n.windowExt},viewportOrg:{...n.viewportOrg},viewportExt:{...n.viewportExt},worldTransform:{...n.worldTransform},currentPosition:{...n.currentPosition},pen:{...n.pen},brush:{...n.brush},font:{...n.font}}}function qc(n,t){let e=n.view;return{m11:n.ensure(t,4)?e.getFloat32(t,!0):1,m12:n.ensure(t+4,4)?e.getFloat32(t+4,!0):0,m21:n.ensure(t+8,4)?e.getFloat32(t+8,!0):0,m22:n.ensure(t+12,4)?e.getFloat32(t+12,!0):1,dx:n.ensure(t+16,4)?e.getFloat32(t+16,!0):0,dy:n.ensure(t+20,4)?e.getFloat32(t+20,!0):0}}function Kc(n,t){return{m11:n.m11*t.m11+n.m12*t.m21,m12:n.m11*t.m12+n.m12*t.m22,m21:n.m21*t.m11+n.m22*t.m21,m22:n.m21*t.m12+n.m22*t.m22,dx:n.dx*t.m11+n.dy*t.m21+t.dx,dy:n.dx*t.m12+n.dy*t.m22+t.dy}}function p0(n,t){return{x:t.x*n.m11+t.y*n.m21+n.dx,y:t.x*n.m12+t.y*n.m22+n.dy}}function m0(n,t){return{x:t.x*n.m11+t.y*n.m21,y:t.x*n.m12+t.y*n.m22}}function eu(n,t,e){return{width:n,height:t,viewBox:e,recordCount:0,contentBounds:null,nodes:[],stateStack:[],capturePath:!1,pathData:[],pathPoints:[],objects:[],state:{windowOrg:{x:e.left,y:e.top},windowExt:{x:be(e),y:ye(e)},viewportOrg:{x:e.left,y:e.top},viewportExt:{x:be(e),y:ye(e)},worldTransform:{...Qc},currentPosition:{x:0,y:0},pen:{...a0},brush:{...s0},font:{...l0},textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,textAlign:0,polygonFillMode:1}}}function hr(n,t){let e=p0(n.state.worldTransform,t),r=n.state.windowExt.x||be(n.viewBox)||1,i=n.state.windowExt.y||ye(n.viewBox)||1,o=n.state.viewportExt.x||be(n.viewBox)||1,a=n.state.viewportExt.y||ye(n.viewBox)||1;return{x:n.state.viewportOrg.x+(e.x-n.state.windowOrg.x)*o/r,y:n.state.viewportOrg.y+(e.y-n.state.windowOrg.y)*a/i}}function ts(n,t){let e=m0(n.state.worldTransform,t),r=n.state.windowExt.x||be(n.viewBox)||1,i=n.state.windowExt.y||ye(n.viewBox)||1,o=n.state.viewportExt.x||be(n.viewBox)||1,a=n.state.viewportExt.y||ye(n.viewBox)||1;return{x:e.x*o/r,y:e.y*a/i}}function es(n,t){let e=[hr(n,{x:t.left,y:t.top}),hr(n,{x:t.right,y:t.top}),hr(n,{x:t.right,y:t.bottom}),hr(n,{x:t.left,y:t.bottom})];return wn({left:Math.min(...e.map(r=>r.x)),top:Math.min(...e.map(r=>r.y)),right:Math.max(...e.map(r=>r.x)),bottom:Math.max(...e.map(r=>r.y))})}function kr(n){return`${It(n.x)},${It(n.y)}`}function rs(n,t){let e=Math.max(1,Math.abs(t.width)||1),r=ts(n,{x:e,y:0}),i=ts(n,{x:0,y:e}),o=Math.hypot(r.x,r.y),a=Math.hypot(i.x,i.y),s=(o+a)/2;return!Number.isFinite(s)||s<=0?e:Math.max(.5,s)}function ru(n,t){if(!t.dasharray)return;let e=Math.max(1,Math.abs(t.width)||1),r=rs(n,t)/e;return t.dasharray.split(/\\s+/).map(i=>Number(i)).filter(i=>Number.isFinite(i)&&i>0).map(i=>It(i*r)).join(\" \")||void 0}function ao(n,t){if(t.none)return'stroke=\"none\"';let e=[`stroke=\"${ce(t.color)}\"`,`stroke-width=\"${It(rs(n,t))}\"`,'fill=\"none\"'],r=ru(n,t);return r&&e.push(`stroke-dasharray=\"${ce(r)}\"`),e.join(\" \")}function so(n){let t=[n.state.pen.none?'stroke=\"none\"':`stroke=\"${ce(n.state.pen.color)}\"`,n.state.pen.none?\"\":`stroke-width=\"${It(rs(n,n.state.pen))}\"`].filter(Boolean),e=ru(n,n.state.pen);return e&&!n.state.pen.none&&t.push(`stroke-dasharray=\"${ce(e)}\"`),t.push(n.state.brush.none?'fill=\"none\"':`fill=\"${ce(n.state.brush.color)}\"`),t.push(`fill-rule=\"${n.state.polygonFillMode===2?\"nonzero\":\"evenodd\"}\"`),t.join(\" \")}function g0(n){let t=['stroke=\"none\"'];return t.push(n.state.brush.none?'fill=\"none\"':`fill=\"${ce(n.state.brush.color)}\"`),t.push(`fill-rule=\"${n.state.polygonFillMode===2?\"nonzero\":\"evenodd\"}\"`),t.join(\" \")}function Za(n){let t=n.findIndex(e=>e==null);return t>=0?t:(n.push(null),n.length-1)}function nn(n,t,e){for(;n.length<=t;)n.push(null);n[t]=e}function b0(n,t){switch(t>>>0){case Sr.WHITE_BRUSH:return n.state.brush={color:\"#ffffff\"},!0;case Sr.LTGRAY_BRUSH:return n.state.brush={color:\"#c0c0c0\"},!0;case Sr.GRAY_BRUSH:return n.state.brush={color:\"#808080\"},!0;case Sr.DKGRAY_BRUSH:return n.state.brush={color:\"#404040\"},!0;case Sr.BLACK_BRUSH:return n.state.brush={color:\"#000000\"},!0;case Sr.NULL_BRUSH:return n.state.brush={color:\"none\",none:!0},!0;case Sr.WHITE_PEN:return n.state.pen={color:\"#ffffff\",width:1},!0;case Sr.BLACK_PEN:return n.state.pen={color:\"#000000\",width:1},!0;case Sr.NULL_PEN:return n.state.pen={color:\"none\",width:1,none:!0},!0;default:return!1}}function nu(n,t){if(b0(n,t))return;let e=n.objects[t]||null;e&&(e.kind===\"pen\"&&(n.state.pen={...e.value}),e.kind===\"brush\"&&(n.state.brush={...e.value}),e.kind===\"font\"&&(n.state.font={...e.value}))}function zr(n,t,e){n.nodes.push(t),h0(n,e)}function qn(n,t,e){t&&(n.pathData.push(t),n.pathPoints.push(...e))}function Ja(n,t){n.pathData.length&&(zr(n,`<path d=\"${n.pathData.join(\" \")}\" ${t} />`,n.pathPoints),n.pathData=[],n.pathPoints=[],n.capturePath=!1)}function iu(n,t,e){let r=hr(n,t),i=hr(n,e);if(n.state.currentPosition={...e},n.capturePath){qn(n,`${n.pathData.length?\"\":`M ${kr(r)}`} L ${kr(i)}`.trim(),[r,i]);return}zr(n,`<line x1=\"${It(r.x)}\" y1=\"${It(r.y)}\" x2=\"${It(i.x)}\" y2=\"${It(i.y)}\" ${ao(n,n.state.pen)} />`,[r,i])}function Xn(n,t,e){if(!t.length)return;let r=t.map(s=>hr(n,s));n.state.currentPosition={...t[t.length-1]};let i=r.map(kr).join(\" \");if(n.capturePath){let s=[`M ${kr(r[0])}`,...r.slice(1).map(l=>`L ${kr(l)}`)];e&&s.push(\"Z\"),qn(n,s.join(\" \"),r);return}let o=e?\"polygon\":\"polyline\",a=e?so(n):ao(n,n.state.pen);zr(n,`<${o} points=\"${i}\" ${a} />`,r)}function Zc(n,t,e=!1){let r=[];if(e&&r.push({...n.state.currentPosition}),r.push(...t),r.length<4)return;let i=r.map(a=>hr(n,a)),o=`M ${kr(i[0])}`;for(let a=1;a+2<i.length;a+=3)o+=` C ${kr(i[a])} ${kr(i[a+1])} ${kr(i[a+2])}`;if(n.state.currentPosition={...r[r.length-1]},n.capturePath){qn(n,o,i);return}zr(n,`<path d=\"${o}\" ${ao(n,n.state.pen)} />`,i)}function no(n,t,e){let r=es(n,t),i=[`x=\"${It(r.left)}\"`,`y=\"${It(r.top)}\"`,`width=\"${It(be(r))}\"`,`height=\"${It(ye(r))}\"`];if(e){let o=hr(n,{x:e.x,y:e.y});i.push(`rx=\"${It(Math.abs(o.x-n.state.viewportOrg.x))}\"`),i.push(`ry=\"${It(Math.abs(o.y-n.state.viewportOrg.y))}\"`)}if(n.capturePath){qn(n,`M ${It(r.left)},${It(r.top)} L ${It(r.right)},${It(r.top)} L ${It(r.right)},${It(r.bottom)} L ${It(r.left)},${It(r.bottom)} Z`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}]);return}zr(n,`<rect ${i.join(\" \")} ${so(n)} />`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}])}function ou(n,t){let e=es(n,t),r=(e.left+e.right)/2,i=(e.top+e.bottom)/2,o=be(e)/2,a=ye(e)/2;if(n.capturePath){qn(n,`M ${It(r-o)},${It(i)} A ${It(o)},${It(a)} 0 1 0 ${It(r+o)},${It(i)} A ${It(o)},${It(a)} 0 1 0 ${It(r-o)},${It(i)} Z`,[{x:e.left,y:e.top},{x:e.right,y:e.bottom}]);return}zr(n,`<ellipse cx=\"${It(r)}\" cy=\"${It(i)}\" rx=\"${It(o)}\" ry=\"${It(a)}\" ${so(n)} />`,[{x:e.left,y:e.top},{x:e.right,y:e.bottom}])}function au(n,t,e){if(!e.length)return;let r=es(n,t),i=be(r),o=ye(r),a=vr(e,\"image/bmp\");zr(n,`<image x=\"${It(r.left)}\" y=\"${It(r.top)}\" width=\"${It(i)}\" height=\"${It(o)}\" href=\"${a}\" preserveAspectRatio=\"none\" />`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}])}function io(n){return new TextDecoder(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\")}function su(n){return new TextDecoder(\"utf-16le\").decode(n).replace(/\\0+$/g,\"\")}function y0(n){let t=n&6;return t===2?\"end\":t===6?\"middle\":\"start\"}function x0(n){let t=n&24;return t===8?\"text-after-edge\":t===24?\"alphabetic\":\"text-before-edge\"}function ro(n,t,e){if(!e)return;let r=hr(n,t),i=ts(n,{x:0,y:Math.abs(n.state.font.size)||12}),o=Math.hypot(i.x,i.y),a=Math.max(1,Number.isFinite(o)&&o>0?o:Math.abs(n.state.font.size)||12),s=String(n.state.font.family||\"sans-serif\").replace(/\\s+(?:Baltic|CE|Cyr|Greek|Tur|Vietnamese|Hebrew|Arabic|Thai|Symbol)$/i,\"\")||\"sans-serif\",l=[`x=\"${It(r.x)}\"`,`y=\"${It(r.y)}\"`,`fill=\"${ce(n.state.textColor)}\"`,`font-size=\"${It(a)}\"`,`font-family=\"${ce(s)}\"`,`text-anchor=\"${y0(n.state.textAlign)}\"`,`dominant-baseline=\"${x0(n.state.textAlign)}\"`];n.state.font.weight&&n.state.font.weight>=600&&l.push('font-weight=\"700\"'),n.state.font.italic&&l.push('font-style=\"italic\"');let c=[n.state.font.underline?\"underline\":\"\",n.state.font.strike?\"line-through\":\"\"].filter(Boolean);c.length&&l.push(`text-decoration=\"${c.join(\" \")}\"`),n.state.font.escapement&&l.push(`transform=\"rotate(${It(n.state.font.escapement/10)}, ${It(r.x)}, ${It(r.y)})\"`),zr(n,`<text ${l.join(\" \")}>${ce(e)}</text>`,[r])}function oo(n,t){if(!n.nodes.length)return null;let e=n.contentBounds?wn(n.contentBounds):wn(n.viewBox),r=wn({left:Number.isFinite(n.viewBox.left)?n.viewBox.left:e.left,top:Number.isFinite(n.viewBox.top)?n.viewBox.top:e.top,right:Number.isFinite(n.viewBox.right)?n.viewBox.right:e.right,bottom:Number.isFinite(n.viewBox.bottom)?n.viewBox.bottom:e.bottom}),i=Math.max(1,Math.round(be(r))),o=Math.max(1,Math.round(ye(r))),a=`<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${i}\" height=\"${o}\" viewBox=\"${It(r.left)} ${It(r.top)} ${It(be(r))} ${It(ye(r))}\" preserveAspectRatio=\"xMinYMin meet\">\n${n.nodes.join(`\n`)}\n</svg>`,s=new TextEncoder().encode(a);return{mime:\"image/svg+xml\",bytes:s,dataUrl:vr(s,\"image/svg+xml\"),width:i,height:o,sourceMime:t,recordCount:n.recordCount}}function w0(n){let t=new Rt(n),e=0,r=null;if(t.u32(0)===c0&&n.length>=22&&(r=wn({left:t.i16(6),top:t.i16(8),right:t.i16(10),bottom:t.i16(12)}),e=22),e+u0>n.length)return null;let i=new Rt(n.subarray(e)),o=i.u16(2),a=i.u16(10),s=e+o*2;if(s>n.length)return null;let l=r||{left:0,top:0,right:1e3,bottom:1e3},c=eu(be(l),ye(l),l);c.objects=new Array(Math.max(0,a)).fill(null),r&&(c.state.windowOrg={x:r.left,y:r.top},c.state.windowExt={x:be(r),y:ye(r)},c.state.viewportOrg={x:r.left,y:r.top},c.state.viewportExt={x:be(r),y:ye(r)});let h=s;for(;h+6<=n.length;){let u=new Rt(n.subarray(h)),d=u.u32(0)*2;if(d<6||h+d>n.length)break;let p=u.u16(4);switch(c.recordCount+=1,p){case te.META_EOF:return h+=d,oo(c,\"image/wmf\");case te.META_SETWINDOWORG:c.state.windowOrg={x:u.i16(8),y:u.i16(6)};break;case te.META_SETWINDOWEXT:c.state.windowExt={x:u.i16(8),y:u.i16(6)};break;case te.META_SETVIEWPORTORG:c.state.viewportOrg={x:u.i16(8),y:u.i16(6)};break;case te.META_SETVIEWPORTEXT:c.state.viewportExt={x:u.i16(8),y:u.i16(6)};break;case te.META_OFFSETWINDOWORG:c.state.windowOrg={x:c.state.windowOrg.x+u.i16(8),y:c.state.windowOrg.y+u.i16(6)};break;case te.META_OFFSETVIEWPORTORG:c.state.viewportOrg={x:c.state.viewportOrg.x+u.i16(8),y:c.state.viewportOrg.y+u.i16(6)};break;case te.META_SETBKMODE:c.state.bkMode=u.u16(6);break;case te.META_SETPOLYFILLMODE:c.state.polygonFillMode=u.u16(6);break;case te.META_SETBKCOLOR:c.state.bkColor=Er(u.u32(6));break;case te.META_SETTEXTCOLOR:c.state.textColor=Er(u.u32(6));break;case te.META_MOVETO:c.state.currentPosition={x:u.i16(8),y:u.i16(6)};break;case te.META_LINETO:{let m={x:u.i16(8),y:u.i16(6)};iu(c,c.state.currentPosition,m);break}case te.META_POLYLINE:case te.META_POLYGON:{let m=u.u16(6),g=[],b=8;for(let T=0;T<m&&b+4<=d;T+=1)g.push({x:u.i16(b),y:u.i16(b+2)}),b+=4;Xn(c,g,p===te.META_POLYGON);break}case te.META_POLYPOLYGON:{let m=u.u16(6),g=[],b=8;for(let T=0;T<m&&b+2<=d;T+=1)g.push(u.u16(b)),b+=2;for(let T of g){let S=[];for(let I=0;I<T&&b+4<=d;I+=1)S.push({x:u.i16(b),y:u.i16(b+2)}),b+=4;Xn(c,S,!0)}break}case te.META_RECTANGLE:{no(c,{left:u.i16(12),top:u.i16(10),right:u.i16(8),bottom:u.i16(6)});break}case te.META_ELLIPSE:{ou(c,{left:u.i16(12),top:u.i16(10),right:u.i16(8),bottom:u.i16(6)});break}case te.META_ROUNDRECT:{no(c,{left:u.i16(16),top:u.i16(14),right:u.i16(12),bottom:u.i16(10)},{x:u.i16(8),y:u.i16(6)});break}case te.META_TEXTOUT:{let m=u.u16(6),g=8,b=m+m%2,T=io(u.slice(g,Math.min(m,Math.max(0,d-g-4)))),S=g+b,I=u.i16(S),O=u.i16(S+2);ro(c,{x:O,y:I},T);break}case te.META_CREATEPENINDIRECT:{let m=u.u16(6),g=u.i16(8),b=Er(u.u32(12)),T=Za(c.objects);nn(c.objects,T,{kind:\"pen\",value:Qa(m,g,b)});break}case te.META_CREATEBRUSHINDIRECT:{let m=u.u16(6),g=Er(u.u32(8)),b=Za(c.objects);nn(c.objects,b,{kind:\"brush\",value:tu(m,g)});break}case te.META_CREATEFONTINDIRECT:{let m=Math.abs(u.i16(6)),g=u.i16(10),b=u.u16(14),T=!!u.u8(16),S=!!u.u8(17),I=!!u.u8(18),O=io(u.slice(24,Math.max(0,d-24))).split(\"\\0\")[0]||\"sans-serif\",$=Za(c.objects);nn(c.objects,$,{kind:\"font\",value:{family:O,size:m||12,weight:b,italic:T,underline:S,strike:I,escapement:g}});break}case te.META_SELECTOBJECT:nu(c,u.u16(6));break;case te.META_DELETEOBJECT:{let m=u.u16(6);m>=0&&m<c.objects.length&&(c.objects[m]=null);break}default:break}h+=d}return oo(c,\"image/wmf\")}function Vn(n,t,e,r){let i=[];for(let o=0;o<e;o+=1){let a=t+o*r;r===8?i.push({x:n.i32(a),y:n.i32(a+4)}):i.push({x:n.i16(a),y:n.i16(a+2)})}return i}function Jc(n,t){if(!n.ensure(36,40))return null;let e={x:n.i32(36),y:n.i32(40)},r=n.u32(44),i=n.u32(48);if(!r||!i||i>=n.length)return null;let o=t?r*2:r,a=n.slice(i,o),s=t?su(a):io(a);return{point:e,text:s}}function v0(n){if(!n.ensure(8,24))return null;let t={x:n.i32(8),y:n.i32(12)},e=n.u32(16),r=n.u32(20),i=36;if(r&2&&(i+=16),!e||!n.ensure(i,e))return null;let o=io(n.slice(i,e));return{point:t,text:o}}function lu(n,t,e,r,i){let o=n.u32(t),a=n.u32(e),s=n.u32(r),l=n.u32(i);return!o||!a||!s||!l||!n.ensure(o,a)||!n.ensure(s,l)?null:f0(n.slice(o,a),n.slice(s,l))}function T0(n,t){if(!t.ensure(24,56))return;let e=lu(t,48,52,56,60);e&&au(n,{left:t.i32(24),top:t.i32(28),right:t.i32(24)+t.i32(72),bottom:t.i32(28)+t.i32(76)},e)}function S0(n,t){if(!t.ensure(24,76))return;let e=lu(t,84,88,92,96);e&&au(n,{left:t.i32(24),top:t.i32(28),right:t.i32(24)+t.i32(32),bottom:t.i32(28)+t.i32(36)},e)}function E0(n){n.pathData.length&&n.pathData.push(\"Z\")}function k0(n){let t=new Rt(n);if(!t.ensure(0,52)||t.u32(0)!==Ct.EMR_HEADER)return null;let e=wn({left:t.i32(8),top:t.i32(12),right:t.i32(16),bottom:t.i32(20)}),r=be(e)>0&&ye(e)>0?e:{left:0,top:0,right:1e3,bottom:1e3},i=eu(be(r),ye(r),r);i.state.windowOrg={x:r.left,y:r.top},i.state.windowExt={x:be(r),y:ye(r)},i.state.viewportOrg={x:r.left,y:r.top},i.state.viewportExt={x:be(r),y:ye(r)};let o=0;for(;o+8<=n.length;){let a=new Rt(n.subarray(o)),s=a.u32(0),l=a.u32(4);if(l<8||o+l>n.length)break;switch(i.recordCount+=1,s){case Ct.EMR_EOF:return o+=l,oo(i,\"image/emf\");case Ct.EMR_SETWINDOWORGEX:i.state.windowOrg={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETWINDOWEXTEX:i.state.windowExt={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETVIEWPORTORGEX:i.state.viewportOrg={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETVIEWPORTEXTEX:i.state.viewportExt={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETBKMODE:i.state.bkMode=a.u32(8);break;case Ct.EMR_SETPOLYFILLMODE:i.state.polygonFillMode=a.u32(8);break;case Ct.EMR_SETTEXTALIGN:i.state.textAlign=a.u32(8);break;case Ct.EMR_SETTEXTCOLOR:i.state.textColor=Er(a.u32(8));break;case Ct.EMR_SETBKCOLOR:i.state.bkColor=Er(a.u32(8));break;case Ct.EMR_SAVEDC:i.stateStack.push(Ka(i.state));break;case Ct.EMR_RESTOREDC:{let c=a.i32(8);if(c<0){let h=Math.min(i.stateStack.length,Math.abs(c));for(let f=0;f<h-1;f+=1)i.stateStack.pop();let u=i.stateStack.pop();u&&(i.state=Ka(u))}else if(c>0&&c<=i.stateStack.length){let h=i.stateStack[c-1];i.stateStack.length=c-1,h&&(i.state=Ka(h))}break}case Ct.EMR_SETWORLDTRANSFORM:i.state.worldTransform=qc(a,8);break;case Ct.EMR_MODIFYWORLDTRANSFORM:{let c=qc(a,8),h=a.u32(32);h===eo.MWT_IDENTITY?i.state.worldTransform={...Qc}:h===eo.MWT_SET?i.state.worldTransform=c:h===eo.MWT_LEFTMULTIPLY?i.state.worldTransform=Kc(c,i.state.worldTransform):h===eo.MWT_RIGHTMULTIPLY&&(i.state.worldTransform=Kc(i.state.worldTransform,c));break}case Ct.EMR_MOVETOEX:i.state.currentPosition={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_LINETO:{let c={x:a.i32(8),y:a.i32(12)};iu(i,i.state.currentPosition,c);break}case Ct.EMR_POLYLINE:case Ct.EMR_POLYGON:case Ct.EMR_POLYLINE16:case Ct.EMR_POLYGON16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYLINE16||s===Ct.EMR_POLYGON16?4:8,f=Vn(a,h,c,u);Xn(i,f,s===Ct.EMR_POLYGON||s===Ct.EMR_POLYGON16);break}case Ct.EMR_POLYBEZIER:case Ct.EMR_POLYBEZIER16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYBEZIER16?4:8,f=Vn(a,h,c,u);Zc(i,f,!1);break}case Ct.EMR_POLYBEZIERTO:case Ct.EMR_POLYBEZIERTO16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYBEZIERTO16?4:8,f=Vn(a,h,c,u);Zc(i,f,!0);break}case Ct.EMR_POLYLINETO:case Ct.EMR_POLYLINETO16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYLINETO16?4:8,f=Vn(a,h,c,u);Xn(i,[{...i.state.currentPosition},...f],!1);break}case Ct.EMR_POLYPOLYLINE:case Ct.EMR_POLYPOLYGON:case Ct.EMR_POLYPOLYLINE16:case Ct.EMR_POLYPOLYGON16:{let c=a.u32(24),h=a.u32(28),u=32,f=s===Ct.EMR_POLYPOLYLINE16||s===Ct.EMR_POLYPOLYGON16?4:8,d=u+c*4,p=[];for(let b=0;b<c;b+=1)p.push(a.u32(u+b*4));let m=Vn(a,d,h,f),g=0;for(let b of p)Xn(i,m.slice(g,g+b),s===Ct.EMR_POLYPOLYGON||s===Ct.EMR_POLYPOLYGON16),g+=b;break}case Ct.EMR_RECTANGLE:no(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)});break;case Ct.EMR_ELLIPSE:ou(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)});break;case Ct.EMR_ROUNDRECT:no(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)},{x:a.i32(24),y:a.i32(28)});break;case Ct.EMR_BEGINPATH:i.capturePath=!0,i.pathData=[],i.pathPoints=[];break;case Ct.EMR_ENDPATH:i.capturePath=!1;break;case Ct.EMR_CLOSEFIGURE:E0(i);break;case Ct.EMR_FILLPATH:Ja(i,g0(i));break;case Ct.EMR_STROKEANDFILLPATH:Ja(i,so(i));break;case Ct.EMR_STROKEPATH:Ja(i,ao(i,i.state.pen));break;case Ct.EMR_SELECTCLIPPATH:i.capturePath=!1,i.pathData=[],i.pathPoints=[];break;case Ct.EMR_CREATEPEN:{let c=a.u32(8),h=a.u32(12),u=a.i32(16),f=Er(a.u32(24));nn(i.objects,c,{kind:\"pen\",value:Qa(h,u,f)});break}case Ct.EMR_CREATEBRUSHINDIRECT:{let c=a.u32(8),h=a.u32(12),u=Er(a.u32(16));nn(i.objects,c,{kind:\"brush\",value:tu(h,u)});break}case Ct.EMR_EXTCREATEPEN:{let c=a.u32(8),h=a.u32(28),u=a.i32(32),f=a.u32(36),d=f===1?\"none\":Er(a.u32(40));nn(i.objects,c,{kind:\"pen\",value:f===1?{color:d,width:u,none:!0}:Qa(h,u,d)});break}case Ct.EMR_EXTCREATEFONTINDIRECTW:{let c=a.u32(8),h=Math.abs(a.i32(12)),u=a.i32(20),f=a.i32(28),d=!!a.u8(32),p=!!a.u8(33),m=!!a.u8(34),g=su(a.slice(40,64)).split(\"\\0\")[0]||\"sans-serif\";nn(i.objects,c,{kind:\"font\",value:{family:g,size:h||12,weight:f,italic:d,underline:p,strike:m,escapement:u}});break}case Ct.EMR_SELECTOBJECT:nu(i,a.u32(8));break;case Ct.EMR_DELETEOBJECT:{let c=a.u32(8);c>=0&&c<i.objects.length&&(i.objects[c]=null);break}case Ct.EMR_EXTTEXTOUTA:{let c=Jc(a,!1);c&&ro(i,c.point,c.text);break}case Ct.EMR_EXTTEXTOUTW:{let c=Jc(a,!0);c&&ro(i,c.point,c.text);break}case Ct.EMR_SMALLTEXTOUT:{let c=v0(a);c&&ro(i,c.point,c.text);break}case Ct.EMR_STRETCHDIBITS:T0(i,a);break;case Ct.EMR_BITBLT:case Ct.EMR_STRETCHBLT:case Ct.EMR_ALPHABLEND:S0(i,a);break;default:break}o+=l}return oo(i,\"image/emf\")}function cu(n,t){return t.length?/image\\/emf/i.test(n)?k0(t):/image\\/wmf/i.test(n)?w0(t):null:null}var A0=8*1024*1024,Kn=68;var C0=102,N0=15,R0=61447,uu=61466,hu=61467,P0=61468,du=61469,fu=61470,pu=61471,mu=61481,gu=61482;function Tu(n,t,e=0){if(e+t.length>n.length)return!1;for(let r=0;r<t.length;r+=1)if(n[e+r]!==t[r])return!1;return!0}function I0(n){for(let t=0;t<n.length;t+=1){let e=n[t]??0;if(!(e===0||e===9||e===10||e===13)&&(e<32||e===127))return!1}return!0}function Su(n){let t=n.length;for(;t>0&&n.charCodeAt(t-1)===0;)t-=1;return t===n.length?n:n.slice(0,t)}function O0(n){let t=n.trim();return t?/^(?:file|https?|data|blob):/i.test(t)||/^(?:\\\\\\\\|[a-zA-Z]:[\\\\/]|\\/)/.test(t)?!0:/\\.(?:png|apng|jpe?g|gif|bmp|dib|tiff?|emf|wmf|pict|svg)(?:$|[?#])/i.test(t):!1}function Eu(n){return/^file:/i.test(n)||/^(?:\\\\\\\\|[a-zA-Z]:[\\\\/]|\\/)/.test(n)}function L0(n){let t=n.toLowerCase();return t.includes(\".png\")?\"image/png\":t.includes(\".jpg\")||t.includes(\".jpeg\")?\"image/jpeg\":t.includes(\".gif\")?\"image/gif\":t.includes(\".bmp\")||t.includes(\".dib\")?\"image/bmp\":t.includes(\".tif\")?\"image/tiff\":t.includes(\".emf\")?\"image/emf\":t.includes(\".wmf\")?\"image/wmf\":t.includes(\".pict\")||t.includes(\".pct\")||t.includes(\".pic\")?\"image/pict\":t.includes(\".svg\")?\"image/svg+xml\":null}function Zn(n){return/^(?:image\\/png|image\\/jpeg|image\\/gif|image\\/bmp|image\\/webp|image\\/svg\\+xml|image\\/tiff)$/i.test(n)}function bu(n){let t=n.toLowerCase();return t.endsWith(\".doc\")?\"application/msword\":t.endsWith(\".docx\")?\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":t.endsWith(\".xls\")?\"application/vnd.ms-excel\":t.endsWith(\".xlsx\")?\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":t.endsWith(\".ppt\")?\"application/vnd.ms-powerpoint\":t.endsWith(\".pptx\")?\"application/vnd.openxmlformats-officedocument.presentationml.presentation\":t.endsWith(\".pdf\")?\"application/pdf\":t.endsWith(\".png\")?\"image/png\":t.endsWith(\".jpg\")||t.endsWith(\".jpeg\")?\"image/jpeg\":t.endsWith(\".gif\")?\"image/gif\":t.endsWith(\".bmp\")?\"image/bmp\":t.endsWith(\".zip\")?\"application/zip\":t.endsWith(\".txt\")?\"text/plain\":\"application/octet-stream\"}function _0(n){let t=[{mime:\"image/png\",magic:[137,80,78,71],end:M0},{mime:\"image/jpeg\",magic:[255,216,255],end:F0},{mime:\"image/gif\",magic:[71,73,70,56],end:D0},{mime:\"image/bmp\",magic:[66,77],end:B0},{mime:\"image/tiff\",magic:[73,73,42,0],end:null},{mime:\"image/tiff\",magic:[77,77,0,42],end:null},{mime:\"image/emf\",magic:[1,0,0,0],end:yu},{mime:\"image/wmf\",magic:[215,205,198,154],end:null}];for(let e=0;e<n.length-4;e+=1)for(let r of t)if(Tu(n,r.magic,e)){if(r.mime===\"image/emf\"&&yu(n,e)===n.length)continue;let i=r.end?r.end(n,e):n.length;return{mime:r.mime,start:e,end:i||n.length}}return null}function M0(n,t){for(let e=t+8;e+8<n.length;e+=1)if(Tu(n,[73,69,78,68],e))return e+8;return n.length}function F0(n,t){for(let e=t+2;e+1<n.length;e+=1)if(n[e]===255&&n[e+1]===217)return e+2;return n.length}function D0(n,t){for(let e=t+6;e<n.length;e+=1)if(n[e]===59)return e+1;return n.length}function B0(n,t){if(t+6<=n.length){let e=new Rt(n.subarray(t)).u32(2);if(e>0&&t+e<=n.length)return t+e}return n.length}function yu(n,t){if(t+52>n.length)return n.length;let e=new Rt(n.subarray(t)),r=e.u32(0),i=e.u32(40),o=e.u32(48);return r!==1||i!==1179469088?n.length:o>0&&t+o<=n.length?t+o:n.length}function $0(n){if(n.length<Kn)return null;let t=new Rt(n),e=t.i16(28),r=t.i16(30),i=t.u16(32),o=t.u16(34),a=e>0&&i>0?Math.max(15,Math.min(31680,Math.round(e*i/1e3))):void 0,s=r>0&&o>0?Math.max(15,Math.min(31680,Math.round(r*o/1e3))):void 0;return{lcb:t.i32(0),cbHeader:t.u16(4),mm:t.u16(6),xExt:t.i16(8),yExt:t.i16(10),dxaGoalTwips:e>0?e:void 0,dyaGoalTwips:r>0?r:void 0,scaleXPermille:i||void 0,scaleYPermille:o||void 0,displayWidthTwips:a,displayHeightTwips:s}}function W0(n,t){let e=Math.min(t.cbHeader||Kn,n.length);if(e>=n.length)return null;let r=n[e]??0;if(!r||e+1+r>n.length)return null;let i=n.subarray(e+1,e+1+r);if(!I0(i))return null;let o=Su(new TextDecoder(\"windows-1252\").decode(i));return!O0(o)&&t.mm!==C0?null:{value:o,nextOffset:e+1+r}}function ku(n,t){if(t<0||t+8>n.length)return null;let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u32(t+4);if(i<61440||i>65535)return null;let a=8+o;return o>n.length||t+a>n.length?null:{recVer:r&15,recInstance:r>>>4,recType:i,recLen:o,size:a}}function H0(n,t){let e=new Uint8Array(14),r=new DataView(e.buffer);return r.setUint8(0,66),r.setUint8(1,77),r.setUint32(2,t,!0),r.setUint16(6,0,!0),r.setUint16(8,0,!0),r.setUint32(10,n,!0),e}function U0(n){if(n.length<12)return null;let t=new Rt(n),e=t.u32(0);if(e<12||e>n.length)return null;let r=0,i=0,o=0,a=4;e===12?(r=t.u16(10),a=3):(r=t.u16(14),i=t.u32(16),o=t.u32(32));let l=(o||(r>0&&r<=8?1<<r:0))*a;i===3&&e>=40&&(l+=12);let c=14+e+l;if(c>14+n.length)return null;let h=H0(c,14+n.length),u=new Uint8Array(14+n.length);return u.set(h,0),u.set(n,14),u}function z0(n,t,e){let r=t+8,i=r+e.recLen;if(i>n.length||e.recLen<36)return null;let o=new Rt(n),a=o.u8(r),s=o.u8(r+1),l=o.u16(r+18),c=o.u32(r+20),h=o.u32(r+24),u=o.u32(r+28),f=o.u8(r+33),d=r+36,p=d+f;if(p+8>i)return null;let m=ku(n,p);if(!m)return null;let g=Au(n,p,m);if(!g)return null;let b=f>0&&d+f<=i?Su(new TextDecoder(\"utf-16le\").decode(n.subarray(d,d+Math.max(0,f-2)))):\"\";return{...g,meta:{...g.meta||{},fbseBlipType:a||s,fbseMime:Gc(a||s),fbseTag:l,fbseSize:c,fbseRefCount:h,fbseDelayOffset:u,fbseName:b}}}function Au(n,t,e){let r=t+8,o=((e.recInstance&1)===1?2:1)*16,a=n.subarray(r,r+e.recLen);if(e.recType===fu||e.recType===du||e.recType===gu||e.recType===pu||e.recType===mu){let s=o+1;if(a.length<s)return null;let l=\"application/octet-stream\",c=a.subarray(s);if(e.recType===fu)l=\"image/png\";else if(e.recType===du||e.recType===gu)l=\"image/jpeg\";else if(e.recType===mu)l=\"image/tiff\";else if(e.recType===pu){let h=U0(c);h?(c=h,l=\"image/bmp\"):l=\"image/dib\"}return{mime:l,bytes:c,displayable:Zn(l),kind:\"officeArt\",meta:{recType:e.recType,recInstance:e.recInstance}}}if(e.recType===uu||e.recType===hu||e.recType===P0){let s=o+34;if(a.length<s)return null;let l=new Rt(a),c=l.u32(o),h=l.u32(o+28),u=a[o+32]??255,f=a[o+33]??255,d=a.subarray(s),p=d,m=!1,g=u!==254;if(u===0){let T=Hc(d,c||void 0);T&&(p=T,m=!0,g=!1)}let b=e.recType===uu?\"image/emf\":e.recType===hu?\"image/wmf\":\"image/pict\";return{mime:b,bytes:p,displayable:Zn(b),kind:\"officeArt\",meta:{recType:e.recType,recInstance:e.recInstance,metafileUncompressedSize:c,metafileCompressedSize:h,metafileCompression:u,metafileFilter:f,metafileCompressed:g,metafileDecompressed:m,metafileOriginalByteLength:d.length,fbseSize:h}}}return null}function Cu(n,t,e,r){let i=t;for(;i+8<=e;){let o=ku(n,i);if(!o)break;let a=i+o.size;if(a>e)break;if(o.recVer===N0)Cu(n,i+8,a,r);else if(o.recType===R0){let s=z0(n,i,o);s&&r.push(s)}else{let s=Au(n,i,o);s&&r.push(s)}i=a}}function Y0(n,t){if(t<0||t+8>n.length)return[];let e=[];return Cu(n,t,n.length,e),e}function xu(n){switch(n.mime){case\"image/png\":return 100;case\"image/jpeg\":return 90;case\"image/gif\":return 80;case\"image/bmp\":return 70;case\"image/tiff\":return 60;case\"image/svg+xml\":return 50;case\"image/emf\":return 40;case\"image/wmf\":return 30;case\"image/pict\":return 20;default:return 0}}function G0(n){let t=null;for(let e of n)(!t||xu(e)>xu(t))&&(t=e);return t}function wu(n){if(!/^(?:image\\/emf|image\\/wmf)$/i.test(n.mime)||!n.bytes.length||n.meta?.metafileCompressed)return n;let t=cu(n.mime,n.bytes);return t?{...n,mime:t.mime,bytes:t.bytes,displayable:!0,meta:{...n.meta||{},vectorConverted:!0,vectorSourceMime:t.sourceMime,vectorWidth:t.width,vectorHeight:t.height,vectorRecordCount:t.recordCount}}:n}function vu(n,t,e,r,i){let o=n.sourceUrl,a=o?Eu(o):!1,s={pictureOffset:t,lcb:e.lcb,cbHeader:e.cbHeader,mm:e.mm,xExt:e.xExt,yExt:e.yExt,dxaGoalTwips:e.dxaGoalTwips,dyaGoalTwips:e.dyaGoalTwips,scaleXPermille:e.scaleXPermille,scaleYPermille:e.scaleYPermille,displayWidthTwips:e.displayWidthTwips,displayHeightTwips:e.displayHeightTwips,linkedPath:r,sourceKind:n.kind===\"officeArt\"?\"embedded\":n.kind,localExternal:a,browserRenderable:n.displayable,blipIndex:i?.blipIndex,sourceShapeId:i?.shapeId,...n.meta||{}};return{id:Ve(\"asset-img\"),type:\"image\",mime:n.mime,bytes:n.bytes,dataUrl:o?\"\":vr(n.bytes,n.mime),sourceUrl:o,displayable:n.displayable&&!a,meta:s}}function Nu(n,t,e={}){if(!n||t==null||t<0||t+Kn>n.length)return null;let i=new Rt(n).i32(t),o=i>0&&t+i<=n.length?i:Math.min(n.length-t,e.maxPictureBytes||A0),a=n.subarray(t,t+o),s=$0(a);if(!s)return null;let l=Math.min(s.cbHeader||Kn,a.length),c=W0(a,s),h=c?.value;c&&(l=c.nextOffset);let u=Xc(a,l),f=Y0(a,l),d=G0(f);if(d)return vu(wu(d),t,s,h,u);if(h){let I=L0(h)||\"application/octet-stream\",O=Eu(h),$={mime:I,bytes:new Uint8Array(0),sourceUrl:h,displayable:Zn(I)&&!O,kind:\"linked\",meta:{linkedPath:h}};return vu($,t,s,h,u)}let p=Math.min(s.cbHeader||Kn,a.length),m=_0(a.subarray(p));if(!m)return{id:Ve(\"asset-img\"),type:\"image\",mime:\"application/octet-stream\",bytes:a,dataUrl:vr(a,\"application/octet-stream\"),displayable:!1,meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:!1,blipIndex:u?.blipIndex,sourceShapeId:u?.shapeId}};let g=p+m.start,b=Math.min(p+m.end,a.length),T=a.subarray(g,b),S=wu({mime:m.mime,bytes:T,displayable:Zn(m.mime),kind:\"fallback\",meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:Zn(m.mime)}});return{id:Ve(\"asset-img\"),type:\"image\",mime:S.mime,bytes:S.bytes,dataUrl:vr(S.bytes,S.mime),displayable:S.displayable,meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:!!S.displayable,blipIndex:u?.blipIndex,sourceShapeId:u?.shapeId,...S.meta||{}}}}function ns(n,t){let e=t;for(;e<n.length&&n[e]!==0;)e+=1;return{value:new TextDecoder(\"windows-1252\").decode(n.subarray(t,e)),nextOffset:e+1}}function j0(n){let t=new Rt(n),e=[4,6];for(let r of e)try{let i=r,o=ns(n,i);i=o.nextOffset;let a=ns(n,i);i=a.nextOffset;let s=ns(n,i);if(i=s.nextOffset,i+4>n.length)continue;let l=t.u32(i);if(i+=4,l>0&&i+l<=n.length){let c=n.subarray(i,i+l);return{label:o.value,originalPath:a.value,tempPath:s.value,dataSize:l,bytes:c}}}catch{}return null}function V0(n,t){let e=n.listChildren(t).filter(l=>l.objectType===2||l.objectType===5),r=new Map(e.map(l=>[l.name.toLowerCase(),l])),i=r.get(\"\u0003objinfo\")||r.get(\"\u0003objinfo\")||r.get(\"\u0003objinfo\"),o=r.get(\"\u0001ole10native\")||r.get(\"\u0001ole10native\")||r.get(\"\u0001ole10native\"),a=r.get(\"package\")||r.get(\"contents\")||r.get(\"content\"),s={entry:t,streams:e,displayName:t.name,attachment:null,objectData:null};if(o){let l=n.getStream(o)||new Uint8Array(0),c=j0(l);if(c){let h=c.label||c.originalPath.split(/[\\\\/]/).pop()||`${t.name}.bin`,u=bu(h),f={...c,sourceKind:\"ole10-native\"},d={id:Ve(\"asset-ole\"),type:\"attachment\",name:h,mime:u,bytes:c.bytes,dataUrl:vr(c.bytes,u),meta:f};return s.attachment=d,s}}if(a){let l=n.getStream(a)||new Uint8Array(0),c=`${Vi(t.name)}.bin`,h=bu(c),u={id:Ve(\"asset-pkg\"),type:\"attachment\",name:c,mime:h,bytes:l,dataUrl:vr(l,h),meta:{stream:a.name,sourceKind:\"package\"}};s.attachment=u}return i&&(s.objectData=n.getStream(i)||new Uint8Array(0)),s}function Ru(n){let t=n.getEntry(\"/ObjectPool\");if(!t)return new Map;let e=n.listChildren(t).filter(i=>i.objectType===1),r=new Map;for(let i of e)r.set(i.name,V0(n,i));return r}var X0=new Set([\"insertCells\",\"deleteCells\",\"columnWidth\",\"merge\",\"split\",\"textFlow\",\"vertMerge\",\"vertAlign\",\"setShading\",\"defaultShading\",\"setBorder\",\"cellPadding\",\"cellSpacing\",\"cellWidth\",\"fitText\",\"cellNoWrap\"]);function on(...n){let t=new Map,e=0;for(let r of n)for(let i of r||[]){let o=i.kind===\"table\"&&X0.has(i.name);t.set(o?`${i.kind}:${i.name}:${e++}`:`${i.kind}:${i.name}`,i)}return Array.from(t.values())}function Iu(n){let t={para:[],char:[],table:[]};for(let e of n||[])e.kind===\"para\"?t.para.push(e):e.kind===\"char\"?t.char.push(e):e.kind===\"table\"&&t.table.push(e);return t}function q0(n,t){let e=new Rt(n),r=e.u16(t),i=t+2,o=r*2,a=e.utf16le(i,o),s=i+o+2;return{value:a.replace(/\\u0000+$/,\"\"),nextOffset:s}}function K0(n,t){let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u16(t+4);return{sti:r&4095,flags1:r>>12,stk:i&15,istdBase:i>>4&4095,cupx:o&15,istdNext:o>>4&4095,bchUpe:e.u16(t+6),grfstd:e.u16(t+8)}}function Pu(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=0,l=[];return a.length>=2&&(s=a[0]|(a[1]??0)<<8,l=Ur(a,2,a.length)),{cbUpx:r,styleId:s,properties:l,nextOffset:bn(o)}}function is(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=Ur(a,0,a.length);return{cbUpx:r,properties:s,nextOffset:bn(o)}}function Z0(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=Ur(a,0,a.length);return{cbUpx:r,properties:s,nextOffset:bn(o)}}function J0(n,t,e){if(!n.length)return{istd:e,empty:!0,name:\"\",stdfBase:{istdBase:4095,istdNext:0,stk:1,cupx:0},paraProps:[],charProps:[],tableProps:[]};let r=Math.max(10,Math.min(t||10,n.length)),i=K0(n,0),o=r,a=q0(n,o);o=a.nextOffset;let s=[],l=[],c=[];try{if(i.stk===1){if(i.cupx>=1&&o+2<=n.length){let h=Pu(n,o);s=h.properties,o=h.nextOffset}i.cupx>=2&&o+2<=n.length&&(l=is(n,o).properties)}else if(i.stk===2)o+2<=n.length&&(l=is(n,o).properties);else if(i.stk===3){if(i.cupx>=1&&o+2<=n.length){let h=Z0(n,o);c=h.properties,o=h.nextOffset}if(i.cupx>=2&&o+2<=n.length){let h=Pu(n,o);s=h.properties,o=h.nextOffset}i.cupx>=3&&o+2<=n.length&&(l=is(n,o).properties)}}catch{}return{istd:e,name:a.value,stdfBase:i,paraProps:s,charProps:l,tableProps:c,empty:!1}}function Ou(n,t){let e=t.fcStshf,r=t.lcbStshf;if(e==null||r==null||r<=0)return{styles:new Map,header:null,resolveStyle(b){return os(new Map,b)}};let i=n.subarray(e,e+r),o=new Rt(i),a=o.u16(0),s=2,l=o.u16(s+0),c=o.u16(s+2),h=b=>a>=b+2&&i.length>=s+b+2?o.i16(s+b):-1,u=h(12),f=h(14),d=h(16),p={cbStshi:a,cstd:l,cbSTDBaseInFile:c,ftcAsci:u,ftcFE:f,ftcOther:d},m=2+a,g=new Map;for(let b=0;b<l&&m+2<=i.length;b+=1){let T=o.u16(m),S=m+2,I=S+T;if(T===0){g.set(b,{istd:b,empty:!0,name:\"\",stdfBase:{istdBase:4095,istdNext:0,stk:1,cupx:0},paraProps:[],charProps:[],tableProps:[]}),m=bn(I);continue}let O=i.subarray(S,Math.min(I,i.length)),$=J0(O,c,b);g.set(b,$),m=bn(I)}return{header:p,styles:g,resolveStyle(b){return os(g,b)}}}function os(n,t,e=new Set){if(t==null||t===4095||e.has(t))return{paraProps:[],charProps:[],tableProps:[],styleIds:[]};let r=n.get(t);if(!r||r.empty)return{paraProps:[],charProps:[],tableProps:[],styleIds:[]};e.add(t);let i=os(n,r.stdfBase?.istdBase,e);return{styleIds:[...i.styleIds,t],paraProps:on(i.paraProps,r.paraProps),charProps:on(i.charProps,r.charProps),tableProps:on(i.tableProps,r.tableProps)}}function Q0(n,t,e,r){let i=r?.index||0;for(;i<n.length&&n[i].cpEnd<=t;)i+=1;r&&(r.index=i);let o=[],a=i;for(;a<n.length&&n[a].cpStart<e;)n[a].cpEnd>t&&o.push(n[a]),a+=1;return o}function tb(n){return String(n||\"\").trim()}function Lu(n){let t=String(n||\"\").replace(/[\\r\\n\\t]+/g,\" \").replace(/\\s+/g,\" \").trim();if(!t)return null;let e=t.toUpperCase();if(e.startsWith(\"HYPERLINK\")){let r=t.slice(9).trim(),o=r.match(/\"([^\"]+)\"/)?.[1]||r.split(/\\s+/)[0]||\"\";return o?{type:\"hyperlink\",href:o}:null}if(e.startsWith(\"INCLUDEPICTURE\")){let r=t.slice(14).trim();return{type:\"includePicture\",target:r.match(/\"([^\"]+)\"/)?.[1]||r.split(/\\s+/)[0]||\"\"}}return e.startsWith(\"EMBED\")?{type:\"embed\",raw:t}:e.startsWith(\"LINK\")?{type:\"link\",raw:t}:{type:\"unknown\",raw:t}}function eb(n,t){if(!t.text)return;let e=n[n.length-1];if(e&&e.type===\"text\"&&e.href===t.href&&Ha(e.style,t.style)){e.text+=t.text;return}n.push(t)}function an(n,t,e){if(!e)return;let r=n.length?n[n.length-1].nodes:t;e.type===\"text\"?eb(r,e):r.push(e)}function rb(n,t){let e=[`_${t}`,`_${String(t)}`,`_${t.toString(16)}`,`_${t.toString(16).toUpperCase()}`];for(let r of e)if(n.has(r))return n.get(r)||null;return null}function nb(n,t,e,r,i,o={}){return function(s){let l=s?.pictureOffset;if(l==null)return null;if(i.has(l))return i.get(l)||null;let c=null,h=rb(t,l);if((s.ole2||s.object||s.data)&&h?.attachment&&(c=h.attachment,r.add(h.entry.name)),!c&&n?.length){let u=Nu(n,l,o);u&&u.mime!==\"application/octet-stream\"?c=u:!c&&h?.attachment?(c=h.attachment,r.add(h.entry.name)):u&&(c=u)}return!c&&h?.attachment&&(c=h.attachment,r.add(h.entry.name)),c&&e.push(c),i.set(l,c),c}}function ib(n){switch(n){case ge.nonBreakingHyphen:return\"-\";case ge.nonRequiredHyphen:case ge.annotationRef:case ge.textBoxPlaceholder:return\"\";default:return n}}function _u(n){return n.replaceAll(ge.textBoxPlaceholder,\"\")}function ob(n,t){let e=[[\"main\",n.fibRgLw.ccpText],[\"footnote\",n.fibRgLw.ccpFtn],[\"header\",n.fibRgLw.ccpHdd],[\"macro\",n.fibRgLw.ccpMcr],[\"annotation\",n.fibRgLw.ccpAtn],[\"endnote\",n.fibRgLw.ccpEdn],[\"textbox\",n.fibRgLw.ccpTxbx],[\"header-textbox\",n.fibRgLw.ccpHdrTxbx]];if(!e.some(([,a])=>a>0))return[{kind:\"main\",cpStart:0,cpEnd:t}];let i=[],o=0;for(let[a,s]of e){let l=Math.max(0,s||0),c=Math.min(o,t);o+=l;let h=Math.min(o,t);i.push({kind:a,cpStart:c,cpEnd:h})}return i}function ab(n,t,e){if(n.cpEnd<=n.cpStart)return[];let r=e.filter(i=>i.cpStart<n.cpEnd&&i.cpEnd>n.cpStart);return r.length?r.map(i=>{let o=Math.max(n.cpStart,i.cpStart),a=Math.min(n.cpEnd,i.cpEnd);return{cpStart:o,cpEnd:a,terminator:t[a-1]||\"\",styleId:i.styleId,properties:i.properties,storyKind:n.kind}}).filter(i=>i.cpEnd>i.cpStart):pc(t.slice(n.cpStart,n.cpEnd)).map(i=>({...i,cpStart:i.cpStart+n.cpStart,cpEnd:i.cpEnd+n.cpStart,styleId:0,properties:[],storyKind:n.kind}))}function sb(n,t){let e=[],r=[];for(let i of n)if(!(!i.text||i.state.hidden))for(let o of i.text){let a=ib(o);if(a===ge.fieldStart){r.push({instruction:\"\",parsed:null,readingInstruction:!0,nodes:[]});continue}if(a===ge.fieldSeparator){let l=r[r.length-1];l&&(l.parsed=Lu(l.instruction),l.readingInstruction=!1);continue}if(a===ge.fieldEnd){let l=r.pop();if(!l)continue;let c=l.nodes;if(l.readingInstruction&&(l.parsed=Lu(l.instruction)),l.parsed?.type===\"hyperlink\"){let h=l.parsed.href;c=c.map(u=>u.type===\"lineBreak\"||u.type===\"pageBreak\"?u:{...u,href:h})}for(let h of c)an(r,e,h);continue}let s=r[r.length-1];if(s?.readingInstruction){s.instruction+=a;continue}if(a===ge.hardLineBreak){an(r,e,{type:\"lineBreak\",style:i.state});continue}if(a===ge.pageBreak){an(r,e,{type:\"pageBreak\",style:i.state});continue}if(a===ge.picture){let l=t(i.state);l?.type===\"image\"?an(r,e,{type:\"image\",asset:l,style:i.state}):l?.type===\"attachment\"&&an(r,e,{type:\"attachment\",asset:l,style:i.state});continue}an(r,e,{type:\"text\",text:ic(a),style:i.state})}for(;r.length;){let i=r.pop();for(let o of i.nodes)an(r,e,o)}return e}function Mu(n,t,e){for(let[r,i,o]of[[\"fontFamilyId\",\"fontFamily\",e?.ftcAsci],[\"fontFamilyEastAsiaId\",\"fontFamilyEastAsia\",e?.ftcFE],[\"fontFamilyOtherId\",\"fontFamilyOther\",e?.ftcOther],[\"fontFamilyBiId\",\"fontFamilyBi\",void 0]]){let a=n[r]??o,s=t(a);s&&(n[r]=a,n[i]=s.name||s.altName||void 0)}}function Fu(n,t,e,r,i,o,a,s=!1){let l=Q0(e,n.cpStart,n.cpEnd,a),c=new Set([n.cpStart,n.cpEnd]);for(let f of l)c.add(Math.max(n.cpStart,f.cpStart)),c.add(Math.min(n.cpEnd,f.cpEnd));let h=Array.from(c).sort((f,d)=>f-d),u=[];for(let f=0;f<h.length-1;f+=1){let d=h[f],p=h[f+1];if(p<=d)continue;let g=l.find(U=>U.cpStart<=d&&U.cpEnd>=p)?.properties||[],b=xn(g),T=b.charStyleId!=null?r.resolveStyle(b.charStyleId).charProps:[],S=on(i,T,g),I=xn(S);s&&I.colorIndex===8&&(I.colorIndex=1),Mu(I,o,r.header);let O=d-n.cpStart,$=p-n.cpStart,k=t.slice(O,$);if(!k)continue;let W=u[u.length-1];if(W&&Ha(W.state,I)){W.text+=k,W.cpEnd=p;continue}u.push({cpStart:d,cpEnd:p,text:k,state:I})}if(!u.length&&t){let f=xn(i);s&&f.colorIndex===8&&(f.colorIndex=1),Mu(f,o,r.header),u.push({cpStart:n.cpStart,cpEnd:n.cpEnd,text:t,state:f})}return u}function lb(n,t,e,r,i,o,a){let s=Iu(n.properties||[]),l=n.styleId||s.para.find(O=>O.name===\"styleId\")?.value||0,c=e.resolveStyle(l),h=on(c.paraProps,s.para),u=Ji(h),f=Ya(s.table),d=f.styleId!=null?e.resolveStyle(f.styleId).tableProps:[],p=on(d,s.table),m=Ya(p),g=c.charProps,b=O=>r.byIndex(O),T=Fu(n,t,i,e,g,b,a,n.storyKind===\"textbox\"||n.storyKind===\"header-textbox\"),S=sb(T,o),I=n.terminator===ge.paragraph?Fu({...n,cpStart:n.cpEnd-1},n.terminator,i,e,g,b,{index:a.index})[0]?.state:void 0;return{id:Ve(\"para\"),cpStart:n.cpStart,cpEnd:n.cpEnd,terminator:n.terminator||\"\",paragraphMark:I&&{revisionDeleted:I.revisionDeleted,revisionInserted:I.revisionInserted},storyKind:n.storyKind,text:t,rawProperties:n.properties||[],styleId:l,styleName:tb(e.styles.get(l)?.name),paraProps:h,paraState:u,tableProps:p,tableState:m,segments:T,inlines:S}}function cb(n){for(let e of n){e.cells.forEach((r,i)=>{r.colIndex=i,r.colspan=1,r.rowspan=1,r.hidden=!1});for(let r=0;r<e.cells.length;r+=1){let i=e.cells[r],o=i.meta?.merge||0;if(o!==1&&o>1){let a=r+1;for(;a<e.cells.length&&(e.cells[a].meta?.merge||0)===1;)e.cells[a].hidden=!0,i.colspan=(i.colspan||1)+1,a+=1;let s=e.cells[a-1];if(i.meta&&s?.meta&&s!==i){i.meta.rightBoundary=s.meta.rightBoundary,i.meta.leftBoundary!=null&&i.meta.rightBoundary!=null&&(i.meta.width=Math.max(0,i.meta.rightBoundary-i.meta.leftBoundary));let l=s.meta.borders?.right;l&&(i.meta.borders={...i.meta.borders||{},right:l})}}}}for(let e=0;e<n.length;e+=1){let r=n[e];for(let i of r.cells){if(i.hidden)continue;let o=i.meta?.vertMerge||0;if(o!==1&&o>1){let a=e+1;for(;a<n.length;){let c=!0;for(let h=i.colIndex||0;h<(i.colIndex||0)+(i.colspan||1);h+=1){let u=n[a].cells[h];if(!u||(u.meta?.vertMerge||0)!==1){c=!1;break}}if(!c)break;for(let h=i.colIndex||0;h<(i.colIndex||0)+(i.colspan||1);h+=1)n[a].cells[h].hidden=!0;i.rowspan=(i.rowspan||1)+1,a+=1}let s=n[a-1]?.cells[i.colIndex||0],l=s?.meta?.borders?.bottom;i.meta&&s?.meta&&s!==i&&l&&(i.meta.borders={...i.meta.borders||{},bottom:l})}}}let t=Array.from(new Set(n.flatMap(e=>e.cells.flatMap(r=>{let i=r.meta?.leftBoundary,o=r.meta?.rightBoundary;return[i,o].filter(a=>a!=null)})))).sort((e,r)=>e-r);if(t.length>1)for(let e of n)for(let r of e.cells){if(!r.meta)continue;let i=t.indexOf(r.meta.leftBoundary??Number.NaN),o=t.indexOf(r.meta.rightBoundary??Number.NaN);i>=0&&(r.colIndex=i),!r.hidden&&i>=0&&o>i&&(r.colspan=o-i)}}function ub(n){let t=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)&&(()=>{let i=e[r];return!!(i?.nil||i?.borderType)})();n.forEach((e,r)=>{e.cells.forEach(i=>{if(i.hidden||!i.meta)return;let o={...i.meta.borders||{}},a=e.state.borders||{},s=i.colIndex||0,l=s+(i.colspan||1),c=r+(i.rowspan||1),h=(u,f)=>{!t(o,u)&&f&&(o[u]=f)};h(\"top\",r===0?a.top:a.horizontalInside),h(\"bottom\",c>=n.length?a.bottom:a.horizontalInside),h(\"left\",s===0?a.left:a.verticalInside),h(\"right\",l>=e.cells.length?a.right:a.verticalInside),i.meta.borders=o})})}function as(n){return{type:\"paragraph\",id:n.id,styleId:n.styleId,styleName:n.styleName,paraState:n.paraState,inlines:n.inlines,text:n.text,paragraphMark:n.paragraphMark,storyKind:n.storyKind}}function Du(n){let t=Qi(n.tableState);if(!t.length)return\"\";let e=n.tableState,r=i=>{let o=e.borders?.[i];return`${o?.borderType??\"\"}:${o?.lineWidth??\"\"}:${o?.nil?1:0}`};return[t[0]?.leftBoundary??\"\",t[t.length-1]?.rightBoundary??\"\",e.alignment??\"\",e.leftIndent??\"\",e.gapHalf??\"\",e.rtl?1:0,r(\"top\"),r(\"left\"),r(\"bottom\"),r(\"right\"),r(\"horizontalInside\"),r(\"verticalInside\")].join(\"|\")}function hb(n,t){n.paraState.inTable=!0,n.paraState.itap=Math.max(t.paraState.itap||1,n.paraState.itap||0),n.tableState=t.tableState,n.tableProps=t.tableProps}function db(n){for(let t=0;t<n.length;t+=1){let e=n[t],r=Qi(e.tableState).length;if(!e.paraState.tableRowEnd||!r)continue;e.paraState.inTable=!0,e.paraState.itap=Math.max(1,e.paraState.itap||0);let i=r,o=t-1,a=[];for(;o>=0&&i>0;o-=1){let c=n[o];if(c.paraState.tableRowEnd||c.paraState.innerTableRowEnd)break;a.push(c),c.terminator===ge.cellMark&&(i-=1)}if(i>0)continue;let s=o;for(;s>=0&&!n[s].paraState.tableRowEnd&&!n[s].paraState.innerTableRowEnd&&n[s].terminator!==ge.cellMark;)s-=1;let l=n[s];if(l?.paraState.tableRowEnd&&Du(l)===Du(e))for(let c=s+1;c<t;c+=1){let h=n[c];a.includes(h)||a.push(h)}a.forEach(c=>hb(c,e))}}function fb(n){let t=[],e=[],r=a=>{a.cells.push({id:Ve(\"cell\"),paragraphs:a.content.filter(s=>s.type===\"paragraph\"),blocks:a.content,meta:null}),a.content=[]},i=(a,s=a.lastState)=>{a.content.length&&r(a);let l=Qi(s);for(;a.cells.length<l.length;)r(a);a.cells.length||r(a),a.cells.forEach((c,h)=>{c.meta=l[h]||{index:h}}),a.table.rows.push({id:Ve(\"row\"),cells:a.cells,state:s,gridWidthTwips:l.length?(l[l.length-1].rightBoundary||0)-(l[0].leftBoundary||0):0}),a.cells=[]},o=()=>{let a=e.pop();(a.content.length||a.cells.length)&&i(a);let s=a.table;cb(s.rows),ub(s.rows),s.state=s.rows[0]?.state||a.lastState,s.gridWidthTwips=s.rows.find(c=>c.gridWidthTwips)?.gridWidthTwips||0;let l=e[e.length-1];l?l.content.push(s):t.push(s)};for(let a of n){let s=Nc(a.paraState);if(e.length&&e[0].storyKind!==a.storyKind)for(;e.length;)o();for(;e.length&&e[e.length-1].table.depth>s;)o();if(s<=0){t.push(as(a));continue}let l=e[e.length-1];if((!l||l.table.depth<s)&&(l={table:{type:\"table\",id:Ve(\"table\"),depth:s,rows:[],state:a.tableState,gridWidthTwips:0},cells:[],content:[],lastState:a.tableState,storyKind:a.storyKind},e.push(l)),l.lastState=a.tableState,s>1?a.paraState.innerTableRowEnd:a.paraState.tableRowEnd){(a.text||a.inlines.length)&&l.content.push(as(a)),i(l,a.tableState);continue}l.content.push(as(a)),(s>1?a.paraState.innerTableCell:a.terminator===ge.cellMark)&&r(l)}for(;e.length;)o();return t}function Bu(n,t={}){let e=[],r=uc(n,t);e.push(...r.warnings||[]);let i=r.getStream(\"/WordDocument\");if(!i)throw new Error(\"Missing WordDocument stream\");let o=Dc(i);if(o)return o.warnings.unshift(...r.warnings||[]),o;let a=yc(i);if(a.base.wIdent!==42476&&rn(e,`Unexpected FIB identifier: 0x${a.base.wIdent.toString(16)}`),a.base.fEncrypted)throw new Error(\"Encrypted .doc files are not supported yet\");let s=r.getStream(a.base.fWhichTblStm?\"/1Table\":\"/0Table\");if(!s)throw new Error(\"Missing table stream\");let l=r.getStream(\"/Data\")||new Uint8Array(0),c=hc(s,a.fibRgFcLcb),h=dc(i,c),u=h.join(\"\"),f=ob(a,u.length),d=f.find(nt=>nt.kind===\"main\")||{kind:\"main\",cpStart:0,cpEnd:u.length},p=f.filter(nt=>(nt.kind===\"textbox\"||nt.kind===\"header-textbox\")&&_u(u.slice(nt.cpStart,nt.cpEnd)).replace(/[\\r\\u0007]/g,\"\").trim().length>0),m=Ou(s,a.fibRgFcLcb),g=Cc(s,a.fibRgFcLcb),b=Math.max(d.cpEnd,...p.map(nt=>nt.cpEnd)),T=kc(i,s,a,c).filter(nt=>nt.cpStart<b).map(nt=>({...nt,cpEnd:Math.min(nt.cpEnd,b)})),S=Ac(i,s,a,c,l).filter(nt=>nt.cpStart<b).map(nt=>({...nt,cpEnd:Math.min(nt.cpEnd,b)})),I=[d,...p].flatMap(nt=>ab(nt,u,S));p.length&&rn(e,\"Recovered text from a legacy Word text-box story; text-box positioning is unavailable, so the content was linearized after the main story.\",{code:\"MSDOC_TEXTBOX_STORY_LINEARIZED\",storyCount:p.length});let O=Ru(r),$=[],k=new Set,U=nb(l,O,$,k,new Map,t),v={index:0},_=I.flatMap(nt=>{let J=fc(i,c,h,nt.cpStart,nt.cpEnd),lt=nt.terminator===ge.paragraph||nt.terminator===ge.cellMark?nt.terminator:\"\",ot=lt&&J.endsWith(lt)?J.slice(0,-1):J,et=_u(ot),B=nt.storyKind===\"textbox\"||nt.storyKind===\"header-textbox\";return(ot.includes(ge.textBoxPlaceholder)||B)&&!et.trim()?[]:[lb({...nt,terminator:lt},et,m,g,T,U,v)]});db(_);let y=fb(_),H=Array.from(O.values()).filter(nt=>nt?.attachment&&!k.has(nt.entry.name)).map(nt=>nt.attachment);for(let nt of H)$.push(nt);return H.length&&y.push({type:\"attachments\",id:Ve(\"attachments\"),items:H}),{kind:\"msdoc\",version:1,warnings:e,meta:{fib:{wIdent:a.base.wIdent,nFib:a.base.nFib,fWhichTblStm:a.base.fWhichTblStm,fComplex:a.base.fComplex,fEncrypted:a.base.fEncrypted,ccpText:a.fibRgLw.ccpText},counts:{paragraphs:_.length,blocks:y.length,assets:$.length,styles:m.styles.size,fonts:g.fonts.length}},fonts:g.fonts,styles:Array.from(m.styles.values()).map(nt=>({istd:nt.istd,name:nt.name,type:nt.stdfBase?.stk,basedOn:nt.stdfBase?.istdBase,next:nt.stdfBase?.istdNext})),blocks:y,assets:$}}var pb=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}\\p{Script=Bopomofo}\\u3000-\\u303f\\uff00-\\uffef]/u,mb=/[\\p{Mark}\\u200c\\u200d]/u;function gb(n){switch(n.toLowerCase().replace(/[ _-]/g,\"\")){case\"\\u5B8B\\u4F53\":case\"\\u65B0\\u5B8B\\u4F53\":case\"simsun\":case\"nsimsun\":return[\"SimSun\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u4EFF\\u5B8B\":case\"\\u4EFF\\u5B8Bgb2312\":case\"fangsong\":case\"fangsonggb2312\":return[\"FangSong\",\"STFangsong\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u6977\\u4F53\":case\"\\u6977\\u4F53gb2312\":case\"kaiti\":case\"kaitigb2312\":return[\"KaiTi\",\"STKaiti\",\"Kaiti SC\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u9ED1\\u4F53\":case\"simhei\":return[\"SimHei\",\"Heiti SC\",\"Noto Sans CJK SC\",\"sans-serif\"];case\"\\u5FAE\\u8F6F\\u96C5\\u9ED1\":case\"microsoftyahei\":return[\"Microsoft YaHei\",\"PingFang SC\",\"Noto Sans CJK SC\",\"sans-serif\"]}let t=n.normalize(\"NFKC\").toLowerCase();if(/fangsong|仿宋/.test(t))return[\"STFangsong\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];if(/simsun|nsimsun|宋体|宋體|songti/.test(t))return[\"Songti SC\",\"Songti TC\",\"Noto Serif CJK SC\",\"serif\"];if(/kaiti|楷体|楷體/.test(t))return[\"Kaiti SC\",\"STKaiti\",\"Noto Serif CJK SC\",\"serif\"];if(/mingliu|細明體|新細明體/.test(t))return[\"Songti TC\",\"Noto Serif CJK TC\",\"serif\"];if(/mincho|明朝/.test(t))return[\"Hiragino Mincho ProN\",\"Yu Mincho\",\"Noto Serif CJK JP\",\"serif\"];if(/simhei|黑体|黑體|heiti|dengxian|等线|等線|yahei/.test(t))return[\"PingFang SC\",\"Microsoft YaHei\",\"Noto Sans CJK SC\",\"sans-serif\"]}function $u(n,t){let e=t?.altName&&t.altName!==n?[t.altName]:[],r=gb(n);if(r)return[...e,...r];let i={1:\"serif\",2:\"sans-serif\",3:\"monospace\",4:\"cursive\",5:\"fantasy\"},o=(t?.ffid??0)>>>4&7,a=i[o];if(!a&&t?.panose?.[0]===2){let s=t.panose[1];t.panose[3]===9?a=\"monospace\":s>=2&&s<=10?a=\"serif\":s>=11&&s<=15&&(a=\"sans-serif\")}return[...e,a??\"sans-serif\"]}function Wu(n,t){if(!n)return[];if(t.rtl&&t.fontFamilyBi)return[{text:n,fontFamily:t.fontFamilyBi}];let e=t.fontFamily,r=t.fontFamilyEastAsia||e,i=t.fontFamilyOther||e;if(r===e&&i===e)return[{text:n,fontFamily:e}];let o=[];for(let a of n){let s=o[o.length-1],l=s&&mb.test(a)?s.fontFamily:pb.test(a)?r:a.codePointAt(0)<128?e:i;s&&s.fontFamily===l?s.text+=a:o.push({text:a,fontFamily:l})}return o}var Jn={1:\"#000000\",2:\"#0000ff\",3:\"#00ffff\",4:\"#00ff00\",5:\"#ff00ff\",6:\"#ff0000\",7:\"#ffff00\",8:\"#ffffff\",9:\"#000080\",10:\"#008080\",11:\"#008000\",12:\"#800080\",13:\"#800000\",14:\"#808000\",15:\"#808080\",16:\"#c0c0c0\"};function Tn(n){return Object.entries(n).filter(([,t])=>t!=null&&t!==\"\").map(([t,e])=>`${t}:${ce(e)}`).join(\";\")}function Hu(n){return`'${String(n??\"\").replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/[\\n\\r\\f]/g,\" \").replace(/[\\u0000-\\u001f\\u007f-\\u009f]/g,\" \")}'`}function Gu(n,t){let e=$u(n,t.fonts.get(n));return[Hu(n),...e.map((r,i)=>i===e.length-1?r:Hu(r))].join(\",\")}function Qn(n,t=\"block\"){let e=String(n??\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\").trim();return e?e.startsWith(\"#\")?e:t!==\"allow\"?null:/^(?:https?:|mailto:|tel:)/i.test(e)?e:e.startsWith(\"//\")||e.includes(\"\\\\\")?null:/^(?:\\/|\\.\\/|\\.\\.\\/)/.test(e)&&!e.startsWith(\"//\")||!/^[a-z][a-z\\d+.-]*:/i.test(e)?e:null:null}function lo(n,t){if(!t)return n;let e=ce(t);return t.startsWith(\"#\")?`<a class=\"msdoc-link\" href=\"${e}\">${n}</a>`:`<a class=\"msdoc-link\" href=\"${e}\" target=\"_blank\" rel=\"noreferrer noopener\">${n}</a>`}function vn(n){if(!n||n.nil)return null;let t=n.borderType;if(!t)return null;let e=Math.max(2,n.lineWidth||0),r=t>=64?e:e/8,i=Math.max(1,Math.round(r*(96/72))),o=t===3?\"double\":t===6?\"dotted\":[7,8,9].includes(t)?\"dashed\":\"solid\",a=n.color,s=n.colorRef!=null?ss(n.colorRef):Jn[a||1]||\"#000000\";return`${i}px ${o} ${s}`}function ss(n){if(n==null||n>>>24===255)return\"#000000\";let t=n&255,e=n>>>8&255,r=n>>>16&255;return`#${[t,e,r].map(i=>i.toString(16).padStart(2,\"0\")).join(\"\")}`}var Uu={2:5,3:10,4:20,5:25,6:30,7:40,8:50,9:60,10:70,11:75,12:80,13:90};function bb(n,t,e){let r=(a,s)=>Number.parseInt(a.slice(s,s+2),16),i=Math.max(0,Math.min(100,e))/100;return`#${[1,3,5].map(a=>Math.round(r(n,a)*i+r(t,a)*(1-i))).map(a=>a.toString(16).padStart(2,\"0\")).join(\"\")}`}function yb(n){if(!n||n.nil||n.auto||n.pattern===0)return{};let t=n.foregroundColorRef!=null?ss(n.foregroundColorRef):Jn[n.foregroundColorIndex||1]||\"#000000\",e=n.backgroundColorRef!=null?ss(n.backgroundColorRef):Jn[n.backgroundColorIndex||8]||\"#ffffff\";if(n.pattern===1)return{\"background-color\":t};if(Uu[n.pattern]!=null)return{\"background-color\":bb(t,e,Uu[n.pattern])};let r=n.pattern===14||n.pattern===20?`repeating-linear-gradient(0deg,${t} 0 1px,transparent 1px 4px)`:n.pattern===15||n.pattern===21?`repeating-linear-gradient(90deg,${t} 0 1px,transparent 1px 4px)`:n.pattern===16||n.pattern===22?`repeating-linear-gradient(45deg,${t} 0 1px,transparent 1px 5px)`:n.pattern===17||n.pattern===23?`repeating-linear-gradient(-45deg,${t} 0 1px,transparent 1px 5px)`:null;return r?{\"background-color\":e,\"background-image\":r}:{\"background-color\":e}}function xb(n){let t={\"text-align\":Rc(n.alignment)},e=de(n.spacingBefore),r=de(n.spacingAfter),i=de(n.leftIndent),o=de(n.rightIndent),a=de(n.firstLineIndent);if(e&&(t[\"margin-top\"]=`${e}px`),r&&(t[\"margin-bottom\"]=`${r}px`),i&&(t[\"margin-left\"]=`${i}px`),o&&(t[\"margin-right\"]=`${o}px`),a&&(t[\"text-indent\"]=`${a}px`),n.lineSpacing)if(n.lineSpacingRule===\"exact\"||n.lineSpacingRule===\"atLeast\")t[\"line-height\"]=`${de(Math.abs(n.lineSpacing))}px`;else{let u=Math.abs(n.lineSpacing)/240;t[\"line-height\"]=u===1?\"normal\":String(u)}n.keepLines&&(t[\"break-inside\"]=\"avoid\"),n.keepNext&&(t[\"break-after\"]=\"avoid\"),n.pageBreakBefore&&(t[\"break-before\"]=\"page\"),n.rtlPara&&(t.direction=\"rtl\");let s=vn(n.borders?.top),l=vn(n.borders?.right),c=vn(n.borders?.bottom),h=vn(n.borders?.left);return s&&(t[\"border-top\"]=s),l&&(t[\"border-inline-end\"]=l),c&&(t[\"border-bottom\"]=c),h&&(t[\"border-inline-start\"]=h),t}function wb(n){let t=Pc(n);if(!n||t===\"none\")return{};let e={\"text-decoration-line\":\"underline\"};return t===\"double\"||t===\"wavy-double\"?e[\"text-decoration-style\"]=\"double\":t.includes(\"dot\")||t===\"dotted-heavy\"?e[\"text-decoration-style\"]=\"dotted\":t.includes(\"dash\")?e[\"text-decoration-style\"]=\"dashed\":t.includes(\"wave\")||t.includes(\"wavy\")?e[\"text-decoration-style\"]=\"wavy\":e[\"text-decoration-style\"]=\"solid\",e}function ju(n,t){let e={};(n.bold||n.boldBi)&&(e[\"font-weight\"]=\"700\"),(n.italic||n.italicBi)&&(e[\"font-style\"]=\"italic\"),(n.strike||n.doubleStrike)&&(e[\"text-decoration-line\"]=`${e[\"text-decoration-line\"]?`${e[\"text-decoration-line\"]} `:\"\"}line-through`),Object.assign(e,wb(n.underline)),n.fontSizeHalfPoints&&(e[\"font-size\"]=`${n.fontSizeHalfPoints/2}pt`),n.fontFamily&&(e[\"font-family\"]=Gu(n.fontFamily,t)),n.colorIndex&&Jn[n.colorIndex]&&(e.color=Jn[n.colorIndex]);let r=typeof n.highlight==\"number\"?n.highlight:n.highlight?.index;return r&&Gn[r]&&(e[\"background-color\"]=Gn[r]),n.smallCaps&&(e[\"font-variant-caps\"]=\"small-caps\"),n.caps&&(e[\"text-transform\"]=\"uppercase\"),n.scale&&n.scale!==100&&(e.display=\"inline-block\",e.transform=`scaleX(${n.scale/100})`,e[\"transform-origin\"]=\"left center\"),n.positionHalfPoints>0&&(e[\"vertical-align\"]=\"super\"),n.positionHalfPoints<0&&(e[\"vertical-align\"]=\"sub\"),n.outline&&(e[\"text-shadow\"]=\"0 0 0.02em currentColor\"),(n.shadow||n.emboss||n.imprint)&&(e[\"text-shadow\"]=e[\"text-shadow\"]?`${e[\"text-shadow\"]}, 0.06em 0.06em 0.08em rgba(0,0,0,.25)`:\"0.06em 0.06em 0.08em rgba(0,0,0,.25)\"),n.rtl&&(e.direction=\"rtl\"),e}function vb(n,t){if(t.reviewMode===\"final\"&&n.style.revisionDeleted||t.reviewMode===\"original\"&&n.style.revisionInserted)return\"\";let e=Wu(n.text,n.style).map(c=>{let h=ce(c.text);return!c.fontFamily||c.fontFamily===n.style.fontFamily?h:`<span style=\"${Tn({\"font-family\":Gu(c.fontFamily,t)})}\">${h}</span>`}).join(\"\"),r=ju(n.style,t);r[\"white-space\"]=\"break-spaces\";let i=t.reviewMode===\"all\"?n.style.revisionDeleted?\"delete\":n.style.revisionInserted?\"insert\":null:null;i&&(r.color=\"#c62828\",r[\"text-decoration-line\"]=i===\"delete\"?\"line-through\":\"underline\");let o=Tn(r),a=i===\"delete\"?\"del\":i===\"insert\"?\"ins\":\"span\",s=i?` data-msdoc-change=\"${i}\"`:\"\",l=`<${a}${s}${o?` style=\"${o}\"`:\"\"}>${e}</${a}>`;return lo(l,Qn(n.href,t.externalLinkPolicy))}function Vu(n){let t=de(n.meta?.displayWidthTwips),e=de(n.meta?.displayHeightTwips);return{widthPx:t&&t>0?t:void 0,heightPx:e&&e>0?e:void 0}}function Tb(n,t){let{widthPx:e,heightPx:r}=Vu(t);!e&&!r||(e&&(n.width=`${e}px`),r&&(n.height=`${r}px`))}var Xu=/^data:image\\/(?:avif|bmp|gif|jpeg|png|webp|x-icon);base64,[a-z\\d+/=]+$/i;function Sb(n){try{let t=globalThis.Buffer;if(t)return t.from(n,\"base64\").toString(\"utf8\");if(typeof atob!=\"function\")return null;let e=atob(n),r=Uint8Array.from(e,i=>i.charCodeAt(0));return new TextDecoder().decode(r)}catch{return null}}function Eb(n){let t=/^data:image\\/svg\\+xml;base64,([a-z\\d+/=]+)$/i.exec(n);if(!t||t[1].length>8*1024*1024)return!1;let e=Sb(t[1]);if(!e||!/^\\s*<svg(?:\\s|>)/i.test(e)||/<\\/?(?:script|style|foreignObject|iframe|object|embed|form|link)\\b/i.test(e)||/<!\\s*(?:doctype|entity)\\b/i.test(e)||/\\son[a-z\\d_-]+\\s*=/i.test(e)||e.includes(\"\\\\\")||e.includes(\"/*\")||/@import\\b/i.test(e)||/url\\s*\\(\\s*(?![\"']?#[A-Za-z0-9_.:-]+[\"']?\\s*\\))/i.test(e))return!1;for(let r of e.matchAll(/\\s(?:href|xlink:href|src)\\s*=\\s*([\"'])([\\s\\S]*?)\\1/gi)){let i=String(r[2]||\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\");if(!/^#[A-Za-z0-9_.:-]+$/.test(i)&&!Xu.test(i))return!1}return!0}function zu(n,t,e=!1){let r=String(n||\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\").trim();return r?Xu.test(r)||e&&Eb(r)||/^blob:/i.test(r)?r:t!==\"allow\"?null:/^https?:/i.test(r)?r:r.startsWith(\"//\")||r.startsWith(\"\\\\\")?null:!/^[a-z][a-z\\d+.-]*:/i.test(r)&&!r.startsWith(\"\\\\\")?r:null:null}function ls(n){let t=String(n??\"\").trim();if(!t)return null;let e=/^data:([^;,]+);base64,([a-z\\d+/=\\s]+)$/i.exec(t);if(!e)return null;let r=e[1].trim().toLowerCase();return/^(?:text\\/(?:html|javascript)|application\\/(?:javascript|xhtml\\+xml|xml)|image\\/svg\\+xml)$/.test(r)||r.endsWith(\"+xml\")?null:t}function Yu(n,t){let e=ls(n);if(e)return e;let r=Qn(n,t.externalLinkPolicy);return r&&!r.startsWith(\"#\")?r:null}function kb(n,t){let e=n.asset.meta?.vectorConverted===!0,r=zu(n.asset.sourceUrl,t.externalResourcePolicy,e)||zu(n.asset.dataUrl,t.externalResourcePolicy,e),i=ju(n.style,t),o=Vu(n.asset);if(o.widthPx||o.heightPx?(Tb(i,n.asset),i[\"max-width\"]=\"none\",o.heightPx||(i.height=\"auto\")):(i[\"max-width\"]=\"100%\",i.height=\"auto\"),!r||n.asset.displayable===!1){let s=Yu(n.asset.dataUrl,t)||Yu(n.asset.sourceUrl,t),l=ce(String(n.asset.meta?.linkedPath||n.asset.mime||\"image\")),c=s?`<a class=\"msdoc-attachment msdoc-image-fallback\" href=\"${ce(s)}\" target=\"_blank\" rel=\"noreferrer noopener\">\\u{1F5BC} ${l}</a>`:`<span class=\"msdoc-image-fallback\">\\u{1F5BC} ${l}</span>`;return lo(c,Qn(n.href,t.externalLinkPolicy))}let a=`<img class=\"msdoc-image\" src=\"${ce(r)}\" alt=\"\" style=\"${Tn(i)}\">`;return lo(a,Qn(n.href,t.externalLinkPolicy))}function Ab(n,t){let e=ce(n.asset.name||\"embedded-file\"),r=ls(n.asset.dataUrl),i=r?`<a class=\"msdoc-attachment\" href=\"${ce(r)}\" download=\"${e}\">\\u{1F4CE} ${e}</a>`:`<span class=\"msdoc-attachment\">\\u{1F4CE} ${e}</span>`,o=Qn(n.href,t.externalLinkPolicy);return o?`<span class=\"msdoc-inline-group\">${i}${lo(\"\\u2197\",o)}</span>`:i}function Cb(n,t){return n.map(e=>qu(e.style,t)?\"\":e.type===\"text\"?vb(e,t):e.type===\"image\"?kb(e,t):e.type===\"attachment\"?Ab(e,t):e.type===\"lineBreak\"?\"<br>\":e.type===\"pageBreak\"?'<span class=\"msdoc-page-break\"></span>':\"\").join(\"\")}function qu(n,t){return!!(t.reviewMode===\"final\"&&n?.revisionDeleted||t.reviewMode===\"original\"&&n?.revisionInserted)}function Ku(n,t){let e=[];for(let r of n){let i=e[e.length-1];i&&i.storyKind===r.storyKind&&qu(i.paragraphMark,t)?e[e.length-1]={...r,inlines:[...i.inlines,...r.inlines],text:i.text+r.text}:e.push(r)}return e}function Zu(n,t,e={}){let r=e.inline?\"div\":\"p\",i=Tn(xb(n.paraState)),a=Cb(n.inlines||[],t)||\"<br>\",s=[\"msdoc-paragraph\"];return n.paraState.lineSpacingRule===\"atLeast\"&&s.push(\"msdoc-line-at-least\"),n.styleName&&s.push(`msdoc-style-${Vi(n.styleName)}`),`<${r} class=\"${s.join(\" \")}\"${i?` style=\"${i}\"`:\"\"}>${a}</${r}>`}function Nb(n){let t={},e=n.meta?.rightBoundary!=null&&n.meta?.leftBoundary!=null?n.meta.rightBoundary-n.meta.leftBoundary:n.meta?.width,r=de(e);r&&(t.width=`${r}px`),n.meta?.noWrap&&(t[\"white-space\"]=\"nowrap\"),n.meta?.fitText&&(t[\"text-align\"]=\"justify\"),n.meta?.vertAlign!=null&&(t[\"vertical-align\"]=Ic(n.meta.vertAlign));let i=n.meta?.borders||{},o=vn(i.all),a=f=>Object.prototype.hasOwnProperty.call(i,f)?vn(i[f]):o,s=a(\"top\"),l=a(\"right\"),c=a(\"bottom\"),h=a(\"left\");s&&(t[\"border-top\"]=s),l&&(t[\"border-inline-end\"]=l),c&&(t[\"border-bottom\"]=c),h&&(t[\"border-inline-start\"]=h);let u=n.meta?.paddingTwips;return u?.top!=null&&(t[\"padding-top\"]=`${de(u.top)}px`),u?.right!=null&&(t[\"padding-inline-end\"]=`${de(u.right)}px`),u?.bottom!=null&&(t[\"padding-bottom\"]=`${de(u.bottom)}px`),u?.left!=null&&(t[\"padding-inline-start\"]=`${de(u.left)}px`),Object.assign(t,yb(n.meta?.shading)),t}function Rb(n){let t={},e=de(n.gridWidthTwips||n.state?.tableWidth?.wWidth);e?t.width=`${e}px`:t.width=\"100%\";let r=de(n.state?.leftIndent);n.state?.alignment===1?(t[\"margin-inline-start\"]=\"auto\",t[\"margin-inline-end\"]=\"auto\"):n.state?.alignment===2?(t[\"margin-inline-start\"]=\"auto\",t[\"margin-inline-end\"]=\"0\"):r&&(t[\"margin-inline-start\"]=`${r}px`),n.state?.rtl&&(t.direction=\"rtl\");let i=n.rows.flatMap(o=>o.cells).reduce((o,a)=>{let s=a.meta?.spacingTwips;return s?{horizontal:Math.max(o.horizontal,s.left||0,s.right||0),vertical:Math.max(o.vertical,s.top||0,s.bottom||0)}:o},{horizontal:0,vertical:0});return i.horizontal||i.vertical?(t[\"border-collapse\"]=\"separate\",t[\"border-spacing\"]=`${de(i.horizontal)}px ${de(i.vertical)}px`):t[\"border-collapse\"]=\"collapse\",t[\"table-layout\"]=\"fixed\",t}function Pb(n){let t=new Set;for(let r of n.rows)for(let i of r.cells){let o=i.meta?.leftBoundary,a=i.meta?.rightBoundary;Number.isFinite(o)&&Number.isFinite(a)&&a>o&&(t.add(o),t.add(a))}let e=[...t].sort((r,i)=>r-i);return e.length<2?\"\":`<colgroup>${e.slice(1).map((r,i)=>`<col style=\"width:${de(r-e[i])}px\">`).join(\"\")}</colgroup>`}function Ib(n,t){let e=[],r=[],i=a=>n.meta?.textFlow===5?`<div class=\"msdoc-cell-vertical\" style=\"writing-mode:vertical-rl;text-orientation:upright;inline-size:max-content;block-size:max-content;margin:0 auto\">${a}</div>`:a,o=()=>{if(!r.length)return;let a=Ku(r,t).map(s=>Zu(s,t,{inline:!0})).join(\"\");a&&e.push(i(a)),r=[]};for(let a of n.blocks??n.paragraphs)a.type===\"paragraph\"?r.push(a):(o(),e.push(Ju(a,t)));return o(),e.join(\"\")||i('<div class=\"msdoc-paragraph\"><br></div>')}function Ju(n,t){let e=n.rows.map(r=>{let i=r.state?.rowHeight?de(Math.abs(r.state.rowHeight)):null,o=i?` style=\"height:${i}px\"`:\"\",a=r.cells.filter(s=>!s.hidden).map(s=>{let l=[];(s.colspan??1)>1&&l.push(` colspan=\"${s.colspan}\"`),(s.rowspan??1)>1&&l.push(` rowspan=\"${s.rowspan}\"`);let c=Tn(Nb(s)),h=Ib(s,t);return`<td class=\"msdoc-cell\"${l.join(\"\")}${c?` style=\"${c}\"`:\"\"}>${h||'<div class=\"msdoc-paragraph\"><br></div>'}</td>`}).join(\"\");return`<tr class=\"msdoc-row\"${o}>${a}</tr>`}).join(\"\");return`<table class=\"msdoc-table msdoc-table-depth-${n.depth}\" style=\"${Tn(Rb(n))}\">${Pb(n)}<tbody>${e}</tbody></table>`}function Ob(n){return`<section class=\"msdoc-attachments\"><div class=\"msdoc-attachments-title\">Embedded attachments</div><ul>${n.items.map(e=>{let r=ce(e.name||\"embedded-file\"),i=ls(e.dataUrl);return`<li>${i?`<a class=\"msdoc-attachment\" href=\"${ce(i)}\" download=\"${r}\">\\u{1F4CE} ${r}</a>`:`<span class=\"msdoc-attachment\">\\u{1F4CE} ${r}</span>`}</li>`}).join(\"\")}</ul></section>`}function Lb(){return`\n.msdoc-root{box-sizing:border-box;max-width:100%;padding:24px;background:#fff;color:#111;font:14px/1.6 -apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif}\n.msdoc-root *{box-sizing:border-box}\n.msdoc-paragraph{margin:0 0 8px;white-space:normal;word-break:break-word;overflow-wrap:anywhere}\n.msdoc-line-at-least span,.msdoc-line-at-least ins,.msdoc-line-at-least del{line-height:normal}\n.msdoc-paragraph:last-child{margin-bottom:0}\n.msdoc-table{margin:12px 0;border-collapse:collapse;border-spacing:0;max-width:100%}\n.msdoc-cell>.msdoc-table{margin-top:0;margin-bottom:0}\n.msdoc-cell{padding:6px 8px;vertical-align:top;word-break:break-word;overflow-wrap:anywhere}\n.msdoc-link{color:#1a73e8;text-decoration:none}\n.msdoc-link:hover{text-decoration:underline}\n.msdoc-image{display:inline-block;vertical-align:middle}\n.msdoc-image-fallback{display:inline-flex;align-items:center;gap:6px}\n.msdoc-attachment{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #d0d7de;border-radius:6px;background:#f6f8fa;color:#0969da;text-decoration:none}\n.msdoc-attachments{margin-top:20px;padding-top:12px;border-top:1px solid #e5e7eb}\n.msdoc-attachments-title{font-weight:600;margin-bottom:8px}\n.msdoc-page-break{display:block;height:0;border-top:1px dashed #cbd5e1;margin:16px 0}\n`}function Qu(n,t={}){let e=t.css??Lb(),r={reviewMode:t.reviewMode??\"all\",externalLinkPolicy:t.externalLinkPolicy??\"block\",externalResourcePolicy:t.externalResourcePolicy??\"block\",fonts:new Map((n.fonts??[]).flatMap(l=>[l.name,l.altName].filter(Boolean).map(c=>[c,l])))},i=[],o=[],a=()=>{i.push(...Ku(o,r).map(l=>Zu(l,r))),o=[]};for(let l of n.blocks){if(l.type===\"paragraph\"){o.push(l);continue}a(),l.type===\"table\"&&i.push(Ju(l,r)),l.type===\"attachments\"&&i.push(Ob(l))}return a(),{html:i.join(\"\"),css:e,warnings:n.warnings||[],meta:n.meta,assets:n.assets||[],parsed:n}}function _b(n,t){this.v=n,this.k=t}function th(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function Mb(n){if(Array.isArray(n))return n}function Fb(n,t){var e=n==null?null:typeof Symbol<\"u\"&&n[Symbol.iterator]||n[\"@@iterator\"];if(e!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(e=e.call(n)).next,t===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){c=!0,i=h}finally{try{if(!l&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bb(n,t){return Mb(n)||Fb(n,t)||$b(n,t)||Db()}function $b(n,t){if(n){if(typeof n==\"string\")return th(n,t);var e={}.toString.call(n).slice(8,-1);return e===\"Object\"&&n.constructor&&(e=n.constructor.name),e===\"Map\"||e===\"Set\"?Array.from(n):e===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?th(n,t):void 0}}function co(n){var t,e;function r(o,a){try{var s=n[o](a),l=s.value,c=l instanceof _b;Promise.resolve(c?l.v:l).then(function(h){if(c){var u=o===\"return\"&&l.k?o:\"next\";if(!l.k||h.done)return r(u,h);h=n[u](h).value}i(!!s.done,h)},function(h){r(\"throw\",h)})}catch(h){i(2,h)}}function i(o,a){o===2?t.reject(a):t.resolve({value:a,done:o}),(t=t.next)?r(t.key,t.arg):e=null}this._invoke=function(o,a){return new Promise(function(s,l){var c={key:o,arg:a,resolve:s,reject:l,next:null};e?e=e.next=c:(t=e=c,r(o,a))})},typeof n.return!=\"function\"&&(this.return=void 0)}co.prototype[typeof Symbol==\"function\"&&Symbol.asyncIterator||\"@@asyncIterator\"]=function(){return this},co.prototype.next=function(n){return this._invoke(\"next\",n)},co.prototype.throw=function(n){return this._invoke(\"throw\",n)},co.prototype.return=function(n){return this._invoke(\"return\",n)};var mh=Object.entries,eh=Object.setPrototypeOf,Wb=Object.isFrozen,gh=Object.getPrototypeOf,bh=Object.getOwnPropertyDescriptor,xe=Object.freeze,ve=Object.seal,Sn=Object.create,yh=typeof Reflect<\"u\"&&Reflect,ys=yh.apply,xs=yh.construct;xe||(xe=function(t){return t});ve||(ve=function(t){return t});ys||(ys=function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(e,i)});xs||(xs=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});var Ar=ee(Array.prototype.forEach);Array.prototype.indexOf;var Hb=ee(Array.prototype.lastIndexOf),rh=ee(Array.prototype.pop),ti=ee(Array.prototype.push),Ub=ee(Array.prototype.slice),zb=ee(Array.prototype.splice),En=Array.isArray,cs=xh(Set),us=ee(Set.prototype.add),ei=ee(Set.prototype.has),sn=ee(String.prototype.toLowerCase),hs=ee(String.prototype.toString),nh=ee(String.prototype.match),ri=ee(String.prototype.replace),ih=ee(String.prototype.indexOf),Yb=ee(String.prototype.trim),Gb=ee(Number.prototype.toString),jb=ee(Boolean.prototype.toString),oh=typeof BigInt>\"u\"?null:ee(BigInt.prototype.toString),ah=typeof Symbol>\"u\"?null:ee(Symbol.prototype.toString),Me=ee(Object.prototype.hasOwnProperty),ni=ee(Object.prototype.toString),we=ee(RegExp.prototype.test),Cr=xh(TypeError);function ee(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return ys(n,t,r)}}function xh(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return xs(n,e)}}function Gt(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sn;if(eh&&eh(n,null),!En(t))return n;let r=t.length;for(;r--;){let i=t[r];if(typeof i==\"string\"){let o=e(i);o!==i&&(Wb(t)||(t[r]=o),i=o)}n[i]=!0}return n}function Vb(n){for(let t=0;t<n.length;t++)Me(n,t)||(n[t]=null);return n}function $e(n){let t=Sn(null);for(let r of mh(n)){var e=Bb(r,2);let i=e[0],o=e[1];Me(n,i)&&(En(o)?t[i]=Vb(o):o&&typeof o==\"object\"&&o.constructor===Object?t[i]=$e(o):t[i]=o)}return t}function Xb(n){switch(typeof n){case\"string\":return n;case\"number\":return Gb(n);case\"boolean\":return jb(n);case\"bigint\":return oh?oh(n):\"0\";case\"symbol\":return ah?ah(n):\"Symbol()\";case\"undefined\":return ni(n);case\"function\":case\"object\":{if(n===null)return ni(n);let t=n,e=Ke(t,\"toString\");if(typeof e==\"function\"){let r=e(t);return typeof r==\"string\"?r:ni(r)}return ni(n)}default:return ni(n)}}function Ke(n,t){for(;n!==null;){let r=bh(n,t);if(r){if(r.get)return ee(r.get);if(typeof r.value==\"function\")return ee(r.value)}n=gh(n)}function e(){return null}return e}function qb(n,t){for(;n!==null;){let e=bh(n,t);if(e)return e.get?ee(e.get):null;n=gh(n)}return null}function Kb(n){try{return we(n,\"\"),!0}catch{return!1}}var sh=xe([\"a\",\"abbr\",\"acronym\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"bdi\",\"bdo\",\"big\",\"blink\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"center\",\"cite\",\"code\",\"col\",\"colgroup\",\"content\",\"data\",\"datalist\",\"dd\",\"decorator\",\"del\",\"details\",\"dfn\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"element\",\"em\",\"fieldset\",\"figcaption\",\"figure\",\"font\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"img\",\"input\",\"ins\",\"kbd\",\"label\",\"legend\",\"li\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meter\",\"nav\",\"nobr\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"search\",\"section\",\"select\",\"shadow\",\"slot\",\"small\",\"source\",\"spacer\",\"span\",\"strike\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"template\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"tt\",\"u\",\"ul\",\"var\",\"video\",\"wbr\"]),ds=xe([\"svg\",\"a\",\"altglyph\",\"altglyphdef\",\"altglyphitem\",\"animatecolor\",\"animatemotion\",\"animatetransform\",\"circle\",\"clippath\",\"defs\",\"desc\",\"ellipse\",\"enterkeyhint\",\"exportparts\",\"filter\",\"font\",\"g\",\"glyph\",\"glyphref\",\"hkern\",\"image\",\"inputmode\",\"line\",\"lineargradient\",\"marker\",\"mask\",\"metadata\",\"mpath\",\"part\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialgradient\",\"rect\",\"stop\",\"style\",\"switch\",\"symbol\",\"text\",\"textpath\",\"title\",\"tref\",\"tspan\",\"view\",\"vkern\"]),fs=xe([\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feDistantLight\",\"feDropShadow\",\"feFlood\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"fePointLight\",\"feSpecularLighting\",\"feSpotLight\",\"feTile\",\"feTurbulence\"]),Zb=xe([\"animate\",\"color-profile\",\"cursor\",\"discard\",\"font-face\",\"font-face-format\",\"font-face-name\",\"font-face-src\",\"font-face-uri\",\"foreignobject\",\"hatch\",\"hatchpath\",\"mesh\",\"meshgradient\",\"meshpatch\",\"meshrow\",\"missing-glyph\",\"script\",\"set\",\"solidcolor\",\"unknown\",\"use\"]),ps=xe([\"math\",\"menclose\",\"merror\",\"mfenced\",\"mfrac\",\"mglyph\",\"mi\",\"mlabeledtr\",\"mmultiscripts\",\"mn\",\"mo\",\"mover\",\"mpadded\",\"mphantom\",\"mroot\",\"mrow\",\"ms\",\"mspace\",\"msqrt\",\"mstyle\",\"msub\",\"msup\",\"msubsup\",\"mtable\",\"mtd\",\"mtext\",\"mtr\",\"munder\",\"munderover\",\"mprescripts\"]),Jb=xe([\"maction\",\"maligngroup\",\"malignmark\",\"mlongdiv\",\"mscarries\",\"mscarry\",\"msgroup\",\"mstack\",\"msline\",\"msrow\",\"semantics\",\"annotation\",\"annotation-xml\",\"mprescripts\",\"none\"]),lh=xe([\"#text\"]),ch=xe([\"accept\",\"action\",\"align\",\"alt\",\"autocapitalize\",\"autocomplete\",\"autopictureinpicture\",\"autoplay\",\"background\",\"bgcolor\",\"border\",\"capture\",\"cellpadding\",\"cellspacing\",\"checked\",\"cite\",\"class\",\"clear\",\"color\",\"cols\",\"colspan\",\"command\",\"commandfor\",\"controls\",\"controlslist\",\"coords\",\"crossorigin\",\"datetime\",\"decoding\",\"default\",\"dir\",\"disabled\",\"disablepictureinpicture\",\"disableremoteplayback\",\"download\",\"draggable\",\"enctype\",\"enterkeyhint\",\"exportparts\",\"face\",\"for\",\"headers\",\"height\",\"hidden\",\"high\",\"href\",\"hreflang\",\"id\",\"inert\",\"inputmode\",\"integrity\",\"ismap\",\"kind\",\"label\",\"lang\",\"list\",\"loading\",\"loop\",\"low\",\"max\",\"maxlength\",\"media\",\"method\",\"min\",\"minlength\",\"multiple\",\"muted\",\"name\",\"nonce\",\"noshade\",\"novalidate\",\"nowrap\",\"open\",\"optimum\",\"part\",\"pattern\",\"placeholder\",\"playsinline\",\"popover\",\"popovertarget\",\"popovertargetaction\",\"poster\",\"preload\",\"pubdate\",\"radiogroup\",\"readonly\",\"rel\",\"required\",\"rev\",\"reversed\",\"role\",\"rows\",\"rowspan\",\"spellcheck\",\"scope\",\"selected\",\"shape\",\"size\",\"sizes\",\"slot\",\"span\",\"srclang\",\"start\",\"src\",\"srcset\",\"step\",\"style\",\"summary\",\"tabindex\",\"title\",\"translate\",\"type\",\"usemap\",\"valign\",\"value\",\"width\",\"wrap\",\"xmlns\"]),ms=xe([\"accent-height\",\"accumulate\",\"additive\",\"alignment-baseline\",\"amplitude\",\"ascent\",\"attributename\",\"attributetype\",\"azimuth\",\"basefrequency\",\"baseline-shift\",\"begin\",\"bias\",\"by\",\"class\",\"clip\",\"clippathunits\",\"clip-path\",\"clip-rule\",\"color\",\"color-interpolation\",\"color-interpolation-filters\",\"color-profile\",\"color-rendering\",\"cx\",\"cy\",\"d\",\"dx\",\"dy\",\"diffuseconstant\",\"direction\",\"display\",\"divisor\",\"dominant-baseline\",\"dur\",\"edgemode\",\"elevation\",\"end\",\"exponent\",\"fill\",\"fill-opacity\",\"fill-rule\",\"filter\",\"filterunits\",\"flood-color\",\"flood-opacity\",\"font-family\",\"font-size\",\"font-size-adjust\",\"font-stretch\",\"font-style\",\"font-variant\",\"font-weight\",\"fx\",\"fy\",\"g1\",\"g2\",\"glyph-name\",\"glyphref\",\"gradientunits\",\"gradienttransform\",\"height\",\"href\",\"id\",\"image-rendering\",\"in\",\"in2\",\"intercept\",\"k\",\"k1\",\"k2\",\"k3\",\"k4\",\"kerning\",\"keypoints\",\"keysplines\",\"keytimes\",\"lang\",\"lengthadjust\",\"letter-spacing\",\"kernelmatrix\",\"kernelunitlength\",\"lighting-color\",\"local\",\"marker-end\",\"marker-mid\",\"marker-start\",\"markerheight\",\"markerunits\",\"markerwidth\",\"maskcontentunits\",\"maskunits\",\"max\",\"mask\",\"mask-type\",\"media\",\"method\",\"mode\",\"min\",\"name\",\"numoctaves\",\"offset\",\"operator\",\"opacity\",\"order\",\"orient\",\"orientation\",\"origin\",\"overflow\",\"paint-order\",\"path\",\"pathlength\",\"patterncontentunits\",\"patterntransform\",\"patternunits\",\"pointer-events\",\"points\",\"preservealpha\",\"preserveaspectratio\",\"primitiveunits\",\"r\",\"rx\",\"ry\",\"radius\",\"refx\",\"refy\",\"repeatcount\",\"repeatdur\",\"restart\",\"result\",\"rotate\",\"scale\",\"seed\",\"shape-rendering\",\"slope\",\"specularconstant\",\"specularexponent\",\"spreadmethod\",\"startoffset\",\"stddeviation\",\"stitchtiles\",\"stop-color\",\"stop-opacity\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-miterlimit\",\"stroke-opacity\",\"stroke\",\"stroke-width\",\"style\",\"surfacescale\",\"systemlanguage\",\"tabindex\",\"tablevalues\",\"targetx\",\"targety\",\"transform\",\"transform-origin\",\"text-anchor\",\"text-decoration\",\"text-orientation\",\"text-rendering\",\"textlength\",\"type\",\"u1\",\"u2\",\"unicode\",\"values\",\"vector-effect\",\"viewbox\",\"visibility\",\"version\",\"vert-adv-y\",\"vert-origin-x\",\"vert-origin-y\",\"width\",\"word-spacing\",\"wrap\",\"writing-mode\",\"xchannelselector\",\"ychannelselector\",\"x\",\"x1\",\"x2\",\"xmlns\",\"y\",\"y1\",\"y2\",\"z\",\"zoomandpan\"]),uh=xe([\"accent\",\"accentunder\",\"align\",\"bevelled\",\"close\",\"columnalign\",\"columnlines\",\"columnspacing\",\"columnspan\",\"denomalign\",\"depth\",\"dir\",\"display\",\"displaystyle\",\"encoding\",\"fence\",\"frame\",\"height\",\"href\",\"id\",\"largeop\",\"length\",\"linethickness\",\"lquote\",\"lspace\",\"mathbackground\",\"mathcolor\",\"mathsize\",\"mathvariant\",\"maxsize\",\"minsize\",\"movablelimits\",\"notation\",\"numalign\",\"open\",\"rowalign\",\"rowlines\",\"rowspacing\",\"rowspan\",\"rspace\",\"rquote\",\"scriptlevel\",\"scriptminsize\",\"scriptsizemultiplier\",\"selection\",\"separator\",\"separators\",\"stretchy\",\"subscriptshift\",\"supscriptshift\",\"symmetric\",\"voffset\",\"width\",\"xmlns\"]),uo=xe([\"xlink:href\",\"xml:id\",\"xlink:title\",\"xml:space\",\"xmlns:xlink\"]),Qb=ve(/{{[\\w\\W]*|^[\\w\\W]*}}/g),ty=ve(/<%[\\w\\W]*|^[\\w\\W]*%>/g),ey=ve(/\\${[\\w\\W]*/g),ry=ve(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),ny=ve(/^aria-[\\-\\w]+$/),hh=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),iy=ve(/^(?:\\w+script|data):/i),oy=ve(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),ay=ve(/^html$/i),sy=ve(/^[a-z][.\\w]*(-[.\\w]+)+$/i),gs=ve(/<[/\\w!]/g),dh=ve(/<[/\\w]/g),ly=ve(/<\\/no(script|embed|frames)/i),fh=ve(/\\/>/i),fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cy=xe(Gt({},[\"style\",\"script\",\"xmp\",\"iframe\",\"noembed\",\"noframes\",\"plaintext\",\"noscript\"])),uy=function(){return typeof window>\"u\"?null:window},hy=function(t,e){if(typeof t!=\"object\"||typeof t.createPolicy!=\"function\")return null;let r=null,i=\"data-tt-policy-suffix\";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let o=\"dompurify\"+(r?\"#\"+r:\"\");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn(\"TrustedTypes policy \"+o+\" could not be created.\"),null}},ph=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Yr=function(t,e,r,i){return Me(t,e)&&En(t[e])?Gt(i.base?$e(i.base):{},t[e],i.transform):r},bs=function(t,e,r){let i=Me(t,e)?t[e]:void 0;return i&&typeof i==\"object\"?$e(i):r()};function wh(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uy(),t=pt=>wh(pt);if(t.version=\"3.4.17\",t.removed=[],!n||!n.document||n.document.nodeType!==fe.document||!n.Element)return t.isSupported=!1,t;let e=n.document,r=e,i=r.currentScript;n.DocumentFragment;let o=n.HTMLTemplateElement,a=n.Node,s=n.Element,l=n.NodeFilter;n.NamedNodeMap===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let c=n.DOMParser,h=n.trustedTypes,u=s.prototype,f=Ke(u,\"cloneNode\"),d=Ke(u,\"remove\"),p=Ke(u,\"removeAttributeNode\"),m=Ke(u,\"nextSibling\"),g=Ke(u,\"childNodes\"),b=Ke(u,\"parentNode\"),T=Ke(u,\"shadowRoot\"),S=Ke(u,\"attributes\"),I=a&&a.prototype?Ke(a.prototype,\"nodeType\"):null,O=a&&a.prototype?Ke(a.prototype,\"nodeName\"):null,$=a&&a.prototype?Ke(a.prototype,\"ownerDocument\"):null,k=function(C){return I?I(C):C.nodeType},W=function(C){return O?O(C):C.nodeName},U=qb(u,\"namespaceURI\"),v=function(C){return U?U(C):C.namespaceURI};if(typeof o==\"function\"){let pt=e.createElement(\"template\");pt.content&&pt.content.ownerDocument&&(e=pt.content.ownerDocument)}let _,y=\"\",H,nt=!1,J=0,lt=function(){if(J>0)throw Cr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.')},ot=function(C){lt(),J++;try{return _.createHTML(C)}finally{J--}},et=function(C){lt(),J++;try{return _.createScriptURL(C)}finally{J--}},B=function(){return nt||(H=hy(h,i),nt=!0),H},z=e,st=z.implementation,dt=z.createNodeIterator,ft=z.createDocumentFragment,Ft=z.getElementsByTagName,Xt=r.importNode,Et=ph();t.isSupported=typeof mh==\"function\"&&typeof b==\"function\"&&st&&st.createHTMLDocument!==void 0;let _t=Qb,Kt=ty,Pt=ey,jt=ry,qt=ny,x=iy,it=oy,Q=sy,D=hh,R=null,G=Gt({},[...sh,...ds,...fs,...ps,...lh]),tt=null,ht=Gt({},[...ch,...ms,...uh,...uo]),V=Object.seal(Sn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,St=null,bt=Object.seal(Sn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),At=!0,zt=!0,Mt=!1,ue=!0,re=!1,he=!0,Te=!1,Zt=!1,We=null,Je=null,Se=!1,He=!1,Nr=!1,Rr=!1,Vr=!0,fr=!1,Qe=\"user-content-\",or=!0,Rn=!1,Ue=null,Pr={},pr=null,oi=Gt({},[\"annotation-xml\",\"audio\",\"colgroup\",\"desc\",\"foreignobject\",\"head\",\"iframe\",\"math\",\"mi\",\"mn\",\"mo\",\"ms\",\"mtext\",\"noembed\",\"noframes\",\"noscript\",\"plaintext\",\"script\",\"selectedcontent\",\"style\",\"svg\",\"template\",\"thead\",\"title\",\"video\",\"xmp\"]),ai=null,si=Gt({},[\"audio\",\"video\",\"img\",\"source\",\"image\",\"track\"]),li=null,ci=Gt({},[\"alt\",\"class\",\"for\",\"id\",\"label\",\"name\",\"pattern\",\"placeholder\",\"role\",\"summary\",\"title\",\"value\",\"style\",\"xmlns\"]),ln=\"http://www.w3.org/1998/Math/MathML\",Ir=\"http://www.w3.org/2000/svg\",ze=\"http://www.w3.org/1999/xhtml\",Or=ze,Pn=!1,E=null,L=Gt({},[ln,Ir,ze],hs),N=xe([\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\"]),P=Gt({},N),M=xe([\"annotation-xml\"]),F=Gt({},M),K=Gt({},[\"title\",\"style\",\"font\",\"a\",\"script\"]),rt=null,q=[\"application/xhtml+xml\",\"text/html\"],Z=\"text/html\",j=null,mt=null,yt=e.createElement(\"form\"),kt=function(C){return C instanceof RegExp||C instanceof Function},xt=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===C)return;(!C||typeof C!=\"object\")&&(C={}),C=$e(C),rt=q.indexOf(C.PARSER_MEDIA_TYPE)===-1?Z:C.PARSER_MEDIA_TYPE,j=rt===\"application/xhtml+xml\"?hs:sn,R=Yr(C,\"ALLOWED_TAGS\",G,{transform:j}),tt=Yr(C,\"ALLOWED_ATTR\",ht,{transform:j}),E=Yr(C,\"ALLOWED_NAMESPACES\",L,{transform:hs}),li=Yr(C,\"ADD_URI_SAFE_ATTR\",ci,{transform:j,base:ci}),ai=Yr(C,\"ADD_DATA_URI_TAGS\",si,{transform:j,base:si}),pr=Yr(C,\"FORBID_CONTENTS\",oi,{transform:j}),gt=Yr(C,\"FORBID_TAGS\",$e({}),{transform:j}),St=Yr(C,\"FORBID_ATTR\",$e({}),{transform:j}),Pr=Me(C,\"USE_PROFILES\")?C.USE_PROFILES&&typeof C.USE_PROFILES==\"object\"?$e(C.USE_PROFILES):C.USE_PROFILES:!1,At=C.ALLOW_ARIA_ATTR!==!1,zt=C.ALLOW_DATA_ATTR!==!1,Mt=C.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=C.SAFE_FOR_TEMPLATES||!1,he=C.SAFE_FOR_XML!==!1,Te=C.WHOLE_DOCUMENT||!1,He=C.RETURN_DOM||!1,Nr=C.RETURN_DOM_FRAGMENT||!1,Rr=C.RETURN_TRUSTED_TYPE||!1,Se=C.FORCE_BODY||!1,Vr=C.SANITIZE_DOM!==!1,fr=C.SANITIZE_NAMED_PROPS||!1,or=C.KEEP_CONTENT!==!1,Rn=C.IN_PLACE||!1,D=Kb(C.ALLOWED_URI_REGEXP)?C.ALLOWED_URI_REGEXP:hh,Or=typeof C.NAMESPACE==\"string\"?C.NAMESPACE:ze,P=bs(C,\"MATHML_TEXT_INTEGRATION_POINTS\",()=>Gt({},N)),F=bs(C,\"HTML_INTEGRATION_POINTS\",()=>Gt({},M));let Y=bs(C,\"CUSTOM_ELEMENT_HANDLING\",()=>Sn(null));if(V=Sn(null),Me(Y,\"tagNameCheck\")&&kt(Y.tagNameCheck)&&(V.tagNameCheck=Y.tagNameCheck),Me(Y,\"attributeNameCheck\")&&kt(Y.attributeNameCheck)&&(V.attributeNameCheck=Y.attributeNameCheck),Me(Y,\"allowCustomizedBuiltInElements\")&&typeof Y.allowCustomizedBuiltInElements==\"boolean\"&&(V.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),ve(V),re&&(zt=!1),Nr&&(He=!0),Pr&&(R=Gt({},lh),tt=Sn(null),Pr.html===!0&&(Gt(R,sh),Gt(tt,ch)),Pr.svg===!0&&(Gt(R,ds),Gt(tt,ms),Gt(tt,uo)),Pr.svgFilters===!0&&(Gt(R,fs),Gt(tt,ms),Gt(tt,uo)),Pr.mathMl===!0&&(Gt(R,ps),Gt(tt,uh),Gt(tt,uo))),bt.tagCheck=null,bt.attributeCheck=null,Me(C,\"ADD_TAGS\")&&(typeof C.ADD_TAGS==\"function\"?bt.tagCheck=C.ADD_TAGS:En(C.ADD_TAGS)&&(R===G&&(R=$e(R)),Gt(R,C.ADD_TAGS,j))),Me(C,\"ADD_ATTR\")&&(typeof C.ADD_ATTR==\"function\"?bt.attributeCheck=C.ADD_ATTR:En(C.ADD_ATTR)&&(tt===ht&&(tt=$e(tt)),Gt(tt,C.ADD_ATTR,j))),Me(C,\"ADD_FORBID_CONTENTS\")&&En(C.ADD_FORBID_CONTENTS)&&(pr===oi&&(pr=$e(pr)),Gt(pr,C.ADD_FORBID_CONTENTS,j)),or&&(R[\"#text\"]=!0),Te&&Gt(R,[\"html\",\"head\",\"body\"]),R.table&&(Gt(R,[\"tbody\"]),delete gt.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!=\"function\")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!=\"function\")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');let ct=_;_=C.TRUSTED_TYPES_POLICY;try{y=ot(\"\")}catch(ut){throw _=ct,ut}}else C.TRUSTED_TYPES_POLICY===null?(_=void 0,y=\"\"):(_===void 0&&(_=B()),_&&typeof y==\"string\"&&(y=ot(\"\")));xe&&xe(C),mt=C},vt=Gt({},[...ds,...fs,...Zb]),Ot=Gt({},[...ps,...Jb]),Jt=function(C,Y,ct){return Y.namespaceURI===ze?C===\"svg\":Y.namespaceURI===ln?C===\"svg\"&&(ct===\"annotation-xml\"||P[ct]):!!vt[C]},pe=function(C,Y,ct){return Y.namespaceURI===ze?C===\"math\":Y.namespaceURI===Ir?C===\"math\"&&F[ct]:!!Ot[C]},ie=function(C,Y,ct){return Y.namespaceURI===Ir&&!F[ct]||Y.namespaceURI===ln&&!P[ct]?!1:!Ot[C]&&(K[C]||!vt[C])},Ee=function(C){let Y=v(C),ct=sn(W(C)),ut=b(C),Nt,Lt;return ut&&k(ut)===fe.element?(Nt={namespaceURI:v(ut)},Lt=sn(W(ut))):(Nt={namespaceURI:Or},Lt=\"template\"),E[Y]?Y===Ir?Jt(ct,Nt,Lt):Y===ln?pe(ct,Nt,Lt):Y===ze?ie(ct,Nt,Lt):!!(rt===\"application/xhtml+xml\"&&E[Y]):!1},Oe=function(C){ti(t.removed,{element:C});try{b(C).removeChild(C)}catch{if(d(C),!b(C))throw Cr(\"a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place\")}},Lr=function(C,Y,ct){try{p(C,Y)}catch{try{C.removeAttribute(ct)}catch{}}},tr=function(C){bo(C);let Y=g(C);Y&&Ar(Ub(Y),ut=>{try{d(ut)}catch{}});let ct=k(C)===fe.element?S(C):null;if(ct)for(let ut=ct.length-1;ut>=0;--ut){let Nt=ct[ut],Lt=Nt&&Nt.name;typeof Lt==\"string\"&&Lr(C,Nt,Lt)}},ar=function(C,Y,ct){if(!ct)try{ct=Y.getAttributeNode(C)}catch{ct=null}ti(t.removed,{attribute:ct||null,from:Y});try{ct?p(Y,ct):Y.removeAttribute(C)}catch{try{Y.removeAttribute(C)}catch{}}if(C===\"is\")if(He||Nr)try{Oe(Y)}catch{}else try{Y.setAttribute(C,\"\")}catch{}},Ye=function(C){let Y=S(C);if(Y)for(let ct=Y.length-1;ct>=0;--ct){let ut=Y[ct],Nt=ut&&ut.name;typeof Nt!=\"string\"||tt[j(Nt)]||Lr(C,ut,Nt)}},go=function(C,Y){let ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=[C];for(;ut.length>0;){let Nt=ut.pop();if(Y(Nt)===!1)continue;if(ct&&k(Nt)===fe.element){let Bt=T(Nt);_r(Bt)&&ut.push(Bt)}let Lt=g(Nt);if(Lt)for(let Bt=Lt.length-1;Bt>=0;--Bt)ut.push(Lt[Bt])}},bo=function(C){go(C,Y=>{k(Y)===fe.element&&Ye(Y)})},yo=function(C){let Y=[];return go(C,ct=>{Y.push(ct)},!0),Y},Yh=function(C,Y){let ct=cs();Ar(yo(C),ut=>{k(ut)===fe.element&&us(ct,ut)}),Ar(Y,ut=>{k(ut)===fe.element&&!ei(ct,ut)&&Ye(ut)})},ks=function(C,Y){let ct=!1;return Ar(t.removed,ut=>{ut.element&&(ct=ct||ut.element===C,bo(ut.element))}),Yh(C,Y),ct},Gh=8,jh=function(C,Y){let ct=Ue,ut=null,Nt=()=>(ut||(ut=cs(),Ar(Y,Lt=>{us(ut,Lt)})),ut);for(let Lt=0;;Lt++){let Bt=yo(C),me=[C],sr=!1;if(Ar(Bt,ke=>{k(ke)===fe.documentFragment?ti(me,ke):!sr&&!ei(ct,ke)&&(sr=ei(Nt(),ke))}),!sr)return;if(Lt>=Gh)throw Cr(\"the tree kept changing during in-place sanitization; refusing to return it\");Ar(me,(ke,Le)=>{Vh(ke,Le>0,C,Nt())})}},Vh=function(C,Y,ct,ut){let Nt=xo(C),Lt;for(;Lt=Nt.nextNode();)!ei(ut,Lt)||ei(Ue,Lt)||(Y&&er(Et.uponSanitizeShadowNode,Lt,null),vo(Lt,ct),To(Lt,ct),_r(Lt.content)&&On(Lt.content))},Xh=function(C){Ue&&us(Ue,C)},As=function(C,Y){return he?C===\"patchsrc\"?!0:C===\"for\"&&Y!==\"label\"&&Y!==\"output\":!1},qh=function(C){he&&go(C,Y=>{let ct=k(Y);if(ct===fe.processingInstruction||ct===fe.comment&&we(dh,Y.data)){try{d(Y)}catch{}return!1}if(ct===fe.element){let ut=Y,Nt=j(W(Y));try{ut.hasAttribute&&ut.hasAttribute(\"patchsrc\")&&ut.removeAttribute(\"patchsrc\"),ut.hasAttribute&&ut.hasAttribute(\"for\")&&As(\"for\",Nt)&&ut.removeAttribute(\"for\")}catch{}}return!0})},Cs=function(C){let Y=null,ct=null;if(Se)C=\"<remove></remove>\"+C;else{let Lt=nh(C,/^[\\r\\n\\t ]+/);ct=Lt&&Lt[0]}rt===\"application/xhtml+xml\"&&Or===ze&&(C='<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>'+C+\"</body></html>\");let ut=_?ot(C):C;if(Or===ze)try{Y=new c().parseFromString(ut,rt)}catch{}if(!Y||!Y.documentElement){Y=st.createDocument(Or,\"template\",null);try{Y.documentElement.innerHTML=Pn?y:ut}catch{}}let Nt=Y.body||Y.documentElement;return C&&ct&&Nt.insertBefore(e.createTextNode(ct),Nt.childNodes[0]||null),Or===ze?Ft.call(Y,Te?\"html\":\"body\")[0]:Te?Y.documentElement:Nt},xo=function(C){let Y=$?$(C):C.ownerDocument;return dt.call(Y||C,C,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ui=function(C){return C=ri(C,_t,\" \"),C=ri(C,Kt,\" \"),C=ri(C,Pt,\" \"),C},wo=function(C){var Y;Ns(C);let ct=(Y=C.querySelectorAll)===null||Y===void 0?void 0:Y.call(C,\"template\");ct&&Ar(ct,ut=>{_r(ut.content)&&wo(ut.content)})},Ns=function(C){C.normalize();let Y=$?$(C):C.ownerDocument,ct=dt.call(Y||C,C,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),ut=ct.nextNode();for(;ut;)ut.data=ui(ut.data),ut=ct.nextNode()},hi=function(C){let Y=O?O(C):null;return typeof Y!=\"string\"||j(Y)!==\"form\"?!1:typeof C.nodeName!=\"string\"||typeof C.textContent!=\"string\"||typeof C.removeChild!=\"function\"||C.attributes!==S(C)||typeof C.removeAttribute!=\"function\"||typeof C.removeAttributeNode!=\"function\"||typeof C.getAttributeNode!=\"function\"||typeof C.setAttribute!=\"function\"||typeof C.namespaceURI!=\"string\"||typeof C.insertBefore!=\"function\"||typeof C.hasChildNodes!=\"function\"||C.nodeType!==I(C)||C.childNodes!==g(C)},_r=function(C){if(!I||typeof C!=\"object\"||C===null)return!1;try{return I(C)===fe.documentFragment}catch{return!1}},In=function(C){if(!I||typeof C!=\"object\"||C===null)return!1;try{return typeof I(C)==\"number\"}catch{return!1}};function er(pt,C,Y){pt.length!==0&&Ar(pt,ct=>{ct.call(t,C,Y,mt)})}let Kh=function(C,Y){return!!(he&&C.hasChildNodes()&&!In(C.firstElementChild)&&we(gs,C.textContent)&&we(gs,C.innerHTML)||he&&cy[Y]&&k(C)===fe.element&&v(C)===ze&&(In(C.firstElementChild)||typeof C.textContent==\"string\"&&we(gs,C.textContent))||C.nodeType===fe.processingInstruction||he&&C.nodeType===fe.comment&&we(dh,C.data))},di=function(C,Y){if(C instanceof RegExp)return we(C,Y);if(C instanceof Function){for(var ct=arguments.length,ut=new Array(ct>2?ct-2:0),Nt=2;Nt<ct;Nt++)ut[Nt-2]=arguments[Nt];return!!C(Y,...ut)}return!1},Zh=function(C,Y,ct){if(!gt[Y]&&Is(Y)&&di(V.tagNameCheck,Y))return!1;if(or&&!pr[Y]&&!pr[sn(Y)]){let ut=b(C),Nt=g(C);if(Nt&&ut){let Lt=Nt.length;for(let Bt=Lt-1;Bt>=0;--Bt){let me=C===ct?f(Nt[Bt],!0):Nt[Bt];ut.insertBefore(me,m(C))}}}return Oe(C),!0},Rs=function(C,Y,ct,ut){return C.length===0?Y:Y===ct||Y===ut?$e(Y):Y},cn=function(C,Y){return C===Y||b(C)!==null?!1:(Rn&&bo(C),!0)},vo=function(C,Y){if(Xh(C),er(Et.beforeSanitizeElements,C,null),cn(C,Y))return!0;if(hi(C))return Oe(C),!0;let ct=j(W(C));if(R=Rs(Et.uponSanitizeElement,R,G,We),er(Et.uponSanitizeElement,C,{tagName:ct,allowedTags:R}),cn(C,Y))return!0;if(Kh(C,ct))return Oe(C),!0;if(gt[ct]||!(bt.tagCheck instanceof Function&&bt.tagCheck(ct))&&!R[ct]){let ut=Zh(C,ct,Y);return ut===!1&&(er(Et.afterSanitizeElements,C,null),cn(C,Y))?!0:ut}if(k(C)===fe.element&&!Ee(C)||(ct===\"noscript\"||ct===\"noembed\"||ct===\"noframes\")&&we(ly,C.innerHTML))return Oe(C),!0;if(re&&C.nodeType===fe.text){let ut=ui(C.textContent);C.textContent!==ut&&(ti(t.removed,{element:C.cloneNode()}),C.textContent=ut)}return er(Et.afterSanitizeElements,C,null),cn(C,Y)},Ps=function(C,Y,ct){if(St[Y]||As(Y,C)||Vr&&(Y===\"id\"||Y===\"name\")&&(ct in e||ct in yt))return!1;let ut=tt[Y]||bt.attributeCheck instanceof Function&&bt.attributeCheck(Y,C);return zt&&we(jt,Y)||At&&we(qt,Y)?!0:ut?li[Y]||we(D,ri(ct,it,\"\"))||(Y===\"src\"||Y===\"xlink:href\"||Y===\"href\")&&C!==\"script\"&&ih(ct,\"data:\")===0&&ai[C]||Mt&&!we(x,ri(ct,it,\"\"))?!0:!ct:Is(C)&&di(V.tagNameCheck,C)&&di(V.attributeNameCheck,Y,C)||Y===\"is\"&&V.allowCustomizedBuiltInElements&&di(V.tagNameCheck,ct)},Jh=Gt({},[\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-format\",\"font-face-name\",\"font-face-src\",\"font-face-uri\",\"missing-glyph\"]),Is=function(C){return!Jh[sn(C)]&&we(Q,C)},Qh=function(C,Y,ct,ut){if(_&&typeof h==\"object\"&&typeof h.getAttributeType==\"function\"&&!ct)switch(h.getAttributeType(C,Y)){case\"TrustedHTML\":return ot(ut);case\"TrustedScriptURL\":return et(ut)}return ut},td=function(C,Y,ct,ut){try{return ct?C.setAttributeNS(ct,Y,ut):C.setAttribute(Y,ut),hi(C)?(Oe(C),!1):!0}catch{return ar(Y,C),!1}},Os=function(C,Y){return he&&we(/((--!?|])>)|<\\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Y)?!0:sn(C)===\"attributename\"&&nh(Y,\"href\")!==null},To=function(C,Y){if(er(Et.beforeSanitizeAttributes,C,null),cn(C,Y))return;let ct=C.attributes;if(!ct||hi(C))return;tt=Rs(Et.uponSanitizeAttribute,tt,ht,Je);let ut={attrName:\"\",attrValue:\"\",keepAttr:!0,allowedAttributes:tt,forceKeepAttr:void 0},Nt=ct.length,Lt=j(C.nodeName);for(;Nt--;){let Bt=ct[Nt],me=Bt.name,sr=Bt.namespaceURI,ke=Bt.value,Le=j(me),un=ke,_e=me===\"value\"?un:Yb(un),Ls=!1;if(ut.attrName=Le,ut.attrValue=_e,ut.keepAttr=!0,ut.forceKeepAttr=void 0,er(Et.uponSanitizeAttribute,C,ut),_e=ut.attrValue,fr&&(Le===\"id\"||Le===\"name\")&&ih(_e,Qe)!==0&&(ar(me,C,Bt),_e=Qe+_e,Ls=!0),Os(me,_e)){ar(me,C,Bt);continue}if(!ut.forceKeepAttr){if(!ut.keepAttr){ar(me,C,Bt);continue}if(!ue&&we(fh,_e)){ar(me,C,Bt);continue}if(re&&(_e=ui(_e)),!Ps(Lt,Le,_e)){ar(me,C,Bt);continue}_e=Qh(Lt,Le,sr,_e),_e!==un&&td(C,me,sr,_e)&&Ls&&rh(t.removed)}}er(Et.afterSanitizeAttributes,C,null),cn(C,Y)},On=function(C){let Y=null,ct=xo(C);for(er(Et.beforeSanitizeShadowDOM,C,null);Y=ct.nextNode();)if(er(Et.uponSanitizeShadowNode,Y,null),vo(Y,C),To(Y,C),_r(Y.content)&&On(Y.content),k(Y)===fe.element){let ut=T(Y);_r(ut)&&(So(ut),On(ut))}re&&Ns(C),er(Et.afterSanitizeShadowDOM,C,null)},So=function(C){let Y=[{node:C,shadow:null}];for(;Y.length>0;){let ct=Y.pop();if(ct.shadow){On(ct.shadow);continue}let ut=ct.node,Nt=k(ut)===fe.element,Lt=g(ut);if(Lt)for(let Bt=Lt.length-1;Bt>=0;--Bt)Y.push({node:Lt[Bt],shadow:null});if(Nt){let Bt=O?O(ut):null;if(typeof Bt==\"string\"&&j(Bt)===\"template\"){let me=ut.content;_r(me)&&Y.push({node:me,shadow:null})}}if(Nt){let Bt=T(ut);_r(Bt)&&Y.push({node:null,shadow:Bt},{node:Bt,shadow:null})}}};return t.sanitize=function(pt){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,ct=null,ut=null,Nt=null;if(Pn=!pt,Pn&&(pt=\"<!-->\"),typeof pt!=\"string\"&&!In(pt)&&(pt=Xb(pt),typeof pt!=\"string\"))throw Cr(\"dirty is not a string, aborting\");if(!t.isSupported)return pt;Zt?(R=We,tt=Je):xt(C),(Et.uponSanitizeElement.length>0||Et.uponSanitizeAttribute.length>0)&&(R=$e(R)),Et.uponSanitizeAttribute.length>0&&(tt=$e(tt)),t.removed=[];let Lt=Rn&&typeof pt!=\"string\"&&In(pt),Bt=[],me=Ue;if(Lt){qh(pt);let Le=W(pt);if(typeof Le==\"string\"){let un=j(Le);if(!R[un]||gt[un])throw tr(pt),Cr(\"root node is forbidden and cannot be sanitized in-place\")}if(hi(pt))throw tr(pt),Cr(\"root node is clobbered and cannot be sanitized in-place\");Bt=yo(pt),Ue=cs()}else if(In(pt))Y=Cs(\"<!---->\"),ct=Y.ownerDocument.importNode(pt,!0),ct.nodeType===fe.element&&ct.nodeName===\"BODY\"||ct.nodeName===\"HTML\"?Y=ct:Y.appendChild(ct),So(Y);else{if(!He&&!re&&!Te&&pt.indexOf(\"<\")===-1)return _&&Rr?ot(pt):pt;if(Y=Cs(pt),!Y)return He?null:Rr?y:\"\"}Y&&Se&&Oe(Y.firstChild);let sr=Lt?pt:Y;try{Lt&&So(pt);let Le=xo(sr);for(;ut=Le.nextNode();)vo(ut,sr),To(ut,sr),_r(ut.content)&&On(ut.content);Lt&&jh(pt,Bt)}catch(Le){throw Lt&&(tr(pt),ks(pt,Bt)),Le}finally{Ue=me}if(Lt){if(ks(pt,Bt))throw Cr(\"a node selected for removal could not be safely returned; refusing to sanitize in place\");return re&&wo(pt),pt}if(He){if(re&&wo(Y),Nr)for(Nt=ft.call(Y.ownerDocument);Y.firstChild;)Nt.appendChild(Y.firstChild);else Nt=Y;return(tt.shadowroot||tt.shadowrootmode)&&(Nt=Xt.call(r,Nt,!0)),Nt}let ke=Te?Y.outerHTML:Y.innerHTML;return Te&&R[\"!doctype\"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&we(ay,Y.ownerDocument.doctype.name)&&(ke=\"<!DOCTYPE \"+Y.ownerDocument.doctype.name+`>\n`+ke),re&&(ke=ui(ke)),_&&Rr?ot(ke):ke},t.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xt(pt),Zt=!0,We=R,Je=tt},t.clearConfig=function(){mt=null,Zt=!1,We=null,Je=null,_=H,y=\"\"},t.isValidAttribute=function(pt,C,Y){mt||xt({});let ct=j(pt),ut=j(C);return typeof Y==\"string\"&&(Os(C,Y)||!ue&&we(fh,Y))?!1:Ps(ct,ut,Y)},t.addHook=function(pt,C){typeof C==\"function\"&&Me(Et,pt)&&ti(Et[pt],C)},t.removeHook=function(pt,C){if(Me(Et,pt)){if(C!==void 0){let Y=Hb(Et[pt],C);return Y===-1?void 0:zb(Et[pt],Y,1)[0]}return rh(Et[pt])}},t.removeHooks=function(pt){Me(Et,pt)&&(Et[pt]=[])},t.removeAllHooks=function(){Et=ph()},t}var vh=wh();var Th=new WeakMap,Sh=new WeakMap,dy=n=>{let t=Th.get(n);if(t)return t;let e=vh(n);return e.isSupported?(Th.set(n,e),e):null},fy=n=>{let t=Sh.get(n);if(t)return t;let e=n.trustedTypes;if(!e?.createPolicy)return null;try{let r=e.createPolicy(\"file-viewer-document-sanitizer\",{createHTML:i=>i,createScriptURL:i=>i});return Sh.set(n,r),r}catch{return null}};function Eh(n,t,e){let r=dy(t);if(!r)return null;let i=fy(t);try{return r.sanitize(n,{...e,...i?{TRUSTED_TYPES_POLICY:i}:{}})}catch{return null}}async function py(n){if(n instanceof ArrayBuffer)return n;if(ArrayBuffer.isView(n)){let t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),t.buffer}if(typeof Blob<\"u\"&&n instanceof Blob)return await n.arrayBuffer();if(typeof n==\"string\"){let t=await fetch(n);if(!t.ok)throw new Error(`Failed to fetch document: ${t.status}`);return await t.arrayBuffer()}throw new TypeError(\"Unsupported input type\")}function kh(n,t){let e=Eh(n,t,{RETURN_DOM_FRAGMENT:!0,USE_PROFILES:{html:!0},FORBID_TAGS:[\"base\",\"embed\",\"form\",\"iframe\",\"object\",\"script\",\"style\",\"template\"],FORBID_ATTR:[\"action\",\"formaction\",\"srcdoc\"]});if(e?.nodeType===11)return e;let r=t.document.createDocumentFragment();return r.append(t.document.createTextNode(n)),r}function ws(n,t){if(!n)throw new Error(\"A container element is required\");let e=n.ownerDocument.defaultView;if(!e)throw new Error(\"The container must belong to a browser document\");let r=n.ownerDocument.createElement(\"style\");r.dataset.msdoc=\"\",r.textContent=t.css;let i=n.ownerDocument.createElement(\"div\");return i.className=\"msdoc-root\",i.append(kh(t.html,e)),n.replaceChildren(r,i),n}async function Ah(n,t={}){let e=await py(n);if(t.workerClient)return t.workerClient.parseToHtml(e,{parseOptions:t.parseOptions||{},renderOptions:t.renderOptions||{}});let r=Bu(e,t.parseOptions||{});return Qu(r,t.renderOptions||{})}function vs(n,t={}){let e=null;return{async load(r,i={}){let o=await Ah(r,{workerClient:i.workerClient||t.workerClient,parseOptions:{...t.parseOptions||{},...i.parseOptions||{}},renderOptions:{...t.renderOptions||{},...i.renderOptions||{}}});return ws(n,o),e=o,o},mount(r){return e=r,ws(n,r)},clear(){n.replaceChildren(),e=null},destroy(){this.clear()},get value(){return e}}}var mo=Ms(Bh());function $h(n){let t=mo.read(n,{type:\"array\"}),e=u=>{let f=mo.find(t,`/${u}`);if(!f||f.type!==2)throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 Word \\u6587\\u6863\");let d=Uint8Array.from(f.content);return new DataView(d.buffer)},r=e(\"WordDocument\");if(r.getUint16(0,!0)!==42476||r.getUint16(2,!0)<193)throw new Error(\"\\u6B64\\u65E7\\u7248 Word \\u683C\\u5F0F\\u6682\\u4E0D\\u652F\\u6301\");if(r.getUint16(10,!0)&33024)throw new Error(\"\\u8BF7\\u5148\\u5728 Word \\u4E2D\\u89E3\\u9664\\u6587\\u4EF6\\u5BC6\\u7801\");let i=34+r.getUint16(32,!0)*2;if(i+=2+r.getUint16(i,!0)*4,r.getUint16(i,!0)<7)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");i+=50;let o=e(r.getUint16(10,!0)&512?\"1Table\":\"0Table\"),a=r.getUint32(i,!0),s=r.getUint32(i+4,!0),l=(s-4)/16;if(!Number.isInteger(l)||l<1||l>1e3||a+s>o.byteLength)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");let c={width:12240,height:15840,left:1800,right:1800,top:1440,bottom:1440,sections:l},h=o.getUint32(a+(l+1)*4+2,!0);if(h!==4294967295){let u=h+2+r.getUint16(h,!0);if(u>r.byteLength)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");let f={45087:\"width\",45088:\"height\",45089:\"left\",45090:\"right\",36899:\"top\",36900:\"bottom\"};for(let d=h+2;d<u;){let p=r.getUint16(d,!0);d+=2;let m=p>>>13,g=m===6?1+r.getUint8(d):[1,1,2,4,2,2,0,3][m];if(d+g>u)throw new Error(\"Word \\u5206\\u8282\\u5C5E\\u6027\\u65E0\\u6548\");let b=f[p];b&&(c[b]=Math.abs(p===36899||p===36900?r.getInt16(d,!0):r.getUint16(d,!0))),d+=g}}if(c.width<144||c.height<144||c.width>31680||c.height>31680||c.left+c.right>=c.width||c.top+c.bottom>=c.height)throw new Error(\"Word \\u9875\\u9762\\u5C3A\\u5BF8\\u65E0\\u6548\");return c}var Wh=n=>zn(n);function Sy(n){if(!n.length||n.length>50*1024*1024)throw new Error(\"Word \\u6587\\u6863\\u5FC5\\u987B\\u5C0F\\u4E8E 50 MiB\");if(n[0]===80&&n[1]===75){let t=0,e=0,r=Gs(n,{filter(i){if(++t>2e3||i.originalSize>20*1024*1024||(e+=i.originalSize)>100*1024*1024)throw new Error(\"Word \\u6587\\u6863\\u5C55\\u5F00\\u540E\\u8D85\\u8FC7\\u9884\\u89C8\\u9650\\u5236\");if(i.name.startsWith(\"/\")||i.name.includes(\"\\\\\")||i.name.split(\"/\").includes(\"..\"))throw new Error(\"Word \\u6587\\u6863\\u8DEF\\u5F84\\u65E0\\u6548\");return/\\.(xml|rels)$/i.test(i.name)}});if(!r[\"word/document.xml\"])throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 DOCX \\u6587\\u4EF6\");for(let i of Object.values(r))if(/<!DOCTYPE|<!ENTITY/i.test(new TextDecoder().decode(i)))throw new Error(\"Word \\u6587\\u6863\\u5305\\u542B\\u4E0D\\u652F\\u6301\\u7684 XML \\u58F0\\u660E\");return\"docx\"}if([208,207,17,224,161,177,26,225].every((t,e)=>n[e]===t))return\"doc\";throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 DOC/DOCX \\u6587\\u4EF6\")}async function Hh(n,t){if(Sy(n)===\"docx\"){await ec(n,t,t,{useWorker:!1,awaitLayout:!0,strictWordCompatibility:!0,maxDynamicPaginationPasses:30,ignoreLastRenderedPageBreak:!1,breakPages:!0,ignoreWidth:!1,ignoreHeight:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,renderAltChunks:!1,externalResourcePolicy:\"block\",externalLinkPolicy:\"block\",useBase64URL:!0,renderPageBatchSize:4,renderYieldEveryMs:12});let a=[...t.querySelectorAll(\"section.docx\")];if(!a.length||a.length>1e3)throw zn(t),new Error(\"Word \\u9875\\u6570\\u8D85\\u51FA\\u9884\\u89C8\\u9650\\u5236\");return{pages:a,note:\"\\u6309 DOCX \\u539F\\u59CB\\u9875\\u9762\\u548C\\u6837\\u5F0F\\u6E32\\u67D3\\u3002\\u7F3A\\u5C11\\u5B57\\u4F53\\u3001\\u590D\\u6742\\u6D6E\\u52A8\\u5BF9\\u8C61\\u6216\\u517C\\u5BB9\\u6A21\\u5F0F\\u53EF\\u80FD\\u5BFC\\u81F4\\u4E0E Word \\u7684\\u5206\\u9875\\u5B58\\u5728\\u5DEE\\u5F02\\u3002\",dispose:()=>zn(t)}}let r=$h(n),i=vs(t,{parseOptions:{maxPictureBytes:5*1024*1024},renderOptions:{externalLinkPolicy:\"block\",externalResourcePolicy:\"block\"}});await i.load(n);let o=t.querySelector(\".msdoc-root\");return o.style.cssText=`width:${r.width/15}px;min-height:${r.height/15}px;padding:${r.top/15}px ${r.right/15}px ${r.bottom/15}px ${r.left/15}px;max-width:none`,o.classList.add(\"word-legacy-page\"),{pages:[o],note:\"\\u65E7\\u7248 DOC \\u6309\\u4E8C\\u8FDB\\u5236\\u5B57\\u4F53\\u3001\\u6BB5\\u843D\\u3001\\u8868\\u683C\\u548C\\u5185\\u5D4C\\u56FE\\u7247\\u6837\\u5F0F\\u6E32\\u67D3\\uFF0C\\u91C7\\u7528\\u9996\\u8282\\u7EB8\\u5F20\\u53CA\\u9875\\u8FB9\\u8DDD\\u3002\\u5F53\\u524D\\u5F15\\u64CE\\u4E0D\\u8FD8\\u539F\\u5B8C\\u6574\\u7684\\u5206\\u9875\\u3001\\u5206\\u8282\\u548C\\u9875\\u7709\\u9875\\u811A\\uFF1B\\u590D\\u6742\\u6587\\u4EF6\\u5EFA\\u8BAE\\u53E6\\u5B58\\u4E3A DOCX \\u540E\\u67E5\\u770B\\u3002\",dispose:()=>i.destroy()}}var Uh=`Word Preview for Tano \\u2014 MIT\n\n\n@file-viewer/doc@3.3.3\nMIT License\n\nCopyright (c) 2026 msdoc-viewer contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@file-viewer/docx@0.3.39\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) 2016-2023 Volodymyr Baydalka\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\nadler-32@1.3.1\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2014-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ncfb@1.2.2\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2013-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ncore-util-is@1.0.3\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\n\ncrc-32@1.2.2\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2014-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ndompurify@3.4.17\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\nfflate@0.8.3\nMIT License\n\nCopyright (c) 2026 Arjun Barrett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nimmediate@3.0.6\nCopyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\ninherits@2.0.4\nThe ISC License\n\nCopyright (c) Isaac Z. Schlueter\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n\n\nisarray@1.0.0\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\njszip@3.10.2\nJSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3\nlicense.\n\nThe MIT License\n===============\n\nCopyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, Ant\\xF3nio Afonso\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nGPL version 3\n=============\n\n GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n\npako@1.0.11\n(The MIT License)\n\nCopyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nlie@3.3.0\n#Copyright (c) 2014-2018 Calvin Metcalf, Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n**THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**\n\n\nprocess-nextick-args@2.0.1\n# Copyright (c) 2015 Calvin Metcalf\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n**THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.**\n\n\nreadable-stream@2.3.8\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\nsafe-buffer@5.1.2\nThe MIT License (MIT)\n\nCopyright (c) Feross Aboukhadijeh\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nsetimmediate@1.0.5\nCopyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nstring_decoder@1.1.1\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\n\nutil-deprecate@1.0.2\n(The MIT License)\n\nCopyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n`;function zh(n){let t=document.getElementById(\"app\");t.innerHTML='<p id=\"status\" role=\"status\">\\u8BF7\\u9009\\u62E9 DOC/DOCX \\u6587\\u4EF6</p><main tabindex=\"0\" aria-label=\"Word \\u6587\\u6863\\u9884\\u89C8\"><div id=\"paper\"></div></main><dialog><button id=\"close\">\\u5173\\u95ED</button><p id=\"note\"></p><details><summary>\\u5F00\\u6E90\\u8BB8\\u53EF</summary><pre></pre></details></dialog>';let e=Fs(t,\"word\"),r=t.querySelector(\"#status\"),i=t.querySelector(\"#paper\"),o=t.querySelector(\"main\"),a=t.querySelector(\"dialog\");a.querySelector(\"pre\").textContent=Uh,t.querySelector(\"#close\").onclick=()=>a.close();let s,l=0,c=1,h=!0,u=0,f=0,d=\"Word \\u6587\\u6863\\u9884\\u89C8\",p,m,g=()=>n.postMessage({type:\"header\",title:d,token:f,page:s?l+1:0,count:s?.pages.length??0,note:s?.note??\"\"}),b=v=>{r.textContent=v,r.hidden=!v};function T(){s?s.dispose():m&&Wh(m),s=void 0,m?.remove(),m=void 0,i.replaceChildren(),i.style.zoom=\"1\",o.scrollTop=0}function S(){if(!s)return;let v=Math.max(...s.pages.map(_=>_.offsetWidth));h&&(c=Math.min(1.5,Math.max(.05,(o.clientWidth-48)/(v+48)))),i.style.zoom=String(c)}function I(v){s&&(l=Math.max(0,Math.min(s.pages.length-1,v)),o.scrollTop+=s.pages[l].getBoundingClientRect().top-o.getBoundingClientRect().top-24,g())}async function O(v,_){let y=++u;T(),d=_,l=0,h=!0,e.show(),b(`\\u6B63\\u5728\\u6E32\\u67D3 ${_}\\u2026`),g();let H=document.createElement(\"div\");m=H,i.append(H),H.style.visibility=\"hidden\";try{if(await Ds(),y!==u)return;let nt=await Hh(v,H);if(y!==u){nt.dispose(),H.remove();return}s=nt,H.style.visibility=\"\",S(),a.querySelector(\"#note\").textContent=nt.note,e.hide(),b(\"\"),g()}catch(nt){y===u&&(T(),e.hide(),b(String(nt)),g())}}function $(v){(v===\"previous\"||v===\"next\")&&I(l+(v===\"next\"?1:-1)),v===\"fit\"&&(h=!0,S()),(v===\"minus\"||v===\"plus\")&&(h=!1,c=Math.max(.1,Math.min(4,c+(v===\"plus\"?.1:-.1))),S()),v===\"license\"&&!a.open&&a.showModal()}o.onkeydown=v=>{v.target!==o||v.altKey||v.ctrlKey||v.metaKey||((v.key===\"ArrowRight\"||v.key===\"ArrowLeft\")&&(v.preventDefault(),I(l+(v.key===\"ArrowRight\"?1:-1))),(v.key===\"Home\"||v.key===\"End\")&&(v.preventDefault(),I(v.key===\"Home\"?0:(s?.pages.length??1)-1)))};let k=0;o.onscroll=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{if(!s)return;let v=o.getBoundingClientRect().top,_=0,y=-1/0;s.pages.forEach((H,nt)=>{let J=H.getBoundingClientRect(),lt=Math.min(J.bottom,v+o.clientHeight)-Math.max(J.top,v);lt>y&&(y=lt,_=nt)}),l!==_&&(l=_,g())})};let W=new ResizeObserver(S);W.observe(o);let U=n.onState(async v=>{if(!v||typeof v!=\"object\"||Array.isArray(v))return;if(typeof v.action==\"string\"&&v.chunk===void 0){$(v.action);return}if(typeof v.token==\"number\"&&(f=v.token),v.loading){p=void 0,++u,T(),e.show(),b(\"\\u6B63\\u5728\\u8BFB\\u53D6\\u6587\\u4EF6\\u2026\");return}if(v.idle||typeof v.error==\"string\"){p=void 0,++u,T(),d=\"Word \\u6587\\u6863\\u9884\\u89C8\",e.hide(),b(typeof v.error==\"string\"?v.error:\"\\u8BF7\\u9009\\u62E9 DOC/DOCX \\u6587\\u4EF6\"),g();return}if(typeof v.chunk!=\"string\"||typeof v.token!=\"number\"||typeof v.total!=\"number\"||!Number.isSafeInteger(v.total)||v.total>50*1024*1024||v.total<0)return;v.offset===0&&(p={token:v.token,bytes:new Uint8Array(v.total),offset:0},++u,T(),e.show(),d=String(v.path),g());let _=p;if(!(!_||_.token!==v.token||v.offset!==_.offset))try{let y=Uint8Array.from(atob(v.chunk),H=>H.charCodeAt(0));if(!y.length||_.offset+y.length>_.bytes.length)throw new Error(\"\\u9644\\u4EF6\\u5206\\u5757\\u65E0\\u6548\");_.bytes.set(y,_.offset),_.offset+=y.length,b(`\\u8BFB\\u53D6\\u6587\\u4EF6 ${Math.round(_.offset/_.bytes.length*100)}%`),v.imported&&await n.postMessage({type:\"received\",token:_.token,offset:_.offset}),_.offset===_.bytes.length?(p=void 0,await O(_.bytes,String(v.path))):v.imported||(await new Promise(H=>setTimeout(H,25)),p===_&&await n.postMessage({offset:_.offset,token:_.token}))}catch(y){p===_&&(p=void 0,e.hide(),b(String(y)))}});addEventListener(\"pagehide\",()=>{++u,p=void 0,T(),W.disconnect(),U(),cancelAnimationFrame(k)},{once:!0})}return sd(ky);})();\n/*! Bundled license information:\n\njszip/dist/jszip.min.js:\n (*!\n \n JSZip v3.10.2 - A JavaScript class for generating and reading zip files\n <http://stuartk.com/jszip>\n \n (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>\n Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n \n JSZip uses the library pako released under the MIT license :\n https://github.com/nodeca/pako/blob/main/LICENSE\n *)\n\ncfb/cfb.js:\n (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)\n\n@file-viewer/docx/dist/docx-preview.mjs:\n (*!\n * @license @file-viewer/docx, derived from docx-preview\n * https://github.com/VolodymyrBaydalka/docxjs\n * Copyright Volodymyr Baydalka\n * Released under the Apache License 2.0. See LICENSE.\n * Bundled dependency notices: THIRD_PARTY_NOTICES.txt.\n *)\n (*! @license Adobe Symbol Encoding to Unicode\n * Copyright (c) 1991-2011 Unicode, Inc. All Rights reserved.\n *\n * This file is provided as-is by Unicode, Inc. (The Unicode Consortium). No\n * claims are made as to fitness for any particular purpose. No warranties of\n * any kind are expressed or implied. The recipient agrees to determine\n * applicability of information provided. If this file has been provided on\n * magnetic media by Unicode, Inc., the sole remedy for any claim will be\n * exchange of defective media within 90 days of receipt.\n *\n * Unicode, Inc. hereby grants the right to freely use the information\n * supplied in this file in the creation of products supporting the\n * Unicode Standard, and to make copies of this file in any form for\n * internal or external distribution as long as this notice remains\n * attached.\n *\n * Source: https://www.unicode.org/Public/MAPPINGS/VENDORS/ADOBE/symbol.txt\n *)\n\ndompurify/dist/purify.es.mjs:\n (*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE *)\n (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)\n*/\n\nawait TanoPluginView.default(tanoView);"}}}
1
+ {"manifest":{"apiVersion":1,"commands":[{"id":"open","label":"Word:打开预览"}],"description":"离线渲染 DOCX 页面、分节、页眉页脚、表格和图片,以及旧版 DOC 的文字与表格样式,无需安装 Word。","fileHandlers":[{"command":"open","extensions":[".doc",".docx"],"mode":"preview","view":"document"}],"id":"word-preview","manifestVersion":2,"name":"Word 文档预览","nativeCommands":[],"networkOrigins":[],"objectTypes":[],"permissions":["attachments.read","ui"],"relationTypes":[],"version":"1.0.0","views":[{"id":"document","label":"Word 文档预览","layout":"fill","location":"tab"}]},"packageVersion":1,"source":"\"use strict\";\nvar TanoPlugin = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n // examples/plugins/word-preview/main.ts\n var main_exports = {};\n __export(main_exports, {\n default: () => activate\n });\n async function activate(tano) {\n let generation = 0;\n let current;\n let imported;\n let acknowledgment;\n const header = (title = \"Word \\u6587\\u6863\\u9884\\u89C8\", page = 0, count = 0, detail = \"\") => tano.views.setHeader(\"document\", {\n ...count && detail ? { previewInfo: { label: \"\\u53EA\\u8BFB\\u9884\\u89C8\", detail: detail.slice(0, 2e3) } } : {},\n title,\n status: count ? `${page} / ${count}` : \"\",\n statusAfter: \"previous\",\n actions: [\n { id: \"open\", label: \"\\u6253\\u5F00 DOC/DOCX\", icon: \"open\", accept: \".doc,.docx\", group: \"\\u6587\\u4EF6\" },\n { id: \"previous\", label: \"\\u4E0A\\u4E00\\u9875\", icon: \"previous\", disabled: page <= 1 },\n { id: \"next\", label: \"\\u4E0B\\u4E00\\u9875\", icon: \"next\", disabled: !count || page >= count },\n { id: \"minus\", label: \"\\u7F29\\u5C0F\", icon: \"minus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"fit\", label: \"\\u9002\\u5E94\\u5BBD\\u5EA6\", icon: \"fit\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"plus\", label: \"\\u653E\\u5927\", icon: \"plus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"license\", label: \"\\u9884\\u89C8\\u8BF4\\u660E\\u4E0E\\u8BB8\\u53EF\", icon: \"info\", group: \"\\u8BF4\\u660E\" }\n ]\n });\n await header();\n await tano.views.renderCustom(\"document\", { idle: true });\n tano.views.onMessage(\"document\", async (message) => {\n if (!message || typeof message !== \"object\" || Array.isArray(message)) return;\n if (message.type === \"header\") {\n if (message.token !== generation) return;\n await header(String(message.title).slice(0, 200), Number(message.page), Number(message.count), typeof message.note === \"string\" ? message.note : \"\");\n return;\n }\n if (message.type === \"received\") {\n if (acknowledgment?.token === message.token && acknowledgment.offset === message.offset) acknowledgment.resolve();\n return;\n }\n if (message.type === \"header-action\") {\n await tano.views.renderCustom(\"document\", { action: message.action, nonce: Date.now() });\n return;\n }\n if (message.type === \"header-file-start\" && message.action === \"open\" && typeof message.transferId === \"string\") {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n await header(String(message.name).slice(0, 200));\n await tano.views.renderCustom(\"document\", { loading: true, token: imported.token });\n return;\n }\n if (message.type === \"header-file-error\" && imported?.id === message.transferId) {\n await tano.views.renderCustom(\"document\", { error: String(message.error), token: imported.token });\n imported = void 0;\n return;\n }\n if (message.type === \"header-file\") {\n if (message.action !== \"open\" || typeof message.chunk !== \"string\" || typeof message.transferId !== \"string\" || typeof message.offset !== \"number\") return;\n if (message.offset === 0 && imported?.id !== message.transferId) {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n }\n const active2 = imported;\n if (!active2 || active2.id !== message.transferId || active2.offset !== message.offset) return;\n const length = atob(message.chunk).length;\n await new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n acknowledgment = void 0;\n reject(new Error(\"\\u6587\\u4EF6\\u4F20\\u8F93\\u8D85\\u65F6\"));\n }, 1e4);\n acknowledgment = { token: active2.token, offset: active2.offset + length, resolve: () => {\n clearTimeout(timer);\n acknowledgment = void 0;\n resolve();\n } };\n void tano.views.renderCustom(\"document\", { ...message, path: message.name, token: active2.token, imported: true }).catch((error) => {\n clearTimeout(timer);\n acknowledgment = void 0;\n reject(error);\n });\n });\n active2.offset += length;\n return;\n }\n if (!current || message.token !== current.token) return;\n const active = current;\n try {\n const chunk = await tano.attachments.read(active.fileId, Number(message.offset), active.revision);\n if (current === active) await tano.views.renderCustom(\"document\", { ...chunk, token: active.token });\n } catch (error) {\n if (current === active) await tano.views.renderCustom(\"document\", { error: String(error), token: active.token });\n }\n });\n await tano.commands.register(\"open\", async (context) => {\n const token = ++generation;\n current = void 0;\n imported = void 0;\n await header();\n await tano.views.renderCustom(\"document\", context?.fileId ? { loading: true, token } : { idle: true, token });\n if (!context?.viewAlreadyOpen) await tano.views.open(\"document\");\n if (!context?.fileId) return;\n try {\n const chunk = await tano.attachments.read(context.fileId);\n if (token !== generation) return;\n if (!/\\.docx?$/i.test(chunk.path)) throw new Error(\"\\u8BF7\\u9009\\u62E9 DOC \\u6216 DOCX \\u6587\\u4EF6\");\n current = { fileId: context.fileId, revision: chunk.revision, token };\n await tano.views.renderCustom(\"document\", { ...chunk, token });\n } catch (error) {\n if (token === generation) await tano.views.renderCustom(\"document\", { error: String(error), token });\n }\n });\n }\n return __toCommonJS(main_exports);\n})();\n\nawait TanoPlugin.default(tano);","ui":{"document":{"css":"#app{position:relative}.preview-loading{position:absolute;inset:0;z-index:2;overflow:hidden;box-sizing:border-box;padding:24px;background:#f1f2f4;pointer-events:none}.preview-loading[hidden]{display:none}.preview-is-loading>main{visibility:hidden}.preview-is-loading>footer{visibility:hidden}.preview-is-loading>#status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.loading-paper{position:relative;box-sizing:border-box;margin:0 auto 24px;background:#fff;box-shadow:0 2px 8px #0002;overflow:hidden}.preview-loading i{display:block;border-radius:3px;background:linear-gradient(100deg,#e9ecef 20%,#f4f5f6,#e9ecef 60%);background-size:240% 100%;animation:preview-loading-shimmer 1.8s ease-in-out infinite}.preview-loading-presentation .loading-paper{width:100%;max-width:1280px;aspect-ratio:16/9;contain:size;padding:7%}.loading-title{width:55%;height:clamp(10px,2.2vw,28px);margin-bottom:6%}.loading-slide-body{display:grid;grid-template-columns:1fr 1fr;gap:9%;height:65%}.loading-lines{display:flex;flex-direction:column;gap:clamp(5px,1.4vw,17px)}.loading-lines>i{height:clamp(4px,1vw,10px);width:100%}.loading-lines>i:nth-child(2){width:90%}.loading-lines>i:last-child{width:65%}.loading-figure{display:flex;align-items:end;justify-content:center;gap:10%;padding:10%;box-sizing:border-box;background:#f5f6f7;border-radius:4px}.loading-figure>i{width:20%;height:50%}.loading-figure>i:nth-child(2){height:85%}.loading-figure>i:nth-child(3){height:65%}.preview-loading-word .loading-paper{width:100%;max-width:794px;aspect-ratio:210/297;padding:9% 8%;display:flex;flex-direction:column;gap:5%}.preview-loading-word .loading-title{height:clamp(12px,2.4vw,24px);margin:2% 0 0;flex-shrink:0}.preview-loading-word .loading-running-head{width:25%;height:6px;margin-bottom:6%}.preview-loading-word .loading-lines{flex-shrink:0}.loading-table{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #edf0f2;border-top:1px solid #edf0f2}.loading-table>span{padding:14%;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.loading-table i{height:clamp(4px,.8vw,8px);width:70%}.preview-loading-word .loading-page-number{width:20px;height:6px;margin:auto auto 0}@keyframes preview-loading-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.preview-loading i{animation:none}}@media(max-width:600px){.preview-loading{padding:24px}.preview-loading-word .loading-paper{padding:10%}}:root{--scrollbar-size: 12px;--scrollbar-inset: 2px;--scrollbar-radius: 6px;--scrollbar-thumb: var(--control-border, #d3d2ce);--scrollbar-thumb-hover: var(--muted, #787774)}*{scrollbar-width:auto;scrollbar-color:auto}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar-thumb{min-width:24px;min-height:24px;border:var(--scrollbar-inset) solid transparent;border-radius:var(--scrollbar-radius);background:var(--scrollbar-thumb);background-clip:padding-box}*::-webkit-scrollbar-thumb:hover,*::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-button{display:none;width:0;height:0}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}}@media(forced-colors:active){*{scrollbar-color:auto}*::-webkit-scrollbar-thumb{background-color:ButtonText}}html,body,#app{margin:0;height:100%;font:14px system-ui,sans-serif;color:#24292f;background:#f1f2f4}#app{display:flex;flex-direction:column;overflow:hidden}#status{margin:0;padding:8px 16px;overflow-wrap:anywhere}main{flex:1;overflow:auto;min-height:0;padding:24px;box-sizing:border-box}#paper{width:max-content;min-width:100%}#paper .docx-wrapper{padding:24px;background:transparent}#paper section.docx{margin:0 auto 24px;box-shadow:0 2px 8px #0002}.word-legacy-page{margin:0 auto;box-shadow:0 2px 8px #0002}dialog{max-width:min(700px,85vw);max-height:75vh;border:1px solid #ddd;border-radius:8px;padding:20px}pre{white-space:pre-wrap}button{font:inherit;padding:5px 10px;border:1px solid #ddd;border-radius:5px;background:#fff;cursor:pointer}\n@import '../../../../packages/workbench/src/styles/scrollbars.css';\n\nhtml,body,#app { margin:0; height:100%; font:14px system-ui,sans-serif; color:#24292f; background:#f1f2f4; }\n#app { display:flex; flex-direction:column; overflow:hidden; }\n#status { margin:0; padding:8px 16px; overflow-wrap:anywhere; }\nmain { flex:1; overflow:auto; min-height:0; padding:24px; box-sizing:border-box; }\n#paper { width:max-content; min-width:100%; }\n#paper .docx-wrapper { padding:24px; background:transparent; }\n#paper section.docx { margin:0 auto 24px; box-shadow:0 2px 8px #0002; }\n.word-legacy-page { margin:0 auto; box-shadow:0 2px 8px #0002; }\ndialog { max-width:min(700px,85vw); max-height:75vh; border:1px solid #ddd; border-radius:8px; padding:20px; }\npre { white-space:pre-wrap; } button { font:inherit; padding:5px 10px; border:1px solid #ddd; border-radius:5px; background:white; cursor:pointer; }\n","html":"","source":"\"use strict\";var TanoPluginView=(()=>{var ed=Object.create;var fi=Object.defineProperty;var rd=Object.getOwnPropertyDescriptor;var nd=Object.getOwnPropertyNames;var id=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var Xr=(n=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(n,{get:(t,e)=>(typeof require<\"u\"?require:t)[e]}):n)(function(n){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+n+'\" is not supported')});var Eo=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},ad=(n,t)=>{for(var e in t)fi(n,e,{get:t[e],enumerable:!0})},_s=(n,t,e,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of nd(t))!od.call(n,i)&&i!==e&&fi(n,i,{get:()=>t[i],enumerable:!(r=rd(t,i))||r.enumerable});return n};var Ms=(n,t,e)=>(e=n!=null?ed(id(n)):{},_s(t||!n||!n.__esModule?fi(e,\"default\",{value:n,enumerable:!0}):e,n)),sd=n=>_s(fi({},\"__esModule\",{value:!0}),n);var Vs=Eo((js,Io)=>{(function(n){typeof js==\"object\"&&typeof Io<\"u\"?Io.exports=n():typeof define==\"function\"&&define.amd?define([],n):(typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:this).JSZip=n()})(function(){return(function n(t,e,r){function i(s,l){if(!e[s]){if(!t[s]){var c=typeof Xr==\"function\"&&Xr;if(!l&&c)return c(s,!0);if(o)return o(s,!0);var h=new Error(\"Cannot find module '\"+s+\"'\");throw h.code=\"MODULE_NOT_FOUND\",h}var u=e[s]={exports:{}};t[s][0].call(u.exports,function(f){var d=t[s][1][f];return i(d||f)},u,u.exports,n,t,e,r)}return e[s].exports}for(var o=typeof Xr==\"function\"&&Xr,a=0;a<r.length;a++)i(r[a]);return i})({1:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=n(\"./support\"),o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";e.encode=function(a){for(var s,l,c,h,u,f,d,p=[],m=0,g=a.length,b=g,T=r.getTypeOf(a)!==\"string\";m<a.length;)b=g-m,c=T?(s=a[m++],l=m<g?a[m++]:0,m<g?a[m++]:0):(s=a.charCodeAt(m++),l=m<g?a.charCodeAt(m++):0,m<g?a.charCodeAt(m++):0),h=s>>2,u=(3&s)<<4|l>>4,f=1<b?(15&l)<<2|c>>6:64,d=2<b?63&c:64,p.push(o.charAt(h)+o.charAt(u)+o.charAt(f)+o.charAt(d));return p.join(\"\")},e.decode=function(a){var s,l,c,h,u,f,d=0,p=0,m=\"data:\";if(a.substr(0,m.length)===m)throw new Error(\"Invalid base64 input, it looks like a data url.\");var g,b=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,\"\")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&b--,a.charAt(a.length-2)===o.charAt(64)&&b--,b%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(g=i.uint8array?new Uint8Array(0|b):new Array(0|b);d<a.length;)s=o.indexOf(a.charAt(d++))<<2|(h=o.indexOf(a.charAt(d++)))>>4,l=(15&h)<<4|(u=o.indexOf(a.charAt(d++)))>>2,c=(3&u)<<6|(f=o.indexOf(a.charAt(d++))),g[p++]=s,u!==64&&(g[p++]=l),f!==64&&(g[p++]=c);return g}},{\"./support\":30,\"./utils\":32}],2:[function(n,t,e){\"use strict\";var r=n(\"./external\"),i=n(\"./stream/DataWorker\"),o=n(\"./stream/Crc32Probe\"),a=n(\"./stream/DataLengthProbe\");function s(l,c,h,u,f){this.compressedSize=l,this.uncompressedSize=c,this.crc32=h,this.compression=u,this.compressedContent=f}s.prototype={getContentWorker:function(){var l=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"data_length\")),c=this;return l.on(\"end\",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),l},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(l,c,h){return l.pipe(new o).pipe(new a(\"uncompressedSize\")).pipe(c.compressWorker(h)).pipe(new a(\"compressedSize\")).withStreamInfo(\"compression\",c)},t.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(n,t,e){\"use strict\";var r=n(\"./stream/GenericWorker\");e.STORE={magic:\"\\0\\0\",compressWorker:function(){return new r(\"STORE compression\")},uncompressWorker:function(){return new r(\"STORE decompression\")}},e.DEFLATE=n(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=(function(){for(var o,a=[],s=0;s<256;s++){o=s;for(var l=0;l<8;l++)o=1&o?3988292384^o>>>1:o>>>1;a[s]=o}return a})();t.exports=function(o,a){return o!==void 0&&o.length?r.getTypeOf(o)!==\"string\"?(function(s,l,c,h){var u=i,f=h+c;s^=-1;for(var d=h;d<f;d++)s=s>>>8^u[255&(s^l[d])];return-1^s})(0|a,o,o.length,0):(function(s,l,c,h){var u=i,f=h+c;s^=-1;for(var d=h;d<f;d++)s=s>>>8^u[255&(s^l.charCodeAt(d))];return-1^s})(0|a,o,o.length,0):0}},{\"./utils\":32}],5:[function(n,t,e){\"use strict\";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(n,t,e){\"use strict\";var r=null;r=typeof Promise<\"u\"?Promise:n(\"lie\"),t.exports={Promise:r}},{lie:37}],7:[function(n,t,e){\"use strict\";var r=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Uint32Array<\"u\",i=n(\"pako\"),o=n(\"./utils\"),a=n(\"./stream/GenericWorker\"),s=r?\"uint8array\":\"array\";function l(c,h){a.call(this,\"FlateWorker/\"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=h,this.meta={}}e.magic=\"\\b\\0\",o.inherits(l,a),l.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(s,c.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(h){c.push({data:h,meta:c.meta})}},e.compressWorker=function(c){return new l(\"Deflate\",c)},e.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(n,t,e){\"use strict\";function r(u,f){var d,p=\"\";for(d=0;d<f;d++)p+=String.fromCharCode(255&u),u>>>=8;return p}function i(u,f,d,p,m,g){var b,T,S=u.file,I=u.compression,O=g!==s.utf8encode,$=o.transformTo(\"string\",g(S.name)),k=o.transformTo(\"string\",s.utf8encode(S.name)),W=S.comment,U=o.transformTo(\"string\",g(W)),v=o.transformTo(\"string\",s.utf8encode(W)),_=k.length!==S.name.length,y=v.length!==W.length,H=\"\",nt=\"\",J=\"\",lt=S.dir,ot=S.date,et={crc32:0,compressedSize:0,uncompressedSize:0};f&&!d||(et.crc32=u.crc32,et.compressedSize=u.compressedSize,et.uncompressedSize=u.uncompressedSize);var B=0;f&&(B|=8),O||!_&&!y||(B|=2048);var z=0,st=0;lt&&(z|=16),m===\"UNIX\"?(st=798,z|=(function(ft,Ft){var Xt=ft;return ft||(Xt=Ft?16893:33204),(65535&Xt)<<16})(S.unixPermissions,lt)):(st=20,z|=(function(ft){return 63&(ft||0)})(S.dosPermissions)),b=ot.getUTCHours(),b<<=6,b|=ot.getUTCMinutes(),b<<=5,b|=ot.getUTCSeconds()/2,T=ot.getUTCFullYear()-1980,T<<=4,T|=ot.getUTCMonth()+1,T<<=5,T|=ot.getUTCDate(),_&&(nt=r(1,1)+r(l($),4)+k,H+=\"up\"+r(nt.length,2)+nt),y&&(J=r(1,1)+r(l(U),4)+v,H+=\"uc\"+r(J.length,2)+J);var dt=\"\";return dt+=`\n\\0`,dt+=r(B,2),dt+=I.magic,dt+=r(b,2),dt+=r(T,2),dt+=r(et.crc32,4),dt+=r(et.compressedSize,4),dt+=r(et.uncompressedSize,4),dt+=r($.length,2),dt+=r(H.length,2),{fileRecord:c.LOCAL_FILE_HEADER+dt+$+H,dirRecord:c.CENTRAL_FILE_HEADER+r(st,2)+dt+r(U.length,2)+\"\\0\\0\\0\\0\"+r(z,4)+r(p,4)+$+H+U}}var o=n(\"../utils\"),a=n(\"../stream/GenericWorker\"),s=n(\"../utf8\"),l=n(\"../crc32\"),c=n(\"../signature\");function h(u,f,d,p){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=f,this.zipPlatform=d,this.encodeFileName=p,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,a),h.prototype.push=function(u){var f=u.meta.percent||0,d=this.entriesCount,p=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,a.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:d?(f+100*(d-p-1))/d:100}}))},h.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var f=this.streamFiles&&!u.file.dir;if(f){var d=i(u,f,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(u){this.accumulate=!1;var f=this.streamFiles&&!u.file.dir,d=i(u,f,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.dirRecord),f)this.push({data:(function(p){return c.DATA_DESCRIPTOR+r(p.crc32,4)+r(p.compressedSize,4)+r(p.uncompressedSize,4)})(u),meta:{percent:100}});else for(this.push({data:d.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var u=this.bytesWritten,f=0;f<this.dirRecords.length;f++)this.push({data:this.dirRecords[f],meta:{percent:100}});var d=this.bytesWritten-u,p=(function(m,g,b,T,S){var I=o.transformTo(\"string\",S(T));return c.CENTRAL_DIRECTORY_END+\"\\0\\0\\0\\0\"+r(m,2)+r(m,2)+r(g,4)+r(b,4)+r(I.length,2)+I})(this.dirRecords.length,d,u,this.zipComment,this.encodeFileName);this.push({data:p,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(u){this._sources.push(u);var f=this;return u.on(\"data\",function(d){f.processChunk(d)}),u.on(\"end\",function(){f.closedSource(f.previous.streamInfo),f._sources.length?f.prepareNextSource():f.end()}),u.on(\"error\",function(d){f.error(d)}),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(u){var f=this._sources;if(!a.prototype.error.call(this,u))return!1;for(var d=0;d<f.length;d++)try{f[d].error(u)}catch{}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var u=this._sources,f=0;f<u.length;f++)u[f].lock()},t.exports=h},{\"../crc32\":4,\"../signature\":23,\"../stream/GenericWorker\":28,\"../utf8\":31,\"../utils\":32}],9:[function(n,t,e){\"use strict\";var r=n(\"../compressions\"),i=n(\"./ZipFileWorker\");e.generateWorker=function(o,a,s){var l=new i(a.streamFiles,s,a.platform,a.encodeFileName),c=0;try{o.forEach(function(h,u){c++;var f=(function(g,b){var T=g||b,S=r[T];if(!S)throw new Error(T+\" is not a valid compression method !\");return S})(u.options.compression,a.compression),d=u.options.compressionOptions||a.compressionOptions||{},p=u.dir,m=u.date;u._compressWorker(f,d).withStreamInfo(\"file\",{name:h,dir:p,date:m,comment:u.comment||\"\",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(l)}),l.entriesCount=c}catch(h){l.error(h)}return l}},{\"../compressions\":3,\"./ZipFileWorker\":8}],10:[function(n,t,e){\"use strict\";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");this.files=Object.create(null),this.comment=null,this.root=\"\",this.clone=function(){var i=new r;for(var o in this)typeof this[o]!=\"function\"&&(i[o]=this[o]);return i}}(r.prototype=n(\"./object\")).loadAsync=n(\"./load\"),r.support=n(\"./support\"),r.defaults=n(\"./defaults\"),r.version=\"3.10.2\",r.loadAsync=function(i,o){return new r().loadAsync(i,o)},r.external=n(\"./external\"),t.exports=r},{\"./defaults\":5,\"./external\":6,\"./load\":11,\"./object\":15,\"./support\":30}],11:[function(n,t,e){\"use strict\";var r=n(\"./utils\"),i=n(\"./external\"),o=n(\"./utf8\"),a=n(\"./zipEntries\"),s=n(\"./stream/Crc32Probe\"),l=n(\"./nodejsUtils\");function c(h){return new i.Promise(function(u,f){var d=h.decompressed.getContentWorker().pipe(new s);d.on(\"error\",function(p){f(p)}).on(\"end\",function(){d.streamInfo.crc32!==h.decompressed.crc32?f(new Error(\"Corrupted zip : CRC32 mismatch\")):u()}).resume()})}t.exports=function(h,u){var f=this;return u=r.extend(u||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(h)?i.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\")):r.prepareContent(\"the loaded zip file\",h,!0,u.optimizedBinaryString,u.base64).then(function(d){var p=new a(u);return p.load(d),p}).then(function(d){var p=[i.Promise.resolve(d)],m=d.files;if(u.checkCRC32)for(var g=0;g<m.length;g++)p.push(c(m[g]));return i.Promise.all(p)}).then(function(d){for(var p=d.shift(),m=p.files,g=0;g<m.length;g++){var b=m[g],T=b.fileNameStr,S=r.resolve(b.fileNameStr);f.file(S,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:u.createFolders}),b.dir||(f.file(S).unsafeOriginalName=T)}return p.zipComment.length&&(f.comment=p.zipComment),f})}},{\"./external\":6,\"./nodejsUtils\":14,\"./stream/Crc32Probe\":25,\"./utf8\":31,\"./utils\":32,\"./zipEntries\":33}],12:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"../stream/GenericWorker\");function o(a,s){i.call(this,\"Nodejs stream input adapter for \"+a),this._upstreamEnded=!1,this._bindStream(s)}r.inherits(o,i),o.prototype._bindStream=function(a){var s=this;(this._stream=a).pause(),a.on(\"data\",function(l){s.push({data:l,meta:{percent:0}})}).on(\"error\",function(l){s.isPaused?this.generatedError=l:s.error(l)}).on(\"end\",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{\"../stream/GenericWorker\":28,\"../utils\":32}],13:[function(n,t,e){\"use strict\";var r=n(\"readable-stream\").Readable;function i(o,a,s){r.call(this,a),this._helper=o;var l=this;o.on(\"data\",function(c,h){l.push(c)||l._helper.pause(),s&&s(h)}).on(\"error\",function(c){l.emit(\"error\",c)}).on(\"end\",function(){l.push(null)})}n(\"../utils\").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{\"../utils\":32,\"readable-stream\":16}],14:[function(n,t,e){\"use strict\";t.exports={isNode:typeof Buffer<\"u\",newBufferFrom:function(r,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,i);if(typeof r==\"number\")throw new Error('The \"data\" argument must not be a number');return new Buffer(r,i)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var i=new Buffer(r);return i.fill(0),i},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on==\"function\"&&typeof r.pause==\"function\"&&typeof r.resume==\"function\"}}},{}],15:[function(n,t,e){\"use strict\";function r(S,I,O){var $,k=o.getTypeOf(I),W=o.extend(O||{},l);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions==\"string\"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(S=m(S)),W.createFolders&&($=p(S))&&g.call(this,$,!0);var U=k===\"string\"&&W.binary===!1&&W.base64===!1;O&&O.binary!==void 0||(W.binary=!U),(I instanceof c&&I.uncompressedSize===0||W.dir||!I||I.length===0)&&(W.base64=!1,W.binary=!0,I=\"\",W.compression=\"STORE\",k=\"string\");var v=null;v=I instanceof c||I instanceof a?I:f.isNode&&f.isStream(I)?new d(S,I):o.prepareContent(S,I,W.binary,W.optimizedBinaryString,W.base64);var _=new h(S,v,W);this.files[S]=_}var i=n(\"./utf8\"),o=n(\"./utils\"),a=n(\"./stream/GenericWorker\"),s=n(\"./stream/StreamHelper\"),l=n(\"./defaults\"),c=n(\"./compressedObject\"),h=n(\"./zipObject\"),u=n(\"./generate\"),f=n(\"./nodejsUtils\"),d=n(\"./nodejs/NodejsStreamInputAdapter\"),p=function(S){S.slice(-1)===\"/\"&&(S=S.substring(0,S.length-1));var I=S.lastIndexOf(\"/\");return 0<I?S.substring(0,I):\"\"},m=function(S){return S.slice(-1)!==\"/\"&&(S+=\"/\"),S},g=function(S,I){return I=I!==void 0?I:l.createFolders,S=m(S),this.files[S]||r.call(this,S,null,{dir:!0,createFolders:I}),this.files[S]};function b(S){return Object.prototype.toString.call(S)===\"[object RegExp]\"}var T={load:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},forEach:function(S){var I,O,$;for(I in this.files)$=this.files[I],(O=I.slice(this.root.length,I.length))&&I.slice(0,this.root.length)===this.root&&S(O,$)},filter:function(S){var I=[];return this.forEach(function(O,$){S(O,$)&&I.push($)}),I},file:function(S,I,O){if(arguments.length!==1)return S=this.root+S,r.call(this,S,I,O),this;if(b(S)){var $=S;return this.filter(function(W,U){return!U.dir&&$.test(W)})}var k=this.files[this.root+S];return k&&!k.dir?k:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(k,W){return W.dir&&S.test(k)});var I=this.root+S,O=g.call(this,I),$=this.clone();return $.root=O.name,$},remove:function(S){S=this.root+S;var I=this.files[S];if(I||(S.slice(-1)!==\"/\"&&(S+=\"/\"),I=this.files[S]),I&&!I.dir)delete this.files[S];else for(var O=this.filter(function(k,W){return W.name.slice(0,S.length)===S}),$=0;$<O.length;$++)delete this.files[O[$].name];return this},generate:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},generateInternalStream:function(S){var I,O={};try{if((O=o.extend(S||{},{streamFiles:!1,compression:\"STORE\",compressionOptions:null,type:\"\",platform:\"DOS\",comment:null,mimeType:\"application/zip\",encodeFileName:i.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type===\"binarystring\"&&(O.type=\"string\"),!O.type)throw new Error(\"No output type specified.\");o.checkSupport(O.type),O.platform!==\"darwin\"&&O.platform!==\"freebsd\"&&O.platform!==\"linux\"&&O.platform!==\"sunos\"||(O.platform=\"UNIX\"),O.platform===\"win32\"&&(O.platform=\"DOS\");var $=O.comment||this.comment||\"\";I=u.generateWorker(this,O,$)}catch(k){(I=new a(\"error\")).error(k)}return new s(I,O.type||\"string\",O.mimeType)},generateAsync:function(S,I){return this.generateInternalStream(S).accumulate(I)},generateNodeStream:function(S,I){return(S=S||{}).type||(S.type=\"nodebuffer\"),this.generateInternalStream(S).toNodejsStream(I)}};t.exports=T},{\"./compressedObject\":2,\"./defaults\":5,\"./generate\":9,\"./nodejs/NodejsStreamInputAdapter\":12,\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31,\"./utils\":32,\"./zipObject\":35}],16:[function(n,t,e){\"use strict\";t.exports=n(\"stream\")},{stream:void 0}],17:[function(n,t,e){\"use strict\";var r=n(\"./DataReader\");function i(o){r.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n(\"../utils\").inherits(i,r),i.prototype.byteAt=function(o){return this.data[this.zero+o]},i.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===a&&this.data[h+1]===s&&this.data[h+2]===l&&this.data[h+3]===c)return h-this.zero;return-1},i.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),h=this.readData(4);return a===h[0]&&s===h[1]&&l===h[2]&&c===h[3]},i.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./DataReader\":18}],18:[function(n,t,e){\"use strict\";var r=n(\"../utils\");function i(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error(\"End of data reached (data length = \"+this.length+\", asked index = \"+o+\"). Corrupted zip ?\")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,s=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)s=(s<<8)+this.byteAt(a);return this.index+=o,s},readString:function(o){return r.transformTo(\"string\",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},t.exports=i},{\"../utils\":32}],19:[function(n,t,e){\"use strict\";var r=n(\"./Uint8ArrayReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(n,t,e){\"use strict\";var r=n(\"./DataReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},i.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},i.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},i.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./DataReader\":18}],21:[function(n,t,e){\"use strict\";var r=n(\"./ArrayReader\");function i(o){r.call(this,o)}n(\"../utils\").inherits(i,r),i.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},t.exports=i},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"../support\"),o=n(\"./ArrayReader\"),a=n(\"./StringReader\"),s=n(\"./NodeBufferReader\"),l=n(\"./Uint8ArrayReader\");t.exports=function(c){var h=r.getTypeOf(c);return r.checkSupport(h),h!==\"string\"||i.uint8array?h===\"nodebuffer\"?new s(c):i.uint8array?new l(r.transformTo(\"uint8array\",c)):new o(r.transformTo(\"array\",c)):new a(c)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(n,t,e){\"use strict\";e.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",e.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",e.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\\x07\",e.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",e.DATA_DESCRIPTOR=\"PK\\x07\\b\"},{}],24:[function(n,t,e){\"use strict\";var r=n(\"./GenericWorker\"),i=n(\"../utils\");function o(a){r.call(this,\"ConvertWorker to \"+a),this.destType=a}i.inherits(o,r),o.prototype.processChunk=function(a){this.push({data:i.transformTo(this.destType,a.data),meta:a.meta})},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(n,t,e){\"use strict\";var r=n(\"./GenericWorker\"),i=n(\"../crc32\");function o(){r.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}n(\"../utils\").inherits(o,r),o.prototype.processChunk=function(a){this.streamInfo.crc32=i(a.data,this.streamInfo.crc32||0),this.push(a)},t.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./GenericWorker\");function o(a){i.call(this,\"DataLengthProbe for \"+a),this.propName=a,this.withStreamInfo(a,0)}r.inherits(o,i),o.prototype.processChunk=function(a){if(a){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+a.data.length}i.prototype.processChunk.call(this,a)},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./GenericWorker\");function o(a){i.call(this,\"DataWorker\");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,a.then(function(l){s.dataIsReady=!0,s.data=l,s.max=l&&l.length||0,s.type=r.getTypeOf(l),s.isPaused||s._tickAndRepeat()},function(l){s.error(l)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":a=this.data.substring(this.index,s);break;case\"uint8array\":a=this.data.subarray(this.index,s);break;case\"array\":case\"nodebuffer\":a=this.data.slice(this.index,s)}return this.index=s,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(n,t,e){\"use strict\";function r(i){this.name=i||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(i){this.emit(\"data\",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit(\"error\",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit(\"error\",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,o){return this._listeners[i].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,o){if(this._listeners[i])for(var a=0;a<this._listeners[i].length;a++)this._listeners[i][a].call(this,o)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var o=this;return i.on(\"data\",function(a){o.processChunk(a)}),i.on(\"end\",function(){o.end()}),i.on(\"error\",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,o){return this.extraStreamInfo[i]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i=\"Worker \"+this.name;return this.previous?this.previous+\" -> \"+i:i}},t.exports=r},{}],29:[function(n,t,e){\"use strict\";var r=n(\"../utils\"),i=n(\"./ConvertWorker\"),o=n(\"./GenericWorker\"),a=n(\"../base64\"),s=n(\"../support\"),l=n(\"../external\"),c=null;if(s.nodestream)try{c=n(\"../nodejs/NodejsStreamOutputAdapter\")}catch{}function h(f,d){return new l.Promise(function(p,m){var g=[],b=f._internalType,T=f._outputType,S=f._mimeType;f.on(\"data\",function(I,O){g.push(I),d&&d(O)}).on(\"error\",function(I){g=[],m(I)}).on(\"end\",function(){try{var I=(function(O,$,k){switch(O){case\"blob\":return r.newBlob(r.transformTo(\"arraybuffer\",$),k);case\"base64\":return a.encode($);default:return r.transformTo(O,$)}})(T,(function(O,$){var k,W=0,U=null,v=0;for(k=0;k<$.length;k++)v+=$[k].length;switch(O){case\"string\":return $.join(\"\");case\"array\":return Array.prototype.concat.apply([],$);case\"uint8array\":for(U=new Uint8Array(v),k=0;k<$.length;k++)U.set($[k],W),W+=$[k].length;return U;case\"nodebuffer\":return Buffer.concat($);default:throw new Error(\"concat : unsupported type '\"+O+\"'\")}})(b,g),S);p(I)}catch(O){m(O)}g=[]}).resume()})}function u(f,d,p){var m=d;switch(d){case\"blob\":case\"arraybuffer\":m=\"uint8array\";break;case\"base64\":m=\"string\"}try{this._internalType=m,this._outputType=d,this._mimeType=p,r.checkSupport(m),this._worker=f.pipe(new i(m)),f.lock()}catch(g){this._worker=new o(\"error\"),this._worker.error(g)}}u.prototype={accumulate:function(f){return h(this,f)},on:function(f,d){var p=this;return f===\"data\"?this._worker.on(f,function(m){d.call(p,m.data,m.meta)}):this._worker.on(f,function(){r.delay(d,arguments,p)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(f){if(r.checkSupport(\"nodestream\"),this._outputType!==\"nodebuffer\")throw new Error(this._outputType+\" is not supported by this method\");return new c(this,{objectMode:this._outputType!==\"nodebuffer\"},f)}},t.exports=u},{\"../base64\":1,\"../external\":6,\"../nodejs/NodejsStreamOutputAdapter\":13,\"../support\":30,\"../utils\":32,\"./ConvertWorker\":24,\"./GenericWorker\":28}],30:[function(n,t,e){\"use strict\";if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",e.nodebuffer=typeof Buffer<\"u\",e.uint8array=typeof Uint8Array<\"u\",typeof ArrayBuffer>\"u\")e.blob=!1;else{var r=new ArrayBuffer(0);try{e.blob=new Blob([r],{type:\"application/zip\"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),e.blob=i.getBlob(\"application/zip\").size===0}catch{e.blob=!1}}}try{e.nodestream=!!n(\"readable-stream\").Readable}catch{e.nodestream=!1}},{\"readable-stream\":16}],31:[function(n,t,e){\"use strict\";for(var r=n(\"./utils\"),i=n(\"./support\"),o=n(\"./nodejsUtils\"),a=n(\"./stream/GenericWorker\"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;s[254]=s[254]=1;function c(){a.call(this,\"utf-8 decode\"),this.leftOver=null}function h(){a.call(this,\"utf-8 encode\")}e.utf8encode=function(u){return i.nodebuffer?o.newBufferFrom(u,\"utf-8\"):(function(f){var d,p,m,g,b,T=f.length,S=0;for(g=0;g<T;g++)(64512&(p=f.charCodeAt(g)))==55296&&g+1<T&&(64512&(m=f.charCodeAt(g+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),g++),S+=p<128?1:p<2048?2:p<65536?3:4;for(d=i.uint8array?new Uint8Array(S):new Array(S),g=b=0;b<S;g++)(64512&(p=f.charCodeAt(g)))==55296&&g+1<T&&(64512&(m=f.charCodeAt(g+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),g++),p<128?d[b++]=p:(p<2048?d[b++]=192|p>>>6:(p<65536?d[b++]=224|p>>>12:(d[b++]=240|p>>>18,d[b++]=128|p>>>12&63),d[b++]=128|p>>>6&63),d[b++]=128|63&p);return d})(u)},e.utf8decode=function(u){return i.nodebuffer?r.transformTo(\"nodebuffer\",u).toString(\"utf-8\"):(function(f){var d,p,m,g,b=f.length,T=new Array(2*b);for(d=p=0;d<b;)if((m=f[d++])<128)T[p++]=m;else if(4<(g=s[m]))T[p++]=65533,d+=g-1;else{for(m&=g===2?31:g===3?15:7;1<g&&d<b;)m=m<<6|63&f[d++],g--;1<g?T[p++]=65533:m<65536?T[p++]=m:(m-=65536,T[p++]=55296|m>>10&1023,T[p++]=56320|1023&m)}return T.length!==p&&(T.subarray?T=T.subarray(0,p):T.length=p),r.applyFromCharCode(T)})(u=r.transformTo(i.uint8array?\"uint8array\":\"array\",u))},r.inherits(c,a),c.prototype.processChunk=function(u){var f=r.transformTo(i.uint8array?\"uint8array\":\"array\",u.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var d=f;(f=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),f.set(d,this.leftOver.length)}else f=this.leftOver.concat(f);this.leftOver=null}var p=(function(g,b){var T;for((b=b||g.length)>g.length&&(b=g.length),T=b-1;0<=T&&(192&g[T])==128;)T--;return T<0||T===0?b:T+s[g[T]]>b?T:b})(f),m=f;p!==f.length&&(i.uint8array?(m=f.subarray(0,p),this.leftOver=f.subarray(p,f.length)):(m=f.slice(0,p),this.leftOver=f.slice(p,f.length))),this.push({data:e.utf8decode(m),meta:u.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=c,r.inherits(h,a),h.prototype.processChunk=function(u){this.push({data:e.utf8encode(u.data),meta:u.meta})},e.Utf8EncodeWorker=h},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(n,t,e){\"use strict\";var r=n(\"./support\"),i=n(\"./base64\"),o=n(\"./nodejsUtils\"),a=n(\"./external\");function s(d){return d}function l(d,p){for(var m=0;m<d.length;++m)p[m]=255&d.charCodeAt(m);return p}n(\"setimmediate\"),e.newBlob=function(d,p){e.checkSupport(\"blob\");try{return new Blob([d],{type:p})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(d),m.getBlob(p)}catch{throw new Error(\"Bug : can't construct the Blob.\")}}};var c={stringifyByChunk:function(d,p,m){var g=[],b=0,T=d.length;if(T<=m)return String.fromCharCode.apply(null,d);for(;b<T;)p===\"array\"||p===\"nodebuffer\"?g.push(String.fromCharCode.apply(null,d.slice(b,Math.min(b+m,T)))):g.push(String.fromCharCode.apply(null,d.subarray(b,Math.min(b+m,T)))),b+=m;return g.join(\"\")},stringifyByChar:function(d){for(var p=\"\",m=0;m<d.length;m++)p+=String.fromCharCode(d[m]);return p},applyCanBeUsed:{uint8array:(function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}})()}};function h(d){var p=65536,m=e.getTypeOf(d),g=!0;if(m===\"uint8array\"?g=c.applyCanBeUsed.uint8array:m===\"nodebuffer\"&&(g=c.applyCanBeUsed.nodebuffer),g)for(;1<p;)try{return c.stringifyByChunk(d,m,p)}catch{p=Math.floor(p/2)}return c.stringifyByChar(d)}function u(d,p){for(var m=0;m<d.length;m++)p[m]=d[m];return p}e.applyFromCharCode=h;var f={};f.string={string:s,array:function(d){return l(d,new Array(d.length))},arraybuffer:function(d){return f.string.uint8array(d).buffer},uint8array:function(d){return l(d,new Uint8Array(d.length))},nodebuffer:function(d){return l(d,o.allocBuffer(d.length))}},f.array={string:h,array:s,arraybuffer:function(d){return new Uint8Array(d).buffer},uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return o.newBufferFrom(d)}},f.arraybuffer={string:function(d){return h(new Uint8Array(d))},array:function(d){return u(new Uint8Array(d),new Array(d.byteLength))},arraybuffer:s,uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return o.newBufferFrom(new Uint8Array(d))}},f.uint8array={string:h,array:function(d){return u(d,new Array(d.length))},arraybuffer:function(d){return d.buffer},uint8array:s,nodebuffer:function(d){return o.newBufferFrom(d)}},f.nodebuffer={string:h,array:function(d){return u(d,new Array(d.length))},arraybuffer:function(d){return f.nodebuffer.uint8array(d).buffer},uint8array:function(d){return u(d,new Uint8Array(d.length))},nodebuffer:s},e.transformTo=function(d,p){if(p=p||\"\",!d)return p;e.checkSupport(d);var m=e.getTypeOf(p);return f[m][d](p)},e.resolve=function(d){for(var p=d.split(\"/\"),m=[],g=0;g<p.length;g++){var b=p[g];b===\".\"||b===\"\"&&g!==0&&g!==p.length-1||(b===\"..\"?m.pop():m.push(b))}return m.join(\"/\")},e.getTypeOf=function(d){if(typeof d==\"string\")return\"string\";var p=Object.prototype.toString.call(d);return p===\"[object Array]\"?\"array\":r.nodebuffer&&o.isBuffer(d)?\"nodebuffer\":r.uint8array&&p===\"[object Uint8Array]\"?\"uint8array\":r.arraybuffer&&p===\"[object ArrayBuffer]\"?\"arraybuffer\":void 0},e.checkSupport=function(d){if(!r[d.toLowerCase()])throw new Error(d+\" is not supported by this platform\")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(d){var p,m,g=\"\";for(m=0;m<(d||\"\").length;m++)g+=\"\\\\x\"+((p=d.charCodeAt(m))<16?\"0\":\"\")+p.toString(16).toUpperCase();return g},e.delay=function(d,p,m){setImmediate(function(){d.apply(m||null,p||[])})},e.inherits=function(d,p){function m(){}m.prototype=p.prototype,d.prototype=new m},e.extend=function(){var d,p,m={};for(d=0;d<arguments.length;d++)for(p in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],p)&&m[p]===void 0&&(m[p]=arguments[d][p]);return m},e.prepareContent=function(d,p,m,g,b){return a.Promise.resolve(p).then(function(T){return r.blob&&(T instanceof Blob||[\"[object File]\",\"[object Blob]\"].indexOf(Object.prototype.toString.call(T))!==-1)?Blob.prototype.arrayBuffer!==void 0?T.arrayBuffer():typeof FileReader<\"u\"?new a.Promise(function(S,I){var O=new FileReader;O.onload=function($){S($.target.result)},O.onerror=function($){I($.target.error)},O.readAsArrayBuffer(T)}):a.Promise.reject(new Error(d+\" is a Blob, but we have no way of reading it.\")):T}).then(function(T){var S=e.getTypeOf(T);return S?(S===\"arraybuffer\"?T=e.transformTo(\"uint8array\",T):S===\"string\"&&(b?T=i.decode(T):m&&g!==!0&&(T=(function(I){return l(I,r.uint8array?new Uint8Array(I.length):new Array(I.length))})(T))),T):a.Promise.reject(new Error(\"Can't read the data of '\"+d+\"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?\"))})}},{\"./base64\":1,\"./external\":6,\"./nodejsUtils\":14,\"./support\":30,setimmediate:54}],33:[function(n,t,e){\"use strict\";var r=n(\"./reader/readerFor\"),i=n(\"./utils\"),o=n(\"./signature\"),a=n(\"./zipEntry\"),s=n(\"./support\");function l(c){this.files=[],this.loadOptions=c}l.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error(\"Corrupted zip or bug: unexpected signature (\"+i.pretty(h)+\", expected \"+i.pretty(c)+\")\")}},isSignature:function(c,h){var u=this.reader.index;this.reader.setIndex(c);var f=this.reader.readString(4)===h;return this.reader.setIndex(u),f},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),h=s.uint8array?\"uint8array\":\"array\",u=i.transformTo(h,c);this.zipComment=this.loadOptions.decodeFileName(u)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,h,u,f=this.zip64EndOfCentralSize-44;0<f;)c=this.reader.readInt(2),h=this.reader.readInt(4),u=this.reader.readData(h),this.zip64ExtensibleData[c]={id:c,length:h,value:u}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error(\"Multi-volumes zip are not supported\")},readLocalFiles:function(){var c,h;for(c=0;c<this.files.length;c++)h=this.files[c],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(c=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error(\"Corrupted zip or bug: expected \"+this.centralDirRecords+\" records in central dir, got \"+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error(\"Corrupted zip: can't find end of central directory\"):new Error(\"Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html\");this.reader.setIndex(c);var h=c;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory locator\");if(this.reader.setIndex(c),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory\");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var u=this.centralDirOffset+this.centralDirSize;this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize);var f=h-u;if(0<f)this.isSignature(h,o.CENTRAL_FILE_HEADER)||(this.reader.zero=f);else if(f<0)throw new Error(\"Corrupted zip: missing \"+Math.abs(f)+\" bytes.\")},prepareReader:function(c){this.reader=r(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{\"./reader/readerFor\":22,\"./signature\":23,\"./support\":30,\"./utils\":32,\"./zipEntry\":34}],34:[function(n,t,e){\"use strict\";var r=n(\"./reader/readerFor\"),i=n(\"./utils\"),o=n(\"./compressedObject\"),a=n(\"./crc32\"),s=n(\"./utf8\"),l=n(\"./compressions\"),c=n(\"./support\");function h(u,f){this.options=u,this.loadOptions=f}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(u){var f,d;if(u.skip(22),this.fileNameLength=u.readInt(2),d=u.readInt(2),this.fileName=u.readData(this.fileNameLength),u.skip(d),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error(\"Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)\");if((f=(function(p){for(var m in l)if(Object.prototype.hasOwnProperty.call(l,m)&&l[m].magic===p)return l[m];return null})(this.compressionMethod))===null)throw new Error(\"Corrupted zip : compression \"+i.pretty(this.compressionMethod)+\" unknown (inner file : \"+i.transformTo(\"string\",this.fileName)+\")\");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,f,u.readData(this.compressedSize))},readCentralPart:function(u){this.versionMadeBy=u.readInt(2),u.skip(2),this.bitFlag=u.readInt(2),this.compressionMethod=u.readString(2),this.date=u.readDate(),this.crc32=u.readInt(4),this.compressedSize=u.readInt(4),this.uncompressedSize=u.readInt(4);var f=u.readInt(2);if(this.extraFieldsLength=u.readInt(2),this.fileCommentLength=u.readInt(2),this.diskNumberStart=u.readInt(2),this.internalFileAttributes=u.readInt(2),this.externalFileAttributes=u.readInt(4),this.localHeaderOffset=u.readInt(4),this.isEncrypted())throw new Error(\"Encrypted zip are not supported\");u.skip(f),this.readExtraFields(u),this.parseZIP64ExtraField(u),this.fileComment=u.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var u=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==\"/\"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var f,d,p,m=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4<m;)f=u.readInt(2),d=u.readInt(2),p=u.readData(d),this.extraFields[f]={id:f,length:d,value:p};u.setIndex(m)},handleUTF8:function(){var u=c.uint8array?\"uint8array\":\"array\";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var f=this.findExtraFieldUnicodePath();if(f!==null)this.fileNameStr=f;else{var d=i.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(d)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var m=i.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var f=r(u.value);return f.readInt(1)!==1||a(this.fileName)!==f.readInt(4)?null:s.utf8decode(f.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var f=r(u.value);return f.readInt(1)!==1||a(this.fileComment)!==f.readInt(4)?null:s.utf8decode(f.readData(u.length-5))}return null}},t.exports=h},{\"./compressedObject\":2,\"./compressions\":3,\"./crc32\":4,\"./reader/readerFor\":22,\"./support\":30,\"./utf8\":31,\"./utils\":32}],35:[function(n,t,e){\"use strict\";function r(f,d,p){this.name=f,this.dir=p.dir,this.date=p.date,this.comment=p.comment,this.unixPermissions=p.unixPermissions,this.dosPermissions=p.dosPermissions,this._data=d,this._dataBinary=p.binary,this.options={compression:p.compression,compressionOptions:p.compressionOptions}}var i=n(\"./stream/StreamHelper\"),o=n(\"./stream/DataWorker\"),a=n(\"./utf8\"),s=n(\"./compressedObject\"),l=n(\"./stream/GenericWorker\");r.prototype={internalStream:function(f){var d=null,p=\"string\";try{if(!f)throw new Error(\"No output type specified.\");var m=(p=f.toLowerCase())===\"string\"||p===\"text\";p!==\"binarystring\"&&p!==\"text\"||(p=\"string\"),d=this._decompressWorker();var g=!this._dataBinary;g&&!m&&(d=d.pipe(new a.Utf8EncodeWorker)),!g&&m&&(d=d.pipe(new a.Utf8DecodeWorker))}catch(b){(d=new l(\"error\")).error(b)}return new i(d,p,\"\")},async:function(f,d){return this.internalStream(f).accumulate(d)},nodeStream:function(f,d){return this.internalStream(f||\"nodebuffer\").toNodejsStream(d)},_compressWorker:function(f,d){if(this._data instanceof s&&this._data.compression.magic===f.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(p,f,d)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=[\"asText\",\"asBinary\",\"asNodeBuffer\",\"asUint8Array\",\"asArrayBuffer\"],h=function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},u=0;u<c.length;u++)r.prototype[c[u]]=h;t.exports=r},{\"./compressedObject\":2,\"./stream/DataWorker\":27,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31}],36:[function(n,t,e){(function(r){\"use strict\";var i,o,a=r.MutationObserver||r.WebKitMutationObserver;if(a){var s=0,l=new a(f),c=r.document.createTextNode(\"\");l.observe(c,{characterData:!0}),i=function(){c.data=s=++s%2}}else if(r.setImmediate||r.MessageChannel===void 0)i=\"document\"in r&&\"onreadystatechange\"in r.document.createElement(\"script\")?function(){var d=r.document.createElement(\"script\");d.onreadystatechange=function(){f(),d.onreadystatechange=null,d.parentNode.removeChild(d),d=null},r.document.documentElement.appendChild(d)}:function(){setTimeout(f,0)};else{var h=new r.MessageChannel;h.port1.onmessage=f,i=function(){h.port2.postMessage(0)}}var u=[];function f(){var d,p;o=!0;for(var m=u.length;m;){for(p=u,u=[],d=-1;++d<m;)p[d]();m=u.length}o=!1}t.exports=function(d){u.push(d)!==1||o||i()}}).call(this,typeof global<\"u\"?global:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}],37:[function(n,t,e){\"use strict\";var r=n(\"immediate\");function i(){}var o={},a=[\"REJECTED\"],s=[\"FULFILLED\"],l=[\"PENDING\"];function c(m){if(typeof m!=\"function\")throw new TypeError(\"resolver must be a function\");this.state=l,this.queue=[],this.outcome=void 0,m!==i&&d(this,m)}function h(m,g,b){this.promise=m,typeof g==\"function\"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof b==\"function\"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function u(m,g,b){r(function(){var T;try{T=g(b)}catch(S){return o.reject(m,S)}T===m?o.reject(m,new TypeError(\"Cannot resolve promise with itself\")):o.resolve(m,T)})}function f(m){var g=m&&m.then;if(m&&(typeof m==\"object\"||typeof m==\"function\")&&typeof g==\"function\")return function(){g.apply(m,arguments)}}function d(m,g){var b=!1;function T(O){b||(b=!0,o.reject(m,O))}function S(O){b||(b=!0,o.resolve(m,O))}var I=p(function(){g(S,T)});I.status===\"error\"&&T(I.value)}function p(m,g){var b={};try{b.value=m(g),b.status=\"success\"}catch(T){b.status=\"error\",b.value=T}return b}(t.exports=c).prototype.finally=function(m){if(typeof m!=\"function\")return this;var g=this.constructor;return this.then(function(b){return g.resolve(m()).then(function(){return b})},function(b){return g.resolve(m()).then(function(){throw b})})},c.prototype.catch=function(m){return this.then(null,m)},c.prototype.then=function(m,g){if(typeof m!=\"function\"&&this.state===s||typeof g!=\"function\"&&this.state===a)return this;var b=new this.constructor(i);return this.state!==l?u(b,this.state===s?m:g,this.outcome):this.queue.push(new h(b,m,g)),b},h.prototype.callFulfilled=function(m){o.resolve(this.promise,m)},h.prototype.otherCallFulfilled=function(m){u(this.promise,this.onFulfilled,m)},h.prototype.callRejected=function(m){o.reject(this.promise,m)},h.prototype.otherCallRejected=function(m){u(this.promise,this.onRejected,m)},o.resolve=function(m,g){var b=p(f,g);if(b.status===\"error\")return o.reject(m,b.value);var T=b.value;if(T)d(m,T);else{m.state=s,m.outcome=g;for(var S=-1,I=m.queue.length;++S<I;)m.queue[S].callFulfilled(g)}return m},o.reject=function(m,g){m.state=a,m.outcome=g;for(var b=-1,T=m.queue.length;++b<T;)m.queue[b].callRejected(g);return m},c.resolve=function(m){return m instanceof this?m:o.resolve(new this(i),m)},c.reject=function(m){var g=new this(i);return o.reject(g,m)},c.all=function(m){var g=this;if(Object.prototype.toString.call(m)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var b=m.length,T=!1;if(!b)return this.resolve([]);for(var S=new Array(b),I=0,O=-1,$=new this(i);++O<b;)k(m[O],O);return $;function k(W,U){g.resolve(W).then(function(v){S[U]=v,++I!==b||T||(T=!0,o.resolve($,S))},function(v){T||(T=!0,o.reject($,v))})}},c.race=function(m){var g=this;if(Object.prototype.toString.call(m)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var b=m.length,T=!1;if(!b)return this.resolve([]);for(var S=-1,I=new this(i);++S<b;)O=m[S],g.resolve(O).then(function($){T||(T=!0,o.resolve(I,$))},function($){T||(T=!0,o.reject(I,$))});var O;return I}},{immediate:36}],38:[function(n,t,e){\"use strict\";var r={};(0,n(\"./lib/utils/common\").assign)(r,n(\"./lib/deflate\"),n(\"./lib/inflate\"),n(\"./lib/zlib/constants\")),t.exports=r},{\"./lib/deflate\":39,\"./lib/inflate\":40,\"./lib/utils/common\":41,\"./lib/zlib/constants\":44}],39:[function(n,t,e){\"use strict\";var r=n(\"./zlib/deflate\"),i=n(\"./utils/common\"),o=n(\"./utils/strings\"),a=n(\"./zlib/messages\"),s=n(\"./zlib/zstream\"),l=Object.prototype.toString,c=0,h=-1,u=0,f=8;function d(m){if(!(this instanceof d))return new d(m);this.options=i.assign({level:h,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:\"\"},m||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var b=r.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(b!==c)throw new Error(a[b]);if(g.header&&r.deflateSetHeader(this.strm,g.header),g.dictionary){var T;if(T=typeof g.dictionary==\"string\"?o.string2buf(g.dictionary):l.call(g.dictionary)===\"[object ArrayBuffer]\"?new Uint8Array(g.dictionary):g.dictionary,(b=r.deflateSetDictionary(this.strm,T))!==c)throw new Error(a[b]);this._dict_set=!0}}function p(m,g){var b=new d(g);if(b.push(m,!0),b.err)throw b.msg||a[b.err];return b.result}d.prototype.push=function(m,g){var b,T,S=this.strm,I=this.options.chunkSize;if(this.ended)return!1;T=g===~~g?g:g===!0?4:0,typeof m==\"string\"?S.input=o.string2buf(m):l.call(m)===\"[object ArrayBuffer]\"?S.input=new Uint8Array(m):S.input=m,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new i.Buf8(I),S.next_out=0,S.avail_out=I),(b=r.deflate(S,T))!==1&&b!==c)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||T!==4&&T!==2)||(this.options.to===\"string\"?this.onData(o.buf2binstring(i.shrinkBuf(S.output,S.next_out))):this.onData(i.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return T===4?(b=r.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===c):T!==2||(this.onEnd(c),!(S.avail_out=0))},d.prototype.onData=function(m){this.chunks.push(m)},d.prototype.onEnd=function(m){m===c&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},e.Deflate=d,e.deflate=p,e.deflateRaw=function(m,g){return(g=g||{}).raw=!0,p(m,g)},e.gzip=function(m,g){return(g=g||{}).gzip=!0,p(m,g)}},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/deflate\":46,\"./zlib/messages\":51,\"./zlib/zstream\":53}],40:[function(n,t,e){\"use strict\";var r=n(\"./zlib/inflate\"),i=n(\"./utils/common\"),o=n(\"./utils/strings\"),a=n(\"./zlib/constants\"),s=n(\"./zlib/messages\"),l=n(\"./zlib/zstream\"),c=n(\"./zlib/gzheader\"),h=Object.prototype.toString;function u(d){if(!(this instanceof u))return new u(d);this.options=i.assign({chunkSize:16384,windowBits:0,to:\"\"},d||{});var p=this.options;p.raw&&0<=p.windowBits&&p.windowBits<16&&(p.windowBits=-p.windowBits,p.windowBits===0&&(p.windowBits=-15)),!(0<=p.windowBits&&p.windowBits<16)||d&&d.windowBits||(p.windowBits+=32),15<p.windowBits&&p.windowBits<48&&(15&p.windowBits)==0&&(p.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var m=r.inflateInit2(this.strm,p.windowBits);if(m!==a.Z_OK)throw new Error(s[m]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(d,p){var m=new u(p);if(m.push(d,!0),m.err)throw m.msg||s[m.err];return m.result}u.prototype.push=function(d,p){var m,g,b,T,S,I,O=this.strm,$=this.options.chunkSize,k=this.options.dictionary,W=!1;if(this.ended)return!1;g=p===~~p?p:p===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof d==\"string\"?O.input=o.binstring2buf(d):h.call(d)===\"[object ArrayBuffer]\"?O.input=new Uint8Array(d):O.input=d,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new i.Buf8($),O.next_out=0,O.avail_out=$),(m=r.inflate(O,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&k&&(I=typeof k==\"string\"?o.string2buf(k):h.call(k)===\"[object ArrayBuffer]\"?new Uint8Array(k):k,m=r.inflateSetDictionary(this.strm,I)),m===a.Z_BUF_ERROR&&W===!0&&(m=a.Z_OK,W=!1),m!==a.Z_STREAM_END&&m!==a.Z_OK)return this.onEnd(m),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&m!==a.Z_STREAM_END&&(O.avail_in!==0||g!==a.Z_FINISH&&g!==a.Z_SYNC_FLUSH)||(this.options.to===\"string\"?(b=o.utf8border(O.output,O.next_out),T=O.next_out-b,S=o.buf2string(O.output,b),O.next_out=T,O.avail_out=$-T,T&&i.arraySet(O.output,O.output,b,T,0),this.onData(S)):this.onData(i.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(W=!0)}while((0<O.avail_in||O.avail_out===0)&&m!==a.Z_STREAM_END);return m===a.Z_STREAM_END&&(g=a.Z_FINISH),g===a.Z_FINISH?(m=r.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===a.Z_OK):g!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(O.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===a.Z_OK&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},e.Inflate=u,e.inflate=f,e.inflateRaw=function(d,p){return(p=p||{}).raw=!0,f(d,p)},e.ungzip=f},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/constants\":44,\"./zlib/gzheader\":47,\"./zlib/inflate\":49,\"./zlib/messages\":51,\"./zlib/zstream\":53}],41:[function(n,t,e){\"use strict\";var r=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Int32Array<\"u\";e.assign=function(a){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var l=s.shift();if(l){if(typeof l!=\"object\")throw new TypeError(l+\"must be non-object\");for(var c in l)l.hasOwnProperty(c)&&(a[c]=l[c])}}return a},e.shrinkBuf=function(a,s){return a.length===s?a:a.subarray?a.subarray(0,s):(a.length=s,a)};var i={arraySet:function(a,s,l,c,h){if(s.subarray&&a.subarray)a.set(s.subarray(l,l+c),h);else for(var u=0;u<c;u++)a[h+u]=s[l+u]},flattenChunks:function(a){var s,l,c,h,u,f;for(s=c=0,l=a.length;s<l;s++)c+=a[s].length;for(f=new Uint8Array(c),s=h=0,l=a.length;s<l;s++)u=a[s],f.set(u,h),h+=u.length;return f}},o={arraySet:function(a,s,l,c,h){for(var u=0;u<c;u++)a[h+u]=s[l+u]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)},{}],42:[function(n,t,e){\"use strict\";var r=n(\"./common\"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(c,h){if(h<65537&&(c.subarray&&o||!c.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(c,h));for(var u=\"\",f=0;f<h;f++)u+=String.fromCharCode(c[f]);return u}a[254]=a[254]=1,e.string2buf=function(c){var h,u,f,d,p,m=c.length,g=0;for(d=0;d<m;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<m&&(64512&(f=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),d++),g+=u<128?1:u<2048?2:u<65536?3:4;for(h=new r.Buf8(g),d=p=0;p<g;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<m&&(64512&(f=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),d++),u<128?h[p++]=u:(u<2048?h[p++]=192|u>>>6:(u<65536?h[p++]=224|u>>>12:(h[p++]=240|u>>>18,h[p++]=128|u>>>12&63),h[p++]=128|u>>>6&63),h[p++]=128|63&u);return h},e.buf2binstring=function(c){return l(c,c.length)},e.binstring2buf=function(c){for(var h=new r.Buf8(c.length),u=0,f=h.length;u<f;u++)h[u]=c.charCodeAt(u);return h},e.buf2string=function(c,h){var u,f,d,p,m=h||c.length,g=new Array(2*m);for(u=f=0;u<m;)if((d=c[u++])<128)g[f++]=d;else if(4<(p=a[d]))g[f++]=65533,u+=p-1;else{for(d&=p===2?31:p===3?15:7;1<p&&u<m;)d=d<<6|63&c[u++],p--;1<p?g[f++]=65533:d<65536?g[f++]=d:(d-=65536,g[f++]=55296|d>>10&1023,g[f++]=56320|1023&d)}return l(g,f)},e.utf8border=function(c,h){var u;for((h=h||c.length)>c.length&&(h=c.length),u=h-1;0<=u&&(192&c[u])==128;)u--;return u<0||u===0?h:u+a[c[u]]>h?u:h}},{\"./common\":41}],43:[function(n,t,e){\"use strict\";t.exports=function(r,i,o,a){for(var s=65535&r|0,l=r>>>16&65535|0,c=0;o!==0;){for(o-=c=2e3<o?2e3:o;l=l+(s=s+i[a++]|0)|0,--c;);s%=65521,l%=65521}return s|l<<16|0}},{}],44:[function(n,t,e){\"use strict\";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,t,e){\"use strict\";var r=(function(){for(var i,o=[],a=0;a<256;a++){i=a;for(var s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;o[a]=i}return o})();t.exports=function(i,o,a,s){var l=r,c=s+a;i^=-1;for(var h=s;h<c;h++)i=i>>>8^l[255&(i^o[h])];return-1^i}},{}],46:[function(n,t,e){\"use strict\";var r,i=n(\"../utils/common\"),o=n(\"./trees\"),a=n(\"./adler32\"),s=n(\"./crc32\"),l=n(\"./messages\"),c=0,h=4,u=0,f=-2,d=-1,p=4,m=2,g=8,b=9,T=286,S=30,I=19,O=2*T+1,$=15,k=3,W=258,U=W+k+1,v=42,_=113,y=1,H=2,nt=3,J=4;function lt(x,it){return x.msg=l[it],it}function ot(x){return(x<<1)-(4<x?9:0)}function et(x){for(var it=x.length;0<=--it;)x[it]=0}function B(x){var it=x.state,Q=it.pending;Q>x.avail_out&&(Q=x.avail_out),Q!==0&&(i.arraySet(x.output,it.pending_buf,it.pending_out,Q,x.next_out),x.next_out+=Q,it.pending_out+=Q,x.total_out+=Q,x.avail_out-=Q,it.pending-=Q,it.pending===0&&(it.pending_out=0))}function z(x,it){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,it),x.block_start=x.strstart,B(x.strm)}function st(x,it){x.pending_buf[x.pending++]=it}function dt(x,it){x.pending_buf[x.pending++]=it>>>8&255,x.pending_buf[x.pending++]=255&it}function ft(x,it){var Q,D,R=x.max_chain_length,G=x.strstart,tt=x.prev_length,ht=x.nice_match,V=x.strstart>x.w_size-U?x.strstart-(x.w_size-U):0,gt=x.window,St=x.w_mask,bt=x.prev,At=x.strstart+W,zt=gt[G+tt-1],Mt=gt[G+tt];x.prev_length>=x.good_match&&(R>>=2),ht>x.lookahead&&(ht=x.lookahead);do if(gt[(Q=it)+tt]===Mt&&gt[Q+tt-1]===zt&&gt[Q]===gt[G]&&gt[++Q]===gt[G+1]){G+=2,Q++;do;while(gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&gt[++G]===gt[++Q]&&G<At);if(D=W-(At-G),G=At-W,tt<D){if(x.match_start=it,ht<=(tt=D))break;zt=gt[G+tt-1],Mt=gt[G+tt]}}while((it=bt[it&St])>V&&--R!=0);return tt<=x.lookahead?tt:x.lookahead}function Ft(x){var it,Q,D,R,G,tt,ht,V,gt,St,bt=x.w_size;do{if(R=x.window_size-x.lookahead-x.strstart,x.strstart>=bt+(bt-U)){for(i.arraySet(x.window,x.window,bt,bt,0),x.match_start-=bt,x.strstart-=bt,x.block_start-=bt,it=Q=x.hash_size;D=x.head[--it],x.head[it]=bt<=D?D-bt:0,--Q;);for(it=Q=bt;D=x.prev[--it],x.prev[it]=bt<=D?D-bt:0,--Q;);R+=bt}if(x.strm.avail_in===0)break;if(tt=x.strm,ht=x.window,V=x.strstart+x.lookahead,gt=R,St=void 0,St=tt.avail_in,gt<St&&(St=gt),Q=St===0?0:(tt.avail_in-=St,i.arraySet(ht,tt.input,tt.next_in,St,V),tt.state.wrap===1?tt.adler=a(tt.adler,ht,St,V):tt.state.wrap===2&&(tt.adler=s(tt.adler,ht,St,V)),tt.next_in+=St,tt.total_in+=St,St),x.lookahead+=Q,x.lookahead+x.insert>=k)for(G=x.strstart-x.insert,x.ins_h=x.window[G],x.ins_h=(x.ins_h<<x.hash_shift^x.window[G+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[G+k-1])&x.hash_mask,x.prev[G&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=G,G++,x.insert--,!(x.lookahead+x.insert<k)););}while(x.lookahead<U&&x.strm.avail_in!==0)}function Xt(x,it){for(var Q,D;;){if(x.lookahead<U){if(Ft(x),x.lookahead<U&&it===c)return y;if(x.lookahead===0)break}if(Q=0,x.lookahead>=k&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),Q!==0&&x.strstart-Q<=x.w_size-U&&(x.match_length=ft(x,Q)),x.match_length>=k)if(D=o._tr_tally(x,x.strstart-x.match_start,x.match_length-k),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=k){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else D=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(D&&(z(x,!1),x.strm.avail_out===0))return y}return x.insert=x.strstart<k-1?x.strstart:k-1,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?y:H}function Et(x,it){for(var Q,D,R;;){if(x.lookahead<U){if(Ft(x),x.lookahead<U&&it===c)return y;if(x.lookahead===0)break}if(Q=0,x.lookahead>=k&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=k-1,Q!==0&&x.prev_length<x.max_lazy_match&&x.strstart-Q<=x.w_size-U&&(x.match_length=ft(x,Q),x.match_length<=5&&(x.strategy===1||x.match_length===k&&4096<x.strstart-x.match_start)&&(x.match_length=k-1)),x.prev_length>=k&&x.match_length<=x.prev_length){for(R=x.strstart+x.lookahead-k,D=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-k),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=R&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+k-1])&x.hash_mask,Q=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=k-1,x.strstart++,D&&(z(x,!1),x.strm.avail_out===0))return y}else if(x.match_available){if((D=o._tr_tally(x,0,x.window[x.strstart-1]))&&z(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return y}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(D=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<k-1?x.strstart:k-1,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?y:H}function _t(x,it,Q,D,R){this.good_length=x,this.max_lazy=it,this.nice_length=Q,this.max_chain=D,this.func=R}function Kt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*O),this.dyn_dtree=new i.Buf16(2*(2*S+1)),this.bl_tree=new i.Buf16(2*(2*I+1)),et(this.dyn_ltree),et(this.dyn_dtree),et(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16($+1),this.heap=new i.Buf16(2*T+1),et(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*T+1),et(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pt(x){var it;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=m,(it=x.state).pending=0,it.pending_out=0,it.wrap<0&&(it.wrap=-it.wrap),it.status=it.wrap?v:_,x.adler=it.wrap===2?0:1,it.last_flush=c,o._tr_init(it),u):lt(x,f)}function jt(x){var it=Pt(x);return it===u&&(function(Q){Q.window_size=2*Q.w_size,et(Q.head),Q.max_lazy_match=r[Q.level].max_lazy,Q.good_match=r[Q.level].good_length,Q.nice_match=r[Q.level].nice_length,Q.max_chain_length=r[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=k-1,Q.match_available=0,Q.ins_h=0})(x.state),it}function qt(x,it,Q,D,R,G){if(!x)return f;var tt=1;if(it===d&&(it=6),D<0?(tt=0,D=-D):15<D&&(tt=2,D-=16),R<1||b<R||Q!==g||D<8||15<D||it<0||9<it||G<0||p<G)return lt(x,f);D===8&&(D=9);var ht=new Kt;return(x.state=ht).strm=x,ht.wrap=tt,ht.gzhead=null,ht.w_bits=D,ht.w_size=1<<ht.w_bits,ht.w_mask=ht.w_size-1,ht.hash_bits=R+7,ht.hash_size=1<<ht.hash_bits,ht.hash_mask=ht.hash_size-1,ht.hash_shift=~~((ht.hash_bits+k-1)/k),ht.window=new i.Buf8(2*ht.w_size),ht.head=new i.Buf16(ht.hash_size),ht.prev=new i.Buf16(ht.w_size),ht.lit_bufsize=1<<R+6,ht.pending_buf_size=4*ht.lit_bufsize,ht.pending_buf=new i.Buf8(ht.pending_buf_size),ht.d_buf=1*ht.lit_bufsize,ht.l_buf=3*ht.lit_bufsize,ht.level=it,ht.strategy=G,ht.method=Q,jt(x)}r=[new _t(0,0,0,0,function(x,it){var Q=65535;for(Q>x.pending_buf_size-5&&(Q=x.pending_buf_size-5);;){if(x.lookahead<=1){if(Ft(x),x.lookahead===0&&it===c)return y;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var D=x.block_start+Q;if((x.strstart===0||x.strstart>=D)&&(x.lookahead=x.strstart-D,x.strstart=D,z(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-U&&(z(x,!1),x.strm.avail_out===0))return y}return x.insert=0,it===h?(z(x,!0),x.strm.avail_out===0?nt:J):(x.strstart>x.block_start&&(z(x,!1),x.strm.avail_out),y)}),new _t(4,4,8,4,Xt),new _t(4,5,16,8,Xt),new _t(4,6,32,32,Xt),new _t(4,4,16,16,Et),new _t(8,16,32,32,Et),new _t(8,16,128,128,Et),new _t(8,32,128,256,Et),new _t(32,128,258,1024,Et),new _t(32,258,258,4096,Et)],e.deflateInit=function(x,it){return qt(x,it,g,15,8,0)},e.deflateInit2=qt,e.deflateReset=jt,e.deflateResetKeep=Pt,e.deflateSetHeader=function(x,it){return x&&x.state?x.state.wrap!==2?f:(x.state.gzhead=it,u):f},e.deflate=function(x,it){var Q,D,R,G;if(!x||!x.state||5<it||it<0)return x?lt(x,f):f;if(D=x.state,!x.output||!x.input&&x.avail_in!==0||D.status===666&&it!==h)return lt(x,x.avail_out===0?-5:f);if(D.strm=x,Q=D.last_flush,D.last_flush=it,D.status===v)if(D.wrap===2)x.adler=0,st(D,31),st(D,139),st(D,8),D.gzhead?(st(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),st(D,255&D.gzhead.time),st(D,D.gzhead.time>>8&255),st(D,D.gzhead.time>>16&255),st(D,D.gzhead.time>>24&255),st(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),st(D,255&D.gzhead.os),D.gzhead.extra&&D.gzhead.extra.length&&(st(D,255&D.gzhead.extra.length),st(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(x.adler=s(x.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(st(D,0),st(D,0),st(D,0),st(D,0),st(D,0),st(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),st(D,3),D.status=_);else{var tt=g+(D.w_bits-8<<4)<<8;tt|=(2<=D.strategy||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6,D.strstart!==0&&(tt|=32),tt+=31-tt%31,D.status=_,dt(D,tt),D.strstart!==0&&(dt(D,x.adler>>>16),dt(D,65535&x.adler)),x.adler=1}if(D.status===69)if(D.gzhead.extra){for(R=D.pending;D.gzindex<(65535&D.gzhead.extra.length)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending!==D.pending_buf_size));)st(D,255&D.gzhead.extra[D.gzindex]),D.gzindex++;D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),D.gzindex===D.gzhead.extra.length&&(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending===D.pending_buf_size)){G=1;break}G=D.gzindex<D.gzhead.name.length?255&D.gzhead.name.charCodeAt(D.gzindex++):0,st(D,G)}while(G!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),G===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===91)if(D.gzhead.comment){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),B(x),R=D.pending,D.pending===D.pending_buf_size)){G=1;break}G=D.gzindex<D.gzhead.comment.length?255&D.gzhead.comment.charCodeAt(D.gzindex++):0,st(D,G)}while(G!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=s(x.adler,D.pending_buf,D.pending-R,R)),G===0&&(D.status=103)}else D.status=103;if(D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&B(x),D.pending+2<=D.pending_buf_size&&(st(D,255&x.adler),st(D,x.adler>>8&255),x.adler=0,D.status=_)):D.status=_),D.pending!==0){if(B(x),x.avail_out===0)return D.last_flush=-1,u}else if(x.avail_in===0&&ot(it)<=ot(Q)&&it!==h)return lt(x,-5);if(D.status===666&&x.avail_in!==0)return lt(x,-5);if(x.avail_in!==0||D.lookahead!==0||it!==c&&D.status!==666){var ht=D.strategy===2?(function(V,gt){for(var St;;){if(V.lookahead===0&&(Ft(V),V.lookahead===0)){if(gt===c)return y;break}if(V.match_length=0,St=o._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,St&&(z(V,!1),V.strm.avail_out===0))return y}return V.insert=0,gt===h?(z(V,!0),V.strm.avail_out===0?nt:J):V.last_lit&&(z(V,!1),V.strm.avail_out===0)?y:H})(D,it):D.strategy===3?(function(V,gt){for(var St,bt,At,zt,Mt=V.window;;){if(V.lookahead<=W){if(Ft(V),V.lookahead<=W&&gt===c)return y;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=k&&0<V.strstart&&(bt=Mt[At=V.strstart-1])===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]){zt=V.strstart+W;do;while(bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&bt===Mt[++At]&&At<zt);V.match_length=W-(zt-At),V.match_length>V.lookahead&&(V.match_length=V.lookahead)}if(V.match_length>=k?(St=o._tr_tally(V,1,V.match_length-k),V.lookahead-=V.match_length,V.strstart+=V.match_length,V.match_length=0):(St=o._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++),St&&(z(V,!1),V.strm.avail_out===0))return y}return V.insert=0,gt===h?(z(V,!0),V.strm.avail_out===0?nt:J):V.last_lit&&(z(V,!1),V.strm.avail_out===0)?y:H})(D,it):r[D.level].func(D,it);if(ht!==nt&&ht!==J||(D.status=666),ht===y||ht===nt)return x.avail_out===0&&(D.last_flush=-1),u;if(ht===H&&(it===1?o._tr_align(D):it!==5&&(o._tr_stored_block(D,0,0,!1),it===3&&(et(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),B(x),x.avail_out===0))return D.last_flush=-1,u}return it!==h?u:D.wrap<=0?1:(D.wrap===2?(st(D,255&x.adler),st(D,x.adler>>8&255),st(D,x.adler>>16&255),st(D,x.adler>>24&255),st(D,255&x.total_in),st(D,x.total_in>>8&255),st(D,x.total_in>>16&255),st(D,x.total_in>>24&255)):(dt(D,x.adler>>>16),dt(D,65535&x.adler)),B(x),0<D.wrap&&(D.wrap=-D.wrap),D.pending!==0?u:1)},e.deflateEnd=function(x){var it;return x&&x.state?(it=x.state.status)!==v&&it!==69&&it!==73&&it!==91&&it!==103&&it!==_&&it!==666?lt(x,f):(x.state=null,it===_?lt(x,-3):u):f},e.deflateSetDictionary=function(x,it){var Q,D,R,G,tt,ht,V,gt,St=it.length;if(!x||!x.state||(G=(Q=x.state).wrap)===2||G===1&&Q.status!==v||Q.lookahead)return f;for(G===1&&(x.adler=a(x.adler,it,St,0)),Q.wrap=0,St>=Q.w_size&&(G===0&&(et(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),gt=new i.Buf8(Q.w_size),i.arraySet(gt,it,St-Q.w_size,Q.w_size,0),it=gt,St=Q.w_size),tt=x.avail_in,ht=x.next_in,V=x.input,x.avail_in=St,x.next_in=0,x.input=it,Ft(Q);Q.lookahead>=k;){for(D=Q.strstart,R=Q.lookahead-(k-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[D+k-1])&Q.hash_mask,Q.prev[D&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=D,D++,--R;);Q.strstart=D,Q.lookahead=k-1,Ft(Q)}return Q.strstart+=Q.lookahead,Q.block_start=Q.strstart,Q.insert=Q.lookahead,Q.lookahead=0,Q.match_length=Q.prev_length=k-1,Q.match_available=0,x.next_in=ht,x.input=V,x.avail_in=tt,Q.wrap=G,u},e.deflateInfo=\"pako deflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./messages\":51,\"./trees\":52}],47:[function(n,t,e){\"use strict\";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},{}],48:[function(n,t,e){\"use strict\";t.exports=function(r,i){var o,a,s,l,c,h,u,f,d,p,m,g,b,T,S,I,O,$,k,W,U,v,_,y,H;o=r.state,a=r.next_in,y=r.input,s=a+(r.avail_in-5),l=r.next_out,H=r.output,c=l-(i-r.avail_out),h=l+(r.avail_out-257),u=o.dmax,f=o.wsize,d=o.whave,p=o.wnext,m=o.window,g=o.hold,b=o.bits,T=o.lencode,S=o.distcode,I=(1<<o.lenbits)-1,O=(1<<o.distbits)-1;t:do{b<15&&(g+=y[a++]<<b,b+=8,g+=y[a++]<<b,b+=8),$=T[g&I];e:for(;;){if(g>>>=k=$>>>24,b-=k,(k=$>>>16&255)===0)H[l++]=65535&$;else{if(!(16&k)){if((64&k)==0){$=T[(65535&$)+(g&(1<<k)-1)];continue e}if(32&k){o.mode=12;break t}r.msg=\"invalid literal/length code\",o.mode=30;break t}W=65535&$,(k&=15)&&(b<k&&(g+=y[a++]<<b,b+=8),W+=g&(1<<k)-1,g>>>=k,b-=k),b<15&&(g+=y[a++]<<b,b+=8,g+=y[a++]<<b,b+=8),$=S[g&O];r:for(;;){if(g>>>=k=$>>>24,b-=k,!(16&(k=$>>>16&255))){if((64&k)==0){$=S[(65535&$)+(g&(1<<k)-1)];continue r}r.msg=\"invalid distance code\",o.mode=30;break t}if(U=65535&$,b<(k&=15)&&(g+=y[a++]<<b,(b+=8)<k&&(g+=y[a++]<<b,b+=8)),u<(U+=g&(1<<k)-1)){r.msg=\"invalid distance too far back\",o.mode=30;break t}if(g>>>=k,b-=k,(k=l-c)<U){if(d<(k=U-k)&&o.sane){r.msg=\"invalid distance too far back\",o.mode=30;break t}if(_=m,(v=0)===p){if(v+=f-k,k<W){for(W-=k;H[l++]=m[v++],--k;);v=l-U,_=H}}else if(p<k){if(v+=f+p-k,(k-=p)<W){for(W-=k;H[l++]=m[v++],--k;);if(v=0,p<W){for(W-=k=p;H[l++]=m[v++],--k;);v=l-U,_=H}}}else if(v+=p-k,k<W){for(W-=k;H[l++]=m[v++],--k;);v=l-U,_=H}for(;2<W;)H[l++]=_[v++],H[l++]=_[v++],H[l++]=_[v++],W-=3;W&&(H[l++]=_[v++],1<W&&(H[l++]=_[v++]))}else{for(v=l-U;H[l++]=H[v++],H[l++]=H[v++],H[l++]=H[v++],2<(W-=3););W&&(H[l++]=H[v++],1<W&&(H[l++]=H[v++]))}break}}break}}while(a<s&&l<h);a-=W=b>>3,g&=(1<<(b-=W<<3))-1,r.next_in=a,r.next_out=l,r.avail_in=a<s?s-a+5:5-(a-s),r.avail_out=l<h?h-l+257:257-(l-h),o.hold=g,o.bits=b}},{}],49:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=n(\"./adler32\"),o=n(\"./crc32\"),a=n(\"./inffast\"),s=n(\"./inftrees\"),l=1,c=2,h=0,u=-2,f=1,d=852,p=592;function m(v){return(v>>>24&255)+(v>>>8&65280)+((65280&v)<<8)+((255&v)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(v){var _;return v&&v.state?(_=v.state,v.total_in=v.total_out=_.total=0,v.msg=\"\",_.wrap&&(v.adler=1&_.wrap),_.mode=f,_.last=0,_.havedict=0,_.dmax=32768,_.head=null,_.hold=0,_.bits=0,_.lencode=_.lendyn=new r.Buf32(d),_.distcode=_.distdyn=new r.Buf32(p),_.sane=1,_.back=-1,h):u}function T(v){var _;return v&&v.state?((_=v.state).wsize=0,_.whave=0,_.wnext=0,b(v)):u}function S(v,_){var y,H;return v&&v.state?(H=v.state,_<0?(y=0,_=-_):(y=1+(_>>4),_<48&&(_&=15)),_&&(_<8||15<_)?u:(H.window!==null&&H.wbits!==_&&(H.window=null),H.wrap=y,H.wbits=_,T(v))):u}function I(v,_){var y,H;return v?(H=new g,(v.state=H).window=null,(y=S(v,_))!==h&&(v.state=null),y):u}var O,$,k=!0;function W(v){if(k){var _;for(O=new r.Buf32(512),$=new r.Buf32(32),_=0;_<144;)v.lens[_++]=8;for(;_<256;)v.lens[_++]=9;for(;_<280;)v.lens[_++]=7;for(;_<288;)v.lens[_++]=8;for(s(l,v.lens,0,288,O,0,v.work,{bits:9}),_=0;_<32;)v.lens[_++]=5;s(c,v.lens,0,32,$,0,v.work,{bits:5}),k=!1}v.lencode=O,v.lenbits=9,v.distcode=$,v.distbits=5}function U(v,_,y,H){var nt,J=v.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new r.Buf8(J.wsize)),H>=J.wsize?(r.arraySet(J.window,_,y-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):(H<(nt=J.wsize-J.wnext)&&(nt=H),r.arraySet(J.window,_,y-H,nt,J.wnext),(H-=nt)?(r.arraySet(J.window,_,y-H,H,0),J.wnext=H,J.whave=J.wsize):(J.wnext+=nt,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=nt))),0}e.inflateReset=T,e.inflateReset2=S,e.inflateResetKeep=b,e.inflateInit=function(v){return I(v,15)},e.inflateInit2=I,e.inflate=function(v,_){var y,H,nt,J,lt,ot,et,B,z,st,dt,ft,Ft,Xt,Et,_t,Kt,Pt,jt,qt,x,it,Q,D,R=0,G=new r.Buf8(4),tt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!v||!v.state||!v.output||!v.input&&v.avail_in!==0)return u;(y=v.state).mode===12&&(y.mode=13),lt=v.next_out,nt=v.output,et=v.avail_out,J=v.next_in,H=v.input,ot=v.avail_in,B=y.hold,z=y.bits,st=ot,dt=et,it=h;t:for(;;)switch(y.mode){case f:if(y.wrap===0){y.mode=13;break}for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(2&y.wrap&&B===35615){G[y.check=0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0),z=B=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&B)<<8)+(B>>8))%31){v.msg=\"incorrect header check\",y.mode=30;break}if((15&B)!=8){v.msg=\"unknown compression method\",y.mode=30;break}if(z-=4,x=8+(15&(B>>>=4)),y.wbits===0)y.wbits=x;else if(x>y.wbits){v.msg=\"invalid window size\",y.mode=30;break}y.dmax=1<<x,v.adler=y.check=1,y.mode=512&B?10:12,z=B=0;break;case 2:for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(y.flags=B,(255&y.flags)!=8){v.msg=\"unknown compression method\",y.mode=30;break}if(57344&y.flags){v.msg=\"unknown header flags set\",y.mode=30;break}y.head&&(y.head.text=B>>8&1),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0,y.mode=3;case 3:for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.head&&(y.head.time=B),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,G[2]=B>>>16&255,G[3]=B>>>24&255,y.check=o(y.check,G,4,0)),z=B=0,y.mode=4;case 4:for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.head&&(y.head.xflags=255&B,y.head.os=B>>8),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0,y.mode=5;case 5:if(1024&y.flags){for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.length=B,y.head&&(y.head.extra_len=B),512&y.flags&&(G[0]=255&B,G[1]=B>>>8&255,y.check=o(y.check,G,2,0)),z=B=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(ot<(ft=y.length)&&(ft=ot),ft&&(y.head&&(x=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),r.arraySet(y.head.extra,H,J,ft,x)),512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,y.length-=ft),y.length))break t;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(ot===0)break t;for(ft=0;x=H[J+ft++],y.head&&x&&y.length<65536&&(y.head.name+=String.fromCharCode(x)),x&&ft<ot;);if(512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,x)break t}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(ot===0)break t;for(ft=0;x=H[J+ft++],y.head&&x&&y.length<65536&&(y.head.comment+=String.fromCharCode(x)),x&&ft<ot;);if(512&y.flags&&(y.check=o(y.check,H,ft,J)),ot-=ft,J+=ft,x)break t}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;z<16;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B!==(65535&y.check)){v.msg=\"header crc mismatch\",y.mode=30;break}z=B=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),v.adler=y.check=0,y.mode=12;break;case 10:for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}v.adler=y.check=m(B),z=B=0,y.mode=11;case 11:if(y.havedict===0)return v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,2;v.adler=y.check=1,y.mode=12;case 12:if(_===5||_===6)break t;case 13:if(y.last){B>>>=7&z,z-=7&z,y.mode=27;break}for(;z<3;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}switch(y.last=1&B,z-=1,3&(B>>>=1)){case 0:y.mode=14;break;case 1:if(W(y),y.mode=20,_!==6)break;B>>>=2,z-=2;break t;case 2:y.mode=17;break;case 3:v.msg=\"invalid block type\",y.mode=30}B>>>=2,z-=2;break;case 14:for(B>>>=7&z,z-=7&z;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if((65535&B)!=(B>>>16^65535)){v.msg=\"invalid stored block lengths\",y.mode=30;break}if(y.length=65535&B,z=B=0,y.mode=15,_===6)break t;case 15:y.mode=16;case 16:if(ft=y.length){if(ot<ft&&(ft=ot),et<ft&&(ft=et),ft===0)break t;r.arraySet(nt,H,J,ft,lt),ot-=ft,J+=ft,et-=ft,lt+=ft,y.length-=ft;break}y.mode=12;break;case 17:for(;z<14;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(y.nlen=257+(31&B),B>>>=5,z-=5,y.ndist=1+(31&B),B>>>=5,z-=5,y.ncode=4+(15&B),B>>>=4,z-=4,286<y.nlen||30<y.ndist){v.msg=\"too many length or distance symbols\",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;z<3;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.lens[tt[y.have++]]=7&B,B>>>=3,z-=3}for(;y.have<19;)y.lens[tt[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,Q={bits:y.lenbits},it=s(0,y.lens,0,19,y.lencode,0,y.work,Q),y.lenbits=Q.bits,it){v.msg=\"invalid code lengths set\",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;_t=(R=y.lencode[B&(1<<y.lenbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(Kt<16)B>>>=Et,z-=Et,y.lens[y.have++]=Kt;else{if(Kt===16){for(D=Et+2;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B>>>=Et,z-=Et,y.have===0){v.msg=\"invalid bit length repeat\",y.mode=30;break}x=y.lens[y.have-1],ft=3+(3&B),B>>>=2,z-=2}else if(Kt===17){for(D=Et+3;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}z-=Et,x=0,ft=3+(7&(B>>>=Et)),B>>>=3,z-=3}else{for(D=Et+7;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}z-=Et,x=0,ft=11+(127&(B>>>=Et)),B>>>=7,z-=7}if(y.have+ft>y.nlen+y.ndist){v.msg=\"invalid bit length repeat\",y.mode=30;break}for(;ft--;)y.lens[y.have++]=x}}if(y.mode===30)break;if(y.lens[256]===0){v.msg=\"invalid code -- missing end-of-block\",y.mode=30;break}if(y.lenbits=9,Q={bits:y.lenbits},it=s(l,y.lens,0,y.nlen,y.lencode,0,y.work,Q),y.lenbits=Q.bits,it){v.msg=\"invalid literal/lengths set\",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,Q={bits:y.distbits},it=s(c,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,Q),y.distbits=Q.bits,it){v.msg=\"invalid distances set\",y.mode=30;break}if(y.mode=20,_===6)break t;case 20:y.mode=21;case 21:if(6<=ot&&258<=et){v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,a(v,dt),lt=v.next_out,nt=v.output,et=v.avail_out,J=v.next_in,H=v.input,ot=v.avail_in,B=y.hold,z=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;_t=(R=y.lencode[B&(1<<y.lenbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(_t&&(240&_t)==0){for(Pt=Et,jt=_t,qt=Kt;_t=(R=y.lencode[qt+((B&(1<<Pt+jt)-1)>>Pt)])>>>16&255,Kt=65535&R,!(Pt+(Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}B>>>=Pt,z-=Pt,y.back+=Pt}if(B>>>=Et,z-=Et,y.back+=Et,y.length=Kt,_t===0){y.mode=26;break}if(32&_t){y.back=-1,y.mode=12;break}if(64&_t){v.msg=\"invalid literal/length code\",y.mode=30;break}y.extra=15&_t,y.mode=22;case 22:if(y.extra){for(D=y.extra;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.length+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;_t=(R=y.distcode[B&(1<<y.distbits)-1])>>>16&255,Kt=65535&R,!((Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if((240&_t)==0){for(Pt=Et,jt=_t,qt=Kt;_t=(R=y.distcode[qt+((B&(1<<Pt+jt)-1)>>Pt)])>>>16&255,Kt=65535&R,!(Pt+(Et=R>>>24)<=z);){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}B>>>=Pt,z-=Pt,y.back+=Pt}if(B>>>=Et,z-=Et,y.back+=Et,64&_t){v.msg=\"invalid distance code\",y.mode=30;break}y.offset=Kt,y.extra=15&_t,y.mode=24;case 24:if(y.extra){for(D=y.extra;z<D;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}y.offset+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){v.msg=\"invalid distance too far back\",y.mode=30;break}y.mode=25;case 25:if(et===0)break t;if(ft=dt-et,y.offset>ft){if((ft=y.offset-ft)>y.whave&&y.sane){v.msg=\"invalid distance too far back\",y.mode=30;break}Ft=ft>y.wnext?(ft-=y.wnext,y.wsize-ft):y.wnext-ft,ft>y.length&&(ft=y.length),Xt=y.window}else Xt=nt,Ft=lt-y.offset,ft=y.length;for(et<ft&&(ft=et),et-=ft,y.length-=ft;nt[lt++]=Xt[Ft++],--ft;);y.length===0&&(y.mode=21);break;case 26:if(et===0)break t;nt[lt++]=y.length,et--,y.mode=21;break;case 27:if(y.wrap){for(;z<32;){if(ot===0)break t;ot--,B|=H[J++]<<z,z+=8}if(dt-=et,v.total_out+=dt,y.total+=dt,dt&&(v.adler=y.check=y.flags?o(y.check,nt,dt,lt-dt):i(y.check,nt,dt,lt-dt)),dt=et,(y.flags?B:m(B))!==y.check){v.msg=\"incorrect data check\",y.mode=30;break}z=B=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;z<32;){if(ot===0)break t;ot--,B+=H[J++]<<z,z+=8}if(B!==(4294967295&y.total)){v.msg=\"incorrect length check\",y.mode=30;break}z=B=0}y.mode=29;case 29:it=1;break t;case 30:it=-3;break t;case 31:return-4;default:return u}return v.next_out=lt,v.avail_out=et,v.next_in=J,v.avail_in=ot,y.hold=B,y.bits=z,(y.wsize||dt!==v.avail_out&&y.mode<30&&(y.mode<27||_!==4))&&U(v,v.output,v.next_out,dt-v.avail_out)?(y.mode=31,-4):(st-=v.avail_in,dt-=v.avail_out,v.total_in+=st,v.total_out+=dt,y.total+=dt,y.wrap&&dt&&(v.adler=y.check=y.flags?o(y.check,nt,dt,v.next_out-dt):i(y.check,nt,dt,v.next_out-dt)),v.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(st==0&&dt===0||_===4)&&it===h&&(it=-5),it)},e.inflateEnd=function(v){if(!v||!v.state)return u;var _=v.state;return _.window&&(_.window=null),v.state=null,h},e.inflateGetHeader=function(v,_){var y;return v&&v.state?(2&(y=v.state).wrap)==0?u:((y.head=_).done=!1,h):u},e.inflateSetDictionary=function(v,_){var y,H=_.length;return v&&v.state?(y=v.state).wrap!==0&&y.mode!==11?u:y.mode===11&&i(1,_,H,0)!==y.check?-3:U(v,_,H,H)?(y.mode=31,-4):(y.havedict=1,h):u},e.inflateInfo=\"pako inflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./inffast\":48,\"./inftrees\":50}],50:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(l,c,h,u,f,d,p,m){var g,b,T,S,I,O,$,k,W,U=m.bits,v=0,_=0,y=0,H=0,nt=0,J=0,lt=0,ot=0,et=0,B=0,z=null,st=0,dt=new r.Buf16(16),ft=new r.Buf16(16),Ft=null,Xt=0;for(v=0;v<=15;v++)dt[v]=0;for(_=0;_<u;_++)dt[c[h+_]]++;for(nt=U,H=15;1<=H&&dt[H]===0;H--);if(H<nt&&(nt=H),H===0)return f[d++]=20971520,f[d++]=20971520,m.bits=1,0;for(y=1;y<H&&dt[y]===0;y++);for(nt<y&&(nt=y),v=ot=1;v<=15;v++)if(ot<<=1,(ot-=dt[v])<0)return-1;if(0<ot&&(l===0||H!==1))return-1;for(ft[1]=0,v=1;v<15;v++)ft[v+1]=ft[v]+dt[v];for(_=0;_<u;_++)c[h+_]!==0&&(p[ft[c[h+_]]++]=_);if(O=l===0?(z=Ft=p,19):l===1?(z=i,st-=257,Ft=o,Xt-=257,256):(z=a,Ft=s,-1),v=y,I=d,lt=_=B=0,T=-1,S=(et=1<<(J=nt))-1,l===1&&852<et||l===2&&592<et)return 1;for(;;){for($=v-lt,W=p[_]<O?(k=0,p[_]):p[_]>O?(k=Ft[Xt+p[_]],z[st+p[_]]):(k=96,0),g=1<<v-lt,y=b=1<<J;f[I+(B>>lt)+(b-=g)]=$<<24|k<<16|W|0,b!==0;);for(g=1<<v-1;B&g;)g>>=1;if(g!==0?(B&=g-1,B+=g):B=0,_++,--dt[v]==0){if(v===H)break;v=c[h+p[_]]}if(nt<v&&(B&S)!==T){for(lt===0&&(lt=nt),I+=y,ot=1<<(J=v-lt);J+lt<H&&!((ot-=dt[J+lt])<=0);)J++,ot<<=1;if(et+=1<<J,l===1&&852<et||l===2&&592<et)return 1;f[T=B&S]=nt<<24|J<<16|I-d|0}}return B!==0&&(f[I+B]=v-lt<<24|64<<16|0),m.bits=nt,0}},{\"../utils/common\":41}],51:[function(n,t,e){\"use strict\";t.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},{}],52:[function(n,t,e){\"use strict\";var r=n(\"../utils/common\"),i=0,o=1;function a(R){for(var G=R.length;0<=--G;)R[G]=0}var s=0,l=29,c=256,h=c+1+l,u=30,f=19,d=2*h+1,p=15,m=16,g=7,b=256,T=16,S=17,I=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=new Array(2*(h+2));a(U);var v=new Array(2*u);a(v);var _=new Array(512);a(_);var y=new Array(256);a(y);var H=new Array(l);a(H);var nt,J,lt,ot=new Array(u);function et(R,G,tt,ht,V){this.static_tree=R,this.extra_bits=G,this.extra_base=tt,this.elems=ht,this.max_length=V,this.has_stree=R&&R.length}function B(R,G){this.dyn_tree=R,this.max_code=0,this.stat_desc=G}function z(R){return R<256?_[R]:_[256+(R>>>7)]}function st(R,G){R.pending_buf[R.pending++]=255&G,R.pending_buf[R.pending++]=G>>>8&255}function dt(R,G,tt){R.bi_valid>m-tt?(R.bi_buf|=G<<R.bi_valid&65535,st(R,R.bi_buf),R.bi_buf=G>>m-R.bi_valid,R.bi_valid+=tt-m):(R.bi_buf|=G<<R.bi_valid&65535,R.bi_valid+=tt)}function ft(R,G,tt){dt(R,tt[2*G],tt[2*G+1])}function Ft(R,G){for(var tt=0;tt|=1&R,R>>>=1,tt<<=1,0<--G;);return tt>>>1}function Xt(R,G,tt){var ht,V,gt=new Array(p+1),St=0;for(ht=1;ht<=p;ht++)gt[ht]=St=St+tt[ht-1]<<1;for(V=0;V<=G;V++){var bt=R[2*V+1];bt!==0&&(R[2*V]=Ft(gt[bt]++,bt))}}function Et(R){var G;for(G=0;G<h;G++)R.dyn_ltree[2*G]=0;for(G=0;G<u;G++)R.dyn_dtree[2*G]=0;for(G=0;G<f;G++)R.bl_tree[2*G]=0;R.dyn_ltree[2*b]=1,R.opt_len=R.static_len=0,R.last_lit=R.matches=0}function _t(R){8<R.bi_valid?st(R,R.bi_buf):0<R.bi_valid&&(R.pending_buf[R.pending++]=R.bi_buf),R.bi_buf=0,R.bi_valid=0}function Kt(R,G,tt,ht){var V=2*G,gt=2*tt;return R[V]<R[gt]||R[V]===R[gt]&&ht[G]<=ht[tt]}function Pt(R,G,tt){for(var ht=R.heap[tt],V=tt<<1;V<=R.heap_len&&(V<R.heap_len&&Kt(G,R.heap[V+1],R.heap[V],R.depth)&&V++,!Kt(G,ht,R.heap[V],R.depth));)R.heap[tt]=R.heap[V],tt=V,V<<=1;R.heap[tt]=ht}function jt(R,G,tt){var ht,V,gt,St,bt=0;if(R.last_lit!==0)for(;ht=R.pending_buf[R.d_buf+2*bt]<<8|R.pending_buf[R.d_buf+2*bt+1],V=R.pending_buf[R.l_buf+bt],bt++,ht===0?ft(R,V,G):(ft(R,(gt=y[V])+c+1,G),(St=O[gt])!==0&&dt(R,V-=H[gt],St),ft(R,gt=z(--ht),tt),(St=$[gt])!==0&&dt(R,ht-=ot[gt],St)),bt<R.last_lit;);ft(R,b,G)}function qt(R,G){var tt,ht,V,gt=G.dyn_tree,St=G.stat_desc.static_tree,bt=G.stat_desc.has_stree,At=G.stat_desc.elems,zt=-1;for(R.heap_len=0,R.heap_max=d,tt=0;tt<At;tt++)gt[2*tt]!==0?(R.heap[++R.heap_len]=zt=tt,R.depth[tt]=0):gt[2*tt+1]=0;for(;R.heap_len<2;)gt[2*(V=R.heap[++R.heap_len]=zt<2?++zt:0)]=1,R.depth[V]=0,R.opt_len--,bt&&(R.static_len-=St[2*V+1]);for(G.max_code=zt,tt=R.heap_len>>1;1<=tt;tt--)Pt(R,gt,tt);for(V=At;tt=R.heap[1],R.heap[1]=R.heap[R.heap_len--],Pt(R,gt,1),ht=R.heap[1],R.heap[--R.heap_max]=tt,R.heap[--R.heap_max]=ht,gt[2*V]=gt[2*tt]+gt[2*ht],R.depth[V]=(R.depth[tt]>=R.depth[ht]?R.depth[tt]:R.depth[ht])+1,gt[2*tt+1]=gt[2*ht+1]=V,R.heap[1]=V++,Pt(R,gt,1),2<=R.heap_len;);R.heap[--R.heap_max]=R.heap[1],(function(Mt,ue){var re,he,Te,Zt,We,Je,Se=ue.dyn_tree,He=ue.max_code,Nr=ue.stat_desc.static_tree,Rr=ue.stat_desc.has_stree,Vr=ue.stat_desc.extra_bits,fr=ue.stat_desc.extra_base,Qe=ue.stat_desc.max_length,or=0;for(Zt=0;Zt<=p;Zt++)Mt.bl_count[Zt]=0;for(Se[2*Mt.heap[Mt.heap_max]+1]=0,re=Mt.heap_max+1;re<d;re++)Qe<(Zt=Se[2*Se[2*(he=Mt.heap[re])+1]+1]+1)&&(Zt=Qe,or++),Se[2*he+1]=Zt,He<he||(Mt.bl_count[Zt]++,We=0,fr<=he&&(We=Vr[he-fr]),Je=Se[2*he],Mt.opt_len+=Je*(Zt+We),Rr&&(Mt.static_len+=Je*(Nr[2*he+1]+We)));if(or!==0){do{for(Zt=Qe-1;Mt.bl_count[Zt]===0;)Zt--;Mt.bl_count[Zt]--,Mt.bl_count[Zt+1]+=2,Mt.bl_count[Qe]--,or-=2}while(0<or);for(Zt=Qe;Zt!==0;Zt--)for(he=Mt.bl_count[Zt];he!==0;)He<(Te=Mt.heap[--re])||(Se[2*Te+1]!==Zt&&(Mt.opt_len+=(Zt-Se[2*Te+1])*Se[2*Te],Se[2*Te+1]=Zt),he--)}})(R,G),Xt(gt,zt,R.bl_count)}function x(R,G,tt){var ht,V,gt=-1,St=G[1],bt=0,At=7,zt=4;for(St===0&&(At=138,zt=3),G[2*(tt+1)+1]=65535,ht=0;ht<=tt;ht++)V=St,St=G[2*(ht+1)+1],++bt<At&&V===St||(bt<zt?R.bl_tree[2*V]+=bt:V!==0?(V!==gt&&R.bl_tree[2*V]++,R.bl_tree[2*T]++):bt<=10?R.bl_tree[2*S]++:R.bl_tree[2*I]++,gt=V,zt=(bt=0)===St?(At=138,3):V===St?(At=6,3):(At=7,4))}function it(R,G,tt){var ht,V,gt=-1,St=G[1],bt=0,At=7,zt=4;for(St===0&&(At=138,zt=3),ht=0;ht<=tt;ht++)if(V=St,St=G[2*(ht+1)+1],!(++bt<At&&V===St)){if(bt<zt)for(;ft(R,V,R.bl_tree),--bt!=0;);else V!==0?(V!==gt&&(ft(R,V,R.bl_tree),bt--),ft(R,T,R.bl_tree),dt(R,bt-3,2)):bt<=10?(ft(R,S,R.bl_tree),dt(R,bt-3,3)):(ft(R,I,R.bl_tree),dt(R,bt-11,7));gt=V,zt=(bt=0)===St?(At=138,3):V===St?(At=6,3):(At=7,4)}}a(ot);var Q=!1;function D(R,G,tt,ht){dt(R,(s<<1)+(ht?1:0),3),(function(V,gt,St,bt){_t(V),bt&&(st(V,St),st(V,~St)),r.arraySet(V.pending_buf,V.window,gt,St,V.pending),V.pending+=St})(R,G,tt,!0)}e._tr_init=function(R){Q||((function(){var G,tt,ht,V,gt,St=new Array(p+1);for(V=ht=0;V<l-1;V++)for(H[V]=ht,G=0;G<1<<O[V];G++)y[ht++]=V;for(y[ht-1]=V,V=gt=0;V<16;V++)for(ot[V]=gt,G=0;G<1<<$[V];G++)_[gt++]=V;for(gt>>=7;V<u;V++)for(ot[V]=gt<<7,G=0;G<1<<$[V]-7;G++)_[256+gt++]=V;for(tt=0;tt<=p;tt++)St[tt]=0;for(G=0;G<=143;)U[2*G+1]=8,G++,St[8]++;for(;G<=255;)U[2*G+1]=9,G++,St[9]++;for(;G<=279;)U[2*G+1]=7,G++,St[7]++;for(;G<=287;)U[2*G+1]=8,G++,St[8]++;for(Xt(U,h+1,St),G=0;G<u;G++)v[2*G+1]=5,v[2*G]=Ft(G,5);nt=new et(U,O,c+1,h,p),J=new et(v,$,0,u,p),lt=new et(new Array(0),k,0,f,g)})(),Q=!0),R.l_desc=new B(R.dyn_ltree,nt),R.d_desc=new B(R.dyn_dtree,J),R.bl_desc=new B(R.bl_tree,lt),R.bi_buf=0,R.bi_valid=0,Et(R)},e._tr_stored_block=D,e._tr_flush_block=function(R,G,tt,ht){var V,gt,St=0;0<R.level?(R.strm.data_type===2&&(R.strm.data_type=(function(bt){var At,zt=4093624447;for(At=0;At<=31;At++,zt>>>=1)if(1&zt&&bt.dyn_ltree[2*At]!==0)return i;if(bt.dyn_ltree[18]!==0||bt.dyn_ltree[20]!==0||bt.dyn_ltree[26]!==0)return o;for(At=32;At<c;At++)if(bt.dyn_ltree[2*At]!==0)return o;return i})(R)),qt(R,R.l_desc),qt(R,R.d_desc),St=(function(bt){var At;for(x(bt,bt.dyn_ltree,bt.l_desc.max_code),x(bt,bt.dyn_dtree,bt.d_desc.max_code),qt(bt,bt.bl_desc),At=f-1;3<=At&&bt.bl_tree[2*W[At]+1]===0;At--);return bt.opt_len+=3*(At+1)+5+5+4,At})(R),V=R.opt_len+3+7>>>3,(gt=R.static_len+3+7>>>3)<=V&&(V=gt)):V=gt=tt+5,tt+4<=V&&G!==-1?D(R,G,tt,ht):R.strategy===4||gt===V?(dt(R,2+(ht?1:0),3),jt(R,U,v)):(dt(R,4+(ht?1:0),3),(function(bt,At,zt,Mt){var ue;for(dt(bt,At-257,5),dt(bt,zt-1,5),dt(bt,Mt-4,4),ue=0;ue<Mt;ue++)dt(bt,bt.bl_tree[2*W[ue]+1],3);it(bt,bt.dyn_ltree,At-1),it(bt,bt.dyn_dtree,zt-1)})(R,R.l_desc.max_code+1,R.d_desc.max_code+1,St+1),jt(R,R.dyn_ltree,R.dyn_dtree)),Et(R),ht&&_t(R)},e._tr_tally=function(R,G,tt){return R.pending_buf[R.d_buf+2*R.last_lit]=G>>>8&255,R.pending_buf[R.d_buf+2*R.last_lit+1]=255&G,R.pending_buf[R.l_buf+R.last_lit]=255&tt,R.last_lit++,G===0?R.dyn_ltree[2*tt]++:(R.matches++,G--,R.dyn_ltree[2*(y[tt]+c+1)]++,R.dyn_dtree[2*z(G)]++),R.last_lit===R.lit_bufsize-1},e._tr_align=function(R){dt(R,2,3),ft(R,b,U),(function(G){G.bi_valid===16?(st(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(R)}},{\"../utils/common\":41}],53:[function(n,t,e){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,t,e){(function(r){(function(i,o){\"use strict\";if(!i.setImmediate){var a,s,l,c,h=1,u={},f=!1,d=i.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(i);p=p&&p.setTimeout?p:i,a={}.toString.call(i.process)===\"[object process]\"?function(T){process.nextTick(function(){g(T)})}:(function(){if(i.postMessage&&!i.importScripts){var T=!0,S=i.onmessage;return i.onmessage=function(){T=!1},i.postMessage(\"\",\"*\"),i.onmessage=S,T}})()?(c=\"setImmediate$\"+Math.random()+\"$\",i.addEventListener?i.addEventListener(\"message\",b,!1):i.attachEvent(\"onmessage\",b),function(T){i.postMessage(c+T,\"*\")}):i.MessageChannel?((l=new MessageChannel).port1.onmessage=function(T){g(T.data)},function(T){l.port2.postMessage(T)}):d&&\"onreadystatechange\"in d.createElement(\"script\")?(s=d.documentElement,function(T){var S=d.createElement(\"script\");S.onreadystatechange=function(){g(T),S.onreadystatechange=null,s.removeChild(S),S=null},s.appendChild(S)}):function(T){setTimeout(g,0,T)},p.setImmediate=function(T){typeof T!=\"function\"&&(T=new Function(\"\"+T));for(var S=new Array(arguments.length-1),I=0;I<S.length;I++)S[I]=arguments[I+1];var O={callback:T,args:S};return u[h]=O,a(h),h++},p.clearImmediate=m}function m(T){delete u[T]}function g(T){if(f)setTimeout(g,0,T);else{var S=u[T];if(S){f=!0;try{(function(I){var O=I.callback,$=I.args;switch($.length){case 0:O();break;case 1:O($[0]);break;case 2:O($[0],$[1]);break;case 3:O($[0],$[1],$[2]);break;default:O.apply(o,$)}})(S)}finally{m(T),f=!1}}}}function b(T){T.source===i&&typeof T.data==\"string\"&&T.data.indexOf(c)===0&&g(+T.data.slice(c.length))}})(typeof self>\"u\"?r===void 0?this:r:self)}).call(this,typeof global<\"u\"?global:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}]},{},[10])(10)})});var Ch=Eo(()=>{});var Bh=Eo((Vx,Ts)=>{var jr=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";function Nh(n){for(var t=\"\",e=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c<n.length;)e=n.charCodeAt(c++),o=e>>2,r=n.charCodeAt(c++),a=(e&3)<<4|r>>4,i=n.charCodeAt(c++),s=(r&15)<<2|i>>6,l=i&63,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=jr.charAt(o)+jr.charAt(a)+jr.charAt(s)+jr.charAt(l);return t}function Rh(n){var t=\"\",e=0,r=0,i=0,o=0,a=0,s=0,l=0;n=n.replace(/[^\\w\\+\\/\\=]/g,\"\");for(var c=0;c<n.length;)o=jr.indexOf(n.charAt(c++)),a=jr.indexOf(n.charAt(c++)),e=o<<2|a>>4,t+=String.fromCharCode(e),s=jr.indexOf(n.charAt(c++)),r=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(r)),l=jr.indexOf(n.charAt(c++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Ze=(function(){return typeof Buffer<\"u\"&&typeof process<\"u\"&&typeof process.versions<\"u\"&&!!process.versions.node})(),Ss=(function(){if(typeof Buffer<\"u\"){var n=!Buffer.from;if(!n)try{Buffer.from(\"foo\",\"utf8\")}catch{n=!0}return n?function(t,e){return e?new Buffer(t,e):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function Lh(n){if(Ze){if(Buffer.alloc)return Buffer.alloc(n);var t=new Buffer(n);return t.fill(0),t}return typeof Uint8Array<\"u\"?new Uint8Array(n):new Array(n)}function Ph(n){return Ze?Buffer.allocUnsafe?Buffer.allocUnsafe(n):new Buffer(n):typeof Uint8Array<\"u\"?new Uint8Array(n):new Array(n)}var kn=function(t){return Ze?Ss(t,\"binary\"):t.split(\"\").map(function(e){return e.charCodeAt(0)&255})},ii=/\\u0000/g,ho=/[\\u0001-\\u0006]/g,fo=function(n){for(var t=[],e=0;e<n[0].length;++e)t.push.apply(t,n[0][e]);return t},my=fo,Es=function(n,t,e){for(var r=[],i=t;i<e;i+=2)r.push(String.fromCharCode(Mh(n,i)));return r.join(\"\").replace(ii,\"\")},gy=Es,po=function(n,t,e){for(var r=[],i=t;i<t+e;++i)r.push((\"0\"+n[i].toString(16)).slice(-2));return r.join(\"\")},by=po,_h=function(n){if(Array.isArray(n[0]))return[].concat.apply([],n);var t=0,e=0;for(e=0;e<n.length;++e)t+=n[e].length;var r=new Uint8Array(t);for(e=0,t=0;e<n.length;t+=n[e].length,++e)r.set(n[e],t);return r},An=_h;Ze&&(Es=function(n,t,e){return Buffer.isBuffer(n)?n.toString(\"utf16le\",t,e).replace(ii,\"\"):gy(n,t,e)},po=function(n,t,e){return Buffer.isBuffer(n)?n.toString(\"hex\",t,t+e):by(n,t,e)},fo=function(n){return n[0].length>0&&Buffer.isBuffer(n[0][0])?Buffer.concat(n[0]):my(n)},kn=function(n){return Ss(n,\"binary\")},An=function(n){return Buffer.isBuffer(n[0])?Buffer.concat(n):_h(n)});var yy=function(n,t){return n[t]},Mh=function(n,t){return n[t+1]*256+n[t]},xy=function(n,t){var e=n[t+1]*256+n[t];return e<32768?e:(65535-e+1)*-1},Ih=function(n,t){return n[t+3]*(1<<24)+(n[t+2]<<16)+(n[t+1]<<8)+n[t]},Cn=function(n,t){return(n[t+3]<<24)+(n[t+2]<<16)+(n[t+1]<<8)+n[t]};function Fh(n,t){var e,r,i=0;switch(n){case 1:e=yy(this,this.l);break;case 2:e=(t!==\"i\"?Mh:xy)(this,this.l);break;case 4:e=Cn(this,this.l);break;case 16:i=2,r=po(this,this.l,n)}return this.l+=n,i===0?e:r}var wy=function(n,t,e){n[e]=t&255,n[e+1]=t>>>8&255,n[e+2]=t>>>16&255,n[e+3]=t>>>24&255},vy=function(n,t,e){n[e]=t&255,n[e+1]=t>>8&255,n[e+2]=t>>16&255,n[e+3]=t>>24&255};function Ty(n,t,e){var r=0,i=0;switch(e){case\"hex\":for(;i<n;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this;case\"utf16le\":var o=this.l+n;for(i=0;i<Math.min(t.length,n);++i){var a=t.charCodeAt(i);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(n){case 1:r=1,this[this.l]=t&255;break;case 2:r=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 4:r=4,wy(this,t,this.l);break;case-4:r=4,vy(this,t,this.l);break}return this.l+=r,this}function Dh(n,t){var e=po(this,this.l,n.length>>1);if(e!==n)throw new Error(t+\"Expected \"+n+\" saw \"+e);this.l+=n.length>>1}function Gr(n,t){n.l=t,n.read_shift=Fh,n.chk=Dh,n.write_shift=Ty}function dr(n){var t=Lh(n);return Gr(t,0),t}var Oh=(function(){var n={};n.version=\"1.2.1\";function t(){for(var k=0,W=new Array(256),U=0;U!=256;++U)k=U,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,W[U]=k;return typeof Int32Array<\"u\"?new Int32Array(W):W}var e=t();function r(k){var W=0,U=0,v=0,_=typeof Int32Array<\"u\"?new Int32Array(4096):new Array(4096);for(v=0;v!=256;++v)_[v]=k[v];for(v=0;v!=256;++v)for(U=k[v],W=256+v;W<4096;W+=256)U=_[W]=U>>>8^k[U&255];var y=[];for(v=1;v!=16;++v)y[v-1]=typeof Int32Array<\"u\"?_.subarray(v*256,v*256+256):_.slice(v*256,v*256+256);return y}var i=r(e),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],h=i[5],u=i[6],f=i[7],d=i[8],p=i[9],m=i[10],g=i[11],b=i[12],T=i[13],S=i[14];function I(k,W){for(var U=W^-1,v=0,_=k.length;v<_;)U=U>>>8^e[(U^k.charCodeAt(v++))&255];return~U}function O(k,W){for(var U=W^-1,v=k.length-15,_=0;_<v;)U=S[k[_++]^U&255]^T[k[_++]^U>>8&255]^b[k[_++]^U>>16&255]^g[k[_++]^U>>>24]^m[k[_++]]^p[k[_++]]^d[k[_++]]^f[k[_++]]^u[k[_++]]^h[k[_++]]^c[k[_++]]^l[k[_++]]^s[k[_++]]^a[k[_++]]^o[k[_++]]^e[k[_++]];for(v+=15;_<v;)U=U>>>8^e[(U^k[_++])&255];return~U}function $(k,W){for(var U=W^-1,v=0,_=k.length,y=0,H=0;v<_;)y=k.charCodeAt(v++),y<128?U=U>>>8^e[(U^y)&255]:y<2048?(U=U>>>8^e[(U^(192|y>>6&31))&255],U=U>>>8^e[(U^(128|y&63))&255]):y>=55296&&y<57344?(y=(y&1023)+64,H=k.charCodeAt(v++)&1023,U=U>>>8^e[(U^(240|y>>8&7))&255],U=U>>>8^e[(U^(128|y>>2&63))&255],U=U>>>8^e[(U^(128|H>>6&15|(y&3)<<4))&255],U=U>>>8^e[(U^(128|H&63))&255]):(U=U>>>8^e[(U^(224|y>>12&15))&255],U=U>>>8^e[(U^(128|y>>6&63))&255],U=U>>>8^e[(U^(128|y&63))&255]);return~U}return n.table=e,n.bstr=I,n.buf=O,n.str=$,n})(),Nn=(function(){var t={};t.version=\"1.2.2\";function e(E,L){for(var N=E.split(\"/\"),P=L.split(\"/\"),M=0,F=0,K=Math.min(N.length,P.length);M<K;++M){if(F=N[M].length-P[M].length)return F;if(N[M]!=P[M])return N[M]<P[M]?-1:1}return N.length-P.length}function r(E){if(E.charAt(E.length-1)==\"/\")return E.slice(0,-1).indexOf(\"/\")===-1?E:r(E.slice(0,-1));var L=E.lastIndexOf(\"/\");return L===-1?E:E.slice(0,L+1)}function i(E){if(E.charAt(E.length-1)==\"/\")return i(E.slice(0,-1));var L=E.lastIndexOf(\"/\");return L===-1?E:E.slice(L+1)}function o(E,L){typeof L==\"string\"&&(L=new Date(L));var N=L.getHours();N=N<<6|L.getMinutes(),N=N<<5|L.getSeconds()>>>1,E.write_shift(2,N);var P=L.getFullYear()-1980;P=P<<4|L.getMonth()+1,P=P<<5|L.getDate(),E.write_shift(2,P)}function a(E){var L=E.read_shift(2)&65535,N=E.read_shift(2)&65535,P=new Date,M=N&31;N>>>=5;var F=N&15;N>>>=4,P.setMilliseconds(0),P.setFullYear(N+1980),P.setMonth(F-1),P.setDate(M);var K=L&31;L>>>=5;var rt=L&63;return L>>>=6,P.setHours(L),P.setMinutes(rt),P.setSeconds(K<<1),P}function s(E){Gr(E,0);for(var L={},N=0;E.l<=E.length-4;){var P=E.read_shift(2),M=E.read_shift(2),F=E.l+M,K={};P===21589&&(N=E.read_shift(1),N&1&&(K.mtime=E.read_shift(4)),M>5&&(N&2&&(K.atime=E.read_shift(4)),N&4&&(K.ctime=E.read_shift(4))),K.mtime&&(K.mt=new Date(K.mtime*1e3))),E.l=F,L[P]=K}return L}var l;function c(){return l||(l=Ch())}function h(E,L){if(E[0]==80&&E[1]==75)return Qe(E,L);if((E[0]|32)==109&&(E[1]|32)==105)return li(E,L);if(E.length<512)throw new Error(\"CFB file size \"+E.length+\" < 512\");var N=3,P=512,M=0,F=0,K=0,rt=0,q=0,Z=[],j=E.slice(0,512);Gr(j,0);var mt=u(j);switch(N=mt[0],N){case 3:P=512;break;case 4:P=4096;break;case 0:if(mt[1]==0)return Qe(E,L);default:throw new Error(\"Major Version: Expected 3 or 4 saw \"+N)}P!==512&&(j=E.slice(0,P),Gr(j,28));var yt=E.slice(0,P);f(j,N);var kt=j.read_shift(4,\"i\");if(N===3&&kt!==0)throw new Error(\"# Directory Sectors: Expected 0 saw \"+kt);j.l+=4,K=j.read_shift(4,\"i\"),j.l+=4,j.chk(\"00100000\",\"Mini Stream Cutoff Size: \"),rt=j.read_shift(4,\"i\"),M=j.read_shift(4,\"i\"),q=j.read_shift(4,\"i\"),F=j.read_shift(4,\"i\");for(var xt=-1,vt=0;vt<109&&(xt=j.read_shift(4,\"i\"),!(xt<0));++vt)Z[vt]=xt;var Ot=d(E,P);g(q,F,Ot,P,Z);var Jt=T(Ot,K,Z,P);Jt[K].name=\"!Directory\",M>0&&rt!==H&&(Jt[rt].name=\"!MiniFAT\"),Jt[Z[0]].name=\"!FAT\",Jt.fat_addrs=Z,Jt.ssz=P;var pe={},ie=[],Ee=[],Oe=[];S(K,Jt,Ot,ie,M,pe,Ee,rt),p(Ee,Oe,ie),ie.shift();var Lr={FileIndex:Ee,FullPaths:Oe};return L&&L.raw&&(Lr.raw={header:yt,sectors:Ot}),Lr}function u(E){if(E[E.l]==80&&E[E.l+1]==75)return[0,0];E.chk(nt,\"Header Signature: \"),E.l+=16;var L=E.read_shift(2,\"u\");return[E.read_shift(2,\"u\"),L]}function f(E,L){var N=9;switch(E.l+=2,N=E.read_shift(2)){case 9:if(L!=3)throw new Error(\"Sector Shift: Expected 9 saw \"+N);break;case 12:if(L!=4)throw new Error(\"Sector Shift: Expected 12 saw \"+N);break;default:throw new Error(\"Sector Shift: Expected 9 or 12 saw \"+N)}E.chk(\"0600\",\"Mini Sector Shift: \"),E.chk(\"000000000000\",\"Reserved: \")}function d(E,L){for(var N=Math.ceil(E.length/L)-1,P=[],M=1;M<N;++M)P[M-1]=E.slice(M*L,(M+1)*L);return P[N-1]=E.slice(N*L),P}function p(E,L,N){for(var P=0,M=0,F=0,K=0,rt=0,q=N.length,Z=[],j=[];P<q;++P)Z[P]=j[P]=P,L[P]=N[P];for(;rt<j.length;++rt)P=j[rt],M=E[P].L,F=E[P].R,K=E[P].C,Z[P]===P&&(M!==-1&&Z[M]!==M&&(Z[P]=Z[M]),F!==-1&&Z[F]!==F&&(Z[P]=Z[F])),K!==-1&&(Z[K]=P),M!==-1&&P!=Z[P]&&(Z[M]=Z[P],j.lastIndexOf(M)<rt&&j.push(M)),F!==-1&&P!=Z[P]&&(Z[F]=Z[P],j.lastIndexOf(F)<rt&&j.push(F));for(P=1;P<q;++P)Z[P]===P&&(F!==-1&&Z[F]!==F?Z[P]=Z[F]:M!==-1&&Z[M]!==M&&(Z[P]=Z[M]));for(P=1;P<q;++P)if(E[P].type!==0){if(rt=P,rt!=Z[rt])do rt=Z[rt],L[P]=L[rt]+\"/\"+L[P];while(rt!==0&&Z[rt]!==-1&&rt!=Z[rt]);Z[P]=-1}for(L[0]+=\"/\",P=1;P<q;++P)E[P].type!==2&&(L[P]+=\"/\")}function m(E,L,N){for(var P=E.start,M=E.size,F=[],K=P;N&&M>0&&K>=0;)F.push(L.slice(K*y,K*y+y)),M-=y,K=Cn(N,K*4);return F.length===0?dr(0):An(F).slice(0,E.size)}function g(E,L,N,P,M){var F=H;if(E===H){if(L!==0)throw new Error(\"DIFAT chain shorter than expected\")}else if(E!==-1){var K=N[E],rt=(P>>>2)-1;if(!K)return;for(var q=0;q<rt&&(F=Cn(K,q*4))!==H;++q)M.push(F);L>=1&&g(Cn(K,P-4),L-1,N,P,M)}}function b(E,L,N,P,M){var F=[],K=[];M||(M=[]);var rt=P-1,q=0,Z=0;for(q=L;q>=0;){M[q]=!0,F[F.length]=q,K.push(E[q]);var j=N[Math.floor(q*4/P)];if(Z=q*4&rt,P<4+Z)throw new Error(\"FAT boundary crossed: \"+q+\" 4 \"+P);if(!E[j])break;q=Cn(E[j],Z)}return{nodes:F,data:fo([K])}}function T(E,L,N,P){var M=E.length,F=[],K=[],rt=[],q=[],Z=P-1,j=0,mt=0,yt=0,kt=0;for(j=0;j<M;++j)if(rt=[],yt=j+L,yt>=M&&(yt-=M),!K[yt]){q=[];var xt=[];for(mt=yt;mt>=0;){xt[mt]=!0,K[mt]=!0,rt[rt.length]=mt,q.push(E[mt]);var vt=N[Math.floor(mt*4/P)];if(kt=mt*4&Z,P<4+kt)throw new Error(\"FAT boundary crossed: \"+mt+\" 4 \"+P);if(!E[vt]||(mt=Cn(E[vt],kt),xt[mt]))break}F[yt]={nodes:rt,data:fo([q])}}return F}function S(E,L,N,P,M,F,K,rt){for(var q=0,Z=P.length?2:0,j=L[E].data,mt=0,yt=0,kt;mt<j.length;mt+=128){var xt=j.slice(mt,mt+128);Gr(xt,64),yt=xt.read_shift(2),kt=Es(xt,0,yt-Z),P.push(kt);var vt={name:kt,type:xt.read_shift(1),color:xt.read_shift(1),L:xt.read_shift(4,\"i\"),R:xt.read_shift(4,\"i\"),C:xt.read_shift(4,\"i\"),clsid:xt.read_shift(16),state:xt.read_shift(4,\"i\"),start:0,size:0},Ot=xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2);Ot!==0&&(vt.ct=I(xt,xt.l-8));var Jt=xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2)+xt.read_shift(2);Jt!==0&&(vt.mt=I(xt,xt.l-8)),vt.start=xt.read_shift(4,\"i\"),vt.size=xt.read_shift(4,\"i\"),vt.size<0&&vt.start<0&&(vt.size=vt.type=0,vt.start=H,vt.name=\"\"),vt.type===5?(q=vt.start,M>0&&q!==H&&(L[q].name=\"!StreamData\")):vt.size>=4096?(vt.storage=\"fat\",L[vt.start]===void 0&&(L[vt.start]=b(N,vt.start,L.fat_addrs,L.ssz)),L[vt.start].name=vt.name,vt.content=L[vt.start].data.slice(0,vt.size)):(vt.storage=\"minifat\",vt.size<0?vt.size=0:q!==H&&vt.start!==H&&L[q]&&(vt.content=m(vt,L[q].data,(L[rt]||{}).data))),vt.content&&Gr(vt.content,0),F[kt]=vt,K.push(vt)}}function I(E,L){return new Date((Ih(E,L+4)/1e7*Math.pow(2,32)+Ih(E,L)/1e7-11644473600)*1e3)}function O(E,L){return c(),h(l.readFileSync(E),L)}function $(E,L){var N=L&&L.type;switch(N||Ze&&Buffer.isBuffer(E)&&(N=\"buffer\"),N||\"base64\"){case\"file\":return O(E,L);case\"base64\":return h(kn(Rh(E)),L);case\"binary\":return h(kn(E),L)}return h(E,L)}function k(E,L){var N=L||{},P=N.root||\"Root Entry\";if(E.FullPaths||(E.FullPaths=[]),E.FileIndex||(E.FileIndex=[]),E.FullPaths.length!==E.FileIndex.length)throw new Error(\"inconsistent CFB structure\");E.FullPaths.length===0&&(E.FullPaths[0]=P+\"/\",E.FileIndex[0]={name:P,type:5}),N.CLSID&&(E.FileIndex[0].clsid=N.CLSID),W(E)}function W(E){var L=\"\u0001Sh33tJ5\";if(!Nn.find(E,\"/\"+L)){var N=dr(4);N[0]=55,N[1]=N[3]=50,N[2]=54,E.FileIndex.push({name:L,type:2,content:N,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+L),U(E)}}function U(E,L){k(E);for(var N=!1,P=!1,M=E.FullPaths.length-1;M>=0;--M){var F=E.FileIndex[M];switch(F.type){case 0:P?N=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:P=!0,isNaN(F.R*F.L*F.C)&&(N=!0),F.R>-1&&F.L>-1&&F.R==F.L&&(N=!0);break;default:N=!0;break}}if(!(!N&&!L)){var K=new Date(1987,1,19),rt=0,q=Object.create?Object.create(null):{},Z=[];for(M=0;M<E.FullPaths.length;++M)q[E.FullPaths[M]]=!0,E.FileIndex[M].type!==0&&Z.push([E.FullPaths[M],E.FileIndex[M]]);for(M=0;M<Z.length;++M){var j=r(Z[M][0]);for(P=q[j];!P;){for(;r(j)&&!q[r(j)];)j=r(j);Z.push([j,{name:i(j).replace(\"/\",\"\"),type:1,clsid:lt,ct:K,mt:K,content:null}]),q[j]=!0,j=r(Z[M][0]),P=q[j]}}for(Z.sort(function(kt,xt){return e(kt[0],xt[0])}),E.FullPaths=[],E.FileIndex=[],M=0;M<Z.length;++M)E.FullPaths[M]=Z[M][0],E.FileIndex[M]=Z[M][1];for(M=0;M<Z.length;++M){var mt=E.FileIndex[M],yt=E.FullPaths[M];if(mt.name=i(yt).replace(\"/\",\"\"),mt.L=mt.R=mt.C=-(mt.color=1),mt.size=mt.content?mt.content.length:0,mt.start=0,mt.clsid=mt.clsid||lt,M===0)mt.C=Z.length>1?1:-1,mt.size=0,mt.type=5;else if(yt.slice(-1)==\"/\"){for(rt=M+1;rt<Z.length&&r(E.FullPaths[rt])!=yt;++rt);for(mt.C=rt>=Z.length?-1:rt,rt=M+1;rt<Z.length&&r(E.FullPaths[rt])!=r(yt);++rt);mt.R=rt>=Z.length?-1:rt,mt.type=1}else r(E.FullPaths[M+1]||\"\")==r(yt)&&(mt.R=M+1),mt.type=2}}}function v(E,L){var N=L||{};if(N.fileType==\"mad\")return ci(E,N);if(U(E),N.fileType===\"zip\")return Rn(E,N);var P=(function(kt){for(var xt=0,vt=0,Ot=0;Ot<kt.FileIndex.length;++Ot){var Jt=kt.FileIndex[Ot];if(Jt.content){var pe=Jt.content.length;pe>0&&(pe<4096?xt+=pe+63>>6:vt+=pe+511>>9)}}for(var ie=kt.FullPaths.length+3>>2,Ee=xt+7>>3,Oe=xt+127>>7,Lr=Ee+vt+ie+Oe,tr=Lr+127>>7,ar=tr<=109?0:Math.ceil((tr-109)/127);Lr+tr+ar+127>>7>tr;)ar=++tr<=109?0:Math.ceil((tr-109)/127);var Ye=[1,ar,tr,Oe,ie,vt,xt,0];return kt.FileIndex[0].size=xt<<6,Ye[7]=(kt.FileIndex[0].start=Ye[0]+Ye[1]+Ye[2]+Ye[3]+Ye[4]+Ye[5])+(Ye[6]+7>>3),Ye})(E),M=dr(P[7]<<9),F=0,K=0;{for(F=0;F<8;++F)M.write_shift(1,J[F]);for(F=0;F<8;++F)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),F=0;F<3;++F)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,P[2]),M.write_shift(4,P[0]+P[1]+P[2]+P[3]-1),M.write_shift(4,0),M.write_shift(4,4096),M.write_shift(4,P[3]?P[0]+P[1]+P[2]-1:H),M.write_shift(4,P[3]),M.write_shift(-4,P[1]?P[0]-1:H),M.write_shift(4,P[1]),F=0;F<109;++F)M.write_shift(-4,F<P[2]?P[1]+F:-1)}if(P[1])for(K=0;K<P[1];++K){for(;F<236+K*127;++F)M.write_shift(-4,F<P[2]?P[1]+F:-1);M.write_shift(-4,K===P[1]-1?H:K+1)}var rt=function(kt){for(K+=kt;F<K-1;++F)M.write_shift(-4,F+1);kt&&(++F,M.write_shift(-4,H))};for(K=F=0,K+=P[1];F<K;++F)M.write_shift(-4,ot.DIFSECT);for(K+=P[2];F<K;++F)M.write_shift(-4,ot.FATSECT);rt(P[3]),rt(P[4]);for(var q=0,Z=0,j=E.FileIndex[0];q<E.FileIndex.length;++q)j=E.FileIndex[q],j.content&&(Z=j.content.length,!(Z<4096)&&(j.start=K,rt(Z+511>>9)));for(rt(P[6]+7>>3);M.l&511;)M.write_shift(-4,ot.ENDOFCHAIN);for(K=F=0,q=0;q<E.FileIndex.length;++q)j=E.FileIndex[q],j.content&&(Z=j.content.length,!(!Z||Z>=4096)&&(j.start=K,rt(Z+63>>6)));for(;M.l&511;)M.write_shift(-4,ot.ENDOFCHAIN);for(F=0;F<P[4]<<2;++F){var mt=E.FullPaths[F];if(!mt||mt.length===0){for(q=0;q<17;++q)M.write_shift(4,0);for(q=0;q<3;++q)M.write_shift(4,-1);for(q=0;q<12;++q)M.write_shift(4,0);continue}j=E.FileIndex[F],F===0&&(j.start=j.size?j.start-1:H);var yt=F===0&&N.root||j.name;if(yt.length>32&&(console.error(\"Name \"+yt+\" will be truncated to \"+yt.slice(0,32)),yt=yt.slice(0,32)),Z=2*(yt.length+1),M.write_shift(64,yt,\"utf16le\"),M.write_shift(2,Z),M.write_shift(1,j.type),M.write_shift(1,j.color),M.write_shift(-4,j.L),M.write_shift(-4,j.R),M.write_shift(-4,j.C),j.clsid)M.write_shift(16,j.clsid,\"hex\");else for(q=0;q<4;++q)M.write_shift(4,0);M.write_shift(4,j.state||0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,j.start),M.write_shift(4,j.size),M.write_shift(4,0)}for(F=1;F<E.FileIndex.length;++F)if(j=E.FileIndex[F],j.size>=4096)if(M.l=j.start+1<<9,Ze&&Buffer.isBuffer(j.content))j.content.copy(M,M.l,0,j.size),M.l+=j.size+511&-512;else{for(q=0;q<j.size;++q)M.write_shift(1,j.content[q]);for(;q&511;++q)M.write_shift(1,0)}for(F=1;F<E.FileIndex.length;++F)if(j=E.FileIndex[F],j.size>0&&j.size<4096)if(Ze&&Buffer.isBuffer(j.content))j.content.copy(M,M.l,0,j.size),M.l+=j.size+63&-64;else{for(q=0;q<j.size;++q)M.write_shift(1,j.content[q]);for(;q&63;++q)M.write_shift(1,0)}if(Ze)M.l=M.length;else for(;M.l<M.length;)M.write_shift(1,0);return M}function _(E,L){var N=E.FullPaths.map(function(q){return q.toUpperCase()}),P=N.map(function(q){var Z=q.split(\"/\");return Z[Z.length-(q.slice(-1)==\"/\"?2:1)]}),M=!1;L.charCodeAt(0)===47?(M=!0,L=N[0].slice(0,-1)+L):M=L.indexOf(\"/\")!==-1;var F=L.toUpperCase(),K=M===!0?N.indexOf(F):P.indexOf(F);if(K!==-1)return E.FileIndex[K];var rt=!F.match(ho);for(F=F.replace(ii,\"\"),rt&&(F=F.replace(ho,\"!\")),K=0;K<N.length;++K)if((rt?N[K].replace(ho,\"!\"):N[K]).replace(ii,\"\")==F||(rt?P[K].replace(ho,\"!\"):P[K]).replace(ii,\"\")==F)return E.FileIndex[K];return null}var y=64,H=-2,nt=\"d0cf11e0a1b11ae1\",J=[208,207,17,224,161,177,26,225],lt=\"00000000000000000000000000000000\",ot={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:nt,HEADER_MINOR_VERSION:\"3e00\",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:lt,EntryTypes:[\"unknown\",\"storage\",\"stream\",\"lockbytes\",\"property\",\"root\"]};function et(E,L,N){c();var P=v(E,N);l.writeFileSync(L,P)}function B(E){for(var L=new Array(E.length),N=0;N<E.length;++N)L[N]=String.fromCharCode(E[N]);return L.join(\"\")}function z(E,L){var N=v(E,L);switch(L&&L.type||\"buffer\"){case\"file\":return c(),l.writeFileSync(L.filename,N),N;case\"binary\":return typeof N==\"string\"?N:B(N);case\"base64\":return Nh(typeof N==\"string\"?N:B(N));case\"buffer\":if(Ze)return Buffer.isBuffer(N)?N:Ss(N);case\"array\":return typeof N==\"string\"?kn(N):N}return N}var st;function dt(E){try{var L=E.InflateRaw,N=new L;if(N._processChunk(new Uint8Array([3,0]),N._finishFlushFlag),N.bytesRead)st=E;else throw new Error(\"zlib does not expose bytesRead\")}catch(P){console.error(\"cannot use native zlib: \"+(P.message||P))}}function ft(E,L){if(!st)return Vr(E,L);var N=st.InflateRaw,P=new N,M=P._processChunk(E.slice(E.l),P._finishFlushFlag);return E.l+=P.bytesRead,M}function Ft(E){return st?st.deflateRawSync(E):Te(E)}var Xt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Et=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],_t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Kt(E){var L=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(L>>16|L>>8|L)&255}for(var Pt=typeof Uint8Array<\"u\",jt=Pt?new Uint8Array(256):[],qt=0;qt<256;++qt)jt[qt]=Kt(qt);function x(E,L){var N=jt[E&255];return L<=8?N>>>8-L:(N=N<<8|jt[E>>8&255],L<=16?N>>>16-L:(N=N<<8|jt[E>>16&255],N>>>24-L))}function it(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=6?0:E[P+1]<<8))>>>N&3}function Q(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=5?0:E[P+1]<<8))>>>N&7}function D(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=4?0:E[P+1]<<8))>>>N&15}function R(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=3?0:E[P+1]<<8))>>>N&31}function G(E,L){var N=L&7,P=L>>>3;return(E[P]|(N<=1?0:E[P+1]<<8))>>>N&127}function tt(E,L,N){var P=L&7,M=L>>>3,F=(1<<N)-1,K=E[M]>>>P;return N<8-P||(K|=E[M+1]<<8-P,N<16-P)||(K|=E[M+2]<<16-P,N<24-P)||(K|=E[M+3]<<24-P),K&F}function ht(E,L,N){var P=L&7,M=L>>>3;return P<=5?E[M]|=(N&7)<<P:(E[M]|=N<<P&255,E[M+1]=(N&7)>>8-P),L+3}function V(E,L,N){var P=L&7,M=L>>>3;return N=(N&1)<<P,E[M]|=N,L+1}function gt(E,L,N){var P=L&7,M=L>>>3;return N<<=P,E[M]|=N&255,N>>>=8,E[M+1]=N,L+8}function St(E,L,N){var P=L&7,M=L>>>3;return N<<=P,E[M]|=N&255,N>>>=8,E[M+1]=N&255,E[M+2]=N>>>8,L+16}function bt(E,L){var N=E.length,P=2*N>L?2*N:L+5,M=0;if(N>=L)return E;if(Ze){var F=Ph(P);if(E.copy)E.copy(F);else for(;M<E.length;++M)F[M]=E[M];return F}else if(Pt){var K=new Uint8Array(P);if(K.set)K.set(E);else for(;M<N;++M)K[M]=E[M];return K}return E.length=P,E}function At(E){for(var L=new Array(E),N=0;N<E;++N)L[N]=0;return L}function zt(E,L,N){var P=1,M=0,F=0,K=0,rt=0,q=E.length,Z=Pt?new Uint16Array(32):At(32);for(F=0;F<32;++F)Z[F]=0;for(F=q;F<N;++F)E[F]=0;q=E.length;var j=Pt?new Uint16Array(q):At(q);for(F=0;F<q;++F)Z[M=E[F]]++,P<M&&(P=M),j[F]=0;for(Z[0]=0,F=1;F<=P;++F)Z[F+16]=rt=rt+Z[F-1]<<1;for(F=0;F<q;++F)rt=E[F],rt!=0&&(j[F]=Z[rt+16]++);var mt=0;for(F=0;F<q;++F)if(mt=E[F],mt!=0)for(rt=x(j[F],P)>>P-mt,K=(1<<P+4-mt)-1;K>=0;--K)L[rt|K<<mt]=mt&15|F<<4;return P}var Mt=Pt?new Uint16Array(512):At(512),ue=Pt?new Uint16Array(32):At(32);if(!Pt){for(var re=0;re<512;++re)Mt[re]=0;for(re=0;re<32;++re)ue[re]=0}(function(){for(var E=[],L=0;L<32;L++)E.push(5);zt(E,ue,32);var N=[];for(L=0;L<=143;L++)N.push(8);for(;L<=255;L++)N.push(9);for(;L<=279;L++)N.push(7);for(;L<=287;L++)N.push(8);zt(N,Mt,288)})();var he=(function(){for(var L=Pt?new Uint8Array(32768):[],N=0,P=0;N<_t.length-1;++N)for(;P<_t[N+1];++P)L[P]=N;for(;P<32768;++P)L[P]=29;var M=Pt?new Uint8Array(259):[];for(N=0,P=0;N<Et.length-1;++N)for(;P<Et[N+1];++P)M[P]=N;function F(rt,q){for(var Z=0;Z<rt.length;){var j=Math.min(65535,rt.length-Z),mt=Z+j==rt.length;for(q.write_shift(1,+mt),q.write_shift(2,j),q.write_shift(2,~j&65535);j-- >0;)q[q.l++]=rt[Z++]}return q.l}function K(rt,q){for(var Z=0,j=0,mt=Pt?new Uint16Array(32768):[];j<rt.length;){var yt=Math.min(65535,rt.length-j);if(yt<10){for(Z=ht(q,Z,+(j+yt==rt.length)),Z&7&&(Z+=8-(Z&7)),q.l=Z/8|0,q.write_shift(2,yt),q.write_shift(2,~yt&65535);yt-- >0;)q[q.l++]=rt[j++];Z=q.l*8;continue}Z=ht(q,Z,+(j+yt==rt.length)+2);for(var kt=0;yt-- >0;){var xt=rt[j];kt=(kt<<5^xt)&32767;var vt=-1,Ot=0;if((vt=mt[kt])&&(vt|=j&-32768,vt>j&&(vt-=32768),vt<j))for(;rt[vt+Ot]==rt[j+Ot]&&Ot<250;)++Ot;if(Ot>2){xt=M[Ot],xt<=22?Z=gt(q,Z,jt[xt+1]>>1)-1:(gt(q,Z,3),Z+=5,gt(q,Z,jt[xt-23]>>5),Z+=3);var Jt=xt<8?0:xt-4>>2;Jt>0&&(St(q,Z,Ot-Et[xt]),Z+=Jt),xt=L[j-vt],Z=gt(q,Z,jt[xt]>>3),Z-=3;var pe=xt<4?0:xt-2>>1;pe>0&&(St(q,Z,j-vt-_t[xt]),Z+=pe);for(var ie=0;ie<Ot;++ie)mt[kt]=j&32767,kt=(kt<<5^rt[j])&32767,++j;yt-=Ot-1}else xt<=143?xt=xt+48:Z=V(q,Z,1),Z=gt(q,Z,jt[xt]),mt[kt]=j&32767,++j}Z=gt(q,Z,0)-1}return q.l=(Z+7)/8|0,q.l}return function(q,Z){return q.length<8?F(q,Z):K(q,Z)}})();function Te(E){var L=dr(50+Math.floor(E.length*1.1)),N=he(E,L);return L.slice(0,N)}var Zt=Pt?new Uint16Array(32768):At(32768),We=Pt?new Uint16Array(32768):At(32768),Je=Pt?new Uint16Array(128):At(128),Se=1,He=1;function Nr(E,L){var N=R(E,L)+257;L+=5;var P=R(E,L)+1;L+=5;var M=D(E,L)+4;L+=4;for(var F=0,K=Pt?new Uint8Array(19):At(19),rt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q=1,Z=Pt?new Uint8Array(8):At(8),j=Pt?new Uint8Array(8):At(8),mt=K.length,yt=0;yt<M;++yt)K[Xt[yt]]=F=Q(E,L),q<F&&(q=F),Z[F]++,L+=3;var kt=0;for(Z[0]=0,yt=1;yt<=q;++yt)j[yt]=kt=kt+Z[yt-1]<<1;for(yt=0;yt<mt;++yt)(kt=K[yt])!=0&&(rt[yt]=j[kt]++);var xt=0;for(yt=0;yt<mt;++yt)if(xt=K[yt],xt!=0){kt=jt[rt[yt]]>>8-xt;for(var vt=(1<<7-xt)-1;vt>=0;--vt)Je[kt|vt<<xt]=xt&7|yt<<3}var Ot=[];for(q=1;Ot.length<N+P;)switch(kt=Je[G(E,L)],L+=kt&7,kt>>>=3){case 16:for(F=3+it(E,L),L+=2,kt=Ot[Ot.length-1];F-- >0;)Ot.push(kt);break;case 17:for(F=3+Q(E,L),L+=3;F-- >0;)Ot.push(0);break;case 18:for(F=11+G(E,L),L+=7;F-- >0;)Ot.push(0);break;default:Ot.push(kt),q<kt&&(q=kt);break}var Jt=Ot.slice(0,N),pe=Ot.slice(N);for(yt=N;yt<286;++yt)Jt[yt]=0;for(yt=P;yt<30;++yt)pe[yt]=0;return Se=zt(Jt,Zt,286),He=zt(pe,We,30),L}function Rr(E,L){if(E[0]==3&&!(E[1]&3))return[Lh(L),2];for(var N=0,P=0,M=Ph(L||1<<18),F=0,K=M.length>>>0,rt=0,q=0;(P&1)==0;){if(P=Q(E,N),N+=3,P>>>1)P>>1==1?(rt=9,q=5):(N=Nr(E,N),rt=Se,q=He);else{N&7&&(N+=8-(N&7));var Z=E[N>>>3]|E[(N>>>3)+1]<<8;if(N+=32,Z>0)for(!L&&K<F+Z&&(M=bt(M,F+Z),K=M.length);Z-- >0;)M[F++]=E[N>>>3],N+=8;continue}for(;;){!L&&K<F+32767&&(M=bt(M,F+32767),K=M.length);var j=tt(E,N,rt),mt=P>>>1==1?Mt[j]:Zt[j];if(N+=mt&15,mt>>>=4,(mt>>>8&255)===0)M[F++]=mt;else{if(mt==256)break;mt-=257;var yt=mt<8?0:mt-4>>2;yt>5&&(yt=0);var kt=F+Et[mt];yt>0&&(kt+=tt(E,N,yt),N+=yt),j=tt(E,N,q),mt=P>>>1==1?ue[j]:We[j],N+=mt&15,mt>>>=4;var xt=mt<4?0:mt-2>>1,vt=_t[mt];for(xt>0&&(vt+=tt(E,N,xt),N+=xt),!L&&K<kt&&(M=bt(M,kt+100),K=M.length);F<kt;)M[F]=M[F-vt],++F}}}return L?[M,N+7>>>3]:[M.slice(0,F),N+7>>>3]}function Vr(E,L){var N=E.slice(E.l||0),P=Rr(N,L);return E.l+=P[1],P[0]}function fr(E,L){if(E)typeof console<\"u\"&&console.error(L);else throw new Error(L)}function Qe(E,L){var N=E;Gr(N,0);var P=[],M=[],F={FileIndex:P,FullPaths:M};k(F,{root:L.root});for(var K=N.length-4;(N[K]!=80||N[K+1]!=75||N[K+2]!=5||N[K+3]!=6)&&K>=0;)--K;N.l=K+4,N.l+=4;var rt=N.read_shift(2);N.l+=6;var q=N.read_shift(4);for(N.l=q,K=0;K<rt;++K){N.l+=20;var Z=N.read_shift(4),j=N.read_shift(4),mt=N.read_shift(2),yt=N.read_shift(2),kt=N.read_shift(2);N.l+=8;var xt=N.read_shift(4),vt=s(N.slice(N.l+mt,N.l+mt+yt));N.l+=mt+yt+kt;var Ot=N.l;N.l=xt+4,or(N,Z,j,F,vt),N.l=Ot}return F}function or(E,L,N,P,M){E.l+=2;var F=E.read_shift(2),K=E.read_shift(2),rt=a(E);if(F&8257)throw new Error(\"Unsupported ZIP encryption\");for(var q=E.read_shift(4),Z=E.read_shift(4),j=E.read_shift(4),mt=E.read_shift(2),yt=E.read_shift(2),kt=\"\",xt=0;xt<mt;++xt)kt+=String.fromCharCode(E[E.l++]);if(yt){var vt=s(E.slice(E.l,E.l+yt));(vt[21589]||{}).mt&&(rt=vt[21589].mt),((M||{})[21589]||{}).mt&&(rt=M[21589].mt)}E.l+=yt;var Ot=E.slice(E.l,E.l+Z);switch(K){case 8:Ot=ft(E,j);break;case 0:break;default:throw new Error(\"Unsupported ZIP Compression method \"+K)}var Jt=!1;F&8&&(q=E.read_shift(4),q==134695760&&(q=E.read_shift(4),Jt=!0),Z=E.read_shift(4),j=E.read_shift(4)),Z!=L&&fr(Jt,\"Bad compressed size: \"+L+\" != \"+Z),j!=N&&fr(Jt,\"Bad uncompressed size: \"+N+\" != \"+j);var pe=Oh.buf(Ot,0);q>>0!=pe>>0&&fr(Jt,\"Bad CRC32 checksum: \"+q+\" != \"+pe),Ir(P,kt,Ot,{unsafe:!0,mt:rt})}function Rn(E,L){var N=L||{},P=[],M=[],F=dr(1),K=N.compression?8:0,rt=0,q=!1;q&&(rt|=8);var Z=0,j=0,mt=0,yt=0,kt=E.FullPaths[0],xt=kt,vt=E.FileIndex[0],Ot=[],Jt=0;for(Z=1;Z<E.FullPaths.length;++Z)if(xt=E.FullPaths[Z].slice(kt.length),vt=E.FileIndex[Z],!(!vt.size||!vt.content||xt==\"\u0001Sh33tJ5\")){var pe=mt,ie=dr(xt.length);for(j=0;j<xt.length;++j)ie.write_shift(1,xt.charCodeAt(j)&127);ie=ie.slice(0,ie.l),Ot[yt]=Oh.buf(vt.content,0);var Ee=vt.content;K==8&&(Ee=Ft(Ee)),F=dr(30),F.write_shift(4,67324752),F.write_shift(2,20),F.write_shift(2,rt),F.write_shift(2,K),vt.mt?o(F,vt.mt):F.write_shift(4,0),F.write_shift(-4,rt&8?0:Ot[yt]),F.write_shift(4,rt&8?0:Ee.length),F.write_shift(4,rt&8?0:vt.content.length),F.write_shift(2,ie.length),F.write_shift(2,0),mt+=F.length,P.push(F),mt+=ie.length,P.push(ie),mt+=Ee.length,P.push(Ee),rt&8&&(F=dr(12),F.write_shift(-4,Ot[yt]),F.write_shift(4,Ee.length),F.write_shift(4,vt.content.length),mt+=F.l,P.push(F)),F=dr(46),F.write_shift(4,33639248),F.write_shift(2,0),F.write_shift(2,20),F.write_shift(2,rt),F.write_shift(2,K),F.write_shift(4,0),F.write_shift(-4,Ot[yt]),F.write_shift(4,Ee.length),F.write_shift(4,vt.content.length),F.write_shift(2,ie.length),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(4,0),F.write_shift(4,pe),Jt+=F.l,M.push(F),Jt+=ie.length,M.push(ie),++yt}return F=dr(22),F.write_shift(4,101010256),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,yt),F.write_shift(2,yt),F.write_shift(4,Jt),F.write_shift(4,mt),F.write_shift(2,0),An([An(P),An(M),F])}var Ue={htm:\"text/html\",xml:\"text/xml\",gif:\"image/gif\",jpg:\"image/jpeg\",png:\"image/png\",mso:\"application/x-mso\",thmx:\"application/vnd.ms-officetheme\",sh33tj5:\"application/octet-stream\"};function Pr(E,L){if(E.ctype)return E.ctype;var N=E.name||\"\",P=N.match(/\\.([^\\.]+)$/);return P&&Ue[P[1]]||L&&(P=(N=L).match(/[\\.\\\\]([^\\.\\\\])+$/),P&&Ue[P[1]])?Ue[P[1]]:\"application/octet-stream\"}function pr(E){for(var L=Nh(E),N=[],P=0;P<L.length;P+=76)N.push(L.slice(P,P+76));return N.join(`\\r\n`)+`\\r\n`}function oi(E){var L=E.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF=]/g,function(Z){var j=Z.charCodeAt(0).toString(16).toUpperCase();return\"=\"+(j.length==1?\"0\"+j:j)});L=L.replace(/ $/mg,\"=20\").replace(/\\t$/mg,\"=09\"),L.charAt(0)==`\n`&&(L=\"=0D\"+L.slice(1)),L=L.replace(/\\r(?!\\n)/mg,\"=0D\").replace(/\\n\\n/mg,`\n=0A`).replace(/([^\\r\\n])\\n/mg,\"$1=0A\");for(var N=[],P=L.split(`\\r\n`),M=0;M<P.length;++M){var F=P[M];if(F.length==0){N.push(\"\");continue}for(var K=0;K<F.length;){var rt=76,q=F.slice(K,K+rt);q.charAt(rt-1)==\"=\"?rt--:q.charAt(rt-2)==\"=\"?rt-=2:q.charAt(rt-3)==\"=\"&&(rt-=3),q=F.slice(K,K+rt),K+=rt,K<F.length&&(q+=\"=\"),N.push(q)}}return N.join(`\\r\n`)}function ai(E){for(var L=[],N=0;N<E.length;++N){for(var P=E[N];N<=E.length&&P.charAt(P.length-1)==\"=\";)P=P.slice(0,P.length-1)+E[++N];L.push(P)}for(var M=0;M<L.length;++M)L[M]=L[M].replace(/[=][0-9A-Fa-f]{2}/g,function(F){return String.fromCharCode(parseInt(F.slice(1),16))});return kn(L.join(`\\r\n`))}function si(E,L,N){for(var P=\"\",M=\"\",F=\"\",K,rt=0;rt<10;++rt){var q=L[rt];if(!q||q.match(/^\\s*$/))break;var Z=q.match(/^(.*?):\\s*([^\\s].*)$/);if(Z)switch(Z[1].toLowerCase()){case\"content-location\":P=Z[2].trim();break;case\"content-type\":F=Z[2].trim();break;case\"content-transfer-encoding\":M=Z[2].trim();break}}switch(++rt,M.toLowerCase()){case\"base64\":K=kn(Rh(L.slice(rt).join(\"\")));break;case\"quoted-printable\":K=ai(L.slice(rt));break;default:throw new Error(\"Unsupported Content-Transfer-Encoding \"+M)}var j=Ir(E,P.slice(N.length),K,{unsafe:!0});F&&(j.ctype=F)}function li(E,L){if(B(E.slice(0,13)).toLowerCase()!=\"mime-version:\")throw new Error(\"Unsupported MAD header\");var N=L&&L.root||\"\",P=(Ze&&Buffer.isBuffer(E)?E.toString(\"binary\"):B(E)).split(`\\r\n`),M=0,F=\"\";for(M=0;M<P.length;++M)if(F=P[M],!!/^Content-Location:/i.test(F)&&(F=F.slice(F.indexOf(\"file\")),N||(N=F.slice(0,F.lastIndexOf(\"/\")+1)),F.slice(0,N.length)!=N))for(;N.length>0&&(N=N.slice(0,N.length-1),N=N.slice(0,N.lastIndexOf(\"/\")+1),F.slice(0,N.length)!=N););var K=(P[1]||\"\").match(/boundary=\"(.*?)\"/);if(!K)throw new Error(\"MAD cannot find boundary\");var rt=\"--\"+(K[1]||\"\"),q=[],Z=[],j={FileIndex:q,FullPaths:Z};k(j);var mt,yt=0;for(M=0;M<P.length;++M){var kt=P[M];kt!==rt&&kt!==rt+\"--\"||(yt++&&si(j,P.slice(mt,M),N),mt=M)}return j}function ci(E,L){var N=L||{},P=N.boundary||\"SheetJS\";P=\"------=\"+P;for(var M=[\"MIME-Version: 1.0\",'Content-Type: multipart/related; boundary=\"'+P.slice(2)+'\"',\"\",\"\",\"\"],F=E.FullPaths[0],K=F,rt=E.FileIndex[0],q=1;q<E.FullPaths.length;++q)if(K=E.FullPaths[q].slice(F.length),rt=E.FileIndex[q],!(!rt.size||!rt.content||K==\"\u0001Sh33tJ5\")){K=K.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF]/g,function(Ot){return\"_x\"+Ot.charCodeAt(0).toString(16)+\"_\"}).replace(/[\\u0080-\\uFFFF]/g,function(Ot){return\"_u\"+Ot.charCodeAt(0).toString(16)+\"_\"});for(var Z=rt.content,j=Ze&&Buffer.isBuffer(Z)?Z.toString(\"binary\"):B(Z),mt=0,yt=Math.min(1024,j.length),kt=0,xt=0;xt<=yt;++xt)(kt=j.charCodeAt(xt))>=32&&kt<128&&++mt;var vt=mt>=yt*4/5;M.push(P),M.push(\"Content-Location: \"+(N.root||\"file:///C:/SheetJS/\")+K),M.push(\"Content-Transfer-Encoding: \"+(vt?\"quoted-printable\":\"base64\")),M.push(\"Content-Type: \"+Pr(rt,K)),M.push(\"\"),M.push(vt?oi(j):pr(j))}return M.push(P+`--\\r\n`),M.join(`\\r\n`)}function ln(E){var L={};return k(L,E),L}function Ir(E,L,N,P){var M=P&&P.unsafe;M||k(E);var F=!M&&Nn.find(E,L);if(!F){var K=E.FullPaths[0];L.slice(0,K.length)==K?K=L:(K.slice(-1)!=\"/\"&&(K+=\"/\"),K=(K+L).replace(\"//\",\"/\")),F={name:i(L),type:2},E.FileIndex.push(F),E.FullPaths.push(K),M||Nn.utils.cfb_gc(E)}return F.content=N,F.size=N?N.length:0,P&&(P.CLSID&&(F.clsid=P.CLSID),P.mt&&(F.mt=P.mt),P.ct&&(F.ct=P.ct)),F}function ze(E,L){k(E);var N=Nn.find(E,L);if(N){for(var P=0;P<E.FileIndex.length;++P)if(E.FileIndex[P]==N)return E.FileIndex.splice(P,1),E.FullPaths.splice(P,1),!0}return!1}function Or(E,L,N){k(E);var P=Nn.find(E,L);if(P){for(var M=0;M<E.FileIndex.length;++M)if(E.FileIndex[M]==P)return E.FileIndex[M].name=i(N),E.FullPaths[M]=N,!0}return!1}function Pn(E){U(E,!0)}return t.find=_,t.read=$,t.parse=h,t.write=z,t.writeFile=et,t.utils={cfb_new:ln,cfb_add:Ir,cfb_del:ze,cfb_mov:Or,cfb_gc:Pn,ReadShift:Fh,CheckField:Dh,prep_blob:Gr,bconcat:An,use_zlib:dt,_deflateRaw:Te,_inflateRaw:Vr,consts:ot},t})();typeof Xr<\"u\"&&typeof Ts<\"u\"&&typeof DO_NOT_EXPORT_CFB>\"u\"&&(Ts.exports=Nn)});var ky={};ad(ky,{default:()=>zh});function Fs(n,t){let e=document.createElement(\"div\");e.className=`preview-loading preview-loading-${t}`,e.dataset.previewKind=t,e.setAttribute(\"aria-hidden\",\"true\"),e.hidden=!0;let r='<div class=\"loading-lines\"><i></i><i></i><i></i><i></i></div>',i=t===\"presentation\"?`<div class=\"loading-paper\"><i class=\"loading-title\"></i><div class=\"loading-slide-body\">${r}<div class=\"loading-figure\"><i></i><i></i><i></i></div></div></div>`:`<div class=\"loading-paper\"><i class=\"loading-running-head\"></i><i class=\"loading-title\"></i>${r}<div class=\"loading-table\">${\"<span><i></i></span>\".repeat(9)}</div>${r}<i class=\"loading-page-number\"></i></div>`;return e.innerHTML=i+(t===\"word\"?i:\"\"),n.append(e),{show(){e.hidden=!1,n.classList.add(\"preview-is-loading\"),n.setAttribute(\"aria-busy\",\"true\")},hide(){e.hidden=!0,n.classList.remove(\"preview-is-loading\"),n.setAttribute(\"aria-busy\",\"false\")}}}var Ds=()=>new Promise(n=>requestAnimationFrame(()=>setTimeout(n,0)));var De=Uint8Array,hn=Uint16Array,ld=Int32Array,Bs=new De([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),$s=new De([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cd=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ws=function(n,t){for(var e=new hn(31),r=0;r<31;++r)e[r]=t+=1<<n[r-1];for(var i=new ld(e[30]),r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)i[o]=o-e[r]<<5|r;return{b:e,r:i}},Hs=Ws(Bs,2),Us=Hs.b,ud=Hs.r;Us[28]=258,ud[258]=28;var zs=Ws($s,0),hd=zs.b,Iy=zs.r,No=new hn(32768);for(Vt=0;Vt<32768;++Vt)mr=(Vt&43690)>>1|(Vt&21845)<<1,mr=(mr&52428)>>2|(mr&13107)<<2,mr=(mr&61680)>>4|(mr&3855)<<4,No[Vt]=((mr&65280)>>8|(mr&255)<<8)>>1;var mr,Vt,Ln=(function(n,t,e){for(var r=n.length,i=0,o=new hn(t);i<r;++i)n[i]&&++o[n[i]-1];var a=new hn(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(e){s=new hn(1<<t);var l=15-t;for(i=0;i<r;++i)if(n[i])for(var c=i<<4|n[i],h=t-n[i],u=a[n[i]-1]++<<h,f=u|(1<<h)-1;u<=f;++u)s[No[u]>>l]=c}else for(s=new hn(r),i=0;i<r;++i)n[i]&&(s[i]=No[a[n[i]-1]++]>>15-n[i]);return s}),_n=new De(288);for(Vt=0;Vt<144;++Vt)_n[Vt]=8;var Vt;for(Vt=144;Vt<256;++Vt)_n[Vt]=9;var Vt;for(Vt=256;Vt<280;++Vt)_n[Vt]=7;var Vt;for(Vt=280;Vt<288;++Vt)_n[Vt]=8;var Vt,Ys=new De(32);for(Vt=0;Vt<32;++Vt)Ys[Vt]=5;var Vt;var dd=Ln(_n,9,1);var fd=Ln(Ys,5,1),ko=function(n){for(var t=n[0],e=1;e<n.length;++e)n[e]>t&&(t=n[e]);return t},rr=function(n,t,e){var r=t/8|0;return(n[r]|n[r+1]<<8)>>(t&7)&e},Ao=function(n,t){var e=t/8|0;return(n[e]|n[e+1]<<8|n[e+2]<<16)>>(t&7)},pd=function(n){return(n+7)/8|0},Po=function(n,t,e){return(t==null||t<0)&&(t=0),(e==null||e>n.length)&&(e=n.length),new De(n.subarray(t,e))};var md=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],Fe=function(n,t,e){var r=new Error(t||md[n]);if(r.code=n,Error.captureStackTrace&&Error.captureStackTrace(r,Fe),!e)throw r;return r},gd=function(n,t,e,r){var i=n.length,o=r?r.length:0;if(!i||t.f&&!t.l)return e||new De(0);var a=!e,s=a||t.i!=2,l=t.i;a&&(e=new De(i*3));var c=function(qt){var x=e.length;if(qt>x){var it=new De(Math.max(x*2,qt));it.set(e),e=it}},h=t.f||0,u=t.p||0,f=t.b||0,d=t.l,p=t.d,m=t.m,g=t.n,b=i*8;do{if(!d){h=rr(n,u,1);var T=rr(n,u+1,3);if(u+=3,T)if(T==1)d=dd,p=fd,m=9,g=5;else if(T==2){var $=rr(n,u,31)+257,k=rr(n,u+10,15)+4,W=$+rr(n,u+5,31)+1;u+=14;for(var U=new De(W),v=new De(19),_=0;_<k;++_)v[cd[_]]=rr(n,u+_*3,7);u+=k*3;for(var y=ko(v),H=(1<<y)-1,nt=Ln(v,y,1),_=0;_<W;){var J=nt[rr(n,u,H)];u+=J&15;var S=J>>4;if(S<16)U[_++]=S;else{var lt=0,ot=0;for(S==16?(ot=3+rr(n,u,3),u+=2,lt=U[_-1]):S==17?(ot=3+rr(n,u,7),u+=3):S==18&&(ot=11+rr(n,u,127),u+=7);ot--;)U[_++]=lt}}var et=U.subarray(0,$),B=U.subarray($);m=ko(et),g=ko(B),d=Ln(et,m,1),p=Ln(B,g,1)}else Fe(1);else{var S=pd(u)+4,I=n[S-4]|n[S-3]<<8,O=S+I;if(O>i){l&&Fe(0);break}s&&c(f+I),e.set(n.subarray(S,O),f),t.b=f+=I,t.p=u=O*8,t.f=h;continue}if(u>b){l&&Fe(0);break}}s&&c(f+131072);for(var z=(1<<m)-1,st=(1<<g)-1,dt=u;;dt=u){var lt=d[Ao(n,u)&z],ft=lt>>4;if(u+=lt&15,u>b){l&&Fe(0);break}if(lt||Fe(2),ft<256)e[f++]=ft;else if(ft==256){dt=u,d=null;break}else{var Ft=ft-254;if(ft>264){var _=ft-257,Xt=Bs[_];Ft=rr(n,u,(1<<Xt)-1)+Us[_],u+=Xt}var Et=p[Ao(n,u)&st],_t=Et>>4;Et||Fe(3),u+=Et&15;var B=hd[_t];if(_t>3){var Xt=$s[_t];B+=Ao(n,u)&(1<<Xt)-1,u+=Xt}if(u>b){l&&Fe(0);break}s&&c(f+131072);var Kt=f+Ft;if(f<B){var Pt=o-B,jt=Math.min(B,Kt);for(Pt+f<0&&Fe(3);f<jt;++f)e[f]=r[Pt+f]}for(;f<Kt;++f)e[f]=e[f-B]}}t.l=d,t.p=dt,t.b=f,t.f=h,d&&(h=1,t.m=m,t.d=p,t.n=g)}while(!h);return f!=e.length&&a?Po(e,0,f):e.subarray(0,f)};var bd=new De(0);var lr=function(n,t){return n[t]|n[t+1]<<8},Ge=function(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0},Co=function(n,t){return Ge(n,t)+Ge(n,t+4)*4294967296};function yd(n,t){return gd(n,{i:2},t&&t.out,t&&t.dictionary)}var Ro=typeof TextDecoder<\"u\"&&new TextDecoder,xd=0;try{Ro.decode(bd,{stream:!0}),xd=1}catch{}var wd=function(n){for(var t=\"\",e=0;;){var r=n[e++],i=(r>127)+(r>223)+(r>239);if(e+i>n.length)return{s:t,r:Po(n,e-1)};i?i==3?(r=((r&15)<<18|(n[e++]&63)<<12|(n[e++]&63)<<6|n[e++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|n[e++]&63):t+=String.fromCharCode((r&15)<<12|(n[e++]&63)<<6|n[e++]&63):t+=String.fromCharCode(r)}};function vd(n,t){if(t){for(var e=\"\",r=0;r<n.length;r+=16384)e+=String.fromCharCode.apply(null,n.subarray(r,r+16384));return e}else{if(Ro)return Ro.decode(n);var i=wd(n),o=i.s,e=i.r;return e.length&&Fe(8),o}}var Td=function(n,t){return t+30+lr(n,t+26)+lr(n,t+28)},Sd=function(n,t,e){var r=lr(n,t+28),i=lr(n,t+30),o=vd(n.subarray(t+46,t+46+r),!(lr(n,t+8)&2048)),a=t+46+r,s=Ed(n,a,i,e,Ge(n,t+20),Ge(n,t+24),Ge(n,t+42)),l=s[0],c=s[1],h=s[2];return[lr(n,t+10),l,c,o,a+i+lr(n,t+32),h]},Ed=function(n,t,e,r,i,o,a){var s=i==4294967295,l=o==4294967295,c=a==4294967295,h=t+e,u=s+l+c;if(r&&u){for(;t+4<h;t+=4+lr(n,t+2))if(lr(n,t)==1)return[s?Co(n,t+4+8*l):i,l?Co(n,t+4):o,c?Co(n,t+4+8*(l+s)):a,1];r<2&&Fe(13)}return[i,o,a,0]};function Gs(n,t){for(var e={},r=n.length-22;Ge(n,r)!=101010256;--r)(!r||n.length-r>65558)&&Fe(13);var i=lr(n,r+8);if(!i)return{};var o=Ge(n,r+16),a=Ge(n,r-20)==117853008;if(a){var s=Ge(n,r-12);a=Ge(n,s)==101075792,a&&(i=Ge(n,s+32),o=Ge(n,s+48))}for(var l=t&&t.filter,c=0;c<i;++c){var h=Sd(n,o,a),u=h[0],f=h[1],d=h[2],p=h[3],m=h[4],g=h[5],b=Td(n,g);o=m,(!l||l({name:p,size:f,originalSize:d,compression:u}))&&(u?u==8?e[p]=yd(n.subarray(b,b+f),{out:new De(d)}):Fe(14,\"unknown compression type \"+u):e[p]=Po(n,b,b+f))}return e}var Al=Ms(Vs(),1);var fn=new WeakMap,Go=()=>new DOMException(\"DOCX layout was detached or replaced\",\"AbortError\");function Cl(n){fn.get(n)?.cancel();let t=new AbortController,e={signal:t.signal,isCurrent:()=>!t.signal.aborted&&fn.get(n)===e,cancel:()=>t.abort()};return fn.set(n,e),e}function kd(n){fn.get(n)?.cancel(),fn.delete(n)}function Ai(n){let t=fn.get(n);return t?.isCurrent()?t:Cl(n)}function je(n,t,e=!0){if(!t.isCurrent()||e&&!n.isConnected)throw Go()}function Hn(n,t=Ai(n)){let r=Array.from(n.querySelectorAll?.(\"[data-docx-layout-root]\")??[]).length?()=>Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")):()=>Array.from(n.childNodes??[]),i=r();return{signal:t.signal,cancel:()=>t.cancel(),isCurrent:()=>{if(!t.isCurrent())return!1;let o=new Set(r());return!i.length||i.some(a=>o.has(a))},acceptLayoutChanges:o=>{o===n&&t.isCurrent()&&(i=r()),t.acceptLayoutChanges?.(o)}}}async function Un(n,t=[],e=Ai(n)){je(n,e);let r=n.ownerDocument;n.getBoundingClientRect?.();let i=[],o,a=Array.from(n.querySelectorAll(\"img\")),s=Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")),l=Array.from(n.childNodes??[]),c=s.length?()=>Array.from(n.querySelectorAll(\"[data-docx-layout-root]\")):l.length?()=>Array.from(n.childNodes??[]):()=>Array.from(n.querySelectorAll(\"img\")),h=s.length?s:l.length?l:a,u=new Map,f=()=>{je(n,e);let m=new Set(c());if(h.length&&!h.some(b=>m.has(b)))throw e.cancel(),Go();let g=new Set(Array.from(n.querySelectorAll(\"img\")));for(let[b,T]of u)g.has(b)||T()},d=new Promise((m,g)=>{let b=()=>g(Go());e.signal.addEventListener(\"abort\",b,{once:!0}),i.push(()=>e.signal.removeEventListener(\"abort\",b));let T=r.defaultView?.MutationObserver;if(T&&r.documentElement){o=new T(()=>{try{f()}catch(S){g(S)}}),o.observe(r.documentElement,{childList:!0,subtree:!0});for(let S=n.getRootNode?.();S&&S!==r;S=S.host?.getRootNode?.())o.observe(S,{childList:!0,subtree:!0})}}),p=a.map(m=>m.complete?Promise.resolve():new Promise(g=>{let b=()=>g();u.set(m,b),m.addEventListener(\"load\",b,{once:!0}),m.addEventListener(\"error\",b,{once:!0}),i.push(()=>{m.removeEventListener(\"load\",b),m.removeEventListener(\"error\",b)})}));try{await Promise.race([Promise.all([Promise.allSettled(t),r.fonts?.ready??Promise.resolve(),...p]),d]),f()}finally{o?.disconnect(),i.forEach(m=>m())}}var Ad=/[\\u0000-\\u001f\\u007f]/,Cd=/^data:image\\/[a-z0-9.+-]+(?:;[^,]*)?,/i;function cr(n){return n?.targetMode?.trim().toLowerCase()===\"external\"}function Xs(n,t=\"block\"){if(!cr(n))return null;let e=`${n?.target??\"\"}`.trim();if(!e||Ad.test(e))return null;let r;try{r=new URL(e)}catch{return null}switch(r.protocol.toLowerCase()){case\"data:\":return Cd.test(e)?e:null;case\"blob:\":return e;case\"http:\":case\"https:\":return t===\"allow\"?r.href:null;default:return null}}var le;(function(n){n.OfficeDocument=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",n.FontTable=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable\",n.Image=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",n.Numbering=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering\",n.Styles=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\",n.StylesWithEffects=\"http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects\",n.Theme=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",n.Settings=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings\",n.WebSettings=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings\",n.Hyperlink=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\",n.Footnotes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes\",n.Endnotes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes\",n.Footer=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer\",n.Header=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header\",n.ExtendedProperties=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",n.CoreProperties=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",n.CustomProperties=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties\",n.Comments=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments\",n.CommentsExtended=\"http://schemas.microsoft.com/office/2011/relationships/commentsExtended\",n.AltChunk=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\",n.Chart=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart\",n.ChartUserShapes=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes\",n.DiagramData=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData\",n.DiagramLayout=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout\",n.DiagramQuickStyle=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle\",n.DiagramColors=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors\",n.Ink=\"http://schemas.microsoft.com/office/2007/relationships/ink\",n.ContentPart=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/contentPart\"})(le||(le={}));function Nd(n,t){return t.elements(n).map(e=>({id:t.attr(e,\"Id\"),type:t.attr(e,\"Type\"),target:t.attr(e,\"Target\"),targetMode:t.attr(e,\"TargetMode\")}))}function Rd(n){return n?.replace(/[ .]+/g,\"-\").replace(/[&]+/g,\"and\").toLowerCase()}function br(n){let t=String(n??\"\").trim();return(t.startsWith(\"'\")&&t.endsWith(\"'\")||t.startsWith('\"')&&t.endsWith('\"'))&&(t=t.slice(1,-1)),/^(?:serif|sans-serif|monospace|cursive|fantasy|system-ui|ui-serif|ui-sans-serif|ui-monospace|ui-rounded|emoji|math|fangsong)$/i.test(t)||/^[^\\u0000-\\u0020\\u007f-\\u009f'\"\\\\;:{}()[\\]<>/,]+$/u.test(t)?t:`'${t.replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/[\\u0000-\\u001f\\u007f-\\u009f]/g,r=>r===\"\\0\"?\"\\uFFFD\":`\\\\${r.codePointAt(0).toString(16)} `)}'`}function Pd(n){let t=String(n??\"\").normalize(\"NFKC\").toLowerCase();return/simsun|nsimsun|宋体|宋體|songti|shusong|书宋|書宋|fangsong|仿宋|mincho|明朝|明體|mingliu|pmingliu|batang|명조|kaiti|楷体|楷體|stkaiti|simhei|黑体|黑體|heiti|dengxian|等线|等線|yahei|fangzheng|方正|fz(?:fs|kt|ht|ss|xbs)|ゴシック|(?:^|\\s)(?:ms|yu)\\s+p?gothic|meiryo|メイリオ|malgun|맑은/.test(t)}function jo(n,t=\"\"){let e=String(n??\"\").trim();if(!e)return[];let r=e.normalize(\"NFKC\").toLowerCase(),i=/mincho|明朝|ゴシック|(?:^|\\s)(?:ms|yu)\\s+p?gothic|meiryo|メイリオ/.test(r),o=[\"Hans\",\"Hant\",\"Jpan\",\"Hang\"].includes(t)?t:i?\"Jpan\":t,a=[br(e)],s=Id(e),l=/simsun|nsimsun|宋体|宋體|songti|shusong|书宋|書宋|fangsong|仿宋|fz(?:fs|ss|xbs)|小标宋|小標宋|mincho|明朝|明體|mingliu|pmingliu|batang|명조/.test(r),c=/kaiti|楷体|楷體|stkaiti|fzkt|kai/.test(r),h=/simhei|黑体|黑體|heiti|fzht|dengxian|等线|等線|yahei|gothic|ゴシック|malgun|맑은/.test(r);return s.length&&a.push(...s.map(br)),l?o==\"Hant\"?a.push(\"'Songti TC'\",\"'Microsoft JhengHei'\",\"'Noto Serif CJK TC'\",\"serif\"):o==\"Jpan\"?a.push(\"'Yu Mincho'\",\"'Hiragino Mincho ProN'\",\"'Noto Serif CJK JP'\",\"serif\"):o==\"Hang\"?a.push(\"Batang\",\"AppleMyungjo\",\"'Noto Serif CJK KR'\",\"serif\"):a.push(\"'Songti SC'\",\"'Noto Serif CJK SC'\",\"serif\"):c?a.push(\"'Kaiti SC'\",\"STKaiti\",\"'Noto Serif CJK SC'\",\"serif\"):h?o==\"Hant\"?a.push(\"'Microsoft JhengHei'\",\"'PingFang TC'\",\"'Noto Sans CJK TC'\",\"sans-serif\"):o==\"Jpan\"?a.push(\"'Yu Gothic'\",\"Meiryo\",\"'Noto Sans CJK JP'\",\"sans-serif\"):o==\"Hang\"?a.push(\"'Malgun Gothic'\",\"'Apple SD Gothic Neo'\",\"'Noto Sans CJK KR'\",\"sans-serif\"):a.push(\"'Microsoft YaHei'\",\"'PingFang SC'\",\"'Noto Sans CJK SC'\",\"sans-serif\"):o==\"Hant\"?a.push(\"'PingFang TC'\",\"'Noto Sans CJK TC'\",\"sans-serif\"):o==\"Jpan\"?a.push(\"'Yu Gothic'\",\"Meiryo\",\"'Noto Sans CJK JP'\",\"sans-serif\"):o==\"Hang\"?a.push(\"'Apple SD Gothic Neo'\",\"'Noto Sans CJK KR'\",\"sans-serif\"):a.push(\"'PingFang SC'\",\"'Noto Sans CJK SC'\",\"sans-serif\"),[...new Set(a)]}function Id(n){let t=String(n??\"\").normalize(\"NFKC\").toLowerCase().replace(/[\\s_-]+/g,\"\");return[[/方正仿宋|fangzhengfangsong|fzfangsong|fzfs/,[\"\\u65B9\\u6B63\\u4EFF\\u5B8B\",\"\\u65B9\\u6B63\\u4EFF\\u5B8B\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u4EFF\\u5B8B_GBK\",\"FZFangSong-Z02\",\"FZFSK--GBK1-0\"]],[/方正楷体|fangzhengkai|fzkai|fzkt/,[\"\\u65B9\\u6B63\\u6977\\u4F53\",\"\\u65B9\\u6B63\\u6977\\u4F53\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u6977\\u4F53_GBK\",\"FZKai-Z03\",\"FZKTK--GBK1-0\"]],[/方正黑体|fangzhenghei|fzhei|fzht/,[\"\\u65B9\\u6B63\\u9ED1\\u4F53\",\"\\u65B9\\u6B63\\u9ED1\\u4F53\\u7B80\\u4F53\",\"FZHei-B01\",\"FZHTK--GBK1-0\"]],[/方正书宋|fangzhengshusong|fzshusong|fzss/,[\"\\u65B9\\u6B63\\u4E66\\u5B8B\",\"\\u65B9\\u6B63\\u4E66\\u5B8B\\u7B80\\u4F53\",\"FZShuSong-Z01\",\"FZSSK--GBK1-0\"]],[/方正小标宋|fangzhengxiaobiaosong|fzxiaobiaosong|fzxbs/,[\"\\u65B9\\u6B63\\u5C0F\\u6807\\u5B8B\\u7B80\\u4F53\",\"\\u65B9\\u6B63\\u5C0F\\u6807\\u5B8B\",\"FZXiaoBiaoSong-B05\",\"FZXBSJW--GB1-0\"]]].find(([r])=>r.test(t))?.[1]??[]}function Vo(n){let t=n.lastIndexOf(\"/\")+1,e=t==0?\"\":n.substring(0,t),r=t==0?n:n.substring(t);return[e,r]}function qs(n,t){try{let e=\"http://docx/\";return new URL(n,e+t).toString().substring(e.length)}catch{return`${t}${n}`}}function ur(n,t){return n.reduce((e,r)=>(e[t(r)]=r,e),{})}function Oo(n){return new Promise((t,e)=>{let r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>e(),r.readAsDataURL(n)})}function pi(n){return n&&typeof n==\"object\"&&!Array.isArray(n)}function Jr(n){return typeof n==\"string\"||n instanceof String}function Ci(n,...t){if(!t.length)return n;let e=t.shift();if(pi(n)&&pi(e))for(let r of Object.keys(e)){if(r===\"__proto__\"||r===\"constructor\"||r===\"prototype\")continue;let i=e[r];if(pi(i)){let o=Object.prototype.hasOwnProperty.call(n,r)?n[r]:void 0,a=pi(o)?o:{};n[r]=a,Ci(a,i)}else n[r]=i}return Ci(n,...t)}function Dn(n){let t={};for(let e of(n??\"\").split(\";\")){let r=e.indexOf(\":\");if(r<=0)continue;let i=e.substring(0,r).trim(),o=e.substring(r+1).trim();i&&(t[i]=o)}return t}function qr(n){return Array.isArray(n)?n:[n]}function Od(n,t,e){return t>n?t:e<n?e:n}var Qr={wordml:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",drawingml:\"http://schemas.openxmlformats.org/drawingml/2006/main\",picture:\"http://schemas.openxmlformats.org/drawingml/2006/picture\",wordprocessingCanvas:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",wordprocessingGroup:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wordprocessingShape:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\"},$t={Dxa:{mul:.05,unit:\"pt\"},SignedDxa:{mul:.05,unit:\"pt\"},Emu:{mul:1/12700,unit:\"pt\"},FontSize:{mul:.5,unit:\"pt\"},SignedHalfPoint:{mul:.5,unit:\"pt\"},Border:{mul:.125,unit:\"pt\",min:.25,max:12},Point:{mul:1,unit:\"pt\"},Percent:{mul:.02,unit:\"%\"}};function Be(n,t=$t.Dxa){if(n==null||n===\"\"||/.+(p[xt]|[%])$/i.test(n))return n;var e=parseFloat(n);if(Number.isNaN(e))return null;var r=e*t.mul;return t.min!=null&&t.max!=null&&(r=Od(r,t.min,t.max)),`${r.toFixed(2)}${t.unit}`}function Ks(n,t=!1){switch(n){case\"1\":return!0;case\"0\":return!1;case\"on\":return!0;case\"off\":return!1;case\"true\":return!0;case\"false\":return!1;default:return t}}function Nl(n,t,e){if(n.namespaceURI!=Qr.wordml)return!1;switch(n.localName){case\"color\":t.color=e.attr(n,\"val\");break;case\"sz\":t.fontSize=e.lengthAttr(n,\"val\",$t.FontSize);break;case\"szCs\":t.fontSize??(t.fontSize=e.lengthAttr(n,\"val\",$t.FontSize));break;default:return!1}return!0}var Zs=new Map,Lo=new Map,Ld=\"file-viewer-docx-xml-parser\",_d=\"file-viewer-docx-altchunk-parser\",Md=\"file-viewer-docx-altchunk-srcdoc\",Fd=new Set([\"script\",\"style\",\"base\",\"meta\",\"link\",\"object\",\"embed\",\"applet\",\"iframe\",\"frame\",\"frameset\",\"form\",\"input\",\"button\",\"textarea\",\"select\",\"option\",\"audio\",\"video\",\"source\",\"track\",\"svg\",\"math\",\"template\"]),Dd=/^(?:action|archive|background|cite|classid|codebase|data|dynsrc|formaction|href|longdesc|lowsrc|manifest|ping|poster|profile|src|srcdoc|srcset|usemap|xlink:href)$/;function Na(n,t){let e=globalThis.trustedTypes;if(!e)return t;let r=Zs.get(n);r||(r=e.createPolicy(n,{createHTML(i){if(i!==Lo.get(n))throw new TypeError(`Rejected HTML outside the ${n} boundary`);return i}}),Zs.set(n,r)),Lo.set(n,t);try{return r.createHTML(t)}finally{Lo.delete(n)}}function Bd(n){return typeof document>\"u\"?n:Na(Ld,n)}function $d(n){n.parentNode&&n.parentNode.removeChild(n)}function Wd(n){let t=new DOMParser,e=Na(_d,String(n??\"\")),r=t.parseFromString(e,\"text/html\");for(let a of Array.from(r.getElementsByTagName(\"*\"))){let s=a.localName?.toLowerCase()||a.nodeName.toLowerCase();Fd.has(s)&&$d(a)}for(let a of Array.from(r.getElementsByTagName(\"*\")))for(let s of Array.from(a.attributes??[])){let l=s.name.toLowerCase();(l.startsWith(\"on\")||l===\"style\"||Dd.test(l))&&a.removeAttribute(s.name)}let i=r.documentElement;return`<!doctype html>${i?new XMLSerializer().serializeToString(i):\"<html><head></head><body></body></html>\"}`}function Hd(n,t){let e=Wd(t),r=Na(Md,e);n.srcdoc=r}var Rl={parse:n=>new DOMParser().parseFromString(n,\"application/xml\"),serialize:n=>new XMLSerializer().serializeToString(n)};function Ra(n,t=!1){t&&(n=n.replace(/<[?].*[?]>/,\"\")),n=zd(n);let e=Rl.parse(Bd(n)),r=Ud(e);if(r)throw new Error(r);return e}function Ud(n){return n.getElementsByTagName(\"parsererror\")[0]?.textContent}function zd(n){return n.charCodeAt(0)===65279?n.substring(1):n}function Yd(n){return Rl.serialize(n)}var Ni=class{elements(t,e=null){let r=[];for(let i=0,o=t.childNodes.length;i<o;i++){let a=t.childNodes.item(i);a.nodeType==1&&(e==null||a.localName==e)&&r.push(a)}return r}element(t,e){for(let r=0,i=t.childNodes.length;r<i;r++){let o=t.childNodes.item(r);if(o.nodeType==1&&o.localName==e)return o}return null}elementAttr(t,e,r){var i=this.element(t,e);return i?this.attr(i,r):void 0}attrs(t){return Array.from(t.attributes)}attr(t,e){if(t?.localName==\"blip\"&&(e==\"embed\"||e==\"link\")){let r=this.descendantAttr(t,\"svgBlip\",e);if(r!=null)return r}if(t?.localName==\"cnfStyle\"&&e==\"val\"){let r=this.rawAttr(t,e);return r??this.cnfStyleValue(t)}return this.rawAttr(t,e)}rawAttr(t,e){for(let r=0,i=t.attributes.length;r<i;r++){let o=t.attributes.item(r);if(o.localName==e)return o.value}return null}descendantAttr(t,e,r){for(let i of this.elements(t)){if(i.localName==e){let a=this.rawAttr(i,r);if(a!=null)return a}let o=this.descendantAttr(i,e,r);if(o!=null)return o}return null}cnfStyleValue(t){return[\"firstRow\",\"lastRow\",\"firstColumn\",\"lastColumn\",\"oddVBand\",\"evenVBand\",\"oddHBand\",\"evenHBand\",\"firstRowLastColumn\",\"firstRowFirstColumn\",\"lastRowLastColumn\",\"lastRowFirstColumn\"].map(r=>Ks(this.rawAttr(t,r),!1)?\"1\":\"0\").join(\"\")}intAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseInt(i,10):r}hexAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseInt(i,16):r}floatAttr(t,e,r=null){var i=this.attr(t,e);return i!=null&&i!==\"\"?parseFloat(i):r}boolAttr(t,e,r=null){return Ks(this.attr(t,e),r)}lengthAttr(t,e,r=$t.Dxa){return Be(this.attr(t,e),r)}},w=new Ni,Pe=class{constructor(t,e){this._package=t,this.path=e}async load(){this.rels=await this._package.loadRelationships(this.path);let t=await this._package.load(this.path),e=this._package.parseXmlDocument(t);this._package.options.keepOrigin&&(this._xmlDocument=e),this.parseXml(e.firstElementChild??e.documentElement)}save(){this._package.update(this.path,Yd(this._xmlDocument))}parseXml(t){}},Gd={embedRegular:\"regular\",embedBold:\"bold\",embedItalic:\"italic\",embedBoldItalic:\"boldItalic\"};function jd(n,t){return t.elements(n).map(e=>Vd(e,t))}function Vd(n,t){let e={name:t.attr(n,\"name\"),embedFontRefs:[]};for(let r of t.elements(n))switch(r.localName){case\"family\":e.family=t.attr(r,\"val\");break;case\"altName\":e.altName=t.attr(r,\"val\");break;case\"embedRegular\":case\"embedBold\":case\"embedItalic\":case\"embedBoldItalic\":e.embedFontRefs.push(Xd(r,t));break}return e}function Xd(n,t){return{id:t.attr(n,\"id\"),key:t.attr(n,\"fontKey\"),type:Gd[n.localName]}}var Xo=class extends Pe{parseXml(t){this.fonts=jd(t,this._package.xmlParser)}};function qd(n,t){return t.elements(n).map(e=>({extension:t.attr(e,\"Extension\"),partName:t.attr(e,\"PartName\"),contentType:t.attr(e,\"ContentType\")}))}var qo=class n{constructor(t,e){this._zip=t,this.options=e,this.xmlParser=new Ni}get(t){let e=Kd(t);return this._zip.files[e]??this._zip.files[e.replace(/\\//g,\"\\\\\")]}update(t,e){this._zip.file(t,e)}static async load(t,e){let r=await(e.zipLoader?e.zipLoader(t):Al.default.loadAsync(t));return new n(r,e)}save(t=\"blob\"){return this._zip.generateAsync({type:t})}load(t,e=\"string\"){return this.get(t)?.async(e)??Promise.resolve(null)}async loadRelationships(t=null){let e=\"_rels/.rels\";if(t!=null){let[i,o]=Vo(t);e=`${i}_rels/${o}.rels`}let r=await this.load(e);return r?Nd(Js(this.parseXmlDocument(r)),this.xmlParser):null}async loadContentTypes(){let t=await this.load(\"[Content_Types].xml\");return t?qd(Js(this.parseXmlDocument(t)),this.xmlParser):[]}parseXmlDocument(t){return Ra(t,this.options.trimXmlDeclaration)}};function Js(n){return n.firstElementChild??n.documentElement}function Kd(n){return n.startsWith(\"/\")?n.substr(1):n}var Ko=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.body=this._documentParser.parseDocumentFile(t)}};function mi(n,t){return{type:t.attr(n,\"val\"),color:t.attr(n,\"color\"),size:t.lengthAttr(n,\"sz\",$t.Border),offset:t.lengthAttr(n,\"space\",$t.Point),frame:t.boolAttr(n,\"frame\"),shadow:t.boolAttr(n,\"shadow\")}}function Zd(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"left\":e.left=mi(r,t);break;case\"top\":e.top=mi(r,t);break;case\"right\":e.right=mi(r,t);break;case\"bottom\":e.bottom=mi(r,t);break}return e}function Ri(n,t){let e={defaultNoteIds:[]};for(let r of t.elements(n))switch(r.localName){case\"numFmt\":e.numberingFormat=e.nummeringFormat=t.attr(r,\"val\");break;case\"numStart\":let i=t.intAttr(r,\"val\",null);Number.isSafeInteger(i)&&i>=0&&(e.start=i);break;case\"numRestart\":let o=t.attr(r,\"val\");[\"continuous\",\"eachSect\",\"eachPage\"].includes(o)&&(e.restart=o);break;case\"footnote\":case\"endnote\":e.defaultNoteIds.push(t.attr(r,\"id\"));break}return e}function Jd(n,t){return{format:t?.numberingFormat??t?.nummeringFormat??n?.numberingFormat??n?.nummeringFormat??\"decimal\",start:t?.start??n?.start??1,restart:t?.restart??n?.restart??\"continuous\"}}var Bn=class{constructor(){this.assignments=new Map,this.counters=new Map}assign(t,e,r,i,o,a){let s=`${t}:${e}`,l=this.assignments.get(s);if(l)return l;let c=this.counters.get(t),h=!c||i.restart===\"eachSect\"&&c.section!==o||i.restart===\"eachPage\"&&c.page!==a,u=r?null:h?i.start:c.next;r||this.counters.set(t,{next:u+1,section:o,page:a});let f={id:e,kind:t,custom:r,value:u,properties:i};return this.assignments.set(s,f),f}};function Qd(n){if(!n||n.custom||n.properties.format===\"none\")return\"\";let t=n.value,e=n.properties.format;switch(e){case\"chicago\":{let r=[\"*\",\"\\u2020\",\"\\u2021\",\"\\xA7\"];return t>0&&t<=384?r[(t-1)%r.length].repeat(Math.floor((t-1)/r.length)+1):`${t}`}case\"upperLetter\":case\"lowerLetter\":{if(t<=0||t>3328)return`${t}`;let r=e===\"upperLetter\"?65:97;return String.fromCharCode(r+(t-1)%26).repeat(Math.floor((t-1)/26)+1)}case\"upperRoman\":case\"lowerRoman\":{if(t<=0||t>3999)return`${t}`;let r=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],i=t,o=\"\";for(let[a,s]of r)for(;i>=a;)o+=s,i-=a;return e===\"lowerRoman\"?o.toLowerCase():o}case\"decimalZero\":return t<10?`0${t}`:`${t}`;case\"numberInDash\":return`-${t}-`;case\"hex\":return t.toString(16).toUpperCase();case\"ordinal\":return`${t}${t%100>=11&&t%100<=13?\"th\":{1:\"st\",2:\"nd\",3:\"rd\"}[t%10]??\"th\"}`;default:return`${t}`}}var pn;(function(n){n.Continuous=\"continuous\",n.NextPage=\"nextPage\",n.NextColumn=\"nextColumn\",n.EvenPage=\"evenPage\",n.OddPage=\"oddPage\"})(pn||(pn={}));function tf(n){return n==null||n===pn.NextPage||n===pn.EvenPage||n===pn.OddPage}function ef(n){return n===pn.NextColumn}var nr={width:\"11906\",height:\"16838\",marginTop:\"1440\",marginRight:\"1440\",marginBottom:\"1440\",marginLeft:\"1440\",header:\"720\",footer:\"720\",gutter:\"0\"};function rf(n=null){let t=n===\"landscape\";return{width:Be(t?nr.height:nr.width),height:Be(t?nr.width:nr.height),orientation:n}}function nf(){return{top:Be(nr.marginTop),right:Be(nr.marginRight),bottom:Be(nr.marginBottom),left:Be(nr.marginLeft),header:Be(nr.header),footer:Be(nr.footer),gutter:Be(nr.gutter)}}function Pl(n=null,t=w){let e=n?t.element(n,\"pgSz\"):null,r=e?t.attr(e,\"orient\"):null,i=rf(r),o=nf();var a={pageSize:i,pageMargins:o};if(!n)return a;for(let s of t.elements(n))switch(s.localName){case\"pgSz\":a.pageSize={width:t.lengthAttr(s,\"w\")??i.width,height:t.lengthAttr(s,\"h\")??i.height,orientation:r};break;case\"type\":a.type=t.attr(s,\"val\");break;case\"pgMar\":a.pageMargins={left:t.lengthAttr(s,\"left\")??o.left,right:t.lengthAttr(s,\"right\")??o.right,top:t.lengthAttr(s,\"top\")??o.top,bottom:t.lengthAttr(s,\"bottom\")??o.bottom,header:t.lengthAttr(s,\"header\")??o.header,footer:t.lengthAttr(s,\"footer\")??o.footer,gutter:t.lengthAttr(s,\"gutter\")??o.gutter};break;case\"cols\":a.columns=of(s,t);break;case\"headerReference\":(a.headerRefs??(a.headerRefs=[])).push(Qs(s,t));break;case\"footerReference\":(a.footerRefs??(a.footerRefs=[])).push(Qs(s,t));break;case\"titlePg\":a.titlePage=t.boolAttr(s,\"val\",!0);break;case\"pgBorders\":a.pageBorders=Zd(s,t);break;case\"pgNumType\":a.pageNumber=af(s,t);break;case\"footnotePr\":a.footnoteProps=Ri(s,t);break;case\"endnotePr\":a.endnoteProps=Ri(s,t);break;case\"docGrid\":a.docGrid=sf(s,t);break}return a}function of(n,t){return{numberOfColumns:t.intAttr(n,\"num\"),space:t.lengthAttr(n,\"space\"),separator:t.boolAttr(n,\"sep\"),equalWidth:t.boolAttr(n,\"equalWidth\",!0),columns:t.elements(n,\"col\").map(e=>({width:t.lengthAttr(e,\"w\"),space:t.lengthAttr(e,\"space\")}))}}function af(n,t){return{chapSep:t.attr(n,\"chapSep\"),chapStyle:t.attr(n,\"chapStyle\"),format:t.attr(n,\"fmt\"),start:t.intAttr(n,\"start\")}}function sf(n,t){let e=t.intAttr(n,\"charSpace\",null),r=e==null?null:e/4096;return{type:t.attr(n,\"type\"),linePitch:t.lengthAttr(n,\"linePitch\"),charSpace:r==null?null:`${r.toFixed(4)}pt`,charSpaceRaw:e}}function Qs(n,t){return{id:t.attr(n,\"id\"),type:t.attr(n,\"type\")}}function lf(n,t){return{before:t.lengthAttr(n,\"before\"),after:t.lengthAttr(n,\"after\"),line:t.intAttr(n,\"line\"),lineRule:t.attr(n,\"lineRule\")}}function Pa(n,t){let e={};for(let r of t.elements(n))cf(r,e,t);return e}function cf(n,t,e){return!!Nl(n,t,e)}function Il(n,t){let e={};for(let r of t.elements(n))Zo(r,e,t);return e}function Zo(n,t,e){if(n.namespaceURI!=Qr.wordml)return!1;if(Nl(n,t,e))return!0;switch(n.localName){case\"tabs\":t.tabs=uf(n,e);break;case\"sectPr\":t.sectionProps=Pl(n,e);break;case\"numPr\":t.numbering=hf(n,e);break;case\"spacing\":return t.lineSpacing=lf(n,e),!1;case\"textAlignment\":return t.textAlignment=e.attr(n,\"val\"),!1;case\"keepLines\":t.keepLines=e.boolAttr(n,\"val\",!0);break;case\"keepNext\":t.keepNext=e.boolAttr(n,\"val\",!0);break;case\"pageBreakBefore\":t.pageBreakBefore=e.boolAttr(n,\"val\",!0);break;case\"widowControl\":t.widowControl=e.boolAttr(n,\"val\",!0);break;case\"outlineLvl\":t.outlineLevel=e.intAttr(n,\"val\");break;case\"pStyle\":t.styleName=e.attr(n,\"val\");break;case\"rPr\":t.runProps=Pa(n,e);break;default:return!1}return!0}function uf(n,t){return t.elements(n,\"tab\").map(e=>({position:t.lengthAttr(e,\"pos\"),leader:t.attr(e,\"leader\"),style:t.attr(e,\"val\")}))}function hf(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"numId\":e.id=t.attr(r,\"val\");break;case\"ilvl\":e.level=t.intAttr(r,\"val\");break}return e}function df(n,t){let e={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of t.elements(n))switch(r.localName){case\"num\":e.numberings.push(ff(r,t));break;case\"abstractNum\":e.abstractNumberings.push(pf(r,t));break;case\"numPicBullet\":e.bulletPictures.push(gf(r,t));break}return e}function ff(n,t){let e={id:t.attr(n,\"numId\"),overrides:[]};for(let r of t.elements(n))switch(r.localName){case\"abstractNumId\":e.abstractId=t.attr(r,\"val\");break;case\"lvlOverride\":e.overrides.push(mf(r,t));break}return e}function pf(n,t){let e={id:t.attr(n,\"abstractNumId\"),levels:[]};for(let r of t.elements(n))switch(r.localName){case\"name\":e.name=t.attr(r,\"val\");break;case\"multiLevelType\":e.multiLevelType=t.attr(r,\"val\");break;case\"numStyleLink\":e.numberingStyleLink=t.attr(r,\"val\");break;case\"styleLink\":e.styleLink=t.attr(r,\"val\");break;case\"lvl\":e.levels.push(Ol(r,t));break}return e}function Ol(n,t){let e={level:t.intAttr(n,\"ilvl\")};for(let r of t.elements(n))switch(r.localName){case\"start\":e.start=t.attr(r,\"val\");break;case\"lvlRestart\":e.restart=t.intAttr(r,\"val\");break;case\"numFmt\":e.format=t.attr(r,\"val\");break;case\"lvlText\":e.text=t.attr(r,\"val\");break;case\"lvlJc\":e.justification=t.attr(r,\"val\");break;case\"lvlPicBulletId\":e.bulletPictureId=t.attr(r,\"val\");break;case\"pStyle\":e.paragraphStyle=t.attr(r,\"val\");break;case\"pPr\":e.paragraphProps=Il(r,t);break;case\"rPr\":e.runProps=Pa(r,t);break}return e}function mf(n,t){let e={level:t.intAttr(n,\"ilvl\")};for(let r of t.elements(n))switch(r.localName){case\"startOverride\":e.start=t.intAttr(r,\"val\");break;case\"lvl\":e.numberingLevel=Ol(r,t);break}return e}function gf(n,t){var e=t.attr(n,\"numPicBulletId\"),r=t.element(n,\"pict\"),i=r&&t.element(r,\"shape\"),o=i&&t.element(i,\"imagedata\");if(o)return{id:e,referenceId:t.attr(o,\"id\"),style:t.attr(i,\"style\")};var a=t.element(n,\"drawing\"),s=a&&Ll(a,\"blip\",t);return s?{id:e,referenceId:t.attr(s,\"embed\")??t.attr(s,\"link\"),style:null}:null}function Ll(n,t,e){for(let r of e.elements(n)){if(r.localName==t)return r;let i=Ll(r,t,e);if(i)return i}return null}var Jo=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){Object.assign(this,df(t,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(t)}},Qo=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.styles=this._documentParser.parseStylesFile(t)}},A;(function(n){n.Document=\"document\",n.Paragraph=\"paragraph\",n.Run=\"run\",n.Break=\"break\",n.NoBreakHyphen=\"noBreakHyphen\",n.Table=\"table\",n.Row=\"row\",n.Cell=\"cell\",n.Hyperlink=\"hyperlink\",n.SmartTag=\"smartTag\",n.Drawing=\"drawing\",n.Image=\"image\",n.Text=\"text\",n.Tab=\"tab\",n.PositionalTab=\"positionalTab\",n.SoftHyphen=\"softHyphen\",n.Symbol=\"symbol\",n.BookmarkStart=\"bookmarkStart\",n.BookmarkEnd=\"bookmarkEnd\",n.Footer=\"footer\",n.Header=\"header\",n.FootnoteReference=\"footnoteReference\",n.EndnoteReference=\"endnoteReference\",n.Footnote=\"footnote\",n.Endnote=\"endnote\",n.SimpleField=\"simpleField\",n.ComplexField=\"complexField\",n.Instruction=\"instruction\",n.VmlPicture=\"vmlPicture\",n.MmlMath=\"mmlMath\",n.Shape=\"shape\",n.MmlMathParagraph=\"mmlMathParagraph\",n.MmlFraction=\"mmlFraction\",n.MmlFunction=\"mmlFunction\",n.MmlFunctionName=\"mmlFunctionName\",n.MmlNumerator=\"mmlNumerator\",n.MmlDenominator=\"mmlDenominator\",n.MmlRadical=\"mmlRadical\",n.MmlBase=\"mmlBase\",n.MmlDegree=\"mmlDegree\",n.MmlSuperscript=\"mmlSuperscript\",n.MmlSubscript=\"mmlSubscript\",n.MmlPreSubSuper=\"mmlPreSubSuper\",n.MmlSubArgument=\"mmlSubArgument\",n.MmlSuperArgument=\"mmlSuperArgument\",n.MmlNary=\"mmlNary\",n.MmlDelimiter=\"mmlDelimiter\",n.MmlRun=\"mmlRun\",n.MmlEquationArray=\"mmlEquationArray\",n.MmlLimit=\"mmlLimit\",n.MmlLimitLower=\"mmlLimitLower\",n.MmlLimitUpper=\"mmlLimitUpper\",n.MmlSubSuperscript=\"mmlSubSuperscript\",n.MmlPhantom=\"mmlPhantom\",n.MmlBorderBox=\"mmlBorderBox\",n.MmlAccent=\"mmlAccent\",n.MmlMatrix=\"mmlMatrix\",n.MmlMatrixRow=\"mmlMatrixRow\",n.MmlBox=\"mmlBox\",n.MmlBar=\"mmlBar\",n.MmlGroupChar=\"mmlGroupChar\",n.VmlElement=\"vmlElement\",n.Chart=\"chart\",n.SmartArt=\"smartArt\",n.Ink=\"ink\",n.Ruby=\"ruby\",n.RubyBase=\"rubyBase\",n.RubyText=\"rubyText\",n.Inserted=\"inserted\",n.Deleted=\"deleted\",n.DeletedText=\"deletedText\",n.Comment=\"comment\",n.CommentReference=\"commentReference\",n.CommentRangeStart=\"commentRangeStart\",n.CommentRangeEnd=\"commentRangeEnd\",n.AltChunk=\"altChunk\"})(A||(A={}));var wr=class{constructor(){this.children=[],this.cssStyle={}}},ta=class extends wr{constructor(){super(...arguments),this.type=A.Header}},ea=class extends wr{constructor(){super(...arguments),this.type=A.Footer}},Pi=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(t)}},ra=class extends Pi{createRootElement(){return new ta}},na=class extends Pi{createRootElement(){return new ea}};function bf(n,t){let e={};for(let r of t.elements(n))switch(r.localName){case\"Template\":e.template=r.textContent;break;case\"Pages\":e.pages=Mn(r.textContent);break;case\"Words\":e.words=Mn(r.textContent);break;case\"Characters\":e.characters=Mn(r.textContent);break;case\"Application\":e.application=r.textContent;break;case\"Lines\":e.lines=Mn(r.textContent);break;case\"Paragraphs\":e.paragraphs=Mn(r.textContent);break;case\"Company\":e.company=r.textContent;break;case\"AppVersion\":e.appVersion=r.textContent;break}return e}function Mn(n){if(!(typeof n>\"u\"))return parseInt(n)}var ia=class extends Pe{parseXml(t){this.props=bf(t,this._package.xmlParser)}};function yf(n,t){let e={};for(let r of t.elements(n))switch(r.localName){case\"title\":e.title=r.textContent;break;case\"description\":e.description=r.textContent;break;case\"subject\":e.subject=r.textContent;break;case\"creator\":e.creator=r.textContent;break;case\"keywords\":e.keywords=r.textContent;break;case\"language\":e.language=r.textContent;break;case\"lastModifiedBy\":e.lastModifiedBy=r.textContent;break;case\"revision\":r.textContent&&(e.revision=parseInt(r.textContent));break}return e}var oa=class extends Pe{parseXml(t){this.props=yf(t,this._package.xmlParser)}},aa=class{};function Ei(n){let t=String(n??\"\").trim().replace(/_/g,\"-\").toLowerCase(),e=t.split(\"-\")[0];return e==\"zh\"?/(?:^|-)hant(?:-|$)|-(?:tw|hk|mo)(?:-|$)/.test(t)?\"Hant\":\"Hans\":{ja:\"Jpan\",ko:\"Hang\",ar:\"Arab\",fa:\"Arab\",ur:\"Arab\",he:\"Hebr\",yi:\"Hebr\",th:\"Thai\",vi:\"Viet\",hi:\"Deva\",bn:\"Beng\",gu:\"Gujr\",kn:\"Knda\",pa:\"Guru\",ta:\"Taml\",te:\"Telu\",ml:\"Mlym\",or:\"Orya\",si:\"Sinh\",km:\"Khmr\",lo:\"Laoo\",my:\"Mymr\",mn:\"Mong\"}[e]??\"\"}function xf(n,t){var e=new aa,r=t.element(n,\"themeElements\");for(let i of t.elements(r))switch(i.localName){case\"clrScheme\":e.colorScheme=wf(i,t);break;case\"fontScheme\":e.fontScheme=vf(i,t);break}return e}function wf(n,t){var e={name:t.attr(n,\"name\"),colors:{}};for(let o of t.elements(n)){var r=t.element(o,\"srgbClr\"),i=t.element(o,\"sysClr\");r?e.colors[o.localName]=t.attr(r,\"val\"):i&&(e.colors[o.localName]=t.attr(i,\"lastClr\"))}return e}function vf(n,t){var e={name:t.attr(n,\"name\")};for(let r of t.elements(n))switch(r.localName){case\"majorFont\":e.majorFont=tl(r,t);break;case\"minorFont\":e.minorFont=tl(r,t);break}return e}function tl(n,t){let e={};for(let r of t.elements(n).filter(i=>i.localName==\"font\")){let i=t.attr(r,\"script\"),o=t.attr(r,\"typeface\");i&&o&&(e[i]=o)}return{latinTypeface:t.elementAttr(n,\"latin\",\"typeface\"),eaTypeface:t.elementAttr(n,\"ea\",\"typeface\"),csTypeface:t.elementAttr(n,\"cs\",\"typeface\"),scriptTypefaces:e}}var sa=class extends Pe{constructor(t,e){super(t,e)}parseXml(t){this.theme=xf(t,this._package.xmlParser)}},Ii=class{},la=class extends Ii{constructor(){super(...arguments),this.type=A.Footnote}},ca=class extends Ii{constructor(){super(...arguments),this.type=A.Endnote}},Oi=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}},ua=class extends Oi{constructor(t,e,r){super(t,e,r)}parseXml(t){this.notes=this._documentParser.parseNotes(t,\"footnote\",la)}},ha=class extends Oi{constructor(t,e,r){super(t,e,r)}parseXml(t){this.notes=this._documentParser.parseNotes(t,\"endnote\",ca)}};function Tf(n,t){var e={};for(let r of t.elements(n))switch(r.localName){case\"defaultTabStop\":e.defaultTabStop=t.lengthAttr(r,\"val\");break;case\"footnotePr\":e.footnoteProps=Ri(r,t);break;case\"endnotePr\":e.endnoteProps=Ri(r,t);break;case\"autoHyphenation\":e.autoHyphenation=t.boolAttr(r,\"val\");break;case\"kinsoku\":e.kinsoku=t.boolAttr(r,\"val\",!0);break;case\"overflowPunct\":e.overflowPunctuation=t.boolAttr(r,\"val\",!0);break;case\"topLinePunct\":e.topLinePunctuation=t.boolAttr(r,\"val\",!0);break;case\"autoSpaceDE\":e.autoSpaceDE=t.boolAttr(r,\"val\",!0);break;case\"autoSpaceDN\":e.autoSpaceDN=t.boolAttr(r,\"val\",!0);break;case\"noLineBreaksAfter\":e.noLineBreaksAfter=t.attr(r,\"val\")||r.textContent||\"\";break;case\"noLineBreaksBefore\":e.noLineBreaksBefore=t.attr(r,\"val\")||r.textContent||\"\";break;case\"evenAndOddHeaders\":e.evenAndOddHeaders=t.boolAttr(r,\"val\",!0);break;case\"splitPgBreakAndParaMark\":e.splitPageBreakAndParagraphMark=t.boolAttr(r,\"val\",!0);break;case\"compat\":for(let i of t.elements(r))i.localName==\"adjustLineHeightInTable\"&&(e.adjustLineHeightInTable=t.boolAttr(i,\"val\",!0));break}return e}var da=class extends Pe{constructor(t,e){super(t,e)}parseXml(t){this.settings=Tf(t,this._package.xmlParser)}};function Sf(n,t){return t.elements(n,\"property\").map(e=>{let r=e.firstChild;return{formatId:t.attr(e,\"fmtid\"),name:t.attr(e,\"name\"),type:r.nodeName,value:r.textContent}})}var fa=class extends Pe{parseXml(t){this.props=Sf(t,this._package.xmlParser)}},pa=class extends Pe{constructor(t,e,r){super(t,e),this._documentParser=r}parseXml(t){this.comments=this._documentParser.parseComments(t),this.commentMap=ur(this.comments,e=>e.id)}},ma=class extends Pe{constructor(t,e){super(t,e),this.comments=[]}parseXml(t){let e=this._package.xmlParser;for(let r of e.elements(t,\"commentEx\"))this.comments.push({paraId:e.attr(r,\"paraId\"),paraIdParent:e.attr(r,\"paraIdParent\"),done:e.boolAttr(r,\"done\")});this.commentMap=ur(this.comments,r=>r.paraId)}},Tt={HEADER:1,POLYBEZIER:2,POLYGON:3,POLYLINE:4,POLYBEZIERTO:5,POLYLINETO:6,POLYPOLYLINE:7,POLYPOLYGON:8,SETWINDOWEXTEX:9,SETWINDOWORGEX:10,SETVIEWPORTEXTEX:11,SETVIEWPORTORGEX:12,EOF:14,SETPIXELV:15,SETBKMODE:18,SETPOLYFILLMODE:19,SETTEXTALIGN:22,SETTEXTCOLOR:24,SETBKCOLOR:25,MOVETOEX:27,SCALEVIEWPORTEXTEX:31,SCALEWINDOWEXTEX:32,SAVEDC:33,RESTOREDC:34,SETWORLDTRANSFORM:35,MODIFYWORLDTRANSFORM:36,SELECTOBJECT:37,CREATEPEN:38,CREATEBRUSHINDIRECT:39,DELETEOBJECT:40,ELLIPSE:42,RECTANGLE:43,ROUNDRECT:44,ARC:45,CHORD:46,PIE:47,LINETO:54,ARCTO:55,POLYDRAW:56,BEGINPATH:59,ENDPATH:60,CLOSEFIGURE:61,FILLPATH:62,STROKEANDFILLPATH:63,STROKEPATH:64,BITBLT:76,STRETCHBLT:77,STRETCHDIBITS:81,EXTCREATEFONTINDIRECTW:82,EXTTEXTOUTA:83,EXTTEXTOUTW:84,POLYBEZIER16:85,POLYGON16:86,POLYLINE16:87,POLYBEZIERTO16:88,POLYLINETO16:89,POLYPOLYLINE16:90,POLYPOLYGON16:91,POLYDRAW16:92,EXTCREATEPEN:95,POLYTEXTOUTA:96,POLYTEXTOUTW:97,SMALLTEXTOUT:108,ALPHABLEND:114,TRANSPARENTBLT:116},Ef={0:{type:\"brush\",color:\"#ffffff\"},1:{type:\"brush\",color:\"#c0c0c0\"},2:{type:\"brush\",color:\"#808080\"},3:{type:\"brush\",color:\"#404040\"},4:{type:\"brush\",color:\"#000000\"},5:{type:\"brush\",color:\"none\",nullBrush:!0},6:{type:\"pen\",color:\"#ffffff\",width:1},7:{type:\"pen\",color:\"#000000\",width:1},8:{type:\"pen\",color:\"none\",width:0,nullPen:!0},18:{type:\"brush\",color:\"#ffffff\"},19:{type:\"pen\",color:\"#000000\",width:1}},_l={m11:1,m12:0,m21:0,m22:1,dx:0,dy:0};function Ml(n){if(!n||n.length<48)return!1;let t=Bl(n);return t.getUint32(0,!0)==Tt.HEADER&&t.getUint32(40,!0)==1179469088}function kf(n,t){let e=Af(n,t);return e?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`:null}function Af(n,t={}){if(!Ml(n))return null;let e=Bl(n),r=e.getUint32(4,!0),i=$n(e,8),o=$n(e,24),a=e.byteLength>=52?e.getUint32(48,!0):0,s=Math.max(1,i.right-i.left),l=Math.max(1,i.bottom-i.top),c=Math.max(1,o.right-o.left)/100,h=Math.max(1,o.bottom-o.top)/100,u=Cf(),f=[],d={},p=[],m=Math.max(8,r||108),g=1,b=\"\",T=!1,S=0,I=t.maxRecords??Math.max(1e4,a+100),O=t.maxShapes??5e4,$=W=>{!W||S>=O||(p.push(W),S++)},k=W=>{W&&(b+=(b?\" \":\"\")+W)};for(;m+8<=e.byteLength&&g++<=I;){let W=e.getUint32(m,!0),U=e.getUint32(m+4,!0);if(U<8||m+U>e.byteLength)break;switch(W){case Tt.EOF:m+=U,g=I+1;break;case Tt.SETWINDOWEXTEX:u.windowExt=rl(e,m+8);break;case Tt.SETWINDOWORGEX:u.windowOrg=Ne(e,m+8);break;case Tt.SETVIEWPORTEXTEX:u.viewportExt=rl(e,m+8);break;case Tt.SETVIEWPORTORGEX:u.viewportOrg=Ne(e,m+8);break;case Tt.SCALEWINDOWEXTEX:u.windowExt&&(u.windowExt=ol(e,m,u.windowExt));break;case Tt.SCALEVIEWPORTEXTEX:u.viewportExt&&(u.viewportExt=ol(e,m,u.viewportExt));break;case Tt.SETWORLDTRANSFORM:u.world=nl(e,m+8);break;case Tt.MODIFYWORLDTRANSFORM:{let v=nl(e,m+8),_=e.getUint32(m+32,!0);_==1?u.world=Ia(_l):_==2?u.world=il(v,u.world):_==3?u.world=il(u.world,v):_==4&&(u.world=v);break}case Tt.SAVEDC:f.push(el(u));break;case Tt.RESTOREDC:{let v=e.getInt32(m+8,!0);if(v<0)for(let _=0;_<Math.min(-v,f.length);_++)Object.assign(u,f.pop());else if(v>0&&v<=f.length){let _=f[v-1];f.length=v-1,Object.assign(u,el(_))}break}case Tt.SETBKMODE:u.bkMode=e.getUint32(m+8,!0);break;case Tt.SETPOLYFILLMODE:u.polyFillMode=e.getUint32(m+8,!0);break;case Tt.SETTEXTALIGN:u.textAlign=e.getUint32(m+8,!0);break;case Tt.SETTEXTCOLOR:u.textColor=dn(e.getUint32(m+8,!0));break;case Tt.SETBKCOLOR:u.bkColor=dn(e.getUint32(m+8,!0));break;case Tt.CREATEPEN:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+12,!0),y=Math.abs(e.getInt32(m+16,!0)),H=dn(e.getUint32(m+24,!0));d[v]={type:\"pen\",color:H,width:y||1,nullPen:(_&15)==5};break}case Tt.EXTCREATEPEN:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+28,!0),y=Math.abs(e.getInt32(m+32,!0)),H=e.getUint32(m+36,!0),nt=dn(e.getUint32(m+40,!0));d[v]={type:\"pen\",color:nt,width:y||1,nullPen:(_&15)==5||H==1};break}case Tt.CREATEBRUSHINDIRECT:{let v=e.getUint32(m+8,!0),_=e.getUint32(m+12,!0),y=dn(e.getUint32(m+16,!0));d[v]={type:\"brush\",color:y,nullBrush:_==1};break}case Tt.EXTCREATEFONTINDIRECTW:{let v=e.getUint32(m+8,!0);d[v]=Pf(e,m+12,U-12);break}case Tt.SELECTOBJECT:{let v=e.getUint32(m+8,!0),_=v&2147483648?Ef[v&2147483647]:d[v];_?.type==\"pen\"?u.pen=Fl(_):_?.type==\"brush\"?u.brush=Dl(_):_?.type==\"font\"&&(u.font={..._});break}case Tt.DELETEOBJECT:delete d[e.getUint32(m+8,!0)];break;case Tt.BEGINPATH:T=!0,b=\"\";break;case Tt.ENDPATH:T=!1;break;case Tt.CLOSEFIGURE:k(\"Z\");break;case Tt.MOVETOEX:{let v=ae(u,Ne(e,m+8));u.currentPoint=v,T&&k(`M ${wt(v.x)} ${wt(v.y)}`);break}case Tt.LINETO:{let v=ae(u,Ne(e,m+8));T?k(`L ${wt(v.x)} ${wt(v.y)}`):$(`<path d=\"M ${wt(u.currentPoint.x)} ${wt(u.currentPoint.y)} L ${wt(v.x)} ${wt(v.y)}\" ${$r(u,!1,!0)}/>`),u.currentPoint=v;break}case Tt.POLYLINE:case Tt.POLYGON:sl(e,m,W==Tt.POLYGON,!1,T,u,k,$);break;case Tt.POLYLINETO:sl(e,m,!1,!0,T,u,k,$);break;case Tt.POLYLINE16:case Tt.POLYGON16:al(e,m,W==Tt.POLYGON16,!1,T,u,k,$);break;case Tt.POLYLINETO16:al(e,m,!1,!0,T,u,k,$);break;case Tt.POLYBEZIER:bi(e,m,!1,!1,T,u,k,$);break;case Tt.POLYBEZIERTO:bi(e,m,!1,!0,T,u,k,$);break;case Tt.POLYBEZIER16:bi(e,m,!0,!1,T,u,k,$);break;case Tt.POLYBEZIERTO16:bi(e,m,!0,!0,T,u,k,$);break;case Tt.POLYPOLYLINE:case Tt.POLYPOLYGON:ll(e,m,W==Tt.POLYPOLYGON,!1,T,u,k,$);break;case Tt.POLYPOLYLINE16:case Tt.POLYPOLYGON16:ll(e,m,W==Tt.POLYPOLYGON16,!0,T,u,k,$);break;case Tt.POLYDRAW:cl(e,m,!1,T,u,k,$);break;case Tt.POLYDRAW16:cl(e,m,!0,T,u,k,$);break;case Tt.RECTANGLE:ul(e,m,u,$,!1);break;case Tt.ELLIPSE:Nf(e,m,u,$);break;case Tt.ROUNDRECT:ul(e,m,u,$,!0);break;case Tt.ARC:case Tt.ARCTO:case Tt.CHORD:case Tt.PIE:Rf(e,m,W,T,u,k,$);break;case Tt.FILLPATH:gi(b,u,$,!0,!1),b=\"\";break;case Tt.STROKEPATH:gi(b,u,$,!1,!0),b=\"\";break;case Tt.STROKEANDFILLPATH:gi(b,u,$,!0,!0),b=\"\";break;case Tt.EXTTEXTOUTA:case Tt.EXTTEXTOUTW:If(e,m,U,u,$,W==Tt.EXTTEXTOUTW);break;case Tt.POLYTEXTOUTA:case Tt.POLYTEXTOUTW:Of(e,m,U,u,$,W==Tt.POLYTEXTOUTW);break;case Tt.SMALLTEXTOUT:Lf(e,m,U,u,$);break;case Tt.SETPIXELV:Df(e,m,u,$);break;case Tt.BITBLT:case Tt.STRETCHBLT:case Tt.STRETCHDIBITS:case Tt.ALPHABLEND:case Tt.TRANSPARENTBLT:Bf(e,m,U,W,u,$);break}m+=U}if(b&&gi(b,u,$,!0,!0),!p.length){let W=Hf(n,i);W.length&&p.push(...W)}return p.length?`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wt(c)}mm\" height=\"${wt(h)}mm\" viewBox=\"${wt(i.left)} ${wt(i.top)} ${wt(s)} ${wt(l)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"emf\">${p.join(\"\")}</svg>`:qf(s,l,i,c,h,\"Unsupported EMF image\")}function Cf(){return{world:Ia(_l),windowOrg:{x:0,y:0},windowExt:null,viewportOrg:{x:0,y:0},viewportExt:null,pen:{type:\"pen\",color:\"#000000\",width:1},brush:{type:\"brush\",color:\"#ffffff\",nullBrush:!0},font:null,textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,polyFillMode:1,textAlign:0,currentPoint:{x:0,y:0}}}function el(n){return{world:Ia(n.world),windowOrg:{...n.windowOrg},windowExt:n.windowExt?{...n.windowExt}:null,viewportOrg:{...n.viewportOrg},viewportExt:n.viewportExt?{...n.viewportExt}:null,pen:Fl(n.pen),brush:Dl(n.brush),font:n.font?{...n.font}:null,textColor:n.textColor,bkColor:n.bkColor,bkMode:n.bkMode,polyFillMode:n.polyFillMode,textAlign:n.textAlign,currentPoint:{...n.currentPoint}}}function Fl(n){return{...n}}function Dl(n){return{...n}}function Ia(n){return{...n}}function Bl(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function $n(n,t){return{left:n.getInt32(t,!0),top:n.getInt32(t+4,!0),right:n.getInt32(t+8,!0),bottom:n.getInt32(t+12,!0)}}function Ne(n,t){return{x:n.getInt32(t,!0),y:n.getInt32(t+4,!0)}}function rl(n,t){return Ne(n,t)}function Gi(n,t){return{x:n.getInt16(t,!0),y:n.getInt16(t+2,!0)}}function nl(n,t){return{m11:n.getFloat32(t,!0),m12:n.getFloat32(t+4,!0),m21:n.getFloat32(t+8,!0),m22:n.getFloat32(t+12,!0),dx:n.getFloat32(t+16,!0),dy:n.getFloat32(t+20,!0)}}function il(n,t){return{m11:n.m11*t.m11+n.m12*t.m21,m12:n.m11*t.m12+n.m12*t.m22,m21:n.m21*t.m11+n.m22*t.m21,m22:n.m21*t.m12+n.m22*t.m22,dx:n.dx*t.m11+n.dy*t.m21+t.dx,dy:n.dx*t.m12+n.dy*t.m22+t.dy}}function ae(n,t){let e=n.world,r=t.x*e.m11+t.y*e.m21+e.dx,i=t.x*e.m12+t.y*e.m22+e.dy;return n.windowExt&&n.viewportExt&&n.windowExt.x&&n.windowExt.y&&(r=(r-n.windowOrg.x)*n.viewportExt.x/n.windowExt.x+n.viewportOrg.x,i=(i-n.windowOrg.y)*n.viewportExt.y/n.windowExt.y+n.viewportOrg.y),{x:r,y:i}}function $l(n){let t=Math.hypot(n.world.m11,n.world.m12),e=Math.hypot(n.world.m21,n.world.m22);n.windowExt&&n.viewportExt&&n.windowExt.x&&n.windowExt.y&&(t*=Math.abs(n.viewportExt.x/n.windowExt.x),e*=Math.abs(n.viewportExt.y/n.windowExt.y));let r=(t+e)/2;return Number.isFinite(r)&&r>0?r:1}function ol(n,t,e){let r=n.getInt32(t+8,!0),i=n.getInt32(t+12,!0),o=n.getInt32(t+16,!0),a=n.getInt32(t+20,!0);return{x:i?e.x*r/i:e.x,y:a?e.y*o/a:e.y}}function dn(n){let t=n&255,e=n>>8&255,r=n>>16&255;return`#${_o(t)}${_o(e)}${_o(r)}`}function _o(n){return Math.max(0,Math.min(255,n|0)).toString(16).padStart(2,\"0\")}function wt(n){return Number.isFinite(n)?`${Math.round(n*1e3)/1e3}`:\"0\"}function Oa(n){return`${n??\"\"}`.replace(/[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F-\\u009F]/g,\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}function $r(n,t,e){let r=[];if(t&&!n.brush.nullBrush?(r.push(`fill=\"${n.brush.color}\"`),r.push(`fill-rule=\"${n.polyFillMode==2?\"nonzero\":\"evenodd\"}\"`)):r.push('fill=\"none\"'),e&&!n.pen.nullPen){let i=$l(n),o=n.pen.width==0?1:Math.max(.35,n.pen.width*i);r.push(`stroke=\"${n.pen.color}\"`),r.push(`stroke-width=\"${wt(o)}\"`),r.push('stroke-linecap=\"square\"'),r.push('stroke-linejoin=\"miter\"')}else r.push('stroke=\"none\"');return r.join(\" \")}function gi(n,t,e,r,i){n&&e(`<path d=\"${n}\" ${$r(t,r,i)}/>`)}function al(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0);if(!l||t+28+l*4>n.byteLength)return;let c=[];for(let h=0;h<l;h++)c.push(ae(o,Gi(n,t+28+h*4)));La(c,e,r,i,o,a,s)}function sl(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0);if(!l||t+28+l*8>n.byteLength)return;let c=[];for(let h=0;h<l;h++)c.push(ae(o,Ne(n,t+28+h*8)));La(c,e,r,i,o,a,s)}function La(n,t,e,r,i,o,a){if(!n.length)return;let s=r&&e?\"\":e?`M ${wt(i.currentPoint.x)} ${wt(i.currentPoint.y)}`:`M ${wt(n[0].x)} ${wt(n[0].y)}`,l=e?0:1;for(let c=l;c<n.length;c++)s+=` L ${wt(n[c].x)} ${wt(n[c].y)}`;t&&(s+=\" Z\"),i.currentPoint=n[n.length-1],r?o(s.trim()):a(`<path d=\"${s.trim()}\" ${$r(i,t,!0)}/>`)}function bi(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0),c=e?4:8;if(!l||t+28+l*c>n.byteLength)return;let h=[];for(let p=0;p<l;p++){let m=e?Gi(n,t+28+p*c):Ne(n,t+28+p*c);h.push(ae(o,m))}let u=i&&r?\"\":r?`M ${wt(o.currentPoint.x)} ${wt(o.currentPoint.y)}`:`M ${wt(h[0].x)} ${wt(h[0].y)}`,f=r?o.currentPoint:h[0],d=r?0:1;for(let p=d;p+2<h.length;p+=3){let m=h[p],g=h[p+1],b=h[p+2];u+=` C ${wt(m.x)} ${wt(m.y)} ${wt(g.x)} ${wt(g.y)} ${wt(b.x)} ${wt(b.y)}`,f=b}o.currentPoint=f,i?a(u.trim()):s(`<path d=\"${u.trim()}\" ${$r(o,!1,!0)}/>`)}function ll(n,t,e,r,i,o,a,s){let l=n.getUint32(t+24,!0),c=n.getUint32(t+28,!0),h=t+32,u=h+l*4,f=r?4:8;if(!l||!c||u+c*f>n.byteLength)return;let d=0;for(let p=0;p<l;p++){let m=n.getUint32(h+p*4,!0);if(!m||d+m>c)break;let g=[];for(let b=0;b<m;b++){let T=u+(d+b)*f,S=r?Gi(n,T):Ne(n,T);g.push(ae(o,S))}La(g,e,!1,i,o,a,s),d+=m}}function cl(n,t,e,r,i,o,a){let s=n.getUint32(t+24,!0),l=e?4:8,c=t+28,h=c+s*l;if(!s||h+s>n.byteLength)return;let u=[];for(let p=0;p<s;p++){let m=c+p*l,g=e?Gi(n,m):Ne(n,m);u.push(ae(i,g))}let f=\"\",d=0;for(;d<s;){let p=n.getUint8(h+d),m=p&6;m==6?(f+=` M ${wt(u[d].x)} ${wt(u[d].y)}`,i.currentPoint=u[d],d++):m==2?(f+=` L ${wt(u[d].x)} ${wt(u[d].y)}`,i.currentPoint=u[d],d++):m==4&&d+2<s?(f+=` C ${wt(u[d].x)} ${wt(u[d].y)} ${wt(u[d+1].x)} ${wt(u[d+1].y)} ${wt(u[d+2].x)} ${wt(u[d+2].y)}`,i.currentPoint=u[d+2],d+=3):d++,p&1&&(f+=\" Z\")}f=f.trim(),f&&(r?o(f):a(`<path d=\"${f}\" ${$r(i,!1,!0)}/>`))}function ul(n,t,e,r,i){let o=$n(n,t+8),a=ae(e,{x:o.left,y:o.top}),s=ae(e,{x:o.right,y:o.bottom}),l=Math.min(a.x,s.x),c=Math.min(a.y,s.y),h=Math.abs(s.x-a.x),u=Math.abs(s.y-a.y),f=i?` rx=\"${wt(Math.min(h,u)/8)}\" ry=\"${wt(Math.min(h,u)/8)}\"`:\"\";r(`<rect x=\"${wt(l)}\" y=\"${wt(c)}\" width=\"${wt(h)}\" height=\"${wt(u)}\"${f} ${$r(e,!0,!0)}/>`)}function Nf(n,t,e,r){let i=$n(n,t+8),o=ae(e,{x:i.left,y:i.top}),a=ae(e,{x:i.right,y:i.bottom}),s=(o.x+a.x)/2,l=(o.y+a.y)/2,c=Math.abs(a.x-o.x)/2,h=Math.abs(a.y-o.y)/2;r(`<ellipse cx=\"${wt(s)}\" cy=\"${wt(l)}\" rx=\"${wt(c)}\" ry=\"${wt(h)}\" ${$r(e,!0,!0)}/>`)}function Rf(n,t,e,r,i,o,a){let s=$n(n,t+8),l=Ne(n,t+24),c=Ne(n,t+32),h=(s.left+s.right)/2,u=(s.top+s.bottom)/2,f=Math.abs(s.right-s.left)/2,d=Math.abs(s.bottom-s.top)/2;if(!f||!d)return;let p=Math.atan2(l.y-u,l.x-h),m=Math.atan2(c.y-u,c.x-h),g=m-p;g<=0&&(g+=Math.PI*2);let b=g>Math.PI?1:0,T=ae(i,{x:h+Math.cos(p)*f,y:u+Math.sin(p)*d}),S=ae(i,{x:h+Math.cos(m)*f,y:u+Math.sin(m)*d}),I=ae(i,{x:h,y:u}),O=ae(i,{x:h+f,y:u}),$=ae(i,{x:h,y:u+d}),k=Math.max(.01,Math.abs(O.x-I.x)||Math.abs($.x-I.x)),W=Math.max(.01,Math.abs($.y-I.y)||Math.abs(O.y-I.y)),U=`A ${wt(k)} ${wt(W)} 0 ${b} 1 ${wt(S.x)} ${wt(S.y)}`,v=`M ${wt(T.x)} ${wt(T.y)} ${U}`,_=!1,y=!0;e==Tt.CHORD?(v+=\" Z\",_=!0):e==Tt.PIE&&(v+=` L ${wt(I.x)} ${wt(I.y)} Z`,_=!0),e==Tt.ARCTO&&(i.currentPoint=S),r?o(v):a(`<path d=\"${v}\" ${$r(i,_,y)}/>`)}function Pf(n,t,e){let r=e>=4?n.getInt32(t,!0):12,i=e>=20?n.getInt32(t+16,!0):400,o=e>=21?n.getUint8(t+20)!=0:!1,a=e>=22?n.getUint8(t+21)!=0:!1,s=\"\",l=t+28,c=Math.max(0,Math.min(64,e-28));for(let h=0;h+1<c;h+=2){let u=n.getUint16(l+h,!0);if(!u)break;s+=String.fromCharCode(u)}return{type:\"font\",family:s,size:Math.abs(r)||12,weight:i,italic:o,underline:a}}function If(n,t,e,r,i,o){if(e<76)return;let a=ae(r,Ne(n,t+36)),s=n.getUint32(t+44,!0),l=n.getUint32(t+48,!0);if(!s||l<=0||l+s*(o?2:1)>e)return;let h=o?Wl(n,t+l,s):_a(new Uint8Array(n.buffer,n.byteOffset+t+l,s));Ma(h,a,r,i)}function Of(n,t,e,r,i,o){if(e<40)return;let a=n.getUint32(t+36,!0),s=t+40;for(let l=0;l<a&&s+40<=t+e;l++,s+=40){let c=ae(r,Ne(n,s)),h=n.getUint32(s+8,!0),u=n.getUint32(s+12,!0);if(!h||!u||u+h*(o?2:1)>e)continue;let d=o?Wl(n,t+u,h):_a(new Uint8Array(n.buffer,n.byteOffset+t+u,h));Ma(d,c,r,i)}}function Lf(n,t,e,r,i){if(e<36)return;let o=ae(r,Ne(n,t+8)),a=n.getUint32(t+16,!0),l=n.getUint32(t+20,!0)&512?40:28;if(!a||l+a>e)return;let c=_a(new Uint8Array(n.buffer,n.byteOffset+t+l,a));Ma(c,o,r,i)}function Wl(n,t,e){let r=\"\";for(let i=0;i<e;i++){let o=n.getUint16(t+i*2,!0);o&&(r+=String.fromCharCode(o))}return r}function _a(n){if(!n.length)return\"\";let t=globalThis.TextDecoder;if(t)try{return new t(\"gb18030\").decode(n).replace(/\\0+$/g,\"\")}catch{try{return new t(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\")}catch{}}let e=\"\";for(let r of n)r&&(e+=String.fromCharCode(r));return e}function _f(n,t){let e=n.font,r=Math.max(1,(e?.size??12)*$l(n));return[`x=\"${wt(t.x)}\"`,`y=\"${wt(t.y)}\"`,`fill=\"${n.textColor}\"`,`font-size=\"${wt(r)}\"`,e?.family?`font-family=\"${Oa(e.family)}\"`:\"\",e?.weight?`font-weight=\"${e.weight>=600?\"bold\":\"normal\"}\"`:\"\",e?.italic?'font-style=\"italic\"':\"\",e?.underline?'text-decoration=\"underline\"':\"\",Mf(n),Ff(n)].filter(Boolean).join(\" \")}function Mf(n){let t=n.textAlign&6;return t==6?'text-anchor=\"middle\"':t==2?'text-anchor=\"end\"':\"\"}function Ff(n){let t=n.textAlign&24;return t==0?'dominant-baseline=\"text-before-edge\"':t==8?'dominant-baseline=\"text-after-edge\"':\"\"}function Ma(n,t,e,r){n&&r(`<text ${_f(e,t)}>${Oa(n)}</text>`)}function Df(n,t,e,r){if(t+20>n.byteLength)return;let i=ae(e,Ne(n,t+8)),o=dn(n.getUint32(t+16,!0));r(`<rect x=\"${wt(i.x)}\" y=\"${wt(i.y)}\" width=\"1\" height=\"1\" fill=\"${o}\" stroke=\"none\"/>`)}function Bf(n,t,e,r,i,o){let a=0,s=0,l=0,c=0,h=0,u=0,f=0,d=0;if(r==Tt.STRETCHDIBITS){if(e<80)return;a=n.getInt32(t+24,!0),s=n.getInt32(t+28,!0),h=n.getUint32(t+48,!0),u=n.getUint32(t+52,!0),f=n.getUint32(t+56,!0),d=n.getUint32(t+60,!0),l=n.getInt32(t+72,!0),c=n.getInt32(t+76,!0)}else{if(e<100)return;a=n.getInt32(t+24,!0),s=n.getInt32(t+28,!0),l=n.getInt32(t+32,!0),c=n.getInt32(t+36,!0),h=n.getUint32(t+84,!0),u=n.getUint32(t+88,!0),f=n.getUint32(t+92,!0),d=n.getUint32(t+96,!0)}if(!h||!u||!f||!d||h+u>e||f+d>e)return;let p=$f(n,t,h,u,f,d);if(!p)return;let m=ae(i,{x:a,y:s}),g=ae(i,{x:a+l,y:s+c}),b=Math.min(m.x,g.x),T=Math.min(m.y,g.y),S=Math.abs(g.x-m.x),I=Math.abs(g.y-m.y);o(`<image x=\"${wt(b)}\" y=\"${wt(T)}\" width=\"${wt(S)}\" height=\"${wt(I)}\" href=\"${p}\" preserveAspectRatio=\"none\"/>`)}function $f(n,t,e,r,i,o){let a=t+e,s=t+i;if(r<4||a+r>n.byteLength||s+o>n.byteLength)return null;let c=n.getUint32(a,!0)>=40&&r>=20?n.getUint32(a+16,!0):0,h=new Uint8Array(n.buffer,n.byteOffset+s,o);if(c==4)return`data:image/jpeg;base64,${mn(h)}`;if(c==5)return`data:image/png;base64,${mn(h)}`;let u=new Uint8Array(r+o);return u.set(new Uint8Array(n.buffer,n.byteOffset+a,r),0),u.set(h,r),Wf(u,r)}function Wf(n,t){if(!n?.length||t<=0||t>n.length)return null;let e=14,r=e+n.length,i=e+t,o=new Uint8Array(r);return o[0]=66,o[1]=77,hl(o,2,r),hl(o,10,i),o.set(n,e),`data:image/bmp;base64,${mn(o)}`}function Hf(n,t){let e=Uf(n);if(!e)return[];let r=Math.max(1,t.right-t.left),i=Math.max(1,t.bottom-t.top);return[`<image x=\"${wt(t.left)}\" y=\"${wt(t.top)}\" width=\"${wt(r)}\" height=\"${wt(i)}\" href=\"${e}\" preserveAspectRatio=\"xMidYMid meet\"/>`]}function Uf(n){let t=zf(n);if(t)return`data:image/png;base64,${mn(t)}`;let e=Yf(n);if(e)return`data:image/jpeg;base64,${mn(e)}`;let r=Gf(n);return r?`data:image/bmp;base64,${mn(r)}`:null}function zf(n){let t=[137,80,78,71,13,10,26,10];for(let e=0;e+t.length+12<=n.length;e++){if(!jf(n,t,e))continue;let r=e+8;for(;r+12<=n.length;){let i=Vf(n,r),o=String.fromCharCode(n[r+4],n[r+5],n[r+6],n[r+7]);if(r+=12+i,r>n.length)break;if(o==\"IEND\")return n.subarray(e,r)}}return null}function Yf(n){for(let t=0;t+4<n.length;t++)if(!(n[t]!=255||n[t+1]!=216||n[t+2]!=255)){for(let e=t+4;e+1<n.length;e++)if(n[e]==255&&n[e+1]==217)return n.subarray(t,e+2)}return null}function Gf(n){for(let t=0;t+14<n.length;t++){if(n[t]!=66||n[t+1]!=77)continue;let e=Xf(n,t+2);if(e>14&&t+e<=n.length)return n.subarray(t,t+e)}return null}function jf(n,t,e){for(let r=0;r<t.length;r++)if(n[e+r]!=t[r])return!1;return!0}function Vf(n,t){return(n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3])>>>0}function Xf(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0}function hl(n,t,e){n[t]=e&255,n[t+1]=e>>8&255,n[t+2]=e>>16&255,n[t+3]=e>>24&255}function mn(n){let t=\"\";for(let i=0;i<n.length;i+=32768)t+=String.fromCharCode(...n.subarray(i,i+32768));if(typeof btoa==\"function\")return btoa(t);let r=globalThis.Buffer;return r?r.from(n).toString(\"base64\"):t}function qf(n,t,e,r,i,o){return`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wt(r)}mm\" height=\"${wt(i)}mm\" viewBox=\"${wt(e.left)} ${wt(e.top)} ${wt(n)} ${wt(t)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"emf\"><rect x=\"${wt(e.left)}\" y=\"${wt(e.top)}\" width=\"${wt(n)}\" height=\"${wt(t)}\" fill=\"none\" stroke=\"#999\" stroke-width=\"1\"/><text x=\"${wt(e.left+n/2)}\" y=\"${wt(e.top+t/2)}\" text-anchor=\"middle\" font-size=\"12\" fill=\"#666\">${Oa(o)}</text></svg>`}var Hl=2596720087,ne={EOF:0,SETBKMODE:258,SETBKCOLOR:513,SETTEXTCOLOR:521,SETTEXTALIGN:302,SETWINDOWORG:523,SETWINDOWEXT:524,SETVIEWPORTORG:525,SETVIEWPORTEXT:526,MOVETO:532,LINETO:531,POLYLINE:805,POLYGON:804,RECTANGLE:1051,ELLIPSE:1048,CREATEPENINDIRECT:762,CREATEBRUSHINDIRECT:764,CREATEFONTINDIRECT:763,SELECTOBJECT:301,DELETEOBJECT:496,TEXTOUT:1313,EXTTEXTOUT:2610},Kf={0:{type:\"brush\",color:\"#ffffff\"},1:{type:\"brush\",color:\"#c0c0c0\"},2:{type:\"brush\",color:\"#808080\"},3:{type:\"brush\",color:\"#404040\"},4:{type:\"brush\",color:\"#000000\"},5:{type:\"brush\",color:\"none\",nullBrush:!0},6:{type:\"pen\",color:\"#ffffff\",width:1},7:{type:\"pen\",color:\"#000000\",width:1},8:{type:\"pen\",color:\"none\",width:0,nullPen:!0},18:{type:\"brush\",color:\"#ffffff\"},19:{type:\"pen\",color:\"#000000\",width:1}};function Ul(n){if(!n||n.length<22)return!1;let t=Vl(n);return t.getUint32(0,!0)==Hl?!0:n.length>=18&&t.getUint16(0,!0)==1&&t.getUint16(2,!0)==9}function Zf(n,t){let e=Jf(n,t);return e?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`:null}function Jf(n,t={}){if(!Ul(n))return null;let e=Vl(n),r=0,i={left:0,top:0,right:1e3,bottom:1e3},o=100,a=100;if(e.getUint32(0,!0)==Hl&&e.byteLength>=22){i={left:e.getInt16(6,!0),top:e.getInt16(8,!0),right:e.getInt16(10,!0),bottom:e.getInt16(12,!0)};let O=Math.max(1,e.getUint16(14,!0)||1440);o=Math.max(1,i.right-i.left)/O*25.4,a=Math.max(1,i.bottom-i.top)/O*25.4,r=22}if(r+18>e.byteLength)return null;let s=e.getUint32(r+6,!0),l=Math.max(1,e.getUint16(r+10,!0)||16),c=s>0?s*2:e.byteLength;r+=18;let h=Math.max(1,i.right-i.left),u=Math.max(1,i.bottom-i.top),f=Qf(i),d=new Array(l).fill(null),p=[],m=0,g=0,b=t.maxRecords??1e4,T=t.maxShapes??5e4,S=Math.min(e.byteLength,c),I=O=>{!O||m>=T||(p.push(O),m++)};for(;r+6<=S&&g++<b;){let O=e.getUint32(r,!0),$=e.getUint16(r+4,!0),k=r+O*2;if(O<3||k>e.byteLength)break;let W=r+6;switch($){case ne.EOF:r=S;break;case ne.SETBKMODE:f.bkMode=Re(e,W);break;case ne.SETBKCOLOR:f.bkColor=Mi(_i(e,W));break;case ne.SETTEXTCOLOR:f.textColor=Mi(_i(e,W));break;case ne.SETTEXTALIGN:f.textAlign=xr(e,W);break;case ne.SETWINDOWORG:f.windowOrg=Fr(e,W);break;case ne.SETWINDOWEXT:f.windowExt=Fr(e,W),(!o||!a)&&(o=Math.max(1,Math.abs(f.windowExt.x))/100,a=Math.max(1,Math.abs(f.windowExt.y))/100);break;case ne.SETVIEWPORTORG:f.viewportOrg=Fr(e,W);break;case ne.SETVIEWPORTEXT:f.viewportExt=Fr(e,W);break;case ne.CREATEPENINDIRECT:Mo(d,ep(e,W,k));break;case ne.CREATEBRUSHINDIRECT:Mo(d,rp(e,W,k));break;case ne.CREATEFONTINDIRECT:Mo(d,np(e,W,k));break;case ne.SELECTOBJECT:{let U=xr(e,W),v=U>=32768?Kf[U&32767]:d[U];v?.type==\"pen\"?f.pen={...v}:v?.type==\"brush\"?f.brush={...v}:v?.type==\"font\"&&(f.font={...v});break}case ne.DELETEOBJECT:{let U=xr(e,W);U<d.length&&(d[U]=null);break}case ne.MOVETO:f.currentPoint=gn(f,Fr(e,W));break;case ne.LINETO:{let U=gn(f,Fr(e,W));I(`<path d=\"M ${Ut(f.currentPoint.x)} ${Ut(f.currentPoint.y)} L ${Ut(U.x)} ${Ut(U.y)}\" ${Da(f)}/>`),f.currentPoint=U;break}case ne.POLYLINE:case ne.POLYGON:ip(e,W,k,$==ne.POLYGON,f,I);break;case ne.RECTANGLE:dl(e,W,f,I,!1);break;case ne.ELLIPSE:dl(e,W,f,I,!0);break;case ne.TEXTOUT:op(e,W,k,f,I);break;case ne.EXTTEXTOUT:ap(e,W,k,f,I);break}r=k}return p.length?`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${Ut(o)}mm\" height=\"${Ut(a)}mm\" viewBox=\"${Ut(i.left)} ${Ut(i.top)} ${Ut(h)} ${Ut(u)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"wmf\">${p.join(\"\")}</svg>`:dp(h,u,i,o,a,\"Unsupported WMF image\")}function Qf(n){return{windowOrg:{x:n.left,y:n.top},windowExt:{x:Math.max(1,n.right-n.left),y:Math.max(1,n.bottom-n.top)},viewportOrg:{x:0,y:0},viewportExt:null,currentPoint:{x:0,y:0},pen:{type:\"pen\",color:\"#000000\",width:1},brush:{type:\"brush\",color:\"#ffffff\",nullBrush:!0},font:{type:\"font\",family:\"Times New Roman\",size:12,weight:400,italic:!1,underline:!1,strike:!1,charset:0},textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,textAlign:0}}function gn(n,t){let e=n.viewportExt??n.windowExt,r=Li(e.x,n.windowExt.x),i=Li(e.y,n.windowExt.y);return{x:n.viewportOrg.x+(t.x-n.windowOrg.x)*r,y:n.viewportOrg.y+(t.y-n.windowOrg.y)*i}}function Fa(n,t){let e=n.viewportExt??n.windowExt;return Math.abs(t*Li(e.x,n.windowExt.x))}function tp(n,t){let e=n.viewportExt??n.windowExt;return Math.abs(t*Li(e.y,n.windowExt.y))}function Li(n,t){return t?n/t:1}function ep(n,t,e){let r=xr(n,t),i=t+4<e?Math.abs(Re(n,t+2)):1,o=t+6<e?Math.abs(Re(n,t+4)):0;return{type:\"pen\",color:t+10<=e?Mi(_i(n,t+6)):\"#000000\",width:Math.max(1,i,o),nullPen:(r&15)==5}}function rp(n,t,e){let r=xr(n,t);return{type:\"brush\",color:t+6<=e?Mi(_i(n,t+2)):\"#ffffff\",nullBrush:r==1||r==5}}function np(n,t,e){let r=Re(n,t),i=Re(n,t+2),o=Re(n,t+8)||400,a=yi(n,t+10)!=0,s=yi(n,t+11)!=0,l=yi(n,t+12)!=0,c=yi(n,t+13),h=cp(n,t+18,Math.max(0,Math.min(32,e-t-18)));return{type:\"font\",family:up(h)||\"Times New Roman\",size:Math.max(1,Math.abs(r||i||12)),weight:o,italic:a,underline:s,strike:l,charset:c}}function ip(n,t,e,r,i,o){let a=xr(n,t),s=t+2,l=[];for(let h=0;h<a&&s+4<=e;h++,s+=4)l.push(gn(i,{x:Re(n,s),y:Re(n,s+2)}));if(!l.length)return;let c=l.map((h,u)=>`${u==0?\"M\":\"L\"} ${Ut(h.x)} ${Ut(h.y)}`).join(\" \")+(r?\" Z\":\"\");o(`<path d=\"${c}\" ${r?ga(i):Da(i)}/>`),i.currentPoint=l[l.length-1]}function dl(n,t,e,r,i){let o=gn(e,Fr(n,t)),a=gn(e,Fr(n,t+4)),s=Math.min(a.x,o.x),l=Math.min(a.y,o.y),c=Math.abs(o.x-a.x),h=Math.abs(o.y-a.y);r(i?`<ellipse cx=\"${Ut(s+c/2)}\" cy=\"${Ut(l+h/2)}\" rx=\"${Ut(c/2)}\" ry=\"${Ut(h/2)}\" ${ga(e)}/>`:`<rect x=\"${Ut(s)}\" y=\"${Ut(l)}\" width=\"${Ut(c)}\" height=\"${Ut(h)}\" ${ga(e)}/>`)}function op(n,t,e,r,i){let o=xr(n,t),a=t+2,s=a+o+o%2;if(s+4>e)return;let l=jl(n,a,o,r.font.charset),c=Re(n,s),h=Re(n,s+2);Gl(l,zl(r,{x:h,y:c}),null,r,i),Yl(l,null,r)}function ap(n,t,e,r,i){let o=Re(n,t),a=Re(n,t+2),s=xr(n,t+4),l=xr(n,t+6),c=t+8;if(l&6&&(c+=8),c+s>e)return;let h=jl(n,c,s,r.font.charset);c+=s+s%2;let u=[];for(;c+2<=e&&u.length<s;)u.push(Re(n,c)),c+=2;Gl(h,zl(r,{x:a,y:o}),u.length?u:null,r,i),Yl(h,u.length?u:null,r)}function zl(n,t){return n.textAlign&1?{...n.currentPoint}:gn(n,t)}function Yl(n,t,e){if(!(e.textAlign&1))return;let r=t?.length?t.reduce((i,o)=>i+o,0):n.length*e.font.size*.5;e.currentPoint={x:e.currentPoint.x+Fa(e,r),y:e.currentPoint.y}}function Gl(n,t,e,r,i){if(!n)return;let o=r.font,a=Math.max(1,tp(r,o.size)),s=[`font-family:${hp(o.family)}`,`font-size:${Ut(a)}px`,`font-weight:${o.weight>=600?\"700\":o.weight}`,`font-style:${o.italic?\"italic\":\"normal\"}`],l=[];o.underline&&l.push(\"underline\"),o.strike&&l.push(\"line-through\"),l.length&&s.push(`text-decoration:${l.join(\" \")}`);let c=[`x=\"${Ut(t.x)}\"`,`y=\"${Ut(t.y)}\"`,`fill=\"${Di(r.textColor)}\"`,`style=\"${Di(s.join(\";\"))}\"`,`dominant-baseline=\"${(r.textAlign&24)==24?\"alphabetic\":\"text-before-edge\"}\"`,lp(r.textAlign)].filter(Boolean).join(\" \");if(!e||e.length==0){i(`<text ${c}>${Fi(n)}</text>`);return}let h=t.x,f=Array.from(n).map((d,p)=>{let m=`<tspan x=\"${Ut(h)}\">${Fi(d)}</tspan>`;return h+=Fa(r,e[p]??0),m}).join(\"\");i(`<text ${c}>${f}</text>`)}function Mo(n,t){let e=n.findIndex(r=>r==null);if(e<0){n.push(t);return}n[e]=t}function ga(n){return`${sp(n)} ${Da(n)}`}function sp(n){return n.brush?.nullBrush?'fill=\"none\"':`fill=\"${Di(n.brush?.color??\"#ffffff\")}\"`}function Da(n){return n.pen?.nullPen?'stroke=\"none\"':`fill=\"none\" stroke=\"${Di(n.pen?.color??\"#000000\")}\" stroke-width=\"${Ut(Math.max(.5,Fa(n,n.pen?.width??1)))}\"`}function lp(n){return n&6?'text-anchor=\"end\"':n&2?'text-anchor=\"middle\"':\"\"}function jl(n,t,e,r){let i=new Uint8Array(n.buffer,n.byteOffset+t,Math.max(0,Math.min(e,n.byteLength-t))),o=r==2?\"symbol\":r==134?\"gb18030\":\"windows-1252\";try{return new TextDecoder(o).decode(i).replace(/\\0+$/g,\"\")}catch{let a=\"\";for(let s of i)a+=String.fromCharCode(s);return a.replace(/\\0+$/g,\"\")}}function Fr(n,t){return{y:Re(n,t),x:Re(n,t+2)}}function yi(n,t){return t<n.byteLength?n.getUint8(t):0}function xr(n,t){return t+2<=n.byteLength?n.getUint16(t,!0):0}function Re(n,t){return t+2<=n.byteLength?n.getInt16(t,!0):0}function _i(n,t){return t+4<=n.byteLength?n.getUint32(t,!0):0}function cp(n,t,e){let r=\"\";for(let i=0;i<e&&t+i<n.byteLength;i++){let o=n.getUint8(t+i);if(o==0)break;r+=String.fromCharCode(o)}return r}function up(n){return(n??\"\").replace(/[^\\x20-\\x7e]/g,\"\").trim()}function hp(n){let t=(n||\"Times New Roman\").replace(/[\"\\\\]/g,\"\");return/[\\s,]/.test(t)?`\"${t}\"`:t}function Mi(n){let t=n&255,e=n>>8&255,r=n>>16&255;return`#${Fo(t)}${Fo(e)}${Fo(r)}`}function Fo(n){return Math.max(0,Math.min(255,n)).toString(16).padStart(2,\"0\")}function Vl(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function Ut(n){if(!Number.isFinite(n))return\"0\";let t=Math.round(n*1e3)/1e3;return Number.isInteger(t)?`${t}`:`${t}`}function Fi(n){return String(n??\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")}function Di(n){return Fi(n).replace(/\"/g,\"&quot;\")}function dp(n,t,e,r,i,o){return`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${Ut(r)}mm\" height=\"${Ut(i)}mm\" viewBox=\"${Ut(e.left)} ${Ut(e.top)} ${Ut(n)} ${Ut(t)}\" preserveAspectRatio=\"xMidYMid meet\" data-docx-metafile=\"wmf\"><rect x=\"${Ut(e.left)}\" y=\"${Ut(e.top)}\" width=\"${Ut(n)}\" height=\"${Ut(t)}\" fill=\"none\" stroke=\"#999\" stroke-width=\"1\"/><text x=\"${Ut(e.left+n/2)}\" y=\"${Ut(e.top+t/2)}\" text-anchor=\"middle\" font-size=\"12\" fill=\"#666\">${Fi(o)}</text></svg>`}var fp=[{type:le.OfficeDocument,target:\"word/document.xml\"},{type:le.ExtendedProperties,target:\"docProps/app.xml\"},{type:le.CoreProperties,target:\"docProps/core.xml\"},{type:le.CustomProperties,target:\"docProps/custom.xml\"}],Bi=class n{constructor(){this.parts=[],this.partsMap={},this.contentTypes=[],this._snapshotAssetDataUrls=null,this._snapshotTextParts=null}static fromSnapshot(t,e){let r=new n;r._options=e,r.rels=t.rels??[],r.contentTypes=t.contentTypes??[],r.parts=[],r.partsMap={},r._snapshotAssetDataUrls=t.assetDataUrls??{},r._snapshotTextParts=t.textParts??{},r._package={load:i=>Promise.resolve(r._snapshotTextParts?.[Ae(i)]??null),parseXmlDocument:i=>Ra(i,e?.trimXmlDeclaration??!0),get:i=>r._snapshotTextParts?.[Ae(i)]!=null?{}:null};for(let i of t.parts??[]){let o=r.restoreSnapshotPart(i);o&&(r.parts.push(o),r.partsMap[o.path]=o)}return r}static async load(t,e,r){var i=new n;return i._options=r,i._parser=e,i._package=await qo.load(t,r),i.rels=await i._package.loadRelationships(),i.contentTypes=await i._package.loadContentTypes(),await Promise.all(fp.map(o=>{let a=i.rels.find(s=>s.type===o.type)??o;return i.loadRelationshipPart(a.target,a.type)})),i}restoreSnapshotPart(t){let e={path:t.path,rels:t.rels??[]};switch(Object.assign(e,t.data??{}),t.kind){case\"document\":this.documentPart=e;break;case\"fontTable\":this.fontTablePart=e;break;case\"numbering\":this.numberingPart=e;break;case\"styles\":this.stylesPart=e;break;case\"theme\":this.themePart=e;break;case\"footnotes\":this.footnotesPart=e;break;case\"endnotes\":this.endnotesPart=e;break;case\"coreProps\":this.corePropsPart=e;break;case\"extendedProps\":this.extendedPropsPart=e;break;case\"settings\":this.settingsPart=e;break;case\"comments\":e.commentMap=ur(e.comments??[],r=>r.id),this.commentsPart=e;break;case\"commentsExtended\":e.commentMap=ur(e.comments??[],r=>r.paraId),this.commentsExtendedPart=e;break}return e}async createSnapshot(){let t={rels:this.rels??[],contentTypes:this.contentTypes??[],parts:this.parts.map(e=>this.snapshotPart(e)).filter(Boolean),assetDataUrls:{},textParts:{}};return await this.preloadSnapshotRelationshipTargets(t),t}snapshotPart(t){let e=t,r=\"part\",i={};if(t===this.documentPart)r=\"document\",i={body:e.body};else if(t===this.fontTablePart)r=\"fontTable\",i={fonts:e.fonts};else if(t===this.numberingPart)r=\"numbering\",i={numberings:e.numberings,abstractNumberings:e.abstractNumberings,bulletPictures:e.bulletPictures,domNumberings:e.domNumberings};else if(t===this.stylesPart)r=\"styles\",i={styles:e.styles};else if(t===this.themePart)r=\"theme\",i={theme:e.theme};else if(t===this.footnotesPart)r=\"footnotes\",i={notes:e.notes};else if(t===this.endnotesPart)r=\"endnotes\",i={notes:e.notes};else if(t===this.corePropsPart)r=\"coreProps\",i={props:e.props};else if(t===this.extendedPropsPart)r=\"extendedProps\",i={props:e.props};else if(t===this.settingsPart)r=\"settings\",i={settings:e.settings};else if(t===this.commentsPart)r=\"comments\",i={comments:e.comments};else if(t===this.commentsExtendedPart)r=\"commentsExtended\",i={comments:e.comments};else if(e.rootElement)r=e.rootElement.type===\"header\"?\"header\":\"footer\",i={rootElement:e.rootElement};else return null;return{kind:r,path:t.path,rels:t.rels??[],data:i}}async preloadSnapshotRelationshipTargets(t){let e=new Set,r=i=>{for(let o of i?.rels??[]){if(!o||cr(o))continue;let a=Ae(this.resolveRelationshipTarget(i,o));!a||e.has(a)||e.add(a)}};for(let i of this.parts)r(i);for(let i of e){if(this.partsMap[i])continue;let o=i.toLowerCase(),a=/\\.(xml|rels|html?|txt)$/i.test(o);try{if(a){let s=await this._package.load(i,\"string\");s!=null&&(t.textParts[i]=s)}else{let s=await this.loadPackageAssetDataUrl(i);s&&(t.assetDataUrls[i]=s)}}catch(s){this._options?.debug&&console.warn(`docx-preview: unable to preload relationship target ${i}`,s)}}}blobWithContentType(t,e){if(!t)return null;let r=this.contentTypeForPath(e);return r?new Blob([t],{type:r}):t}save(t=\"blob\"){return this._package.save(t)}async loadRelationshipPart(t,e){if(this.partsMap[t])return this.partsMap[t];if(!this._package.get(t))return null;let r=null;switch(e){case le.OfficeDocument:this.documentPart=r=new Ko(this._package,t,this._parser);break;case le.FontTable:this.fontTablePart=r=new Xo(this._package,t);break;case le.Numbering:this.numberingPart=r=new Jo(this._package,t,this._parser);break;case le.Styles:this.stylesPart=r=new Qo(this._package,t,this._parser);break;case le.Theme:this.themePart=r=new sa(this._package,t);break;case le.Footnotes:this.footnotesPart=r=new ua(this._package,t,this._parser);break;case le.Endnotes:this.endnotesPart=r=new ha(this._package,t,this._parser);break;case le.Footer:r=new na(this._package,t,this._parser);break;case le.Header:r=new ra(this._package,t,this._parser);break;case le.CoreProperties:this.corePropsPart=r=new oa(this._package,t);break;case le.ExtendedProperties:this.extendedPropsPart=r=new ia(this._package,t);break;case le.CustomProperties:r=new fa(this._package,t);break;case le.Settings:this.settingsPart=r=new da(this._package,t);break;case le.Comments:this.commentsPart=r=new pa(this._package,t,this._parser);break;case le.CommentsExtended:this.commentsExtendedPart=r=new ma(this._package,t);break}if(r==null)return Promise.resolve(null);if(this.partsMap[t]=r,this.parts.push(r),await r.load(),r.rels?.length>0){let[i]=Vo(r.path);await Promise.all(r.rels.filter(o=>!cr(o)).map(o=>this.loadRelationshipPart(qs(o.target,i),o.type)))}return r}async loadRelationshipXml(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return null;let o=this.resolveRelationshipTarget(r,i),a=Ae(o),s=a?this._snapshotTextParts?.[a]??await this._package.load(a,\"string\"):null;return s?this._package.parseXmlDocument(s):null}async loadRelationshipText(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return null;let o=Ae(this.resolveRelationshipTarget(r,i));return o?Promise.resolve(this._snapshotTextParts?.[o]??this._package.load(o,\"string\")):Promise.resolve(null)}async loadRelationshipBlobUrl(t,e,r=this._options?.externalResourcePolicy??\"block\"){let i=e??this.documentPart,o=this.getRelById(i,t);if(!o)return null;if(cr(o))return Xs(o,r);let a=Ae(this.resolveRelationshipTarget(i,o));return a?this.loadPackageAssetUrl(a):null}async loadDocumentImage(t,e,r=this._options?.externalResourcePolicy??\"block\"){let i=e??this.documentPart,o=this.getRelById(i,t);if(!o)return null;if(cr(o))return Xs(o,r);let a=Ae(this.resolveRelationshipTarget(i,o));return a?this.loadPackageAssetUrl(a):null}async loadNumberingImage(t){let e=Ae(this.getPathById(this.numberingPart,t));return e?this.loadPackageAssetUrl(e):null}async loadFont(t,e){let r=Ae(this.getPathById(this.fontTablePart,t));if(!r)return null;if(this._snapshotAssetDataUrls?.[r])return this._snapshotAssetDataUrls[r];let i=await this._package.load(r,\"uint8array\");return i&&this.blobToURL(new Blob([pp(i,e)]),r)}async loadAltChunk(t,e){let r=e??this.documentPart,i=this.getRelById(r,t);if(!i||cr(i))return Promise.resolve(null);let o=Ae(this.resolveRelationshipTarget(r,i));return o?Promise.resolve(this._snapshotTextParts?.[o]??this._package.load(o,\"string\")):Promise.resolve(null)}blobToURL(t,e){return t?(t=this.blobWithContentType(t,e),this._options.useBase64URL?Oo(t):URL.createObjectURL(t)):null}async loadPackageAssetUrl(t){let e=Ae(t);if(!e)return null;if(this._snapshotAssetDataUrls?.[e])return this._snapshotAssetDataUrls[e];if(this.isConvertibleMetafileAsset(e)){let r=await this._package.load(e,\"uint8array\");if(!r)return null;let i=this.convertMetafileAsset(r,e);return i||this.blobToURL(new Blob([r],{type:this.contentTypeForPath(e)||this.defaultMetafileContentType(e)}),e)}return this.blobToURL(await this._package.load(e,\"blob\"),e)}async loadPackageAssetDataUrl(t){let e=Ae(t);if(!e)return null;if(this.isConvertibleMetafileAsset(e)){let o=await this._package.load(e,\"uint8array\");if(!o)return null;let a=this.convertMetafileAsset(o,e);if(a)return a;let s=o?new Blob([o],{type:this.contentTypeForPath(e)||this.defaultMetafileContentType(e)}):null;return s?Oo(s):null}let r=await this._package.load(e,\"blob\"),i=this.blobWithContentType(r,e);return i?Oo(i):null}convertMetafileAsset(t,e){if(!t)return null;try{if(Ml(t))return kf(t);if(Ul(t))return Zf(t)}catch(r){return this._options?.debug&&console.warn(`docx-preview: unable to convert metafile asset ${e}`,r),null}return null}isConvertibleMetafileAsset(t){let e=this.contentTypeForPath(t).toLowerCase();return/\\.(emf|wmf)$/i.test(t??\"\")||e==\"image/x-emf\"||e==\"image/emf\"||e==\"image/x-wmf\"||e==\"image/wmf\"}defaultMetafileContentType(t){return/\\.wmf$/i.test(t??\"\")?\"image/x-wmf\":\"image/x-emf\"}contentTypeForPath(t){let r=Ae(t??\"\").toLowerCase();for(let s of this.contentTypes??[])if(s.partName&&Ae(s.partName).toLowerCase()==r)return s.contentType??\"\";let o=/\\.([^.\\/]+)$/.exec(r)?.[1]??\"\";return o?(this.contentTypes??[]).find(s=>s.extension?.toLowerCase()==o)?.contentType??\"\":\"\"}findPartByRelId(t,e=null){var r=this.getRelById(e,t);let i=r&&!cr(r)?this.resolveRelationshipTarget(e,r):null;return i?this.partsMap[i]:null}getRelById(t,e){return(t?.rels??this.rels??[]).find(r=>r.id==e)}getPathById(t,e){let r=this.getRelById(t,e);return r&&!cr(r)?this.resolveRelationshipTarget(t,r):null}resolveRelationshipTarget(t,e){let[r]=t?Vo(t.path):[\"\"];return Ae(qs(e.target,r))}};function Ae(n){return n&&(n.startsWith(\"/\")?n.substring(1):n)}function pp(n,t){let r=t.replace(/{|}|-/g,\"\"),i=new Array(16);for(let o=0;o<16;o++)i[16-o-1]=parseInt(r.substring(o*2,o*2+2),16);for(let o=0;o<32;o++)n[o]=n[o]^i[o%16];return n}function fl(n,t){return{type:A.BookmarkStart,id:t.attr(n,\"id\"),name:t.attr(n,\"name\"),colFirst:t.intAttr(n,\"colFirst\"),colLast:t.intAttr(n,\"colLast\")}}function pl(n,t){return{type:A.BookmarkEnd,id:t.attr(n,\"id\")}}var ba=class extends wr{constructor(){super(...arguments),this.type=A.VmlElement,this.attrs={}}};function Xl(n,t){var e=new ba;switch(n.localName){case\"group\":e.tagName=\"g\",e.isGroup=!0;break;case\"roundrect\":e.roundRectArc=.2;case\"rect\":e.tagName=\"rect\",Object.assign(e.attrs,{width:\"100%\",height:\"100%\"});break;case\"oval\":e.tagName=\"ellipse\",Object.assign(e.attrs,{cx:\"50%\",cy:\"50%\",rx:\"50%\",ry:\"50%\"});break;case\"line\":e.tagName=\"line\";break;case\"shape\":e.tagName=\"g\";break;case\"textbox\":e.tagName=\"foreignObject\",e.textInset=[\"0.1in\",\"0.05in\",\"0.1in\",\"0.05in\"],Object.assign(e.attrs,{width:\"100%\",height:\"100%\"});break;default:return null}for(let i of w.attrs(n))switch(i.localName){case\"style\":e.cssStyleText=i.value,e.cssStyle=Dn(i.value);break;case\"coordorigin\":e.coordOrigin=ml(i.value);break;case\"coordsize\":e.coordSize=ml(i.value);break;case\"arcsize\":e.roundRectArc!=null&&(e.roundRectArc=mp(i.value));break;case\"inset\":if(e.textInset){let c=i.value.trim().split(/\\s*,\\s*|\\s+/);e.textInset=e.textInset.map((h,u)=>c[u]||h)}break;case\"id\":e.attrs.id=i.value;break;case\"fillcolor\":e.attrs.fill=i.value;break;case\"strokecolor\":e.attrs.stroke=i.value;break;case\"strokeweight\":e.attrs[\"stroke-width\"]=Be(i.value,$t.Point)??i.value;break;case\"filled\":(i.value==\"f\"||i.value==\"false\")&&(e.attrs.fill=\"none\");break;case\"stroked\":(i.value==\"f\"||i.value==\"false\")&&(e.attrs.stroke=\"none\");break;case\"path\":e.tagName=\"path\",e.attrs.d=xp(i.value);break;case\"from\":let[o,a]=ya(i.value);Object.assign(e.attrs,{x1:o,y1:a});break;case\"to\":let[s,l]=ya(i.value);Object.assign(e.attrs,{x2:s,y2:l});break}for(let i of w.elements(n))switch(i.localName){case\"stroke\":Object.assign(e.attrs,bp(i));break;case\"fill\":Object.assign(e.attrs,yp(i));break;case\"imagedata\":let o=w.attr(i,\"id\")??w.attr(i,\"relid\")??w.attr(i,\"pict\");o&&(e.tagName=\"image\",Object.assign(e.attrs,gp(i)),e.imageHref={id:o,title:w.attr(i,\"title\")});break;case\"txbxContent\":e.children.push(...t.parseBodyElements(i));break;default:let a=Xl(i,t);a&&e.children.push(a);break}let r=e.cssStyle?.rotation?.trim();if(r&&/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:fd|deg)?$/i.test(r)){let i=parseFloat(r)/(/fd$/i.test(r)?65536:1);Number.isFinite(i)&&(e.rotation=i)}if(e.cssStyle?.position==\"absolute\"){let i=e.cssStyle[\"mso-position-horizontal-relative\"]??\"paragraph\",o=e.cssStyle[\"mso-position-vertical-relative\"]??\"paragraph\",a=e.cssStyle[\"mso-position-horizontal\"],s=e.cssStyle[\"mso-position-vertical\"];e.props={anchorPosition:{layoutInCell:!/^(f|false|0|off)$/i.test(w.attr(n,\"allowincell\")??\"\"),horizontal:{relative:i==\"text\"?\"column\":i,align:a,alignSpecified:!!a&&a!=\"absolute\"},vertical:{relative:o==\"text\"?\"paragraph\":o,align:s,alignSpecified:!!s&&s!=\"absolute\"}}}}return e}function mp(n){let t=n.trim();if(!/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:%|f)?$/i.test(t))return .2;let e=parseFloat(t)/(/%$/.test(t)?100:/f$/i.test(t)?65536:1);return Number.isFinite(e)?Math.max(0,Math.min(1,e)):.2}function gp(n){let t=xi(w.attr(n,\"cropleft\")),e=xi(w.attr(n,\"croptop\")),r=xi(w.attr(n,\"cropright\")),i=xi(w.attr(n,\"cropbottom\")),o=Math.max(1e-4,1-t-r),a=Math.max(1e-4,1-e-i),s={x:wi(-t/o),y:wi(-e/a),width:wi(1/o),height:wi(1/a)};return(t||e||r||i)&&(s.preserveAspectRatio=\"none\"),s}function xi(n){if(!n)return 0;let t=String(n).trim();if(!t)return 0;let e;return/^-?\\d+(\\.\\d+)?f$/i.test(t)?e=parseFloat(t.slice(0,-1))/65536:t.endsWith(\"%\")?e=parseFloat(t)/100:e=parseFloat(t),Number.isFinite(e)?Math.max(0,Math.min(.9999,e)):0}function wi(n){return`${Math.round(n*1e5)/1e3}%`}function bp(n){let t={},e=w.attr(n,\"color\"),r=w.attr(n,\"weight\"),i=w.attr(n,\"on\");return i==\"f\"||i==\"false\"?t.stroke=\"none\":e&&(t.stroke=e),r?t[\"stroke-width\"]=Be(r,$t.Point)??r:t[\"stroke-width\"]=\"1px\",t}function yp(n){let t={},e=w.attr(n,\"color\")??w.attr(n,\"color2\"),r=w.attr(n,\"on\"),i=w.attr(n,\"opacity\");return r==\"f\"||r==\"false\"?t.fill=\"none\":e&&(t.fill=e),i&&(t[\"fill-opacity\"]=i.endsWith(\"%\")?`${parseFloat(i)/100}`:i),t}function ya(n){return n.trim().split(/[\\s,]+/)}function ml(n){let[t,e]=ya(n).map(r=>Number(r));return[Number.isFinite(t)?t:0,Number.isFinite(e)?e:0]}function xp(n){return n.replace(/([mlxe])|([-\\d]+)|([,])/g,t=>/[-\\d]/.test(t)||/[ml,]/.test(t)?t:t==\"x\"?\"z\":\"\")}var xa=class extends wr{constructor(){super(...arguments),this.type=A.Comment}},wa=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentReference}},$i=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentRangeStart}},Wi=class extends wr{constructor(t){super(),this.id=t,this.type=A.CommentRangeEnd}};function wp(){let n=new WeakMap,t=new WeakSet;function e(r){let i=n.get(r);if(i)return i;let o=r.parentNode?.nodeType===1?r.parentNode:null;if(!o){let s=`/${r.nodeName}`;return n.set(r,s),s}let a=e(o);if(!t.has(o)){let s=new Map;for(let l of Array.from(o.childNodes)){if(l.nodeType!==1)continue;let c=l,h=`${c.namespaceURI}|${c.localName}`,u=s.get(h)??[];u.push(c),s.set(h,u)}for(let l of s.values())l.forEach((c,h)=>{n.set(c,`${a}/${c.nodeName}${l.length>1?`[${h+1}]`:\"\"}`)});t.add(o)}return n.get(r)}return r=>{if(r.localName!==\"p\"||r.namespaceURI!==\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\")return;let i=r.getAttributeNS(\"http://schemas.microsoft.com/office/word/2010/wordml\",\"paraId\");return i?`p:${i}`:`xpath:${e(r)}`}}var Br={shd:\"inherit\",color:\"var(--docx-auto-color, black)\",borderColor:\"var(--docx-auto-color, black)\",highlight:\"transparent\"},vp=[Qr.wordprocessingShape,Qr.wordprocessingCanvas,Qr.wordprocessingGroup,Qr.drawingml,Qr.picture],gl={oMath:A.MmlMath,oMathPara:A.MmlMathParagraph,f:A.MmlFraction,func:A.MmlFunction,fName:A.MmlFunctionName,num:A.MmlNumerator,den:A.MmlDenominator,rad:A.MmlRadical,deg:A.MmlDegree,e:A.MmlBase,sSup:A.MmlSuperscript,sSub:A.MmlSubscript,sPre:A.MmlPreSubSuper,sup:A.MmlSuperArgument,sub:A.MmlSubArgument,d:A.MmlDelimiter,nary:A.MmlNary,eqArr:A.MmlEquationArray,lim:A.MmlLimit,limLow:A.MmlLimitLower,limUpp:A.MmlLimitUpper,sSubSup:A.MmlSubSuperscript,phant:A.MmlPhantom,borderBox:A.MmlBorderBox,acc:A.MmlAccent,m:A.MmlMatrix,mr:A.MmlMatrixRow,box:A.MmlBox,bar:A.MmlBar,groupChr:A.MmlGroupChar},va=class{constructor(t){this.paragraphAddress=wp(),this.options={ignoreWidth:!1,debug:!1,hideWebHiddenContent:!1,...t}}parseNotes(t,e,r){var i=[];for(let o of w.elements(t,e)){let a=new r;a.id=w.attr(o,\"id\"),a.noteType=w.attr(o,\"type\"),a.children=this.parseBodyElements(o),i.push(a)}return i}parseComments(t){var e=[];for(let r of w.elements(t,\"comment\")){let i=new xa;i.id=w.attr(r,\"id\"),i.author=w.attr(r,\"author\"),i.initials=w.attr(r,\"initials\"),i.date=w.attr(r,\"date\"),i.children=this.parseBodyElements(r),e.push(i)}return e}parseDocumentFile(t){var e=w.element(t,\"body\"),r=w.element(t,\"background\"),i=w.element(e,\"sectPr\");let o=r?.getElementsByTagNameNS(\"urn:schemas-microsoft-com:vml\",\"fill\")?.[0],a=o?.getAttributeNS(\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",\"id\");return{type:A.Document,children:this.parseBodyElements(e),props:Pl(i,w),cssStyle:r?this.parseBackground(r):{},backgroundImage:a?{id:a,type:o.getAttribute(\"type\")||\"tile\"}:void 0}}parseBackground(t){var e={},r=Dr.colorAttr(t,\"color\",null,Br.shd);return r&&(e[\"background-color\"]=r),e}parseBodyElements(t){var e=[];for(let r of w.elements(t))switch(r.localName){case\"p\":e.push(this.parseParagraph(r));break;case\"altChunk\":e.push(this.parseAltChunk(r));break;case\"tbl\":e.push(this.parseTable(r));break;case\"sdt\":e.push(...this.parseSdt(r,i=>this.parseBodyElements(i)));break;case\"ins\":e.push(this.parseRevision(A.Inserted,r,i=>({children:this.parseBodyElements(i)}),\"insert\"));break;case\"del\":e.push(this.parseRevision(A.Deleted,r,i=>({children:this.parseBodyElements(i)}),\"delete\"));break;case\"moveFrom\":e.push(this.parseRevision(A.Deleted,r,i=>({children:this.parseBodyElements(i)}),\"move-from\"));break;case\"moveTo\":e.push(this.parseRevision(A.Inserted,r,i=>({children:this.parseBodyElements(i)}),\"move-to\"));break}return e}parseStylesFile(t){var e=[];for(let r of w.elements(t))switch(r.localName){case\"style\":e.push(this.parseStyle(r));break;case\"docDefaults\":e.push(this.parseDefaultStyles(r));break}return e}parseDefaultStyles(t){var e={id:null,name:null,target:null,basedOn:null,styles:[]};for(let o of w.elements(t))switch(o.localName){case\"rPrDefault\":var r=w.element(o,\"rPr\");r&&e.styles.push({target:\"span\",values:this.parseDefaultProperties(r,{})});break;case\"pPrDefault\":var i=w.element(o,\"pPr\");i&&e.styles.push({target:\"p\",values:this.parseDefaultProperties(i,{})});break}return e}parseStyle(t){var e={id:w.attr(t,\"styleId\"),isDefault:w.boolAttr(t,\"default\"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(w.attr(t,\"type\")){case\"paragraph\":e.target=\"p\";break;case\"table\":e.target=\"table\";break;case\"character\":e.target=\"span\";break}for(let r of w.elements(t))switch(r.localName){case\"basedOn\":e.basedOn=w.attr(r,\"val\");break;case\"name\":e.name=w.attr(r,\"val\");break;case\"link\":e.linked=w.attr(r,\"val\");break;case\"next\":e.next=w.attr(r,\"val\");break;case\"aliases\":e.aliases=w.attr(r,\"val\").split(\",\");break;case\"pPr\":e.styles.push({target:\"p\",values:this.parseDefaultProperties(r,{})}),e.paragraphProps=Il(r,w);break;case\"rPr\":e.styles.push({target:\"span\",values:this.parseDefaultProperties(r,{})}),e.runProps=Pa(r,w);break;case\"tblPr\":case\"tcPr\":e.styles.push({target:\"td\",values:this.parseDefaultProperties(r,{})});break;case\"tblStylePr\":for(let i of this.parseTableStyle(r))e.styles.push(i);break;case\"rsid\":case\"qFormat\":case\"hidden\":case\"semiHidden\":case\"unhideWhenUsed\":case\"autoRedefine\":case\"uiPriority\":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${r.localName}`)}return e}parseTableStyle(t){var e=[],r=w.attr(t,\"type\"),i=\"\",o=\"\";switch(r){case\"firstRow\":o=\".first-row\",i=\"tr.first-row td\";break;case\"lastRow\":o=\".last-row\",i=\"tr.last-row td\";break;case\"firstCol\":o=\".first-col\",i=\"td.first-col\";break;case\"lastCol\":o=\".last-col\",i=\"td.last-col\";break;case\"band1Vert\":o=\":not(.no-vband)\",i=\"td.odd-col\";break;case\"band2Vert\":o=\":not(.no-vband)\",i=\"td.even-col\";break;case\"band1Horz\":o=\":not(.no-hband)\",i=\"tr.odd-row\";break;case\"band2Horz\":o=\":not(.no-hband)\",i=\"tr.even-row\";break;default:return[]}for(let a of w.elements(t))switch(a.localName){case\"pPr\":e.push({target:`${i} p`,mod:o,values:this.parseDefaultProperties(a,{})});break;case\"rPr\":e.push({target:`${i} span`,mod:o,values:this.parseDefaultProperties(a,{})});break;case\"tblPr\":case\"tcPr\":e.push({target:i,mod:o,values:this.parseDefaultProperties(a,{})});break}return e}parseNumberingFile(t){let e=[],r=[],i={},o=[],a=[];for(let s of w.elements(t))switch(s.localName){case\"numPicBullet\":r.push(this.parseNumberingPicBullet(s));break;case\"abstractNum\":o.push(s);break;case\"num\":a.push(s);break}for(let s of o)i[w.attr(s,\"abstractNumId\")]=this.parseAbstractNumbering(s,r);for(let s of a){let l=w.attr(s,\"numId\"),c=w.elementAttr(s,\"abstractNumId\",\"val\"),h=(i[c]??[]).map(u=>this.cloneNumberingLevel(u,l));for(let u of w.elements(s,\"lvlOverride\")){let f=w.intAttr(u,\"ilvl\"),d=w.element(u,\"lvl\"),p=w.element(u,\"startOverride\"),m=h.find(g=>g.level==f);if(d){m=this.parseNumberingLevel(l,d,r);let g=h.findIndex(b=>b.level==f);g>=0?h[g]=m:h.push(m)}p&&m&&(m.start=w.intAttr(p,\"val\",m.start))}e.push(...h)}return e}cloneNumberingLevel(t,e){return{...t,id:e,pStyle:{...t.pStyle},rStyle:{...t.rStyle},bullet:t.bullet?{...t.bullet}:null}}parseNumberingPicBullet(t){let e=w.intAttr(t,\"numPicBulletId\"),r=w.element(t,\"pict\"),i=r&&w.element(r,\"shape\"),o=i&&w.element(i,\"imagedata\");if(o)return{id:e,src:w.attr(o,\"id\"),style:w.attr(i,\"style\")};let a=w.element(t,\"drawing\"),s=a?this.findDescendant(a,\"blip\"):null;if(s){let l=a?this.findDescendant(a,\"extent\"):null,c=[];if(l){let h=w.lengthAttr(l,\"cx\",$t.Emu),u=w.lengthAttr(l,\"cy\",$t.Emu);h&&c.push(`width:${h};`),u&&c.push(`height:${u};`)}return{id:e,src:w.attr(s,\"embed\")??w.attr(s,\"link\"),style:c.join(\"\")||void 0}}return null}parseAbstractNumbering(t,e){var r=[],i=w.attr(t,\"abstractNumId\");for(let o of w.elements(t))o.localName===\"lvl\"&&r.push(this.parseNumberingLevel(i,o,e));return r}parseNumberingLevel(t,e,r){var i={id:t,level:w.intAttr(e,\"ilvl\"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:\"tab\"};for(let a of w.elements(e))switch(a.localName){case\"start\":i.start=w.intAttr(a,\"val\");break;case\"pPr\":this.parseDefaultProperties(a,i.pStyle);break;case\"rPr\":this.parseDefaultProperties(a,i.rStyle);break;case\"lvlPicBulletId\":var o=w.intAttr(a,\"val\");i.bullet=r.find(s=>s?.id==o);break;case\"lvlText\":i.levelText=w.attr(a,\"val\");break;case\"pStyle\":i.pStyleName=w.attr(a,\"val\");break;case\"numFmt\":i.format=w.attr(a,\"val\");break;case\"lvlRestart\":i.restart=w.intAttr(a,\"val\");break;case\"suff\":i.suff=w.attr(a,\"val\");break}return i}parseSdt(t,e){let r=w.element(t,\"sdtContent\");return r?e(r):[]}parseInserted(t,e){return this.parseRevision(A.Inserted,t,e)}parseDeleted(t,e){return this.parseRevision(A.Deleted,t,e)}parseRevision(t,e,r,i=t==A.Inserted?\"insert\":\"delete\"){return{type:t,children:r(e)?.children??[],props:{revision:{id:w.attr(e,\"id\"),author:w.attr(e,\"author\"),date:w.attr(e,\"date\"),kind:i}}}}parseAltChunk(t){return{type:A.AltChunk,children:[],id:w.attr(t,\"id\")}}parseParagraph(t){var e={type:A.Paragraph,children:[]};this.options.exposeDisplayTargets&&(e.displayAddress=this.paragraphAddress(t));for(let r of w.elements(t))switch(r.localName){case\"pPr\":this.parseParagraphProperties(r,e);break;case\"r\":e.children.push(this.parseRun(r,e));break;case\"hyperlink\":e.children.push(this.parseHyperlink(r,e));break;case\"fldSimple\":e.children.push(this.parseSimpleField(r,e));break;case\"smartTag\":e.children.push(this.parseSmartTag(r,e));break;case\"bookmarkStart\":e.children.push(fl(r,w));break;case\"bookmarkEnd\":e.children.push(pl(r,w));break;case\"commentRangeStart\":e.children.push(new $i(w.attr(r,\"id\")));break;case\"commentRangeEnd\":e.children.push(new Wi(w.attr(r,\"id\")));break;case\"oMath\":case\"oMathPara\":{let i=this.parseMathElement(r);i&&e.children.push(i);break}case\"sdt\":e.children.push(...this.parseSdt(r,i=>this.parseParagraph(i).children));break;case\"ins\":e.children.push(this.parseInserted(r,i=>this.parseParagraph(i)));break;case\"del\":e.children.push(this.parseDeleted(r,i=>this.parseParagraph(i)));break;case\"moveFrom\":e.children.push(this.parseRevision(A.Deleted,r,i=>this.parseParagraph(i),\"move-from\"));break;case\"moveTo\":e.children.push(this.parseRevision(A.Inserted,r,i=>this.parseParagraph(i),\"move-to\"));break}return e}parseParagraphProperties(t,e){this.parseDefaultProperties(t,e.cssStyle={},null,r=>{if(r.localName==\"rPr\"){let i=w.elements(r).filter(a=>a.localName==\"ins\"||a.localName==\"del\").map(a=>this.revisionMetadata(a,a.localName==\"del\"?\"delete\":\"insert\"));i.length&&(e.props={...e.props??{},paragraphMarkRevisions:[...e.props?.paragraphMarkRevisions??[],...i]}),i.some(a=>a.kind==\"delete\")&&(e.props={...e.props??{},deletedParagraphMark:!0});let o=e.cssStyle[\"background-color\"];return this.parseDefaultProperties(r,e.cssStyle),o==null?delete e.cssStyle[\"background-color\"]:e.cssStyle[\"background-color\"]=o,Zo(r,e,w),!0}if(r.localName==\"pPrChange\")return this.addFormatRevision(e,r,\"paragraph-format\",t),!0;if(Zo(r,e,w))return!0;switch(r.localName){case\"pStyle\":e.styleName=w.attr(r,\"val\");break;case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(r);break;case\"framePr\":this.parseFrame(r,e);break;default:return!1}return!0})}parseFrame(t,e){let r=w.attr(t,\"dropCap\");e.frame={dropCap:r,width:w.lengthAttr(t,\"w\"),height:w.lengthAttr(t,\"h\"),horizontalPosition:w.lengthAttr(t,\"x\"),verticalPosition:w.lengthAttr(t,\"y\"),horizontalAnchor:w.attr(t,\"hAnchor\"),verticalAnchor:w.attr(t,\"vAnchor\"),horizontalAlignment:w.attr(t,\"xAlign\"),verticalAlignment:w.attr(t,\"yAlign\"),horizontalSpace:w.lengthAttr(t,\"hSpace\"),verticalSpace:w.lengthAttr(t,\"vSpace\"),heightRule:w.attr(t,\"hRule\"),wrap:w.attr(t,\"wrap\"),lines:w.intAttr(t,\"lines\")},r==\"drop\"&&(e.cssStyle.float=\"left\")}parseHyperlink(t,e){var r={type:A.Hyperlink,parent:e,children:[]};r.anchor=w.attr(t,\"anchor\"),r.id=w.attr(t,\"id\");for(let i of w.elements(t))i.localName===\"r\"&&r.children.push(this.parseRun(i,r));return r}parseSmartTag(t,e){var r={type:A.SmartTag,parent:e,children:[]},i=w.attr(t,\"uri\"),o=w.attr(t,\"element\");i&&(r.uri=i),o&&(r.element=o);for(let a of w.elements(t))switch(a.localName){case\"r\":r.children.push(this.parseRun(a,r));break;case\"smartTag\":r.children.push(this.parseSmartTag(a,r));break}return r}parseSimpleField(t,e){let r={type:A.SimpleField,parent:e,children:[],instruction:w.attr(t,\"instr\"),lock:w.boolAttr(t,\"lock\",!1),dirty:w.boolAttr(t,\"dirty\",!1)};for(let i of w.elements(t))switch(i.localName){case\"r\":r.children.push(this.parseRun(i,r));break;case\"hyperlink\":r.children.push(this.parseHyperlink(i,r));break;case\"smartTag\":r.children.push(this.parseSmartTag(i,r));break;case\"bookmarkStart\":r.children.push(fl(i,w));break;case\"bookmarkEnd\":r.children.push(pl(i,w));break;case\"commentRangeStart\":r.children.push(new $i(w.attr(i,\"id\")));break;case\"commentRangeEnd\":r.children.push(new Wi(w.attr(i,\"id\")));break;case\"sdt\":r.children.push(...this.parseSdt(i,o=>this.parseParagraph(o).children));break;case\"ins\":r.children.push(this.parseInserted(i,o=>this.parseParagraph(o)));break;case\"del\":r.children.push(this.parseDeleted(i,o=>this.parseParagraph(o)));break;case\"moveFrom\":r.children.push(this.parseRevision(A.Deleted,i,o=>this.parseParagraph(o),\"move-from\"));break;case\"moveTo\":r.children.push(this.parseRevision(A.Inserted,i,o=>this.parseParagraph(o),\"move-to\"));break}return r}parseRun(t,e){var r={type:A.Run,parent:e,children:[]};for(let i of w.elements(t))if(i=this.checkAlternateContent(i),!!i)switch(i.localName){case\"t\":r.children.push({type:A.Text,text:i.textContent});break;case\"delText\":r.children.push({type:A.DeletedText,text:i.textContent});break;case\"commentReference\":r.children.push(new wa(w.attr(i,\"id\")));break;case\"fldSimple\":r.children.push(this.parseSimpleField(i,r));break;case\"instrText\":r.fieldRun=!0,r.children.push({type:A.Instruction,text:i.textContent});break;case\"fldChar\":r.fieldRun=!0,r.children.push({type:A.ComplexField,charType:w.attr(i,\"fldCharType\"),lock:w.boolAttr(i,\"lock\",!1),dirty:w.boolAttr(i,\"dirty\",!1)});break;case\"noBreakHyphen\":r.children.push({type:A.NoBreakHyphen});break;case\"softHyphen\":r.children.push({type:A.SoftHyphen});break;case\"cr\":r.children.push({type:A.Break,break:\"line\"});break;case\"ptab\":r.children.push({type:A.PositionalTab});break;case\"br\":r.children.push({type:A.Break,break:w.attr(i,\"type\")||\"textWrapping\"});break;case\"lastRenderedPageBreak\":r.children.push({type:A.Break,break:\"lastRenderedPageBreak\"});break;case\"sym\":r.children.push({type:A.Symbol,font:br(w.attr(i,\"font\")),char:w.hexAttr(i,\"char\")});break;case\"tab\":r.children.push({type:A.Tab});break;case\"footnoteReference\":r.children.push({type:A.FootnoteReference,id:w.attr(i,\"id\"),customMarkFollows:w.boolAttr(i,\"customMarkFollows\",!1)});break;case\"endnoteReference\":r.children.push({type:A.EndnoteReference,id:w.attr(i,\"id\"),customMarkFollows:w.boolAttr(i,\"customMarkFollows\",!1)});break;case\"drawing\":let o=this.parseDrawing(i);o&&r.children.push(o);break;case\"pict\":r.children.push(this.parseVmlPicture(i));break;case\"object\":r.children.push(this.parseVmlPicture(i));break;case\"ruby\":r.children.push(this.parseRuby(i));break;case\"rPr\":this.parseRunProperties(i,r);break}return r}parseRuby(t){let e={type:A.Ruby,children:[]};for(let r of w.elements(t))switch(r.localName){case\"rubyPr\":for(let i of w.elements(r))i.localName===\"rubyAlign\"&&(e.align=w.attr(i,\"val\"));break;case\"rt\":e.children.push(this.parseRubyContent(r,A.RubyText));break;case\"rubyBase\":e.children.push(this.parseRubyContent(r,A.RubyBase));break}return e}parseRubyContent(t,e){let r={type:e,children:[]};for(let i of w.elements(t))if(i.localName==\"r\")r.children.push(this.parseRun(i,r));else if(e==A.RubyText&&i.localName==\"rPr\"){let o=w.element(i,\"hps\"),a=o?w.intAttr(o,\"val\",null):null;a!=null&&(r.cssStyle={...r.cssStyle??{},fontSize:`${a/2}pt`})}return r}parseMathElement(t){let e=`${t.localName}Pr`,r={type:gl[t.localName],children:[]},i=!1,o=a=>{if(gl[a.localName]){let c=this.parseMathElement(a);c?(c.parent=r,r.children.push(c)):i=!0}else if(a.localName==\"r\"){var l=this.parseRun(a,r);l.type=A.MmlRun,r.children.push(l)}else if(a.localName==e)r.props=this.parseMathProperies(a);else if(a.localName==\"ins\")for(let c of w.elements(a))o(c);else if(a.localName==\"del\")if(this.options.renderChanges||this.options.reviewMode!=null)for(let c of w.elements(a))o(c);else i=!0};for(let a of w.elements(t))o(a);return i&&!this.hasVisibleMathContent(r)?null:r}hasVisibleMathContent(t){for(let e of t.children??[]){switch(e.type){case A.Text:if(e.text?.length)return!0;break;case A.DeletedText:if((this.options.renderChanges||this.options.reviewMode!=null)&&e.text?.length)return!0;break;case A.Symbol:case A.Tab:case A.PositionalTab:case A.NoBreakHyphen:case A.Break:return!0}if(this.hasVisibleMathContent(e))return!0}return!1}parseMathProperies(t){let e={};for(let r of w.elements(t))switch(r.localName){case\"chr\":e.char=w.attr(r,\"val\");break;case\"vertJc\":e.verticalJustification=w.attr(r,\"val\");break;case\"pos\":e.position=w.attr(r,\"val\");break;case\"degHide\":e.hideDegree=w.boolAttr(r,\"val\");break;case\"begChr\":e.beginChar=w.attr(r,\"val\");break;case\"endChr\":e.endChar=w.attr(r,\"val\");break;case\"limLoc\":e.limitLocation=w.attr(r,\"val\");break;case\"grow\":e.grow=w.boolAttr(r,\"val\");break;case\"sepChr\":e.separatorChar=w.attr(r,\"val\");break}return e}parseRunProperties(t,e){this.parseDefaultProperties(t,e.cssStyle={},null,r=>{switch(r.localName){case\"rStyle\":e.styleName=w.attr(r,\"val\");break;case\"vertAlign\":e.verticalAlign=Yt.valueOfVertAlign(r,!0);break;case\"rPrChange\":this.addFormatRevision(e,r,\"run-format\",t);break;default:return!1}return!0})}parseVmlPicture(t){let e={type:A.VmlPicture,children:[]};for(let r of w.elements(t)){let i=Xl(r,this);i&&e.children.push(i)}return e}checkAlternateContent(t){if(t.localName!=\"AlternateContent\")return t;for(let r of w.elements(t).filter(i=>i.localName==\"Choice\")){let i=(w.attr(r,\"Requires\")??\"\").split(/\\s+/).filter(Boolean);if(i.length>0&&i.every(a=>vp.includes(t.lookupNamespaceURI(a)))){let a=w.elements(r)[0];if(a)return a}}let e=w.element(t,\"Fallback\");return e?w.elements(e)[0]:null}parseDrawing(t){for(var e of w.elements(t))switch(e.localName){case\"inline\":case\"anchor\":return this.parseDrawingWrapper(e)}}parseDrawingWrapper(t){var e,r,i,o,a,s,l,c,h,u,f,d={type:A.Drawing,children:[],cssStyle:{},props:{}},p=t.localName==\"anchor\";let m={left:w.lengthAttr(t,\"distL\",$t.Emu),top:w.lengthAttr(t,\"distT\",$t.Emu),right:w.lengthAttr(t,\"distR\",$t.Emu),bottom:w.lengthAttr(t,\"distB\",$t.Emu)},g=(z,st)=>{st&&(d.cssStyle[z]=Yt.addSize(d.cssStyle[z],st))},b=null,T=null,S=null,I=w.boolAttr(t,\"simplePos\",!1),O=w.boolAttr(t,\"behindDoc\",!1),$=w.intAttr(t,\"relativeHeight\",null);$!=null&&(d.cssStyle[\"z-index\"]=`${Math.max(1,Math.round($/1e3))}`),O&&(d.cssStyle[\"z-index\"]=\"0\");let k={relative:\"page\",align:\"left\",offset:\"0\"},W={relative:\"page\",align:\"top\",offset:\"0\"},U=!1,v=!1,_=!1,y=!1;for(var H of w.elements(t))switch(H.localName){case\"simplePos\":I&&(k.offset=w.lengthAttr(H,\"x\",$t.Emu),W.offset=w.lengthAttr(H,\"y\",$t.Emu),_=k.offset!=null,y=W.offset!=null);break;case\"extent\":d.cssStyle.width=w.lengthAttr(H,\"cx\",$t.Emu),d.cssStyle.height=w.lengthAttr(H,\"cy\",$t.Emu);break;case\"effectExtent\":g(\"margin-left\",w.lengthAttr(H,\"l\",$t.Emu)),g(\"margin-top\",w.lengthAttr(H,\"t\",$t.Emu)),g(\"margin-right\",w.lengthAttr(H,\"r\",$t.Emu)),g(\"margin-bottom\",w.lengthAttr(H,\"b\",$t.Emu));break;case\"docPr\":d.props.title=w.attr(H,\"title\")??w.attr(H,\"name\"),d.props.alt=w.attr(H,\"descr\")??d.props.title;break;case\"positionH\":case\"positionV\":if(!I){let z=H.localName==\"positionH\",st=z?k:W;var nt=w.element(H,\"align\"),J=w.element(H,\"posOffset\");st.relative=w.attr(H,\"relativeFrom\")??st.relative,nt&&(st.align=nt.textContent,z?U=!0:v=!0),J&&(st.offset=Be(J.textContent,$t.Emu),z?_=st.offset!=null:y=st.offset!=null)}break;case\"wrapTopAndBottom\":b=\"wrapTopAndBottom\";break;case\"wrapNone\":b=\"wrapNone\";break;case\"wrapSquare\":b=\"wrapSquare\",T=w.attr(H,\"wrapText\");break;case\"wrapTight\":b=\"wrapTight\",T=w.attr(H,\"wrapText\"),S=this.parseWrapPolygon(H);break;case\"wrapThrough\":b=\"wrapThrough\",T=w.attr(H,\"wrapText\"),S=this.parseWrapPolygon(H);break;case\"graphic\":var lt=this.parseGraphic(H);lt&&(lt.type==A.Image?((e=lt).alt??(e.alt=d.props.alt),(r=lt).title??(r.title=d.props.title)):lt.type==A.Shape?((i=lt).alt??(i.alt=d.props.alt),(o=lt).title??(o.title=d.props.title)):lt.type==A.Chart?((a=lt).alt??(a.alt=d.props.alt),(s=lt).title??(s.title=d.props.title)):lt.type==A.SmartArt?((l=lt).alt??(l.alt=d.props.alt),(c=lt).title??(c.title=d.props.title)):lt.type==A.Ink&&((h=lt).alt??(h.alt=d.props.alt),(u=lt).title??(u.title=d.props.title)),d.children.push(lt));break}d.props.anchorPosition={horizontal:{...k,offsetSpecified:_,alignSpecified:U},vertical:{...W,offsetSpecified:y,alignSpecified:v},wrapType:b,layoutInCell:w.boolAttr(t,\"layoutInCell\",!0),simplePos:I},b!=\"wrapNone\"&&(g(\"margin-left\",m.left),g(\"margin-top\",m.top),g(\"margin-right\",m.right),g(\"margin-bottom\",m.bottom));let ot=()=>{switch(k.align){case\"center\":d.cssStyle[\"margin-left\"]=\"auto\",d.cssStyle[\"margin-right\"]=\"auto\";break;case\"right\":d.cssStyle[\"margin-left\"]=\"auto\";break}},et=()=>{U?ot():_&&k.offset&&(d.cssStyle[\"margin-inline-start\"]=Yt.addSize(d.cssStyle[\"margin-inline-start\"],k.offset))},B=()=>{y&&W.offset&&(d.cssStyle[\"margin-top\"]=Yt.addSize(d.cssStyle[\"margin-top\"],W.offset))};return b==\"wrapTopAndBottom\"?(d.cssStyle.display=\"block\",d.cssStyle.clear=\"both\",et(),B()):b==\"wrapNone\"?(d.cssStyle.display=\"block\",d.cssStyle.position=p?\"absolute\":\"relative\",k.offset&&(d.cssStyle.left=k.offset),W.offset&&(d.cssStyle.top=W.offset)):b==\"wrapSquare\"||b==\"wrapTight\"||b==\"wrapThrough\"?(S&&(d.cssStyle[\"shape-outside\"]=S,(f=d.cssStyle)[\"clip-path\"]??(f[\"clip-path\"]=S)),T==\"left\"?d.cssStyle.float=\"right\":T==\"right\"?d.cssStyle.float=\"left\":k.align==\"left\"||k.align==\"right\"?d.cssStyle.float=k.align:(d.cssStyle.display=\"block\",ot())):p&&(k.align==\"left\"||k.align==\"right\")?d.cssStyle.float=k.align:d.cssStyle[\"vertical-align\"]=\"text-bottom\",this.applyDrawingFloatOffsets(d,t)}applyDrawingFloatOffsets(t,e){let r=t.cssStyle,i=t.props?.anchorPosition;if(!r?.float||!i)return t;let o=c=>{if(i.simplePos)return!0;let h=w.element(e,`position${c}`);return!!h&&!!w.element(h,\"posOffset\")},a=/^-?\\d+(?:\\.\\d+)?(?:pt|px|in|cm|mm)?$/,s=i.horizontal,l=i.vertical;return o(\"H\")&&s?.relative==\"column\"&&a.test(s.offset??\"\")&&a.test(r.width??\"\")&&(r[\"--docx-float-column-position\"]=s.offset,r[\"--docx-float-origin-offset\"]=\"0px\",r.float==\"right\"?r[\"margin-right\"]=`calc(100% - ${s.offset} - ${r.width} - var(--docx-float-origin-offset, 0px))`:r.float==\"left\"&&(r[\"margin-left\"]=`calc(${s.offset} + var(--docx-float-origin-offset, 0px))`)),o(\"V\")&&l?.relative==\"paragraph\"&&a.test(l.offset??\"\")&&(r[\"margin-top\"]=l.offset),t}parseWrapPolygon(t){let e=w.element(t,\"wrapPolygon\");if(!e)return null;let r=[],i=o=>{let a=w.lengthAttr(o,\"x\",$t.Emu),s=w.lengthAttr(o,\"y\",$t.Emu);a&&s&&r.push(`${a} ${s}`)};for(let o of w.elements(e))(o.localName==\"start\"||o.localName==\"lineTo\")&&i(o);return r.length>=3?`polygon(${r.join(\", \")})`:null}parseGraphic(t){var e=w.element(t,\"graphicData\");if(!e)return null;for(let i of w.elements(e))switch(i.localName){case\"pic\":return this.parsePicture(i);case\"wpc\":case\"wgp\":case\"grpSp\":return this.parseDrawingContainer(i);case\"wsp\":case\"sp\":case\"cxnSp\":return this.parseWordprocessingShape(i);case\"chart\":return this.parseChartReference(i);case\"relIds\":return this.parseSmartArtReference(i);case\"diagram\":return this.parseSmartArtReference(i);case\"contentPart\":case\"ink\":return this.parseInkReference(i)}let r=this.findDescendant(e,\"contentPart\");return r?this.parseInkReference(r):null}parseDrawingContainer(t,e){let r={type:A.Shape,children:[],cssStyle:{display:\"inline-block\",position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"visible\",\"box-sizing\":\"border-box\"},props:{dmlContainer:!0}},i=this.parseDmlGroupTransform(t,e);for(let o of w.elements(t))switch(o.localName){case\"wsp\":case\"sp\":case\"cxnSp\":let a=this.parseDmlPositionedShape(o,i);a&&r.children.push(a);break;case\"pic\":let s=this.parseDmlPositionedPicture(o,i);s&&r.children.push(s);break;case\"grpSp\":case\"wgp\":let l=this.parseDrawingContainer(o,i);l&&r.children.push(l);break}return r}parseDmlGroupTransform(t,e){let r=w.element(t,\"grpSpPr\"),i=r?w.element(r,\"xfrm\"):w.element(t,\"xfrm\"),o=i?w.element(i,\"off\"):null,a=i?w.element(i,\"ext\"):null,s=i?w.element(i,\"chOff\"):null,l=i?w.element(i,\"chExt\"):null,c=a?w.floatAttr(a,\"cx\",null):null,h=a?w.floatAttr(a,\"cy\",null):null,u=l?w.floatAttr(l,\"cx\",null):null,f=l?w.floatAttr(l,\"cy\",null):null,d=e?.scaleX??1,p=e?.scaleY??1,m=o?w.floatAttr(o,\"x\",0):0,g=o?w.floatAttr(o,\"y\",0):0,b=e?e.originX+(m-e.offsetX)*d:0,T=e?e.originY+(g-e.offsetY)*p:0;return{originX:b,originY:T,offsetX:s?w.floatAttr(s,\"x\",0):0,offsetY:s?w.floatAttr(s,\"y\",0):0,scaleX:d*(c&&u?c/u:1),scaleY:p*(h&&f?h/f:1)}}parseDmlPositionedPicture(t,e){let r=this.parsePicture(t),i=w.element(t,\"spPr\");if(!r||!i)return r;let o=this.parseDmlShapeBounds(i,e);return r.cssStyle.position=\"absolute\",r.cssStyle.left=this.pt(o.left),r.cssStyle.top=this.pt(o.top),r.cssStyle.width=this.pt(o.width),r.cssStyle.height=this.pt(o.height),r}parseDmlPositionedShape(t,e){let r=w.element(t,\"spPr\");if(!r)return null;let i=this.parseDmlShapeBounds(r,e),o=[],a=null,s=!1;for(let g of w.elements(t))switch(g.localName){case\"txbx\":case\"textBox\":s=!0;for(let b of w.elements(g,\"txbxContent\"))o.push(...this.parseBodyElements(b));break;case\"bodyPr\":a=g;break}a??(a=w.element(t,\"bodyPr\"));let l={position:\"absolute\",left:this.pt(i.left),top:this.pt(i.top),width:this.pt(i.width),height:this.pt(i.height),\"box-sizing\":\"border-box\",overflow:\"hidden\"},c=w.element(t,\"cNvPr\"),h=w.element(r,\"custGeom\"),u=w.element(r,\"prstGeom\"),f=this.parseDmlFillStyle(r),d=this.parseDmlLineStyle(w.element(r,\"ln\")),p=h?null:this.parseDmlRoundRectRadius(r,i.width,i.height,e);if(p!=null&&(l[\"border-radius\"]=p),h){let g=this.parseDmlCustomGeometry(h);return{type:A.Shape,children:[],cssStyle:{...l,overflow:\"visible\"},props:{dmlSvg:!0,viewBox:g?.viewBox??\"0 0 1 1\",pathD:g?.d??\"\",fill:f.fill??\"none\",stroke:d.stroke??\"none\",strokeWidth:d.strokeWidth??\"0\",strokeDasharray:d.strokeDasharray},title:c?w.attr(c,\"title\")??w.attr(c,\"name\"):null,alt:c?w.attr(c,\"descr\"):null}}f.backgroundColor&&(l[\"background-color\"]=f.backgroundColor),f.backgroundImage&&(l[\"background-image\"]=f.backgroundImage),d.stroke&&d.stroke!=\"none\"?l.border=`${d.strokeWidth||\"0.75pt\"} ${d.borderType||\"solid\"} ${d.stroke}`:l.border=\"none\";let m=s?this.parseDmlTextBoxProperties(a):null;return{type:A.Shape,children:o,cssStyle:l,props:{dmlShape:!0,presetGeometry:u?w.attr(u,\"prst\"):null,...m},title:c?w.attr(c,\"title\")??w.attr(c,\"name\"):null,alt:c?w.attr(c,\"descr\"):null}}parseDmlRoundRectRadius(t,e,r,i){let o=w.element(t,\"prstGeom\");if(!o||w.attr(o,\"prst\")!=\"roundRect\")return null;let a=w.element(o,\"avLst\"),s=(a?w.elements(a,\"gd\"):[]).find(p=>w.attr(p,\"name\")==\"adj\"),l=s?w.attr(s,\"fmla\"):\"\",c=/^val\\s+[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)\\s*$/.test(l??\"\")?Number(l.trim().split(/\\s+/)[1]):16667,h=Math.max(0,Math.min(5e4,c))/1e5,u=Math.abs(i?.scaleX??1),f=Math.abs(i?.scaleY??1),d=Number.isFinite(u)&&Number.isFinite(f)&&u>0&&f>0?Math.min(e/u,r/f)*h:0;return`${this.pt(Number.isFinite(d*u)?d*u:0)} / ${this.pt(Number.isFinite(d*f)?d*f:0)}`}parseDmlShapeBounds(t,e){let r=w.element(t,\"xfrm\"),i=r?w.element(r,\"off\"):null,o=r?w.element(r,\"ext\"):null,a=e?.scaleX??1,s=e?.scaleY??1,l=e?.offsetX??0,c=e?.offsetY??0,h=e?.originX??0,u=e?.originY??0,f=i?w.floatAttr(i,\"x\",0):0,d=i?w.floatAttr(i,\"y\",0):0,p=o?w.floatAttr(o,\"cx\",0):0,m=o?w.floatAttr(o,\"cy\",0):0;return{left:this.emuToPt(h+(f-l)*a),top:this.emuToPt(u+(d-c)*s),width:Math.max(0,this.emuToPt(p*a)),height:Math.max(0,this.emuToPt(m*s))}}parseDmlFillStyle(t){if(w.element(t,\"noFill\"))return{fill:\"none\",backgroundColor:\"transparent\"};let e=w.element(t,\"solidFill\");if(e){let i=this.parseDmlColor(e)??\"transparent\";return{fill:i,backgroundColor:i}}let r=w.element(t,\"pattFill\");if(r){let i=this.parseDmlColor(w.element(r,\"fgClr\"))??\"currentColor\",o=this.parseDmlColor(w.element(r,\"bgClr\"))??\"transparent\",a=w.attr(r,\"prst\"),s=a&&a.toLowerCase().includes(\"horz\")?\"0deg\":\"90deg\";return{fill:o,backgroundColor:o,backgroundImage:`repeating-linear-gradient(${s}, ${i} 0, ${i} 0.75pt, ${o} 0.75pt, ${o} 3pt)`}}return{fill:\"none\",backgroundColor:\"transparent\"}}parseDmlLineStyle(t){if(!t||w.element(t,\"noFill\"))return{stroke:\"none\",strokeWidth:\"0\",borderType:\"none\"};let e=this.parseDmlColor(w.element(t,\"solidFill\"))??\"black\",r=w.attr(t,\"w\")?this.pt(this.emuToPt(w.floatAttr(t,\"w\",0))):\"0.75pt\",i=w.elementAttr(t,\"prstDash\",\"val\"),o=null,a=\"solid\";return i&&i!=\"solid\"&&(a=\"dashed\",o=i==\"dot\"?\"1 2\":\"4 3\"),{stroke:e,strokeWidth:r,borderType:a,strokeDasharray:o}}parseDmlCustomGeometry(t){let e=w.element(t,\"pathLst\"),r=e?w.elements(e,\"path\"):[],i=\"\",o=1,a=1;for(let s of r){let l=w.floatAttr(s,\"w\",o),c=w.floatAttr(s,\"h\",a);o=Math.max(o,l||1),a=Math.max(a,c||1),i+=this.parseDmlPathData(s,l||1,c||1)}return{d:i.trim(),viewBox:`0 0 ${o} ${a}`}}parseDmlPathData(t,e,r){let i=[],o=a=>{let s=w.element(a,\"pt\");return s?`${this.dmlCoord(w.attr(s,\"x\"),e,r)} ${this.dmlCoord(w.attr(s,\"y\"),e,r)}`:\"0 0\"};for(let a of w.elements(t))switch(a.localName){case\"moveTo\":i.push(`M ${o(a)}`);break;case\"lnTo\":i.push(`L ${o(a)}`);break;case\"cubicBezTo\":let s=w.elements(a,\"pt\").map(c=>`${this.dmlCoord(w.attr(c,\"x\"),e,r)} ${this.dmlCoord(w.attr(c,\"y\"),e,r)}`);s.length==3&&i.push(`C ${s.join(\" \")}`);break;case\"quadBezTo\":let l=w.elements(a,\"pt\").map(c=>`${this.dmlCoord(w.attr(c,\"x\"),e,r)} ${this.dmlCoord(w.attr(c,\"y\"),e,r)}`);l.length==2&&i.push(`Q ${l.join(\" \")}`);break;case\"close\":i.push(\"Z\");break}return i.join(\" \")+\" \"}dmlCoord(t,e,r){if(t==\"w\"||t==\"r\")return e;if(t==\"h\"||t==\"b\")return r;if(t==\"l\"||t==\"t\")return 0;let i=parseFloat(t);return Number.isFinite(i)?i:0}dmlVerticalAlign(t){switch(t?w.attr(t,\"anchor\"):null){case\"ctr\":return\"center\";case\"b\":return\"flex-end\";default:return\"flex-start\"}}applyDmlTextInsets(t,e){if(!t)return;let r={lIns:\"padding-left\",tIns:\"padding-top\",rIns:\"padding-right\",bIns:\"padding-bottom\"};for(let[i,o]of Object.entries(r)){let a=w.attr(t,i);a!=null&&(e[o]=this.pt(this.emuToPt(parseFloat(a))))}}parseDmlTextBoxProperties(t){let e={};return this.applyDmlTextInsets(t,e),{dmlTextBox:!0,textInsets:e,textCompatibleLineSpacing:t?w.boolAttr(t,\"compatLnSpc\",!1):!1,textVerticalAlign:this.dmlVerticalAlign(t)}}emuToPt(t){return(Number.isFinite(t)?t:0)/12700}pt(t){return`${Math.round(t*100)/100}pt`}parseChartReference(t){return{type:A.Chart,id:w.attr(t,\"id\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseSmartArtReference(t){let e=t.localName==\"relIds\"?t:this.findDescendant(t,\"relIds\");return{type:A.SmartArt,dataId:e?w.attr(e,\"dm\"):w.attr(t,\"dm\"),layoutId:e?w.attr(e,\"lo\"):w.attr(t,\"lo\"),styleId:e?w.attr(e,\"qs\"):w.attr(t,\"qs\"),colorId:e?w.attr(e,\"cs\"):w.attr(t,\"cs\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseInkReference(t){return{type:A.Ink,id:w.attr(t,\"id\"),cssStyle:{width:\"100%\",height:\"100%\"}}}parseGraphicPlaceholder(t){return{type:A.Shape,children:[{type:A.Text,text:`[${t}]`}],cssStyle:{display:\"inline-flex\",\"align-items\":\"center\",\"justify-content\":\"center\",border:\"1px solid #999\",\"background-color\":\"#f8f8f8\",color:\"#555\",\"min-width\":\"2in\",\"min-height\":\"1in\"}}}parseWordprocessingShape(t){let e={type:A.Shape,children:[],cssStyle:{display:\"inline-block\",position:\"relative\",\"box-sizing\":\"border-box\",overflow:\"hidden\"}},r=this.findDescendant(t,\"cNvPr\"),i=null,o=!1;r&&(e.title=w.attr(r,\"title\")??w.attr(r,\"name\"),e.alt=w.attr(r,\"descr\")??e.title);for(let a of w.elements(t))switch(a.localName){case\"spPr\":this.parseDmlShapeProperties(a,e.cssStyle);break;case\"txbx\":case\"textBox\":o=!0;for(let s of w.elements(a,\"txbxContent\"))e.children.push(...this.parseBodyElements(s));break;case\"bodyPr\":i=a;break}return o&&(e.props={...e.props??{},...this.parseDmlTextBoxProperties(i)}),e}parseDmlShapeProperties(t,e){let r=w.element(t,\"xfrm\"),i=this.parseDmlShapeBounds(t),o=this.parseDmlRoundRectRadius(t,i.width,i.height);if(o!=null&&(e[\"border-radius\"]=o),r)for(let c of w.elements(r))c.localName===\"ext\"&&(e.width=w.lengthAttr(c,\"cx\",$t.Emu),e.height=w.lengthAttr(c,\"cy\",$t.Emu));let a=w.element(t,\"solidFill\"),s=w.element(t,\"noFill\"),l=w.element(t,\"ln\");if(a?e[\"background-color\"]=this.parseDmlColor(a)??e[\"background-color\"]:s&&(e[\"background-color\"]=\"transparent\"),l&&w.element(l,\"noFill\"))e.border=\"none\";else if(l){let c=this.parseDmlColor(w.element(l,\"solidFill\"))??\"black\",h=w.lengthAttr(l,\"w\",$t.Emu)??\"1px\",u=w.elementAttr(l,\"prstDash\",\"val\"),f=u&&u!=\"solid\"?\"dashed\":\"solid\";e.border=`${h} ${f} ${c}`}}parseDmlColor(t){if(!t)return null;let e=w.element(t,\"srgbClr\"),r=w.element(t,\"schemeClr\"),i=w.element(t,\"prstClr\"),o=w.element(t,\"sysClr\");if(e)return this.applyDmlColorTransforms(e,`#${w.attr(e,\"val\")}`);if(r){let a=this.resolveDmlSchemeColor(w.attr(r,\"val\")),s=this.dmlSchemeColorFallback(a);return this.applyDmlColorTransforms(r,`var(--docx-${a}-color${s?`, ${s}`:\"\"})`)}return o?this.applyDmlColorTransforms(o,`#${w.attr(o,\"lastClr\")??w.attr(o,\"val\")}`):i?this.applyDmlColorTransforms(i,w.attr(i,\"val\")):null}resolveDmlSchemeColor(t){switch(t){case\"bg1\":return\"lt1\";case\"tx1\":return\"dk1\";case\"bg2\":return\"lt2\";case\"tx2\":return\"dk2\";default:return t}}dmlSchemeColorFallback(t){return ql(t)}applyDmlColorTransforms(t,e){let r=w.elementAttr(t,\"lumMod\",\"val\"),i=w.elementAttr(t,\"lumOff\",\"val\");if(r!=null){let o=Math.max(0,Math.min(100,parseFloat(r)/1e3));Number.isFinite(o)&&o<100&&(e=`color-mix(in srgb, ${e} ${o}%, black)`)}if(i!=null){let o=Math.max(0,Math.min(100,parseFloat(i)/1e3));Number.isFinite(o)&&o>0&&(e=`color-mix(in srgb, ${e} ${100-o}%, white)`)}return e}findDescendant(t,e){for(let r of w.elements(t)){if(r.localName==e)return r;let i=this.findDescendant(r,e);if(i)return i}return null}parsePicture(t){var e={type:A.Image,src:\"\",cssStyle:{}},r=w.element(t,\"blipFill\"),i=r?w.element(r,\"blip\"):null,o=r?w.element(r,\"srcRect\"):null;e.src=i?w.attr(i,\"embed\")??w.attr(i,\"link\"):\"\";let a=this.findDescendant(t,\"cNvPr\");a&&(e.title=w.attr(a,\"title\")??w.attr(a,\"name\"),e.alt=w.attr(a,\"descr\")??e.title),o&&(e.srcRect=[w.intAttr(o,\"l\",0)/1e5,w.intAttr(o,\"t\",0)/1e5,w.intAttr(o,\"r\",0)/1e5,w.intAttr(o,\"b\",0)/1e5]);var s=w.element(t,\"spPr\"),l=s?w.element(s,\"xfrm\"):null,c=[];if(e.cssStyle.display=\"block\",e.cssStyle.position=\"relative\",e.cssStyle[\"object-fit\"]=\"contain\",l){e.rotation=w.intAttr(l,\"rot\",0)/6e4,w.boolAttr(l,\"flipH\",!1)&&c.push(\"scaleX(-1)\"),w.boolAttr(l,\"flipV\",!1)&&c.push(\"scaleY(-1)\");for(var h of w.elements(l))h.localName===\"ext\"&&(e.cssStyle.width=w.lengthAttr(h,\"cx\",$t.Emu),e.cssStyle.height=w.lengthAttr(h,\"cy\",$t.Emu))}return c.length>0&&(e.cssStyle.transform=c.join(\" \")),e.cssStyle.width||(e.cssStyle.width=\"100%\"),e.cssStyle.height||(e.cssStyle.height=\"100%\"),e}parseTable(t){var e={type:A.Table,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tr\":e.children.push(this.parseTableRow(r));break;case\"tblGrid\":e.columns=this.parseTableColumns(r);break;case\"tblPr\":this.parseTableProperties(r,e);break}return e}parseTableColumns(t){var e=[];for(let r of w.elements(t))r.localName===\"gridCol\"&&e.push({width:w.lengthAttr(r,\"w\")});return e}parseTableProperties(t,e){e.cssStyle={},e.cellStyle={};let r=null;switch(this.parseDefaultProperties(t,e.cssStyle,e.cellStyle,o=>{switch(o.localName){case\"tblStyle\":e.styleName=w.attr(o,\"val\");break;case\"tblLook\":e.className=Yt.classNameOftblLook(o);break;case\"tblInd\":r=this.parseTableIndentation(o);break;case\"tblpPr\":this.parseTablePosition(o,e);break;case\"tblStyleColBandSize\":e.colBandSize=w.intAttr(o,\"val\");break;case\"tblStyleRowBandSize\":e.rowBandSize=w.intAttr(o,\"val\");break;case\"tblPrChange\":this.addFormatRevision(e,o,\"table-format\",t);break;case\"hidden\":w.boolAttr(o,\"val\",!0)&&(e.cssStyle.display=\"none\");break;default:return!1}return!0}),e.cssStyle[\"text-align\"]){case\"center\":delete e.cssStyle[\"text-align\"],e.cssStyle[\"margin-left\"]=\"auto\",e.cssStyle[\"margin-right\"]=\"auto\";break;case\"right\":delete e.cssStyle[\"text-align\"],e.cssStyle[\"margin-left\"]=\"auto\";break;default:delete e.cssStyle[\"text-align\"],r&&(e.cssStyle[\"margin-inline-start\"]=Yt.addSize(e.cssStyle[\"margin-inline-start\"],r));break}}parseTableIndentation(t){let e=w.attr(t,\"type\");return e==\"pct\"||e==\"auto\"?null:w.lengthAttr(t,\"w\",$t.SignedDxa)}parseTablePosition(t,e){var r=w.lengthAttr(t,\"topFromText\"),i=w.lengthAttr(t,\"bottomFromText\"),o=w.lengthAttr(t,\"rightFromText\"),a=w.lengthAttr(t,\"leftFromText\");e.cssStyle.float=\"left\",e.cssStyle[\"margin-bottom\"]=Yt.addSize(e.cssStyle[\"margin-bottom\"],i),e.cssStyle[\"margin-left\"]=Yt.addSize(e.cssStyle[\"margin-left\"],a),e.cssStyle[\"margin-right\"]=Yt.addSize(e.cssStyle[\"margin-right\"],o),e.cssStyle[\"margin-top\"]=Yt.addSize(e.cssStyle[\"margin-top\"],r)}parseTableRow(t){var e={type:A.Row,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tc\":e.children.push(this.parseTableCell(r));break;case\"trPr\":case\"tblPrEx\":this.parseTableRowProperties(r,e);break}return e.children=this.normalizeHorizontalMerges(e.children),e}normalizeHorizontalMerges(t){let e=[];for(let r=0;r<t.length;r++){let i=t[r];if(i.horizontalMerge!=\"restart\"){e.push(i);continue}let o=i.span??1,a=r+1;for(;a<t.length&&t[a].horizontalMerge==\"continue\";)o+=t[a].span??1,a++;a>r+1&&(i.span=o,r=a-1),e.push(i)}return e}parseTableRowProperties(t,e){let r={};e.cssStyle=this.parseDefaultProperties(t,r,null,i=>{switch(i.localName){case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(i);break;case\"tblHeader\":e.isHeader=w.boolAttr(i,\"val\",!0);break;case\"gridBefore\":e.gridBefore=w.intAttr(i,\"val\");break;case\"gridAfter\":e.gridAfter=w.intAttr(i,\"val\");break;case\"cantSplit\":w.boolAttr(i,\"val\",!0)&&(r[\"break-inside\"]=\"avoid\");break;case\"hidden\":w.boolAttr(i,\"val\",!0)&&(r.display=\"none\");break;case\"ins\":this.addStructuralRevision(e,i,\"insert\");break;case\"del\":this.addStructuralRevision(e,i,\"delete\");break;case\"trPrChange\":this.addFormatRevision(e,i,\"row-format\",t);break;default:return!1}return!0})}parseTableCell(t){var e={type:A.Cell,children:[]};for(let r of w.elements(t))switch(r.localName){case\"tbl\":e.children.push(this.parseTable(r));break;case\"p\":e.children.push(this.parseParagraph(r));break;case\"tcPr\":this.parseTableCellProperties(r,e);break}return e}parseTableCellProperties(t,e){e.cssStyle=this.parseDefaultProperties(t,{},null,i=>{switch(i.localName){case\"gridSpan\":e.span=w.intAttr(i,\"val\",null);break;case\"hMerge\":e.horizontalMerge=w.attr(i,\"val\")??\"continue\";break;case\"vMerge\":e.verticalMerge=w.attr(i,\"val\")??\"continue\";break;case\"cnfStyle\":e.className=Yt.classNameOfCnfStyle(i);break;case\"tcPrChange\":this.addFormatRevision(e,i,\"cell-format\",t);break;default:return!1}return!0});let r=w.element(t,\"tcBorders\");if(r){let i={};for(let o of w.elements(r))(o.localName===\"tl2br\"||o.localName===\"tr2bl\")&&(i[o.localName]=Yt.valueOfBorder(o));Object.keys(i).length&&(e.props={...e.props,diagonalBorders:i})}this.parseTableCellVerticalText(t,e)}addStructuralRevision(t,e,r){t.props={...t.props??{},revision:this.revisionMetadata(e,r)}}addFormatRevision(t,e,r,i){let o=w.elements(e)[0],a=this.captureFormatProperties(o),s=this.captureFormatProperties(i),c=[...new Set([...Object.keys(a),...Object.keys(s)])].sort().filter(f=>a[f]!==s[f]).map(f=>({property:f,before:a[f],after:s[f]})),h={...this.revisionMetadata(e,r),formatChanges:c},u=[...t.props?.formatRevisions??[],h];t.props={...t.props??{},formatRevisions:u}}captureFormatProperties(t){let e={};if(!t)return e;for(let r of w.elements(t))/PrChange$/.test(r.localName)||(e[r.localName]=this.serializeFormatProperty(r));return e}serializeFormatProperty(t){let e=Array.from(t.attributes??[]).map(i=>[i.localName||i.name,i.value]).sort(([i],[o])=>i.localeCompare(o)).map(([i,o])=>`${i}=${o}`),r=w.elements(t).map(i=>`${i.localName}{${this.serializeFormatProperty(i)}}`);return[...e,...r].join(\"|\")||\"true\"}revisionMetadata(t,e){return{id:w.attr(t,\"id\"),author:w.attr(t,\"author\"),date:w.attr(t,\"date\"),kind:e}}parseTableCellVerticalText(t,e){let r={btLr:{writingMode:\"vertical-rl\",transform:\"rotate(180deg)\"},lrTb:{writingMode:\"vertical-lr\",transform:\"none\"},tbRl:{writingMode:\"vertical-rl\",transform:\"none\"}};for(let i of w.elements(t))if(i.localName===\"textDirection\"){let o=w.attr(i,\"val\"),a=r[o]||{writingMode:\"horizontal-tb\"};e.cssStyle[\"writing-mode\"]=a.writingMode,e.cssStyle.transform=a.transform}}parseDefaultProperties(t,e=null,r=null,i=null){e=e||{};let o=w.element(t,\"lang\"),a={latin:o?w.attr(o,\"val\"):\"\",eastAsia:o?w.attr(o,\"eastAsia\"):\"\",bidi:o?w.attr(o,\"bidi\"):\"\"};for(let s of w.elements(t))if(!i?.(s))switch(s.localName){case\"jc\":e[\"text-align\"]=Yt.valueOfJc(s);break;case\"textAlignment\":e[\"vertical-align\"]=Yt.valueOfTextAlignment(s);break;case\"autoSpaceDE\":case\"autoSpaceDN\":e[s.localName==\"autoSpaceDE\"?\"--docx-auto-space-de\":\"--docx-auto-space-dn\"]=`${w.boolAttr(s,\"val\",!0)}`;break;case\"color\":e.color=Dr.colorAttr(s,\"val\",null,Br.color);break;case\"sz\":e[\"font-size\"]=e[\"min-height\"]=w.lengthAttr(s,\"val\",$t.FontSize);break;case\"szCs\":e[\"font-size\"]??(e[\"font-size\"]=w.lengthAttr(s,\"val\",$t.FontSize)),e[\"min-height\"]??(e[\"min-height\"]=e[\"font-size\"]);break;case\"shd\":e[\"background-color\"]=Dr.colorAttr(s,\"fill\",null,Br.shd);break;case\"highlight\":e[\"background-color\"]=Dr.colorAttr(s,\"val\",null,Br.highlight);break;case\"vertAlign\":e[\"vertical-align\"]=Yt.valueOfVertAlign(s);break;case\"position\":e[\"vertical-align\"]=w.lengthAttr(s,\"val\",$t.SignedHalfPoint);break;case\"w\":case\"scale\":let l=w.intAttr(s,\"val\",100);Number.isFinite(l)&&l>0&&l<=600&&(e[\"--docx-text-scale\"]=`${l/100}`);break;case\"tcW\":if(this.options.ignoreWidth)break;case\"tblW\":e.width=Yt.valueOfSize(s,\"w\");break;case\"trHeight\":this.parseTrHeight(s,e);break;case\"strike\":e[\"text-decoration\"]=w.boolAttr(s,\"val\",!0)?\"line-through\":\"none\";break;case\"dstrike\":w.boolAttr(s,\"val\",!0)?(e[\"text-decoration-line\"]=\"line-through\",e[\"text-decoration-style\"]=\"double\"):e[\"text-decoration\"]=\"none\";break;case\"b\":e[\"font-weight\"]=w.boolAttr(s,\"val\",!0)?\"bold\":\"normal\";break;case\"i\":e[\"font-style\"]=w.boolAttr(s,\"val\",!0)?\"italic\":\"normal\";break;case\"bCs\":e[\"--docx-bidi-font-weight\"]=w.boolAttr(s,\"val\",!0)?\"bold\":\"normal\",e.direction==\"rtl\"&&(e[\"font-weight\"]=e[\"--docx-bidi-font-weight\"]);break;case\"iCs\":e[\"--docx-bidi-font-style\"]=w.boolAttr(s,\"val\",!0)?\"italic\":\"normal\",e.direction==\"rtl\"&&(e[\"font-style\"]=e[\"--docx-bidi-font-style\"]);break;case\"caps\":e[\"text-transform\"]=w.boolAttr(s,\"val\",!0)?\"uppercase\":\"none\";break;case\"smallCaps\":e[\"font-variant\"]=w.boolAttr(s,\"val\",!0)?\"small-caps\":\"none\";break;case\"rtl\":w.boolAttr(s,\"val\",!0)&&(e.direction=\"rtl\",e[\"unicode-bidi\"]=\"embed\",e[\"--docx-bidi-font-weight\"]&&(e[\"font-weight\"]=e[\"--docx-bidi-font-weight\"]),e[\"--docx-bidi-font-style\"]&&(e[\"font-style\"]=e[\"--docx-bidi-font-style\"]));break;case\"outline\":w.boolAttr(s,\"val\",!0)&&(e[\"-webkit-text-stroke\"]=\"0.5px currentColor\");break;case\"shadow\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"1px 1px 0 currentColor\");break;case\"emboss\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"-1px -1px 0 rgba(255,255,255,.75), 1px 1px 0 rgba(0,0,0,.35)\");break;case\"imprint\":w.boolAttr(s,\"val\",!0)&&(e[\"text-shadow\"]=\"1px 1px 0 rgba(255,255,255,.75), -1px -1px 0 rgba(0,0,0,.35)\");break;case\"em\":e[\"text-emphasis-style\"]=Yt.valueOfEmphasisMark(s);break;case\"u\":this.parseUnderline(s,e);break;case\"ind\":case\"tblInd\":this.parseIndentation(s,e);break;case\"rFonts\":this.parseFont(s,e,a);break;case\"tblBorders\":this.parseBorderProperties(s,r||e);break;case\"tblCellSpacing\":e[\"border-spacing\"]=Yt.valueOfMargin(s),e[\"border-collapse\"]=\"separate\";break;case\"pBdr\":this.parseBorderProperties(s,e);break;case\"bdr\":e.border=Yt.valueOfBorder(s);break;case\"tcBorders\":this.parseBorderProperties(s,e);break;case\"vanish\":w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"kern\":e[\"font-kerning\"]=w.intAttr(s,\"val\",0)>0?\"normal\":\"none\";break;case\"noWrap\":e[\"white-space\"]=w.boolAttr(s,\"val\",!0)?\"nowrap\":\"normal\";break;case\"snapToGrid\":e[\"--docx-snap-to-grid\"]=w.boolAttr(s,\"val\",!0)?\"1\":\"0\";break;case\"fitText\":this.parseFitText(s,e);break;case\"eastAsianLayout\":this.parseEastAsianLayout(s,e);break;case\"tblCellMar\":case\"tcMar\":this.parseMarginProperties(s,r||e);break;case\"tblLayout\":e[\"table-layout\"]=Yt.valueOfTblLayout(s);break;case\"vAlign\":e[\"vertical-align\"]=Yt.valueOfTextAlignment(s);break;case\"spacing\":t.localName==\"pPr\"?this.parseSpacing(s,e):t.localName==\"rPr\"&&(e[\"letter-spacing\"]=w.lengthAttr(s,\"val\",$t.SignedDxa));break;case\"wordWrap\":w.boolAttr(s,\"val\")&&(e[\"overflow-wrap\"]=\"break-word\");break;case\"suppressAutoHyphens\":e.hyphens=w.boolAttr(s,\"val\",!0)?\"none\":\"auto\";break;case\"lang\":e.$lang=w.attr(s,\"val\"),e[\"$lang-eastAsia\"]=w.attr(s,\"eastAsia\"),e[\"$lang-bidi\"]=w.attr(s,\"bidi\");break;case\"rtl\":case\"bidi\":w.boolAttr(s,\"val\",!0)&&(e.direction=\"rtl\");break;case\"pageBreakBefore\":w.boolAttr(s,\"val\",!0)&&(e[\"break-before\"]=\"page\");break;case\"keepLines\":w.boolAttr(s,\"val\",!0)&&(e[\"break-inside\"]=\"avoid\");break;case\"keepNext\":w.boolAttr(s,\"val\",!0)&&(e[\"break-after\"]=\"avoid\");break;case\"widowControl\":w.boolAttr(s,\"val\",!0)&&(e.orphans=\"2\",e.widows=\"2\");break;case\"webHidden\":this.options.hideWebHiddenContent&&w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"specVanish\":w.boolAttr(s,\"val\",!0)&&(e.display=\"none\");break;case\"tabs\":case\"outlineLvl\":case\"contextualSpacing\":case\"tblStyleColBandSize\":case\"tblStyleRowBandSize\":case\"suppressLineNumbers\":case\"noProof\":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${t.localName}.${s.localName}`);break}return e}parseFitText(t,e){let r=w.lengthAttr(t,\"val\");r&&(e.display=\"inline-block\",e.width=r,e[\"text-align\"]=\"justify\",e[\"text-align-last\"]=\"justify\")}parseEastAsianLayout(t,e){w.boolAttr(t,\"combine\",!1)&&(e[\"text-combine-upright\"]=\"all\"),w.boolAttr(t,\"vert\",!1)&&(e[\"writing-mode\"]=\"vertical-rl\"),w.boolAttr(t,\"vertCompress\",!1)&&(e[\"font-stretch\"]=\"condensed\")}parseUnderline(t,e){var r=w.attr(t,\"val\");if(r!=null){switch(r){case\"dash\":case\"dashDotDotHeavy\":case\"dashDotHeavy\":case\"dashedHeavy\":case\"dashLong\":case\"dashLongHeavy\":case\"dotDash\":case\"dotDotDash\":e[\"text-decoration\"]=\"underline dashed\";break;case\"dotted\":case\"dottedHeavy\":e[\"text-decoration\"]=\"underline dotted\";break;case\"double\":e[\"text-decoration\"]=\"underline double\";break;case\"single\":case\"thick\":e[\"text-decoration\"]=\"underline\";break;case\"wave\":case\"wavyDouble\":case\"wavyHeavy\":e[\"text-decoration\"]=\"underline wavy\";break;case\"words\":e[\"text-decoration\"]=\"underline\";break;case\"none\":e[\"text-decoration\"]=\"none\";break}var i=Dr.colorAttr(t,\"color\");i&&(e[\"text-decoration-color\"]=i)}}parseFont(t,e,r={}){var i=w.attr(t,\"ascii\"),o=w.attr(t,\"hAnsi\"),a=w.attr(t,\"eastAsia\"),s=w.attr(t,\"cs\"),l=Yt.themeValue(t,\"asciiTheme\"),c=Yt.themeValue(t,\"hAnsiTheme\"),h=this.scriptThemeFontValue(Yt.themeValue(t,\"eastAsiaTheme\"),r.eastAsia),u=this.scriptThemeFontValue(Yt.themeValue(t,\"cstheme\")??Yt.themeValue(t,\"csTheme\"),r.bidi);let f=Ei(r.eastAsia),d=(g,b=\"\")=>Pd(g)?jo(g,b):[br(g)];var p=[i,o].filter(g=>g).flatMap(g=>d(g,f));p.push(...[l,c].filter(g=>g).map(g=>g.startsWith(\"var(\")?g:br(g)));let m=p.slice();if(a&&p.push(...jo(a,f)),h&&p.push(h.startsWith(\"var(\")?h:br(h)),s&&p.push(...d(s,Ei(r.bidi))),u&&p.push(u.startsWith(\"var(\")?u:br(u)),p.length>0){let g=(e[\"font-family\"]??\"\").split(\",\").map(b=>b.trim()).filter(b=>b);e[\"font-family\"]=[...new Set([...g,...p])].join(\", \"),m.length&&(e[\"--docx-latin-font-family\"]=[...new Set(m)].join(\", \")),e[\"--docx-partial-eastasia-font\"]=!m.length&&(a||h)&&!s&&!u?\"true\":\"false\"}}scriptThemeFontValue(t,e){if(!t)return t;let r=Ei(e),i=/^var\\((--docx-(?:major|minor)(?:EastAsia|Bidi|Cs)-font)\\)$/.exec(t);return!r||!i?t:`var(${i[1]}-${r}, ${t})`}parseIndentation(t,e){var r=w.lengthAttr(t,\"firstLine\"),i=w.lengthAttr(t,\"hanging\"),o=w.lengthAttr(t,\"left\"),a=w.lengthAttr(t,\"start\"),s=w.lengthAttr(t,\"right\"),l=w.lengthAttr(t,\"end\");r&&(e[\"text-indent\"]=r,e[\"--docx-text-indent\"]=r),i&&(e[\"text-indent\"]=`-${i}`,e[\"--docx-text-indent\"]=`-${i}`,e[\"--docx-hanging-indent\"]=i),(o||a)&&(e[\"margin-inline-start\"]=o||a,e[\"--docx-margin-inline-start\"]=o||a),(s||l)&&(e[\"margin-inline-end\"]=s||l,e[\"--docx-margin-inline-end\"]=s||l)}parseSpacing(t,e){var r=w.lengthAttr(t,\"before\"),i=w.lengthAttr(t,\"after\"),o=w.intAttr(t,\"beforeLines\",null),a=w.intAttr(t,\"afterLines\",null),s=w.boolAttr(t,\"beforeAutospacing\",!1),l=w.boolAttr(t,\"afterAutospacing\",!1),c=w.intAttr(t,\"line\",null),h=w.attr(t,\"lineRule\");if(s?e[\"margin-top\"]=\"auto\":Number.isFinite(o)&&o>=0?e[\"margin-top\"]=`${(o/100).toFixed(2)}em`:r&&(e[\"margin-top\"]=r),l?e[\"margin-bottom\"]=\"auto\":Number.isFinite(a)&&a>=0?e[\"margin-bottom\"]=`${(a/100).toFixed(2)}em`:i&&(e[\"margin-bottom\"]=i),c!==null)switch(h??\"auto\"){case\"auto\":e[\"line-height\"]=`${(c/240).toFixed(2)}`;break;case\"atLeast\":e[\"line-height\"]=`max(1.2em, ${(c/20).toFixed(2)}pt)`,e[\"min-height\"]=`max(1.2em, ${(c/20).toFixed(2)}pt)`;break;case\"exact\":case\"exactly\":e[\"line-height\"]=e[\"min-height\"]=`${(c/20).toFixed(2)}pt`;break;default:e[\"line-height\"]=`${(c/240).toFixed(2)}`;break}}parseMarginProperties(t,e){for(let r of w.elements(t))switch(r.localName){case\"left\":case\"start\":e[\"padding-left\"]=Yt.valueOfMargin(r);break;case\"right\":case\"end\":e[\"padding-right\"]=Yt.valueOfMargin(r);break;case\"top\":e[\"padding-top\"]=Yt.valueOfMargin(r);break;case\"bottom\":e[\"padding-bottom\"]=Yt.valueOfMargin(r);break}}parseTrHeight(t,e){w.attr(t,\"hRule\"),e.height=w.lengthAttr(t,\"val\")}parseBorderProperties(t,e){for(let r of w.elements(t)){let i=Yt.valueOfBorder(r);switch(r.localName){case\"start\":case\"left\":e[\"border-left\"]=i;break;case\"end\":case\"right\":e[\"border-right\"]=i;break;case\"top\":e[\"border-top\"]=i;break;case\"bottom\":e[\"border-bottom\"]=i;break;case\"insideH\":e[\"border-top\"]??(e[\"border-top\"]=i),e[\"border-bottom\"]??(e[\"border-bottom\"]=i);break;case\"insideV\":e[\"border-left\"]??(e[\"border-left\"]=i),e[\"border-right\"]??(e[\"border-right\"]=i);break}}}},Tp=[\"black\",\"blue\",\"cyan\",\"darkBlue\",\"darkCyan\",\"darkGray\",\"darkGreen\",\"darkMagenta\",\"darkRed\",\"darkYellow\",\"green\",\"lightGray\",\"magenta\",\"none\",\"red\",\"white\",\"yellow\"],Sp={dark1:\"dk1\",light1:\"lt1\",dark2:\"dk2\",light2:\"lt2\",text1:\"dk1\",background1:\"lt1\",text2:\"dk2\",background2:\"lt2\",hyperlink:\"hlink\",followedHyperlink:\"folHlink\"};function Ep(n){return Sp[n]??n}function ql(n){switch(n){case\"dk1\":return\"#000000\";case\"lt1\":return\"#FFFFFF\";case\"dk2\":return\"#44546A\";case\"lt2\":return\"#E7E6E6\";case\"accent1\":return\"#4472C4\";case\"accent2\":return\"#ED7D31\";case\"accent3\":return\"#A5A5A5\";case\"accent4\":return\"#FFC000\";case\"accent5\":return\"#5B9BD5\";case\"accent6\":return\"#70AD47\";case\"hlink\":return\"#0563C1\";case\"folHlink\":return\"#954F72\";default:return null}}var Dr=class{static colorAttr(t,e,r=null,i=Br.color){var o=w.attr(t,e);if(o)return o==\"auto\"?i:Tp.includes(o)?o:`#${o}`;var a=w.attr(t,\"themeColor\");if(a){let s=Ep(a),l=ql(s);return`var(--docx-${s}-color${l?`, ${l}`:\"\"})`}return r}},Yt=class n{static themeValue(t,e){var r=w.attr(t,e);return r?`var(--docx-${r}-font)`:null}static valueOfSize(t,e){var r=$t.Dxa;switch(w.attr(t,\"type\")){case\"dxa\":break;case\"pct\":r=$t.Percent;break;case\"auto\":return\"auto\"}return w.lengthAttr(t,e,r)}static valueOfMargin(t){return w.lengthAttr(t,\"w\")}static valueOfBorder(t){var e=n.parseBorderType(w.attr(t,\"val\"));if(e==\"none\")return\"none\";var r=Dr.colorAttr(t,\"color\",Br.borderColor,Br.borderColor),i=w.lengthAttr(t,\"sz\",$t.Border)??\"1pt\";return`${i} ${e} ${r==\"auto\"?Br.borderColor:r}`}static parseBorderType(t){switch(t){case\"single\":return\"solid\";case\"dashDotStroked\":return\"solid\";case\"dashed\":return\"dashed\";case\"dashSmallGap\":return\"dashed\";case\"dotDash\":return\"dotted\";case\"dotDotDash\":return\"dotted\";case\"dotted\":return\"dotted\";case\"double\":return\"double\";case\"doubleWave\":return\"double\";case\"inset\":return\"inset\";case\"nil\":return\"none\";case\"none\":return\"none\";case\"outset\":return\"outset\";case\"thick\":return\"solid\";case\"thickThinLargeGap\":return\"solid\";case\"thickThinMediumGap\":return\"solid\";case\"thickThinSmallGap\":return\"solid\";case\"thinThickLargeGap\":return\"solid\";case\"thinThickMediumGap\":return\"solid\";case\"thinThickSmallGap\":return\"solid\";case\"thinThickThinLargeGap\":return\"solid\";case\"thinThickThinMediumGap\":return\"solid\";case\"thinThickThinSmallGap\":return\"solid\";case\"threeDEmboss\":return\"solid\";case\"threeDEngrave\":return\"solid\";case\"triple\":return\"double\";case\"wave\":return\"solid\"}return\"solid\"}static valueOfTblLayout(t){var e=w.attr(t,\"type\")??w.attr(t,\"val\");return e==\"fixed\"?\"fixed\":\"auto\"}static classNameOfCnfStyle(t){let e=w.attr(t,\"val\");return[\"first-row\",\"last-row\",\"first-col\",\"last-col\",\"odd-col\",\"even-col\",\"odd-row\",\"even-row\",\"ne-cell\",\"nw-cell\",\"se-cell\",\"sw-cell\"].filter((i,o)=>e[o]==\"1\").join(\" \")}static valueOfJc(t){var e=w.attr(t,\"val\");switch(e){case\"start\":case\"left\":return\"left\";case\"center\":return\"center\";case\"end\":case\"right\":return\"right\";case\"both\":return\"justify\"}return e}static valueOfVertAlign(t,e=!1){var r=w.attr(t,\"val\");switch(r){case\"subscript\":return\"sub\";case\"superscript\":return e?\"sup\":\"super\"}return e?null:r}static valueOfEmphasisMark(t){var e=w.attr(t,\"val\");switch(e){case\"none\":return\"none\";case\"comma\":return'\"\\uFE50\"';case\"circle\":return\"circle\";default:return\"dot\"}}static valueOfTextAlignment(t){var e=w.attr(t,\"val\");switch(e){case\"auto\":case\"baseline\":return\"baseline\";case\"top\":return\"top\";case\"center\":return\"middle\";case\"bottom\":return\"bottom\"}return e}static addSize(t,e){return!t||t==\"0.00pt\"||t==\"0px\"?e:!e||e==\"0.00pt\"||e==\"0px\"?t:`calc(${t} + ${e})`}static classNameOftblLook(t){let e=w.hexAttr(t,\"val\",0),r=\"\";return(w.boolAttr(t,\"firstRow\")||e&32)&&(r+=\" first-row\"),(w.boolAttr(t,\"lastRow\")||e&64)&&(r+=\" last-row\"),(w.boolAttr(t,\"firstColumn\")||e&128)&&(r+=\" first-col\"),(w.boolAttr(t,\"lastColumn\")||e&256)&&(r+=\" last-col\"),(w.boolAttr(t,\"noHBand\")||e&512)&&(r+=\" no-hband\"),(w.boolAttr(t,\"noVBand\")||e&1024)&&(r+=\" no-vband\"),r.trim()}};var kp={33:33,34:8704,35:35,36:8707,37:37,38:38,39:8715,40:40,41:41,42:8727,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:8764,160:8364,161:978,162:8242,163:8804,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:9001,229:8721,241:9002,242:8747,243:8992,245:8993};function Ap(n,t){let e=String.fromCharCode(t);if((n??\"\").trim().replace(/^([\"'])(.*)\\1$/,\"$2\").trim().toLowerCase()!==\"symbol\")return{text:e,normalized:!1};let i=t>=61440&&t<=61695?t-61440:t,o=i>=0&&i<=255?kp[i]:void 0,a=o===void 0?e:String.fromCharCode(o);return{text:a,normalized:a!==e}}var Ta=class{constructor(t,e,r){this.className=t,this.createLayer=e,this.layoutContent=r,this.records=new Map,this.bindingRoot=null,this.binding=null,this.root=e(),this.root.dataset.docxCommentLayer=\"true\"}add(t){this.records.set(t.key,t),this.root.appendChild(t.popup)}references(t,e){return Array.from(t.querySelectorAll(\"[data-docx-comment-reference]\")).filter(r=>r.dataset.docxCommentReference===e.key)}place(t,e){let r=e.ownerDocument?.defaultView;if(!r||!e.isConnected||!this.root.isConnected)return;let i=this.root,o=i.getBoundingClientRect(),a=e.getBoundingClientRect(),s=t.references.find(T=>!T.closest(\"a\"))??t.references[0]??e,l=s.getBoundingClientRect(),c=parseFloat(r.getComputedStyle(i).width),h=c>0?o.width/c:0;if(!(h>0)||!Number.isFinite(h)||!a.width||!a.height||!l.width||!l.height)return;t.positionedReference!==s&&t.positionedReference&&delete t.positionedReference.dataset.docxCommentPositioned,t.positionedReference=s,t.reference=e;let u=(a.left-o.left)/h,f=(a.top-o.top)/h,d=(l.left-o.left)/h,p=(l.top-o.top)/h,m=l.width/h,g=s.closest(\"a\");if(g){let T=g.getBoundingClientRect(),S=s.closest(\"section\")??i,I=S.getBoundingClientRect(),O=r.getComputedStyle(S),$=(I.left-o.left)/h,k=(I.right-o.left)/h,W=(T.left-o.left)/h,U=(T.right-o.left)/h,v=4;d=[$+(parseFloat(O.paddingLeft)||0)-m-v,k-(parseFloat(O.paddingRight)||0)+v,$-m-v,k+v].find(y=>y>=0&&y+m<=c&&(y+m<=W-v||y>=U+v))??Math.max(c,U)+v}t.popup.style.position=\"absolute\",t.popup.style.left=`${d}px`,t.popup.style.top=`${p}px`;let b=r.getComputedStyle(s);if(t.summary.style.fontSize=b.fontSize,t.summary.style.fontFamily=b.fontFamily,t.summary.style.lineHeight=b.lineHeight,t.summary.style.width=`${m}px`,t.summary.style.height=`${l.height/h}px`,g?delete s.dataset.docxCommentPositioned:s.dataset.docxCommentPositioned=\"true\",t.popup.open){let T=t.body.getBoundingClientRect().width/h,S=Math.min(0,Math.max(-u,c-u-T));t.body.style.left=`${u-d+S}px`,t.body.style.maxWidth=`${Math.max(0,c)}px`;let I=o.height/h,O=Math.max(0,Math.min(I-f-a.height/h,(r.innerHeight-a.bottom)/h)),$=Math.max(0,Math.min(f,a.top/h)),k=O<120&&$>O;t.body.style.top=k?\"auto\":`${f-p+a.height/h}px`,t.body.style.bottom=k?`${p+l.height/h-f}px`:\"auto\",t.body.style.maxHeight=`${Math.max(1,k?$:O)}px`}}close(t){delete t.restoringOpen,t.revision++,t.opening?.abort(),t.opening=null,t.open=!1,t.popup.open=!1,t.references.forEach(e=>e.setAttribute(\"aria-expanded\",\"false\"))}activate(t,e,r,i=!1){if(!r.generation.isCurrent()||!e.isConnected)return Promise.resolve();delete t.restoringOpen,t.reference=e;let o=t.open;if(t.open=!0,t.popup.open=!0,t.references.forEach(h=>h.setAttribute(\"aria-expanded\",\"true\")),this.place(t,e),o&&!i)return t.layout??Promise.resolve();t.opening?.abort();let a=t.opening=new AbortController,s=++t.revision,l=()=>a.abort();r.generation.signal.addEventListener(\"abort\",l,{once:!0});let c={signal:a.signal,cancel:l,isCurrent:()=>!a.signal.aborted&&r.generation.isCurrent()&&t.revision===s&&t.popup.open&&t.reference.isConnected};return t.body.dataset.docxCommentLayout=\"pending\",t.layout=Un(t.body,[],c).then(()=>{c.isCurrent()&&(this.layoutContent(t.body),this.place(t,t.reference),t.body.dataset.docxCommentLayout=\"ready\")}).catch(h=>{t.revision===s&&(t.body.dataset.docxCommentLayout=h?.name===\"AbortError\"?\"cancelled\":\"failed\")}).finally(()=>r.generation.signal.removeEventListener(\"abort\",l)),t.layout}async bind(t,e){if(!t.isConnected||!e.isCurrent()||typeof t.addEventListener!=\"function\")return;let r=this.binding;if(r&&r.generation.signal===e.signal&&(this.bindingRoot===t||this.bindingRoot.contains(t))){r.generation=e,await this.sync(this.bindingRoot,r,!0);return}r&&r.dispose(r.generation.isCurrent()&&t.isConnected),r=null;let i=[],o=(T,S,I,O=!1)=>{T.addEventListener(S,I,O),i.push(()=>T.removeEventListener(S,I,O))},a=Array.from(this.records.values()).find(T=>T.popup.open)??null,s=null,l=!1,c=!1,h=()=>{let S=t.getRootNode().activeElement??t.ownerDocument.activeElement;for(;S?.shadowRoot?.activeElement;)S=S.shadowRoot.activeElement;return S},u=T=>{let S=T.reference.hasAttribute(\"tabindex\")?T.reference:T.summary;l=!0,S.focus(),l=!1},f=T=>T&&T.nodeType===1?T:null,d=T=>{let S=f(T)?.closest(\"[data-docx-comment-reference], [data-docx-comment-popup]\");return S?this.records.get(S.dataset.docxCommentReference??S.dataset.docxCommentPopup):null},p=(T,S)=>{let I=S;return!!I&&(T.popup.contains(I)||T.references.some(O=>O.contains(I)))},m=(T=a)=>{T&&this.close(T),a===T&&(a=null)};r={generation:e,dispose:(T=!1)=>{i.splice(0).forEach(S=>S());for(let S of this.records.values())T||this.close(S),S.positionedReference&&delete S.positionedReference.dataset.docxCommentPositioned,delete S.positionedReference;this.binding===r&&(this.binding=null,this.bindingRoot=null),(!t.isConnected||!r.generation.isCurrent())&&this.root.remove()}},this.binding=r,this.bindingRoot=t;let g=(T,S)=>{if(c)return;a&&a!==T&&this.close(a),a=T;let I=f(S),O=I?.closest(\"[data-docx-comment-reference]\")??(T.summary.contains(I)?T.positionedReference:null)??T.reference;this.activate(T,O,r)};o(t,\"mouseover\",T=>{let S=d(T.target);if(S){if(a&&a!==S&&p(a,h()))return;s=S,g(S,T.target)}}),o(t,\"mouseout\",T=>{let S=T.relatedTarget;a&&!p(a,S)&&(s=null,p(a,h())||m())}),o(t,\"focusin\",T=>{let S=d(T.target);!l&&S&&f(T.target)?.dataset.docxCommentReference&&g(S,T.target)}),o(t,\"focusout\",T=>{a&&s!==a&&!p(a,T.relatedTarget)&&m()}),o(t,\"click\",T=>{let S=f(T.target)?.closest(\"[data-docx-comment-reference]\"),I=S&&this.records.get(S.dataset.docxCommentReference);I&&(T.preventDefault(),T.stopPropagation(),I.popup.open?m(I):g(I,S))}),o(t,\"keydown\",T=>{let S=T,I=d(T.target);if(!I)return;let O=f(T.target)?.closest(\"[data-docx-comment-reference]\");if(O&&(S.key===\"Enter\"||S.key===\" \"))T.preventDefault(),T.stopPropagation(),I.popup.open?m(I):g(I,O);else if(S.key===\"Escape\")T.preventDefault(),T.stopPropagation(),m(I),u(I);else if(S.key===\"Tab\"&&I.popup.open){let $=Array.from(I.body.querySelectorAll(\"a[href], button, input, select, textarea, [tabindex]\")).filter(k=>k.tabIndex>=0&&!k.disabled);O&&!S.shiftKey&&$.length?(T.preventDefault(),$[0].focus()):S.shiftKey&&T.target===$[0]?(T.preventDefault(),u(I)):!S.shiftKey&&T.target===$[$.length-1]&&(u(I),m(I))}}),o(t,\"toggle\",T=>{let S=d(T.target);if(!(!S||T.target!==S.popup||c)){if(S.restoringOpen!==void 0){let I=S.restoringOpen;if(delete S.restoringOpen,S.popup.open===I)return}S.popup.open&&!S.open?g(S,S.reference):!S.popup.open&&S.open&&(this.close(S),a===S&&(a=null))}},!0);let b=t.ownerDocument.defaultView;if(b){let T=()=>{!c&&r.generation.isCurrent()&&this.sync(t,r,!0)};o(b,\"resize\",T),o(b,\"scroll\",T,!0);let S=new Map;o(b,\"beforeprint\",()=>{if(!(c||!r.generation.isCurrent())){c=!0;for(let O of this.records.values())S.set(O,O.popup.open),O.popup.open=!0,this.layoutContent(O.body)}}),o(b,\"afterprint\",()=>{if(c){for(let[O,$]of S)O.restoringOpen=$,$||O.opening?.abort(),O.open=$,O.popup.open=$,O.references.forEach(k=>k.setAttribute(\"aria-expanded\",`${$}`));S.clear(),c=!1,this.sync(t,r,!0)}});let I=b.MutationObserver;if(I){let O=new I(()=>{(!t.isConnected||!r.generation.isCurrent())&&r.dispose()});O.observe(t.ownerDocument.documentElement,{childList:!0,subtree:!0});for(let $=t.getRootNode();$&&$!==t.ownerDocument;$=$.host?.getRootNode())O.observe($,{childList:!0,subtree:!0});i.push(()=>O.disconnect())}}o(e.signal,\"abort\",()=>r.dispose()),await this.sync(t,r,!0)}async sync(t,e,r=!1){let i=[];for(let o of this.records.values()){let a=this.references(t,o);if(!a.length)continue;o.references=a;let s=a.includes(o.reference)?o.reference:a[0];this.place(o,s),e&&o.popup.open&&r?i.push(this.activate(o,s,e,!0)):o.layout&&i.push(o.layout)}await Promise.all(i)}},Do={pos:0,leader:\"none\",style:\"left\"},Cp=50,ki=.1;function Np(n=document.body){let t=document.createElement(\"div\");t.style.width=\"100pt\",n.appendChild(t);let e=100/t.offsetWidth;return n.removeChild(t),e}function Rp(n,t,e,r=72/96){let i=n.closest(\"p\");if(!i)return;let o=n.getBoundingClientRect(),a=i.getBoundingClientRect(),s=getComputedStyle(i);if(s.direction==\"rtl\"||s.writingMode&&s.writingMode!=\"horizontal-tb\")return;let l=gr(s.marginInlineStart||s.marginLeft),c=gr(s.marginInlineEnd||s.marginRight),h=gr(s.textIndent),u=t?.length>0?t.map(k=>({pos:Bo(k.position),leader:k.leader,style:k.style})).sort((k,W)=>k.pos-W.pos):[Do],f=l*r,d=u.some(k=>Math.abs(k.pos-f)<=ki);h<-ki&&f>ki&&!d&&(u.push({...Do,pos:f}),u.sort((k,W)=>k.pos-W.pos));let p=u[u.length-1],m=(a.width+l+c)*r,g=Number.isFinite(Bo(e))?Bo(e):36,b=p.pos+g;if(b<m)for(;b<m&&u.length<Cp;b+=g)u.push({...Do,pos:b});let T=a.left-l,S=(o.left-T)*r,I=u.find(k=>k.style!=\"clear\"&&k.pos>S);if(I==null||![\"left\",\"right\",\"center\"].includes(I.style||\"left\"))return;let O=1;if(I.style==\"right\"||I.style==\"center\"){let k=Array.from(i.querySelectorAll(`.${n.className}`)),W=k.indexOf(n)+1,U=document.createRange();U.setStart(n,1),W<k.length?U.setEndBefore(k[W]):U.setEnd(i,i.childNodes.length);let v=I.style==\"center\"?.5:1,_=U.getBoundingClientRect(),y=_.left+v*_.width-T;O=I.pos-y*r}else O=I.pos-S;let $=Math.max(Number.isFinite(O)?O:0,0);switch(n.textContent!==\"\\xA0\"&&(n.textContent=\"\\xA0\"),n.style.display=\"inline-block\",n.style.width=`${$.toFixed(2)}pt`,n.style.minWidth=\"0pt\",n.style.lineHeight=\"1\",n.style.whiteSpace=\"nowrap\",n.style.wordSpacing=\"normal\",n.style.textDecoration=\"none\",n.style.borderBottom=\"\",n.style.height=\"\",n.style.transform=\"\",I.leader){case\"dot\":case\"middleDot\":n.style.borderBottom=\"1px dotted currentColor\",n.style.height=\".85em\",n.style.transform=\"translateY(-.18em)\";break;case\"hyphen\":case\"heavy\":case\"underscore\":n.style.borderBottom=\"1px solid currentColor\",n.style.height=\".85em\",n.style.transform=\"translateY(-.18em)\";break}}function gr(n){let t=parseFloat(n);return Number.isFinite(t)?t:0}function Bo(n){return parseFloat(n)}function Ba(n){let t=/^\\s*([-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+))(pt|px|pc|in|cm|mm)?\\s*$/i.exec(n??\"\");if(!t)return null;let e={pt:1,px:.75,pc:12,in:72,cm:72/2.54,mm:72/25.4}[t[2]?.toLowerCase()??\"pt\"],r=Number(t[1])*e;return Number.isFinite(r)?r:null}function Pp(n,t){let e=n.dataset.docxTabLayout==\"explicit\",r=e?n.dataset.docxTabFallbackWidth??\"\":n.style.width,i=e?n.dataset.docxTabFallbackMinWidth??\"\":n.style.minWidth??\"\",o=n.style.display,a=()=>(e&&(n.style.width=r,n.style.minWidth=i),n.style.display=o,!1),s=n.closest(\"p\"),l=n.ownerDocument?.defaultView;if(!s||!l||!n.isConnected)return a();let c=l.getComputedStyle(s);if(c.direction==\"rtl\"||c.writingMode&&c.writingMode!=\"horizontal-tb\")return a();let h=t.filter(W=>W.style!=\"clear\").map(W=>({...W,point:Ba(W.position)}));if(!h.length||h.some(W=>W.point==null))return a();h.sort((W,U)=>W.point-U.point);let u=n.style.width;n.style.display=\"inline-block\",n.style.width=\"0pt\";let f=n.getBoundingClientRect(),d=s.getBoundingClientRect(),p=gr(c.width)+(c.boxSizing==\"border-box\"?0:gr(c.paddingLeft)+gr(c.paddingRight)+gr(c.borderLeftWidth)+gr(c.borderRightWidth)),m=p>0?d.width/p:0;if(!(m>0)||!Number.isFinite(m))return n.style.width=u,a();let g=d.left/m-gr(c.marginLeft),b=(f.left/m-g)*.75,T=h.find(W=>W.point>b+ki);if(!T||![\"left\",\"right\",\"center\"].includes(T.style||\"left\")||T.leader&&T.leader!=\"none\")return n.style.width=u,a();let S=W=>{for(;W&&W!=s;){if(W.nextSibling)return W.nextSibling;W=W.parentNode}return null},I=null;for(let W=S(n);W;){if(W.nodeType==1){let U=W;if(U.tagName==\"BR\"||U.tagName==\"P\"||U.dataset.docxTab==\"true\"||U.dataset.docxDrawing==\"true\"){I=U;break}}W=W.firstChild??S(W)}let O=0;if(T.style==\"right\"||T.style==\"center\"){let W=n.ownerDocument.createRange();if(W.setStartAfter(n),I?W.setEndBefore(I):W.setEnd(s,s.childNodes.length),O=W.getBoundingClientRect().width/m*.75,!Number.isFinite(O))return n.style.width=u,a()}let $=T.style==\"right\"?1:T.style==\"center\"?.5:0,k=Math.max(0,T.point-b-$*O);return n.textContent!==\"\\xA0\"&&(n.textContent=\"\\xA0\"),n.style.width=`${k.toFixed(2)}pt`,n.style.minWidth=\"0pt\",n.style.lineHeight=\"1\",n.style.whiteSpace=\"nowrap\",n.style.wordSpacing=\"normal\",n.dataset.docxTabLayout=\"explicit\",n.dataset.docxTabFallbackWidth=r,n.dataset.docxTabFallbackMinWidth=i,!0}function Ip(n,t,e){if(!t||![t.start,t.size,e].every(Number.isFinite))return null;if(n.alignSpecified)return n.align==\"center\"?t.start+(t.size-e)/2:n.align==\"right\"||n.align==\"bottom\"?t.start+t.size-e:n.align==\"left\"||n.align==\"top\"?t.start:null;let r=Ba(n.offset??\"0pt\");return r==null?null:t.start+r*4/3}var oe=n=>Number.parseFloat(n)||0;function Op(n,t,e){let r=n.ownerDocument?.defaultView,i=n.closest(\"p\"),o=n.closest(\"[data-docx-comment-story]\")??n.closest(`section.${e}`);if(!r||!i||!o||!n.isConnected||i.closest(\"foreignObject\"))return;let a=r.getComputedStyle(i);if(a.direction==\"rtl\"||a.writingMode&&a.writingMode!=\"horizontal-tb\")return;let s=r.getComputedStyle(o),l=o.getBoundingClientRect(),c=oe(s.width)+(s.boxSizing==\"border-box\"?0:oe(s.paddingLeft)+oe(s.paddingRight)+oe(s.borderLeftWidth)+oe(s.borderRightWidth)),h=c>0?l.width/c:0;if(!(h>0)||!Number.isFinite(h))return;let u=(et,B=!1)=>{let z=et.getBoundingClientRect(),st=r.getComputedStyle(et),dt=B?oe(st.borderLeftWidth)+oe(st.paddingLeft):0,ft=B?oe(st.borderTopWidth)+oe(st.paddingTop):0,Ft=B?oe(st.borderRightWidth)+oe(st.paddingRight):0,Xt=B?oe(st.borderBottomWidth)+oe(st.paddingBottom):0;return{x:{start:z.left/h+dt,size:z.width/h-dt-Ft},y:{start:z.top/h+ft,size:z.height/h-ft-Xt}}},f=u(o),d=u(o,!0),p=u(i);if(p.x.size<=0||p.y.size<=0)return;let m=i.closest(\"article, header, footer\");if(!m)return;let g=u(m,!0),b=r.getComputedStyle(m),T=n.previousElementSibling,S=T?.dataset.docxAnchorMarker==\"true\"?u(T):null,I=T?.querySelector?.('[data-docx-anchor-line=\"top\"]'),O=T?.querySelector?.('[data-docx-anchor-line=\"bottom\"]'),$=I?u(I).y.start:null,k=O?u(O).y.start:null,W=$!=null&&k!=null&&k>$?{start:$,size:k-$}:null,U={...g.x},v=oe(b.columnCount),_=oe(b.columnWidth);if(v>1||_>0){let et=b.columnGap==\"normal\"?oe(b.fontSize):oe(b.columnGap),B=_>0?Math.max(1,Math.floor((U.size+et)/(_+et))):v,z=v>0?Math.min(v,B):B,st=(U.size+et)/z;if(!(st>0))return;let dt=S?.x.start??p.x.start-oe(a.marginLeft),ft=Math.max(0,Math.min(z-1,Math.floor((dt-U.start+.1)/st)));U.start+=ft*st,U.size=st-et}let y=t.layoutInCell!==!1?i.closest(\"td, th\"):null,H=y?u(y,!0):null,nt=(et,B)=>H&&[\"page\",\"margin\",\"column\",\"cell\"].includes(B)?H[et]:B==\"page\"?f[et]:B==\"margin\"?d[et]:B==\"column\"?et==\"x\"?U:g.y:B==\"paragraph\"?p[et]:B==\"character\"?S?.[et]:B==\"line\"?et==\"y\"?W:S?.x:B==\"cell\"&&y?u(y,!0)[et]:null,J=r.getComputedStyle(n),lt={x:oe(J.width),y:oe(J.height)},ot={x:p.x.start+oe(a.borderLeftWidth),y:p.y.start+oe(a.borderTopWidth)};for(let[et,B]of[[\"x\",t.horizontal],[\"y\",t.vertical]]){let z=nt(et,B.relative),st=Ip(B,z,lt[et]),dt=Ba(B.offset??\"0pt\");if(st==null||dt==null)continue;let ft=st-ot[et]-dt*4/3;n.style.setProperty(`--docx-anchor-origin-${et}`,`${(Math.abs(ft)<5e-5?0:ft).toFixed(4)}px`)}}function Lp(n,t,e=r=>r){let r=[\"tl2br\",\"tr2bl\"].filter(l=>t?.[l]&&t[l]!==\"none\");if(!r.length)return;let i=n.ownerDocument??document,o=\"http://www.w3.org/2000/svg\",a=i.createElementNS(o,\"svg\"),s=i.createElement(\"span\");for(let l of r){let c=/^(\\d+(?:\\.\\d+)?)(pt|px)\\s+(\\w+)\\s+(.+)$/.exec(t[l]);if(!c||!Number.isFinite(Number(c[1]))||Number(c[1])<=0)continue;let[,h,u,f,d]=c;if(/url\\s*\\(|[;{}<>\\\\\\x00-\\x1f]/i.test(d)||(s.style.color=\"\",s.style.color=d,!s.style.color))continue;let p=i.createElementNS(o,\"line\");p.dataset.docxDiagonal=l,p.setAttribute(\"x1\",l===\"tl2br\"?\"0%\":\"100%\"),p.setAttribute(\"y1\",\"0%\"),p.setAttribute(\"x2\",l===\"tl2br\"?\"100%\":\"0%\"),p.setAttribute(\"y2\",\"100%\"),p.style.stroke=e(s.style.color),p.style.strokeWidth=`${h}${u}`;let m=Number(h)*(u===\"pt\"?4/3:1);f===\"dotted\"?(p.style.strokeDasharray=`0 ${m*2}`,p.style.strokeLinecap=\"round\"):f===\"dashed\"&&(p.style.strokeDasharray=`${m*4} ${m*2}`),a.appendChild(p)}a.hasChildNodes()&&(a.setAttribute(\"aria-hidden\",\"true\"),a.setAttribute(\"focusable\",\"false\"),Object.assign(a.style,{position:\"absolute\",left:\"0\",top:\"0\",width:\"100%\",height:\"100%\",overflow:\"hidden\",pointerEvents:\"none\"}),(!n.style.position||n.style.position===\"static\")&&(n.style.position=\"relative\"),n.appendChild(a))}function _p(n,t,e=()=>!0){let r=n.ownerDocument?.defaultView;if(!r||typeof n.querySelectorAll!=\"function\")return;let i=Array.from(n.querySelectorAll(\"section\"));n.matches?.(\"section\")&&i.unshift(n);for(let o of i){if(!o.classList.contains(t)||!e(o))continue;let a=r.getComputedStyle(o),s=Ht(a.width)+(a.boxSizing===\"border-box\"?0:Ht(a.paddingLeft)+Ht(a.paddingRight)+Ht(a.borderLeftWidth)+Ht(a.borderRightWidth)),l=o.getBoundingClientRect(),c=s>0?l.width/s:0;if(!(!Number.isFinite(c)||c<=0)){for(let h of Array.from(o.querySelectorAll('[data-docx-anchor-context=\"paragraph\"]'))){if(!e(h))continue;let u=h.getBoundingClientRect();h.style.setProperty(\"--docx-paragraph-page-offset-top\",`${(u.top-l.top)/c}px`),h.style.setProperty(\"--docx-paragraph-page-offset-left\",`${(u.left-l.left)/c}px`)}Mp(o,e),Bp(o,e),$p(o,c,e),Up(o,e)}}}var bl=new WeakMap,Ht=n=>Number.parseFloat(n)||0;function Mp(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return;let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),o=Ht(i.width)+(i.boxSizing===\"border-box\"?0:Ht(i.paddingLeft)+Ht(i.paddingRight)+Ht(i.borderLeftWidth)+Ht(i.borderRightWidth)),a=o?r.width/o:0;if(!(!Number.isFinite(a)||a<=0))for(let s of Array.from(n.querySelectorAll('[data-docx-anchor-horizontal=\"column\"], [data-docx-anchor-horizontal=\"margin\"]'))){if(s.dataset.docxAnchorId!=null||!t(s))continue;let l=s.closest('[data-docx-anchor-context=\"paragraph\"]');if(!l||s.offsetParent!==l||e.getComputedStyle(s).position!==\"absolute\"||!s.style.left||l.closest(\"td, th\"))continue;let c=s.dataset.docxAnchorHorizontal===\"margin\"?n:l.closest(\"article, header, footer\");if(!c||!n.contains(c)&&c!==n)continue;let h=e.getComputedStyle(c),f=c.getBoundingClientRect().left+(Ht(h.borderLeftWidth)+Ht(h.paddingLeft))*a,d=e.getComputedStyle(l),p=l.getBoundingClientRect();if(c!==n){let T=Ht(h.columnCount),S=Ht(h.columnWidth);if(T>1||S>0){let I=h.columnGap===\"normal\"?Ht(h.fontSize):Ht(h.columnGap),O=c.clientWidth-Ht(h.paddingLeft)-Ht(h.paddingRight),$=T>0?T:Math.max(1,Math.floor((O+I)/(S+I))),k=(O+I)/$;if(k>0){let W=(p.left-f)/a-Ht(d.marginLeft);f+=Math.round(W/k)*k*a}}}let m=p.left+Ht(d.borderLeftWidth)*a,g=(f-m)/a;if(!Number.isFinite(g))continue;let b=bl.get(s)??s.style.left;bl.set(s,b),s.style.left=Math.abs(g)<.01?b:`calc(${b} + ${g.toFixed(4)}px)`}}var yl=new WeakMap,Fp=/^[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:px|pt|pc|in|cm|mm)?$/i,$o=n=>n!==\"\"&&n!==\"none\"&&n!==\"normal\";function Dp(n,t){for(let e=n.parentElement;e;e=e.parentElement){let r=t.getComputedStyle(e);if(r.position&&r.position!==\"static\"||$o(r.transform)||$o(r.perspective)||$o(r.filter)||/(?:layout|paint|strict|content)/.test(r.contain)||/(?:transform|perspective|filter)/.test(r.willChange))return e}return null}function Bp(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return 0;let r=e.getComputedStyle(n),i=Ht(r.width)+(r.boxSizing===\"border-box\"?0:Ht(r.paddingLeft)+Ht(r.paddingRight)+Ht(r.borderLeftWidth)+Ht(r.borderRightWidth)),o=i>0?n.getBoundingClientRect().width/i:0;if(!Number.isFinite(o)||o<=0)return 0;let a=0;for(let s of Array.from(n.querySelectorAll('svg[data-docx-float=\"true\"]'))){if(s.dataset.docxAnchorId!=null||!t(s)||s.namespaceURI!==\"http://www.w3.org/2000/svg\"||s.ownerSVGElement||e.getComputedStyle(s).position!==\"absolute\")continue;let l=s.dataset.docxAnchorHorizontal===\"text\"&&!!(s.style.left||s.style.marginLeft)&&(!s.style.right||s.style.right===\"auto\"),c=s.dataset.docxAnchorVertical===\"text\"&&!!(s.style.top||s.style.marginTop)&&(!s.style.bottom||s.style.bottom===\"auto\");if(!l&&!c)continue;let h=s.closest(\"p\");if(!h||h.closest(\"td, th, svg, [data-docx-shape-textbox]\"))continue;let u=h.closest(\"article, header, footer\"),f=Dp(s,e);if(!u||!n.contains(u)||!f||f!==h&&f!==u&&f!==n)continue;let d=e.getComputedStyle(f),p=f.getBoundingClientRect(),m=e.getComputedStyle(h);if(m.direction===\"rtl\"||m.writingMode&&m.writingMode!==\"horizontal-tb\")continue;let g=yl.get(s)??{left:s.style.left,top:s.style.top},b=S=>!S||S===\"auto\"||Fp.test(S);if(l&&(!b(g.left)||!b(s.style.marginLeft))||c&&(!b(g.top)||!b(s.style.marginTop)))continue;let T=g.left;if(l){let S=e.getComputedStyle(u),I=u.getBoundingClientRect().left+(Ht(S.borderLeftWidth)+Ht(S.paddingLeft))*o,O=h.getBoundingClientRect(),$=Ht(S.columnCount),k=Ht(S.columnWidth);if($>1||k>0){let v=S.columnGap===\"normal\"?Ht(S.fontSize):Ht(S.columnGap),_=u.clientWidth-Ht(S.paddingLeft)-Ht(S.paddingRight),y=$>0?$:Math.max(1,Math.floor((_+v)/(k+v))),H=(_+v)/y;if(!(H>0))continue;let nt=(O.left-I)/o-Ht(m.marginLeft);I+=Math.round(nt/H)*H*o}let W=(I-p.left)/o-Ht(d.borderLeftWidth);if(!Number.isFinite(W))continue;let U=g.left&&g.left!==\"auto\"?g.left:\"0px\";T=Math.abs(W)<.01?U:`calc(${U} + ${W.toFixed(4)}px)`}if(yl.set(s,g),l&&(s.style.left=T),c){let S=(h.getBoundingClientRect().top-p.top)/o+Ht(m.borderTopWidth)-Ht(d.borderTopWidth),I=g.top&&g.top!==\"auto\"?g.top:\"0px\";Number.isFinite(S)&&(s.style.top=Math.abs(S)<.01?I:`calc(${I} + ${S.toFixed(4)}px)`)}a++}return a}var tn=n=>Number.parseFloat(n)||0;function $p(n,t,e){for(let r of Array.from(n.querySelectorAll(\"[data-docx-vml-text-viewport]\"))){if(!e(r))continue;let i=r.ownerSVGElement;if(!i||i.dataset.docxVml!==\"true\")continue;let o=i.getScreenCTM?.();if(!o)continue;let a=Math.hypot(o.a,o.b)/t,s=Math.hypot(o.c,o.d)/t,l=r.dataset.docxVmlTextViewport.split(\" \").map(Number);if(!(![a,s].every(c=>Number.isFinite(c)&&c>0)||l.length!==4||!l.every(Number.isFinite)||Math.abs(o.a*o.c+o.b*o.d)>1e-5*t*t*a*s)){for(let[c,h]of[\"x\",\"y\",\"width\",\"height\"].entries())r.setAttribute(h,`${l[c]*(c%2?s:a)}`);r.setAttribute(\"transform\",`scale(${1/a} ${1/s})`)}}}function xl(n){let t=/^([+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+))(pt|px|in|cm|mm|pc)?$/i.exec(n?.trim()||\"\");if(!t)return null;let e={pt:4/3,px:1,in:96,cm:96/2.54,mm:96/25.4,pc:16},r=Number(t[1])*(e[t[2]?.toLowerCase()||\"px\"]??1);return Number.isFinite(r)?r:null}function Wp(n){return tn(n.width)+(n.boxSizing===\"border-box\"?0:tn(n.paddingLeft)+tn(n.paddingRight)+tn(n.borderLeftWidth)+tn(n.borderRightWidth))}function Hp(n,t){let e=t.ownerDocument.createTreeWalker(t,1);e.currentNode=n;for(let r=e.nextNode();r;r=e.nextNode())if(r.closest(\"p\")!==t||r.matches(\"br, [data-docx-tab], [data-docx-float], [data-docx-frame-anchor]\"))return r;return null}function Up(n,t=()=>!0){let e=n.ownerDocument.defaultView;if(!e)return 0;let r=new Map;for(let o of Array.from(n.querySelectorAll('[data-docx-tab=\"true\"][data-docx-tab-pos]'))){if(o.dataset.docxTabId!=null||!t(o))continue;let a=o.closest(\"p\");if(!a||!n.contains(a)||o.closest('[data-docx-has-tab-leader=\"true\"], [data-docx-toc-entry=\"true\"]')||o.dataset.docxTabLeader&&o.dataset.docxTabLeader!==\"none\"||![\"left\",\"right\",\"center\"].includes(o.dataset.docxTabAlign||\"left\")||xl(o.dataset.docxTabPos)===null)continue;let s=r.get(a)||[];s.push(o),r.set(a,s)}let i=0;for(let[o,a]of r){let s=e.getComputedStyle(o);if(s.direction===\"rtl\"||s.writingMode&&s.writingMode!==\"horizontal-tb\"||s.textAlign===\"center\"||s.textAlign===\"right\"||s.textAlign===\"end\")continue;let l=o.getBoundingClientRect(),c=Wp(s),h=c>0?l.width/c:0;if(!Number.isFinite(h)||h<=0||l.width<=0)continue;let u=l.left+(tn(s.borderLeftWidth)+tn(s.paddingLeft))*h;for(let f of a)f.style.width=\"0px\",f.style.minWidth=\"0px\";for(let f of a){let d=xl(f.dataset.docxTabPos),p=f.getBoundingClientRect(),m=o.ownerDocument.createRange();m.setStartAfter(f);let g=Hp(f,o);g?m.setEndBefore(g):m.setEnd(o,o.childNodes.length);let b=Array.from(m.getClientRects()).filter(k=>k.width>0&&k.bottom>p.top+.1&&k.top<p.bottom-.1),T=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY;for(let k of b)T=Math.min(T,k.left),S=Math.max(S,k.right);let I=b.length?Math.max(0,S-T)/h:0,O=f.dataset.docxTabAlign===\"right\"?1:f.dataset.docxTabAlign===\"center\"?.5:0,$=Math.max(0,d-(p.left-u)/h-I*O);Number.isFinite($)&&(f.style.width=`${$.toFixed(4)}px`,i++)}}return i}var zp=21.247,Kl=Math.pow(6/29,3);function Wo(n){return n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92}function Ho(n){let t=n>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:n*12.92;return Math.min(Math.max(0,t),1)}function Yp(n,t,e){let r=Wo(n/255),i=Wo(t/255),o=Wo(e/255),a=(r*.4124564+i*.3575761+o*.1804375)*100/95.047,s=(r*.2126729+i*.7151522+o*.072175)*100/100,l=(r*.0193339+i*.119192+o*.9503041)*100/108.883,c=h=>h>Kl?Math.cbrt(h):7.787*h+16/116;return a=c(a),s=c(s),l=c(l),[116*s-16,500*(a-s),200*(s-l)]}function Gp(n,t,e){let r=(n+16)/116,i=r+t/500,o=r-e/200,a=d=>d*d*d>Kl?d*d*d:(d-16/116)/7.787,s=a(i)*95.047/100,l=a(r)*100/100,c=a(o)*108.883/100,h=Ho(s*3.2404542+l*-1.5371385+c*-.4985314),u=Ho(s*-.969266+l*1.8760108+c*.041556),f=Ho(s*.0556434+l*-.2040259+c*1.0572252);return[Math.round(h*255),Math.round(u*255),Math.round(f*255)]}var jp={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkmagenta:[139,0,139],darkred:[139,0,0],darkyellow:[128,128,0],green:[0,128,0],gray:[128,128,128],grey:[128,128,128],lightgray:[211,211,211],lightgrey:[211,211,211],magenta:[255,0,255],red:[255,0,0],white:[255,255,255],yellow:[255,255,0]};function Uo(n){return Math.min(255,Math.max(0,n))}function Vp(n){let t=n.trim();if(t.startsWith(\"#\")){let i=t.slice(1);if(i.length===3||i.length===4){let o=parseInt(i[0]+i[0],16),a=parseInt(i[1]+i[1],16),s=parseInt(i[2]+i[2],16),l=i.length===4?parseInt(i[3]+i[3],16)/255:1;return Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(s)?null:{r:o,g:a,b:s,a:l}}if(i.length===6||i.length===8){let o=parseInt(i.slice(0,2),16),a=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16),l=i.length===8?parseInt(i.slice(6,8),16)/255:1;return Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(s)?null:{r:o,g:a,b:s,a:l}}return null}let e=/^rgba?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*(?:,\\s*([\\d.]+)\\s*)?\\)$/i.exec(t);if(e)return{r:Uo(parseFloat(e[1])),g:Uo(parseFloat(e[2])),b:Uo(parseFloat(e[3])),a:e[4]!==void 0?parseFloat(e[4]):1};let r=jp[t.toLowerCase()];return r?{r:r[0],g:r[1],b:r[2],a:1}:null}function Xp(n){return n===\"\"||n===\"none\"||n===\"transparent\"||n===\"inherit\"||n===\"initial\"||n===\"unset\"||n===\"currentcolor\"||n.startsWith(\"var(\")||n.startsWith(\"color-mix(\")||n.startsWith(\"url(\")||n.startsWith(\"linear-gradient(\")||n.startsWith(\"radial-gradient(\")||n.startsWith(\"conic-gradient(\")}var zo=new Map,qp=/^var\\(\\s*(--[\\w-]+)\\s*,\\s*([\\s\\S]+)\\)$/i;function en(n,t=zp){if(!n)return n;let e=n.trim(),r=e.toLowerCase();if(r.startsWith(\"var(\")){let m=qp.exec(e);if(!m)return n;let g=m[2].trim(),b=en(g,t);return b===g?n:`var(${m[1]}, ${b})`}if(Xp(r))return n;let i=`${t}|${e}`,o=zo.get(i);if(o!==void 0)return o;let a=Vp(e);if(!a||a.a===0)return zo.set(i,n),n;let[s,l,c]=Yp(a.r,a.g,a.b),h=(100-s)*((100-t)/100)+t,[u,f,d]=Gp(h,l,c),p=a.a>=1?`rgb(${u}, ${f}, ${d})`:`rgba(${u}, ${f}, ${d}, ${Math.round(a.a*1e3)/1e3})`;return zo.set(i,p),p}var Kp=new Set([\"color\",\"background-color\",\"border-color\",\"border-top-color\",\"border-right-color\",\"border-bottom-color\",\"border-left-color\",\"outline-color\",\"text-decoration-color\",\"caret-color\",\"column-rule-color\",\"fill\",\"stroke\"]),Zp=new Set([\"border\",\"border-top\",\"border-right\",\"border-bottom\",\"border-left\",\"outline\",\"column-rule\"]),Jp=/(var\\([^)]*\\)|rgba?\\([^)]*\\)|#[0-9a-fA-F]{3,8}|[a-zA-Z]+)\\s*$/;function Qp(n,t){return n&&n.replace(Jp,e=>en(e,t))}function tm(n,t){if(!n)return n;let e=n;for(let r in n){let i=n[r];if(typeof i!=\"string\"||!i)continue;let o;Kp.has(r)||r.startsWith(\"--\")&&r.endsWith(\"-color\")?o=en(i,t):Zp.has(r)&&(o=Qp(i,t)),o!==void 0&&o!==i&&(e===n&&(e={...n}),e[r]=o)}return e}var Dt;(function(n){n.html=\"http://www.w3.org/1999/xhtml\",n.svg=\"http://www.w3.org/2000/svg\",n.mathML=\"http://www.w3.org/1998/Math/MathML\"})(Dt||(Dt={}));function Wn(n){if(Jr(n))return document.createTextNode(n);if(n instanceof Node)return n;let{ns:t,tagName:e,className:r,style:i,children:o,...a}=n;if(e===\"#fragment\"){let l=document.createDocumentFragment();return o?.forEach(c=>l.appendChild(Wn(c))),l}if(e===\"#comment\")return document.createComment(o[0]);let s=t?document.createElementNS(t,e):document.createElement(e);if(r&&s.setAttribute(\"class\",r),i)if(Jr(i))s.setAttribute(\"style\",i);else for(let[l,c]of Object.entries(i))c!=null&&(l.startsWith(\"--\")||l.includes(\"-\")?s.style.setProperty(l,c):s.style[l]=c);if(a)for(let[l,c]of Object.entries(a))c!==void 0&&(s[l]=c);return o&&o.forEach(l=>s.appendChild(Wn(l))),s}function Kr(...n){return n.filter(Boolean).join(\" \")}function Ce(n){let t=n?.reviewMode;return t===\"final\"||t===\"original\"||t===\"simple\"||t===\"all\"?t:n?.renderChanges||t===\"auto\"?\"all\":\"final\"}function Zr(n){return n?.reviewMode!=null||n?.renderChanges===!0}function em(n){return n!==\"original\"}function Mr(n){return n===\"original\"}function rm(n){let t=n?.documentPart?.body??n,e=[],r=i=>{if(!i)return;if(i.type===A.Paragraph){e.push(...im(i));return}let o=Sa(i.props?.revision,i.type);if(o&&i.type!==A.Inserted&&i.type!==A.Deleted){let a=Ea(ka(i));e.push(Zl(o,a||am(i.type),!0))}for(let a of i.props?.formatRevisions??[])e.push(Jl(a));for(let a of i.children??[])r(a)};r(t);for(let i of n?.commentsPart?.comments??[]){let o=i.id==null?void 0:String(i.id);e.push({id:o,ids:o==null?[]:[o],kind:\"comment\",author:i.author||void 0,date:i.date||void 0,text:Ea(ka(i)),presentation:\"balloon\"})}return e}function nm(n,t){if(t===\"auto\"){let e=rm(n).length;return{enabled:e>0,mode:e>0?\"all\":\"final\",automatic:!0,changeCount:e}}return{enabled:t!=null,mode:Ce({reviewMode:t??void 0}),automatic:!1,changeCount:0}}function im(n){let t=[],e=null,r=()=>{if(!e)return;let s=Ea(e.text);(s||e.structural)&&t.push(Zl(e.revision,s||\"\\u6BB5\\u843D\\u6807\\u8BB0\",e.structural,e.ids)),e=null},i=(s,l,c=!1)=>{let h=s.id;!e||wl(e.revision)!==wl(s)?(r(),e={revision:s,ids:h==null?[]:[h],text:\"\",structural:c}):(h!=null&&!e.ids.includes(h)&&e.ids.push(h),e.structural||(e.structural=c)),e.text+=l},o=s=>{let l=s.props?.formatRevisions??[];if(l.length){r();for(let c of l)t.push(Jl(c))}};o(n);for(let s of n.props?.paragraphMarkRevisions??[]){let l=Sa(s,s?.kind===\"delete\"?A.Deleted:A.Inserted);l&&i(l,\"\",l.kind===\"delete\"||l.kind===\"move-from\")}let a=(s,l)=>{if(!s)return;o(s);let c=Sa(s.props?.revision,s.type),h=c?[...l,c]:l,u=om(s);if(u!=null){let f=h[h.length-1];f?i(f,u):u.length&&r();return}for(let f of s.children??[])a(f,h)};for(let s of n.children??[])a(s,[]);return r(),t}function Sa(n,t){if(!n)return null;let e=mm(n.kind,t);return e!==\"insert\"&&e!==\"delete\"&&e!==\"move-from\"&&e!==\"move-to\"?null:{id:n.id==null?void 0:String(n.id),kind:e,author:n.author||void 0,date:n.date||void 0}}function Zl(n,t,e=!1,r){let i=Ql(r??(n.id==null?[]:[n.id]));return{id:i[0],ids:i,kind:n.kind,author:n.author,date:n.date,text:t||(e?\"\\u7ED3\\u6784\\u4FEE\\u8BA2\":\"\"),presentation:n.kind===\"insert\"||n.kind===\"move-to\"?\"inline\":\"balloon\"}}function Jl(n){let t=n?.id==null?void 0:String(n.id),e=sm(n?.formatChanges);return{id:t,ids:t==null?[]:[t],kind:\"format\",author:n?.author||void 0,date:n?.date||void 0,text:lm(e,n?.kind),presentation:\"balloon\",formatChanges:e}}function om(n){return n.type===A.Text||n.type===A.DeletedText?n.text??\"\":n.type===A.Tab||n.type===A.PositionalTab?\"\t\":n.type===A.Break?`\n`:n.type===A.NoBreakHyphen?\"\\u2011\":null}function wl(n){return[n.kind,n.author??\"\",n.date??\"\"].join(\"\\0\")}function Ea(n){return String(n??\"\").replace(/[\\u2060\\u200b]/g,\"\").replace(/[ \\t]+\\n/g,`\n`).trim()}function am(n){switch(n){case A.Row:return\"\\u8868\\u683C\\u884C\";case A.Cell:return\"\\u8868\\u683C\\u5355\\u5143\\u683C\";case A.Table:return\"\\u8868\\u683C\";case A.Paragraph:return\"\\u6BB5\\u843D\\u6807\\u8BB0\";default:return\"\\u7ED3\\u6784\\u4FEE\\u8BA2\"}}function sm(n){return Array.isArray(n)?n.filter(t=>t&&t.property).map(t=>({property:String(t.property),before:t.before==null?void 0:String(t.before),after:t.after==null?void 0:String(t.after)})):[]}function lm(n,t){if(!n.length)return Tl(t);let e=n.map(r=>cm(r)).filter(Boolean);return Ql(e).join(\"\\uFF1B\")||Tl(t)}function cm(n){let t=um(n.after);switch(n.property){case\"u\":return t==null||t===\"none\"||t===\"0\"||t===\"false\"?\"\\u65E0\\u4E0B\\u5212\\u7EBF\":hm(t);case\"b\":return vi(t)?\"\\u52A0\\u7C97\":\"\\u53D6\\u6D88\\u52A0\\u7C97\";case\"i\":return vi(t)?\"\\u503E\\u659C\":\"\\u53D6\\u6D88\\u503E\\u659C\";case\"strike\":return vi(t)?\"\\u5220\\u9664\\u7EBF\":\"\\u53D6\\u6D88\\u5220\\u9664\\u7EBF\";case\"dstrike\":return vi(t)?\"\\u53CC\\u5220\\u9664\\u7EBF\":\"\\u53D6\\u6D88\\u53CC\\u5220\\u9664\\u7EBF\";case\"color\":return t?`\\u5B57\\u4F53\\u989C\\u8272 ${vl(t)}`:\"\\u81EA\\u52A8\\u5B57\\u4F53\\u989C\\u8272\";case\"highlight\":return t&&t!==\"none\"?`\\u7A81\\u51FA\\u663E\\u793A ${t}`:\"\\u65E0\\u7A81\\u51FA\\u663E\\u793A\";case\"sz\":case\"szCs\":return t&&!Number.isNaN(Number(t))?`\\u5B57\\u53F7 ${Number(t)/2} \\u78C5`:\"\\u5B57\\u53F7\\u5DF2\\u66F4\\u6539\";case\"rFonts\":return t?`\\u5B57\\u4F53 ${fm(t)}`:\"\\u4F7F\\u7528\\u9ED8\\u8BA4\\u5B57\\u4F53\";case\"jc\":return`\\u5BF9\\u9F50\\u65B9\\u5F0F ${dm(t)}`;case\"spacing\":return\"\\u6BB5\\u843D\\u95F4\\u8DDD\\u5DF2\\u66F4\\u6539\";case\"ind\":return\"\\u6BB5\\u843D\\u7F29\\u8FDB\\u5DF2\\u66F4\\u6539\";case\"shd\":return t?`\\u5E95\\u7EB9 ${vl(t)}`:\"\\u65E0\\u5E95\\u7EB9\";case\"vertAlign\":return t===\"superscript\"?\"\\u4E0A\\u6807\":t===\"subscript\"?\"\\u4E0B\\u6807\":\"\\u57FA\\u7EBF\\u5BF9\\u9F50\";default:return pm(n.property,t)}}function um(n){return n==null?void 0:/(?:^|\\|)val=([^|]+)/.exec(n)?.[1]??n}function vi(n){return n==null||n===\"\"||n===\"1\"||n===\"true\"||n===\"on\"}function hm(n){switch(n){case\"single\":return\"\\u5355\\u4E0B\\u5212\\u7EBF\";case\"double\":return\"\\u53CC\\u4E0B\\u5212\\u7EBF\";case\"words\":return\"\\u4EC5\\u5B57\\u8BCD\\u4E0B\\u5212\\u7EBF\";case\"wave\":case\"wavyDouble\":case\"wavyHeavy\":return\"\\u6CE2\\u6D6A\\u4E0B\\u5212\\u7EBF\";default:return\"\\u4E0B\\u5212\\u7EBF\"}}function dm(n){switch(n){case\"center\":return\"\\u5C45\\u4E2D\";case\"right\":case\"end\":return\"\\u53F3\\u5BF9\\u9F50\";case\"both\":case\"distribute\":return\"\\u4E24\\u7AEF\\u5BF9\\u9F50\";default:return\"\\u5DE6\\u5BF9\\u9F50\"}}function vl(n){return/(?:val|fill)=([^|]+)/.exec(n)?.[1]??n}function fm(n){let t=n.split(\"|\").map(r=>r.split(\"=\")).filter(r=>r.length===2);return(t.find(([r])=>r===\"eastAsia\")??t.find(([r])=>r===\"ascii\")??t[0])?.[1]??n}function pm(n,t){let r={caps:\"\\u5168\\u90E8\\u5927\\u5199\",smallCaps:\"\\u5C0F\\u578B\\u5927\\u5199\\u5B57\\u6BCD\",vanish:\"\\u9690\\u85CF\\u6587\\u5B57\",keepNext:\"\\u4E0E\\u4E0B\\u6BB5\\u540C\\u9875\",keepLines:\"\\u6BB5\\u4E2D\\u4E0D\\u5206\\u9875\",pageBreakBefore:\"\\u6BB5\\u524D\\u5206\\u9875\",tblBorders:\"\\u8868\\u683C\\u8FB9\\u6846\",tcBorders:\"\\u5355\\u5143\\u683C\\u8FB9\\u6846\",tblW:\"\\u8868\\u683C\\u5BBD\\u5EA6\",tcW:\"\\u5355\\u5143\\u683C\\u5BBD\\u5EA6\"}[n]??\"\\u683C\\u5F0F\";return t&&![\"true\",\"1\"].includes(t)?`${r} ${t}`:r}function Tl(n){switch(n){case\"paragraph-format\":return\"\\u6BB5\\u843D\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"table-format\":return\"\\u8868\\u683C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"row-format\":return\"\\u8868\\u683C\\u884C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";case\"cell-format\":return\"\\u5355\\u5143\\u683C\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\";default:return\"\\u5B57\\u7B26\\u683C\\u5F0F\\u5DF2\\u66F4\\u6539\"}}function Ql(n){return[...new Set(n.filter(t=>t!=null&&t!==\"\"))]}function Fn(n){let t=[\"#c2410c\",\"#2563eb\",\"#7c3aed\",\"#0f766e\",\"#be123c\",\"#4d7c0f\",\"#a21caf\",\"#0369a1\"],e=String(n||\"Unknown\"),r=2166136261;for(let i=0;i<e.length;i++)r^=e.charCodeAt(i),r=Math.imul(r,16777619);return t[(r>>>0)%t.length]}function mm(n,t){return n===\"insert\"||n===\"delete\"||n===\"move-from\"||n===\"move-to\"?n:t===A.Deleted?\"delete\":\"insert\"}function ka(n){return n.type===A.Text||n.type===A.DeletedText?n.text??\"\":n.type===A.Tab||n.type===A.PositionalTab?\"\t\":n.type===A.Break?`\n`:(n.children??[]).map(ka).join(\"\").trim()}var gm=/[\\u0000-\\u0020\\u007f-\\u009f]+/g,bm=/^[a-z][a-z0-9+.-]*:/i,ym=/^(?:https?|mailto|tel):/i;function xm(n){let t=String(n??\"\").trim().replace(gm,\"\");return t?t.startsWith(\"#\")?t:t.startsWith(\"//\")||t.includes(\"\\\\\")||bm.test(t)&&!ym.test(t)?null:t:null}function wm(n,t){let e=!1,r=null,i=new Set,o=()=>{e=!1,r=null};for(let s of n){if(s.type!==A.Paragraph){o();continue}let l=s,c=!1,h=u=>{if(!t(u))switch(u.type){case A.Break:let f=u.break;f===\"page\"?(e=!0,r=null,c=!0):f===\"lastRenderedPageBreak\"?(c=!0,e?(i.add(u),r=u):r&&(i.delete(r),r=null),e=!1):o();break;case A.BookmarkStart:case A.BookmarkEnd:break;case A.Run:case A.Hyperlink:(u.children??[]).forEach(h);break;case A.Text:case A.DeletedText:u.text&&o();break;default:o()}};(l.children??[]).forEach(h),(!c||l.sectionProps)&&o()}if(!i.size)return n;let a=s=>{if(i.has(s))return null;if(!s.children?.length)return s;let l=!1,c=[];for(let h of s.children){let u=a(h);l||(l=u!==h),u&&c.push(u)}return l&&c.length===0&&(s.type===A.Run||s.type===A.Hyperlink)?null:l?{...s,children:c}:s};return n.map(a)}var Ti=[\"http://schemas.openxmlformats.org/drawingml/2006/chart\",\"http://purl.oclc.org/ooxml/drawingml/chart\"],Yo=[\"http://schemas.openxmlformats.org/drawingml/2006/main\",\"http://purl.oclc.org/ooxml/drawingml/main\"],yr=new WeakMap;function vm(n){let t=new Set,e=[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root], [data-docx-comment-layer]\"))];for(let r of e){let i=yr.get(r);i&&t.add(i),yr.delete(r)}for(let r of t)r.disposeLayout()}async function Hi(n,t=Hn(n)){je(n,t);let e=new Set;for(let r of[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root]\"))]){let i=yr.get(r);i&&e.add(i)}for(let r of e)je(n,t),await r.prepareLayout(n,t);je(n,t);for(let r of[n,...Array.from(n.querySelectorAll(\"[data-docx-layout-root]\"))]){let i=yr.get(r);i?.shouldRunDynamicPagination()&&r.classList.contains(`${i.className}-wrapper`)&&i.scheduleDynamicPagination(r,t)}}var Ui=class n{constructor(){this.className=\"docx\",this.styleMap={},this.currentPart=null,this.currentSectionProps=null,this.currentPageNumber=1,this.currentSectionNumber=1,this.currentSectionPageNumber=1,this.totalPages=1,this.sectionPageCount=1,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.currentTableRow=null,this.repeatedTableHeaderRows=new WeakSet,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.noteNumbering=new Bn,this.renderedNoteIds=new Set,this.noteSectionIds=new Map,this.notePageIndex=1,this.dynamicNoteState=new WeakMap,this.noteContinuationOrigins=new WeakMap,this.headerFooterModels=new Map,this.pageHeaderFooterState=new WeakMap,this.currentTabs=[],this.anchorLayouts=new Map,this.currentParagraph=null,this.currentParagraphTabIndex=0,this.currentParagraphTabCount=0,this.commentMap={},this.commentLayer=null,this.commentPresentations=new Map,this.renderingComment=!1,this.hyperlinkDepth=0,this.layoutGenerations=new Map,this.bookmarkTextMap={},this.bookmarkIdToName={},this.tocEntries=[],this.fieldSeqCounters={},this.fieldSetValues={},this.headingIndex=0,this.tasks=[],this.postRenderTasks=[],this.compatibleTextBoxSpacing=!1,this.h=Wn,this.darkModeVarNames=new Map,this.darkModePrintReset={}}async render(t,e){this.document=t,this.options=e,this.className=e.className,this.rootSelector=e.inWrapper?`.${this.className}-wrapper`:\":root\",this.h=e.h??Wn,this.styleMap=null,this.tasks=[],this.postRenderTasks=[],this.commentLayer=null,this.commentPresentations.clear(),this.renderingComment=!1,this.currentTabs=[],this.currentFootnoteIds=[],this.currentEndnoteIds=[],this.footnoteMap={},this.endnoteMap={},this.noteNumbering=new Bn,this.renderedNoteIds=new Set,this.repeatedTableHeaderRows=new WeakSet,this.noteSectionIds=new Map,this.notePageIndex=1,this.dynamicNoteState=new WeakMap,this.noteContinuationOrigins=new WeakMap,this.anchorLayouts.clear(),this.headerFooterModels.clear(),this.pageHeaderFooterState=new WeakMap,this.fieldSeqCounters={},this.fieldSetValues={},this.headingIndex=0,this.darkModeVarNames=new Map,this.darkModePrintReset={},this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight);let r=[...this.renderDefaultStyle()];if(t.themePart&&r.push(...this.renderTheme(t.themePart)),t.stylesPart!=null){let o=this.cloneRenderData(t.stylesPart.styles);this.styleMap=this.processStyles(o),r.push(...this.renderStyles(o))}t.numberingPart&&(this.prodessNumberings(t.numberingPart.domNumberings),r.push(...await this.renderNumbering(t.numberingPart.domNumberings))),t.footnotesPart&&(this.footnoteMap=ur(this.cloneRenderData(t.footnotesPart.notes),o=>o.id)),t.endnotesPart&&(this.endnoteMap=ur(this.cloneRenderData(t.endnotesPart.notes),o=>o.id)),t.settingsPart&&(this.defaultTabSize=t.settingsPart.settings?.defaultTabStop),!e.ignoreFonts&&t.fontTablePart&&r.push(...await this.renderFontTable(t.fontTablePart));var i=await this.renderSections(this.cloneRenderData(t.documentPart.body));if(this.options.inWrapper){let o=this.renderWrapper(i);this.commentLayer&&o.appendChild(this.commentLayer.root),r.push(o),this.shouldRunDynamicPagination()&&this.scheduleDynamicPagination(o)}else r.push(...i),this.commentLayer&&(this.commentLayer.root.style.position=\"fixed\",r.push(this.commentLayer.root));r.push(...this.renderDarkModePrintReset()),this.commentHighlight&&e.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),await Promise.allSettled(this.tasks),this.postRenderTasks.forEach(o=>o()),this.commentLayer&&yr.set(this.commentLayer.root,this);for(let o of r)[\"section\",\"div\"].includes(o.tagName?.toLowerCase())&&!o.dataset?.docxCommentLayer&&(o.dataset.docxLayoutRoot=\"true\",yr.set(o,this));return r}renderTheme(t){let e={},r=t.theme?.fontScheme,i=this.documentThemeLanguages();r&&(r.majorFont&&(e[\"--docx-majorHAnsi-font\"]=this.themeFontFamily(r.majorFont,\"latin\",i.latin),e[\"--docx-majorEastAsia-font\"]=this.themeFontFamily(r.majorFont,\"eastAsia\",i.eastAsia),e[\"--docx-majorBidi-font\"]=this.themeFontFamily(r.majorFont,\"complexScript\",i.bidi),e[\"--docx-majorCs-font\"]=e[\"--docx-majorBidi-font\"],this.addThemeScriptFontVariables(e,\"major\",r.majorFont)),r.minorFont&&(e[\"--docx-minorHAnsi-font\"]=this.themeFontFamily(r.minorFont,\"latin\",i.latin),e[\"--docx-minorEastAsia-font\"]=this.themeFontFamily(r.minorFont,\"eastAsia\",i.eastAsia),e[\"--docx-minorBidi-font\"]=this.themeFontFamily(r.minorFont,\"complexScript\",i.bidi),e[\"--docx-minorCs-font\"]=e[\"--docx-minorBidi-font\"],this.addThemeScriptFontVariables(e,\"minor\",r.minorFont)));let o=t.theme?.colorScheme,a=[];if(o)for(let[l,c]of Object.entries(o.colors)){let h=`--docx-${l}-color`;e[h]=`#${c}`,a.push(h)}let s=this.styleToString(`.${this.className}`,e);if(this.options.darkMode&&a.length){let l=a.map(c=>` ${c}: ${e[c]};\\r\n`).join(\"\");s+=`@media print {\\r\n.${this.className} {\\r\n${l}}\\r\n}\\r\n`}return[this.h({tagName:\"#comment\",children:[\"docxjs document theme values\"]}),this.h({tagName:\"style\",children:[s]})]}documentThemeLanguages(){let t={latin:\"\",eastAsia:\"\",bidi:\"\"},i=(this.document.stylesPart?.styles??[]).filter(o=>o.id==null||o.isDefault&&o.target==\"span\").flatMap(o=>o.styles??[]).find(o=>o.target==\"span\")?.values??{};return t.latin=i.$lang??\"\",t.eastAsia=i[\"$lang-eastAsia\"]??t.latin,t.bidi=i[\"$lang-bidi\"]??t.latin,t}addThemeScriptFontVariables(t,e,r){let i=new Set([\"Hans\",\"Hant\",\"Jpan\",\"Hang\"]);for(let o of Object.keys(r.scriptTypefaces??{})){let a=i.has(o)?\"eastAsia\":\"complexScript\",s=this.themeFontFamily(r,a,\"\",o);t[`--docx-${e}EastAsia-font-${o}`]=s,t[`--docx-${e}Bidi-font-${o}`]=s,t[`--docx-${e}Cs-font-${o}`]=s}}themeFontFamily(t,e,r,i=\"\"){let o=e==\"latin\"?t.latinTypeface:e==\"eastAsia\"?t.eaTypeface:t.csTypeface,a=i||Ei(r),s=a?t.scriptTypefaces?.[a]:\"\",l=o?.trim()||s?.trim()||t.latinTypeface?.trim();if(!l)return e==\"eastAsia\"?\"sans-serif\":\"serif\";let c=[br(l)];return e==\"eastAsia\"&&c.push(...jo(l,a).slice(1)),[...new Set(c)].join(\", \")}async renderFontTable(t){let e=[];for(let r of t.fonts)for(let i of r.embedFontRefs)try{let o=await this.document.loadFont(i.id,i.key),a={\"font-family\":br(r.name),src:`url(${o})`};(i.type==\"bold\"||i.type==\"boldItalic\")&&(a[\"font-weight\"]=\"bold\"),(i.type==\"italic\"||i.type==\"boldItalic\")&&(a[\"font-style\"]=\"italic\"),e.push(this.h({tagName:\"#comment\",children:[`docxjs ${r.name} font`]})),e.push(this.h({tagName:\"style\",children:[this.styleToString(\"@font-face\",a)]}))}catch{this.options.debug&&console.warn(`Can't load font with id ${i.id} and key ${i.key}`)}return e}processStyleName(t){return t?`${this.className}_${Rd(t)}`:this.className}processStyles(t){let e=ur(t.filter(i=>i.id!=null),i=>i.id);for(let i of t.filter(o=>o.basedOn)){var r=e[i.basedOn];if(r){i.paragraphProps=Ci({},r.paragraphProps,i.paragraphProps),i.runProps=Ci({},r.runProps,i.runProps);for(let o of r.styles){let a=i.styles.find(s=>s.target==o.target);a?this.copyStyleProperties(o.values,a.values):i.styles.push({...o,values:{...o.values}})}}else this.options.debug&&console.warn(`Can't find base style ${i.basedOn}`)}for(let i of t)i.cssName=this.processStyleName(i.id);return e}prodessNumberings(t){for(let e of t.filter(r=>r.pStyleName)){let r=this.findStyle(e.pStyleName);r?.paragraphProps?.numbering&&(r.paragraphProps.numbering.level=e.level)}}processElement(t){if(t&&t.children)for(var e of t.children)e.parent=t,e.type==A.Table?this.processTable(e):this.processElement(e)}processTable(t){let e=t.children??[],r=t.columns?.length??0;for(let a of e){let s=a.gridBefore??0;for(let l of a.children??[])s+=l.span??1;r=Math.max(r,s+(a.gridAfter??0))}let i=Math.max(t.rowBandSize??1,1),o=Math.max(t.colBandSize??1,1);e.forEach((a,s)=>{s==0&&this.appendClassName(a,\"first-row\"),s==e.length-1&&this.appendClassName(a,\"last-row\"),this.appendClassName(a,Math.floor(s/i)%2==0?\"odd-row\":\"even-row\");let l=a.gridBefore??0;for(let c of a.children??[]){c.cssStyle=this.copyStyleProperties(t.cellStyle,c.cssStyle,[\"border-left\",\"border-right\",\"border-top\",\"border-bottom\",\"padding-left\",\"padding-right\",\"padding-top\",\"padding-bottom\"]);let h=c.span??1,u=l+h-1;l==0&&this.appendClassName(c,\"first-col\"),r>0&&u>=r-1&&this.appendClassName(c,\"last-col\"),this.appendClassName(c,Math.floor(l/o)%2==0?\"odd-col\":\"even-col\"),this.processElement(c),l+=h}})}collectDocumentMetadata(t){this.bookmarkTextMap={},this.bookmarkIdToName={},this.tocEntries=[];let e={},r=i=>{if(!(i.type==A.Deleted&&!Mr(Ce(this.options)))){switch(i.type){case A.BookmarkStart:{let o=i;o.id&&o.name&&(this.bookmarkIdToName[o.id]=o.name,e[o.id]=[]);break}case A.BookmarkEnd:{let o=i,a=this.bookmarkIdToName[o.id];a&&e[o.id]&&(this.bookmarkTextMap[a]=e[o.id].join(\"\").trim(),delete e[o.id]);break}case A.Text:for(let o of Object.keys(e))e[o].push(i.text??\"\");break;case A.DeletedText:if(Mr(Ce(this.options)))for(let o of Object.keys(e))e[o].push(i.text??\"\");break}for(let o of i.children??[])r(o)}};for(let i of t.children??[])r(i);for(let[i,o]of Object.entries(e)){let a=this.bookmarkIdToName[i];a&&(this.bookmarkTextMap[a]=o.join(\"\").trim())}for(let i of t.children??[])this.collectTocEntries(i)}collectTocEntries(t){if(!(t.type==A.Deleted&&!Mr(Ce(this.options)))){if(t.type==A.Paragraph){let e=t,r=this.findStyle(e.styleName),i=this.extractText(e).trim(),o=e.outlineLevel??r?.paragraphProps?.outlineLevel;if(o==null&&e.styleName){let a=/heading(\\d+)|(?:^|[-_ ])h(\\d+)$/i.exec(e.styleName);a&&(o=parseInt(a[1]??a[2],10)-1)}if(i&&o!=null&&o>=0&&o<9){let a=this.findFirstBookmark(e),s=a?.name&&!a.name.startsWith(\"_\")?a.name:`${this.className}-heading-${++this.headingIndex}`;e.props={...e.props??{},anchorId:s},this.tocEntries.push({level:o+1,text:i,id:s})}}for(let e of t.children??[])this.collectTocEntries(e)}}findFirstBookmark(t){if(t.type==A.BookmarkStart)return t;for(let e of t.children??[]){let r=this.findFirstBookmark(e);if(r)return r}return null}extractText(t){switch(t.type){case A.Text:return t.text??\"\";case A.DeletedText:return Mr(Ce(this.options))?t.text??\"\":\"\";case A.Deleted:return Mr(Ce(this.options))?(t.children??[]).map(e=>this.extractText(e)).join(\"\"):\"\";case A.Inserted:return Ce(this.options)==\"original\"?\"\":(t.children??[]).map(e=>this.extractText(e)).join(\"\");case A.Tab:case A.PositionalTab:return\"\t\";case A.NoBreakHyphen:return\"\\u2011\";case A.SoftHyphen:return\"\";case A.Break:return`\n`;case A.Instruction:case A.ComplexField:return\"\"}return(t.children??[]).map(e=>this.extractText(e)).join(\"\")}appendClassName(t,e){t.className=[...new Set(Kr(t.className,e).split(/\\s+/).filter(Boolean))].join(\" \")}copyStyleProperties(t,e,r=null){if(!t)return e;e==null&&(e={}),r==null&&(r=Object.getOwnPropertyNames(t));for(var i of r)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i]);return e}createPageElement(t,e,r){let i={...r},o=null,a=null;if(e){if(e.pageMargins&&(i.paddingLeft=this.addSize(e.pageMargins.left,e.pageMargins.gutter),i.paddingRight=e.pageMargins.right,i.paddingTop=e.pageMargins.top,i.paddingBottom=e.pageMargins.bottom),e.pageSize){let l=e.pageSize.width,c=e.pageSize.height;if(e.pageSize.orientation==\"landscape\"){let u=this.parseCssLengthValue(l),f=this.parseCssLengthValue(c);u!=null&&f!=null&&u<f&&([l,c]=[c,l])}o=l,a=c,this.options.ignoreWidth||(i.width=l),(!this.options.ignoreHeight||!this.options.breakPages)&&(i.minHeight=c,!this.options.ignoreHeight&&this.options.breakPages&&this.options.fixedPageHeight&&(i.height=c))}e.pageBorders&&(this.applyPageBorder(i,\"top\",e.pageBorders.top),this.applyPageBorder(i,\"right\",e.pageBorders.right),this.applyPageBorder(i,\"bottom\",e.pageBorders.bottom),this.applyPageBorder(i,\"left\",e.pageBorders.left))}let s=this.h({tagName:\"section\",className:t,style:i});return i.paddingLeft&&this.setCssStyle(s,\"--docx-page-padding-left\",i.paddingLeft),i.paddingTop&&this.setCssStyle(s,\"--docx-page-padding-top\",i.paddingTop),o&&this.setCssStyle(s,\"--docx-page-width\",o),a&&this.setCssStyle(s,\"--docx-page-height\",a),s}addSize(t,e){return t?!e||e==\"0.00pt\"||e==\"0px\"?t:`calc(${t} + ${e})`:e}parseCssLengthValue(t){if(!t)return null;let e=/^(-?\\d+(?:\\.\\d+)?)/.exec(t);return e?parseFloat(e[1]):null}applyPageBorder(t,e,r){if(!r)return;let i=this.borderTypeToCss(r.type);t[`border-${e}`]=i==\"none\"?\"none\":`${r.size??\"1px\"} ${i} ${this.borderColor(r.color)}`}borderTypeToCss(t){switch(t){case\"nil\":case\"none\":return\"none\";case\"double\":case\"triple\":return\"double\";case\"dashed\":case\"dashSmallGap\":return\"dashed\";case\"dotted\":case\"dotDash\":case\"dotDotDash\":return\"dotted\"}return\"solid\"}borderColor(t){return!t||t==\"auto\"?\"var(--docx-auto-color, black)\":/^[0-9a-f]{6}$/i.test(t)?`#${t}`:t}createSectionContent(t){let e={},r=t.columns?.numberOfColumns??t.columns?.columns?.length,i=t.docGrid?.type==\"linesAndChars\"||t.docGrid?.type==\"snapToChars\";return t.docGrid&&(t.docGrid.linePitch&&(e[\"--docx-doc-grid-line-pitch\"]=t.docGrid.linePitch),i&&t.docGrid.charSpace&&(e.letterSpacing=t.docGrid.charSpace)),this.document.settingsPart?.settings?.kinsoku&&(e.lineBreak=\"strict\",e.wordBreak=\"keep-all\"),this.document.settingsPart?.settings?.overflowPunctuation&&(e.hangingPunctuation=\"allow-end\"),this.document.settingsPart?.settings?.topLinePunctuation&&(e[\"text-spacing-trim\"]=\"space-start\"),(this.document.settingsPart?.settings?.autoSpaceDE||this.document.settingsPart?.settings?.autoSpaceDN)&&(e[\"text-autospace\"]=[this.document.settingsPart?.settings?.autoSpaceDE?\"ideograph-alpha\":null,this.document.settingsPart?.settings?.autoSpaceDN?\"ideograph-numeric\":null].filter(Boolean).join(\" \")),t.columns&&r&&(r>1||t.columns.columns?.length>0)&&(e.columnCount=`${r}`,e.columnGap=t.columns.space,!t.columns.equalWidth&&t.columns.columns?.length>0&&(e.columnWidth=t.columns.columns[0].width,e.columnGap=t.columns.columns[0].space??e.columnGap),t.columns.separator&&(e.columnRule=\"1px solid black\")),this.h({tagName:\"article\",style:e})}async renderSections(t){let e=[];this.processElement(t),this.collectDocumentMetadata(t);let r=this.splitBySection(this.reviewParagraphs(t.children),t.props);this.resolveSectionHeaderFooterReferences(r);let i=this.groupByPageBreaks(r);if(t.backgroundImage){let p=await this.document.loadDocumentImage(t.backgroundImage.id,this.document.documentPart,this.options.externalResourcePolicy).catch(()=>null);p&&(t={...t,cssStyle:{...t.cssStyle,\"background-image\":`url(${JSON.stringify(p)})`,\"background-repeat\":t.backgroundImage.type==\"tile\"?\"repeat\":\"no-repeat\",\"background-position\":\"center\",\"background-size\":t.backgroundImage.type==\"tile\"?\"auto\":\"100% 100%\"}})}let o=null,a=0,s=0,l=new Map,c=new Map,h=new Map,u=new Map,f=p=>{if(!h.has(p)){let m=++s;h.set(p,`${this.className}-section-${m}`),u.set(p,m)}};for(let p of i){let m=p[0].sectProps;f(m),l.set(m,(l.get(m)??0)+1)}this.totalPages=i.length;for(let p=0,m=i.length;p<m;p++){this.currentFootnoteIds=[],this.notePageIndex=p+1;let b=i[p][0].sectProps,T=b;f(b);let S=o!=b;a=S&&b?.pageNumber?.start!=null?b.pageNumber.start:a+1,this.currentPageNumber=a,this.currentSectionNumber=u.get(b)??1,this.currentSectionProps=b,this.currentSectionPageNumber=(c.get(b)??0)+1,this.sectionPageCount=l.get(b)??1,c.set(b,this.currentSectionPageNumber);let I=this.createPageElement(this.className,b,t.cssStyle);I.dataset.docxSection=h.get(b),I.dataset.docxSectionNumber=`${this.currentSectionNumber}`,I.dataset.docxSectionPageNumber=`${this.currentSectionPageNumber}`,I.dataset.docxSectionPageCount=`${this.sectionPageCount}`,I.dataset.docxPageNumber=`${a}`,S&&b?.pageNumber?.start!=null&&(I.dataset.docxPageStart=`${b.pageNumber.start}`),this.options.renderHeaders&&this.renderHeaderFooter(b.headerRefs,b,a,S,I);for(let O of i[p]){this.currentSectionProps=O.sectProps;var d=this.createSectionContent(O.sectProps);O.columnBreak&&(d.style.breakBefore=\"column\"),this.renderElements(O.elements,d),I.appendChild(d),b=O.sectProps}if(this.options.renderFootnotes){let O=this.renderNotes(this.currentFootnoteIds,this.footnoteMap,this.document.footnotesPart,\"footnote\");O&&I.appendChild(O)}if(this.options.renderEndnotes&&p==m-1){let O=this.renderNotes(this.currentEndnoteIds,this.endnoteMap,this.document.endnotesPart,\"endnote\");O&&I.appendChild(O)}this.currentSectionProps=b,this.options.renderFooters&&this.renderHeaderFooter(b.footerRefs,b,a,S,I),this.pageHeaderFooterState.set(I,{headerProps:T,footerProps:b,headerId:this.selectHeaderFooterReference(T.headerRefs,T,a,S)?.id,footerId:this.selectHeaderFooterReference(b.footerRefs,b,a,S)?.id}),e.push(I),await this.yieldDuringRender(p+1,m),o=b}return e}resolveSectionHeaderFooterReferences(t){let e=new Map,r=null,i=(o,a)=>{let s=new Map((a??[]).map(l=>[l.type,l]));for(let l of o??[])s.set(l.type,l);return Array.from(s.values())};for(let o of t){let a=o.sectProps,s=e.get(a);s||(s={...a,headerRefs:i(a.headerRefs,r?.headerRefs),footerRefs:i(a.footerRefs,r?.footerRefs)},e.set(a,s),r=s),o.sectProps=s}}selectHeaderFooterReference(t,e,r,i){let o=!!this.document.settingsPart?.settings?.evenAndOddHeaders,a=e.titlePage&&i?\"first\":o&&r%2==0?\"even\":\"default\";return t?.find(s=>s.type==a)}renderHeaderFooter(t,e,r,i,o){let a=this.selectHeaderFooterReference(t,e,r,i);var s=a&&this.document.findPartByRelId(a.id,this.document.documentPart);if(s?.rootElement){this.currentPart=s;let l=this.headerFooterModels.get(s.path);l||(l=this.cloneRenderData(s.rootElement),this.processElement(l),this.headerFooterModels.set(s.path,l));let[c]=this.renderElements([l],o);e?.pageMargins&&(s.rootElement.type===A.Header?(c.style.marginTop=`calc(${e.pageMargins.header} - ${e.pageMargins.top})`,c.style.minHeight=`calc(${e.pageMargins.top} - ${e.pageMargins.header})`):s.rootElement.type===A.Footer&&(c.style.marginBottom=`calc(${e.pageMargins.footer} - ${e.pageMargins.bottom})`,c.style.minHeight=`calc(${e.pageMargins.bottom} - ${e.pageMargins.footer})`)),this.currentPart=null}else s&&this.options.debug&&console.warn(`docx-preview: skipping ${s.path} because its parsed root element is missing`)}isPageBreakElement(t){return t.type!=A.Break?!1:t.break==\"lastRenderedPageBreak\"?!this.options.ignoreLastRenderedPageBreak:t.break==\"page\"}isPageBreakSection(t,e){return!t||!e?!1:t.pageSize?.orientation!=e.pageSize?.orientation||t.pageSize?.width!=e.pageSize?.width||t.pageSize?.height!=e.pageSize?.height}splitBySection(t,e){this.options.breakPages&&!this.options.ignoreLastRenderedPageBreak&&(t=wm(t,s=>this.isHiddenRevisionForPagination(s)));let r={sectProps:null,elements:[],pageBreak:!1,columnBreak:!1,startsAfterExplicitPageBreak:!1},i=[r],o=(s=!1,l=!1,c=!1)=>{if(r.elements.length==0&&r.sectProps==null){r.pageBreak||(r.pageBreak=s),r.columnBreak||(r.columnBreak=l);return}r.pageBreak||(r.pageBreak=s),r.columnBreak||(r.columnBreak=l),r={sectProps:null,elements:[],pageBreak:!1,columnBreak:!1,startsAfterExplicitPageBreak:c},i.push(r)};for(let s of t){if(s.type!=A.Paragraph){if(s.type==A.Table)for(let f of this.splitTableByPageBreaks(s))f.table.children?.length&&r.elements.push(f.table),f.breakAfter&&o(!0,!1,!0);else r.elements.push(s);continue}let l=s,c=this.findStyle(l.styleName),h=l.pageBreakBefore??c?.paragraphProps?.pageBreakBefore;this.options.breakPages&&h&&r.elements.length>0&&o(!0,!1,!0);let u=this.splitParagraphByPageBreaks(l);for(let f of u){r.elements.push(f.paragraph);let d=f.paragraph.sectionProps;d&&(r.sectProps=d),(f.breakAfter||d)&&(r.endsWithExplicitPageBreak||(r.endsWithExplicitPageBreak=f.explicitPageBreak===!0),o(f.breakAfter||d&&tf(d.type),d&&ef(d.type),f.explicitPageBreak===!0))}}if(i=i.filter(s=>s.elements.length>0),i.length==0)return[{sectProps:e,elements:[],pageBreak:!1,columnBreak:!1}];let a=null;for(let s=i.length-1;s>=0;s--)i[s].sectProps==null?i[s].sectProps=a??e:a=i[s].sectProps;return i}hasPageBreakElement(t){return this.isHiddenRevisionForPagination(t)?!1:this.isPageBreakElement(t)?!0:t.children?.some(e=>this.hasPageBreakElement(e))??!1}splitTableByPageBreaks(t){if(!this.options.breakPages||!t.children?.length)return[{table:t,breakAfter:!1}];if(!t.children.some(s=>this.hasPageBreakElement(s)))return[{table:t,breakAfter:!1}];let e=t.children,r=[];for(let s of e){if(!s.isHeader)break;r.push(s)}let i=[],o=[],a=s=>{if(o.length==0&&i.length>0)return;let l=i.length>0,c=o;l&&r.length>0&&!o.some(h=>h.isHeader)&&(c=[...r.map(u=>{let f={...u};return this.repeatedTableHeaderRows.add(f),f}),...o]),i.push({table:{...t,children:c},breakAfter:s}),o=[]};for(let s of e)o.push(s),this.hasPageBreakElement(s)&&a(!0);return a(!1),i.length>0?i:[{table:t,breakAfter:!1}]}isHiddenRevisionForPagination(t){let e=Ce(this.options),r=e===\"all\"&&this.options.reviewPresentation===\"inline\";return t.type===A.Deleted&&!Mr(e)&&!r||t.type===A.Inserted&&!em(e)}hasOnlyHiddenRevisionTail(t){let e=!1,r=i=>this.isHiddenRevisionForPagination(i)?(e=!0,!0):i.type===A.BookmarkStart||i.type===A.BookmarkEnd?!0:[A.Run,A.Hyperlink,A.Inserted,A.Deleted].includes(i.type)&&i.children?.length>0?i.children.every(r):!1;return t.every(r)&&e}splitElementByPageBreaks(t){if(this.isHiddenRevisionForPagination(t))return[{element:t}];if(this.isPageBreakElement(t))return[{breakAfter:!0,explicitPageBreak:t.break===\"page\"}];if(!t.children?.length)return[{element:t}];let e=[],r={...t,children:[]},i=()=>{r.children.length>0&&e.push({element:r}),r={...t,children:[]}};for(let o of t.children)for(let a of this.splitElementByPageBreaks(o))a.element&&r.children.push(a.element),a.breakAfter&&(i(),e.push({breakAfter:!0,explicitPageBreak:a.explicitPageBreak}));return i(),e.length>0?e:[{element:t}]}splitParagraphByPageBreaks(t){if(!this.options.breakPages||!t.children?.length)return[{paragraph:t,breakAfter:!1}];let e=[],r={...t,children:[]},i=(a,s=!1)=>{(r.children.length>0||e.length==0||s)&&e.push({paragraph:r,breakAfter:a,explicitPageBreak:s}),r={...t,sectionProps:null,children:[]}};for(let a of t.children)for(let s of this.splitElementByPageBreaks(a))s.element&&r.children.push(s.element),s.breakAfter&&i(!0,s.explicitPageBreak===!0);e.length>0&&this.hasOnlyHiddenRevisionTail(r.children)?e[e.length-1].paragraph.children.push(...r.children):(r.children.length>0||e.length==0)&&e.push({paragraph:r,breakAfter:!1});let o=e[e.length-1]?.paragraph;for(let a of e)a.paragraph.sectionProps=a.paragraph===o?t.sectionProps:null;if(t.props?.anchorId&&e.length>1){let a=e.find(s=>this.extractText(s.paragraph).trim())??e[0];for(let s of e)s!==a&&(s.paragraph.props={...s.paragraph.props,anchorId:void 0})}return e}styleValuesForTarget(t,e){return t?.styles?.find(r=>r.target==e)?.values}styleValue(t,e,r){return this.styleValuesForTarget(t,e)?.[r]}effectiveParagraphCssValue(t,e,r){return t.cssStyle?.[r]??this.styleValue(e,\"p\",r)}textBoxAutospace(t,e,r=i=>typeof CSS>\"u\"||typeof CSS.supports!=\"function\"||CSS.supports(\"text-autospace\",i)){let i=l=>!/^(0|false|off)$/i.test(this.effectiveParagraphCssValue(t,e,l)??\"true\"),o=i(\"--docx-auto-space-de\"),a=i(\"--docx-auto-space-dn\"),s=o&&a?\"normal\":o?\"ideograph-alpha\":a?\"ideograph-numeric\":\"no-autospace\";return r(s)?s:\"no-autospace\"}applyTextBoxFontInheritance(t,e,r){if(!this.compatibleTextBoxSpacing)return;let i=t.type==A.Paragraph?t:this.currentParagraph,o=this.findStyle(i?.styleName),a=this.document.stylesPart?.styles?.find(u=>u.id==null),s=[t.cssStyle,this.styleValuesForTarget(e,t.type==A.Paragraph?\"p\":\"span\"),i?.cssStyle,this.styleValuesForTarget(o,\"span\"),this.styleValuesForTarget(a,\"span\")],l=u=>s.find(f=>f?.[u]!=null)?.[u];if(l(\"--docx-partial-eastasia-font\")!=\"true\")return;let c=l(\"--docx-latin-font-family\"),h=l(\"font-family\");!c||!h||(this.setCssStyle(r,\"--docx-latin-font-family\",c),this.setCssStyle(r,\"font-family\",`var(--docx-latin-font-family), ${h}`))}isInsideTableCell(t){for(let e=t.parent;e;e=e.parent)if(e.type==A.Cell)return!0;return!1}paragraphUsesDocumentGrid(t,e){if(!this.currentSectionProps?.docGrid?.linePitch||this.isInsideTableCell(t)&&!this.document.settingsPart?.settings?.adjustLineHeightInTable)return!1;let i=this.effectiveParagraphCssValue(t,e,\"--docx-snap-to-grid\");return i==null||!/^(0|false|off)$/i.test(i)}setCssStyle(t,e,r){let i=t.style;typeof i.setProperty==\"function\"?i.setProperty(e,r):i[e]=r}applyDocumentGridMinimumHeight(t,e,r,i){let o=this.effectiveParagraphCssValue(t,e,\"min-height\");this.setCssStyle(r,\"min-height\",o?`max(${o}, ${i})`:i)}applyDocumentGridLinePitch(t,e,r){if(!this.paragraphUsesDocumentGrid(t,e))return;let i=this.currentSectionProps.docGrid.linePitch,o=this.effectiveParagraphCssValue(t,e,\"line-height\"),a=t.lineSpacing??e?.paragraphProps?.lineSpacing;if(o){if(a?.lineRule==\"exact\"||a?.lineRule==\"exactly\")return;let s=/^-?\\d+(?:\\.\\d+)?$/.test(o)?`calc(${o} * 1em)`:o;this.preserveGridInlineMetrics(r),this.setCssStyle(r,\"line-height\",`max(${s}, ${i})`),this.applyDocumentGridMinimumHeight(t,e,r,i);return}this.applyDocumentGridMinimumHeight(t,e,r,i)}preserveGridInlineMetrics(t){let e=/^(span|a|sub|sup|b|i|u|s|strike|strong|em)$/,r=i=>{for(let o of Array.from(i.children??[])){if(o.namespaceURI!==Dt.html||!e.test(o.localName)||!o.style)continue;let a=o.style;if(o.dataset?.docxTextScale&&a.display===\"block\"){r(o);continue}a.lineHeight||a.display&&a.display!==\"inline\"||/^(absolute|fixed)$/.test(a.position)||a.cssFloat&&a.cssFloat!==\"none\"||(a.lineHeight=\"normal\",r(o))}};r(t)}groupByPageBreaks(t){let e=[],r=null,i=[e];for(let a of t)r&&(r.pageBreak||this.isPageBreakSection(r.sectProps,a.sectProps))&&(e=[],i.push(e)),e.push(a),r=a;let o=i.filter(a=>a.length>0).filter(a=>a[0]?.startsAfterExplicitPageBreak||a.some(s=>s.endsWithExplicitPageBreak||s.elements.some(l=>this.hasPageModelContent(l))));return o.length>0?o:i.filter(a=>a.length>0).slice(0,1)}hasPageModelContent(t){if(!t||this.isHiddenRevisionForPagination(t))return!1;switch(t.type){case A.Text:case A.DeletedText:return!!t.text?.trim();case A.Break:case A.Symbol:case A.Drawing:case A.Image:case A.Table:case A.VmlPicture:case A.VmlElement:case A.MmlMath:case A.MmlMathParagraph:case A.Shape:case A.Chart:case A.SmartArt:case A.Ink:case A.AltChunk:case A.FootnoteReference:case A.EndnoteReference:return!0}return t.children?.some(e=>this.hasPageModelContent(e))??!1}async yieldDuringRender(t,e){let r=this.options.renderPageBatchSize??0;this.options.progress&&this.options.progress({phase:\"render\",current:t,total:e,message:`Rendered ${t}/${e} logical pages`}),r>0&&t%r==0&&await this.yieldToBrowser()}async yieldToBrowser(){(this.options.renderYieldEveryMs??0)<=0||await new Promise(t=>{let e=globalThis;typeof e.requestIdleCallback==\"function\"?e.requestIdleCallback(()=>t(),{timeout:Math.max(1,this.options.renderYieldEveryMs??16)}):typeof e.requestAnimationFrame==\"function\"?e.requestAnimationFrame(()=>t()):setTimeout(t,0)})}renderWrapper(t){let e=this.h({tagName:\"div\",className:this.className+\"-wrapper\",children:t});return Zr(this.options)&&(e.dataset.docxReviewEnabled=\"true\",e.dataset.docxReviewMode=Ce(this.options),e.dataset.docxReviewPresentation=this.options.reviewPresentation??\"balloon\"),e}shouldRunDynamicPagination(){return!!(this.options.breakPages&&this.options.fixedPageHeight&&!this.options.ignoreHeight&&typeof document<\"u\"&&typeof requestAnimationFrame==\"function\")}scheduleDynamicPagination(t,e=Hn(t)){!t?.isConnected||!e.isCurrent()||t.dataset.docxPaginated==\"true\"||t.dataset.docxPaginating==\"true\"||t.dataset.docxPaginationScheduled==\"true\"||(t.dataset.docxPaginationScheduled=\"true\",delete t.dataset.docxLayoutError,Un(t,this.tasks,e).then(async()=>{await this.yieldToBrowser(),t.isConnected&&e.isCurrent()&&await this.performDynamicPagination(t,e)}).catch(r=>{delete t.dataset.docxPaginating,t.isConnected&&e.isCurrent()&&(t.dataset.docxLayoutError=r?.message??\"DOCX layout failed\")}).finally(()=>{delete t.dataset.docxPaginationScheduled,t.isConnected||delete t.dataset.docxPaginating}))}async performDynamicPagination(t,e=Ai(t)){if(!t||t.dataset.docxPaginated==\"true\"||t.dataset.docxPaginating==\"true\"||!t.isConnected||!e.isCurrent())return;if(delete t.dataset.docxPaginationScheduled,t.dataset.docxPaginating=\"true\",this.syncDynamicNotes(t),await this.prepareLayout(t,e),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}let r=Array.from(t.querySelectorAll(\":scope > section.\"+this.className)),i=this.options.maxDynamicPaginationPasses??1e3,o=0;for(let a=0;a<r.length;a++){let s=r[a];if(a%2==0&&await this.yieldToBrowser(),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}for(;this.isPageOverflowing(s)&&o++<i;){let l=Array.from(s.querySelectorAll(\":scope > article\"));if(!l.some(f=>f.children.length>0)&&!s.querySelector(\":scope > [data-docx-note-list] > li\"))break;let c=this.createContinuationPage(s);if(await this.refreshDynamicHeaderFooters([...r.slice(0,a+1),c,...r.slice(a+1)]),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}let h=Array.from(c.querySelectorAll(\":scope > article\")),u=this.splitDynamicNotes(s,c);for(let f=l.length-1;f>=0&&this.isPageOverflowing(s);f--){let d=l[f],p=h[f],m=0;if(p){for(;this.isPageOverflowing(s)&&d.lastElementChild&&m++<500;){if(m%20==0&&await this.yieldToBrowser(),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}if(d.children.length>1){if(this.moveOverflowingTail(d,s,p)){u=!0;continue}let g=this.pickPaginationChunk(d);if(g.length==0)break;if(g.length>=d.children.length){if(this.splitOverflowBlock(d.lastElementChild,s,p)){u=!0;continue}g=[d.lastElementChild]}for(let b=g.length-1;b>=0;b--)p.prepend(g[b]),u=!0}else{if(!this.splitOverflowBlock(d.lastElementChild,s,p))break;u=!0}}if(f>0&&this.isPageOverflowing(s))for(;d.lastElementChild;)p.prepend(d.lastElementChild),u=!0}}if(u||(u=Array.from(c.children).some(f=>f.dataset.docxNoteList&&f.children.length>0)),!u){if(c.remove(),this.syncDynamicNotes(t),await this.refreshDynamicHeaderFooters(r),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}break}this.refreshTabStops(t),this.refreshAnchors(t),r.splice(a+1,0,c)}}if(o>=i&&r.some(a=>this.isPageOverflowing(a)))throw new Error(\"DOCX pagination exceeded the configured pass budget\");if(this.cleanupEmptyNumberedParagraphs(t),this.removeEmptyDynamicPages(t),e.acceptLayoutChanges?.(t),this.syncDynamicNotes(t),await this.refreshDynamicHeaderFooters(Array.from(t.querySelectorAll(\":scope > section.\"+this.className))),!t.isConnected||!e.isCurrent()){delete t.dataset.docxPaginating;return}this.updateDynamicFieldPages(t),this.refreshTabStops(t),this.refreshAnchors(t),this.assertDynamicNotesFit(t),delete t.dataset.docxPaginating,t.dataset.docxPaginated=\"true\"}moveOverflowingTail(t,e,r){let i=t.ownerDocument?.defaultView;if(!i||t.children.length<3)return!1;let o=i.getComputedStyle(t);if(o.display!==\"block\"||![\"auto\",\"1\"].includes(o.columnCount)||o.columnWidth!==\"auto\"||o.writingMode!==\"horizontal-tb\")return!1;let a=Array.from(t.children),s=this.getPageBodyBottom(e)+(this.options.paginationTolerance??2),l=a.length;for(;l>1;){let h=l-1;for(;h>0&&this.isKeepWithNext(a[h-1]);)h--;if(h===0)break;let u=!0;for(let f=h;f<l;f++){let d=a[f],p=i.getComputedStyle(d),m=d.getBoundingClientRect();if(!/^(P|TABLE)$/.test(d.tagName)||![\"block\",\"table\",\"list-item\"].includes(p.display)||p.position!==\"static\"||p.cssFloat!==\"none\"||p.transform!==\"none\"||p.clear!==\"none\"||p.writingMode!==\"horizontal-tb\"||!(parseFloat(p.marginTop)>=0&&parseFloat(p.marginBottom)>=0)||!(m.top>s&&m.bottom>m.top)||d.querySelector(\"[data-docx-float]\")){u=!1;break}}if(!u)break;l=h}if(a.length-l<2)return!1;let c=t.ownerDocument.createDocumentFragment();for(let h=l;h<a.length;h++)c.appendChild(a[h]);return r.prepend(c),!0}pickPaginationChunk(t){let e=Array.from(t.children);if(e.length==0)return[];let r=e.length-1;for(;r>0&&this.isKeepWithNext(e[r-1]);)r--;return e.slice(r)}isKeepWithNext(t){if(t.dataset.docxKeepNext==\"true\")return!0;let e=getComputedStyle(t);return e.breakAfter==\"avoid\"||e.pageBreakAfter==\"avoid\"}isPageOverflowing(t){t.parentElement&&this.syncDynamicNotes(t.parentElement),this.refreshTabStops(t);let e=this.options.paginationTolerance??2;if(t.clientHeight<=0)return!1;let i=t.getBoundingClientRect(),o=this.getPageBodyBottom(t),a=i.top;for(let c of Array.from(t.children)){let h=c.getBoundingClientRect();if(a=Math.max(a,h.bottom),c.tagName.toLowerCase()==\"article\"){if(h.bottom>o+e)return!0;for(let u of Array.from(c.children)){let f=u.getBoundingClientRect();if(a=Math.max(a,f.bottom),f.bottom>o+e)return!0}}}let s=this.getPageNoteBottom(t);return Array.from(t.querySelectorAll(\":scope > [data-docx-note-list]\")).some(c=>Array.from(c.querySelectorAll(\"*\")).some(h=>h.getBoundingClientRect().bottom>s+e))||a>i.bottom+e}createContinuationPage(t,e=!0){let r=t.cloneNode(!1);r.dataset.docxDynamicPage=\"true\",r.removeAttribute(\"id\"),delete r.dataset.docxPageStart;let i=this.pageHeaderFooterState.get(t);i&&this.pageHeaderFooterState.set(r,{...i});for(let o of Array.from(t.childNodes)){if(o.nodeType===1&&o.dataset.docxNoteList)continue;let a=o.nodeType===1&&o.localName===\"article\";r.appendChild(o.cloneNode(!a))}return e&&t.after(r),r}syncDynamicNotes(t){let e=this.dynamicNoteState.get(t);if(!e){e={references:Array.from(t.querySelectorAll(\"article [data-docx-note-reference]\")),items:[],fragments:new Map,owners:new Map,text:new Map,fields:new Map};let c=new Map;for(let h of Array.from(t.querySelectorAll(\"[data-docx-note-list] > li[data-docx-note-id]\"))){let u=`${h.dataset.docxNoteKind}:${h.dataset.docxNoteId}`,f=c.get(u);f||(c.set(u,f=h),e.items.push(f),e.fragments.set(f,[]),e.fields.set(f,[]));let d=e.fragments.get(f);h.dataset.docxNoteFragment=`${d.length}`,d.push(h),e.fields.get(f).push(...Array.from(h.querySelectorAll(\"[data-docx-field-instr]\"))),e.text.set(f,(e.text.get(f)??\"\")+this.noteTextSignature(h,e.fields.get(f)))}this.dynamicNoteState.set(t,e)}if(e.items.length===0)return;let r=Array.from(t.querySelectorAll(`:scope > section.${this.className}`));if(r.length===0)return;let i=new Set(r),o=c=>{for(;c&&!i.has(c);)c=c.parentElement;return c},a=new Map;for(let c of e.references){if(c.dataset.docxNoteHidden===\"true\")continue;let h=`${c.dataset.docxNoteReference}:${c.dataset.docxNoteId}`;if(a.has(h))continue;let u=o(c);u&&a.set(h,u)}let s=r.slice().reverse().find(c=>c.querySelector(':scope > [data-docx-note-list=\"footnote\"] > li')||Array.from(c.querySelectorAll(\":scope > article > *\")).some(h=>this.hasVisiblePaginationContent(h)))??r[0],l=new Map;for(let c of e.items){let h=c.dataset.docxNoteKind,u=e.owners.get(c),f=h===\"endnote\"?i.has(u)&&r.indexOf(u)>=r.indexOf(s)?u:s:a.get(`${h}:${c.dataset.docxNoteId}`);if(!f){c.dataset.docxNoteOwnershipError=\"missing-reference\";continue}delete c.dataset.docxNoteOwnershipError;let d=e.fragments.get(c);if(u&&u!==f||d.some(p=>!o(p))){for(let p of d.slice(1))this.mergeNoteContents(c,p),p.remove();d.splice(1)}e.owners.set(c,f);for(let p=0;p<d.length;p++){let m=d[p];m.dataset.docxNoteFragment=`${p}`;let g=p===0?f:o(m),b=l.get(g);b||l.set(g,b=new Map);let T=b.get(h);T||b.set(h,T=[]),T.push(m)}}for(let[c,h]of l)for(let u of[\"footnote\",\"endnote\"]){let f=h.get(u);if(!f)continue;let d=this.getOrCreateNoteList(c,u);for(let p=0;p<f.length;p++)d.children[p]!==f[p]&&d.insertBefore(f[p],d.children[p]??null)}for(let c of r)for(let h of Array.from(c.children))h.dataset.docxNoteList&&h.children.length===0&&h.remove()}getOrCreateNoteList(t,e){let r=Array.from(t.children).find(i=>i.dataset.docxNoteList===e);if(!r){r=this.h({tagName:\"ol\"}),r.dataset.docxNoteList=e;let i=Array.from(t.children).find(o=>o.localName===\"footer\"||e===\"footnote\"&&o.dataset.docxNoteList===\"endnote\");t.insertBefore(r,i??null)}return r}mergeNoteContents(t,e){let r=i=>{for(;this.noteContinuationOrigins.has(i);)i=this.noteContinuationOrigins.get(i);return i};for(let i of Array.from(e.childNodes)){let o=t.lastChild;i.nodeType===1&&o?.nodeType===1&&r(i)===r(o)?(this.mergeNoteContents(o,i),i.id&&!o.id&&(o.id=i.id),i.remove()):i.nodeType===1&&i.dataset.docxNoteColumns===\"true\"?i.remove():t.appendChild(i)}}getPageNoteBottom(t){let e=t.getBoundingClientRect(),r=t.ownerDocument?.defaultView;if(!r)return e.bottom;let i=r.getComputedStyle(t),o=u=>Number.parseFloat(u)||0,a=e.bottom-o(i.borderBottomWidth)-o(i.paddingBottom),s=Array.from(t.children).find(u=>u.localName===\"footer\");if(!s)return a;let l=r.getComputedStyle(s),c=s.getBoundingClientRect(),h=c.height+o(l.marginTop)+o(l.marginBottom);return Math.min(a,a-h,c.top-o(l.marginTop))}getPageBodyBottom(t){let e=Array.from(t.children).filter(o=>o.dataset.docxNoteList),r=t.ownerDocument?.defaultView;if(!r)return t.getBoundingClientRect().bottom;let i=this.getPageNoteBottom(t);for(let o of e){let a=o.getBoundingClientRect(),s=r.getComputedStyle(o),l=a.bottom;for(let c of Array.from(o.querySelectorAll(\"*\")))l=Math.max(l,c.getBoundingClientRect().bottom);i-=Math.max(a.height,l-a.top)+(Number.parseFloat(s.marginTop)||0)+(Number.parseFloat(s.marginBottom)||0)}return i}getMinimumNoteBodyBottom(t){let r=t.ownerDocument?.defaultView?.getComputedStyle(t),i=t.getBoundingClientRect().top+(parseFloat(r?.paddingTop)||0)+(parseFloat(r?.borderTopWidth)||0),o=t.querySelector(\":scope > header\");o&&(i=Math.max(i,o.getBoundingClientRect().bottom));let a=Array.from(t.querySelectorAll(\":scope > article > *\")).find(u=>this.hasVisiblePaginationContent(u));if(!a)return i;let s=a.getBoundingClientRect();if(a.localName===\"table\"){let u=this.tableContentRows(a)[0];if(u)return Math.max(i,u.getBoundingClientRect().bottom,...Array.from(u.cells,f=>f.getBoundingClientRect().bottom))}if(a.localName!==\"p\"||a.dataset.docxKeepLines===\"true\")return Math.max(i,s.bottom);let l=[],c=t.ownerDocument.createTreeWalker(a,NodeFilter.SHOW_TEXT);for(;c.nextNode();){let u=t.ownerDocument.createRange();u.selectNodeContents(c.currentNode);for(let f of Array.from(u.getClientRects()))f.height>0&&f.width>0&&l.push(f)}l.sort((u,f)=>u.top-f.top);let h=l.find(u=>u.top>(l[0]?.top??1/0)+2);return Math.max(i,h?s.top+h.top-l[0].top:s.bottom)}moveEndnotesAfterBody(t,e){let r=this.dynamicNoteState.get(t.parentElement);if(!r||!t.querySelector(\":scope > article > *\")||!this.isPageOverflowing(t))return!1;let i=Array.from(t.querySelectorAll(':scope > [data-docx-note-list=\"endnote\"] > li'));if(!i.length||i.some(c=>r.fragments.get(c)?.length!==1))return!1;let o=i[0].parentElement,a=o.nextSibling,s=i.map(c=>({item:c,next:c.nextSibling,owner:r.owners.get(c)})),l=this.getOrCreateNoteList(e,\"endnote\");for(let c of i)l.appendChild(c),r.owners.set(c,e);if(o.children.length||o.remove(),!this.isPageOverflowing(t))return!0;o.parentNode!==t&&t.insertBefore(o,a?.parentNode===t?a:null);for(let{item:c,next:h,owner:u}of s.reverse())o.insertBefore(c,h?.parentNode===o?h:null),r.owners.set(c,u);return l.children.length||l.remove(),!1}splitDynamicNotes(t,e){let r=t.parentElement,i=this.dynamicNoteState.get(r);if(!i?.items.length||t.clientHeight<=0)return!1;if(this.moveEndnotesAfterBody(t,e))return!0;let o=this.options.paginationTolerance??2,a=this.getMinimumNoteBodyBottom(t),s=()=>this.getPageBodyBottom(t)+o<a;if(!s())return!1;let l=!1,c=new Map,h=Array.from(t.querySelectorAll(\":scope > [data-docx-note-list] > li\"));for(let u of h.slice().reverse()){if(!s())break;let f=i.items.find(H=>H.dataset.docxNoteKind===u.dataset.docxNoteKind&&H.dataset.docxNoteId===u.dataset.docxNoteId);if(!f)continue;let d=i.fragments.get(f),p=d.indexOf(u),m=u.dataset.docxNoteKind,g=this.getOrCreateNoteList(e,m);if(m===\"endnote\"&&p===0&&t.querySelector(\":scope > article > *\")){let H=u.parentElement;g.prepend(u),H.children.length||H.remove(),i.owners.set(f,e),l=!0;continue}let b=Array.from(t.querySelectorAll(\":scope > [data-docx-note-list] > li\")),T=new Map(b.map(H=>[H,this.getNoteItemHeight(H)])),S=this.getPageBodyBottom(t)-a+Array.from(T.values()).reduce((H,nt)=>H+nt,0);for(let H of b)c.has(H)||c.set(H,this.measureNoteMinimum(H,e,t));let I=b.find(H=>c.get(H)>S+o);if(I)throw e.remove(),this.syncDynamicNotes(r),t.dataset.docxNoteLayoutError=r.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: unbreakable ${I.dataset.docxNoteKind}:${I.dataset.docxNoteId} exceeds its note region; all note content has been preserved`);let O=S-b.reduce((H,nt)=>H+c.get(nt),0),$=b.map(H=>Math.max(0,T.get(H)-c.get(H))).sort((H,nt)=>H-nt),k=$.length;for(let H of $){if(H*k>O)break;O-=H,k--}let W=k>0?Math.max(0,O/k):1/0,U=c.get(u)+Math.min(T.get(u)-c.get(u),W),v=()=>s()&&this.getNoteItemHeight(u)>U;if(!v()){g.children.length||g.remove();continue}let _=this.cloneBlockShell(u);if(_.dataset.docxNoteFragment=`${p+1}`,_.dataset.docxContinued=\"true\",g.prepend(_),!this.moveNoteItemTail(u,_,t,v)||!this.hasVisibleNoteContent(u)||v()&&this.getNoteItemHeight(u)>S+o){if(this.mergeNoteContents(u,_),_.remove(),p>0&&this.getNoteItemHeight(u)<=S+o&&t.querySelector(\":scope > article > *\")){g.prepend(u),l=!0;continue}if(g.children.length||g.remove(),s()&&(h.length===1||this.getNoteItemHeight(u)>S+o))throw e.remove(),this.syncDynamicNotes(r),t.dataset.docxNoteLayoutError=r.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: unbreakable ${m}:${u.dataset.docxNoteId} exceeds its note region; all note content has been preserved`);continue}d.splice(p+1,0,_),d.forEach((H,nt)=>H.dataset.docxNoteFragment=`${nt}`),l=!0}return this.syncDynamicNotes(r),l}measureNoteMinimum(t,e,r){let i=this.getOrCreateNoteList(e,t.dataset.docxNoteKind),o=this.cloneBlockShell(t);o.dataset.docxNoteFragment=\"1\",i.appendChild(o);try{return this.moveNoteItemTail(t,o,r,()=>!0),this.getNoteItemHeight(t)}finally{this.mergeNoteContents(t,o),o.remove()}}moveNoteItemTail(t,e,r,i){let o=!1;for(;i()&&t.lastChild;){let a=t.lastChild;if(t.childNodes.length>1&&this.hasNoteContentOutside(t,a))e.prepend(a),o=!0;else if(a.nodeType===1&&this.splitNoteBlock(a,e,r,i,t))o=!0;else break}return o}hasNoteContentOutside(t,e){let r=Array.from(t.childNodes);for(;r.length;){let i=r.pop();if(i!==e){if(i.nodeType===Node.TEXT_NODE&&i.textContent.length>0)return!0;if(i.nodeType===1){if(this.isNoteAtomicElement(i))return!0;r.push(...Array.from(i.childNodes))}}}return!1}firstNoteTextBoundary(t){let e=globalThis.Intl?.Segmenter;if(e){let o=0;for(let a of new e(void 0,{granularity:\"grapheme\"}).segment(t))if(o||(o=a.segment.length),a.segment.trim())return a.index+a.segment.length;return o}let r=t.search(/\\S/),i=Math.max(0,r);return i+(t.codePointAt(i)>65535?2:1)}getNoteItemHeight(t){let e=t.getBoundingClientRect(),r=e.bottom;for(let o of Array.from(t.querySelectorAll(\"*\")))r=Math.max(r,o.getBoundingClientRect().bottom);let i=t.ownerDocument.defaultView.getComputedStyle(t);return Math.max(e.height,r-e.top)+(parseFloat(i.marginTop)||0)+(parseFloat(i.marginBottom)||0)}hasVisibleNoteContent(t){return!!t.textContent?.length||!!t.querySelector(\"img,svg,math,object,canvas,video,br,[data-docx-field-instr]\")}splitNoteBlock(t,e,r,i,o=t.parentElement){let a=t.ownerDocument.defaultView.getComputedStyle(t);if(t.dataset.docxKeepLines===\"true\"||a.breakInside===\"avoid\"||a.pageBreakInside===\"avoid\"||!/^(p|table|div|blockquote)$/.test(t.localName))return!1;let s=this.cloneBlockShell(t);s.dataset.docxContinued=\"true\",this.noteContinuationOrigins.set(s,t),e.prepend(s);let l=!1;if(t.localName===\"table\"){for(let d of Array.from(t.querySelectorAll(\":scope > colgroup\"))){let p=d.cloneNode(!0);p.removeAttribute(\"id\"),p.querySelectorAll(\"[id]\").forEach(m=>m.removeAttribute(\"id\")),p.dataset.docxNoteColumns=\"true\",s.appendChild(p)}let c=new Map,h=(d,p)=>{if(p===t){s.appendChild(d);return}let m=c.get(p);m||(m=this.cloneBlockShell(p),this.noteContinuationOrigins.set(m,p),c.set(p,m),s.appendChild(m)),m.appendChild(d)},u=this.tableContentRows(t),f=u.length-1;for(;f>0&&u.slice(0,f).some((d,p)=>Array.from(d.cells).some(m=>p+m.rowSpan>f));)f--;if(f>0){for(let d of u.slice(f))h(d,d.parentElement);l=!0}else if(u.length===1&&u[0].cells.length===1&&u[0].cells[0].rowSpan===1){let d=u[0],p=d.cells[0],m=d.ownerDocument.defaultView.getComputedStyle(d);if(m.breakInside!==\"avoid\"&&m.pageBreakInside!==\"avoid\"){let g=this.cloneBlockShell(d),b=this.cloneBlockShell(p);this.noteContinuationOrigins.set(g,d),this.noteContinuationOrigins.set(b,p),h(g,d.parentElement),g.appendChild(b),l=this.moveNoteBlockTail(p,b,r,i,o)}}}else if(t.localName===\"p\")for(;i()&&t.lastChild&&this.moveNoteTailNode(t,s,r,i,o);)l=!0;else l=this.moveNoteBlockTail(t,s,r,i,o);return l?t.hasChildNodes()||(t.id&&(s.id=t.id),t.remove()):s.remove(),l}moveNoteBlockTail(t,e,r,i,o){let a=!1;for(;i()&&t.lastChild;){let s=t.lastChild;if(t.childNodes.length>1&&this.hasNoteContentOutside(o,s))e.prepend(s),a=!0;else if(s.nodeType===1&&this.splitNoteBlock(s,e,r,i,o))a=!0;else break}return a}moveNoteTailNode(t,e,r,i,o){let a=t.lastChild;if(!a)return!1;if(a.nodeType===Node.TEXT_NODE){let s=this.hasNoteContentOutside(o,a)?0:this.firstNoteTextBoundary(a.textContent);return this.moveTextTail(a,e,r,i,!0,s)}if(a.nodeType===1){let s=a;if(s.hasChildNodes()&&!this.isNoteAtomicElement(s)&&!s.dataset.docxFloat&&!s.dataset.docxNoteReference){let l=this.cloneBlockShell(s);l.removeAttribute(\"name\"),this.noteContinuationOrigins.set(l,s),e.prepend(l);let c=this.moveNoteTailNode(s,l,r,i,o);return s.hasChildNodes()||(s.id&&(l.id=s.id),s.hasAttribute(\"name\")&&l.setAttribute(\"name\",s.getAttribute(\"name\")),s.remove()),l.hasChildNodes()||l.remove(),c}}return a.nodeType===1&&this.isNoteAtomicElement(a)&&!this.hasNoteContentOutside(o,a)?!1:(e.prepend(a),!0)}isNoteAtomicElement(t){return/^(img|svg|math|object|canvas|video|picture|br)$/i.test(t.localName)||t.hasAttribute(\"data-docx-field-instr\")}isMutableNoteField(t){if(!t.hasAttribute(\"data-docx-field-instr\"))return!1;let r=this.tokenizeFieldInstruction((t.dataset.docxFieldInstr??\"\").replace(/\\s+/g,\" \").trim())[0]?.replace(/^=/,\"\").toUpperCase();return[\"PAGE\",\"NUMPAGES\",\"SECTIONPAGES\",\"SECTION\"].includes(r)||r===\"PAGEREF\"&&!!this.options.updatePageReferences}noteTextSignature(t,e){let r=i=>i.nodeType===Node.TEXT_NODE?i.textContent:i.nodeType===1&&this.isMutableNoteField(i)?`\\0docx-field-${e.indexOf(i)}\\0`:Array.from(i.childNodes).map(r).join(\"\");return r(t)}assertDynamicNotesFit(t){let e=[],r=this.dynamicNoteState.get(t);if(r)for(let o of r.items){let a=r.fragments.get(o),s=r.fields.get(o),l=a.flatMap(c=>Array.from(c.querySelectorAll(\"[data-docx-field-instr]\")));(a.map(c=>this.noteTextSignature(c,s)).join(\"\")!==r.text.get(o)||l.length!==s.length||l.some((c,h)=>c!==s[h])||a.some((c,h)=>!t.contains(c)||c.dataset.docxNoteFragment!==`${h}`))&&e.push(`fragment conservation ${o.dataset.docxNoteKind}:${o.dataset.docxNoteId}`)}let i=this.options.paginationTolerance??2;for(let o of Array.from(t.querySelectorAll(`:scope > section.${this.className}`))){let a=Array.from(o.children).filter(u=>u.dataset.docxNoteList);if(!a.length||o.clientHeight<=0)continue;delete o.dataset.docxNoteLayoutError;let s=this.getPageBodyBottom(o),l=this.getPageNoteBottom(o),c=Array.from(o.querySelectorAll(\":scope > article > *\")).some(u=>u.getBoundingClientRect().bottom>s+i),h=a.some(u=>Array.from(u.querySelectorAll(\"*\")).some(f=>f.getBoundingClientRect().bottom>l+i));(c||h)&&(o.dataset.docxNoteLayoutError=\"unresolved-overflow\",e.push(a.flatMap(u=>Array.from(u.children,f=>`${f.dataset.docxNoteKind}:${f.dataset.docxNoteId}`)).join(\",\")))}if(e.length)throw t.dataset.docxNoteLayoutError=\"unresolved-overflow\",new Error(`docx-preview: note layout requires continuation or unsupported geometry (${e.join(\"; \")}); all note content has been preserved`);delete t.dataset.docxNoteLayoutError}async refreshDynamicHeaderFooters(t){let e=\"\",r=0,i=0,o=this.tasks.length;for(let a of t){let s=a.dataset.docxSection??\"\",l=s!==e;if(l){let h=Number(a.dataset.docxPageStart);r=a.dataset.docxPageStart!=null&&Number.isFinite(h)?h:r+1,i=1,e=s}else r++,i++;let c=this.pageHeaderFooterState.get(a);if(c){this.currentPageNumber=r,this.currentSectionPageNumber=i,this.currentSectionNumber=Number(a.dataset.docxSectionNumber)||1;for(let h of[\"header\",\"footer\"]){let u=h===\"header\"?c.headerProps:c.footerProps,f=h===\"header\"?u.headerRefs:u.footerRefs,d=h===\"header\"?\"headerId\":\"footerId\",p=this.selectHeaderFooterReference(f,u,r,l);if(c[d]!==p?.id&&(c[d]=p?.id,a.querySelector(`:scope > ${h}`)?.remove(),(h===\"header\"?this.options.renderHeaders:this.options.renderFooters)&&(this.currentSectionProps=u,this.renderHeaderFooter(f,u,r,l,a),h===\"header\"))){let m=a.querySelector(\":scope > header\");m&&a.prepend(m)}}}}await Promise.allSettled(this.tasks.slice(o))}splitOverflowBlock(t,e,r){if(!r.isConnected&&e.isConnected&&r.parentElement&&e.after(r.parentElement),!t||t.dataset.docxKeepLines==\"true\")return!1;let i=getComputedStyle(t);if(i.breakInside==\"avoid\"||i.pageBreakInside==\"avoid\")return!1;switch(t.tagName.toLowerCase()){case\"p\":return this.splitParagraphBlock(t,e,r);case\"table\":return this.splitTableBlock(t,e,r)}return!1}splitParagraphBlock(t,e,r){if(!t.hasChildNodes()||this.fitOversizedInlinePicture(t,e))return!1;let i=this.cloneBlockShell(t);i.dataset.docxContinued=\"true\",r.prepend(i);let o=!1,a=0;for(;this.isPageOverflowing(e)&&t.hasChildNodes()&&a++<1e3&&this.moveTailInlineNode(t,i,e);)o=!0,this.removeEmptyInlineContainers(t);return o?(t.hasChildNodes()?this.options.strictWordCompatibility&&t.dataset.docxWidowControl==\"true\"&&this.rebalanceWidowOrphan(t,i,e):t.remove(),!0):(i.remove(),!1)}fitOversizedInlinePicture(t,e){let r=t.parentElement;if(r?.localName!==\"article\"||r.firstElementChild!==t||e.querySelector(\":scope > article > *\")!==t||t.textContent?.trim()||t.querySelector(\"table,math,object,canvas,video,[data-docx-note-reference]\"))return!1;let i=Array.from(t.querySelectorAll(\"[data-docx-drawing]\")),o=i[0];if(i.length!==1||!o||o.children.length!==1||t.querySelectorAll(\"img\").length!==1||o.dataset.docxFloat)return!1;let a=o.firstElementChild;if(a.localName!==\"img\"&&a.dataset.docxImageCrop!==\"true\")return!1;let s=t.ownerDocument.defaultView,l=s?.getComputedStyle(o);if(!s||!l||l.position===\"absolute\"||l.position===\"fixed\"||l.transform!==\"none\"||l.cssFloat!==\"none\")return!1;let c=t.getBoundingClientRect(),h=o.getBoundingClientRect(),u=e.getBoundingClientRect(),f=e.clientHeight>0?u.height/e.clientHeight:1,d=(parseFloat(s.getComputedStyle(t).marginBottom)||0)*f,p=Math.max(0,c.height-h.height),m=this.getPageBodyBottom(e)-c.top-p-d-f,g=parseFloat(l.width),b=parseFloat(l.height);if(![m,g,b,h.height].every(Number.isFinite)||m<=0||g<=0||b<=0||h.height<=m)return!1;let T=m/h.height;return o.style.width=`${g*T}px`,o.style.height=`${b*T}px`,a.style.width=\"100%\",a.style.height=\"100%\",o.dataset.docxPageFitScale=`${T}`,!0}splitTableBlock(t,e,r){let i=this.tableContentRows(t);if(i.length<=1)return!1;let o=this.cloneBlockShell(t);o.dataset.docxContinued=\"true\";for(let l of Array.from(t.children))l.tagName?.toLowerCase()==\"colgroup\"&&o.appendChild(l.cloneNode(!0));for(let l of i.filter(c=>c.dataset.docxRepeatHeader==\"true\")){let c=l.cloneNode(!0);c.dataset.docxRepeatedHeader=\"true\",o.appendChild(c)}r.prepend(o);let a=!1,s=0;for(;this.isPageOverflowing(e)&&this.tableContentRows(t).length>1&&s++<500;){let l=this.tableContentRows(t).filter(h=>h.dataset.docxRepeatedHeader!=\"true\"),c=l[l.length-1];if(!c)break;o.insertBefore(c,this.firstMovedTableRow(o)),a=!0}return a?!0:(o.remove(),!1)}cloneBlockShell(t){let e=t.cloneNode(!1);return e.removeAttribute(\"id\"),e}tableContentRows(t){return Array.from(t.querySelectorAll(\":scope > tr, :scope > tbody > tr\"))}firstMovedTableRow(t){return this.tableContentRows(t).find(e=>e.dataset.docxRepeatedHeader!=\"true\")??null}moveTailInlineNode(t,e,r){let i=t.lastChild;if(!i)return!1;if(i.nodeType==Node.TEXT_NODE)return this.moveTextTail(i,e,r);if(i instanceof Element){if(i.dataset?.docxNoteReference)return e.prepend(i),!0;if(i.childNodes.length>0&&i.tagName?.toLowerCase()!=\"br\"){let o=i.cloneNode(!1);o.removeAttribute(\"id\"),e.prepend(o);let a=this.moveTailInlineNode(i,o,r);return i.hasChildNodes()||i.remove(),o.hasChildNodes()||o.remove(),a}}return e.prepend(i),!0}moveTextTail(t,e,r,i=()=>this.isPageOverflowing(r),o=!1,a=0){let s=t.data??\"\";if(!s||s.length<=a)return!1;let l=document.createTextNode(\"\");if(e.prepend(l),s.length==1)return l.data=s,t.remove(),!0;let c=1,h=s.length-a,u=h;for(;c<=h;){let f=Math.floor((c+h)/2);t.data=s.substring(0,s.length-f),l.data=s.substring(s.length-f),i()?c=f+1:(u=f,h=f-1)}if(u=Math.min(s.length-a,this.adjustSplitToWordBoundary(s,u)),o){let f=s.length-u,d=globalThis.Intl?.Segmenter,p=0;if(d)for(let m of new d(void 0,{granularity:\"grapheme\"}).segment(s)){if(m.index>f)break;p=m.index}else for(p=f,p>0&&/[\\uDC00-\\uDFFF]/.test(s[p])&&/[\\uD800-\\uDBFF]/.test(s[p-1])&&p--;p>0&&/[\\u0300-\\u036f\\u1ab0-\\u1aff\\u1dc0-\\u1dff\\u20d0-\\u20ff\\ufe20-\\ufe2f\\ufe00-\\ufe0f\\u200d]/.test(s[p]);)p--;u=s.length-Math.max(p,a)}return t.data=s.substring(0,s.length-u),l.data=s.substring(s.length-u),t.data||t.remove(),!0}adjustSplitToWordBoundary(t,e){if(e<=1||e>=t.length)return e;let r=t.length-e,i=t.lastIndexOf(\" \",r);return i>0&&r-i<32?t.length-i-1:e}removeEmptyInlineContainers(t){for(let e of Array.from(t.childNodes))e instanceof HTMLElement&&(this.removeEmptyInlineContainers(e),!e.hasChildNodes()&&!/^(br|img|svg|math)$/i.test(e.tagName)&&e.remove())}cleanupEmptyNumberedParagraphs(t){let e=`p[class*=\"${this.className}-num-\"]`;for(let r of Array.from(t.querySelectorAll(e))){if(this.hasVisiblePaginationContent(r)||!r.id&&!r.querySelector(\"[id], a[name]\"))continue;let i=this.findNextVisiblePaginationBlock(t,r);i&&this.moveAnchorsToBlock(r,i),r.remove()}}removeEmptyDynamicPages(t){let e=Array.from(t.querySelectorAll(`:scope > section.${this.className}[data-docx-dynamic-page=\"true\"]`));for(let r of e){let i=Array.from(r.querySelectorAll(\":scope > article\")),o=i.some(s=>Array.from(s.children).some(l=>this.hasVisiblePaginationContent(l))),a=Array.from(r.children).some(s=>s.dataset.docxNoteList&&s.children.length>0);i.length>0&&!o&&!a&&r.remove()}}findNextVisiblePaginationBlock(t,e){let r=Array.from(t.querySelectorAll(\"article p, article table, article figure, article img, article svg, article math\")),i=r.indexOf(e);for(let o=i+1;o<r.length;o++){let a=r[o];if(this.hasVisiblePaginationContent(a))return a}return null}hasVisiblePaginationContent(t){return(t.textContent??\"\").replace(/\\s+/g,\"\").length>0?!0:!!t.querySelector(\"br,img,svg,math,object,canvas,video,table\")}moveAnchorsToBlock(t,e){let r=Array.from(t.querySelectorAll(\"[id], a[name]\"));t.id&&!e.id&&(e.id=t.id);for(let i=r.length-1;i>=0;i--){let o=r[i];o.id&&e.querySelector(`#${CSS.escape(o.id)}`)||e.prepend(o)}}rebalanceWidowOrphan(t,e,r){let i=this.visualLineCount(t),o=this.visualLineCount(e);if(i>=2&&o>=2)return;if(i<2&&t.parentElement&&e.hasChildNodes()){e.prepend(...Array.from(t.childNodes)),t.remove();return}let a=0;for(;this.visualLineCount(e)<2&&t.hasChildNodes()&&a++<20&&!this.isPageOverflowing(r)&&this.moveTailInlineNode(t,e,r););}visualLineCount(t){try{let e=document.createRange();e.selectNodeContents(t);let r=Array.from(e.getClientRects());e.detach?.();let i=new Set(r.map(o=>Math.round(o.top)));return Math.max(i.size,1)}catch{return 1}}updateDynamicFieldPages(t){let e=Array.from(t.querySelectorAll(\":scope > section.\"+this.className)),r={},i={},o={},a=[],s=[],l=0,c=\"\";for(let h of e){let u=h.dataset.docxSection??\"\";i[u]=(i[u]??0)+1}if(e.forEach((h,u)=>{let f=h.dataset.docxSection??\"\";if(f!=c){let d=h.dataset.docxPageStart!=null?parseInt(h.dataset.docxPageStart,10):null;l=Number.isFinite(d)?d:l+1,o[f]=1,c=f}else l++,o[f]=(o[f]??0)+1;h.dataset.docxPageNumber=`${l}`,h.dataset.docxSectionPageNumber=`${o[f]}`,h.dataset.docxSectionPageCount=`${i[f]??1}`,a[u]=l,s[u]=o[f];for(let d of Array.from(h.querySelectorAll(\"[id]\")))d.id&&r[d.id]==null&&(r[d.id]=l)}),e.forEach((h,u)=>{let f=h.dataset.docxSection??\"\";for(let d of Array.from(h.querySelectorAll(\"[data-docx-field-instr]\"))){let p=this.evaluateDynamicField(d.dataset.docxFieldInstr,a[u]??u+1,e.length,r,i[f]??1,s[u]??1,parseInt(h.dataset.docxSectionNumber??\"1\",10));p!=null&&(d.textContent=p)}}),this.options.updatePageReferences)for(let h of Array.from(t.querySelectorAll(\"[data-docx-page-ref]\"))){let u=h.dataset.docxPageRef;h.textContent=`${r[u]??1}`}this.updateDynamicNoteNumbers(t)}evaluateDynamicField(t,e,r,i,o=r,a=e,s=1){let l=this.tokenizeFieldInstruction((t??\"\").replace(/\\s+/g,\" \").trim()),c=l[0]?.replace(/^=/,\"\").toUpperCase(),h=null;switch(c){case\"PAGE\":h=this.formatFieldNumber(e,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"NUMPAGES\":h=this.formatFieldNumber(r,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"SECTIONPAGES\":h=this.formatFieldNumber(o,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??this.currentSectionProps?.pageNumber?.format));break;case\"SECTION\":h=this.formatFieldNumber(s,this.fieldFormatSwitchToNumFormat(this.fieldSwitch(l,\"\\\\*\")??\"decimal\"));break;case\"PAGEREF\":{if(!this.options.updatePageReferences)return null;let u=this.firstFieldArgument(l);h=u?`${i[u]??1}`:\"\";break}}return h==null?null:this.applyFieldFormatting(h,t)}renderDefaultStyle(){var t=this.className;let e=!!this.options.darkMode,r=e?\"#242424\":\"gray\",i=e?en(\"white\"):\"white\",o=e?en(\"black\"):\"black\";var l=`\n.${t}-wrapper { position: relative; background: ${r}; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }\n.${t}-wrapper>section.${t} { background: ${i}; box-shadow: ${e?\"0 0 10px rgba(0, 0, 0, 0.8)\":\"0 0 10px rgba(0, 0, 0, 0.5)\"}; margin-bottom: 30px;${e?\" outline: 1px solid rgba(255, 255, 255, 0.15); outline-offset: -1px;\":\"\"} }`;this.options.hideWrapperOnPrint&&(l=`@media not print { ${l} }`);var c=`${l}\n.${t} { --docx-auto-color: ${o}; color: var(--docx-auto-color); font-size: 10.5pt; font-family: var(--docx-minorHAnsi-font, \"Times New Roman\", serif); hyphens: auto; text-underline-position: from-font; font-kerning: normal; font-variant-ligatures: common-ligatures contextual; text-rendering: optimizeLegibility; line-break: auto; }\nsection.${t} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: visible; isolation: isolate; }\nsection.${t}>header, section.${t}>footer { flex-shrink: 0; }\nsection.${t}>[data-docx-note-list] { flex-shrink: 0; }\nsection.${t}>article { z-index: 1; }\nsection.${t}>article:last-of-type { margin-bottom: auto; }\nsection.${t}>footer { z-index: 1; }\n.${t} [data-docx-continued=\"true\"] { margin-top: 0 !important; }\n.${t} tr[data-docx-repeat-header=\"true\"], .${t} tr[data-docx-repeated-header=\"true\"] { break-after: avoid; }\n.${t} li[data-docx-note-label]::marker { content: attr(data-docx-note-label) \" \"; }\n.${t} li[data-docx-note-custom=\"true\"]::marker, .${t} li[data-docx-note-label=\"\"]::marker,\n.${t} li[data-docx-note-fragment]:not([data-docx-note-fragment=\"0\"])::marker { content: \"\"; }\n.${t} table { border-collapse: collapse; }\n.${t} table td, .${t} table th { vertical-align: top; overflow-wrap: anywhere; }\n.${t} p { margin: 0pt; min-height: 1em; }\n.${t} .${t}-paragraph-frame > p { margin: 0; }\n.${t} span { white-space: pre-wrap; overflow-wrap: break-word; font-feature-settings: \"kern\" 1; }\n.${t} table span { overflow-wrap: anywhere; }\n.${t} .${t}-float-wrap { shape-margin: 0.15in; }\n.${t} .${t}-field { white-space: pre-wrap; }\n.${t} .${t}-tab-stop { display: inline-block; min-width: 1em; white-space: nowrap; line-height: 1; }\n.${t} .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"] { min-width: 2em; border-bottom: 1px dotted currentColor; height: .85em; transform: translateY(-.18em); }\n.${t} .${t}-tab-stop[data-docx-tab-leader=\"hyphen\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"heavy\"], .${t} .${t}-tab-stop[data-docx-tab-leader=\"underscore\"] { min-width: 2em; border-bottom: 1px solid currentColor; height: .85em; transform: translateY(-.18em); }\n.${t} .${t}-tab-leader-paragraph > a, .${t} .${t}-tab-leader-paragraph > .${t}-tab-leader-line, .${t} .${t}-tab-leader-line { display: inline-flex; align-items: baseline; width: calc(100% - var(--docx-text-indent, 0pt)); color: inherit !important; text-decoration: none !important; box-sizing: border-box; max-width: none; text-indent: 0; }\n.${t} .${t}-tab-leader-paragraph > a, .${t} .${t}-tab-leader-paragraph > a * { color: inherit !important; text-decoration: none !important; }\n.${t} .${t}-toc-paragraph a, .${t} .${t}-toc-paragraph a * { color: inherit !important; text-decoration: none !important; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"] { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .35em; align-items: baseline; list-style-position: outside; list-style-type: none; text-indent: 0 !important; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"]::before { grid-column: 1; grid-row: 1; white-space: pre; margin-inline-end: 0; }\n.${t} .${t}-toc-paragraph.${t}-tab-leader-paragraph[class*=\"${t}-num-\"] > a { grid-column: 2; grid-row: 1; display: inline-flex; flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; }\n.${t} .${t}-tab-leader-title { flex: 0 1 auto; min-width: 0; }\n.${t} .${t}-tab-leader-page { flex: 0 0 auto; white-space: nowrap; text-align: right; }\n.${t} .${t}-tab-leader-fill, .${t} .${t}-tab-leader-paragraph > a > .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-leader-paragraph > a > .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"], .${t} .${t}-tab-leader-paragraph > .${t}-tab-stop[data-docx-tab-leader=\"dot\"], .${t} .${t}-tab-leader-paragraph > .${t}-tab-stop[data-docx-tab-leader=\"middleDot\"] { flex: 1 1 auto; width: auto; margin: 0 .2em; }\n.${t} .${t}-literal-leader-line > .${t}-tab-leader-title { flex: 0 0 auto; white-space: nowrap; }\n.${t} .${t}-toc { display: table; width: 100%; }\n.${t} .${t}-toc-entry { display: table-row; }\n.${t} .${t}-toc-title, .${t} .${t}-toc-page { display: table-cell; }\n.${t} .${t}-toc-title { border-bottom: 1px dotted currentColor; }\n.${t} .${t}-toc-page { text-align: right; width: 3em; }\n.${t} math { font-family: Cambria Math, STIX Two Math, Latin Modern Math, serif; }\n.${t} ruby { ruby-position: over; }\n.${t} rt { font-size: 0.5em; line-height: 1; }\n.${t} .${t}-chart, .${t} .${t}-smartart, .${t} .${t}-ink { min-width: 2in; min-height: 1in; }\n.${t} a { color: inherit; text-decoration: inherit; }\n.${t} svg { fill: transparent; }\n[data-docx-review-enabled=\"true\"] { --docx-review-color: #c2410c; }\n[data-docx-review-enabled=\"true\"] ins[data-docx-change-kind], [data-docx-review-enabled=\"true\"] del[data-docx-change-kind] { text-decoration: none; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"delete\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"move-from\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-change-kind=\"delete\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-change-kind=\"move-from\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"insert\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"move-to\"] { display: none !important; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] ins[data-docx-change-kind]:not([data-docx-change-empty=\"true\"]) { color: var(--docx-review-color); text-decoration: underline; text-decoration-color: var(--docx-review-color); text-underline-offset: .16em; background: color-mix(in srgb, var(--docx-review-color) 7%, transparent); }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] ins[data-docx-change-empty=\"true\"] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] del[data-docx-change-kind] { display: inline-block !important; width: 0 !important; max-width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; line-height: 0 !important; vertical-align: baseline; color: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"][data-docx-review-presentation=\"inline\"] del[data-docx-change-kind] { display: inline !important; width: auto !important; max-width: none !important; height: auto !important; overflow: visible !important; line-height: inherit !important; color: var(--docx-review-color); text-decoration: line-through; text-decoration-color: var(--docx-review-color); }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] ins[data-docx-change-kind] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] del[data-docx-change-kind] { color: inherit; text-decoration: none; background: transparent; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"all\"] [data-docx-format-change=\"true\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"simple\"] [data-docx-format-change=\"true\"] { outline: 0; }\n[data-docx-review-enabled=\"true\"][data-docx-review-mode=\"final\"] [data-docx-change-kind=\"comment\"], [data-docx-review-enabled=\"true\"][data-docx-review-mode=\"original\"] [data-docx-change-kind=\"comment\"] { display: none !important; }\n@media print { .${t}-wrapper { background: transparent; padding: 0; display: block; } .${t}-wrapper>section.${t}, section.${t} { background: white; margin: 0 auto; box-shadow: none; outline: none; break-after: page; page-break-after: always; } .${t} { --docx-auto-color: black; color: black; } }\n`;return this.options.renderComments&&(c+=`\n.${t}-comment-ref { cursor: pointer; }\n.${t}-comment-ref[data-docx-comment-positioned=\"true\"]:not(:focus) { opacity: 0; }\n.${t}-comment-ref:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }\n.${t}-comment-anchor { display: inline-block; width: 0; height: 0; overflow: visible; vertical-align: baseline; }\n.${t}-comment-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1000; }\n.${t}-comment-popover { display: block; width: max-content; pointer-events: auto; margin: 0; padding: 0; }\n.${t}-comment-popover > summary { list-style: none; cursor: pointer; display: block; padding: 0; margin: 0; }\n.${t}-comment-popover > summary::-webkit-details-marker { display: none; }\n.${t}-comment-popover > summary:focus-visible { outline: 2px solid currentColor; }\n.${t}-comment-body { position: absolute; top: 100%; width: 30ch; box-sizing: border-box; overflow: auto; padding: .5rem; background: ${i}; color: var(--docx-auto-color); box-shadow: 0 0 .25rem rgba(0,0,0,.25); }\n.${t}-comment-author,.${t}-comment-date { font-size: .875rem; color: ${e?en(\"#888888\"):\"#888\"}; }\n@media print { .${t}-comment-layer, .${t}-comment-popover, .${t}-comment-body { position: static !important; width: auto !important; max-width: none !important; max-height: none !important; overflow: visible; } .${t}-comment-layer { pointer-events: auto; } .${t}-comment-body { box-shadow: none; } }\n\n`),[this.h({tagName:\"#comment\",children:[\"docxjs library predefined styles\"]}),this.h({tagName:\"style\",children:[c]})]}async renderNumbering(t){var e=\"\",r=[];let i=new Map,o=new Map(t.map(h=>[`${h.id}:${h.level}`,this.numFormatToCssValue(h.format)])),a=(h,u)=>{let f=i.get(h)??[];f.push(u),i.set(h,f)};for(var s of t){var l=this.numberingSelector(s.id,s.level),c=\"none\";if(s.bullet){let h=`--${this.className}-${s.bullet.src}`.toLowerCase();e+=this.styleToString(`${l}:before`,{content:\"' '\",display:\"inline-block\",background:`var(${h})`},s.bullet.style);try{let u=await this.document.loadNumberingImage(s.bullet.src);e+=`${this.rootSelector} { ${h}: url(${u}) }`}catch{this.options.debug&&console.warn(`Can't load numbering image with src ${s.bullet.src}`)}}else if(s.levelText){let h=this.numberingCounter(s.id,s.level),u=h+\" \"+(s.start-1),f=this.numberingRestartLevel(s);f!=null&&a(this.numberingSelector(s.id,f),u),r.push(u);let d=this.normalizeNumberingLevelText(s.levelText,s.format,s.rStyle),p=this.numberingMarkerRunStyle(s.rStyle,d.normalized);e+=this.styleToString(`${l}:before`,{content:this.levelTextToContent(d.text,s.suff,s.id,this.numFormatToCssValue(s.format),o),\"counter-increment\":h,\"font-family\":\"var(--docx-marker-font-family, inherit)\",\"font-size\":\"var(--docx-marker-font-size, inherit)\",\"font-style\":\"var(--docx-marker-font-style, inherit)\",\"font-weight\":\"var(--docx-marker-font-weight, inherit)\",...p})}else c=this.numFormatToCssValue(s.format);e+=this.styleToString(l,{display:\"list-item\",\"list-style-position\":\"inside\",\"list-style-type\":c,...s.pStyle})}for(let[h,u]of i)e+=this.styleToString(h,{\"counter-set\":u.join(\" \")});return r.length>0&&(e+=this.styleToString(this.rootSelector,{\"counter-reset\":r.join(\" \")})),[this.h({tagName:\"#comment\",children:[\"docxjs document numbering styles\"]}),this.h({tagName:\"style\",children:[e]})]}renderStyles(t){var e=\"\";let r=this.styleMap,i=ur(t.filter(l=>l.isDefault),l=>l.target);for(let l of t){var o=l.styles;if(l.linked){var a=l.linked&&r[l.linked];a?o=o.concat(a.styles):this.options.debug&&console.warn(`Can't find linked style ${l.linked}`)}for(let c of o){var s=`${l.target??\"\"}.${l.cssName}${c.mod??\"\"}`;l.target!=c.target&&(s+=` ${c.target}`),s=this.scopeDocumentStyleSelector(s),i[l.target]==l&&(s=`.${this.className} ${l.target}, `+s),e+=this.styleToString(s,c.values)}}return[this.h({tagName:\"#comment\",children:[\"docxjs document styles\"]}),this.h({tagName:\"style\",children:[e]})]}renderNotes(t,e,r,i=\"footnote\"){let o=Array.from(new Set(t)).filter(s=>e[s]&&![\"separator\",\"continuationSeparator\",\"continuationNotice\"].includes(e[s].noteType)&&!this.renderedNoteIds.has(`${i}:${s}`));if(o.length===0)return null;let a=this.currentPart;this.currentPart=r??a;try{let s=o.map(c=>{let h=this.renderElement(e[c]);return h.dataset.docxNoteId=c,h.dataset.docxNoteKind=i,h.dataset.docxNoteFragment=\"0\",this.applyNoteAssignment(h,this.noteNumbering.assignments.get(`${i}:${c}`),!1),this.renderedNoteIds.add(`${i}:${c}`),h}),l=this.h({tagName:\"ol\",children:s});return l.dataset.docxNoteList=i,l}finally{this.currentPart=a}}formatNoteAssignment(t){return Qd(t)}applyNoteAssignment(t,e,r){if(!e)return;let i=this.formatNoteAssignment(e);t.dataset.docxNoteLabel=i,t.dataset.docxNoteCustom=`${e.custom}`,r?t.childNodes?.length?t.textContent=i:t.appendChild(this.h(i)):(e.value!=null&&t.setAttribute(\"value\",`${e.value}`),t.style.listStyleType=e.custom?\"none\":this.numFormatToCssValue(e.properties.format))}renderElement(t){switch(t.type){case A.Paragraph:return this.renderParagraph(t);case A.BookmarkStart:return this.renderBookmarkStart(t);case A.BookmarkEnd:return null;case A.Run:return this.renderRun(t);case A.Table:return this.renderTable(t);case A.Row:return this.renderTableRow(t);case A.Cell:return this.renderTableCell(t);case A.Hyperlink:return this.renderHyperlink(t);case A.SmartTag:return this.renderSmartTag(t);case A.Drawing:return this.renderAnchoredElement(t,this.renderDrawing(t));case A.Image:return this.renderImage(t);case A.Shape:return this.renderShape(t);case A.Chart:return this.renderChart(t);case A.SmartArt:return this.renderSmartArt(t);case A.Ink:return this.renderInk(t);case A.SimpleField:return this.renderSimpleField(t);case A.Instruction:case A.ComplexField:return null;case A.Text:return this.renderText(t);case A.DeletedText:return this.renderDeletedText(t);case A.Tab:return this.renderTab(t);case A.Symbol:return this.renderSymbol(t);case A.Break:return this.renderBreak(t);case A.Footer:return this.renderContainer(t,\"footer\");case A.Header:return this.renderContainer(t,\"header\");case A.Footnote:case A.Endnote:return this.renderContainer(t,\"li\");case A.FootnoteReference:return this.renderFootnoteReference(t);case A.EndnoteReference:return this.renderEndnoteReference(t);case A.NoBreakHyphen:return this.h(\"\\u2011\");case A.SoftHyphen:return this.h(\"\\xAD\");case A.PositionalTab:return this.renderTab(t);case A.Ruby:return this.renderRuby(t);case A.RubyBase:return this.renderContainer(t,\"span\");case A.RubyText:return this.toHTML(t,Dt.html,\"rt\");case A.VmlPicture:return this.renderVmlPicture(t);case A.VmlElement:return this.renderAnchoredElement(t,this.renderVmlElement(t));case A.MmlMath:return this.renderContainerNS(t,Dt.mathML,\"math\",{xmlns:Dt.mathML});case A.MmlMathParagraph:return this.renderMmlMathParagraph(t);case A.MmlFraction:return this.renderContainerNS(t,Dt.mathML,\"mfrac\");case A.MmlBase:return this.renderContainerNS(t,Dt.mathML,t.parent?.type==A.MmlMatrixRow?\"mtd\":\"mrow\");case A.MmlNumerator:case A.MmlDenominator:case A.MmlFunction:case A.MmlLimit:case A.MmlBox:return this.renderContainerNS(t,Dt.mathML,\"mrow\");case A.MmlGroupChar:return this.renderMmlGroupChar(t);case A.MmlLimitLower:return this.renderContainerNS(t,Dt.mathML,\"munder\");case A.MmlLimitUpper:return this.renderContainerNS(t,Dt.mathML,\"mover\");case A.MmlSubSuperscript:return this.renderContainerNS(t,Dt.mathML,\"msubsup\");case A.MmlPhantom:return this.renderMmlPhantom(t);case A.MmlBorderBox:return this.renderContainerNS(t,Dt.mathML,\"menclose\");case A.MmlAccent:return this.renderMmlAccent(t);case A.MmlMatrix:return this.renderContainerNS(t,Dt.mathML,\"mtable\");case A.MmlMatrixRow:return this.renderContainerNS(t,Dt.mathML,\"mtr\");case A.MmlRadical:return this.renderMmlRadical(t);case A.MmlSuperscript:return this.renderContainerNS(t,Dt.mathML,\"msup\");case A.MmlSubscript:return this.renderContainerNS(t,Dt.mathML,\"msub\");case A.MmlDegree:case A.MmlSuperArgument:case A.MmlSubArgument:return this.renderContainerNS(t,Dt.mathML,\"mrow\");case A.MmlFunctionName:return this.renderContainerNS(t,Dt.mathML,\"mi\");case A.MmlDelimiter:return this.renderMmlDelimiter(t);case A.MmlRun:return this.renderMmlRun(t);case A.MmlNary:return this.renderMmlNary(t);case A.MmlPreSubSuper:return this.renderMmlPreSubSuper(t);case A.MmlBar:return this.renderMmlBar(t);case A.MmlEquationArray:return this.renderMllList(t);case A.Inserted:return this.renderInserted(t);case A.Deleted:return this.renderDeleted(t);case A.CommentRangeStart:return this.renderCommentRangeStart(t);case A.CommentRangeEnd:return this.renderCommentRangeEnd(t);case A.CommentReference:return this.renderCommentReference(t);case A.AltChunk:return this.renderAltChunk(t)}return null}renderElements(t,e){if(t==null)return null;t=this.reviewParagraphs(t);let r=[];for(let i=0;i<t.length;i++){let o=t[i].type==A.Paragraph?t[i]:null;if(this.isPositionedParagraphFrame(o)){let s=this.paragraphFrameKey(o),l=[o];for(;i+1<t.length;){let u=t[i+1].type==A.Paragraph?t[i+1]:null;if(!this.isPositionedParagraphFrame(u)||this.paragraphFrameKey(u)!=s)break;l.push(u),i++}let c=l.flatMap(u=>qr(this.renderElement(u)).filter(f=>f!=null)),h=this.h({tagName:\"div\",className:`${this.className}-paragraph-frame`,style:this.paragraphFrameStyle(o),children:c});h.dataset.docxFrameAnchor=`${o.frame.horizontalAnchor??\"text\"}/${o.frame.verticalAnchor??\"text\"}`,h.dataset.docxFrameParagraphs=`${l.length}`,r.push(h);continue}let a=this.tryRenderComplexField(t,i);if(a){r.push(...qr(a.node).filter(s=>s!=null)),i=a.nextIndex-1;continue}r.push(...qr(this.renderElement(t[i])).filter(s=>s!=null))}return e&&r.forEach(i=>e.appendChild(Jr(i)?document.createTextNode(i):i)),r}reviewParagraphs(t){let e=Ce(this.options);if(e==\"all\")return t;let r=[];for(let i of t??[]){let o=r[r.length-1],a=i,s=o?.props?.paragraphMarkRevisions??[],l=e==\"original\"?s.some(c=>c.kind==\"insert\"):o?.props?.deletedParagraphMark;o?.type==A.Paragraph&&i.type==A.Paragraph&&l&&!o.sectionProps&&this.paragraphFrameKey(o)==this.paragraphFrameKey(a)?r[r.length-1]={...a,children:[...o.children??[],...a.children??[]]}:r.push(i)}return r}isPositionedParagraphFrame(t){let e=t?.frame;return!!e&&e.dropCap!=\"drop\"&&!!(e.width||e.height||e.horizontalPosition||e.verticalPosition||e.horizontalAlignment||e.verticalAlignment)}paragraphFrameKey(t){let e=t.frame??{};return JSON.stringify([e.width,e.height,e.horizontalPosition,e.verticalPosition,e.horizontalAnchor,e.verticalAnchor,e.horizontalAlignment,e.verticalAlignment,e.horizontalSpace,e.verticalSpace,e.heightRule,e.wrap])}paragraphFrameStyle(t){let e=t.frame,r={position:\"absolute\",boxSizing:\"border-box\",zIndex:\"2\"},i=e.horizontalAnchor==\"page\",o=e.verticalAnchor==\"page\";return e.width&&(r.width=e.width),e.height&&(e.heightRule==\"exact\"?(r.height=e.height,r.overflow=\"hidden\"):r.minHeight=e.height),e.horizontalPosition?r.left=i?`calc(${e.horizontalPosition} - var(--docx-page-padding-left, 0pt))`:e.horizontalPosition:e.horizontalAlignment==\"center\"?(r.left=\"50%\",r.transform=\"translateX(-50%)\"):e.horizontalAlignment==\"right\"||e.horizontalAlignment==\"outside\"?r.right=\"0\":(e.horizontalAlignment==\"left\"||e.horizontalAlignment==\"inside\")&&(r.left=\"0\"),e.verticalPosition?r.top=o?`calc(${e.verticalPosition} - var(--docx-page-padding-top, 0pt))`:e.verticalPosition:e.verticalAlignment==\"center\"?(r.top=\"50%\",r.transform=`${r.transform??\"\"} translateY(-50%)`.trim()):e.verticalAlignment==\"bottom\"||e.verticalAlignment==\"outside\"?r.bottom=\"0\":(e.verticalAlignment==\"top\"||e.verticalAlignment==\"inside\")&&(r.top=\"0\"),r}tryRenderComplexField(t,e){if(!this.hasFieldChar(t[e],\"begin\"))return null;let r=0,i=!1,o=\"\",a=[];for(let s=e;s<t.length;s++){let l=t[s],c=l.type==A.Run?{...l,fieldRun:!1,children:[]}:null;if(l.type==A.Run){for(let h of l.children??[]){if(h.type==A.ComplexField){let u=h;if(u.charType==\"begin\")r++;else if(u.charType==\"separate\"&&r==1)i=!0;else if(u.charType==\"end\"&&(r--,r==0))return c.children.length>0&&a.push(c),{node:this.renderSimpleField({type:A.SimpleField,instruction:o,lock:!1,dirty:!1,children:a}),nextIndex:s+1};continue}if(!i&&r==1&&h.type==A.Instruction){o+=h.text??\"\";continue}i&&r>0&&c.children.push(h)}c.children.length>0&&a.push(c)}else i&&r>0&&a.push(l)}return null}hasFieldChar(t,e){return t.type==A.Run&&t.children?.some(r=>r.type==A.ComplexField&&r.charType==e)}renderContainer(t,e){return this.h({tagName:e,children:this.renderElements(t.children)})}renderContainerNS(t,e,r,i){return this.h({ns:e,tagName:r,children:this.renderElements(t.children),...i})}effectiveParagraphTabs(t,e){if(!t?.length)return e;if(!e?.length)return t;let r=[...e];for(let i of t){let o=this.parseCssLengthValue(i.position),a=r.findIndex(s=>this.parseCssLengthValue(s.position)==o);a>=0?r[a]=i:r.push(i)}return r.sort((i,o)=>(this.parseCssLengthValue(i.position)??0)-(this.parseCssLengthValue(o.position)??0))}countParagraphTabs(t){let e=0,r=i=>{(i.type==A.Tab||i.type==A.PositionalTab)&&e++;for(let o of i.children??[])r(o)};return r(t),e}isLeaderTabStop(t){return!!t?.leader&&t.leader!=\"none\"&&t.style!=\"clear\"}resolveRenderedTabStop(t,e,r){if(!t?.length)return null;let i=t[Math.min(e,Math.max(t.length-1,0))],o=[...t].reverse().find(c=>this.isLeaderTabStop(c)),a=this.findStyle(this.currentParagraph?.styleName),s=this.isTocParagraphStyle(this.currentParagraph?.styleName,a),l=!!o&&!!(this.currentParagraph?.numbering??a?.paragraphProps?.numbering)&&s;return o?r<=1?s||l?o:i:e>=r-1?o:this.isLeaderTabStop(i)?t.slice(0,Math.min(e+1,t.length)).reverse().find(c=>!this.isLeaderTabStop(c)&&c.style!=\"clear\")??t.find(c=>!this.isLeaderTabStop(c)&&c.style!=\"clear\")??null:i:i}renderParagraph(t){let e=this.findStyle(t.styleName);t.tabs=this.effectiveParagraphTabs(t.tabs,e?.paragraphProps?.tabs);let r=this.currentParagraph,i=this.currentParagraphTabIndex,o=this.currentParagraphTabCount;this.currentParagraph=t,this.currentParagraphTabIndex=0,this.currentParagraphTabCount=this.countParagraphTabs(t);let a=this.renderElements(t.children),s=this.uniformParagraphTextScale(t,e);if(s!=null&&s!=1){let p=this.effectiveParagraphCssValue(t,e,\"text-indent\")??\"0pt\",m=this.effectiveParagraphCssValue(t,e,\"direction\")==\"rtl\",g=this.h({tagName:\"span\",className:`${this.className}-text-scale`,style:{display:\"block\",font:\"inherit\",background:\"none\",border:\"none\",width:`${100/s}%`,transform:`scaleX(${s})`,transformOrigin:m?\"right top\":\"left top\",textIndent:`calc(${p} / ${s})`},children:a});g.dataset.docxTextScale=`${s}`,a=[g]}var l=this.toHTML(t,Dt.html,\"p\",this.wrapTabLeaderChildren(a,!0));if(this.applyTextBoxFontInheritance(t,e,l),this.options.exposeDisplayTargets&&t.displayAddress){let p=this.currentPart??this.document.documentPart;l.setAttribute(\"data-office-target\",`${p.path}#${t.displayAddress}`)}let c=this.effectiveParagraphCssValue(t,e,\"--docx-snap-to-grid\");/^(0|false|off)$/i.test(c??\"\")&&(l.style.letterSpacing=\"normal\"),this.currentParagraph=r,this.currentParagraphTabIndex=i,this.currentParagraphTabCount=o;let h=t.numbering??e?.paragraphProps?.numbering;h&&l.classList.add(this.numberingClass(h.id,h.level));let u=e?.paragraphProps;(t.pageBreakBefore??u?.pageBreakBefore)&&(l.style.breakBefore=\"page\",l.dataset.docxPageBreakBefore=\"true\"),(t.keepLines??u?.keepLines)&&(l.style.breakInside=\"avoid\",l.dataset.docxKeepLines=\"true\"),(t.keepNext??u?.keepNext)&&(l.style.breakAfter=\"avoid\",l.dataset.docxKeepNext=\"true\"),(t.widowControl??u?.widowControl)&&(l.style.orphans=\"2\",l.style.widows=\"2\",l.dataset.docxWidowControl=\"true\"),this.applyDocumentGridLinePitch(t,e,l),this.compatibleTextBoxSpacing&&this.setCssStyle(l,\"text-autospace\",this.textBoxAutospace(t,e));let f=(t.lineSpacing??e?.paragraphProps?.lineSpacing)?.lineRule;this.compatibleTextBoxSpacing&&[\"lines\",\"linesAndChars\"].includes(this.currentSectionProps?.docGrid?.type)&&this.paragraphUsesDocumentGrid(t,e)&&f!=\"exact\"&&f!=\"exactly\"&&(l.dataset.docxTextboxGridPitch=this.currentSectionProps.docGrid.linePitch,l.dataset.docxTextboxBaseLineHeight=l.style.lineHeight??\"\",l.style.flexShrink=\"0\");let d=t.tabs?.find(p=>this.isLeaderTabStop(p));return d&&(l.classList.add(`${this.className}-tab-leader-paragraph`),l.dataset.docxHasTabLeader=\"true\",l.dataset.docxTabLeader=d.leader,l.dataset.docxTabAlign=d.style),this.isTocParagraphStyle(t.styleName,e)&&(l.classList.add(`${this.className}-toc-paragraph`),l.dataset.docxTocEntry=\"true\"),this.hasParagraphRelativeAnchor(t)&&((!l.style.position||l.style.position==\"static\")&&(l.style.position=\"relative\"),l.dataset.docxAnchorContext=\"paragraph\"),t.props?.anchorId&&(l.id=t.props.anchorId,l.setAttribute(\"id\",t.props.anchorId)),l}uniformParagraphTextScale(t,e){if(t.numbering||e?.paragraphProps?.numbering||t.frame||this.effectiveParagraphCssValue(t,e,\"writing-mode\"))return null;let r=\"--docx-text-scale\",i=t.cssStyle?.[r]??this.styleValue(e,\"span\",r)??this.styleValue(e,\"p\",r)??\"1\",o=null,a=(s,l)=>{let c=s.cssStyle?.[r]??this.styleValue(this.findStyle(s.styleName),\"span\",r)??l;switch(s.type){case A.Text:case A.DeletedText:if(!s.text)return!0;let h=Number(c);return!Number.isFinite(h)||h<=0||h>6||o!=null&&o!=h?!1:(o=h,!0);case A.Run:case A.Hyperlink:case A.SmartTag:case A.Inserted:case A.Deleted:return(s.children??[]).every(u=>a(u,c));case A.BookmarkStart:case A.BookmarkEnd:case A.CommentRangeStart:case A.CommentRangeEnd:case A.NoBreakHyphen:case A.SoftHyphen:return!0;case A.Break:return[\"line\",\"textWrapping\"].includes(s.break);default:return!1}};return(t.children??[]).every(s=>a(s,i))?o:null}hasParagraphRelativeAnchor(t){return(t.children??[]).some(e=>(e.type==A.Drawing||e.type==A.VmlElement)&&e.cssStyle?.position==\"absolute\"||this.hasParagraphRelativeAnchor(e))}renderAnchoredElement(t,e){if(e.dataset.docxDrawing=\"true\",t.cssStyle?.position!=\"absolute\"||!t.props?.anchorPosition)return e;let r=t.props.anchorPosition,i={...r,horizontal:{...r.horizontal,offset:r.horizontal.offset??(e.style.left||\"0pt\")},vertical:{...r.vertical,offset:r.vertical.offset??(e.style.top||\"0pt\")}},o=`${this.anchorLayouts.size}`;this.anchorLayouts.set(o,i),e.dataset.docxAnchorId=o,e.dataset.docxLayoutInCell=`${r.layoutInCell!==!1}`;let a=h=>/^[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)$/.test(h)?`${h}pt`:h;e.style.left=`calc(${a(i.horizontal.offset)} + var(--docx-anchor-origin-x, 0px))`,e.style.top=`calc(${a(i.vertical.offset)} + var(--docx-anchor-origin-y, 0px))`;let s=[\"top\",\"bottom\"].map(h=>{let u=this.h({tagName:\"span\",style:{display:\"inline-block\",width:\"0px\",height:\"0px\",padding:\"0px\",border:\"0px\",verticalAlign:h}});return u.dataset.docxAnchorLine=h,u}),l=this.h({tagName:\"span\",children:s});l.dataset.docxAnchorMarker=\"true\",l.setAttribute(\"aria-hidden\",\"true\");let c=this.h({tagName:\"span\",children:[l,e]});return c.dataset.docxDrawing=\"true\",c}refreshAnchors(t){_p(t,this.className,e=>this.ownsLayoutElement(e));for(let e of Array.from(t.querySelectorAll(\"[data-docx-anchor-id]\"))){if(!this.ownsLayoutElement(e))continue;let r=this.anchorLayouts.get(e.dataset.docxAnchorId);r&&Op(e,r,this.className)}}ownsLayoutElement(t){for(let e=t;e;e=e.parentElement){let r=yr.get(e);if(r)return r==this}return!0}textBoxGridLineHeight(t,e){return!Number.isFinite(t)||!Number.isFinite(e)||t<0||e<=0?null:Math.max(1,Math.ceil((t-1/64)/e))*e}refreshTextBoxLineGrid(t){let e=t.ownerDocument?.defaultView,r=Array.from(t.querySelectorAll(\"[data-docx-textbox-grid-pitch]\")).filter(l=>this.ownsLayoutElement(l));if(!e||!r.length)return;let i=t.ownerDocument.createElement(\"span\");Object.assign(i.style,{position:\"absolute\",visibility:\"hidden\",pointerEvents:\"none\",display:\"inline-block\",whiteSpace:\"pre\",width:\"max-content\",margin:\"0\",padding:\"0\",border:\"0\",minHeight:\"0\"}),i.setAttribute(\"aria-hidden\",\"true\");let o=t.getRootNode();(o.nodeType==11&&\"host\"in o?o:t.ownerDocument.body).appendChild(i);let s=(l,c,h=\"normal\")=>{let u=e.getComputedStyle(c);Object.assign(l.style,{fontFamily:u.fontFamily,fontSize:u.fontSize,fontWeight:u.fontWeight,fontStyle:u.fontStyle,fontStretch:u.fontStretch,verticalAlign:u.verticalAlign,lineHeight:h})};try{for(let l of r){if(l.querySelector(\"svg, img, table, math, [data-docx-drawing]\"))continue;this.preserveGridInlineMetrics(l),i.style.height=l.dataset.docxTextboxGridPitch;let c=parseFloat(e.getComputedStyle(i).height);s(i,l,l.dataset.docxTextboxBaseLineHeight||\"normal\"),i.style.height=\"auto\",i.replaceChildren();let h=t.ownerDocument.createTreeWalker(l,4);for(;h.nextNode();){let d=h.currentNode,p=d.parentElement;if(!d.textContent||!p||!Array.from(p.getClientRects()).some(b=>b.width>0&&b.height>0))continue;let m=p==l?l.dataset.docxTextboxBaseLineHeight:p.style.lineHeight,g=t.ownerDocument.createElement(\"span\");s(g,p,m||\"normal\"),g.style.whiteSpace=\"pre\",g.textContent=d.textContent.replace(/[\\r\\n]/g,\" \"),i.appendChild(g)}i.hasChildNodes()||(i.textContent=\"\\xA0\");let u=parseFloat(e.getComputedStyle(i).height),f=this.textBoxGridLineHeight(u,c);f!=null&&(l.style.lineHeight=`${Math.round(f*1e3)/1e3}px`)}}finally{i.remove()}}async prepareLayout(t,e=Ai(t)){if(!(!t.isConnected||!e.isCurrent())&&(this.layoutGenerations.has(e.signal)||(this.layoutGenerations.set(e.signal,e),e.signal.addEventListener(\"abort\",()=>this.layoutGenerations.delete(e.signal),{once:!0})),await this.yieldToBrowser(),!(!t.isConnected||!e.isCurrent()))){if(this.commentLayer&&(yr.set(this.commentLayer.root,this),!this.commentLayer.root.parentElement)){let r=[t,...Array.from(t.querySelectorAll(\"[data-docx-layout-root]\"))].find(i=>yr.get(i)===this&&i.classList.contains(`${this.className}-wrapper`));r||(this.commentLayer.root.style.position=\"fixed\"),(r??t).appendChild(this.commentLayer.root)}this.refreshTextBoxLineGrid(t),this.refreshTabStops(t),this.refreshAnchors(t),await this.commentLayer?.bind(t,e)}}disposeLayout(){for(let e of Array.from(this.layoutGenerations.values()))e.cancel();this.layoutGenerations.clear(),this.commentLayer?.root.remove();let t=globalThis.CSS?.highlights;t&&this.commentHighlight&&t.get(`${this.className}-comments`)===this.commentHighlight&&t.delete(`${this.className}-comments`)}renderHyperlink(t){let e=this.renderHyperlinkChildren(t.children),r=this.h(this.toH(t,Dt.html,\"a\",this.wrapTabLeaderChildren(e))),i=\"\",o=!1;return t.id&&(i=(this.currentPart??this.document.documentPart)?.rels?.find(l=>l.id==t.id&&l.targetMode===\"External\")?.target??i,o=!!i),!i&&t.anchor&&(i=`#${t.anchor}`),this.applyHyperlinkTarget(r,i,o),r}renderHyperlinkChildren(t){this.hyperlinkDepth++;try{return this.renderElements(t)}finally{this.hyperlinkDepth--}}applyHyperlinkTarget(t,e,r){let i=xm(e);if(i){if(r&&this.options.externalLinkPolicy==\"block\"){t.setAttribute(\"data-docx-external-href\",i),t.setAttribute(\"aria-disabled\",\"true\");return}t.setAttribute(\"href\",i)}}wrapTabLeaderChildren(t,e=!1){if(!t?.length||t.some(l=>this.hasCssClass(l,`${this.className}-tab-leader-title`)))return t;let r=-1;for(let l=t.length-1;l>=0;l--)if(this.isTabLeaderNode(t[l])){r=l;break}if(r<0)return this.wrapLiteralLeaderChildren(t,e)??t;let i=t.slice(0,r),o=t[r],a=t.slice(r+1);this.addCssClass(o,`${this.className}-tab-leader-fill`);let s=[this.h({tagName:\"span\",className:`${this.className}-tab-leader-title`,children:i}),o,this.h({tagName:\"span\",className:`${this.className}-tab-leader-page`,children:a})];return e?[this.h({tagName:\"span\",className:`${this.className}-tab-leader-line`,children:s})]:s}wrapLiteralLeaderChildren(t,e=!1){let r=this.findLastTextualNodeIndex(t);if(r<0)return null;let i=t[r],o=this.nodeTextContent(i),a=/^(.*?)([.\\u2026\\u00b7\\u2022\\u2027\\u2219\\u22c5]{6,})(\\s*[0-90-9IVXLCDMivxlcdm]+)\\s*$/.exec(o);if(!a)return null;let[,s,l,c]=a,h=t.slice(0,r),u=t.slice(r+1),f=[...h];s&&f.push(this.cloneTextNodeWithText(i,s));let d=this.h({tagName:\"span\",className:`${this.tabStopClass()} ${this.className}-tab-leader-fill`,children:[\"\\xA0\"],style:this.nodeStyleObject(i)});d.dataset.docxTab=\"true\",d.dataset.docxTabLeader=this.literalLeaderKind(l),d.dataset.docxLiteralLeader=\"true\";let p=[this.h({tagName:\"span\",className:`${this.className}-tab-leader-title`,children:f}),d,this.h({tagName:\"span\",className:`${this.className}-tab-leader-page`,children:[this.cloneTextNodeWithText(i,c.trim()),...u]})];return e?[this.h({tagName:\"span\",className:`${this.className}-tab-leader-line ${this.className}-literal-leader-line`,children:p})]:p}findLastTextualNodeIndex(t){for(let e=t.length-1;e>=0;e--)if(this.nodeTextContent(t[e]).trim())return e;return-1}literalLeaderKind(t){return/^[.\\u2026]+$/.test(t)?\"dot\":\"middleDot\"}cloneTextNodeWithText(t,e){return this.nodeElementName(t)?this.h({tagName:this.nodeElementName(t),className:this.nodeClassName(t),style:this.nodeStyleObject(t),children:[e]}):this.h({tagName:\"span\",children:[e]})}nodeElementName(t){let e=t,r=e?.tagName??e?.nodeName;return r&&!String(r).startsWith(\"#\")?String(r).toLowerCase():\"\"}nodeStyleObject(t){let e=t?.style,r={};if(!e)return r;if(typeof e.length==\"number\"&&typeof e.getPropertyValue==\"function\")for(let i=0;i<e.length;i++){let o=e.item(i),a=e.getPropertyValue(o);a&&(r[o]=a)}else for(let[i,o]of Object.entries(e))o!=null&&o!==\"\"&&(r[i]=String(o));return r}nodeTextContent(t){let e=t;return e?typeof e.textContent==\"string\"?e.textContent:typeof e.text==\"string\"?e.text:Array.from(e.children??e.childNodes??[]).map(r=>this.nodeTextContent(r)).join(\"\"):\"\"}isTabLeaderNode(t){let e=this.nodeDatasetValue(t,\"docxTabLeader\");return this.hasCssClass(t,this.tabStopClass())&&!!e&&e!=\"none\"}nodeDatasetValue(t,e){let r=t,i=r?.dataset?.[e];if(i!=null)return String(i);let o=\"data-\"+e.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());return typeof r?.getAttribute==\"function\"?r.getAttribute(o):r?.attributes?.[o]}hasCssClass(t,e){let r=t;return!r||!e?!1:typeof r.classList?.contains==\"function\"?r.classList.contains(e):this.nodeClassName(r).split(/\\s+/).includes(e)}addCssClass(t,e){let r=t;if(!r||!e||this.hasCssClass(t,e))return;if(typeof r.classList?.add==\"function\"){r.classList.add(e);return}let i=Kr(this.nodeClassName(r),e);typeof r.setAttribute==\"function\"?r.setAttribute(\"class\",i):(r.attributes??(r.attributes={}),r.attributes.class=i)}nodeClassName(t){return typeof t?.className==\"string\"?t.className:typeof t?.className?.baseVal==\"string\"?t.className.baseVal:typeof t?.getAttribute==\"function\"?t.getAttribute(\"class\")??\"\":t?.attributes?.class??\"\"}renderSmartTag(t){return this.renderContainer(t,\"span\")}renderCommentRangeStart(t){if(!this.options.renderComments)return null;let e=typeof Range>\"u\"?null:new Range;e&&this.commentHighlight?.add(e);let r=this.h({tagName:\"#comment\",children:[\"start of DOCX comment\"]});return e&&(this.later(()=>e.setStart(r,0)),this.commentMap[t.id]=e),r}renderCommentRangeEnd(t){if(!this.options.renderComments)return null;let e=this.commentMap[t.id],r=this.document.commentsPart?.commentMap[t.id],i=this.h({tagName:\"span\",className:`${this.className}-comment-anchor`});return i.dataset.docxChangeKind=\"comment\",i.dataset.docxChangeId=`${t.id}`,i.setAttribute(\"aria-hidden\",\"true\"),i.style.setProperty(\"--docx-review-color\",Fn(r?.author)),r?.author&&(i.dataset.docxChangeAuthor=r.author),r?.date&&(i.dataset.docxChangeDate=r.date),this.later(()=>e?.setEnd(i,0)),i}renderCommentReference(t){if(!this.options.renderComments||this.renderingComment)return null;let e=this.document.commentsPart?.commentMap[t.id];if(!e)return null;this.commentLayer||(this.commentLayer=new Ta(this.className,()=>this.h({tagName:\"div\",className:`${this.className} ${this.className}-comment-layer`}),a=>{this.refreshTabStops(a),this.refreshAnchors(a)}));let r=`${e.id}`,i=this.h({tagName:\"span\",className:`${this.className}-comment-ref`,children:[\"\\u{1F4AC}\"]});i.dataset.docxChangeKind=\"comment\",i.dataset.docxChangeId=r,i.style.setProperty(\"--docx-review-color\",Fn(e.author)),e.author&&(i.dataset.docxChangeAuthor=e.author),e.date&&(i.dataset.docxChangeDate=e.date),this.hyperlinkDepth||i.setAttribute(\"tabindex\",\"0\"),i.setAttribute(\"role\",\"note\"),i.setAttribute(\"aria-label\",e.author?`Comment by ${e.author}`:\"Comment\"),i.setAttribute(\"aria-expanded\",\"false\");let o=this.commentPresentations.get(r);if(!o){let a=`${this.className}-comment-${++n.nextCommentId}`,s=this.h({tagName:\"summary\",children:[\"\\u{1F4AC}\"]});s.setAttribute(\"aria-label\",e.author?`Comment by ${e.author}`:\"Comment\");let l=e.date?new Date(e.date):null,c=this.h({tagName:\"article\",children:this.renderCommentContent(e)});c.dataset.docxCommentStory=\"true\";let h=this.h({tagName:\"div\",className:`${this.className}-comment-body`,children:[this.h({tagName:\"div\",className:`${this.className}-comment-author`,children:[e.author??\"\"]}),this.h({tagName:\"div\",className:`${this.className}-comment-date`,children:[l&&Number.isFinite(l.getTime())?l.toLocaleString():e.date??\"\"]}),c]});h.setAttribute(\"id\",a),h.setAttribute(\"role\",\"note\");let u=this.h({tagName:\"details\",className:`${this.className}-comment-popover`,children:[s,h]});u.dataset.docxCommentPopup=a,Object.assign(u.dataset,{docxChangeKind:\"comment\",docxChangeId:r}),e.author&&(u.dataset.docxChangeAuthor=e.author),e.date&&(u.dataset.docxChangeDate=e.date),o={key:a,descriptionId:a,reference:i,references:[],popup:u,summary:s,body:h,revision:0,open:!1},this.commentLayer.add(o),this.commentPresentations.set(r,o)}return i.dataset.docxCommentReference=o.key,o.references.push(i),i.setAttribute(\"aria-describedby\",o.descriptionId),i.setAttribute(\"aria-controls\",o.descriptionId),i}cloneRenderData(t,e=new Map){if(!t||typeof t!=\"object\")return t;if(e.has(t))return e.get(t);let r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));e.set(t,r);for(let i of Object.keys(t))i!==\"parent\"&&Object.defineProperty(r,i,{value:this.cloneRenderData(t[i],e),writable:!0,enumerable:!0,configurable:!0});return r}renderCommentContent(t){let e={part:this.currentPart,paragraph:this.currentParagraph,index:this.currentParagraphTabIndex,count:this.currentParagraphTabCount,rendering:this.renderingComment};this.currentPart=this.document.commentsPart,this.currentParagraph=null,this.renderingComment=!0;try{let r=this.cloneRenderData(t);return this.processElement(r),this.renderElements(r.children)??[]}finally{this.currentPart=e.part,this.currentParagraph=e.paragraph,this.currentParagraphTabIndex=e.index,this.currentParagraphTabCount=e.count,this.renderingComment=e.rendering}}renderAltChunk(t){if(!this.options.renderAltChunks)return null;var e=this.h({tagName:\"iframe\",sandbox:\"\",referrerPolicy:\"no-referrer\",loading:\"lazy\"});return this.tasks.push(this.document.loadAltChunk(t.id,this.currentPart).then(r=>{Hd(e,r)})),e}renderDrawing(t){t.cssStyle?.[\"shape-outside\"]&&(t.className=Kr(t.className,`${this.className}-float-wrap`));var e=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\");(t.cssStyle?.float||t.cssStyle?.position==\"absolute\")&&(e.dataset.docxFloat=\"true\");let r=t.props?.anchorPosition;r?.vertical?.relative&&(e.dataset.docxAnchorVertical=r.vertical.relative),r?.horizontal?.relative&&(e.dataset.docxAnchorHorizontal=r.horizontal.relative),e.style.display||(e.style.display=\"inline-block\"),e.style.position||(e.style.position=\"relative\"),e.style.textIndent=\"0px\";for(let i of Array.from(e.children??[]))i.style.verticalAlign=\"top\";return e}renderImage(t){let e=t.srcRect,r=e?1-e[0]-e[2]:1,i=e?1-e[1]-e[3]:1,o=e?.length===4&&e.some(c=>c!==0)&&e.every(Number.isFinite)&&r>0&&i>0&&Number.isFinite(100/r)&&Number.isFinite(100/i),a=this.toHTML(t,Dt.html,o?\"span\":\"img\",[]),s=o?this.h({tagName:\"img\"}):a,l=t.cssStyle?.transform;return t.alt&&(s.alt=t.alt),t.title&&(s.title=t.title),o&&(a.setAttribute(\"data-docx-image-crop\",\"true\"),a.style.overflow=\"hidden\",a.style.position=\"relative\",Object.assign(s.style,{position:\"absolute\",display:\"block\",margin:\"0\",left:`${-100*e[0]/r}%`,top:`${-100*e[1]/i}%`,width:`${100/r}%`,height:`${100/i}%`,maxWidth:\"none\",maxHeight:\"none\",objectFit:\"fill\"}),a.appendChild(s)),t.rotation&&(l=`rotate(${t.rotation}deg) ${l??\"\"}`),a.style.transform=l?.trim(),this.document&&t.src&&this.tasks.push(this.document.loadDocumentImage(t.src,this.currentPart,this.options.externalResourcePolicy).then(c=>{c&&s.setAttribute(\"src\",c)})),a}renderShape(t){if(t.props?.dmlSvg)return this.renderDmlSvgShape(t);let e=t.props?.dmlTextBox?[this.renderDmlTextBox(t)]:null,r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",e);return r.style.display||(r.style.display=\"inline-block\"),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r}renderDmlTextBox(t){let e=this.currentParagraph,r=this.compatibleTextBoxSpacing;this.currentParagraph=null,this.compatibleTextBoxSpacing=t.props?.textCompatibleLineSpacing===!0;let i;try{i=this.renderElements(t.children)}finally{this.currentParagraph=e,this.compatibleTextBoxSpacing=r}let o=this.h({tagName:\"div\",className:`${this.className}-shape-textbox`,style:{\"box-sizing\":\"border-box\",display:\"flex\",\"flex-direction\":\"column\",\"justify-content\":t.props?.textVerticalAlign??\"flex-start\",\"align-items\":\"stretch\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...t.props?.textInsets??{}},children:i});o.dataset.docxShapeTextbox=\"true\",o.setAttribute(\"xmlns\",Dt.html);let a=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\",overflow:\"hidden\"}});a.setAttribute(\"focusable\",\"false\");let s=this.createSvgElement(\"foreignObject\");return s.setAttribute(\"width\",\"100%\"),s.setAttribute(\"height\",\"100%\"),s.appendChild(o),a.appendChild(s),a}renderDmlSvgShape(t){let e=this.createSvgElement(\"svg\",{style:t.cssStyle}),r=t.props??{};e.setAttribute(\"viewBox\",r.viewBox??\"0 0 1 1\"),e.setAttribute(\"preserveAspectRatio\",\"none\"),e.setAttribute(\"focusable\",\"false\"),t.title&&e.appendChild(this.createSvgElement(\"title\",null,[t.title])),t.alt&&(e.setAttribute(\"role\",\"img\"),e.setAttribute(\"aria-label\",t.alt));let i=this.createSvgElement(\"path\");return i.setAttribute(\"d\",r.pathD??\"\"),i.setAttribute(\"fill\",this.darkenColorAttr(r.fill??\"none\")),i.setAttribute(\"stroke\",this.darkenColorAttr(r.stroke??\"none\")),i.setAttribute(\"stroke-width\",r.strokeWidth??\"0\"),i.setAttribute(\"stroke-linejoin\",\"round\"),i.setAttribute(\"stroke-linecap\",\"round\"),r.strokeDasharray&&i.setAttribute(\"stroke-dasharray\",r.strokeDasharray),e.appendChild(i),e}renderChart(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-chart`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"Chart\")),t.id){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipXml(t.id,i).then(o=>{r.textContent=\"\",r.appendChild(o?this.renderChartSvg(o):this.renderGraphicLoading(\"Chart\"))}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"Chart\"))}))}return r}renderSmartArt(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-smartart`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"SmartArt\")),t.dataId){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipXml(t.dataId,i).then(o=>{r.textContent=\"\",r.appendChild(o?this.renderSmartArtSvg(o):this.renderGraphicLoading(\"SmartArt\"))}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"SmartArt\"))}))}return r}renderInk(t){var e;let r=this.toHTML(t,Dt.html,this.currentParagraph?\"span\":\"div\",[]);if((e=r.style).display||(e.display=\"block\"),r.className=Kr(r.className,`${this.className}-ink`),t.title&&(r.title=t.title),t.alt&&(r.setAttribute(\"role\",\"img\"),r.setAttribute(\"aria-label\",t.alt)),r.appendChild(this.renderGraphicLoading(\"Ink\")),t.id){let i=this.currentPart;this.tasks.push(this.document.loadRelationshipText(t.id,i).then(o=>{if(r.textContent=\"\",o?.trim().startsWith(\"<\"))try{r.appendChild(this.renderInkSvg(Ra(o,!0)));return}catch{}return this.document.loadRelationshipBlobUrl(t.id,i,this.options.externalResourcePolicy).then(a=>{r.textContent=\"\",a?r.appendChild(this.h({tagName:\"img\",src:a,alt:t.alt??\"Ink\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}})):r.appendChild(this.renderGraphicLoading(\"Ink\"))})}).catch(()=>{r.textContent=\"\",r.appendChild(this.renderGraphicLoading(\"Ink\"))}))}return r}renderGraphicLoading(t){return this.h({tagName:\"span\",style:{display:\"inline-flex\",\"align-items\":\"center\",\"justify-content\":\"center\",width:\"100%\",height:\"100%\",\"min-width\":\"2in\",\"min-height\":\"1in\",border:\"1px solid currentColor\"},children:[`[${t}]`]})}renderChartSvg(t){let e=t.documentElement,r=this.detectChartType(e),i=this.parseChartSeries(e,r),o=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});o.setAttribute(\"viewBox\",\"0 0 640 360\"),o.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");let a=this.extractChartTitle(e);if(a){let f=this.svgText(a,320,24,\"middle\",\"14px\",\"bold\");f.setAttribute(\"data-docx-chart-title\",\"true\"),o.appendChild(f)}if(!i.length||i.every(f=>!f.values.length))return o.appendChild(this.svgText(\"Chart\",320,180,\"middle\",\"18px\")),o;let s=e.localName==\"chart\"?e:this.chartChild(e,\"chart\"),l=this.chartChild(s,\"plotArea\"),c=this.chartChildren(l).filter(f=>f.localName.endsWith(\"Chart\"));if(c.length>1&&c.every(f=>{let d=this.resolveChartAxes(e,f.localName,f),p=this.chartChild(f,\"barDir\")?.getAttribute(\"val\"),m=this.chartChild(f,\"grouping\")?.getAttribute(\"val\");return d?.category&&d.value&&[\"barChart\",\"lineChart\"].includes(f.localName)&&(!p||p==\"col\")&&![\"stacked\",\"percentStacked\"].includes(m)}))return this.drawCombinedChartAxes(o,e,c),o;let u=this.resolveChartAxes(e,r);return r==\"lineChart\"&&u?.category?.localName==\"dateAx\"?this.drawDateLineChart(o,i,u,{seriesNodes:this.chartChildren(this.chartChild(l,r),\"ser\")}):r==\"pieChart\"||r==\"doughnutChart\"?this.drawPieChart(o,i[0]):[\"lineChart\",\"scatterChart\",\"areaChart\"].includes(r)?this.drawLineChart(o,i,r==\"areaChart\"):this.drawBarChart(o,i),this.drawChartAxisTitles(o,u),o}chartChildren(t,e){return Array.from(t?.childNodes??[]).filter(r=>r.nodeType==1&&Ti.includes(r.namespaceURI)&&(!e||r.localName==e))}chartChild(t,e){return this.chartChildren(t,e)[0]??null}chartDescendant(t,e){return t?Array.from(t.getElementsByTagName(\"*\")).find(r=>r.localName==e&&Ti.includes(r.namespaceURI))??null:null}detectChartType(t){return[\"barChart\",\"bar3DChart\",\"lineChart\",\"pieChart\",\"doughnutChart\",\"areaChart\",\"scatterChart\",\"ofPieChart\",\"radarChart\"].find(r=>t.localName==r&&Ti.includes(t.namespaceURI)||this.chartDescendant(t,r))??\"barChart\"}parseChartSeries(t,e){let r=t.localName==e&&Ti.includes(t.namespaceURI)?t:this.chartDescendant(t,e);return this.chartChildren(r,\"ser\").map((i,o)=>{let a=this.chartCacheValues(this.chartChild(i,\"cat\")??this.chartChild(i,\"xVal\")),s=this.chartCacheValues(this.chartChild(i,\"val\")??this.chartChild(i,\"yVal\")).map(l=>l.trim()&&Number.isFinite(Number(l))?Number(l):NaN);return{name:this.chartText(this.chartChild(i,\"tx\"))||`Series ${o+1}`,categories:a.length?a:s.map((l,c)=>`${c+1}`),values:s}})}chartCacheValues(t){if(!t)return[];let e=[\"strCache\",\"numCache\",\"strLit\",\"numLit\"].map(c=>this.chartDescendant(t,c)).find(Boolean)??t,r=2e4,i=this.chartChild(e,\"ptCount\")?.getAttribute(\"val\")??\"\",o=/^\\d+$/.test(i)?Math.min(Number(i),r):0,a=[];for(let c of this.chartChildren(e,\"pt\")){let h=c.getAttribute(\"idx\")??\"\";if(!/^\\d+$/.test(h))continue;let u=Number(h);!Number.isSafeInteger(u)||u>=r||(o=Math.max(o,u+1),a.push({index:u,value:this.chartChild(c,\"v\")?.textContent??\"\"}))}let s=Array(o).fill(\"\"),l=new Set;for(let c of a)l.has(c.index)||(s[c.index]=c.value),l.add(c.index);return s}chartText(t){if(!t)return\"\";let e=this.chartCacheValues(t);return e.length?e.join(\" \"):Array.from(t.getElementsByTagName(\"*\")).filter(i=>i.localName==\"t\"&&Yo.includes(i.namespaceURI)).map(i=>i.textContent).filter(Boolean).join(\" \").trim()||this.chartDescendant(t,\"v\")?.textContent?.trim()||\"\"}chartNumber(t,e){let r=this.chartChild(t,e)?.getAttribute(\"val\");return r!=null&&r.trim()&&Number.isFinite(Number(r))?Number(r):null}chartBoolean(t){return!!t&&![\"0\",\"false\",\"off\"].includes((t.getAttribute(\"val\")??\"1\").toLowerCase())}chartTitleText(t){let e=this.chartChild(this.chartChild(t,\"tx\"),\"rich\");return e?Array.from(e.childNodes).filter(r=>r.nodeType==1&&r.localName==\"p\"&&Yo.includes(r.namespaceURI)).map(r=>Array.from(r.getElementsByTagNameNS(r.namespaceURI,\"t\")).map(i=>i.textContent??\"\").join(\"\")).join(`\n`):this.chartText(t)}extractChartTitle(t){let e=t.localName==\"chart\"?t:this.chartChild(t,\"chart\");return this.chartTitleText(this.chartChild(e,\"title\"))}resolveChartAxes(t,e,r){let i=t.localName==\"chart\"?t:this.chartChild(t,\"chart\"),o=this.chartChild(i,\"plotArea\"),a=r??this.chartChild(o,e);if(!a)return null;let s=this.chartChildren(a,\"axId\").map(u=>u.getAttribute(\"val\")),l=this.chartChildren(o).filter(u=>/^(catAx|dateAx|valAx)$/.test(u.localName)&&s.includes(this.chartChild(u,\"axId\")?.getAttribute(\"val\"))),c=l.find(u=>u.localName==\"dateAx\")??l.find(u=>u.localName==\"catAx\")??null,h=l.find(u=>u.localName==\"valAx\"&&(!c||this.chartChild(c,\"crossAx\")?.getAttribute(\"val\")==this.chartChild(u,\"axId\")?.getAttribute(\"val\")))??l.find(u=>u.localName==\"valAx\")??null;return{category:c,value:h,date1904:this.chartBoolean(this.chartChild(t,\"date1904\"))}}chartValueBounds(t){let e=0,r=0;for(let i of t)for(let o of i.values)Number.isFinite(o)&&(e=Math.min(e,o),r=Math.max(r,o));return{min:e,max:e==r?e+1:r}}drawCategoryLabels(t,e,r,i){let o=e.map((c,h)=>({text:c,index:h})).filter(c=>c.text.trim());if(!o.length)return;let a=o[o.length-1],s=r(a.index)-this.chartLegendTextWidth(a.text)/2,l=-1/0;o.forEach((c,h)=>{let u=r(c.index),f=this.chartLegendTextWidth(c.text)/2;if(h>0&&h<o.length-1&&(u-f<l+3||u+f+3>s))return;let d=this.svgText(c.text,u,i,\"middle\",\"10px\");d.setAttribute(\"data-docx-chart-category-index\",`${c.index}`),t.appendChild(d),l=u+f})}drawBarChart(t,e){let r=e[0]?.categories??[],i=Math.max(1,r.length,...e.map(h=>h.values.length)),o=this.chartValueBounds(e),a=h=>300-(h-o.min)/(o.max-o.min)*230,s=a(0),l=540/i,c=l/Math.max(e.length+1,2);t.appendChild(this.svgLine(60,s,600,s)),t.appendChild(this.svgLine(60,300,60,70)),e.forEach((h,u)=>h.values.forEach((f,d)=>{if(!Number.isFinite(f))return;let p=a(f),m=this.createSvgElement(\"rect\");m.setAttribute(\"x\",`${60+d*l+u*c+c*.2}`),m.setAttribute(\"y\",`${Math.min(s,p)}`),m.setAttribute(\"width\",`${c*.8}`),m.setAttribute(\"height\",`${Math.abs(p-s)}`),m.setAttribute(\"data-docx-chart-point-index\",`${d}`),m.style.fill=this.chartColor(u),t.appendChild(m)})),this.drawCategoryLabels(t,r,h=>60+(h+.5)*l,318),this.drawBottomLegend(t,e.map(h=>h.name),335)}drawLineChart(t,e,r=!1){let i=this.chartValueBounds(e),o=c=>300-(c-i.min)/(i.max-i.min)*230,a=o(0),s=Math.max(1,...e.map(c=>Math.max(c.values.length,c.categories.length))),l=540/Math.max(s-1,1);t.appendChild(this.svgLine(60,a,600,a)),t.appendChild(this.svgLine(60,300,60,70)),e.forEach((c,h)=>{let u=[],f=()=>{if(!u.length)return;let d=u.map((m,g)=>`${g?\"L\":\"M\"}${m[0]},${m[1]}`).join(\" \");if(r&&u.length>1){let m=this.createSvgElement(\"path\");m.setAttribute(\"d\",`${d} L${u[u.length-1][0]},${a} L${u[0][0]},${a} Z`),m.style.fill=this.chartColor(h),m.style.opacity=\"0.25\",t.appendChild(m)}let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d),p.style.stroke=this.chartColor(h),p.style.strokeWidth=\"2\",p.style.fill=\"none\",t.appendChild(p),u=[]};c.values.forEach((d,p)=>{if(!Number.isFinite(d)){f();return}let m=60+p*l,g=o(d);u.push([m,g]);let b=this.createSvgElement(\"circle\");b.setAttribute(\"cx\",`${m}`),b.setAttribute(\"cy\",`${g}`),b.setAttribute(\"r\",\"3\"),b.setAttribute(\"data-docx-chart-point-index\",`${p}`),b.style.fill=this.chartColor(h),t.appendChild(b)}),f()}),this.drawCategoryLabels(t,e[0]?.categories??[],c=>60+c*l,318),this.drawBottomLegend(t,e.map(c=>c.name),335)}drawPieChart(t,e){let r=e.values.reduce((o,a)=>o+(Number.isFinite(a)?Math.max(0,a):0),0)||1,i=-90;e.values.forEach((o,a)=>{if(!Number.isFinite(o)||o<0)return;let s=o/r*360,l=this.createSvgElement(s==360?\"circle\":\"path\");s==360?(l.setAttribute(\"cx\",\"300\"),l.setAttribute(\"cy\",\"180\"),l.setAttribute(\"r\",\"110\")):l.setAttribute(\"d\",this.pieSlicePath(300,180,110,i,i+s)),l.setAttribute(\"data-docx-chart-point-index\",`${a}`),l.style.fill=this.chartColor(a),t.appendChild(l),this.drawLegend(t,e.categories[a]||`${a+1}`,a,450,90+a*22),i+=s})}drawCombinedChartAxes(t,e,r){let i=0,o=[];for(let a of r){let s=this.resolveChartAxes(e,a.localName,a),l=this.parseChartSeries(a,a.localName);if(!s?.category||!s.value||!l.length)continue;let c=this.createSvgElement(\"g\");c.setAttribute(\"data-docx-chart-axis-group\",a.localName),c.setAttribute(\"data-docx-chart-value-axis-id\",this.chartChild(s.value,\"axId\")?.getAttribute(\"val\")??\"\"),t.appendChild(c),this.drawDateLineChart(c,l,s,{type:a.localName,group:a,colorOffset:i,noLegend:!0,seriesNodes:this.chartChildren(a,\"ser\")}),this.drawChartAxisTitles(t,s),i+=l.length,o.push(...l.map(h=>h.name))}this.drawBottomLegend(t,o,335),this.syncChartAxisLegend(t)}drawDateLineChart(t,e,r,i={}){let o=r.category,a=r.value,s=o?.localName!=\"dateAx\",l=e.map(J=>J.categories.map(lt=>lt.trim()&&Number.isFinite(Number(lt))?Number(lt):NaN)),c=l.flat().filter(Number.isFinite);if(!s&&!c.length){this.drawLineChart(t,e);return}let h=e.reduce((J,lt)=>Math.max(J,lt.values.length,lt.categories.length),1),u=this.chartChild(o,\"scaling\"),f=this.chartChild(a,\"scaling\"),d=s?0:this.chartNumber(u,\"min\")??c.reduce((J,lt)=>Math.min(J,lt),1/0),p=s?h:this.chartNumber(u,\"max\")??c.reduce((J,lt)=>Math.max(J,lt),-1/0);p<=d&&(p=d+1);let m=this.chartValueBounds(e),g=this.chartNumber(f,\"min\")??m.min,b=this.chartNumber(f,\"max\")??m.max;if(b<=g&&(g=m.min,b=m.max),!Number.isFinite(p-d)||!Number.isFinite(b-g))return;let T=this.chartChild(u,\"orientation\")?.getAttribute(\"val\")==\"maxMin\",S=this.chartChild(f,\"orientation\")?.getAttribute(\"val\")==\"maxMin\",I=J=>{let lt=(J-d)/(p-d);return 60+(T?1-lt:lt)*540},O=J=>{let lt=(J-g)/(b-g);return 300-(S?1-lt:lt)*230},$=(J,lt)=>I(s?lt+.5:J),k=this.chartChild(a,\"axPos\")?.getAttribute(\"val\")==\"r\",W=this.chartBoolean(this.chartChild(o,\"delete\")),U=this.chartBoolean(this.chartChild(a,\"delete\")),v=this.chartChild(a,\"crosses\")?.getAttribute(\"val\"),_=this.chartChild(o,\"crosses\")?.getAttribute(\"val\"),y=Math.min(b,Math.max(g,this.chartNumber(a,\"crossesAt\")??(v==\"max\"?b:v==\"min\"?g:0))),H=Math.min(p,Math.max(d,this.chartNumber(o,\"crossesAt\")??(_==\"max\"?p:d)));if(W||t.appendChild(this.svgLine(60,O(y),600,O(y))),!U){let J=k?600:I(H);t.appendChild(this.svgLine(J,300,J,70))}t.setAttribute(\"data-docx-chart-x-range\",`${d},${p}`),t.setAttribute(\"data-docx-chart-y-range\",`${g},${b}`);let nt=this.createSvgElement(\"svg\");for(let[J,lt]of Object.entries({x:60,y:70,width:540,height:230,viewBox:\"60 70 540 230\",overflow:\"hidden\"}))nt.setAttribute(J,String(lt));if(nt.setAttribute(\"data-docx-chart-date-plot\",\"true\"),t.appendChild(nt),e.forEach((J,lt)=>{let ot=i.seriesNodes?.[lt],et=this.chartChild(ot,\"spPr\"),B=(Pt,jt)=>Array.from(Pt?.getElementsByTagName(\"*\")??[]).find(qt=>qt.localName==jt&&Yo.includes(qt.namespaceURI)),z=B(et,\"ln\"),st=B(i.type==\"barChart\"?et:z,\"srgbClr\")?.getAttribute(\"val\"),dt=lt+(i.colorOffset??0),ft=/^[0-9a-f]{6}$/i.test(st??\"\")?`#${st}`:this.chartColor(dt),Ft=z?.getAttribute(\"w\"),Xt=Ft&&Number.isFinite(Number(Ft))?Math.max(0,Number(Ft)/9525):2,Et=this.chartChild(this.chartChild(ot,\"marker\"),\"symbol\")?.getAttribute(\"val\")!=\"none\",_t=[],Kt=()=>{if(!_t.length)return;let Pt=this.createSvgElement(\"path\");Pt.setAttribute(\"d\",_t.map(([jt,qt],x)=>`${x?\"L\":\"M\"}${jt},${qt}`).join(\" \")),Pt.style.stroke=ft,Pt.style.strokeWidth=String(Xt),Pt.style.fill=\"none\",nt.appendChild(Pt),_t=[]};J.values.forEach((Pt,jt)=>{let qt=l[lt][jt];if(!s&&!Number.isFinite(qt)||!Number.isFinite(Pt)){Kt();return}let x=$(qt,jt),it=O(Pt),Q=i.type==\"barChart\";Q||_t.push([x,it]);let D=this.createSvgElement(Q?\"rect\":\"circle\"),R={\"data-docx-chart-point-index\":jt,\"data-docx-chart-series-index\":dt,\"data-docx-chart-date-value\":qt,\"data-docx-chart-center-x\":x,\"data-docx-chart-center-y\":it};if(Q){let G=Math.max(0,Math.min(500,this.chartNumber(i.group,\"gapWidth\")??150)),tt=540/h/(e.length+G/100),ht=O(Math.min(b,Math.max(g,0)));Object.assign(R,{x:x-e.length*tt/2+lt*tt,y:Math.min(it,ht),width:tt,height:Math.abs(ht-it)})}else Object.assign(R,{cx:x,cy:it,r:Et?3:0});for(let[G,tt]of Object.entries(R))Number.isFinite(tt)&&D.setAttribute(G,String(tt));D.style.fill=ft,nt.appendChild(D)}),Kt()}),!W&&this.chartChild(o,\"tickLblPos\")?.getAttribute(\"val\")!=\"none\"){let J=this.chartChild(o,\"numFmt\")?.getAttribute(\"formatCode\")??(s?\"General\":\"yyyy/m/d\"),lt=s?e[0].categories.map((B,z)=>({raw:B,value:Number(B),x:$(Number(B),z),index:z})):this.chartDateTicks(o,c,d,p,r.date1904).map(B=>({raw:String(B),value:B,x:I(B)}));lt.sort((B,z)=>B.x-z.x);let ot=-1/0,et=null;for(let B of lt){let z=this.formatChartDateLabel(B.raw,J,r.date1904),st=this.chartLegendTextWidth(z)/2;if(z==et||B.x-st<ot+4)continue;let dt=this.svgText(z,B.x,318,\"middle\",\"10px\");dt.setAttribute(\"data-docx-chart-date-tick\",Number.isFinite(B.value)?String(B.value):B.raw),s&&dt.setAttribute(\"data-docx-chart-category-index\",String(B.index)),t.appendChild(dt),ot=B.x+st,et=z}}if(!U&&this.chartChild(a,\"tickLblPos\")?.getAttribute(\"val\")!=\"none\"){let J=this.chartNumber(a,\"majorUnit\"),lt=J!=null&&J>0?J:(b-g)/5,ot=Math.floor((b-g)/lt+1e-8)+1;if(ot>0&&ot<=100)for(let et=0;et<ot;et++){let B=Number((g+et*lt).toPrecision(12)),z=this.chartAxisNumberLabel(B,this.chartChild(a,\"numFmt\")?.getAttribute(\"formatCode\")),st=this.svgText(z,k?606:54,O(B)+3,k?\"start\":\"end\",\"10px\");st.setAttribute(\"data-docx-chart-value-tick\",String(B)),t.appendChild(st)}}i.noLegend||(this.drawBottomLegend(t,e.map(J=>J.name),335),this.syncChartAxisLegend(t))}drawChartAxisTitles(t,e){for(let r of[e?.category,e?.value]){if(!r||this.chartBoolean(this.chartChild(r,\"delete\")))continue;let i=this.chartChild(r,\"title\"),o=this.chartTitleText(i);if(!o)continue;let a=this.chartChild(r,\"axPos\")?.getAttribute(\"val\")??(r.localName==\"valAx\"?\"l\":\"b\"),s=this.chartChild(this.chartChild(i,\"layout\"),\"manualLayout\"),l=this.chartNumber(s,\"x\"),c=this.chartNumber(s,\"y\"),h=l!=null&&c!=null&&this.chartChild(s,\"xMode\")?.getAttribute(\"val\")==\"edge\"&&this.chartChild(s,\"yMode\")?.getAttribute(\"val\")==\"edge\",u={b:[330,349],t:[330,50],l:[16,185],r:[625,185]},f=u[a]??u.b,d=h?l*640:f[0],p=h?c*360:f[1],m=this.svgText(o,d,p,h?\"start\":\"middle\",\"12px\");m.setAttribute(\"data-docx-chart-axis-title\",this.chartChild(r,\"axId\")?.getAttribute(\"val\")??a),h?m.setAttribute(\"dominant-baseline\",\"hanging\"):(a==\"l\"||a==\"r\")&&m.setAttribute(\"transform\",`rotate(${a==\"l\"?-90:90} ${d} ${p})`),t.appendChild(m)}}syncChartAxisLegend(t){let e=new Map;for(let r of Array.from(t.querySelectorAll(\"[data-docx-chart-series-index]\"))){let i=Number(r.getAttribute(\"data-docx-chart-series-index\"));e.has(i)||e.set(i,r.style.fill)}t.querySelector(\"[data-docx-chart-legend]\")?.querySelectorAll(\"rect\").forEach((r,i)=>{e.has(i)&&(r.style.fill=e.get(i))})}chartAxisNumberLabel(t,e){let r=/^(0)(?:\\.(0{1,10}))?(%)?$/.exec(e??\"\");return r?(t*(r[3]?100:1)).toFixed(r[2]?.length??0)+(r[3]?\"%\":\"\"):String(t)}chartDateTicks(t,e,r,i,o){let a=this.chartNumber(t,\"majorUnit\"),s=this.chartChild(t,\"majorTimeUnit\")?.getAttribute(\"val\")??\"days\";if(a!=null&&a>0){if(s==\"days\"){let l=Math.floor((i-r)/a+1e-9)+1;if(l>0&&l<=1e3)return Array.from({length:l},(c,h)=>r+h*a)}else if(Number.isInteger(a)&&[\"months\",\"years\"].includes(s)){let l=this.formatChartDateLabel(String(r),\"yyyy/mm/dd\",o);if(/^\\d{4}\\/\\d{2}\\/\\d{2}$/.test(l)){let[c,h,u]=l.split(\"/\").map(Number),f=[];for(let d=0;d<1e3;d++){let p=new Date(Date.UTC(c,h-1+d*a*(s==\"years\"?12:1),1)),m=new Date(Date.UTC(p.getUTCFullYear(),p.getUTCMonth()+1,0)).getUTCDate(),g=Date.UTC(p.getUTCFullYear(),p.getUTCMonth(),Math.min(u,m)),b=(g-Date.UTC(o?1904:1899,o?0:11,o?1:31))/864e5;if(!o&&g>=Date.UTC(1900,2,1)&&b++,b+=r-Math.floor(r),!Number.isFinite(b)||b>i+1e-9)break;b>=r-1e-9&&f.push(b)}if(f.length&&f.length<1e3)return f}}}return[...new Set(e)].filter(l=>l>=r&&l<=i)}formatChartDateLabel(t,e,r=!1){if(!t.trim()||!Number.isFinite(Number(t)))return t;let i=Number(t),o=Math.floor(i);if(o<0||o>(r?2957003:2958465))return t;let a=Math.min(86399999,Math.round((i-o)*864e5)),s=new Date(Date.UTC(r?1904:1899,r?0:11,r?1:31)+(o-(!r&&o>60?1:0))*864e5+a),l=!r&&o==60,c=l?1900:s.getUTCFullYear(),h=l?2:s.getUTCMonth()+1,u=l?29:s.getUTCDate(),f=(I,O=2)=>String(I).padStart(O,\"0\"),d=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],p=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],m=\"\",g=!1;for(let I=0;I<(e??\"\").length;I++){let O=e[I];if(O==\"\\\\\"&&I+1<e.length){m+=O+e[++I];continue}if(O=='\"'&&(g=!g),O==\";\"&&!g)break;m+=O}if(!m||g)return t;let b=m.match(/\"[^\"]*\"|\\\\.|\\[\\$-[\\w-]+\\]|AM\\/PM|A\\/P|y+|m+|d+|h+|s+|./gi)??[];if(!b.some(I=>/^(y+|m+|d+|h+|s+)$/i.test(I)))return t;let T=b.some(I=>/^(AM\\/PM|A\\/P)$/i.test(I)),S=\"\";for(let I=0;I<b.length;I++){let O=b[I],$=O.toLowerCase();if(O.startsWith('\"')){S+=O.slice(1,-1);continue}if(O.startsWith(\"\\\\\")){S+=O.slice(1);continue}if(/^\\[\\$-/i.test(O)){if(!/^\\[\\$-(409|en-us)\\]$/i.test(O))return t;continue}let k=b.slice(0,I).reverse().find(U=>/^[ymdhs]+$/i.test(U)),W=b.slice(I+1).find(U=>/^[ymdhs]+$/i.test(U));if(/^y{1,4}$/.test($))S+=$.length<=2?f(c%100):f(c,4);else if(/^m{1,5}$/.test($))/^h+$/i.test(k??\"\")||/^s+$/i.test(W??\"\")?S+=$.length==1?s.getUTCMinutes():f(s.getUTCMinutes()):S+=$.length==1?h:$.length==2?f(h):$.length==3?d[h-1].slice(0,3):$.length==4?d[h-1]:d[h-1][0];else if(/^d{1,4}$/.test($))S+=$.length==1?u:$.length==2?f(u):$.length==3?p[s.getUTCDay()].slice(0,3):p[s.getUTCDay()];else if(/^h{1,2}$/.test($)){let U=T?s.getUTCHours()%12||12:s.getUTCHours();S+=$.length==1?U:f(U)}else if(/^s{1,2}$/.test($))S+=$.length==1?s.getUTCSeconds():f(s.getUTCSeconds());else if(/^(am\\/pm|a\\/p)$/.test($)){let U=s.getUTCHours()<12?\"AM\":\"PM\",v=$==\"a/p\"?U[0]:U;S+=O==$?v.toLowerCase():v}else if(/^[\\s/.,:\\-年月日时分秒()]$/.test(O))S+=O;else return t}return S}pieSlicePath(t,e,r,i,o){let a=this.polar(t,e,r,o),s=this.polar(t,e,r,i),l=o-i<=180?\"0\":\"1\";return`M${t},${e} L${a.x},${a.y} A${r},${r} 0 ${l},0 ${s.x},${s.y} Z`}polar(t,e,r,i){let o=(i-90)*Math.PI/180;return{x:t+r*Math.cos(o),y:e+r*Math.sin(o)}}drawLegend(t,e,r,i,o){let a=this.createSvgElement(\"rect\");a.setAttribute(\"x\",`${i}`),a.setAttribute(\"y\",`${o-10}`),a.setAttribute(\"width\",\"10\"),a.setAttribute(\"height\",\"10\"),a.style.fill=this.chartColor(r),t.appendChild(a),t.appendChild(this.svgText(e,i+14,o,\"start\",\"10px\"))}drawBottomLegend(t,e,r){if(e.length==0)return;let i=18,o=e.map(c=>14+this.chartLegendTextWidth(c)),a=o.reduce((c,h)=>c+h,0)+i*Math.max(0,e.length-1),s=this.createSvgElement(\"g\");s.setAttribute(\"data-docx-chart-legend\",\"bottom\"),s.setAttribute(\"transform\",`translate(${Math.max(0,(640-a)/2)}, 0)`);let l=0;e.forEach((c,h)=>{this.drawLegend(s,c,h,l,r),l+=o[h]+i}),t.appendChild(s)}chartLegendTextWidth(t){return Array.from(t).reduce((e,r)=>/\\s/.test(r)?e+3:e+((r.codePointAt(0)??0)>255?10:6),0)}chartColor(t){return`hsl(${t*47%360}, 65%, 48%)`}renderSmartArtSvg(t){let e=t.documentElement,r=this.elementsByLocal(e,\"pt\").map(u=>({id:u.getAttribute(\"modelId\"),type:u.getAttribute(\"type\"),text:this.elementsByLocal(u,\"t\").map(f=>f.textContent).filter(Boolean).join(\" \").trim()})).filter(u=>u.id&&u.text&&u.type!=\"doc\"),i=this.elementsByLocal(e,\"cxn\").map(u=>({src:u.getAttribute(\"srcId\"),dst:u.getAttribute(\"destId\")})).filter(u=>u.src&&u.dst&&r.some(f=>f.id==u.src)&&r.some(f=>f.id==u.dst)),o=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});if(o.setAttribute(\"viewBox\",\"0 0 640 360\"),o.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\"),r.length==0)return o.appendChild(this.svgText(\"SmartArt\",320,180,\"middle\",\"18px\")),o;let a=this.layoutDiagramNodes(r,i),s={},l=140,c=44,h=Math.min(90,260/Math.max(a.length,1));a.forEach((u,f)=>{let d=55+f*h,p=560/Math.max(u.length,1);u.forEach((m,g)=>{s[m.id]={x:40+p*g+Math.max(0,p-l)/2,y:d}})});for(let u of i){let f=s[u.src],d=s[u.dst];f&&d&&o.appendChild(this.svgLine(f.x+l/2,f.y+c,d.x+l/2,d.y))}return r.forEach((u,f)=>{let d=s[u.id];if(!d)return;let p=this.createSvgElement(\"rect\");p.setAttribute(\"x\",`${d.x}`),p.setAttribute(\"y\",`${d.y}`),p.setAttribute(\"width\",`${l}`),p.setAttribute(\"height\",`${c}`),p.setAttribute(\"rx\",\"8\"),p.style.fill=this.chartColor(f),p.style.opacity=\"0.18\",p.style.stroke=this.chartColor(f),o.appendChild(p),o.appendChild(this.svgText(u.text,d.x+l/2,d.y+27,\"middle\",\"11px\"))}),o}layoutDiagramNodes(t,e){let r=new Map(t.map(l=>[l.id,0]));e.forEach(l=>r.set(l.dst,(r.get(l.dst)??0)+1));let i=t.filter(l=>(r.get(l.id)??0)==0),o=new Set,a=[];for(i.length==0&&(i=t.slice(0,1));i.length>0;){a.push(i),i.forEach(c=>o.add(c.id));let l=e.filter(c=>i.some(h=>h.id==c.src)).map(c=>c.dst).filter(c=>!o.has(c));i=[...new Set(l)].map(c=>t.find(h=>h.id==c)).filter(Boolean)}let s=t.filter(l=>!o.has(l.id));return s.length>0&&a.push(s),a}renderInkSvg(t){let e=this.createSvgElement(\"svg\",{style:{width:\"100%\",height:\"100%\",display:\"block\"}});e.setAttribute(\"viewBox\",\"0 0 640 360\"),e.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");let r=this.elementsByLocal(t.documentElement,\"trace\").map(d=>this.inkTraceToPoints(d.textContent)),i=this.elementsByLocal(t.documentElement,\"path\").map(d=>d.getAttribute(\"d\")).filter(Boolean);if(r.length==0&&i.length==0)return e.appendChild(this.svgText(\"Ink\",320,180,\"middle\",\"18px\")),e;let o=r.flat(),a=Math.min(...o.map(d=>d[0]),0),s=Math.min(...o.map(d=>d[1]),0),l=Math.max(...o.map(d=>d[0]),640),c=Math.max(...o.map(d=>d[1]),360),h=Math.min(600/Math.max(l-a,1),320/Math.max(c-s,1)),u=20-a*h,f=20-s*h;for(let d of r){if(d.length<2)continue;let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d.map((m,g)=>`${g==0?\"M\":\"L\"}${m[0]*h+u},${m[1]*h+f}`).join(\" \")),p.style.fill=\"none\",p.style.stroke=\"currentColor\",p.style.strokeWidth=\"2\",p.style.strokeLinecap=\"round\",p.style.strokeLinejoin=\"round\",e.appendChild(p)}for(let d of i){let p=this.createSvgElement(\"path\");p.setAttribute(\"d\",d),p.style.fill=\"none\",p.style.stroke=\"currentColor\",p.style.strokeWidth=\"2\",e.appendChild(p)}return e}inkTraceToPoints(t){let e=(t??\"\").match(/-?\\d+(?:\\.\\d+)?/g)?.map(Number)??[],r=[];for(let i=0;i+1<e.length;i+=2)r.push([e[i],e[i+1]]);return r}svgLine(t,e,r,i){let o=this.createSvgElement(\"line\");return o.setAttribute(\"x1\",`${t}`),o.setAttribute(\"y1\",`${e}`),o.setAttribute(\"x2\",`${r}`),o.setAttribute(\"y2\",`${i}`),o.style.stroke=\"currentColor\",o.style.strokeWidth=\"1\",o}svgText(t,e,r,i=\"start\",o=\"12px\",a=null){let s=this.createSvgElement(\"text\");return s.setAttribute(\"x\",`${e}`),s.setAttribute(\"y\",`${r}`),s.setAttribute(\"text-anchor\",i),s.style.fill=\"currentColor\",s.style.fontSize=o,a&&(s.style.fontWeight=a),s.appendChild(document.createTextNode(t)),s}elementsByLocal(t,e){let r=t.documentElement??t;return Array.from(r.getElementsByTagName(\"*\")).filter(i=>i.localName==e)}firstByLocal(t,e){return this.elementsByLocal(t,e)[0]??null}renderSimpleField(t){let e=this.evaluateFieldNode(t);return e===void 0?this.renderElements(t.children??[]):e==null?null:Jr(e)?this.renderFieldText(e,t.instruction):e}renderFieldText(t,e){let r=this.h({tagName:\"span\",className:`${this.className}-field`,children:[t]});return e&&(r.dataset.docxFieldInstr=e),r}evaluateFieldNode(t){let e=(t.instruction??\"\").replace(/\\s+/g,\" \").trim();if(!e)return;if(e.startsWith(\"=\")){let o=this.evaluateFormula(e.substring(1));return o==null?void 0:this.applyFieldFormatting(`${o}`,e)}let r=this.tokenizeFieldInstruction(e),i=r[0]?.replace(/^=/,\"\").toUpperCase();if(!this.shouldPreserveStoredFieldResult(i,t))switch(i){case\"PAGE\":return this.applyFieldFormatting(this.formatFieldNumber(this.currentPageNumber,this.currentSectionProps?.pageNumber?.format),e);case\"NUMPAGES\":return this.applyFieldFormatting(this.formatFieldNumber(this.totalPages,this.currentSectionProps?.pageNumber?.format),e);case\"SECTIONPAGES\":return this.applyFieldFormatting(this.formatFieldNumber(this.sectionPageCount,this.currentSectionProps?.pageNumber?.format),e);case\"SECTION\":return this.applyFieldFormatting(this.formatFieldNumber(this.currentSectionNumber,\"decimal\"),e);case\"DATE\":case\"TIME\":case\"CREATEDATE\":case\"SAVEDATE\":case\"PRINTDATE\":return this.applyFieldFormatting(this.evaluateDateField(r,i),e);case\"AUTHOR\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.creator??\"\",e);case\"TITLE\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.title??\"\",e);case\"SUBJECT\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.subject??\"\",e);case\"KEYWORDS\":return this.applyFieldFormatting(this.document.corePropsPart?.props?.keywords??\"\",e);case\"NUMWORDS\":return this.applyFieldFormatting(`${this.document.extendedPropsPart?.props?.words??\"\"}`,e);case\"NUMCHARS\":return this.applyFieldFormatting(`${this.document.extendedPropsPart?.props?.characters??\"\"}`,e);case\"FILENAME\":return this.applyFieldFormatting(this.document.documentPart?.path?.split(\"/\").pop()??\"\",e);case\"DOCPROPERTY\":return this.applyFieldFormatting(this.evaluateDocPropertyField(r),e);case\"DOCVARIABLE\":return this.applyFieldFormatting(this.evaluateDocVariableField(r),e);case\"MERGEFIELD\":return;case\"SET\":return this.evaluateSetField(r),null;case\"QUOTE\":return this.applyFieldFormatting(r.slice(1).map(o=>this.resolveFieldValue(o)).join(\"\"),e);case\"HYPERLINK\":return this.renderHyperlinkField(r,t);case\"IF\":return this.applyFieldFormatting(this.evaluateIfField(r),e);case\"REF\":case\"STYLEREF\":return this.applyFieldFormatting(this.evaluateRefField(r),e);case\"PAGEREF\":return this.applyFieldFormatting(this.evaluatePageRefField(r),e);case\"NOTEREF\":return this.applyFieldFormatting(this.evaluateRefField(r),e);case\"SEQ\":return this.applyFieldFormatting(this.evaluateSeqField(r),e);case\"LISTNUM\":return this.applyFieldFormatting(this.evaluateListNumField(r),e);case\"TC\":case\"XE\":return null;case\"TOC\":return this.renderTocField(r);case\"SYMBOL\":return this.evaluateSymbolField(r)}}shouldPreserveStoredFieldResult(t,e){if(!this.options.preserveComplexFieldResults||!e.children?.length)return!1;switch(t){case\"PAGE\":case\"NUMPAGES\":case\"SECTIONPAGES\":case\"SECTION\":return!1;case\"PAGEREF\":return!this.options.updatePageReferences;case\"TOC\":case\"REF\":case\"STYLEREF\":case\"NOTEREF\":case\"SEQ\":case\"LISTNUM\":case\"IF\":case\"DOCVARIABLE\":case\"MERGEFIELD\":return!0}return!1}tokenizeFieldInstruction(t){let e=[],r=\"\",i=null,o=!1;for(let a of t){if(o){r+=a,o=!1;continue}if(a==\"\\\\\"){i?o=!0:(r&&(e.push(r),r=\"\"),r=\"\\\\\");continue}if(a=='\"'||a==\"'\"){i==a?(i=null,e.push(r),r=\"\"):i?r+=a:(r.trim()&&e.push(r.trim()),r=\"\",i=a);continue}if(/\\s/.test(a)&&!i){r&&(e.push(r),r=\"\");continue}r+=a}return r&&e.push(r),e}fieldSwitch(t,e){let r=e.toLowerCase(),i=t.findIndex(o=>o.toLowerCase()==r);return i>=0?t[i+1]:null}hasFieldSwitch(t,e){let r=e.toLowerCase();return t.some(i=>i.toLowerCase()==r)}firstFieldArgument(t,e=1){for(let r=e;r<t.length;r++){if(!t[r]?.startsWith(\"\\\\\"))return t[r];r++}return null}evaluateDateField(t,e){let r=this.fieldSwitch(t,\"\\\\@\"),i=new Date;return r?this.formatFieldDate(i,r):e==\"TIME\"?i.toLocaleTimeString():i.toLocaleDateString()}formatFieldDate(t,e){let r=(h,u=2)=>`${h}`.padStart(u,\"0\"),i=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],o=i.map(h=>h.substring(0,3)),a=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],s=a.map(h=>h.substring(0,3)),l=[[/yyyy/g,`${t.getFullYear()}`],[/yy/g,r(t.getFullYear()%100)],[/MMMM/g,i[t.getMonth()]],[/MMM/g,o[t.getMonth()]],[/MM/g,r(t.getMonth()+1)],[/M/g,`${t.getMonth()+1}`],[/dddd/g,a[t.getDay()]],[/ddd/g,s[t.getDay()]],[/dd/g,r(t.getDate())],[/d/g,`${t.getDate()}`],[/HH/g,r(t.getHours())],[/H/g,`${t.getHours()}`],[/hh/g,r((t.getHours()+11)%12+1)],[/h/g,`${(t.getHours()+11)%12+1}`],[/mm/g,r(t.getMinutes())],[/m/g,`${t.getMinutes()}`],[/ss/g,r(t.getSeconds())],[/s/g,`${t.getSeconds()}`],[/AM\\/PM/g,t.getHours()<12?\"AM\":\"PM\"],[/am\\/pm/g,t.getHours()<12?\"am\":\"pm\"]],c=e;for(let[h,u]of l)c=c.replace(h,u);return c}evaluateDocPropertyField(t){let e=this.firstFieldArgument(t)?.toLowerCase();if(!e)return\"\";let r={...this.document.corePropsPart?.props??{},...this.document.extendedPropsPart?.props??{}};for(let[i,o]of Object.entries(r))if(i.toLowerCase()==e)return o==null?\"\":`${o}`;return\"\"}evaluateSetField(t){let e=this.firstFieldArgument(t);if(!e)return;let r=t.slice(t.indexOf(e)+1).filter(i=>!i.startsWith(\"\\\\\")).map(i=>this.resolveFieldValue(i)).join(\" \");this.fieldSetValues[e]=r}evaluateDocVariableField(t){let e=this.firstFieldArgument(t);return e?this.fieldSetValues[e]??\"\":\"\"}renderHyperlinkField(t,e){let r=this.fieldSwitch(t,\"\\\\l\"),i=this.firstFieldArgument(t)??\"\",o=r?`${i}#${r}`:i,a=this.h({tagName:\"a\",children:this.renderHyperlinkChildren(e.children??[])});return this.applyHyperlinkTarget(a,o,!!i),a.textContent||(a.textContent=o||r),a}evaluateIfField(t){let e=[\"<>\",\">=\",\"<=\",\"=\",\">\",\"<\"],r=t.findIndex((m,g)=>g>0&&e.includes(m));if(r<0)return\"\";let i=this.resolveFieldValue(t.slice(1,r).join(\" \")),o=t[r],a=this.resolveFieldValue(t[r+1]??\"\"),s=t[r+2]??\"\",l=t[r+3]??\"\",c=parseFloat(i),h=parseFloat(a),u=!Number.isNaN(c)&&!Number.isNaN(h),f=u?c:i,d=u?h:a,p=!1;switch(o){case\"=\":p=f==d;break;case\"<>\":p=f!=d;break;case\">\":p=f>d;break;case\"<\":p=f<d;break;case\">=\":p=f>=d;break;case\"<=\":p=f<=d;break}return this.resolveFieldValue(p?s:l)}resolveFieldValue(t){let e=(t??\"\").trim();if(/^[-+]?\\d+(?:\\.\\d+)?$/.test(e))return e;if(this.bookmarkTextMap.hasOwnProperty(e))return this.bookmarkTextMap[e];if(this.fieldSetValues.hasOwnProperty(e))return this.fieldSetValues[e];if(e.startsWith(\"=\")){let i=this.evaluateFormula(e.substring(1));return i==null?\"\":`${i}`}let r=this.tokenizeFieldInstruction(e)[0]?.toUpperCase();if([\"PAGE\",\"NUMPAGES\",\"SECTIONPAGES\",\"SECTION\",\"DATE\",\"TIME\",\"AUTHOR\",\"TITLE\",\"SUBJECT\",\"KEYWORDS\",\"REF\",\"PAGEREF\",\"SEQ\",\"DOCPROPERTY\"].includes(r)){let i=this.evaluateFieldNode({type:A.SimpleField,instruction:e,lock:!1,dirty:!1,children:[]});if(Jr(i))return i}return e}evaluateRefField(t){let e=this.firstFieldArgument(t);return e?this.bookmarkTextMap[e]??this.fieldSetValues[e]??\"\":\"\"}evaluatePageRefField(t){let e=this.firstFieldArgument(t);return e?`${this.bookmarkTextMap[e]!=null?Math.max(this.currentPageNumber,1):1}`:\"\"}evaluateSeqField(t){let e=this.firstFieldArgument(t);if(!e||this.hasFieldSwitch(t,\"\\\\h\"))return\"\";let r=this.fieldSwitch(t,\"\\\\r\"),i=this.hasFieldSwitch(t,\"\\\\c\");r!=null?this.fieldSeqCounters[e]=parseInt(r,10)||0:i||(this.fieldSeqCounters[e]=(this.fieldSeqCounters[e]??0)+1);let o=this.fieldSwitch(t,\"\\\\*\")??\"decimal\";return this.formatFieldNumber(this.fieldSeqCounters[e]??0,this.fieldFormatSwitchToNumFormat(o))}evaluateListNumField(t){let e=this.firstFieldArgument(t)??\"LISTNUM\";this.fieldSeqCounters[e]=(this.fieldSeqCounters[e]??0)+1;let r=this.fieldSwitch(t,\"*\")??\"decimal\";return this.formatFieldNumber(this.fieldSeqCounters[e],this.fieldFormatSwitchToNumFormat(r))}renderTocField(t){let e=1,r=9,i=this.fieldSwitch(t,\"\\\\o\");if(i){let s=/(\\d+)\\s*-\\s*(\\d+)/.exec(i);s&&(e=parseInt(s[1],10),r=parseInt(s[2],10))}let a=this.tocEntries.filter(s=>s.level>=e&&s.level<=r).map(s=>{let l=this.h({tagName:\"span\",className:`${this.className}-toc-page`,children:[\"1\"]});return l.dataset.docxPageRef=s.id,this.h({tagName:\"div\",className:`${this.className}-toc-entry ${this.className}-toc-level-${s.level}`,children:[this.h({tagName:\"a\",className:`${this.className}-toc-title`,href:`#${s.id}`,children:[s.text]}),l]})});return this.h({tagName:\"div\",className:`${this.className}-toc`,children:a})}evaluateSymbolField(t){let e=parseInt(t[1],10);return Number.isFinite(e)?String.fromCharCode(e):\"\"}evaluateFormula(t){let e=t.replace(/,/g,\"\").trim();if(!/^[0-9+\\-*/().\\s]+$/.test(e))return null;try{let r=Function(`\"use strict\"; return (${e});`)();return Number.isFinite(r)?r:null}catch{return null}}applyFieldFormatting(t,e){let r=this.tokenizeFieldInstruction(e),i=t??\"\",o=this.fieldSwitch(r,\"\\\\*\"),a=o?.toUpperCase(),s=this.fieldSwitch(r,\"\\\\#\");if(s){let l=parseFloat(i);Number.isNaN(l)||(i=this.formatNumberPicture(l,s))}switch(a){case\"UPPER\":i=i.toUpperCase();break;case\"LOWER\":i=i.toLowerCase();break;case\"FIRSTCAP\":i=i.substring(0,1).toUpperCase()+i.substring(1).toLowerCase();break;case\"CAPS\":i=i.replace(/\\b\\w/g,l=>l.toUpperCase());break;case\"ROMAN\":{let l=parseInt(i,10);Number.isNaN(l)||(i=o==\"roman\"?this.toRoman(l).toLowerCase():this.toRoman(l).toUpperCase());break}case\"ALPHABETIC\":{let l=parseInt(i,10);Number.isNaN(l)||(i=o==\"alphabetic\"?this.toLetters(l).toLowerCase():this.toLetters(l).toUpperCase());break}}return i}formatNumberPicture(t,e){let r=e.indexOf(\".\"),i=r>=0?e.length-r-1:0,o=t.toFixed(i);if(e.includes(\",\")){let[a,s]=o.split(\".\");o=a.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\")+(s!=null?`.${s}`:\"\")}return o}fieldFormatSwitchToNumFormat(t){if(t==\"roman\")return\"lowerRoman\";if(t==\"alphabetic\")return\"lowerLetter\";switch(t?.toUpperCase()){case\"ROMAN\":return\"upperRoman\";case\"ALPHABETIC\":return\"upperLetter\";default:return\"decimal\"}}formatFieldNumber(t,e){switch(e){case\"upperRoman\":return this.toRoman(t).toUpperCase();case\"lowerRoman\":return this.toRoman(t).toLowerCase();case\"upperLetter\":return this.toLetters(t).toUpperCase();case\"lowerLetter\":return this.toLetters(t).toLowerCase();case\"decimalZero\":return t<10?`0${t}`:`${t}`;default:return`${t}`}}toRoman(t){let e=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=Math.max(Math.floor(t),0),i=\"\";for(let[o,a]of e)for(;r>=o;)i+=a,r-=o;return i||`${t}`}toLetters(t){let e=Math.max(Math.floor(t),1),r=\"\";for(;e>0;)e--,r=String.fromCharCode(65+e%26)+r,e=Math.floor(e/26);return r}renderRuby(t){let e=t.children?.find(a=>a.type==A.RubyBase),r=t.children?.find(a=>a.type==A.RubyText),i=[...e?this.renderElements(e.children):[],...r?qr(this.renderElement(r)).filter(a=>a!=null):[]],o=this.h({tagName:\"ruby\",children:i});return t.align&&(o.style.rubyAlign=t.align),o}hasRenderedContent(t){for(let e of t??[]){if(!e)continue;let r=e,i=r.nodeType,o=String(r.localName??r.tagName??r.nodeName??\"\").toLowerCase();if(i==3||o==\"#text\"){if((r.textContent??r.text??r.data??\"\").length)return!0;continue}if([\"br\",\"img\",\"svg\",\"math\",\"table\"].includes(o)||(r.textContent??\"\").length)return!0;let a=Array.from(r.childNodes??r.children??[]);if(a.length&&this.hasRenderedContent(a))return!0}return!1}renderText(t){return this.h(this.applyCjkLineBreakGuards(t.text))}applyCjkLineBreakGuards(t){if(!t||!this.document.settingsPart?.settings?.kinsoku)return t;let e=this.document.settingsPart.settings.noLineBreaksBefore??`!),.:;?]}\\xA2\\xB0\\xB7'\"\\u2020\\u2021\\u203A\\u2103\\u2236\\u3001\\u3002\\u3005\\u3009\\u300B\\u300D\\u300F\\u3011\\u3015\\u3017\\u3019\\u301B\\u301C\\u30A0\\u30A1\\u30A3\\u30A5\\u30A7\\u30A9\\u30C3\\u30E3\\u30E5\\u30E7\\u30EE\\u30FB\\u30FC\\uFF0D\\uFF1F\\uFF01\\uFF05\\uFF0C\\uFF0E\\uFF1A\\uFF1B\\u309B\\u309C\\u30FD\\u30FE\\u309D\\u309E\\u30FC`,r=this.document.settingsPart.settings.noLineBreaksAfter??`([{$\\xA3\\xA5'\"\\u201C\\u2018\\u3008\\u300A\\u300C\\u300E\\u3010\\u3014\\u3016\\u3018\\u301A`,i=\"\";for(let o of t)e.includes(o)&&(i+=\"\\u2060\"),i+=o,r.includes(o)&&(i+=\"\\u2060\");return i}renderDeletedText(t){return Zr(this.options)||Mr(Ce(this.options))?this.renderText(t):null}renderBreak(t){switch(t.break){case\"textWrapping\":case\"line\":return this.h({tagName:\"br\"});case\"column\":return this.h({tagName:\"span\",style:{breakAfter:\"column\"}});case\"page\":return this.options.breakPages?null:this.h({tagName:\"span\",style:{breakAfter:\"page\"}});case\"lastRenderedPageBreak\":return this.options.breakPages||this.options.ignoreLastRenderedPageBreak?null:this.h({tagName:\"span\",style:{breakAfter:\"page\"}})}return null}renderInserted(t){return Zr(this.options)?this.renderRevisionContainer(t,\"ins\"):Ce(this.options)==\"original\"?null:this.renderElements(t.children)}renderDeleted(t){return Zr(this.options)?this.renderRevisionContainer(t,\"del\"):Ce(this.options)==\"original\"?this.renderElements(t.children):null}renderRevisionContainer(t,e){let r=this.renderContainer(t,e),i=t.props?.revision,o=i?.kind??(e==\"ins\"?\"insert\":\"delete\");r.dataset.docxChangeKind=o,this.hasOwnRevisionContent(t)||(r.dataset.docxChangeEmpty=\"true\"),r.style.setProperty(\"--docx-review-color\",Fn(i?.author)),i?.id!=null&&(r.dataset.docxChangeId=`${i.id}`),i?.author&&(r.dataset.docxChangeAuthor=i.author),i?.date&&(r.dataset.docxChangeDate=i.date,r.setAttribute(\"datetime\",i.date));let a=[i?.author,i?.date].filter(Boolean).join(\" - \");return a&&r.setAttribute(\"title\",a),r}hasOwnRevisionContent(t){let e=r=>{for(let i of r.children??[])if(!i.props?.revision&&((i.type==A.Text||i.type==A.DeletedText)&&(i.text??\"\").length||i.type==A.Tab||i.type==A.PositionalTab||i.type==A.Break||i.type==A.Symbol||e(i)))return!0;return!1};return e(t)}renderSymbol(t){let e=Ap(t.font,t.char),r=this.h({tagName:\"span\",children:[e.text],style:{fontFamily:t.font}});return Number.isFinite(t.char)&&r.setAttribute(\"data-docx-symbol-code\",t.char.toString(16).padStart(4,\"0\").toUpperCase()),t.font&&r.setAttribute(\"data-docx-symbol-font\",t.font),e.normalized&&r.setAttribute(\"data-docx-symbol-normalized\",\"true\"),r}renderFootnoteReference(t){return this.renderNoteReference(t,\"footnote\")}renderEndnoteReference(t){return this.renderNoteReference(t,\"endnote\")}renderNoteReference(t,e){let r=this.h({tagName:\"sup\",children:[]});r.dataset.docxNoteReference=e,r.dataset.docxNoteId=t.id;for(let c=t;c;c=c.parent)if(this.isHiddenRevisionForPagination(c))return r.dataset.docxNoteHidden=\"true\",r;let i=e===\"footnote\"?\"footnoteProps\":\"endnoteProps\",o=Jd(this.document.settingsPart?.settings?.[i],this.currentSectionProps?.[i]),a=this.noteSectionIds.get(this.currentSectionProps);a==null&&(a=`${this.noteSectionIds.size+1}`,this.noteSectionIds.set(this.currentSectionProps,a));let s=this.noteNumbering.assign(e,t.id,!!t.customMarkFollows,o,a,`${this.notePageIndex}`),l=e===\"footnote\"?this.currentFootnoteIds:this.currentEndnoteIds;return l.includes(t.id)||l.push(t.id),r.dataset.docxNoteSection=a,r.dataset.docxNoteFormat=o.format,r.dataset.docxNoteStart=`${o.start}`,r.dataset.docxNoteRestart=o.restart,this.applyNoteAssignment(r,s,!0),r}updateDynamicNoteNumbers(t){let e=Array.from(t.querySelectorAll(`:scope > section.${this.className}`)),r=new Bn;for(let i=0;i<e.length;i++)for(let o of Array.from(e[i].querySelectorAll(\"article [data-docx-note-reference]\"))){if(o.dataset.docxNoteHidden===\"true\")continue;let a=r.assign(o.dataset.docxNoteReference,o.dataset.docxNoteId,o.dataset.docxNoteCustom===\"true\",{format:o.dataset.docxNoteFormat,start:Number(o.dataset.docxNoteStart),restart:o.dataset.docxNoteRestart},o.dataset.docxNoteSection,`${i+1}`);this.applyNoteAssignment(o,a,!0)}for(let i of Array.from(t.querySelectorAll(\"li[data-docx-note-id]\")))this.applyNoteAssignment(i,r.assignments.get(`${i.dataset.docxNoteKind}:${i.dataset.docxNoteId}`),!1)}renderTab(t){let r=(this.currentParagraph??Sm(t,A.Paragraph))?.tabs??[],i=r.filter(l=>l?.style!=\"clear\"),o=this.currentParagraphTabIndex++,a=this.resolveRenderedTabStop(i,o,this.currentParagraphTabCount);var s=this.h({tagName:\"span\",className:this.tabStopClass(),children:[\"\\xA0\"]});return s.dataset.docxTab=\"true\",a&&(s.dataset.docxTabAlign=a.style??\"left\",s.dataset.docxTabLeader=a.leader??\"none\",a.position&&(s.dataset.docxTabPos=a.position)),s.dataset.docxTabId=`${this.currentTabs.length}`,this.currentTabs.push({stops:r,span:s}),s}renderBookmarkStart(t){let e=this.h({tagName:\"span\"});return t.name&&(e.id=t.name,e.setAttribute(\"id\",t.name)),e}renderRun(t){let e=t.fieldRun?t.children?.filter(l=>l.type!=A.Instruction&&l.type!=A.ComplexField):t.children;if(t.fieldRun&&(!e||e.length==0))return null;let r=this.renderElements(e);if(t.verticalAlign&&(r=[this.h({tagName:t.verticalAlign,children:r})]),!t.verticalAlign&&e?.length==1&&(e[0].type==A.Tab||e[0].type==A.PositionalTab)&&r?.length==1){let l=r[0];return t.cssStyle&&Object.assign(l.style,t.cssStyle),t.className&&l.classList.add(t.className),l}let o=this.toHTML(t,Dt.html,\"span\",r),a=this.findStyle(t.styleName);this.applyTextBoxFontInheritance(t,a,o);let s=t.cssStyle?.[\"--docx-snap-to-grid\"]??this.styleValue(a,\"span\",\"--docx-snap-to-grid\");if(/^(0|false|off)$/i.test(s??\"\"))o.style.letterSpacing=\"normal\";else if(/^(1|true|on)$/i.test(s??\"\")){let l=this.currentSectionProps?.docGrid;(l?.type==\"linesAndChars\"||l?.type==\"snapToChars\")&&l.charSpace&&(o.style.letterSpacing=l.charSpace)}return t.id&&(o.id=t.id),o}renderTable(t){t.columns?.length&&!t.cssStyle?.[\"table-layout\"]&&(t.cssStyle??(t.cssStyle={}),t.cssStyle[\"table-layout\"]=\"fixed\"),this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0};let e=[];return t.columns&&e.push(this.renderTableColumns(t.columns)),e.push(...this.renderElements(t.children)),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),this.toHTML(t,Dt.html,\"table\",e)}renderTableColumns(t){let e=t.map(r=>this.h({tagName:\"col\",style:{width:r.width}}));return this.h({tagName:\"colgroup\",children:e})}renderTableRow(t){this.currentCellPosition.col=t.gridBefore??0;let e=[],r=this.currentTableRow;this.currentTableRow=t,t.gridBefore&&e.push(this.renderTableCellPlaceholder(t.gridBefore)),e.push(...this.renderElements(t.children)),t.gridAfter&&e.push(this.renderTableCellPlaceholder(t.gridAfter));for(let o of Object.keys(this.currentVerticalMerge))this.currentVerticalMerge[o]?.lastRow!=this.currentCellPosition.row&&delete this.currentVerticalMerge[o];this.currentTableRow=r,this.currentCellPosition.row++;let i=this.toHTML(t,Dt.html,\"tr\",e);return t.isHeader&&(i.dataset.docxRepeatHeader=\"true\"),this.repeatedTableHeaderRows.has(t)&&(i.dataset.docxRepeatedHeader=\"true\"),i}renderTableCellPlaceholder(t){return this.h({tagName:\"td\",colSpan:t,style:{border:\"none\"}})}renderTableCell(t){let e=this.currentTableRow?.isHeader?\"th\":\"td\",r=this.toHTML(t,Dt.html,e),i=this.currentCellPosition.col,o=Math.max(1,t.span??1),a=this.currentVerticalMerge[i],s=r.style.getPropertyValue?.(\"border-bottom\")||r.style[\"border-bottom\"]||t.cssStyle?.[\"border-bottom\"]||\"\",l=r.style.getPropertyPriority?.(\"border-bottom\")||\"\";if(t.verticalMerge)if(t.verticalMerge==\"restart\")this.currentVerticalMerge[i]={cell:r,span:o,lastRow:this.currentCellPosition.row,bottomBorder:s,bottomBorderPriority:l},r.rowSpan=1;else if(a?.span==o&&a.lastRow==this.currentCellPosition.row-1){a.cell.rowSpan+=1,a.lastRow=this.currentCellPosition.row;let c=s||a.bottomBorder||\"\";a.cell.style.setProperty?a.cell.style.setProperty(\"border-bottom\",c,l||a.bottomBorderPriority):a.cell.style[\"border-bottom\"]=c,r.style.display=\"none\"}else delete this.currentVerticalMerge[i];else delete this.currentVerticalMerge[i];return t.span&&(r.colSpan=t.span),this.currentCellPosition.col+=r.colSpan,Lp(r,t.props?.diagonalBorders,c=>this.darkenColorAttr(c)),r}renderVmlPicture(t){let e=this.renderContainer(t,this.currentParagraph?\"span\":\"div\");return e.style.display=\"block\",e}vmlLengthInPoints(t){if(t==null)return null;let e=String(t).trim();if(!/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?(?:pt|px|in|cm|mm|pc)?$/i.test(e))return null;let r=parseFloat(e);return Number.isFinite(r)?/px$/i.test(e)?r*.75:/in$/i.test(e)?r*72:/cm$/i.test(e)?r*72/2.54:/mm$/i.test(e)?r*72/25.4:/pc$/i.test(e)?r*12:r:null}vmlRenderContext(t,e){let r=Dn(t.cssStyleText),[i,o]=t.coordOrigin??[0,0],a=d=>Number.isFinite(d)?d:0,s=this.vmlLengthInPoints(r.width),l=this.vmlLengthInPoints(r.height),c=Math.max(0,a(e?.width??(s??Math.abs(t.coordSize?.[0]??1))*4/3)),h=Math.max(0,a(e?.height??(l??Math.abs(t.coordSize?.[1]??1))*4/3)),u=t.coordSize?.[0]??s??c*3/4,f=t.coordSize?.[1]??l??h*3/4;return{originX:a(i),originY:a(o),offsetX:a(e?.x??0),offsetY:a(e?.y??0),scaleX:u>0?a(c/u):0,scaleY:f>0?a(h/f):0,width:c,height:h}}vmlMappedValue(t,e,r,i){if(t==null)return 0;let o=String(t).trim(),a=parseFloat(o);if(!Number.isFinite(a))return 0;let s=r==\"x\"?e.scaleX:e.scaleY,l=r==\"x\"?e.originX:e.originY,c=i?0:r==\"x\"?e.offsetX:e.offsetY,h;return/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)%$/.test(o)?h=a*(r==\"x\"?e.width:e.height)/100+c:/(?:pt|px|in|cm|mm|pc)$/i.test(o)?h=(this.vmlLengthInPoints(o)??0)*4/3+c:this.vmlLengthInPoints(o)!=null?h=(i?a:a-l)*s+c:h=0,Number.isFinite(h)?h:0}vmlBounds(t,e,r){if(r)return r;let i=Dn(t.cssStyleText),o=i.width==null?e.width:this.vmlMappedValue(i.width,e,\"x\",!0),a=i.height==null?e.height:this.vmlMappedValue(i.height,e,\"y\",!0);return{x:i.left==null?e.offsetX:this.vmlMappedValue(i.left,e,\"x\",!1),y:i.top==null?e.offsetY:this.vmlMappedValue(i.top,e,\"y\",!1),width:Math.max(0,o),height:Math.max(0,a)}}vmlCombinedLength(t,e){if(!t)return e;if(!e)return t;let r=this.vmlLengthInPoints(t),i=this.vmlLengthInPoints(e);return r!=null&&i!=null?`${r+i}pt`:`calc(${t} + ${e})`}vmlRootStyle(t){let e=Dn(t.cssStyleText),r={},i=[\"position\",\"display\",\"left\",\"top\",\"right\",\"bottom\",\"margin-left\",\"margin-top\",\"width\",\"height\",\"z-index\",\"opacity\",\"visibility\",\"overflow\"];for(let o of i)e[o]!=null&&(r[o]=e[o]);return e[\"mso-position-horizontal-relative\"]==\"page\"&&(r.left=this.vmlCombinedLength(r.left,r[\"margin-left\"]),delete r[\"margin-left\"]),e[\"mso-position-vertical-relative\"]==\"page\"&&(r.top=this.vmlCombinedLength(r.top,r[\"margin-top\"]),delete r[\"margin-top\"]),r.display??(r.display=\"block\"),r.overflow??(r.overflow=\"visible\"),r[\"pointer-events\"]=\"none\",r}applyVmlAttributes(t,e,r=new Set){for(let[i,o]of Object.entries(e??{}))r.has(i)||t.setAttribute(i,i==\"fill\"||i==\"stroke\"?this.darkenColorAttr(o):o)}loadVmlImage(t,e){t.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(t.imageHref.id,this.currentPart,this.options.externalResourcePolicy).then(r=>{r&&e.setAttribute(\"href\",r)}))}renderVmlElement(t){let e=this.vmlRenderContext(t),r=this.vmlRootStyle(t);r.width??(r.width=`${e.width}px`),r.height??(r.height=`${e.height}px`);for(let o of[\"width\",\"height\"])/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)$/.test(r[o])&&(r[o]=`${e[o]}px`);let i=this.createSvgElement(\"svg\",{style:r});if(e.width>0&&e.height>0&&this.vmlLengthInPoints(r.width)!=null&&this.vmlLengthInPoints(r.height)!=null&&i.setAttribute(\"viewBox\",`0 0 ${e.width} ${e.height}`),i.setAttribute(\"preserveAspectRatio\",\"none\"),i.setAttribute(\"focusable\",\"false\"),i.dataset.docxVml=\"true\",t.cssStyle?.position==\"absolute\"){i.dataset.docxFloat=\"true\";let o=t.props?.anchorPosition;o?.horizontal?.relative&&(i.dataset.docxAnchorHorizontal=o.horizontal.relative),o?.vertical?.relative&&(i.dataset.docxAnchorVertical=o.vertical.relative)}return i.appendChild(this.renderVmlChildElement(t,e,{x:0,y:0,width:e.width,height:e.height},!0)),i}renderVmlChildElement(t,e,r,i=!1){let o=this.vmlBounds(t,e,r),a=this.vmlRenderContext(t,o),s=Dn(t.cssStyleText),l;switch(t.tagName){case\"image\":{let p=this.createSvgElement(\"svg\");p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),p.setAttribute(\"viewBox\",\"0 0 100 100\"),p.setAttribute(\"preserveAspectRatio\",\"none\"),p.setAttribute(\"overflow\",\"hidden\");let m=this.createSvgElement(\"image\");this.applyVmlAttributes(m,t.attrs),m.setAttribute(\"x\",t.attrs.x??\"0\"),m.setAttribute(\"y\",t.attrs.y??\"0\"),m.setAttribute(\"width\",t.attrs.width??\"100%\"),m.setAttribute(\"height\",t.attrs.height??\"100%\"),this.loadVmlImage(t,m),p.appendChild(m),l=p;break}case\"line\":{let p=this.createSvgElement(\"line\"),m=t.attrs.x1==null?o.x:this.vmlMappedValue(t.attrs.x1,e,\"x\",!1),g=t.attrs.y1==null?o.y:this.vmlMappedValue(t.attrs.y1,e,\"y\",!1),b=t.attrs.x2==null?o.x+o.width:this.vmlMappedValue(t.attrs.x2,e,\"x\",!1),T=t.attrs.y2==null?o.y+o.height:this.vmlMappedValue(t.attrs.y2,e,\"y\",!1);p.setAttribute(\"x1\",`${m}`),p.setAttribute(\"y1\",`${g}`),p.setAttribute(\"x2\",`${b}`),p.setAttribute(\"y2\",`${T}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x1\",\"y1\",\"x2\",\"y2\"])),t.attrs.stroke||p.setAttribute(\"stroke\",\"currentColor\"),l=p;break}case\"path\":{let p=this.createSvgElement(\"path\");this.applyVmlAttributes(p,t.attrs,new Set([\"d\"])),p.setAttribute(\"d\",t.attrs.d??\"\"),p.setAttribute(\"transform\",`matrix(${a.scaleX} 0 0 ${a.scaleY} ${o.x-a.originX*a.scaleX} ${o.y-a.originY*a.scaleY})`),p.setAttribute(\"vector-effect\",\"non-scaling-stroke\"),l=p;break}case\"rect\":{let p=this.createSvgElement(\"rect\");if(p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x\",\"y\",\"width\",\"height\"])),t.roundRectArc!=null){let m=Math.min(o.width,o.height)*t.roundRectArc/2;p.setAttribute(\"rx\",`${m}`),p.setAttribute(\"ry\",`${m}`)}l=p;break}case\"ellipse\":{let p=this.createSvgElement(\"ellipse\");p.setAttribute(\"cx\",`${o.x+o.width/2}`),p.setAttribute(\"cy\",`${o.y+o.height/2}`),p.setAttribute(\"rx\",`${o.width/2}`),p.setAttribute(\"ry\",`${o.height/2}`),this.applyVmlAttributes(p,t.attrs,new Set([\"cx\",\"cy\",\"rx\",\"ry\"])),l=p;break}case\"foreignObject\":{let p=this.createSvgElement(\"foreignObject\"),[m,g,b,T]=(t.textInset??[\"0\",\"0\",\"0\",\"0\"]).map(I=>(this.vmlLengthInPoints(I)??0)*4/3);p.setAttribute(\"x\",`${o.x+m}`),p.setAttribute(\"y\",`${o.y+g}`),p.setAttribute(\"width\",`${Math.max(0,o.width-m-b)}`),p.setAttribute(\"height\",`${Math.max(0,o.height-g-T)}`),this.applyVmlAttributes(p,t.attrs,new Set([\"x\",\"y\",\"width\",\"height\"])),p.setAttribute(\"overflow\",\"hidden\");let S=this.createElement(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",boxSizing:\"border-box\"}});S.setAttribute(\"xmlns\",Dt.html);for(let I of t.children??[])for(let O of qr(this.renderElement(I)).filter($=>$!=null))S.appendChild(Jr(O)?document.createTextNode(O):O);p.appendChild(S),l=p;break}default:l=this.createSvgElement(\"g\"),this.applyVmlAttributes(l,t.attrs);break}if(t.tagName!=\"foreignObject\"){if(t.children?.length&&t.tagName!=\"g\"){let p=this.createSvgElement(\"g\");p.appendChild(l),l=p}for(let p of t.children??[])if(p.type==A.VmlElement)l.appendChild(this.renderVmlChildElement(p,a,t.isGroup?void 0:o));else for(let m of qr(this.renderElement(p)).filter(g=>g!=null))l.appendChild(Jr(m)?document.createTextNode(m):m)}if(t.isGroup&&s.overflow==\"hidden\"){let p=this.createSvgElement(\"svg\");p.setAttribute(\"x\",`${o.x}`),p.setAttribute(\"y\",`${o.y}`),p.setAttribute(\"width\",`${o.width}`),p.setAttribute(\"height\",`${o.height}`),o.width>0&&o.height>0&&p.setAttribute(\"viewBox\",`${o.x} ${o.y} ${o.width} ${o.height}`),p.setAttribute(\"overflow\",\"hidden\"),p.appendChild(l),l=p}let c=[],h=o.x+o.width/2,u=o.y+o.height/2;Number.isFinite(t.rotation)&&t.rotation&&c.push(`rotate(${t.rotation} ${h} ${u})`);let f=/x/i.test(s.flip??\"\"),d=/y/i.test(s.flip??\"\");if((f||d)&&c.push(`translate(${h} ${u}) scale(${f?-1:1} ${d?-1:1}) translate(${-h} ${-u})`),c.length){let p=this.createSvgElement(\"g\");p.setAttribute(\"transform\",c.join(\" \")),p.appendChild(l),l=p}if(!i)for(let p of[\"display\",\"visibility\",\"opacity\"])s[p]!=null&&l.style.setProperty(p,s[p]);return l}renderMmlMathParagraph(t){let e=this.renderElements(t.children);for(let r of e)r?.localName==\"math\"&&r.setAttribute(\"display\",\"block\");return this.h({tagName:this.currentParagraph?\"span\":\"div\",className:`${this.className}-math-paragraph`,style:{display:\"block\",textAlign:\"center\"},children:e})}renderMmlPhantom(t){return this.renderContainerNS(t,Dt.mathML,\"mphantom\")}renderMmlAccent(t){let e=t.children?.find(o=>o.type==A.MmlBase),r=this.createMathMLElement(\"mo\",null,[t.props?.char??\"^\"]),i=e?qr(this.renderElement(e)).filter(o=>o!=null):[];return this.createMathMLElement(\"mover\",null,[...i,r])}renderMmlRadical(t){let e=t.children.find(i=>i.type==A.MmlBase);if(t.props?.hideDegree)return this.createMathMLElement(\"msqrt\",null,this.renderElements([e]));let r=t.children.find(i=>i.type==A.MmlDegree);return this.createMathMLElement(\"mroot\",null,this.renderElements([e,r]))}renderMmlDelimiter(t){let e=[],r=t.props?.beginChar,i=t.props?.endChar;return r!==\"\"&&e.push(this.createMathMLElement(\"mo\",null,[r??\"(\"])),e.push(...this.renderElements(t.children)),i!==\"\"&&e.push(this.createMathMLElement(\"mo\",null,[i??\")\"])),this.createMathMLElement(\"mrow\",null,e)}renderMmlNary(t){let e=[],r=ur(t.children,c=>c.type),i=r[A.MmlSuperArgument],o=r[A.MmlSubArgument],a=i?this.createMathMLElement(\"mrow\",null,this.renderElements(i.children)):null,s=o?this.createMathMLElement(\"mrow\",null,this.renderElements(o.children)):null,l=this.createMathMLElement(\"mo\",null,[t.props?.char??\"\\u222B\"]);return a&&s?e.push(this.createMathMLElement(\"munderover\",null,[l,s,a])):a?e.push(this.createMathMLElement(\"mover\",null,[l,a])):s?e.push(this.createMathMLElement(\"munder\",null,[l,s])):e.push(l),r[A.MmlBase]&&e.push(...this.renderElements(r[A.MmlBase].children)),this.createMathMLElement(\"mrow\",null,e)}renderMmlPreSubSuper(t){let e=[],r=ur(t.children,c=>c.type),i=r[A.MmlSuperArgument],o=r[A.MmlSubArgument],a=this.createMathMLElement(\"mrow\",null,i?this.renderElements(i.children):[]),s=this.createMathMLElement(\"mrow\",null,o?this.renderElements(o.children):[]),l=this.createMathMLElement(\"mrow\",null,[]);return e.push(this.createMathMLElement(\"msubsup\",null,[l,s,a])),r[A.MmlBase]&&e.push(...this.renderElements(r[A.MmlBase].children)),this.createMathMLElement(\"mrow\",null,e)}renderMmlGroupChar(t){let e=t.props?.verticalJustification===\"bot\"?\"munder\":\"mover\",r=this.createMathMLElement(\"mrow\",null,this.renderElements(t.children)),i=this.createMathMLElement(\"mo\",null,[t.props?.char??\"\\u23DE\"]);return this.createMathMLElement(e,null,[r,i])}renderMmlBar(t){let e={};switch(t.props.position){case\"top\":e.textDecoration=\"overline\";break;case\"bottom\":e.textDecoration=\"underline\";break}return this.renderContainerNS(t,Dt.mathML,\"mrow\",{style:e})}renderMmlRun(t){let e=this.extractMathRunText(t);if(e!=null){let r=this.renderMathTextTokens(e,t.cssStyle);return r.length?r:null}return this.renderContainerNS(t,Dt.mathML,\"mrow\")}extractMathRunText(t){let e=\"\";for(let r of t.children??[])switch(r.type){case A.Text:e+=r.text??\"\";break;case A.DeletedText:Mr(Ce(this.options))&&(e+=r.text??\"\");break;case A.Symbol:e+=String.fromCharCode(r.char);break;case A.Tab:e+=\" \";break;case A.NoBreakHyphen:e+=\"\\u2011\";break;case A.SoftHyphen:break;default:return null}return e}renderMathTextTokens(t,e){let r=[],i=0;for(;i<t.length;){let o=t[i];if(/\\s/.test(o)){let a=i+1;for(;a<t.length&&/\\s/.test(t[a]);)a++;r.push(this.createMathMLElement(\"mspace\",{width:`${Math.max(1,a-i)*.25}em`})),i=a;continue}if(Sl(o)){let a=i+1;for(;a<t.length&&(Sl(t[a])||t[a]==\".\");)a++;r.push(this.createMathToken(\"mn\",t.substring(i,a),e)),i=a;continue}if(El(o)){let a=i+1;for(;a<t.length&&El(t[a]);)a++;r.push(this.createMathToken(\"mi\",t.substring(i,a),e)),i=a;continue}Tm(o)?r.push(this.createMathToken(\"mo\",o,e)):r.push(this.createMathToken(\"mtext\",o,e)),i++}return r}createMathToken(t,e,r){return this.createMathMLElement(t,r?{style:r}:null,[e])}renderMllList(t){let e=this.renderElements(t.children).map(r=>this.createMathMLElement(\"mtr\",null,[this.createMathMLElement(\"mtd\",null,[r])]));return this.toHTML(t,Dt.mathML,\"mtable\",e)}toH(t,e,r,i=null){let{$lang:o,\"$lang-eastAsia\":a,\"$lang-bidi\":s,...l}=t.cssStyle??{},c=Kr(t.className,t.styleName&&this.processStyleName(t.styleName));return{ns:e,tagName:r,className:c,lang:o,style:this.darkenStyle(l),children:i??this.renderElements(t.children)}}darkenStyle(t){if(!this.options.darkMode)return t;let e=tm(t);if(e===t)return t;let r={...e};for(let i in e){if(i.startsWith(\"--\"))continue;let o=t[i],a=e[i];a===o||typeof a!=\"string\"||a.toLowerCase().includes(\"var(\")||(r[i]=this.wrapForPrint(o,a))}return r}darkenColorAttr(t){if(!this.options.darkMode)return t;let e=en(t);return e===t||e.toLowerCase().includes(\"var(\")?e:this.wrapForPrint(t,e)}wrapForPrint(t,e){let r=this.darkModeVarNames.get(t);return r||(r=`--docx-dm-${this.darkModeVarNames.size}`,this.darkModeVarNames.set(t,r),this.darkModePrintReset[r]=t),`var(${r}, ${e})`}renderDarkModePrintReset(){let t=Object.entries(this.darkModePrintReset);if(!this.options.darkMode||t.length===0)return[];let e=t.map(([i,o])=>` ${i}: ${o};\\r\n`).join(\"\"),r=`@media print {\\r\n.${this.className} {\\r\n${e}}\\r\n}\\r\n`;return[this.h({tagName:\"style\",children:[r]})]}toHTML(t,e,r,i=null){let o=this.h(this.toH(t,e,r,i));return o?.nodeType===1&&this.applyElementRevisionMetadata(o,t),o}applyElementRevisionMetadata(t,e){let r=e.props?.revision;(r?.kind===\"insert\"||r?.kind===\"delete\")&&(Zr(this.options)?(t.dataset.docxChangeKind=r.kind,t.style.setProperty(\"--docx-review-color\",Fn(r.author)),r.id!=null&&(t.dataset.docxChangeId=`${r.id}`),r.author&&(t.dataset.docxChangeAuthor=r.author),r.date&&(t.dataset.docxChangeDate=r.date)):r.kind===\"delete\"&&(t.style.display=\"none\"));let i=e.props?.formatRevisions?.[0];i&&Zr(this.options)&&(t.dataset.docxFormatChange=\"true\",t.style.setProperty(\"--docx-review-color\",Fn(i.author)),i.id!=null&&(t.dataset.docxChangeId=`${i.id}`),i.author&&(t.dataset.docxChangeAuthor=i.author),i.date&&(t.dataset.docxChangeDate=i.date))}findStyle(t){return t&&this.styleMap?.[t]}isTocParagraphStyle(t,e){return[t,e?.id,e?.name,e?.cssName,...e?.aliases??[]].filter(Boolean).map(i=>String(i).replace(/[\\s_-]+/g,\"\").toLowerCase()).some(i=>/^toc[1-9]$/.test(i))}numberingClass(t,e){return`${this.className}-num-${t}-${e}`}numberingSelector(t,e){return`.${this.className} p.${this.numberingClass(t,e)}`}tabStopClass(){return`${this.className}-tab-stop`}scopeDocumentStyleSelector(t){let e=t.trim();return!e||e.startsWith(`.${this.className}`)||e.startsWith(`section.${this.className}`)||e.startsWith(`.${this.className}-wrapper`)?t:`.${this.className} ${t}`}styleToString(t,e,r=null){let i=`${t} {\\r\n`,o=this.darkenStyle(e);for(let a in o)a.startsWith(\"$\")||(i+=` ${a}: ${o[a]};\\r\n`);return r&&(i+=r),i+`}\\r\n`}numberingCounter(t,e){return`${this.className}-num-${t}-${e}`}numberingRestartLevel(t){if(t.level<=0)return null;if(t.restart==null)return t.level-1;if(t.restart==0)return null;let e=t.restart-1;return e>=0&&e<t.level?e:null}numberingMarkerRunStyle(t,e){if(!t)return t;let r={...t};return e&&(delete r[\"font-family\"],delete r[\"--docx-latin-font-family\"],delete r[\"--docx-partial-eastasia-font\"]),r}normalizeNumberingLevelText(t,e,r){if(e!=\"bullet\"||!t)return{text:t,normalized:!1};let i=(r?.[\"font-family\"]??\"\").toLowerCase(),o=!1,a=null;if(i.includes(\"wingdings\"))a=this.wingdingsBulletMap();else if(i.includes(\"symbol\"))a=this.symbolBulletMap();else return{text:t,normalized:!1};let s=\"\";for(let l of t){let c=a[l.charCodeAt(0)];c?(s+=c,o=!0):s+=l}return{text:s,normalized:o}}symbolBulletMap(){return{183:\"\\u2022\",8226:\"\\u2022\",61623:\"\\u2022\"}}wingdingsBulletMap(){return{61548:\"\\u25CF\",61550:\"\\u25A0\",61557:\"\\u25C6\",61598:\"\\xB7\",61599:\"\\u2022\",61600:\"\\u25AA\",61601:\"\\u25CB\",61604:\"\\u25C9\",61605:\"\\u25CE\",61607:\"\\u25AA\",61608:\"\\u25FB\",61656:\"\\u27A2\",61672:\"\\u2794\",61690:\"\\u25AB\",61691:\"\\u2717\",61692:\"\\u2713\",61693:\"\\u2612\",61694:\"\\u2611\"}}levelTextToContent(t,e,r,i,o){let a=[],s=0;for(let h of t.matchAll(/%\\d+/g)){h.index>s&&a.push(`\"${this.escapeCssString(t.substring(s,h.index))}\"`);let u=parseInt(h[0].substring(1),10)-1,f=o?.get(`${r}:${u}`)??i??\"decimal\";a.push(`counter(${this.numberingCounter(r,u)}, ${f})`),s=h.index+h[0].length}let l=t.substring(s);l&&a.push(`\"${this.escapeCssString(l)}\"`);let c=this.numberingSuffixToCssContent(e);return c&&a.push(c),a.length>0?a.join(\" \"):'\"\"'}numberingSuffixToCssContent(t){switch(t||\"tab\"){case\"nothing\":return\"\";case\"space\":return'\"\\\\000020\"';default:return'\"\\\\000009\"'}}escapeCssString(t){return t.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\r?\\n/g,\"\\\\A \")}numFormatToCssValue(t){var e={none:\"none\",bullet:\"disc\",decimal:\"decimal\",lowerLetter:\"lower-alpha\",upperLetter:\"upper-alpha\",lowerRoman:\"lower-roman\",upperRoman:\"upper-roman\",decimalZero:\"decimal-leading-zero\",aiueo:\"katakana\",aiueoFullWidth:\"katakana\",chineseCounting:\"simp-chinese-informal\",chineseCountingThousand:\"simp-chinese-informal\",chineseLegalSimplified:\"simp-chinese-formal\",chosung:\"hangul-consonant\",ideographDigital:\"cjk-ideographic\",ideographTraditional:\"cjk-heavenly-stem\",ideographLegalTraditional:\"trad-chinese-formal\",ideographZodiac:\"cjk-earthly-branch\",iroha:\"katakana-iroha\",irohaFullWidth:\"katakana-iroha\",japaneseCounting:\"japanese-informal\",japaneseDigitalTenThousand:\"cjk-decimal\",japaneseLegal:\"japanese-formal\",thaiNumbers:\"thai\",koreanCounting:\"korean-hangul-formal\",koreanDigital:\"korean-hangul-formal\",koreanDigital2:\"korean-hanja-informal\",hebrew1:\"hebrew\",hebrew2:\"hebrew\",hindiNumbers:\"devanagari\",ganada:\"hangul\",taiwaneseCounting:\"cjk-ideographic\",taiwaneseCountingThousand:\"cjk-ideographic\",taiwaneseDigital:\"cjk-decimal\"};return e[t]??t??\"decimal\"}refreshTabStops(t){let e=t?.querySelectorAll?Array.from(t.querySelectorAll(\"[data-docx-tab-id]\")):this.currentTabs.map(r=>r.span);for(let r of e){if(!r.isConnected||!this.ownsLayoutElement(r))continue;let i=this.currentTabs[Number(r.dataset.docxTabId)];i&&!Pp(r,i.stops)&&this.options.experimental&&Rp(r,i.stops,this.defaultTabSize,Np())}}createElementNS(t,e,r,i){return this.h({ns:t,tagName:e,children:i,...r})}createElement(t,e,r){return this.createElementNS(Dt.html,t,e,r)}createMathMLElement(t,e,r){return this.createElementNS(Dt.mathML,t,e,r)}createSvgElement(t,e,r){return this.createElementNS(Dt.svg,t,e,r)}later(t){this.postRenderTasks.push(t)}};Ui.nextCommentId=0;function Sl(n){return n>=\"0\"&&n<=\"9\"}function El(n){if(!n)return!1;let t=n.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t>=913&&t<=1023||t>=119808&&t<=120831}function Tm(n){return\"()+-\\u2212=<>\\u2264\\u2265\\u2248\\u2260\\xD7\\xF7*/\\xB7\\u2219\\u2211\\u03A3\\u220F\\u222B\\u221A\\u221E\\u2202\\u2207,.;:[]{}|\\u2016!\\u2032\\u2033\\u2192\\u2190\\u2194\\u21D2\\u21D4\\u2208\\u2209\\u2282\\u2283\\u2286\\u2287\\u2227\\u2228\\xAC\".includes(n)}function Sm(n,t){for(var e=n.parent;e!=null&&e.type!=t;)e=e.parent;return e}var Em=\"\\u6587\\u4EF6\\u4E3A\\u7A7A\\u6216\\u5C1A\\u672A\\u4FDD\\u5B58\\uFF0C\\u65E0\\u6CD5\\u4F5C\\u4E3A Word \\u6587\\u6863\\u6253\\u5F00\\u3002\\u8BF7\\u5728 WPS/Word \\u4E2D\\u4FDD\\u5B58\\u540E\\u91CD\\u65B0\\u4E0A\\u4F20\\u3002\";function $a(n){if(km(n)===0)throw new Error(Em)}function km(n){return n==null?0:typeof Blob<\"u\"&&n instanceof Blob?n.size:typeof ArrayBuffer<\"u\"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))?n.byteLength:typeof n.size==\"number\"?n.size:typeof n.byteLength==\"number\"?n.byteLength:typeof n.length==\"number\"?n.length:null}var ji={ignoreHeight:!1,ignoreWidth:!1,fixedPageHeight:!0,ignoreFonts:!1,breakPages:!0,strictWordCompatibility:!0,paginationTolerance:2,maxDynamicPaginationPasses:1e3,awaitLayout:!0,useWorker:!0,workerUrl:void 0,workerFactory:void 0,workerJsZipUrl:void 0,workerFallback:!0,workerTimeout:12e4,renderPageBatchSize:2,renderYieldEveryMs:16,progress:void 0,preserveComplexFieldResults:!0,updatePageReferences:!1,hideWebHiddenContent:!1,externalLinkPolicy:\"allow\",externalResourcePolicy:\"block\",darkMode:!1,debug:!1,experimental:!1,className:\"docx\",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,reviewMode:void 0,reviewPresentation:\"balloon\",renderComments:!1,renderAltChunks:!0,h:Wn};function Wa(n){let t={...ji,...n};return n?.reviewMode!=null&&n.renderComments==null&&(t.renderComments=!0),t}function tc(n,t,e){if(t.reviewMode!==\"auto\")return t;let r=nm(n,\"auto\");return t.reviewMode=r.enabled?r.mode:void 0,t.renderChanges=r.enabled,e?.renderComments==null&&(t.renderComments=r.enabled),t}function Am(n,t){let e=Wa(t);return e.licenseToken,$a(n),Rm(e)?Om(n,e).catch(r=>{if(!e.workerFallback)throw r;e.debug&&console.warn(\"docx-preview: worker parsing failed; falling back to main thread\",r);let i={...e,useWorker:!1};return Aa(n,i)}):Aa(n,e)}function Aa(n,t){return $a(n),t.progress?.({phase:\"parse\",message:\"Parsing DOCX on main thread\"}),Bi.load(n,new va(t),t)}async function Cm(n,t){let e=tc(n,Wa(t),t);return e.licenseToken,await new Ui().render(n,e)}async function ec(n,t,e,r){let i=Wa(r);i.licenseToken,zn(t);let o=Cl(t),a=await Am(n,i);je(t,o,!1),tc(a,i,r);let s=await Cm(a,i);je(t,o,!1),e??(e=t),e===t||e.replaceChildren(),t.replaceChildren();let l=0;for(let h of s)(h.nodeName===\"STYLE\"?e:t).appendChild(h),l++,i.renderYieldEveryMs>0&&l%8==0&&(await Ca(),je(t,o,!1));Nm(t),Zr(i)?(t.dataset.docxReviewEnabled=\"true\",t.dataset.docxReviewMode=Ce(i),t.dataset.docxReviewPresentation=i.reviewPresentation??\"balloon\"):(delete t.dataset.docxReviewEnabled,delete t.dataset.docxReviewMode,delete t.dataset.docxReviewPresentation),kl(t,i.className);let c=null;if(i.awaitLayout)i.progress?.({phase:\"layout\",message:\"Measuring rendered pages\"}),c=await Lm(t,i),je(t,o),kl(t,i.className);else{let h=Hn(t,o);Un(t,[],h).then(()=>Hi(t,h)).catch(()=>{})}return _m(t,i,o),i.progress?.({phase:\"done\",current:c?.pageCount,total:c?.pageCount,message:\"DOCX render complete\"}),a}var zi=new WeakMap;function Nm(n){let t=zi.get(n);t&&n.removeEventListener(\"click\",t);let e=r=>{let i=r;if(i.defaultPrevented||i.button!=0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let o=i.target;if(!(o instanceof Element))return;let a=o.closest('a[href^=\"#\"]');if(!a||!n.contains(a))return;let s=a.getAttribute(\"href\");if(!s||s==\"#\")return;let l=s.substring(1);try{l=decodeURIComponent(l)}catch{return}let c=Array.from(n.querySelectorAll(\"[id]\")).find(h=>h.id==l);c&&(i.preventDefault(),c.scrollIntoView({block:\"start\",inline:\"nearest\"}))};n.addEventListener(\"click\",e),zi.set(n,e)}function Rm(n){return!!(n.useWorker&&(n.workerFactory||n.workerUrl)&&typeof Worker<\"u\")}function Pm(n){let{h:t,progress:e,licenseToken:r,workerFactory:i,...o}=n;return{...o,useWorker:!1}}var Im=0;function Om(n,t){let e={...ji,...t};return e.licenseToken,$a(n),!e.workerFactory&&!e.workerUrl||typeof Worker>\"u\"?Aa(n,{...e,useWorker:!1}):(e.progress?.({phase:\"worker\",message:\"Starting DOCX parse worker\"}),new Promise((r,i)=>{let o=++Im,a=e.workerFactory?e.workerFactory():new Worker(e.workerUrl),s=!1,l=null,c=()=>{s=!0,l&&clearTimeout(l),a.terminate()};e.workerTimeout>0&&(l=setTimeout(()=>{s||(c(),i(new Error(`docx-preview worker timed out after ${e.workerTimeout}ms`)))},e.workerTimeout)),a.onerror=h=>{s||(c(),i(new Error(h.message||\"docx-preview worker error\")))},a.onmessage=h=>{let u=h.data??{};if(!(u.id!==o&&u.type!==\"ready\")){if(u.type===\"progress\"){e.progress?.({phase:\"worker\",current:u.current,total:u.total,message:u.message});return}if(u.type===\"parsed\"){c(),e.progress?.({phase:\"worker\",message:\"Worker parse complete\"}),r(Bi.fromSnapshot(u.snapshot,e));return}if(u.type===\"error\"){c();let f=new Error(u.error?.message??\"docx-preview worker parse failed\");f.stack=u.error?.stack,i(f)}}},a.postMessage({type:\"parse\",id:o,data:n,options:Pm(e),jsZipUrl:e.workerJsZipUrl})}))}async function Lm(n,t){let e={...ji,...t},r=Hn(n);await Un(n,[],r),await Hi(n,r);let i=Array.from(n.querySelectorAll(`.${e.className}-wrapper`));if(n.classList?.contains(`${e.className}-wrapper`)&&i.unshift(n),e.breakPages&&e.fixedPageHeight&&!e.ignoreHeight&&i.length){let o=Math.max(2,e.maxDynamicPaginationPasses??120),a=()=>i.some(s=>s.dataset.docxPaginating===\"true\"||s.dataset.docxPaginationScheduled===\"true\");for(let s=0;s<o;s++){await Ca(),je(n,r);let l=i.find(c=>c.dataset.docxLayoutError);if(l)throw new Error(l.dataset.docxLayoutError);if(!a())break}if(a())throw new Error(\"DOCX layout did not settle within the configured pagination wait budget\")}return await Ca(),je(n,r),await Hi(n,r),je(n,r),Mm(n,e)}var Yi=new WeakMap;function zn(n){kd(n),Yi.get(n)?.(),Yi.delete(n),vm(n);let t=zi.get(n);t&&n.removeEventListener(\"click\",t),zi.delete(n)}function _m(n,t,e){Yi.get(n)?.();let r=n.ownerDocument.defaultView;if(!r||typeof r.requestAnimationFrame!=\"function\"||typeof r.cancelAnimationFrame!=\"function\")return;let i=0,o=!1,a=!1,s=!1,l=async()=>{if(i=0,o||a||!e.isCurrent()||!n.isConnected)return;let p=n.querySelector(`.${t.className}-wrapper`);if(!(p?.dataset.docxPaginating===\"true\"||p?.dataset.docxPaginationScheduled===\"true\")){a=!0,s=!1;try{let m=Hn(n,e);await Un(n,[],m),await Hi(n,m)}catch(m){e.isCurrent()&&m?.name!==\"AbortError\"&&(p&&(p.dataset.docxLayoutError=m?.message??\"DOCX layout failed\"),t.debug&&console.warn(\"DOCX layout refresh failed\",m))}finally{a=!1,s&&c()}}},c=()=>{if(!(o||!e.isCurrent())){if(a){s=!0;return}i||(i=r.requestAnimationFrame(()=>{l()}))}},h=r.ResizeObserver?new r.ResizeObserver(c):null,u=p=>{let m=new Set(p.flatMap(T=>Array.from(T.addedNodes))),g=new Set(p.flatMap(T=>Array.from(T.removedNodes)));[...m,...g].some(T=>T.isConnected||!m.has(T)||!g.has(T))&&c()},f=typeof r.MutationObserver==\"function\"?new r.MutationObserver(u):null;h?.observe(n),f?.observe(n,{childList:!0,subtree:!0}),r.addEventListener(\"resize\",c),n.ownerDocument.fonts?.addEventListener?.(\"loadingdone\",c);let d=()=>{o||(o=!0,r.cancelAnimationFrame(i),h?.disconnect(),f?.disconnect(),r.removeEventListener(\"resize\",c),n.ownerDocument.fonts?.removeEventListener?.(\"loadingdone\",c),e.signal.removeEventListener(\"abort\",d))};e.signal.addEventListener(\"abort\",d,{once:!0}),Yi.set(n,d)}function Mm(n,t){let e={...ji,...t},i=Array.from(n.querySelectorAll(`section.${e.className}`)).map((o,a)=>{let s=Array.from(o.querySelectorAll(\"[data-docx-field-instr]\")),l=Array.from(o.querySelectorAll(\"img\")).filter(h=>!h.complete||h.naturalWidth===0).length,c=o.clientHeight>0&&o.scrollHeight>o.clientHeight+(e.paginationTolerance??2);return{index:a+1,section:o.dataset.docxSection??\"\",pageNumber:parseInt(o.dataset.docxPageNumber??`${a+1}`,10),sectionPageNumber:parseInt(o.dataset.docxSectionPageNumber??\"1\",10),width:o.clientWidth,height:o.clientHeight,scrollHeight:o.scrollHeight,overflow:c,textLength:o.textContent?.length??0,anchors:Array.from(o.querySelectorAll(\"[id]\")).map(h=>h.id).filter(Boolean),fields:s.map(h=>({instruction:h.dataset.docxFieldInstr??\"\",value:h.textContent??\"\"})),floats:o.querySelectorAll('[data-docx-float=\"true\"]').length,unresolvedMedia:l}});return{pageCount:i.length,overflowPages:i.filter(o=>o.overflow).map(o=>o.index),unresolvedMedia:i.reduce((o,a)=>o+a.unresolvedMedia,0),textLength:i.reduce((o,a)=>o+a.textLength,0),fields:i.flatMap(o=>o.fields),floats:i.reduce((o,a)=>o+a.floats,0),pages:i}}function kl(n,t=\"docx\"){if(!n||typeof getComputedStyle!=\"function\")return;let e=Array.from(n.querySelectorAll(\"p\")),r=`${t}-num-`;for(let i of e){if(!i.className?.includes(r))continue;let o=getComputedStyle(i,\"::before\");if(!o.content||o.content==\"none\"||o.content==\"normal\")continue;let a=Fm(i);if(!a||a==i)continue;let s=getComputedStyle(a);Si(i,\"--docx-marker-font-family\",s.fontFamily),Si(i,\"--docx-marker-font-size\",s.fontSize),Si(i,\"--docx-marker-font-style\",s.fontStyle),Si(i,\"--docx-marker-font-weight\",s.fontWeight)}}function Fm(n){let t=document.createTreeWalker(n,NodeFilter.SHOW_TEXT);for(;t.nextNode();){let e=t.currentNode;if(!e.nodeValue?.trim())continue;let r=e.parentElement;if(!r||r==n)return n;let i=getComputedStyle(r);if(!(i.display==\"none\"||i.visibility==\"hidden\"))return r}return null}function Si(n,t,e){e&&n.style.setProperty(t,e)}function Ca(){return new Promise(n=>{let t=globalThis;typeof t.requestIdleCallback==\"function\"?t.requestIdleCallback(()=>n(),{timeout:32}):typeof t.requestAnimationFrame==\"function\"?t.requestAnimationFrame(()=>n()):setTimeout(n,0)})}var rc=globalThis.Buffer,nc=0;function ce(n){return String(n).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#39;\")}function Ve(n=\"id\"){return nc+=1,`${n}-${nc}`}function bn(n){return n%2===0?n:n+1}function Dm(n){let t=n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(rc)return rc.from(t).toString(\"base64\");let e=\"\",r=32768;for(let i=0;i<t.length;i+=r)e+=String.fromCharCode(...t.subarray(i,Math.min(i+r,t.length)));return btoa(e)}function vr(n,t=\"application/octet-stream\"){return`data:${t};base64,${Dm(n)}`}function Vi(n){return String(n??\"\").toLowerCase().replace(/[^a-z0-9\\u4e00-\\u9fa5]+/g,\"-\").replace(/^-/,\"\").replace(/-$/,\"\")||\"item\"}function Ha(n,t){if(n===t)return!0;if(!n||!t)return!1;let e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(let i of e)if(n[i]!==t[i])return!1;return!0}function rn(n,t,e){let r=e?{message:t,...e}:{message:t};return n.push(r),r}function de(n,t=96){if(!(n==null||Number.isNaN(n)))return n/1440*t}function ic(n){return String(n??\"\").replace(/\\u000b/g,`\n`).replace(/\\u000c/g,`\n`)}function Xi(n=\"utf-8\"){return new TextDecoder(n,{fatal:!1})}var oc=Xi(\"utf-16le\"),Bm=typeof TextDecoder<\"u\"?Xi(\"windows-1252\"):Xi(\"latin1\"),Rt=class{bytes;view;length;constructor(t){if(t instanceof Uint8Array)this.bytes=t;else if(t instanceof ArrayBuffer)this.bytes=new Uint8Array(t);else if(ArrayBuffer.isView(t))this.bytes=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);else throw new TypeError(\"BinaryReader expects ArrayBuffer or Uint8Array\");this.view=new DataView(this.bytes.buffer,this.bytes.byteOffset,this.bytes.byteLength),this.length=this.bytes.byteLength}ensure(t,e=1){return t>=0&&t+e<=this.length}u8(t){return this.ensure(t,1)?this.view.getUint8(t):0}i8(t){return this.ensure(t,1)?this.view.getInt8(t):0}u16(t){return this.ensure(t,2)?this.view.getUint16(t,!0):0}i16(t){return this.ensure(t,2)?this.view.getInt16(t,!0):0}u32(t){return this.ensure(t,4)?this.view.getUint32(t,!0):0}i32(t){return this.ensure(t,4)?this.view.getInt32(t,!0):0}u64(t){let e=this.u32(t);return this.u32(t+4)*4294967296+e}slice(t,e){return this.ensure(t,e)?this.bytes.subarray(t,t+e):new Uint8Array(0)}array(t,e,r){let i=[],o=r.byteWidth??1;for(let a=0;a<e;a+=1)i.push(r.call(this,t+a*o));return i}utf16le(t,e){return this.ensure(t,e)?oc.decode(this.slice(t,e)):\"\"}latin1(t,e){return this.ensure(t,e)?Bm.decode(this.slice(t,e)):\"\"}ascii(t,e){if(!this.ensure(t,e))return\"\";let r=\"\",i=this.slice(t,e);for(let o=0;o<i.length;o+=1)r+=String.fromCharCode(i[o]??0);return r}utf16z(t,e){let r=this.slice(t,e),i=r.length;for(let o=0;o+1<r.length;o+=2)if(r[o]===0&&r[o+1]===0){i=o;break}return oc.decode(r.subarray(0,i))}};Rt.prototype.u8.byteWidth=1;Rt.prototype.i8.byteWidth=1;Rt.prototype.u16.byteWidth=2;Rt.prototype.i16.byteWidth=2;Rt.prototype.u32.byteWidth=4;Rt.prototype.i32.byteWidth=4;function ac(n){if(n instanceof Uint8Array)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new TypeError(\"Unsupported binary input\")}var sc=[208,207,17,224,161,177,26,225],Ki=4294967295,yn=4294967294,$m=4294967293,Wm=4294967292,Hm=1<<20,Um=4096;function lc(n){return n===Ki||n===yn||n===$m||n===Wm}function Ua(n,t,e){let r=512+e*t,i=r+t;if(r<0||r>=n.length)throw new Error(`Sector ${e} is out of bounds`);if(i<=n.length)return n.subarray(r,i);let o=new Uint8Array(t);return o.set(n.subarray(r)),o}function cc(n,t,e=Hm){let r=[],i=new Set,o=n,a=0;for(;o!==yn&&o!==Ki&&o>=0;){if(i.has(o))throw new Error(`Detected sector loop at ${o}`);if(i.add(o),r.push(o),o=t(o),a+=1,a>e)throw new Error(\"Sector chain exceeds safe limit\")}return r}function qi(n,t,e,r,i=null){if(e===yn||e===Ki||e<0)return new Uint8Array(0);let o=cc(e,l=>r[l]??yn),a=new Uint8Array(o.length*t),s=0;for(let l of o)a.set(Ua(n,t,l),s),s+=t;return i==null?a:a.subarray(0,Math.min(i,a.length))}function zm(n){function t(i,o){if(i<0||i>=n.length)return;let a=n[i];a&&(t(a.leftSiblingId,o),o.push(i),t(a.rightSiblingId,o))}function e(i){let o=n[i];if(!o||o.childId<0)return;let a=[];t(o.childId,a),o.children=a;for(let s of a){let l=n[s];l&&(l.parentId=i,e(s))}}let r=n.find(i=>i.objectType===5);if(!r)throw new Error(\"CFB root storage not found\");return e(r.id),r}function Ym(n){let t=new Map;for(let e of n){if(!e||!e.name)continue;let r=[],i=e;for(;i;)i.objectType!==5&&r.push(i.name),i=i.parentId!=null?n[i.parentId]??null:null;let o=`/${r.reverse().join(\"/\")}`;e.path=o===\"/\"?`/${e.name}`:o,t.set(e.path,e)}return t}function Gm(n){return n.replace(/\\u0000+$/,\"\")}function uc(n,t={}){let e=ac(n),r=new Rt(e),i=[];for(let et=0;et<sc.length;et+=1)if(r.u8(et)!==sc[et])throw new Error(\"Not a Compound File Binary document\");let o=r.u16(26),a=r.u16(30),s=r.u16(32),l=1<<a,c=1<<s,h=r.u32(40),u=r.u32(44),f=r.i32(48),d=r.u32(52),p=r.u32(56),m=r.i32(60),g=r.u32(64),b=r.i32(68),T=r.u32(72);p!==Um&&rn(i,`Unexpected mini stream cutoff size ${p}`);let S=[];for(let et=0;et<109;et+=1){let B=r.i32(76+et*4);!lc(B)&&B>=0&&S.push(B)}let I=[...S],O=b,$=0;for(;O!==yn&&O!==Ki&&O>=0;){let et=Ua(e,l,O),B=new Rt(et),z=l/4-1;for(let st=0;st<z;st+=1){let dt=B.i32(st*4);!lc(dt)&&dt>=0&&I.push(dt)}if(O=B.i32(l-4),$+=1,$>T+4){rn(i,\"DIFAT chain exceeded declared sector count; stopping early\");break}}u&&I.length<u&&rn(i,`FAT sector count mismatch: header says ${u}, found ${I.length}`);let k=[];for(let et of I){let B=Ua(e,l,et),z=new Rt(B);for(let st=0;st<l/4;st+=1)k.push(z.i32(st*4))}let W=qi(e,l,f,k),U=new Rt(W),v=[];for(let et=0,B=0;et+128<=W.length;et+=128,B+=1){let z=U.u16(et+64),st=Gm(U.utf16le(et,Math.max(0,z-2)));!st&&U.u8(et+66)===0||v.push({id:B,name:st,objectType:U.u8(et+66),colorFlag:U.u8(et+67),leftSiblingId:U.i32(et+68),rightSiblingId:U.i32(et+72),childId:U.i32(et+76),clsid:U.slice(et+80,16),stateBits:U.u32(et+96),creationTime:U.u64(et+100),modifiedTime:U.u64(et+108),startSector:U.i32(et+116),streamSize:o===3?U.u32(et+120):U.u64(et+120),children:[],parentId:null})}let _=zm(v),y=Ym(v),H=[];if(g&&m>=0){let et=qi(e,l,m,k),B=new Rt(et);for(let z=0;z+4<=et.length;z+=4)H.push(B.i32(z))}let nt=qi(e,l,_.startSector,k,_.streamSize);function J(et){if(et.startSector<0)return new Uint8Array(0);let B=cc(et.startSector,dt=>H[dt]??yn),z=new Uint8Array(B.length*c),st=0;for(let dt of B){let ft=dt*c,Ft=ft+c;if(Ft>nt.length)throw new Error(`Mini sector ${dt} is out of bounds`);z.set(nt.subarray(ft,Ft),st),st+=c}return z.subarray(0,Math.min(et.streamSize,z.length))}function lt(et){let B=typeof et==\"string\"?y.get(et)??null:et;return!B||B.objectType!==2&&B.objectType!==5?null:B.objectType===5?nt:B.streamSize<p&&B.startSector>=0&&H.length?J(B):qi(e,l,B.startSector,k,B.streamSize)}function ot(et){let B=typeof et==\"string\"?y.get(et)??null:et;return B?(B.children||[]).map(z=>v[z]).filter(z=>!!z):[]}return{bytes:e,majorVersion:o,sectorSize:l,miniSectorSize:c,numDirSectors:h,numFatSectors:u,firstDirSector:f,transactionSignature:d,miniStreamCutoffSize:p,warnings:i,entries:v,root:_,pathMap:y,getEntry(et){return y.get(et)??null},getStream:lt,listChildren:ot,findByName(et,B=\"/\"){let z=B===\"/\"?_:y.get(B)??null;if(!z)return null;let st=[z];for(;st.length;){let dt=st.pop();if(dt){if(dt.name===et)return dt;for(let ft of dt.children||[]){let Ft=v[ft];Ft&&st.push(Ft)}}}return null}}}var jm={\"\\x82\":\"\\u201A\",\"\\x83\":\"\\u0192\",\"\\x84\":\"\\u201E\",\"\\x85\":\"\\u2026\",\"\\x86\":\"\\u2020\",\"\\x87\":\"\\u2021\",\"\\x88\":\"\\u02C6\",\"\\x89\":\"\\u2030\",\"\\x8A\":\"\\u0160\",\"\\x8B\":\"\\u2039\",\"\\x8C\":\"\\u0152\",\"\\x91\":\"\\u2018\",\"\\x92\":\"\\u2019\",\"\\x93\":\"\\u201C\",\"\\x94\":\"\\u201D\",\"\\x95\":\"\\u2022\",\"\\x96\":\"\\u2013\",\"\\x97\":\"\\u2014\",\"\\x98\":\"\\u02DC\",\"\\x99\":\"\\u2122\",\"\\x9A\":\"\\u0161\",\"\\x9B\":\"\\u203A\",\"\\x9C\":\"\\u0153\",\"\\x9F\":\"\\u0178\"};function Vm(n){return n.replace(/[\\x82-\\x8C\\x91-\\x9C\\x9F]/g,t=>jm[t]||t)}function Xm(n){let t=\"\";for(let e=0;e<n.length;e+=1)t+=String.fromCharCode(n[e]??0);return Vm(t)}function qm(n){return new TextDecoder(\"utf-16le\").decode(n)}function hc(n,t){let e=t.fcClx,r=t.lcbClx;if(e==null||r==null||r<=0)throw new Error(\"FIB does not point to a CLX structure\");let i=n.subarray(e,e+r),o=new Rt(i),a=0,s=[];for(;a<i.length&&o.u8(a)===1;){let u=o.u16(a+1);s.push({type:1,cbGrpprl:u,bytes:o.slice(a+3,u)}),a+=3+u}if(o.u8(a)!==2)throw new Error(\"CLX does not contain a Pcdt marker\");let l=o.u32(a+1),c=o.slice(a+5,l),h=Km(c);return{prcs:s,pcdt:{lcb:l,pieceTable:h}}}function Km(n){if(!n.length)throw new Error(\"Empty PlcPcd\");let t=new Rt(n),e=(n.length-4)/12;if(!Number.isInteger(e)||e<0)throw new Error(\"Invalid PlcPcd size\");let r=[];for(let a=0;a<e+1;a+=1)r.push(t.u32(a*4));let i=[],o=(e+1)*4;for(let a=0;a<e;a+=1){let s=t.u16(o),l=t.u32(o+2)>>>0,c=t.u16(o+6),h=!!(l&1073741824),u=l&1073741823,f=r[a]??0,d=r[a+1]??f,p=h?Math.floor(u/2):u,m=h?d-f:(d-f)*2;i.push({index:a,descriptor:s,fNoParaLast:!!(s&1),fRaw:!!(s&2),prm:c,compressed:h,fcRaw:l,fc:u,cpStart:f,cpEnd:d,actualByteStart:p,byteLength:m,actualByteEnd:p+m}),o+=8}return{cps:r,pieces:i}}function Zm(n,t){let e=n.subarray(t.actualByteStart,t.actualByteEnd);return t.compressed?Xm(e):qm(e)}function dc(n,t){return t.pcdt.pieceTable.pieces.map(e=>Zm(n,e))}function Yn(n,t,e=null){let r=n.pcdt.pieceTable.pieces,i=e??!!(t&1073741824),o=e==null?t&1073741823:t,a=i?Math.floor(o/2):o;for(let s of r){if(a<s.actualByteStart||a>s.actualByteEnd)continue;let l=a-s.actualByteStart,c=s.cpStart+Math.floor(l/(s.compressed?1:2));if(c>=s.cpStart&&c<=s.cpEnd)return c}for(let s of r){if(t<s.actualByteStart||t>s.actualByteEnd)continue;let l=t-s.actualByteStart,c=s.cpStart+Math.floor(l/(s.compressed?1:2));if(c>=s.cpStart&&c<=s.cpEnd)return c}return null}function fc(n,t,e,r,i){if(i<=r)return\"\";let o=[];for(let a=0;a<t.pcdt.pieceTable.pieces.length;a+=1){let s=t.pcdt.pieceTable.pieces[a];if(s.cpEnd<=r)continue;if(s.cpStart>=i)break;let l=Math.max(r,s.cpStart)-s.cpStart,c=Math.min(i,s.cpEnd)-s.cpStart;o.push((e[a]??\"\").slice(l,c))}return o.join(\"\")}function pc(n){let t=[],e=0;for(let r=0;r<n.length;r+=1){let i=n[r];(i===\"\\r\"||i===\"\\x07\")&&(t.push({cpStart:e,cpEnd:r+1,terminator:i}),e=r+1)}return e<n.length&&t.push({cpStart:e,cpEnd:n.length,terminator:\"\"}),t}var ge={paragraph:\"\\r\",cellMark:\"\\x07\",picture:\"\u0001\",textBoxPlaceholder:\"\\b\",fieldStart:\"\u0013\",fieldSeparator:\"\u0014\",fieldEnd:\"\u0015\",annotationRef:\"\u0005\",hardLineBreak:\"\\v\",pageBreak:\"\\f\",nonBreakingHyphen:\"\u001e\",nonRequiredHyphen:\"\u001f\"},mc={0:\"none\",1:\"single\",2:\"word\",3:\"double\",4:\"dotted\",5:\"hidden\",6:\"thick\",7:\"dash\",9:\"dot-dash\",10:\"dot-dot-dash\",11:\"wave\",16:\"dotted-heavy\",17:\"dashed-heavy\",18:\"dash-long\",19:\"dash-long-heavy\",20:\"dot-dash-heavy\",21:\"dot-dot-dash-heavy\",22:\"wavy-heavy\",23:\"wavy-double\"},gc={0:\"left\",1:\"center\",2:\"right\",3:\"justify\",4:\"distributed\"},bc={0:\"top\",1:\"middle\",2:\"bottom\"},Gn={1:\"#000000\",2:\"#0000ff\",3:\"#00ffff\",4:\"#00ff00\",5:\"#ff00ff\",6:\"#ff0000\",7:\"#ffff00\",8:\"#ffffff\",9:\"#000080\",10:\"#008080\",11:\"#008000\",12:\"#800080\",13:\"#800000\",14:\"#808000\",15:\"#808080\",16:\"#c0c0c0\"};var Jm=[\"StshfOrig\",\"Stshf\",\"PlcffndRef\",\"PlcffndTxt\",\"PlcfandRef\",\"PlcfandTxt\",\"PlcfSed\",\"PlcPad\",\"PlcfPhe\",\"SttbfGlsy\",\"PlcfGlsy\",\"PlcfHdd\",\"PlcfBteChpx\",\"PlcfBtePapx\",\"PlcfSea\",\"SttbfFfn\",\"PlcfFldMom\",\"PlcfFldHdr\",\"PlcfFldFtn\",\"PlcfFldAtn\",\"PlcfFldMcr\",\"SttbfBkmk\",\"PlcfBkf\",\"PlcfBkl\",\"Cmds\",\"Unused1\",\"SttbfMcr\",\"PrDrvr\",\"PrEnvPort\",\"PrEnvLand\",\"Wss\",\"Dop\",\"SttbfAssoc\",\"Clx\",\"PlcfPgdFtn\",\"AutosaveSource\",\"GrpXstAtnOwners\",\"SttbfAtnBkmk\",\"Unused2\",\"Unused3\",\"PlcSpaMom\",\"PlcSpaHdr\",\"PlcfAtnBkf\",\"PlcfAtnBkl\",\"Pms\",\"FormFldSttbs\",\"PlcfendRef\",\"PlcfendTxt\",\"PlcfFldEdn\",\"Unused4\",\"DggInfo\",\"SttbfRMark\",\"SttbfCaption\",\"SttbfAutoCaption\",\"PlcfWkb\",\"PlcfSpl\",\"PlcftxbxTxt\",\"PlcfFldTxbx\",\"PlcfHdrtxbxTxt\",\"PlcffldHdrTxbx\",\"StwUser\",\"SttbTtmbd\",\"CookieData\",\"PgdMotherOldOld\",\"BkdMotherOldOld\",\"PgdFtnOldOld\",\"BkdFtnOldOld\",\"PgdEdnOldOld\",\"BkdEdnOldOld\",\"SttbfIntlFld\",\"RouteSlip\",\"SttbSavedBy\",\"SttbFnm\",\"PlfLst\",\"PlfLfo\",\"PlcfTxbxBkd\",\"PlcfTxbxHdrBkd\",\"DocUndoWord9\",\"RgbUse\",\"Usp\",\"Uskf\",\"PlcupcRgbUse\",\"PlcupcUsp\",\"SttbGlsyStyle\",\"Plgosl\",\"Plcocx\",\"PlcfBteLvc\",\"dwLowDateTime\",\"dwHighDateTime\",\"PlcfLvcPre10\",\"PlcfAsumy\",\"PlcfGram\",\"SttbListNames\",\"SttbfUssr\"];function yc(n){let t=new Rt(n),e=Qm(t),r=32,i=t.u16(r);r+=2;let o=t.slice(r,i*2);r+=i*2;let a=t.u16(r);r+=2;let s=t.slice(r,a*4);r+=a*4;let l=t.u16(r);r+=2;let c=t.slice(r,l*8);r+=l*8;let h=t.ensure(r,2)?t.u16(r):0;t.ensure(r,2)&&(r+=2);let u=h?t.slice(r,h*2):new Uint8Array(0),f=tg(s),d=eg(c,l),p=h?new Rt(u).u16(0):0;return{base:e,csw:i,cslw:a,cbRgFcLcb:l,cswNew:h,nFibNew:p,fibRgWBytes:o,fibRgLwBytes:s,fibRgFcLcbBytes:c,fibRgCswNewBytes:u,fibRgLw:f,fibRgFcLcb:d}}function Qm(n){let t=n.u16(0),e=n.u16(2),r=n.u16(6),i=n.u16(8),o=n.u16(10),a=n.u16(18);return{wIdent:t,nFib:e,lid:r,pnNext:i,flags:o,envFlags:a,fDot:!!(o&1),fGlsy:!!(o&2),fComplex:!!(o&4),fHasPic:!!(o&8),cQuickSaves:o>>4&15,fEncrypted:!!(o&256),fWhichTblStm:o&512?1:0,fReadOnlyRecommended:!!(o&1024),fWriteReservation:!!(o&2048),fExtChar:!!(o&4096),fLoadOverride:!!(o&8192),fFarEast:!!(o&16384),fObfuscated:!!(o&32768),nFibBack:n.u16(12),lKey:n.u32(14),envr:n.u8(18),fMac:!!(a&1),fEmptySpecial:!!(a&2),fLoadOverridePage:!!(a&4)}}function tg(n){let t=new Rt(n),e=[];for(let r=0;r+4<=n.length;r+=4)e.push(t.i32(r));return{raw:e,cbMac:e[0]??0,ccpText:e[3]??0,ccpFtn:e[4]??0,ccpHdd:e[5]??0,ccpMcr:e[6]??0,ccpAtn:e[7]??0,ccpEdn:e[8]??0,ccpTxbx:e[9]??0,ccpHdrTxbx:e[10]??0}}function eg(n,t){let e=new Rt(n),r={_pairs:[]},i=[];for(let o=0;o<t&&o*8+8<=n.length;o+=1){let a=e.u32(o*8),s=e.u32(o*8+4),l=Jm[o]||`Field${o}`;r[`fc${l}`]=a,r[`lcb${l}`]=s,i.push({name:l,fc:a,lcb:s,index:o})}return r._pairs=i,r}var X={sprmCFRMarkDel:2048,sprmCFRMark:2049,sprmCFFldVanish:2050,sprmCPicLocation:27139,sprmCIbstRMark:18436,sprmCDttmRMark:26629,sprmCFData:2054,sprmCFOle2:2058,sprmCHighlight:10764,sprmCIstd:18992,sprmCPlain:10803,sprmCFBold:2101,sprmCFItalic:2102,sprmCFStrike:2103,sprmCFOutline:2104,sprmCFShadow:2105,sprmCFSmallCaps:2106,sprmCFCaps:2107,sprmCFVanish:2108,sprmCKul:10814,sprmCDxaSpace:34880,sprmCIco:10818,sprmCHps:19011,sprmCHpsPos:18501,sprmCSymbol:27145,sprmCHpsKern:18507,sprmCRgFtc0:19023,sprmCRgFtc1:19024,sprmCRgFtc2:19025,sprmCCharScale:18514,sprmCFDStrike:10835,sprmCFImprint:2132,sprmCFSpec:2133,sprmCFObj:2134,sprmCFEmboss:2136,sprmCFBiDi:2138,sprmCFBoldBi:2140,sprmCFItalicBi:2141,sprmCFtcBi:19038,sprmCIcoBi:19040,sprmCHpsBi:19041,sprmPIstd:17920,sprmPIstdPermute:50689,sprmPIncLvl:9730,sprmPJc80:9219,sprmPFKeep:9221,sprmPFKeepFollow:9222,sprmPFPageBreakBefore:9223,sprmPIlvl:9738,sprmPIlfo:17931,sprmPChgTabsPapx:50701,sprmPDxaRight80:33806,sprmPDxaLeft80:33807,sprmPNest80:17936,sprmPDxaLeft180:33809,sprmPDyaLine:25618,sprmPDyaBefore:42003,sprmPDyaAfter:42004,sprmPChgTabs:50709,sprmPFInTable:9238,sprmPFTtp:9239,sprmPDxaAbs:33816,sprmPDyaAbs:33817,sprmPDxaWidth:33818,sprmPPc:9755,sprmPWr:9251,sprmPBrcTop80:25636,sprmPBrcLeft80:25637,sprmPBrcBottom80:25638,sprmPBrcRight80:25639,sprmPBrcBetween80:25640,sprmPBrcBar80:26153,sprmPWHeightAbs:17451,sprmPDcs:17452,sprmPShd80:17453,sprmPDyaFromText:33838,sprmPDxaFromText:33839,sprmPFLocked:9264,sprmPFWidowControl:9265,sprmPFBiDi:9281,sprmPHugePapx:26182,sprmPFAdjustRight:9288,sprmPItap:26185,sprmPDtap:26186,sprmPFInnerTableCell:9291,sprmPFInnerTtp:9292,sprmPShd:50765,sprmPBrcTop:50766,sprmPBrcLeft:50767,sprmPBrcBottom:50768,sprmPBrcRight:50769,sprmPBrcBetween:50770,sprmPBrcBar:50771,sprmPDxcRight:17493,sprmPDxcLeft:17494,sprmPDxcLeft1:17495,sprmPDylBefore:17496,sprmPDylAfter:17497,sprmPFDyaBeforeAuto:9307,sprmPFDyaAfterAuto:9308,sprmPDxaRight:33885,sprmPDxaLeft:33886,sprmPNest:18015,sprmPDxaLeft1:33888,sprmPJc:9313,sprmTJc90:21504,sprmTDxaLeft:38401,sprmTDxaGapHalf:38402,sprmTFCantSplit90:13315,sprmTTableHeader:13316,sprmTTableBorders80:54789,sprmTDyaRowHeight:37895,sprmTDefTable:54792,sprmTDefTableShd80:54793,sprmTTlp:29706,sprmTFBiDi:22027,sprmTDefTableShd3rd:54796,sprmTPc:13837,sprmTDxaAbs:37902,sprmTDyaAbs:37903,sprmTDxaFromText:37904,sprmTDyaFromText:37905,sprmTDefTableShd:54802,sprmTTableBorders:54803,sprmTTableWidth:62996,sprmTFAutofit:13845,sprmTDefTableShd2nd:54806,sprmTWidthBefore:62999,sprmTWidthAfter:63e3,sprmTSetBrc80:54816,sprmTInsert:30241,sprmTDelete:22050,sprmTDxaCol:30243,sprmTMerge:22052,sprmTSplit:22053,sprmTTextFlow:30249,sprmTVertMerge:54827,sprmTVertAlign:54828,sprmTSetShd:54829,sprmTSetShdOdd:54830,sprmTSetBrc:54831,sprmTCellPadding:54834,sprmTCellSpacingDefault:54835,sprmTCellPaddingDefault:54836,sprmTCellWidth:54837,sprmTFitText:63030,sprmTFCellNoWrap:54841,sprmTIstd:22074,sprmTDefTableShdRaw:54896,sprmTDefTableShdRaw2nd:54897,sprmTDefTableShdRaw3rd:54898},rg=new Set([X.sprmPChgTabs,X.sprmPChgTabsPapx,X.sprmTDefTable,X.sprmTTableBorders80,X.sprmTTableBorders,X.sprmTDefTableShd,X.sprmTDefTableShd80,X.sprmTDefTableShd3rd,X.sprmTDefTableShd2nd,X.sprmTDefTableShdRaw,X.sprmTDefTableShdRaw2nd,X.sprmTDefTableShdRaw3rd,X.sprmTSetBrc80,X.sprmTSetBrc,X.sprmTSetShd,X.sprmTSetShdOdd,X.sprmTCellPadding,X.sprmTCellSpacingDefault,X.sprmTCellPaddingDefault,X.sprmTCellWidth,X.sprmTVertAlign,X.sprmTVertMerge]);function ng(n){return n>>13&7}function Qt(n,t=0){return t+2>n.length?0:(n[t]??0)|(n[t+1]??0)<<8}function se(n,t=0){let e=Qt(n,t);return e>32767?e-65536:e}function Hr(n,t=0){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function qe(n,t=0){return{first:n[t]??0,lim:n[t+1]??0}}function Xe(n,t=0){if(t+4>n.length)return null;let e=Hr(n,t)>>>0;if(e===4294967295)return{raw:e,nil:!0};let r=e&255,i=e>>8&255,o=e>>16&255,a=e>>>24&255;return{raw:e,lineWidth:r,borderType:i,color:o,space:a&31,shadow:!!(a&32),frame:!!(a&64)}}function Wr(n,t=0){if(t+8>n.length)return null;let e=Hr(n,t)>>>0,r=Hr(n,t+4)>>>0;return r===4294967295?{raw:r,colorRef:e,nil:!0}:{raw:r,colorRef:e,lineWidth:r&255,borderType:r>>>8&255,space:r>>>16&31,shadow:!!(r&1<<21),frame:!!(r&1<<22)}}function ig(n,t=0){let e=Qt(n,t);return{raw:e,horzMerge:e&3,textFlow:e>>2&7,vertMerge:e>>5&3,vertAlign:e>>7&3,ftsWidth:e>>9&7,fitText:!!(e&4096),noWrap:!!(e&8192),hideMark:!!(e&16384)}}function og(n,t=0){return t+20>n.length?null:{tcgrf:ig(n,t),wWidth:Qt(n,t+2),borders:{top:Xe(n,t+4)||{},left:Xe(n,t+8)||{},bottom:Xe(n,t+12)||{},right:Xe(n,t+16)||{}}}}function ag(n,t=0){if(t+2>n.length)return null;let e=Qt(n,t),r=e&31,i=e>>>5&31,o=e>>>10&63;return{foregroundColorIndex:r,backgroundColorIndex:i,pattern:o,auto:o===0,nil:e===65535,legacy:!0}}function Sc(n,t=0){if(t+10>n.length)return null;let e=Hr(n,t)>>>0,r=Hr(n,t+4)>>>0,i=Qt(n,t+8);return{foregroundColorRef:e,backgroundColorRef:r,pattern:i,auto:i===0,nil:i===65535}}function xc(n,t){let e=t?4:8;if(!n.length||n.length<1+e*6)return null;let r=t?Xe:Wr,i=[\"top\",\"left\",\"bottom\",\"right\",\"horizontalInside\",\"verticalInside\"],o={};return i.forEach((a,s)=>{let l=r(n,1+s*e);l&&(o[a]=l)}),o}function Zi(n,t,e){let r=e?2:10,i=Math.floor(Math.min(n[0]??0,Math.max(0,n.length-1))/r),o=[];for(let a=0;a<i;a+=1){let s=e?ag(n,1+a*r):Sc(n,1+a*r);s&&o.push(s)}return{start:t,values:o}}function sg(n){if(n.length<3)return null;let t=Qt(n,0),e=n[2]??0,r=3,i=[];for(let a=0;a<e+1&&r+2<=n.length;a+=1)i.push(se(n,r)),r+=2;let o=[];for(let a=0;a<e&&r+20<=n.length;a+=1){let s=og(n,r);s&&o.push(s),r+=20}return{cb:t,numberOfColumns:e,rgdxaCenter:i,cells:o}}function wc(n){return n.length?{cb:n[0]??0,range:qe(n,1),value:n[3]??0,extra:n.subarray(4)}:null}function lg(n){if(!n.length)return null;let t=n[0]??0,e=Qt(n,4);return{cb:t,range:qe(n,1),ftsWidth:n[3]??0,width:e,wWidth:e}}function vc(n){if(n.length<7)return null;let t=Qt(n,5);return{cb:n[0]??0,range:qe(n,1),sides:n[3]??0,ftsWidth:n[4]??0,width:t,wWidth:t}}function cg(n){return n.length<8?null:{cb:n[0]??0,range:qe(n,1),bordersToApply:n[3]??0,border:Xe(n,4)||{nil:!0},extra:n.subarray(8)}}function ug(n){return n.length<12?null:{cb:n[0]??0,range:qe(n,1),bordersToApply:n[3]??0,border:Wr(n,4)||{nil:!0},extra:n.subarray(12)}}function Tc(n,t=!1){return n.length<13?null:{cb:n[0]??0,range:qe(n,1),shading:Sc(n,3),odd:t}}function hg(n){return n.length<3?null:{cb:n[0]??0,index:n[1]??0,value:n[2]??0}}function dg(n){return n.length<3?null:{range:qe(n,0),value:n[2]??0}}function fg(n){if(n.length<4)return null;let t=se(n,2);return{range:qe(n,0),width:t,wWidth:t}}function za(n){if(!n.length)return null;let t=Qt(n,1);return{ftsWidth:n[0]??0,width:t,wWidth:t}}function pg(n){return n.length<4?null:{itcFirst:n[0]??0,ctc:n[1]??0,dxaCol:Qt(n,2)}}function mg(n,t,e){let r=e>>13&7;if(t>=n.length)return 0;if(e===X.sprmTDefTable){let i=Qt(n,t);return i?i+1:0}if(rg.has(e))return(n[t]??0)+1;switch(r){case 0:return 1;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 2;case 5:return 2;case 6:return(n[t]??0)+1;case 7:return 3;default:return 0}}function Wt(n){return!!(n[0]??0)}function at(n,t,e,r,i){return{kind:n,name:t,value:e,raw:r,operandBytes:i}}function gg(n,t){let e=ng(n),r=t,i=n;switch(n){case X.sprmCFRMarkDel:return at(\"char\",\"revisionDeleted\",Wt(r),i,r);case X.sprmCFRMark:return at(\"char\",\"revisionInserted\",Wt(r),i,r);case X.sprmCPicLocation:return at(\"char\",\"pictureOffset\",Hr(r,0)>>>0,i,r);case X.sprmCFData:return at(\"char\",\"data\",Wt(r),i,r);case X.sprmCFOle2:return at(\"char\",\"ole2\",Wt(r),i,r);case X.sprmCIstd:return at(\"char\",\"charStyleId\",Qt(r,0),i,r);case X.sprmCPlain:return at(\"char\",\"plain\",Wt(r),i,r);case X.sprmCFBold:return at(\"char\",\"bold\",Wt(r),i,r);case X.sprmCFItalic:return at(\"char\",\"italic\",Wt(r),i,r);case X.sprmCFStrike:return at(\"char\",\"strike\",Wt(r),i,r);case X.sprmCFOutline:return at(\"char\",\"outline\",Wt(r),i,r);case X.sprmCFShadow:return at(\"char\",\"shadow\",Wt(r),i,r);case X.sprmCFSmallCaps:return at(\"char\",\"smallCaps\",Wt(r),i,r);case X.sprmCFCaps:return at(\"char\",\"caps\",Wt(r),i,r);case X.sprmCFVanish:return at(\"char\",\"hidden\",Wt(r),i,r);case X.sprmCKul:return at(\"char\",\"underline\",r[0]??0,i,r);case X.sprmCDxaSpace:return at(\"char\",\"spacing\",se(r,0),i,r);case X.sprmCIco:case X.sprmCIcoBi:return at(\"char\",\"colorIndex\",r[0]??0,i,r);case X.sprmCHighlight:{let o=r[0]??0,a={index:o,color:Gn[o]};return at(\"char\",\"highlight\",a,i,r)}case X.sprmCHps:case X.sprmCHpsBi:return at(\"char\",\"fontSizeHalfPoints\",Qt(r,0),i,r);case X.sprmCHpsPos:return at(\"char\",\"positionHalfPoints\",se(r,0),i,r);case X.sprmCSymbol:return at(\"char\",\"symbol\",{font:Qt(r,0),charCode:Qt(r,2)},i,r);case X.sprmCRgFtc0:return at(\"char\",\"fontFamilyId\",Qt(r,0),i,r);case X.sprmCRgFtc1:return at(\"char\",\"fontFamilyEastAsiaId\",Qt(r,0),i,r);case X.sprmCRgFtc2:return at(\"char\",\"fontFamilyOtherId\",Qt(r,0),i,r);case X.sprmCFtcBi:return at(\"char\",\"fontFamilyBiId\",Qt(r,0),i,r);case X.sprmCCharScale:return at(\"char\",\"scale\",Qt(r,0),i,r);case X.sprmCFDStrike:return at(\"char\",\"doubleStrike\",Wt(r),i,r);case X.sprmCFImprint:return at(\"char\",\"imprint\",Wt(r),i,r);case X.sprmCFSpec:return at(\"char\",\"special\",Wt(r),i,r);case X.sprmCFObj:return at(\"char\",\"object\",Wt(r),i,r);case X.sprmCFEmboss:return at(\"char\",\"emboss\",Wt(r),i,r);case X.sprmCFBiDi:return at(\"char\",\"rtl\",Wt(r),i,r);case X.sprmCFBoldBi:return at(\"char\",\"boldBi\",Wt(r),i,r);case X.sprmCFItalicBi:return at(\"char\",\"italicBi\",Wt(r),i,r);case X.sprmPIstd:return at(\"para\",\"styleId\",Qt(r,0),i,r);case X.sprmPJc80:case X.sprmPJc:return at(\"para\",\"alignment\",r[0]??0,i,r);case X.sprmPFKeep:return at(\"para\",\"keepLines\",Wt(r),i,r);case X.sprmPFKeepFollow:return at(\"para\",\"keepNext\",Wt(r),i,r);case X.sprmPFPageBreakBefore:return at(\"para\",\"pageBreakBefore\",Wt(r),i,r);case X.sprmPIlvl:return at(\"para\",\"listLevel\",r[0]??0,i,r);case X.sprmPIlfo:return at(\"para\",\"listId\",Qt(r,0),i,r);case X.sprmPDxaRight80:case X.sprmPDxaRight:return at(\"para\",\"rightIndent\",se(r,0),i,r);case X.sprmPDxaLeft80:case X.sprmPDxaLeft:return at(\"para\",\"leftIndent\",se(r,0),i,r);case X.sprmPDxaLeft180:case X.sprmPDxaLeft1:return at(\"para\",\"firstLineIndent\",se(r,0),i,r);case X.sprmPDyaLine:return at(\"para\",\"lineSpacing\",se(r,0),i,r);case X.sprmPDyaBefore:return at(\"para\",\"spacingBefore\",se(r,0),i,r);case X.sprmPDyaAfter:return at(\"para\",\"spacingAfter\",se(r,0),i,r);case X.sprmPFInTable:return at(\"para\",\"inTable\",Wt(r),i,r);case X.sprmPFTtp:return at(\"para\",\"tableRowEnd\",Wt(r),i,r);case X.sprmPDxaAbs:return at(\"para\",\"frameLeft\",se(r,0),i,r);case X.sprmPDyaAbs:return at(\"para\",\"frameTop\",se(r,0),i,r);case X.sprmPDxaWidth:return at(\"para\",\"frameWidth\",se(r,0),i,r);case X.sprmPPc:return at(\"para\",\"framePosition\",r[0]??0,i,r);case X.sprmPWr:return at(\"para\",\"frameWrap\",r[0]??0,i,r);case X.sprmPBrcTop80:return at(\"para\",\"borderTop\",Xe(r,0),i,r);case X.sprmPBrcTop:return at(\"para\",\"borderTop\",Wr(r,1),i,r);case X.sprmPBrcLeft80:return at(\"para\",\"borderLeft\",Xe(r,0),i,r);case X.sprmPBrcLeft:return at(\"para\",\"borderLeft\",Wr(r,1),i,r);case X.sprmPBrcBottom80:return at(\"para\",\"borderBottom\",Xe(r,0),i,r);case X.sprmPBrcBottom:return at(\"para\",\"borderBottom\",Wr(r,1),i,r);case X.sprmPBrcRight80:return at(\"para\",\"borderRight\",Xe(r,0),i,r);case X.sprmPBrcRight:return at(\"para\",\"borderRight\",Wr(r,1),i,r);case X.sprmPBrcBetween80:return at(\"para\",\"borderBetween\",Xe(r,0),i,r);case X.sprmPBrcBetween:return at(\"para\",\"borderBetween\",Wr(r,1),i,r);case X.sprmPBrcBar80:return at(\"para\",\"borderBar\",Xe(r,0),i,r);case X.sprmPBrcBar:return at(\"para\",\"borderBar\",Wr(r,1),i,r);case X.sprmPWHeightAbs:return at(\"para\",\"frameHeight\",se(r,0),i,r);case X.sprmPShd80:case X.sprmPShd:return at(\"para\",\"shading\",r.slice(),i,r);case X.sprmPDyaFromText:return at(\"para\",\"distanceFromTextY\",se(r,0),i,r);case X.sprmPDxaFromText:return at(\"para\",\"distanceFromTextX\",se(r,0),i,r);case X.sprmPFLocked:return at(\"para\",\"locked\",Wt(r),i,r);case X.sprmPFWidowControl:return at(\"para\",\"widowControl\",Wt(r),i,r);case X.sprmPFBiDi:return at(\"para\",\"rtlPara\",Wt(r),i,r);case X.sprmPFAdjustRight:return at(\"para\",\"adjustRight\",Wt(r),i,r);case X.sprmPItap:return at(\"para\",\"itap\",Hr(r,0),i,r);case X.sprmPDtap:return at(\"para\",\"dtap\",Hr(r,0),i,r);case X.sprmPFInnerTableCell:return at(\"para\",\"innerTableCell\",Wt(r),i,r);case X.sprmPFInnerTtp:return at(\"para\",\"innerTableRowEnd\",Wt(r),i,r);case X.sprmPFDyaBeforeAuto:return at(\"para\",\"spacingBeforeAuto\",Wt(r),i,r);case X.sprmPFDyaAfterAuto:return at(\"para\",\"spacingAfterAuto\",Wt(r),i,r);case X.sprmTJc90:return at(\"table\",\"alignment\",Qt(r,0),i,r);case X.sprmTDxaLeft:return at(\"table\",\"leftIndent\",se(r,0),i,r);case X.sprmTDxaGapHalf:return at(\"table\",\"gapHalf\",Qt(r,0),i,r);case X.sprmTFCantSplit90:return at(\"table\",\"cantSplit\",Wt(r),i,r);case X.sprmTTableHeader:return at(\"table\",\"header\",Wt(r),i,r);case X.sprmTDyaRowHeight:return at(\"table\",\"rowHeight\",se(r,0),i,r);case X.sprmTDefTable:return at(\"table\",\"defTable\",sg(r),i,r);case X.sprmTTableBorders80:return at(\"table\",\"tableBorders\",xc(r,!0),i,r);case X.sprmTTableBorders:return at(\"table\",\"tableBorders\",xc(r,!1),i,r);case X.sprmTDefTableShd80:return at(\"table\",\"defaultShading\",Zi(r,0,!0),i,r);case X.sprmTDefTableShd:case X.sprmTDefTableShdRaw:return at(\"table\",\"defaultShading\",Zi(r,0,!1),i,r);case X.sprmTDefTableShd2nd:case X.sprmTDefTableShdRaw2nd:return at(\"table\",\"defaultShading\",Zi(r,22,!1),i,r);case X.sprmTDefTableShd3rd:case X.sprmTDefTableShdRaw3rd:return at(\"table\",\"defaultShading\",Zi(r,44,!1),i,r);case X.sprmTFBiDi:return at(\"table\",\"rtl\",Wt(r),i,r);case X.sprmTPc:return at(\"table\",\"positionCode\",r[0]??0,i,r);case X.sprmTDxaAbs:return at(\"table\",\"absLeft\",se(r,0),i,r);case X.sprmTDyaAbs:return at(\"table\",\"absTop\",se(r,0),i,r);case X.sprmTDxaFromText:return at(\"table\",\"distanceLeft\",se(r,0),i,r);case X.sprmTDyaFromText:return at(\"table\",\"distanceTop\",se(r,0),i,r);case X.sprmTTableWidth:return at(\"table\",\"tableWidth\",za(r),i,r);case X.sprmTFAutofit:return at(\"table\",\"autoFit\",Wt(r),i,r);case X.sprmTWidthBefore:return at(\"table\",\"widthBefore\",za(r),i,r);case X.sprmTWidthAfter:return at(\"table\",\"widthAfter\",za(r),i,r);case X.sprmTInsert:return at(\"table\",\"insertCells\",pg(r),i,r);case X.sprmTDelete:return at(\"table\",\"deleteCells\",qe(r,0),i,r);case X.sprmTDxaCol:return at(\"table\",\"columnWidth\",fg(r),i,r);case X.sprmTMerge:return at(\"table\",\"merge\",qe(r,0),i,r);case X.sprmTSplit:return at(\"table\",\"split\",qe(r,0),i,r);case X.sprmTTextFlow:return at(\"table\",\"textFlow\",{range:qe(r,0),value:Qt(r,2)},i,r);case X.sprmTVertMerge:return at(\"table\",\"vertMerge\",hg(r),i,r);case X.sprmTVertAlign:return at(\"table\",\"vertAlign\",wc(r),i,r);case X.sprmTSetShd:return at(\"table\",\"setShading\",Tc(r),i,r);case X.sprmTSetShdOdd:return at(\"table\",\"setShading\",Tc(r,!0),i,r);case X.sprmTSetBrc80:return at(\"table\",\"setBorder\",cg(r),i,r);case X.sprmTSetBrc:return at(\"table\",\"setBorder\",ug(r),i,r);case X.sprmTCellPadding:case X.sprmTCellPaddingDefault:return at(\"table\",\"cellPadding\",vc(r),i,r);case X.sprmTCellSpacingDefault:return at(\"table\",\"cellSpacing\",vc(r),i,r);case X.sprmTCellWidth:return at(\"table\",\"cellWidth\",lg(r),i,r);case X.sprmTFitText:return at(\"table\",\"fitText\",dg(r),i,r);case X.sprmTFCellNoWrap:return at(\"table\",\"cellNoWrap\",wc(r),i,r);case X.sprmTIstd:return at(\"table\",\"styleId\",Qt(r,0),i,r);default:return{kind:e===1?\"para\":e===2?\"char\":e===5?\"table\":\"unknown\",name:`sprm_${n.toString(16)}`,value:r,raw:n,operandBytes:r}}}function Ur(n,t,e){let r=[],i=t;for(;i+2<=e;){let o=Qt(n,i);i+=2;let a=mg(n,i,o);if(!a||i+a>e)break;let s=n.subarray(i,i+a);i+=a,r.push(gg(o,s))}return r}function bg(n,t=0){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function Ec(n,t,e){if(t==null||e==null||e<=0)return{aFC:[],pages:[]};let r=n.subarray(t,t+e),i=new Rt(r),o=Math.floor((e-4)/8);if(o<=0)return{aFC:[],pages:[]};let a=[];for(let c=0;c<=o;c+=1)a.push(i.u32(c*4)>>>0);let s=[],l=(o+1)*4;for(let c=0;c<o;c+=1)s.push(i.u32(l+c*4)&4194303);return{aFC:a,pages:s}}function yg(n,t){let e=t*512,r=n.subarray(e,e+512);if(r.length<512)return null;let i=new Rt(r),o=i.u8(511);if(!o||o>100)return null;let a=[];for(let h=0;h<=o;h+=1)a.push(i.u32(h*4)>>>0);let s=[],l=[],c=(o+1)*4;for(let h=0;h<o;h+=1){let u=i.u8(c+h);s.push(u),l.push(u?e+u*2:0)}return{crun:o,rgfc:a,rgb:s,chpxOffsets:l}}function xg(n,t){let e=t*512,r=n.subarray(e,e+512);if(r.length<512)return null;let i=new Rt(r),o=i.u8(511);if(o>29)return null;let a=[];for(let h=0;h<=o;h+=1)a.push(i.u32(h*4)>>>0);let s=(o+1)*4,l=[],c=[];for(let h=0;h<o;h+=1){let u=i.u8(s+h*13);l.push(u),c.push(u?e+u*2:0)}return{cpara:o,rgfc:a,bOffsets:l,papxOffsets:c}}function kc(n,t,e,r){let i=e.fibRgFcLcb.fcPlcfBteChpx,o=e.fibRgFcLcb.lcbPlcfBteChpx,a=Ec(t,i,o),s=[];for(let l of a.pages){let c=yg(n,l);if(c)for(let h=0;h<c.crun;h+=1){let u=c.rgfc[h]??0,f=c.rgfc[h+1]??u,d=Yn(r,u),p=Yn(r,f);if(d==null||p==null||p<=d)continue;let m=c.chpxOffsets[h]?wg(n,c.chpxOffsets[h]):[];s.push({cpStart:d,cpEnd:p,fcStart:u,fcEnd:f,properties:m})}}return s.sort((l,c)=>l.cpStart-c.cpStart||l.cpEnd-c.cpEnd),s}function Ac(n,t,e,r,i){let o=e.fibRgFcLcb.fcPlcfBtePapx,a=e.fibRgFcLcb.lcbPlcfBtePapx,s=Ec(t,o,a),l=[];for(let c of s.pages){let h=xg(n,c);if(h)for(let u=0;u<h.cpara;u+=1){let f=h.rgfc[u]??0,d=h.rgfc[u+1]??f,p=Yn(r,f),m=Yn(r,d);if(p==null||m==null||m<p)continue;let g=h.papxOffsets[u]?Sg(n,h.papxOffsets[u],i):{styleId:0,properties:[]};l.push({cpStart:p,cpEnd:m,fcStart:f,fcEnd:d,styleId:g.styleId,properties:g.properties,rawOffset:h.papxOffsets[u]??0})}}return l.sort((c,h)=>c.cpStart-h.cpStart||c.cpEnd-h.cpEnd),l}function wg(n,t){if(t==null||t<0||t>=n.length)return[];let e=n[t]??0;if(!e)return[];let r=t+1,i=Math.min(n.length,r+e);return Ur(n,r,i)}function vg(n,t){if(t<0||t+2>n.length)return[];let e=(n[t]??0)|(n[t+1]??0)<<8;return!e||t+2+e>n.length?[]:Ur(n,t+2,t+2+e)}function Tg(n,t){if(!t?.length)return n;let e=[];for(let r of n){if(r.raw!==X.sprmPHugePapx){e.push(r);continue}let i=r.operandBytes||(r.value instanceof Uint8Array?r.value:null);if(!i||i.length<4){e.push(r);continue}let o=bg(i),a=vg(t,o);e.push(...a.length?a:[r])}return e}function Sg(n,t,e){if(t==null||t<0||t>=n.length)return{styleId:0,properties:[]};let r=new Rt(n),i=r.u8(t);if(i===0&&!r.ensure(t+1,1))return{styleId:0,properties:[]};let o,a;if(i===0?(a=r.u8(t+1)*2,o=t+2):(a=i*2-1,o=t+1),a<2||!r.ensure(o,Math.max(2,a)))return{styleId:0,properties:[]};let s=r.u16(o),l=o+2,c=Math.min(n.length,o+a),h=Tg(Ur(n,l,c),e);return{styleId:s,properties:h}}function Eg(n,t){let e=t;for(;e+1<n.length&&!(n[e]===0&&n[e+1]===0);)e+=2;return{value:new TextDecoder(\"utf-16le\").decode(n.subarray(t,e)),nextOffset:Math.min(n.length,e+2)}}function kg(n,t){if(!n.length)return null;let e=new Rt(n),r=e.u8(0),i=e.u8(1),o=e.u16(2),a=e.u8(4),s=e.u8(5),l=e.slice(6,10),c=e.slice(16,24),h=40,u=\"\",f=\"\";if(n.length>h){let p=new TextDecoder(\"utf-16le\").decode(n.subarray(h)).split(\"\\0\").filter(Boolean);if(u=p[0]||\"\",f=p[1]||\"\",!f&&s){let m=h+s*2;m+2<=n.length&&(f=Eg(n,m).value)}}return{index:t,cbFfnM1:r,ffid:i,weight:o,charset:a,ixchSzAlt:s,panose:l,fontSignature:c,name:u,altName:f}}function Cc(n,t){let e=t.fcSttbfFfn,r=t.lcbSttbfFfn;if(e==null||r==null||r<=0)return{header:null,fonts:[],byIndex(h){return h==null,null}};let i=n.subarray(e,e+r),o=new Rt(i),a=o.u16(0),s=o.u16(2),l=4,c=[];for(let h=0;h<a&&l<i.length;h+=1){let f=o.u8(l)+1,d=i.subarray(l,Math.min(l+f,i.length)),p=kg(d,h);p&&c.push(p),l+=f+s}return{header:{cData:a,cbExtra:s},fonts:c,byIndex(h){return h==null||h<0?null:c[h]||null}}}function xn(n){let t={bold:!1,italic:!1,strike:!1,underline:0,fontSizeHalfPoints:void 0,fontFamilyId:void 0,colorIndex:void 0,highlight:void 0,spacing:0,positionHalfPoints:0,scale:100,hidden:!1,smallCaps:!1,caps:!1,outline:!1,shadow:!1,emboss:!1,imprint:!1,rtl:!1,pictureOffset:void 0,data:!1,ole2:!1,object:!1,special:!1,charStyleId:void 0};for(let e of n||[])switch(e.name){case\"plain\":e.value&&(t.bold=!1,t.italic=!1,t.strike=!1,t.underline=0,t.smallCaps=!1,t.caps=!1);break;case\"bold\":case\"revisionDeleted\":case\"revisionInserted\":case\"italic\":case\"strike\":case\"hidden\":case\"smallCaps\":case\"caps\":case\"outline\":case\"shadow\":case\"emboss\":case\"imprint\":case\"rtl\":case\"data\":case\"ole2\":case\"object\":case\"special\":t[e.name]=!!e.value;break;case\"underline\":t.underline=e.value??0;break;case\"fontSizeHalfPoints\":t.fontSizeHalfPoints=e.value;break;case\"fontFamilyId\":t.fontFamilyId=e.value;break;case\"colorIndex\":t.colorIndex=e.value;break;case\"highlight\":t.highlight=e.value;break;case\"spacing\":t.spacing=e.value||0;break;case\"positionHalfPoints\":t.positionHalfPoints=e.value||0;break;case\"scale\":t.scale=e.value||100;break;case\"pictureOffset\":t.pictureOffset=e.value;break;case\"charStyleId\":t.charStyleId=e.value;break;default:t[e.name]=e.value;break}return t}function Ji(n){let t={styleId:0,alignment:0,spacingBefore:0,spacingAfter:0,lineSpacing:0,lineSpacingRule:\"auto\",leftIndent:0,rightIndent:0,firstLineIndent:0,keepLines:!1,keepNext:!1,pageBreakBefore:!1,widowControl:!1,inTable:!1,tableRowEnd:!1,innerTableCell:!1,innerTableRowEnd:!1,itap:0,dtap:0,listLevel:void 0,listId:void 0,rtlPara:!1,adjustRight:!1,frameLeft:void 0,frameTop:void 0,frameWidth:void 0,frameHeight:void 0,framePosition:void 0,frameWrap:void 0,borders:{},shading:void 0};for(let e of n||[])switch(e.name){case\"styleId\":t.styleId=e.value||0;break;case\"alignment\":t.alignment=e.value??0;break;case\"spacingBefore\":t.spacingBefore=e.value||0;break;case\"spacingAfter\":t.spacingAfter=e.value||0;break;case\"lineSpacing\":{t.lineSpacing=e.value||0;let r=e.operandBytes,i=r&&r.length>=4?r[2]===0&&r[3]===0:t.lineSpacing<0;t.lineSpacingRule=i?t.lineSpacing<0?\"exact\":\"atLeast\":\"auto\";break}case\"leftIndent\":t.leftIndent=e.value||0;break;case\"rightIndent\":t.rightIndent=e.value||0;break;case\"firstLineIndent\":t.firstLineIndent=e.value||0;break;case\"keepLines\":case\"keepNext\":case\"pageBreakBefore\":case\"widowControl\":case\"inTable\":case\"tableRowEnd\":case\"innerTableCell\":case\"innerTableRowEnd\":case\"rtlPara\":case\"adjustRight\":t[e.name]=!!e.value;break;case\"itap\":t.itap=e.value||0;break;case\"dtap\":t.dtap=e.value||0;break;case\"listLevel\":t.listLevel=e.value;break;case\"listId\":t.listId=e.value;break;case\"frameLeft\":t.frameLeft=e.value;break;case\"frameTop\":t.frameTop=e.value;break;case\"frameWidth\":t.frameWidth=e.value;break;case\"frameHeight\":t.frameHeight=e.value;break;case\"framePosition\":t.framePosition=e.value;break;case\"frameWrap\":t.frameWrap=e.value;break;case\"borderTop\":t.borders.top=e.value;break;case\"borderLeft\":t.borders.left=e.value;break;case\"borderBottom\":t.borders.bottom=e.value;break;case\"borderRight\":t.borders.right=e.value;break;case\"borderBetween\":t.borders.between=e.value;break;case\"borderBar\":t.borders.bar=e.value;break;case\"shading\":t.shading=e.value;break;default:t[e.name]=e.value;break}return t}function Ya(n){let t={styleId:void 0,alignment:0,leftIndent:0,gapHalf:0,cantSplit:!1,header:!1,rowHeight:0,rtl:!1,positionCode:void 0,absLeft:void 0,absTop:void 0,distanceLeft:void 0,distanceTop:void 0,tableWidth:void 0,autoFit:void 0,widthBefore:void 0,widthAfter:void 0,borders:{},defTable:void 0,operations:[]};for(let e of n||[])switch(e.name){case\"styleId\":t.styleId=e.value;break;case\"alignment\":t.alignment=e.value??0;break;case\"leftIndent\":t.leftIndent=e.value||0;break;case\"gapHalf\":t.gapHalf=e.value||0;break;case\"cantSplit\":case\"header\":case\"rtl\":t[e.name]=!!e.value;break;case\"rowHeight\":t.rowHeight=e.value||0;break;case\"positionCode\":t.positionCode=e.value;break;case\"absLeft\":t.absLeft=e.value;break;case\"absTop\":t.absTop=e.value;break;case\"distanceLeft\":t.distanceLeft=e.value;break;case\"distanceTop\":t.distanceTop=e.value;break;case\"tableWidth\":t.tableWidth=e.value;break;case\"autoFit\":t.autoFit=e.value;break;case\"widthBefore\":t.widthBefore=e.value;break;case\"widthAfter\":t.widthAfter=e.value;break;case\"tableBorders\":t.borders=e.value||{};break;case\"defTable\":t.defTable=e.value;break;default:t.operations.push(e);break}return t}function Nc(n){return n?.inTable?Math.max(1,n.itap||0||(n.dtap?n.dtap:1)):0}function Rc(n){return gc[n]||\"left\"}function Pc(n){return mc[n]||(n?\"single\":\"none\")}function Ic(n){return bc[n]||\"top\"}function ir(n,t,e){if(!t)return;let r=Math.max(0,t.first||0),i=Math.max(r,t.lim||r);for(let o=r;o<i&&o<n.length;o+=1)e(n[o],o)}function Qi(n){let t=n?.defTable,e=(t?.cells||[]).map((o,a)=>({index:a,width:t?.rgdxaCenter?.[a+1]!=null&&t?.rgdxaCenter?.[a]!=null?Math.max(0,t.rgdxaCenter[a+1]-t.rgdxaCenter[a]):o?.wWidth,ftsWidth:o?.tcgrf?.ftsWidth,borders:o?.borders||{},merge:o?.tcgrf?.horzMerge||0,vertMerge:o?.tcgrf?.vertMerge||0,vertAlign:o?.tcgrf?.vertAlign||0,fitText:!!o?.tcgrf?.fitText,noWrap:!!o?.tcgrf?.noWrap,hideMark:!!o?.tcgrf?.hideMark,textFlow:o?.tcgrf?.textFlow||0,rightBoundary:t?.rgdxaCenter?.[a+1],leftBoundary:t?.rgdxaCenter?.[a]})),r=!1,i=e[0]?.leftBoundary||0;for(let o of n.operations||[])switch(o.name){case\"insertCells\":{if(t?.cells?.length)break;let a=o.value,s=Math.min(e.length,Math.max(0,a?.itcFirst||0)),l=Math.min(63-e.length,Math.max(0,a?.ctc||0)),c=Math.max(0,a?.dxaCol||0);l&&(e.splice(s,0,...Array.from({length:l},(h,u)=>({index:s+u,width:c,borders:{},merge:0,vertMerge:0,vertAlign:0,fitText:!1,noWrap:!1,hideMark:!1,textFlow:0}))),r=!0);break}case\"deleteCells\":{let a=o.value;if(a){let s=Math.max(0,a.first||0),l=Math.max(0,(a.lim||s)-s);l&&(e.splice(s,l),r=!0)}break}case\"merge\":ir(e,o.value,(a,s)=>{let l=o.value;s===l.first?a.merge=2:a.merge=1});break;case\"split\":ir(e,o.value,a=>{a.merge=0});break;case\"cellWidth\":ir(e,o.value.range,a=>{let s=o.value;a.ftsWidth=s.ftsWidth,(s.ftsWidth===2||s.ftsWidth===3)&&s.width!=null&&(a.width=s.width)});break;case\"columnWidth\":ir(e,o.value.range,a=>{a.width=Math.max(0,o.value.width||0),r=!0});break;case\"vertMerge\":{let a=o.value,s=a?.index!=null?e[a.index]:void 0;s&&(s.vertMerge=a?.value||0);break}case\"vertAlign\":ir(e,o.value.range,a=>{a.vertAlign=o.value.value});break;case\"setBorder\":ir(e,o.value.range,a=>{let s=o.value,l={...a.borders||{}};s.bordersToApply&1&&(l.top=s.border),s.bordersToApply&2&&(l.left=s.border),s.bordersToApply&4&&(l.bottom=s.border),s.bordersToApply&8&&(l.right=s.border),s.bordersToApply&16&&(l.diagonalDown=s.border),s.bordersToApply&32&&(l.diagonalUp=s.border),a.borders=l});break;case\"setShading\":ir(e,o.value.range,(a,s)=>{let l=o.value;(!l.odd||(s-l.range.first)%2===0)&&(a.shading=l.shading)});break;case\"cellPadding\":case\"cellSpacing\":{let a=o.value,s=a?.ftsWidth===3||o.name===\"cellSpacing\"&&a?.ftsWidth===19;if(!a?.range||!s||a.width==null)break;ir(e,a.range,l=>{let c=o.name===\"cellPadding\"?\"paddingTwips\":\"spacingTwips\",h={...l[c]||{}};(a.sides||0)&1&&(h.top=a.width),(a.sides||0)&2&&(h.left=a.width),(a.sides||0)&4&&(h.bottom=a.width),(a.sides||0)&8&&(h.right=a.width),l[c]=h});break}case\"defaultShading\":{let a=o.value;(a?.values||[]).forEach((s,l)=>{let c=e[(a?.start||0)+l];c&&(c.shading=s)});break}case\"fitText\":ir(e,o.value.range,a=>{a.fitText=!!o.value.value});break;case\"cellNoWrap\":ir(e,o.value.range,a=>{a.noWrap=!!o.value.value});break;case\"textFlow\":ir(e,o.value.range,a=>{a.textFlow=o.value.value});break;default:break}if(r){let o=i;e.forEach(a=>{let s=Math.max(0,a.width||0);a.leftBoundary=o,o+=s,a.rightBoundary=o})}return e.forEach((o,a)=>{o.index=a}),e}var Ag=/^(?:<!doctype\\s+html\\b|<html\\b|<body\\b)/i,Cg=new Set([\"br\"]),Ng=new Set([\"div\",\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"li\",\"pre\",\"blockquote\",\"tr\"]),Rg=new Set([\"div\",\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"li\",\"pre\",\"blockquote\",\"tr\",\"table\"]),Pg=new Set([\"td\",\"th\"]),Lc=new Set([\"script\",\"style\",\"noscript\",\"iframe\",\"object\",\"embed\",\"svg\"]);function _c(n,t=1024){return Array.from(n.subarray(0,Math.min(t,n.length)),e=>e===0?\"\":String.fromCharCode(e)).join(\"\")}function Ig(n){let t=_c(n).replace(/^\\uFEFF/,\"\").trimStart();return Ag.test(t)}function to(n,t,e=!1){try{return new TextDecoder(t,{fatal:e}).decode(n)}catch{return null}}function Og(n){let t=n.length;for(;t>0&&n[t-1]===0;)t-=1;let e=n.subarray(0,t),r=_c(e,4096),i=/charset\\s*=\\s*[\"']?([a-z0-9._-]+)/i.exec(r)?.[1]?.toLowerCase(),o=i===\"gb2312\"||i===\"gbk\"?\"gb18030\":i;if(o){let s=to(e,o);if(s!=null)return s}let a=to(e,\"utf-8\",!0);return a??to(e,\"gb18030\")??to(e,\"utf-8\")??\"\"}function Lg(n){let t={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\"\\xA0\",quot:'\"'};return n.replace(/&(#(?:x[0-9a-f]+|\\d+)|[a-z][a-z0-9]+);/gi,(e,r)=>{if(r[0]===\"#\"){let i=r[1]?.toLowerCase()===\"x\",o=Number.parseInt(r.slice(i?2:1),i?16:10);if(Number.isFinite(o)&&o>=0&&o<=1114111)try{return String.fromCodePoint(o)}catch{return e}return e}return t[r.toLowerCase()]??e})}function Ga(n,t){let e=\"\";for(let r=t+1;r<n.length;r+=1){let i=n[r]||\"\";if(e){i===e&&(e=\"\");continue}if(i==='\"'||i===\"'\")e=i;else if(i===\">\")return r}return-1}function Mc(n,t,e){let r=t+1;for(;r<e&&/\\s/.test(n[r]||\"\");)r+=1;let i=n[r]===\"/\";for(i&&(r+=1);r<e&&/\\s/.test(n[r]||\"\");)r+=1;let o=r;for(;r<e&&/[A-Za-z0-9]/.test(n[r]||\"\");)r+=1;return{closing:i,name:n.slice(o,r).toLowerCase(),attributes:i?\"\":n.slice(r,e),selfClosing:!i&&/\\/\\s*$/.test(n.slice(r,e))}}function Fc(n,t,e,r){let i=`</${e}`,o=r;for(;o<n.length;){let a=t.indexOf(i,o);if(a<0)return n.length;let s=t[a+i.length]||\"\";if(s&&!/[\\s>]/.test(s)){o=a+i.length;continue}let l=Ga(n,a);return l<0?n.length:l+1}return n.length}function _g(n){let t=[],e=n.toLowerCase(),r=0;for(;r<n.length;){let i=n.indexOf(\"<\",r);if(i<0){t.push(n.slice(r));break}if(t.push(n.slice(r,i)),n.startsWith(\"<!--\",i)){let s=n.indexOf(\"-->\",i+4);r=s<0?n.length:s+3;continue}let o=Ga(n,i);if(o<0){t.push(n.slice(i));break}let a=Mc(n,i,o);if(!a.closing&&Lc.has(a.name)){r=Fc(n,e,a.name,o+1);continue}Cg.has(a.name)||a.closing&&Rg.has(a.name)?t.push(`\n`):Pg.has(a.name)&&t.push(\"\t\"),r=o+1}return t.join(\"\").replace(/\\u0000/g,\"\")}function Oc(n){return Lg(_g(n)).replace(/\\r\\n?/g,`\n`).replace(/[\\t\\f\\v ]+/g,\" \").replace(/ *\\n */g,`\n`).trim()}function Mg(n){let t=[],e=n.toLowerCase(),r=null,i=0,o=(s,l)=>{let c=Oc(l);c&&t.push({text:c,attributes:s,content:l})};for(;i<n.length;){let s=n.indexOf(\"<\",i);if(s<0)break;if(n.startsWith(\"<!--\",s)){let h=n.indexOf(\"-->\",s+4);i=h<0?n.length:h+3;continue}let l=Ga(n,s);if(l<0)break;let c=Mc(n,s,l);if(!c.closing&&Lc.has(c.name)){i=Fc(n,e,c.name,l+1);continue}Ng.has(c.name)&&!c.selfClosing&&(c.closing?r?.name===c.name&&(r.sameNameDepth>0?r.sameNameDepth-=1:(o(r.attributes,n.slice(r.contentStart,s)),r=null)):r?r.name===c.name&&(r.sameNameDepth+=1):r={attributes:c.attributes,contentStart:l+1,name:c.name,sameNameDepth:0}),i=l+1}if(r&&o(r.attributes,n.slice(r.contentStart)),t.length)return t;let a=Oc(n);return a?[{text:a,attributes:\"\",content:n}]:[]}function Fg(n){return/\\bstyle\\s*=\\s*([\"'])([\\s\\S]*?)\\1/i.exec(n)?.[2]||\"\"}function Dg(n,t){let e=Ji([]),r=xn([]),i=Fg(n.attributes),o=/text-align\\s*:\\s*(center|right|justify)/i.exec(i)?.[1]?.toLowerCase();o===\"center\"&&(e.alignment=1),o===\"right\"&&(e.alignment=2),o===\"justify\"&&(e.alignment=3);let a=Number.parseFloat(/text-indent\\s*:\\s*([\\d.]+)pt/i.exec(i)?.[1]||\"\");Number.isFinite(a)&&(e.firstLineIndent=Math.round(a*20));let s=Number.parseFloat(/font-size\\s*:\\s*([\\d.]+)pt/i.exec(i)?.[1]||\"\");Number.isFinite(s)&&(r.fontSizeHalfPoints=Math.round(Math.min(96,Math.max(8,s))*2)),(/font-weight\\s*:\\s*(?:bold|[6-9]00)/i.test(i)||/<(?:b|strong)\\b/i.test(n.content))&&(r.bold=!0),(/font-style\\s*:\\s*italic/i.test(i)||/<(?:i|em)\\b/i.test(n.content))&&(r.italic=!0);let l=n.text.split(`\n`).flatMap((c,h)=>[...h?[{type:\"lineBreak\"}]:[],...c?[{type:\"text\",text:c,style:{...r}}]:[]]);return{type:\"paragraph\",id:`html-word-paragraph-${t+1}`,styleId:0,styleName:\"Normal\",paraState:e,inlines:l,text:n.text}}function Dc(n){if(!Ig(n))return null;let t=Mg(Og(n));if(!t.length)return null;let e=t.map(Dg),r=t.reduce((i,o)=>i+o.text.length,0);return{kind:\"msdoc\",version:1,warnings:[{message:\"Recovered an HTML document stored inside the legacy WordDocument stream.\",code:\"MSDOC_HTML_WORDDOCUMENT_RECOVERED\"}],meta:{fib:{wIdent:0,nFib:0,fWhichTblStm:0,fComplex:!1,fEncrypted:!1,ccpText:r},counts:{paragraphs:e.length,blocks:e.length,assets:0,styles:0,fonts:0}},fonts:[],styles:[],blocks:e,assets:[]}}var Ie=class extends Error{name=\"InflateError\"},Va=class{bytes;byteOffset=0;bitBuffer=0;bitCount=0;constructor(t){this.bytes=t}readBits(t){if(t<0||t>24)throw new Ie(\"Invalid bit count\");for(;this.bitCount<t;){if(this.byteOffset>=this.bytes.length)throw new Ie(\"Unexpected end of deflate stream\");this.bitBuffer|=(this.bytes[this.byteOffset++]??0)<<this.bitCount,this.bitCount+=8}let e=t===0?0:(1<<t)-1,r=this.bitBuffer&e;return this.bitBuffer>>>=t,this.bitCount-=t,r}readBit(){return this.readBits(1)}alignToByte(){this.bitBuffer=0,this.bitCount=0}readByte(){return this.readBits(8)}},Xa=class{buffer;length=0;constructor(t=32768){this.buffer=new Uint8Array(t)}reserve(t){let e=this.length+t;if(e<=this.buffer.length)return;let r=this.buffer.length;for(;r<e;)r*=2;let i=new Uint8Array(r);i.set(this.buffer.subarray(0,this.length)),this.buffer=i}push(t){this.reserve(1),this.buffer[this.length++]=t&255}pushBytes(t){this.reserve(t.length),this.buffer.set(t,this.length),this.length+=t.length}copyFromBack(t,e){if(t<=0||t>this.length)throw new Ie(\"Invalid back-reference distance\");this.reserve(e);for(let r=0;r<e;r+=1)this.buffer[this.length]=this.buffer[this.length-t]??0,this.length+=1}toUint8Array(t){let e=this.buffer.slice(0,this.length);return t!=null&&t>=0&&e.length!==t,e}};function jn(n){let t=Math.max(0,...n);if(t===0)throw new Ie(\"Empty Huffman table\");let e=new Array(t+1).fill(0);for(let a of n){if(a<0||a>t)throw new Ie(\"Invalid code length\");a&&(e[a]+=1)}let r=new Array(t+1).fill(0),i=0;for(let a=1;a<=t;a+=1)i=i+(e[a-1]??0)<<1,r[a]=i;let o=Array.from({length:t+1},()=>new Map);for(let a=0;a<n.length;a+=1){let s=n[a]??0;if(!s)continue;let l=r[s]??0;r[s]=l+1,o[s].set(l,a)}return{maps:o,maxBits:t}}function qa(n,t){let e=0;for(let r=1;r<=t.maxBits;r+=1){e=e<<1|n.readBit();let i=t.maps[r]?.get(e);if(i!=null)return i}throw new Ie(\"Invalid Huffman code\")}var Bg=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],$g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Bc=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Wg=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ja=null,$c=null;function Hg(){if(!ja){let n=new Array(288).fill(0);for(let t=0;t<=143;t+=1)n[t]=8;for(let t=144;t<=255;t+=1)n[t]=9;for(let t=256;t<=279;t+=1)n[t]=7;for(let t=280;t<=287;t+=1)n[t]=8;ja=jn(n),$c=jn(new Array(32).fill(5))}return{literalLength:ja,distance:$c}}var Ug=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function zg(n){let t=n.readBits(5)+257,e=n.readBits(5)+1,r=n.readBits(4)+4,i=new Array(19).fill(0);for(let c=0;c<r;c+=1)i[Ug[c]]=n.readBits(3);let o=jn(i),a=[];for(;a.length<t+e;){let c=qa(n,o);if(c<=15)a.push(c);else if(c===16){if(!a.length)throw new Ie(\"Repeat code length without previous value\");let h=n.readBits(2)+3,u=a[a.length-1]??0;for(let f=0;f<h;f+=1)a.push(u)}else if(c===17){let h=n.readBits(3)+3;for(let u=0;u<h;u+=1)a.push(0)}else if(c===18){let h=n.readBits(7)+11;for(let u=0;u<h;u+=1)a.push(0)}else throw new Ie(\"Invalid code length symbol\")}let s=a.slice(0,t),l=a.slice(t,t+e);if(!s[256])throw new Ie(\"Missing end-of-block code\");return l.some(Boolean)||(l[0]=1),{literalLength:jn(s),distance:jn(l)}}function Wc(n,t,e,r){for(;;){let i=qa(n,e);if(i<256){t.push(i);continue}if(i===256)return;if(i<257||i>285)throw new Ie(\"Invalid length symbol\");let o=i-257,a=Bg[o]??0,s=$g[o]??0;s&&(a+=n.readBits(s));let l=qa(n,r);if(l<0||l>=Bc.length)throw new Ie(\"Invalid distance symbol\");let c=Bc[l]??0,h=Wg[l]??0;h&&(c+=n.readBits(h)),t.copyFromBack(c,a)}}function Yg(n,t){let e=new Va(n),r=new Xa(t&&t>0?t:void 0),i=!1;for(;!i;){i=e.readBit()===1;let o=e.readBits(2);if(o===0){e.alignToByte();let a=e.readByte()|e.readByte()<<8,s=e.readByte()|e.readByte()<<8;if(((a^65535)&65535)!==s)throw new Ie(\"Invalid stored block length\");let l=new Uint8Array(a);for(let c=0;c<a;c+=1)l[c]=e.readByte();r.pushBytes(l)}else if(o===1){let a=Hg();Wc(e,r,a.literalLength,a.distance)}else if(o===2){let a=zg(e);Wc(e,r,a.literalLength,a.distance)}else throw new Ie(\"Reserved deflate block type\")}return r.toUint8Array(t)}function Gg(n){let t=1,e=0;for(let r of n)t=(t+r)%65521,e=(e+t)%65521;return(e<<16|t)>>>0}function Hc(n,t){if(n.length<6)return null;let e=n[0]??0,r=n[1]??0;if((e&15)!==8||e>>>4>7||((e<<8)+r)%31!==0||r&32)return null;try{let i=n.subarray(2,Math.max(2,n.length-4)),o=Yg(i,t),a=(n[n.length-4]??0)<<24|(n[n.length-3]??0)<<16|(n[n.length-2]??0)<<8|(n[n.length-1]??0);return a>>>0&&Gg(o)!==a>>>0?null:o}catch{return null}}var zc=15,jg=61444,Vg=61450,Xg=61451,qg=61729,Kg=61730,Zg=260,Jg=390,Qg=261,t0=896,e0=897;function r0(n,t){return t+2>n.length?0:(n[t]??0)|(n[t+1]??0)<<8}function Yc(n,t){return t+4>n.length?0:((n[t]??0)|(n[t+1]??0)<<8|(n[t+2]??0)<<16|(n[t+3]??0)<<24>>>0)>>>0}function n0(n){if(n?.length)try{return new TextDecoder(\"utf-16le\").decode(n).replace(/\\0+$/g,\"\").trim()||void 0}catch{return}}function i0(n){if(n?.length)try{return new TextDecoder(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\").trim()||void 0}catch{return}}function Uc(n){return n0(n)||i0(n)}function Gc(n){switch(n){case 2:return\"image/emf\";case 3:return\"image/wmf\";case 4:return\"image/pict\";case 5:return\"image/jpeg\";case 6:return\"image/png\";case 7:return\"image/dib\";case 17:return\"image/tiff\";case 18:return\"image/jpeg\";default:return null}}function jc(n,t){if(t<0||t+8>n.length)return null;let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u32(t+4),a=8+o;return i<61440||i>65535||o>n.length||t+a>n.length?null:{recVer:r&15,recInstance:r>>>4,recType:i,recLen:o,size:a}}function o0(n,t,e){let r=t+8;if(r+e*6>n.length)return[];let i=[],o=r,a=r+e*6;for(let s=0;s<e;s+=1){let l=r0(n,o),c=Yc(n,o+2);o+=6;let h=l&16383,u=!!(l>>14&1),f=!!(l>>15&1),d;if(f){if(a+c>n.length)break;d=n.subarray(a,a+c),a+=c}i.push({propertyId:h,isBlipId:u,isComplex:f,value:c,complexData:d})}return i}function Vc(n,t,e,r){let i=Math.max(0,t),o=Math.min(e,n.length);for(;i+8<=o;){let a=jc(n,i);if(!a||i+a.size>o){i+=1;continue}if(r(i,a)===!0||a.recVer===zc&&Vc(n,i+8,i+a.size,r))return!0;i+=a.size}return!1}function Xc(n,t=0){let e=null;return Vc(n,t,n.length,(r,i)=>{if(i.recType!==jg||i.recVer!==zc)return!1;let o=r+i.size,a=r+8,s=0,l,c,h;for(;a+8<=o;){let u=jc(n,a);if(!u||a+u.size>o)break;if(u.recType===Vg&&u.recLen>=8)s=Yc(n,a+8);else if(u.recType===Xg||u.recType===qg||u.recType===Kg){let f=o0(n,a,u.recInstance);for(let d of f)(d.isBlipId||d.propertyId===Zg||d.propertyId===Jg)&&d.value>0?l=d.value:d.propertyId===t0?c=Uc(d.complexData)||c:(d.propertyId===e0||d.propertyId===Qg)&&(h=Uc(d.complexData)||h)}a+=u.size}return s?(e={shapeId:s,blipIndex:l,name:c,description:h},!0):!1}),e}var a0={color:\"#000000\",width:1},s0={color:\"#ffffff\",none:!0},l0={family:\"sans-serif\",size:12},Qc={m11:1,m12:0,m21:0,m22:1,dx:0,dy:0},c0=2596720087,u0=18,te={META_EOF:0,META_SETBKMODE:258,META_SETPOLYFILLMODE:262,META_SETBKCOLOR:513,META_SETTEXTCOLOR:521,META_SETWINDOWORG:523,META_SETWINDOWEXT:524,META_SETVIEWPORTORG:525,META_SETVIEWPORTEXT:526,META_OFFSETWINDOWORG:527,META_OFFSETVIEWPORTORG:529,META_LINETO:531,META_MOVETO:532,META_POLYGON:804,META_POLYLINE:805,META_TEXTOUT:1313,META_POLYPOLYGON:1336,META_ELLIPSE:1048,META_RECTANGLE:1051,META_ROUNDRECT:1564,META_CREATEBRUSHINDIRECT:764,META_CREATEPENINDIRECT:762,META_CREATEFONTINDIRECT:763,META_SELECTOBJECT:301,META_DELETEOBJECT:496},Ct={EMR_HEADER:1,EMR_POLYBEZIER:2,EMR_POLYGON:3,EMR_POLYLINE:4,EMR_POLYBEZIERTO:5,EMR_POLYLINETO:6,EMR_POLYPOLYLINE:7,EMR_POLYPOLYGON:8,EMR_SETWINDOWEXTEX:9,EMR_SETWINDOWORGEX:10,EMR_SETVIEWPORTEXTEX:11,EMR_SETVIEWPORTORGEX:12,EMR_EOF:14,EMR_SETBKMODE:18,EMR_SETPOLYFILLMODE:19,EMR_SETTEXTALIGN:22,EMR_SETTEXTCOLOR:24,EMR_SETBKCOLOR:25,EMR_MOVETOEX:27,EMR_SAVEDC:33,EMR_RESTOREDC:34,EMR_SETWORLDTRANSFORM:35,EMR_MODIFYWORLDTRANSFORM:36,EMR_SELECTOBJECT:37,EMR_CREATEPEN:38,EMR_CREATEBRUSHINDIRECT:39,EMR_DELETEOBJECT:40,EMR_ELLIPSE:42,EMR_RECTANGLE:43,EMR_ROUNDRECT:44,EMR_BEGINPATH:59,EMR_ENDPATH:60,EMR_CLOSEFIGURE:61,EMR_FILLPATH:62,EMR_STROKEANDFILLPATH:63,EMR_STROKEPATH:64,EMR_SELECTCLIPPATH:67,EMR_LINETO:54,EMR_BITBLT:76,EMR_STRETCHBLT:77,EMR_STRETCHDIBITS:81,EMR_EXTCREATEFONTINDIRECTW:82,EMR_EXTTEXTOUTA:83,EMR_EXTTEXTOUTW:84,EMR_POLYBEZIER16:85,EMR_POLYGON16:86,EMR_POLYLINE16:87,EMR_POLYBEZIERTO16:88,EMR_POLYLINETO16:89,EMR_POLYPOLYLINE16:90,EMR_POLYPOLYGON16:91,EMR_EXTCREATEPEN:95,EMR_SMALLTEXTOUT:108,EMR_ALPHABLEND:114},Tr=2147483648,Sr={WHITE_BRUSH:Tr,LTGRAY_BRUSH:Tr+1,GRAY_BRUSH:Tr+2,DKGRAY_BRUSH:Tr+3,BLACK_BRUSH:Tr+4,NULL_BRUSH:Tr+5,WHITE_PEN:Tr+6,BLACK_PEN:Tr+7,NULL_PEN:Tr+8},eo={MWT_IDENTITY:1,MWT_LEFTMULTIPLY:2,MWT_RIGHTMULTIPLY:3,MWT_SET:4};function It(n){let t=Math.round(n*100)/100;return Number.isInteger(t),String(t)}function be(n){return Math.max(1,n.right-n.left||0)}function ye(n){return Math.max(1,n.bottom-n.top||0)}function wn(n){return{left:Math.min(n.left,n.right),top:Math.min(n.top,n.bottom),right:Math.max(n.left,n.right),bottom:Math.max(n.top,n.bottom)}}function h0(n,t){for(let e of t)if(!(!Number.isFinite(e.x)||!Number.isFinite(e.y))){if(!n.contentBounds){n.contentBounds={left:e.x,top:e.y,right:e.x,bottom:e.y};continue}n.contentBounds.left=Math.min(n.contentBounds.left,e.x),n.contentBounds.top=Math.min(n.contentBounds.top,e.y),n.contentBounds.right=Math.max(n.contentBounds.right,e.x),n.contentBounds.bottom=Math.max(n.contentBounds.bottom,e.y)}}function Er(n){let t=n&255,e=n>>>8&255,r=n>>>16&255;return`#${t.toString(16).padStart(2,\"0\")}${e.toString(16).padStart(2,\"0\")}${r.toString(16).padStart(2,\"0\")}`}function d0(n,t){let e=new Uint8Array(14),r=new DataView(e.buffer);return e[0]=66,e[1]=77,r.setUint32(2,t>>>0,!0),r.setUint32(10,n>>>0,!0),e}function f0(n,t){if(n.length<12||!t.length)return null;let e=14+n.length,r=e+t.length,i=new Uint8Array(r);return i.set(d0(e,r),0),i.set(n,14),i.set(t,e),i}function Qa(n,t,e){let r=Math.max(1,Math.abs(t)||1),i={color:e,width:r};switch(n&15){case 1:return{...i,dasharray:`${r*4} ${r*2}`};case 2:return{...i,dasharray:`${r} ${r*2}`};case 3:return{...i,dasharray:`${r*4} ${r*2} ${r} ${r*2}`};case 4:return{...i,dasharray:`${r*4} ${r*2} ${r} ${r*2} ${r} ${r*2}`};case 5:return{...i,none:!0};default:return i}}function tu(n,t){return n===1?{color:t,none:!0}:{color:t}}function Ka(n){return{...n,windowOrg:{...n.windowOrg},windowExt:{...n.windowExt},viewportOrg:{...n.viewportOrg},viewportExt:{...n.viewportExt},worldTransform:{...n.worldTransform},currentPosition:{...n.currentPosition},pen:{...n.pen},brush:{...n.brush},font:{...n.font}}}function qc(n,t){let e=n.view;return{m11:n.ensure(t,4)?e.getFloat32(t,!0):1,m12:n.ensure(t+4,4)?e.getFloat32(t+4,!0):0,m21:n.ensure(t+8,4)?e.getFloat32(t+8,!0):0,m22:n.ensure(t+12,4)?e.getFloat32(t+12,!0):1,dx:n.ensure(t+16,4)?e.getFloat32(t+16,!0):0,dy:n.ensure(t+20,4)?e.getFloat32(t+20,!0):0}}function Kc(n,t){return{m11:n.m11*t.m11+n.m12*t.m21,m12:n.m11*t.m12+n.m12*t.m22,m21:n.m21*t.m11+n.m22*t.m21,m22:n.m21*t.m12+n.m22*t.m22,dx:n.dx*t.m11+n.dy*t.m21+t.dx,dy:n.dx*t.m12+n.dy*t.m22+t.dy}}function p0(n,t){return{x:t.x*n.m11+t.y*n.m21+n.dx,y:t.x*n.m12+t.y*n.m22+n.dy}}function m0(n,t){return{x:t.x*n.m11+t.y*n.m21,y:t.x*n.m12+t.y*n.m22}}function eu(n,t,e){return{width:n,height:t,viewBox:e,recordCount:0,contentBounds:null,nodes:[],stateStack:[],capturePath:!1,pathData:[],pathPoints:[],objects:[],state:{windowOrg:{x:e.left,y:e.top},windowExt:{x:be(e),y:ye(e)},viewportOrg:{x:e.left,y:e.top},viewportExt:{x:be(e),y:ye(e)},worldTransform:{...Qc},currentPosition:{x:0,y:0},pen:{...a0},brush:{...s0},font:{...l0},textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:1,textAlign:0,polygonFillMode:1}}}function hr(n,t){let e=p0(n.state.worldTransform,t),r=n.state.windowExt.x||be(n.viewBox)||1,i=n.state.windowExt.y||ye(n.viewBox)||1,o=n.state.viewportExt.x||be(n.viewBox)||1,a=n.state.viewportExt.y||ye(n.viewBox)||1;return{x:n.state.viewportOrg.x+(e.x-n.state.windowOrg.x)*o/r,y:n.state.viewportOrg.y+(e.y-n.state.windowOrg.y)*a/i}}function ts(n,t){let e=m0(n.state.worldTransform,t),r=n.state.windowExt.x||be(n.viewBox)||1,i=n.state.windowExt.y||ye(n.viewBox)||1,o=n.state.viewportExt.x||be(n.viewBox)||1,a=n.state.viewportExt.y||ye(n.viewBox)||1;return{x:e.x*o/r,y:e.y*a/i}}function es(n,t){let e=[hr(n,{x:t.left,y:t.top}),hr(n,{x:t.right,y:t.top}),hr(n,{x:t.right,y:t.bottom}),hr(n,{x:t.left,y:t.bottom})];return wn({left:Math.min(...e.map(r=>r.x)),top:Math.min(...e.map(r=>r.y)),right:Math.max(...e.map(r=>r.x)),bottom:Math.max(...e.map(r=>r.y))})}function kr(n){return`${It(n.x)},${It(n.y)}`}function rs(n,t){let e=Math.max(1,Math.abs(t.width)||1),r=ts(n,{x:e,y:0}),i=ts(n,{x:0,y:e}),o=Math.hypot(r.x,r.y),a=Math.hypot(i.x,i.y),s=(o+a)/2;return!Number.isFinite(s)||s<=0?e:Math.max(.5,s)}function ru(n,t){if(!t.dasharray)return;let e=Math.max(1,Math.abs(t.width)||1),r=rs(n,t)/e;return t.dasharray.split(/\\s+/).map(i=>Number(i)).filter(i=>Number.isFinite(i)&&i>0).map(i=>It(i*r)).join(\" \")||void 0}function ao(n,t){if(t.none)return'stroke=\"none\"';let e=[`stroke=\"${ce(t.color)}\"`,`stroke-width=\"${It(rs(n,t))}\"`,'fill=\"none\"'],r=ru(n,t);return r&&e.push(`stroke-dasharray=\"${ce(r)}\"`),e.join(\" \")}function so(n){let t=[n.state.pen.none?'stroke=\"none\"':`stroke=\"${ce(n.state.pen.color)}\"`,n.state.pen.none?\"\":`stroke-width=\"${It(rs(n,n.state.pen))}\"`].filter(Boolean),e=ru(n,n.state.pen);return e&&!n.state.pen.none&&t.push(`stroke-dasharray=\"${ce(e)}\"`),t.push(n.state.brush.none?'fill=\"none\"':`fill=\"${ce(n.state.brush.color)}\"`),t.push(`fill-rule=\"${n.state.polygonFillMode===2?\"nonzero\":\"evenodd\"}\"`),t.join(\" \")}function g0(n){let t=['stroke=\"none\"'];return t.push(n.state.brush.none?'fill=\"none\"':`fill=\"${ce(n.state.brush.color)}\"`),t.push(`fill-rule=\"${n.state.polygonFillMode===2?\"nonzero\":\"evenodd\"}\"`),t.join(\" \")}function Za(n){let t=n.findIndex(e=>e==null);return t>=0?t:(n.push(null),n.length-1)}function nn(n,t,e){for(;n.length<=t;)n.push(null);n[t]=e}function b0(n,t){switch(t>>>0){case Sr.WHITE_BRUSH:return n.state.brush={color:\"#ffffff\"},!0;case Sr.LTGRAY_BRUSH:return n.state.brush={color:\"#c0c0c0\"},!0;case Sr.GRAY_BRUSH:return n.state.brush={color:\"#808080\"},!0;case Sr.DKGRAY_BRUSH:return n.state.brush={color:\"#404040\"},!0;case Sr.BLACK_BRUSH:return n.state.brush={color:\"#000000\"},!0;case Sr.NULL_BRUSH:return n.state.brush={color:\"none\",none:!0},!0;case Sr.WHITE_PEN:return n.state.pen={color:\"#ffffff\",width:1},!0;case Sr.BLACK_PEN:return n.state.pen={color:\"#000000\",width:1},!0;case Sr.NULL_PEN:return n.state.pen={color:\"none\",width:1,none:!0},!0;default:return!1}}function nu(n,t){if(b0(n,t))return;let e=n.objects[t]||null;e&&(e.kind===\"pen\"&&(n.state.pen={...e.value}),e.kind===\"brush\"&&(n.state.brush={...e.value}),e.kind===\"font\"&&(n.state.font={...e.value}))}function zr(n,t,e){n.nodes.push(t),h0(n,e)}function qn(n,t,e){t&&(n.pathData.push(t),n.pathPoints.push(...e))}function Ja(n,t){n.pathData.length&&(zr(n,`<path d=\"${n.pathData.join(\" \")}\" ${t} />`,n.pathPoints),n.pathData=[],n.pathPoints=[],n.capturePath=!1)}function iu(n,t,e){let r=hr(n,t),i=hr(n,e);if(n.state.currentPosition={...e},n.capturePath){qn(n,`${n.pathData.length?\"\":`M ${kr(r)}`} L ${kr(i)}`.trim(),[r,i]);return}zr(n,`<line x1=\"${It(r.x)}\" y1=\"${It(r.y)}\" x2=\"${It(i.x)}\" y2=\"${It(i.y)}\" ${ao(n,n.state.pen)} />`,[r,i])}function Xn(n,t,e){if(!t.length)return;let r=t.map(s=>hr(n,s));n.state.currentPosition={...t[t.length-1]};let i=r.map(kr).join(\" \");if(n.capturePath){let s=[`M ${kr(r[0])}`,...r.slice(1).map(l=>`L ${kr(l)}`)];e&&s.push(\"Z\"),qn(n,s.join(\" \"),r);return}let o=e?\"polygon\":\"polyline\",a=e?so(n):ao(n,n.state.pen);zr(n,`<${o} points=\"${i}\" ${a} />`,r)}function Zc(n,t,e=!1){let r=[];if(e&&r.push({...n.state.currentPosition}),r.push(...t),r.length<4)return;let i=r.map(a=>hr(n,a)),o=`M ${kr(i[0])}`;for(let a=1;a+2<i.length;a+=3)o+=` C ${kr(i[a])} ${kr(i[a+1])} ${kr(i[a+2])}`;if(n.state.currentPosition={...r[r.length-1]},n.capturePath){qn(n,o,i);return}zr(n,`<path d=\"${o}\" ${ao(n,n.state.pen)} />`,i)}function no(n,t,e){let r=es(n,t),i=[`x=\"${It(r.left)}\"`,`y=\"${It(r.top)}\"`,`width=\"${It(be(r))}\"`,`height=\"${It(ye(r))}\"`];if(e){let o=hr(n,{x:e.x,y:e.y});i.push(`rx=\"${It(Math.abs(o.x-n.state.viewportOrg.x))}\"`),i.push(`ry=\"${It(Math.abs(o.y-n.state.viewportOrg.y))}\"`)}if(n.capturePath){qn(n,`M ${It(r.left)},${It(r.top)} L ${It(r.right)},${It(r.top)} L ${It(r.right)},${It(r.bottom)} L ${It(r.left)},${It(r.bottom)} Z`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}]);return}zr(n,`<rect ${i.join(\" \")} ${so(n)} />`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}])}function ou(n,t){let e=es(n,t),r=(e.left+e.right)/2,i=(e.top+e.bottom)/2,o=be(e)/2,a=ye(e)/2;if(n.capturePath){qn(n,`M ${It(r-o)},${It(i)} A ${It(o)},${It(a)} 0 1 0 ${It(r+o)},${It(i)} A ${It(o)},${It(a)} 0 1 0 ${It(r-o)},${It(i)} Z`,[{x:e.left,y:e.top},{x:e.right,y:e.bottom}]);return}zr(n,`<ellipse cx=\"${It(r)}\" cy=\"${It(i)}\" rx=\"${It(o)}\" ry=\"${It(a)}\" ${so(n)} />`,[{x:e.left,y:e.top},{x:e.right,y:e.bottom}])}function au(n,t,e){if(!e.length)return;let r=es(n,t),i=be(r),o=ye(r),a=vr(e,\"image/bmp\");zr(n,`<image x=\"${It(r.left)}\" y=\"${It(r.top)}\" width=\"${It(i)}\" height=\"${It(o)}\" href=\"${a}\" preserveAspectRatio=\"none\" />`,[{x:r.left,y:r.top},{x:r.right,y:r.bottom}])}function io(n){return new TextDecoder(\"windows-1252\").decode(n).replace(/\\0+$/g,\"\")}function su(n){return new TextDecoder(\"utf-16le\").decode(n).replace(/\\0+$/g,\"\")}function y0(n){let t=n&6;return t===2?\"end\":t===6?\"middle\":\"start\"}function x0(n){let t=n&24;return t===8?\"text-after-edge\":t===24?\"alphabetic\":\"text-before-edge\"}function ro(n,t,e){if(!e)return;let r=hr(n,t),i=ts(n,{x:0,y:Math.abs(n.state.font.size)||12}),o=Math.hypot(i.x,i.y),a=Math.max(1,Number.isFinite(o)&&o>0?o:Math.abs(n.state.font.size)||12),s=String(n.state.font.family||\"sans-serif\").replace(/\\s+(?:Baltic|CE|Cyr|Greek|Tur|Vietnamese|Hebrew|Arabic|Thai|Symbol)$/i,\"\")||\"sans-serif\",l=[`x=\"${It(r.x)}\"`,`y=\"${It(r.y)}\"`,`fill=\"${ce(n.state.textColor)}\"`,`font-size=\"${It(a)}\"`,`font-family=\"${ce(s)}\"`,`text-anchor=\"${y0(n.state.textAlign)}\"`,`dominant-baseline=\"${x0(n.state.textAlign)}\"`];n.state.font.weight&&n.state.font.weight>=600&&l.push('font-weight=\"700\"'),n.state.font.italic&&l.push('font-style=\"italic\"');let c=[n.state.font.underline?\"underline\":\"\",n.state.font.strike?\"line-through\":\"\"].filter(Boolean);c.length&&l.push(`text-decoration=\"${c.join(\" \")}\"`),n.state.font.escapement&&l.push(`transform=\"rotate(${It(n.state.font.escapement/10)}, ${It(r.x)}, ${It(r.y)})\"`),zr(n,`<text ${l.join(\" \")}>${ce(e)}</text>`,[r])}function oo(n,t){if(!n.nodes.length)return null;let e=n.contentBounds?wn(n.contentBounds):wn(n.viewBox),r=wn({left:Number.isFinite(n.viewBox.left)?n.viewBox.left:e.left,top:Number.isFinite(n.viewBox.top)?n.viewBox.top:e.top,right:Number.isFinite(n.viewBox.right)?n.viewBox.right:e.right,bottom:Number.isFinite(n.viewBox.bottom)?n.viewBox.bottom:e.bottom}),i=Math.max(1,Math.round(be(r))),o=Math.max(1,Math.round(ye(r))),a=`<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${i}\" height=\"${o}\" viewBox=\"${It(r.left)} ${It(r.top)} ${It(be(r))} ${It(ye(r))}\" preserveAspectRatio=\"xMinYMin meet\">\n${n.nodes.join(`\n`)}\n</svg>`,s=new TextEncoder().encode(a);return{mime:\"image/svg+xml\",bytes:s,dataUrl:vr(s,\"image/svg+xml\"),width:i,height:o,sourceMime:t,recordCount:n.recordCount}}function w0(n){let t=new Rt(n),e=0,r=null;if(t.u32(0)===c0&&n.length>=22&&(r=wn({left:t.i16(6),top:t.i16(8),right:t.i16(10),bottom:t.i16(12)}),e=22),e+u0>n.length)return null;let i=new Rt(n.subarray(e)),o=i.u16(2),a=i.u16(10),s=e+o*2;if(s>n.length)return null;let l=r||{left:0,top:0,right:1e3,bottom:1e3},c=eu(be(l),ye(l),l);c.objects=new Array(Math.max(0,a)).fill(null),r&&(c.state.windowOrg={x:r.left,y:r.top},c.state.windowExt={x:be(r),y:ye(r)},c.state.viewportOrg={x:r.left,y:r.top},c.state.viewportExt={x:be(r),y:ye(r)});let h=s;for(;h+6<=n.length;){let u=new Rt(n.subarray(h)),d=u.u32(0)*2;if(d<6||h+d>n.length)break;let p=u.u16(4);switch(c.recordCount+=1,p){case te.META_EOF:return h+=d,oo(c,\"image/wmf\");case te.META_SETWINDOWORG:c.state.windowOrg={x:u.i16(8),y:u.i16(6)};break;case te.META_SETWINDOWEXT:c.state.windowExt={x:u.i16(8),y:u.i16(6)};break;case te.META_SETVIEWPORTORG:c.state.viewportOrg={x:u.i16(8),y:u.i16(6)};break;case te.META_SETVIEWPORTEXT:c.state.viewportExt={x:u.i16(8),y:u.i16(6)};break;case te.META_OFFSETWINDOWORG:c.state.windowOrg={x:c.state.windowOrg.x+u.i16(8),y:c.state.windowOrg.y+u.i16(6)};break;case te.META_OFFSETVIEWPORTORG:c.state.viewportOrg={x:c.state.viewportOrg.x+u.i16(8),y:c.state.viewportOrg.y+u.i16(6)};break;case te.META_SETBKMODE:c.state.bkMode=u.u16(6);break;case te.META_SETPOLYFILLMODE:c.state.polygonFillMode=u.u16(6);break;case te.META_SETBKCOLOR:c.state.bkColor=Er(u.u32(6));break;case te.META_SETTEXTCOLOR:c.state.textColor=Er(u.u32(6));break;case te.META_MOVETO:c.state.currentPosition={x:u.i16(8),y:u.i16(6)};break;case te.META_LINETO:{let m={x:u.i16(8),y:u.i16(6)};iu(c,c.state.currentPosition,m);break}case te.META_POLYLINE:case te.META_POLYGON:{let m=u.u16(6),g=[],b=8;for(let T=0;T<m&&b+4<=d;T+=1)g.push({x:u.i16(b),y:u.i16(b+2)}),b+=4;Xn(c,g,p===te.META_POLYGON);break}case te.META_POLYPOLYGON:{let m=u.u16(6),g=[],b=8;for(let T=0;T<m&&b+2<=d;T+=1)g.push(u.u16(b)),b+=2;for(let T of g){let S=[];for(let I=0;I<T&&b+4<=d;I+=1)S.push({x:u.i16(b),y:u.i16(b+2)}),b+=4;Xn(c,S,!0)}break}case te.META_RECTANGLE:{no(c,{left:u.i16(12),top:u.i16(10),right:u.i16(8),bottom:u.i16(6)});break}case te.META_ELLIPSE:{ou(c,{left:u.i16(12),top:u.i16(10),right:u.i16(8),bottom:u.i16(6)});break}case te.META_ROUNDRECT:{no(c,{left:u.i16(16),top:u.i16(14),right:u.i16(12),bottom:u.i16(10)},{x:u.i16(8),y:u.i16(6)});break}case te.META_TEXTOUT:{let m=u.u16(6),g=8,b=m+m%2,T=io(u.slice(g,Math.min(m,Math.max(0,d-g-4)))),S=g+b,I=u.i16(S),O=u.i16(S+2);ro(c,{x:O,y:I},T);break}case te.META_CREATEPENINDIRECT:{let m=u.u16(6),g=u.i16(8),b=Er(u.u32(12)),T=Za(c.objects);nn(c.objects,T,{kind:\"pen\",value:Qa(m,g,b)});break}case te.META_CREATEBRUSHINDIRECT:{let m=u.u16(6),g=Er(u.u32(8)),b=Za(c.objects);nn(c.objects,b,{kind:\"brush\",value:tu(m,g)});break}case te.META_CREATEFONTINDIRECT:{let m=Math.abs(u.i16(6)),g=u.i16(10),b=u.u16(14),T=!!u.u8(16),S=!!u.u8(17),I=!!u.u8(18),O=io(u.slice(24,Math.max(0,d-24))).split(\"\\0\")[0]||\"sans-serif\",$=Za(c.objects);nn(c.objects,$,{kind:\"font\",value:{family:O,size:m||12,weight:b,italic:T,underline:S,strike:I,escapement:g}});break}case te.META_SELECTOBJECT:nu(c,u.u16(6));break;case te.META_DELETEOBJECT:{let m=u.u16(6);m>=0&&m<c.objects.length&&(c.objects[m]=null);break}default:break}h+=d}return oo(c,\"image/wmf\")}function Vn(n,t,e,r){let i=[];for(let o=0;o<e;o+=1){let a=t+o*r;r===8?i.push({x:n.i32(a),y:n.i32(a+4)}):i.push({x:n.i16(a),y:n.i16(a+2)})}return i}function Jc(n,t){if(!n.ensure(36,40))return null;let e={x:n.i32(36),y:n.i32(40)},r=n.u32(44),i=n.u32(48);if(!r||!i||i>=n.length)return null;let o=t?r*2:r,a=n.slice(i,o),s=t?su(a):io(a);return{point:e,text:s}}function v0(n){if(!n.ensure(8,24))return null;let t={x:n.i32(8),y:n.i32(12)},e=n.u32(16),r=n.u32(20),i=36;if(r&2&&(i+=16),!e||!n.ensure(i,e))return null;let o=io(n.slice(i,e));return{point:t,text:o}}function lu(n,t,e,r,i){let o=n.u32(t),a=n.u32(e),s=n.u32(r),l=n.u32(i);return!o||!a||!s||!l||!n.ensure(o,a)||!n.ensure(s,l)?null:f0(n.slice(o,a),n.slice(s,l))}function T0(n,t){if(!t.ensure(24,56))return;let e=lu(t,48,52,56,60);e&&au(n,{left:t.i32(24),top:t.i32(28),right:t.i32(24)+t.i32(72),bottom:t.i32(28)+t.i32(76)},e)}function S0(n,t){if(!t.ensure(24,76))return;let e=lu(t,84,88,92,96);e&&au(n,{left:t.i32(24),top:t.i32(28),right:t.i32(24)+t.i32(32),bottom:t.i32(28)+t.i32(36)},e)}function E0(n){n.pathData.length&&n.pathData.push(\"Z\")}function k0(n){let t=new Rt(n);if(!t.ensure(0,52)||t.u32(0)!==Ct.EMR_HEADER)return null;let e=wn({left:t.i32(8),top:t.i32(12),right:t.i32(16),bottom:t.i32(20)}),r=be(e)>0&&ye(e)>0?e:{left:0,top:0,right:1e3,bottom:1e3},i=eu(be(r),ye(r),r);i.state.windowOrg={x:r.left,y:r.top},i.state.windowExt={x:be(r),y:ye(r)},i.state.viewportOrg={x:r.left,y:r.top},i.state.viewportExt={x:be(r),y:ye(r)};let o=0;for(;o+8<=n.length;){let a=new Rt(n.subarray(o)),s=a.u32(0),l=a.u32(4);if(l<8||o+l>n.length)break;switch(i.recordCount+=1,s){case Ct.EMR_EOF:return o+=l,oo(i,\"image/emf\");case Ct.EMR_SETWINDOWORGEX:i.state.windowOrg={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETWINDOWEXTEX:i.state.windowExt={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETVIEWPORTORGEX:i.state.viewportOrg={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETVIEWPORTEXTEX:i.state.viewportExt={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_SETBKMODE:i.state.bkMode=a.u32(8);break;case Ct.EMR_SETPOLYFILLMODE:i.state.polygonFillMode=a.u32(8);break;case Ct.EMR_SETTEXTALIGN:i.state.textAlign=a.u32(8);break;case Ct.EMR_SETTEXTCOLOR:i.state.textColor=Er(a.u32(8));break;case Ct.EMR_SETBKCOLOR:i.state.bkColor=Er(a.u32(8));break;case Ct.EMR_SAVEDC:i.stateStack.push(Ka(i.state));break;case Ct.EMR_RESTOREDC:{let c=a.i32(8);if(c<0){let h=Math.min(i.stateStack.length,Math.abs(c));for(let f=0;f<h-1;f+=1)i.stateStack.pop();let u=i.stateStack.pop();u&&(i.state=Ka(u))}else if(c>0&&c<=i.stateStack.length){let h=i.stateStack[c-1];i.stateStack.length=c-1,h&&(i.state=Ka(h))}break}case Ct.EMR_SETWORLDTRANSFORM:i.state.worldTransform=qc(a,8);break;case Ct.EMR_MODIFYWORLDTRANSFORM:{let c=qc(a,8),h=a.u32(32);h===eo.MWT_IDENTITY?i.state.worldTransform={...Qc}:h===eo.MWT_SET?i.state.worldTransform=c:h===eo.MWT_LEFTMULTIPLY?i.state.worldTransform=Kc(c,i.state.worldTransform):h===eo.MWT_RIGHTMULTIPLY&&(i.state.worldTransform=Kc(i.state.worldTransform,c));break}case Ct.EMR_MOVETOEX:i.state.currentPosition={x:a.i32(8),y:a.i32(12)};break;case Ct.EMR_LINETO:{let c={x:a.i32(8),y:a.i32(12)};iu(i,i.state.currentPosition,c);break}case Ct.EMR_POLYLINE:case Ct.EMR_POLYGON:case Ct.EMR_POLYLINE16:case Ct.EMR_POLYGON16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYLINE16||s===Ct.EMR_POLYGON16?4:8,f=Vn(a,h,c,u);Xn(i,f,s===Ct.EMR_POLYGON||s===Ct.EMR_POLYGON16);break}case Ct.EMR_POLYBEZIER:case Ct.EMR_POLYBEZIER16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYBEZIER16?4:8,f=Vn(a,h,c,u);Zc(i,f,!1);break}case Ct.EMR_POLYBEZIERTO:case Ct.EMR_POLYBEZIERTO16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYBEZIERTO16?4:8,f=Vn(a,h,c,u);Zc(i,f,!0);break}case Ct.EMR_POLYLINETO:case Ct.EMR_POLYLINETO16:{let c=a.u32(24),h=28,u=s===Ct.EMR_POLYLINETO16?4:8,f=Vn(a,h,c,u);Xn(i,[{...i.state.currentPosition},...f],!1);break}case Ct.EMR_POLYPOLYLINE:case Ct.EMR_POLYPOLYGON:case Ct.EMR_POLYPOLYLINE16:case Ct.EMR_POLYPOLYGON16:{let c=a.u32(24),h=a.u32(28),u=32,f=s===Ct.EMR_POLYPOLYLINE16||s===Ct.EMR_POLYPOLYGON16?4:8,d=u+c*4,p=[];for(let b=0;b<c;b+=1)p.push(a.u32(u+b*4));let m=Vn(a,d,h,f),g=0;for(let b of p)Xn(i,m.slice(g,g+b),s===Ct.EMR_POLYPOLYGON||s===Ct.EMR_POLYPOLYGON16),g+=b;break}case Ct.EMR_RECTANGLE:no(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)});break;case Ct.EMR_ELLIPSE:ou(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)});break;case Ct.EMR_ROUNDRECT:no(i,{left:a.i32(8),top:a.i32(12),right:a.i32(16),bottom:a.i32(20)},{x:a.i32(24),y:a.i32(28)});break;case Ct.EMR_BEGINPATH:i.capturePath=!0,i.pathData=[],i.pathPoints=[];break;case Ct.EMR_ENDPATH:i.capturePath=!1;break;case Ct.EMR_CLOSEFIGURE:E0(i);break;case Ct.EMR_FILLPATH:Ja(i,g0(i));break;case Ct.EMR_STROKEANDFILLPATH:Ja(i,so(i));break;case Ct.EMR_STROKEPATH:Ja(i,ao(i,i.state.pen));break;case Ct.EMR_SELECTCLIPPATH:i.capturePath=!1,i.pathData=[],i.pathPoints=[];break;case Ct.EMR_CREATEPEN:{let c=a.u32(8),h=a.u32(12),u=a.i32(16),f=Er(a.u32(24));nn(i.objects,c,{kind:\"pen\",value:Qa(h,u,f)});break}case Ct.EMR_CREATEBRUSHINDIRECT:{let c=a.u32(8),h=a.u32(12),u=Er(a.u32(16));nn(i.objects,c,{kind:\"brush\",value:tu(h,u)});break}case Ct.EMR_EXTCREATEPEN:{let c=a.u32(8),h=a.u32(28),u=a.i32(32),f=a.u32(36),d=f===1?\"none\":Er(a.u32(40));nn(i.objects,c,{kind:\"pen\",value:f===1?{color:d,width:u,none:!0}:Qa(h,u,d)});break}case Ct.EMR_EXTCREATEFONTINDIRECTW:{let c=a.u32(8),h=Math.abs(a.i32(12)),u=a.i32(20),f=a.i32(28),d=!!a.u8(32),p=!!a.u8(33),m=!!a.u8(34),g=su(a.slice(40,64)).split(\"\\0\")[0]||\"sans-serif\";nn(i.objects,c,{kind:\"font\",value:{family:g,size:h||12,weight:f,italic:d,underline:p,strike:m,escapement:u}});break}case Ct.EMR_SELECTOBJECT:nu(i,a.u32(8));break;case Ct.EMR_DELETEOBJECT:{let c=a.u32(8);c>=0&&c<i.objects.length&&(i.objects[c]=null);break}case Ct.EMR_EXTTEXTOUTA:{let c=Jc(a,!1);c&&ro(i,c.point,c.text);break}case Ct.EMR_EXTTEXTOUTW:{let c=Jc(a,!0);c&&ro(i,c.point,c.text);break}case Ct.EMR_SMALLTEXTOUT:{let c=v0(a);c&&ro(i,c.point,c.text);break}case Ct.EMR_STRETCHDIBITS:T0(i,a);break;case Ct.EMR_BITBLT:case Ct.EMR_STRETCHBLT:case Ct.EMR_ALPHABLEND:S0(i,a);break;default:break}o+=l}return oo(i,\"image/emf\")}function cu(n,t){return t.length?/image\\/emf/i.test(n)?k0(t):/image\\/wmf/i.test(n)?w0(t):null:null}var A0=8*1024*1024,Kn=68;var C0=102,N0=15,R0=61447,uu=61466,hu=61467,P0=61468,du=61469,fu=61470,pu=61471,mu=61481,gu=61482;function Tu(n,t,e=0){if(e+t.length>n.length)return!1;for(let r=0;r<t.length;r+=1)if(n[e+r]!==t[r])return!1;return!0}function I0(n){for(let t=0;t<n.length;t+=1){let e=n[t]??0;if(!(e===0||e===9||e===10||e===13)&&(e<32||e===127))return!1}return!0}function Su(n){let t=n.length;for(;t>0&&n.charCodeAt(t-1)===0;)t-=1;return t===n.length?n:n.slice(0,t)}function O0(n){let t=n.trim();return t?/^(?:file|https?|data|blob):/i.test(t)||/^(?:\\\\\\\\|[a-zA-Z]:[\\\\/]|\\/)/.test(t)?!0:/\\.(?:png|apng|jpe?g|gif|bmp|dib|tiff?|emf|wmf|pict|svg)(?:$|[?#])/i.test(t):!1}function Eu(n){return/^file:/i.test(n)||/^(?:\\\\\\\\|[a-zA-Z]:[\\\\/]|\\/)/.test(n)}function L0(n){let t=n.toLowerCase();return t.includes(\".png\")?\"image/png\":t.includes(\".jpg\")||t.includes(\".jpeg\")?\"image/jpeg\":t.includes(\".gif\")?\"image/gif\":t.includes(\".bmp\")||t.includes(\".dib\")?\"image/bmp\":t.includes(\".tif\")?\"image/tiff\":t.includes(\".emf\")?\"image/emf\":t.includes(\".wmf\")?\"image/wmf\":t.includes(\".pict\")||t.includes(\".pct\")||t.includes(\".pic\")?\"image/pict\":t.includes(\".svg\")?\"image/svg+xml\":null}function Zn(n){return/^(?:image\\/png|image\\/jpeg|image\\/gif|image\\/bmp|image\\/webp|image\\/svg\\+xml|image\\/tiff)$/i.test(n)}function bu(n){let t=n.toLowerCase();return t.endsWith(\".doc\")?\"application/msword\":t.endsWith(\".docx\")?\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":t.endsWith(\".xls\")?\"application/vnd.ms-excel\":t.endsWith(\".xlsx\")?\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":t.endsWith(\".ppt\")?\"application/vnd.ms-powerpoint\":t.endsWith(\".pptx\")?\"application/vnd.openxmlformats-officedocument.presentationml.presentation\":t.endsWith(\".pdf\")?\"application/pdf\":t.endsWith(\".png\")?\"image/png\":t.endsWith(\".jpg\")||t.endsWith(\".jpeg\")?\"image/jpeg\":t.endsWith(\".gif\")?\"image/gif\":t.endsWith(\".bmp\")?\"image/bmp\":t.endsWith(\".zip\")?\"application/zip\":t.endsWith(\".txt\")?\"text/plain\":\"application/octet-stream\"}function _0(n){let t=[{mime:\"image/png\",magic:[137,80,78,71],end:M0},{mime:\"image/jpeg\",magic:[255,216,255],end:F0},{mime:\"image/gif\",magic:[71,73,70,56],end:D0},{mime:\"image/bmp\",magic:[66,77],end:B0},{mime:\"image/tiff\",magic:[73,73,42,0],end:null},{mime:\"image/tiff\",magic:[77,77,0,42],end:null},{mime:\"image/emf\",magic:[1,0,0,0],end:yu},{mime:\"image/wmf\",magic:[215,205,198,154],end:null}];for(let e=0;e<n.length-4;e+=1)for(let r of t)if(Tu(n,r.magic,e)){if(r.mime===\"image/emf\"&&yu(n,e)===n.length)continue;let i=r.end?r.end(n,e):n.length;return{mime:r.mime,start:e,end:i||n.length}}return null}function M0(n,t){for(let e=t+8;e+8<n.length;e+=1)if(Tu(n,[73,69,78,68],e))return e+8;return n.length}function F0(n,t){for(let e=t+2;e+1<n.length;e+=1)if(n[e]===255&&n[e+1]===217)return e+2;return n.length}function D0(n,t){for(let e=t+6;e<n.length;e+=1)if(n[e]===59)return e+1;return n.length}function B0(n,t){if(t+6<=n.length){let e=new Rt(n.subarray(t)).u32(2);if(e>0&&t+e<=n.length)return t+e}return n.length}function yu(n,t){if(t+52>n.length)return n.length;let e=new Rt(n.subarray(t)),r=e.u32(0),i=e.u32(40),o=e.u32(48);return r!==1||i!==1179469088?n.length:o>0&&t+o<=n.length?t+o:n.length}function $0(n){if(n.length<Kn)return null;let t=new Rt(n),e=t.i16(28),r=t.i16(30),i=t.u16(32),o=t.u16(34),a=e>0&&i>0?Math.max(15,Math.min(31680,Math.round(e*i/1e3))):void 0,s=r>0&&o>0?Math.max(15,Math.min(31680,Math.round(r*o/1e3))):void 0;return{lcb:t.i32(0),cbHeader:t.u16(4),mm:t.u16(6),xExt:t.i16(8),yExt:t.i16(10),dxaGoalTwips:e>0?e:void 0,dyaGoalTwips:r>0?r:void 0,scaleXPermille:i||void 0,scaleYPermille:o||void 0,displayWidthTwips:a,displayHeightTwips:s}}function W0(n,t){let e=Math.min(t.cbHeader||Kn,n.length);if(e>=n.length)return null;let r=n[e]??0;if(!r||e+1+r>n.length)return null;let i=n.subarray(e+1,e+1+r);if(!I0(i))return null;let o=Su(new TextDecoder(\"windows-1252\").decode(i));return!O0(o)&&t.mm!==C0?null:{value:o,nextOffset:e+1+r}}function ku(n,t){if(t<0||t+8>n.length)return null;let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u32(t+4);if(i<61440||i>65535)return null;let a=8+o;return o>n.length||t+a>n.length?null:{recVer:r&15,recInstance:r>>>4,recType:i,recLen:o,size:a}}function H0(n,t){let e=new Uint8Array(14),r=new DataView(e.buffer);return r.setUint8(0,66),r.setUint8(1,77),r.setUint32(2,t,!0),r.setUint16(6,0,!0),r.setUint16(8,0,!0),r.setUint32(10,n,!0),e}function U0(n){if(n.length<12)return null;let t=new Rt(n),e=t.u32(0);if(e<12||e>n.length)return null;let r=0,i=0,o=0,a=4;e===12?(r=t.u16(10),a=3):(r=t.u16(14),i=t.u32(16),o=t.u32(32));let l=(o||(r>0&&r<=8?1<<r:0))*a;i===3&&e>=40&&(l+=12);let c=14+e+l;if(c>14+n.length)return null;let h=H0(c,14+n.length),u=new Uint8Array(14+n.length);return u.set(h,0),u.set(n,14),u}function z0(n,t,e){let r=t+8,i=r+e.recLen;if(i>n.length||e.recLen<36)return null;let o=new Rt(n),a=o.u8(r),s=o.u8(r+1),l=o.u16(r+18),c=o.u32(r+20),h=o.u32(r+24),u=o.u32(r+28),f=o.u8(r+33),d=r+36,p=d+f;if(p+8>i)return null;let m=ku(n,p);if(!m)return null;let g=Au(n,p,m);if(!g)return null;let b=f>0&&d+f<=i?Su(new TextDecoder(\"utf-16le\").decode(n.subarray(d,d+Math.max(0,f-2)))):\"\";return{...g,meta:{...g.meta||{},fbseBlipType:a||s,fbseMime:Gc(a||s),fbseTag:l,fbseSize:c,fbseRefCount:h,fbseDelayOffset:u,fbseName:b}}}function Au(n,t,e){let r=t+8,o=((e.recInstance&1)===1?2:1)*16,a=n.subarray(r,r+e.recLen);if(e.recType===fu||e.recType===du||e.recType===gu||e.recType===pu||e.recType===mu){let s=o+1;if(a.length<s)return null;let l=\"application/octet-stream\",c=a.subarray(s);if(e.recType===fu)l=\"image/png\";else if(e.recType===du||e.recType===gu)l=\"image/jpeg\";else if(e.recType===mu)l=\"image/tiff\";else if(e.recType===pu){let h=U0(c);h?(c=h,l=\"image/bmp\"):l=\"image/dib\"}return{mime:l,bytes:c,displayable:Zn(l),kind:\"officeArt\",meta:{recType:e.recType,recInstance:e.recInstance}}}if(e.recType===uu||e.recType===hu||e.recType===P0){let s=o+34;if(a.length<s)return null;let l=new Rt(a),c=l.u32(o),h=l.u32(o+28),u=a[o+32]??255,f=a[o+33]??255,d=a.subarray(s),p=d,m=!1,g=u!==254;if(u===0){let T=Hc(d,c||void 0);T&&(p=T,m=!0,g=!1)}let b=e.recType===uu?\"image/emf\":e.recType===hu?\"image/wmf\":\"image/pict\";return{mime:b,bytes:p,displayable:Zn(b),kind:\"officeArt\",meta:{recType:e.recType,recInstance:e.recInstance,metafileUncompressedSize:c,metafileCompressedSize:h,metafileCompression:u,metafileFilter:f,metafileCompressed:g,metafileDecompressed:m,metafileOriginalByteLength:d.length,fbseSize:h}}}return null}function Cu(n,t,e,r){let i=t;for(;i+8<=e;){let o=ku(n,i);if(!o)break;let a=i+o.size;if(a>e)break;if(o.recVer===N0)Cu(n,i+8,a,r);else if(o.recType===R0){let s=z0(n,i,o);s&&r.push(s)}else{let s=Au(n,i,o);s&&r.push(s)}i=a}}function Y0(n,t){if(t<0||t+8>n.length)return[];let e=[];return Cu(n,t,n.length,e),e}function xu(n){switch(n.mime){case\"image/png\":return 100;case\"image/jpeg\":return 90;case\"image/gif\":return 80;case\"image/bmp\":return 70;case\"image/tiff\":return 60;case\"image/svg+xml\":return 50;case\"image/emf\":return 40;case\"image/wmf\":return 30;case\"image/pict\":return 20;default:return 0}}function G0(n){let t=null;for(let e of n)(!t||xu(e)>xu(t))&&(t=e);return t}function wu(n){if(!/^(?:image\\/emf|image\\/wmf)$/i.test(n.mime)||!n.bytes.length||n.meta?.metafileCompressed)return n;let t=cu(n.mime,n.bytes);return t?{...n,mime:t.mime,bytes:t.bytes,displayable:!0,meta:{...n.meta||{},vectorConverted:!0,vectorSourceMime:t.sourceMime,vectorWidth:t.width,vectorHeight:t.height,vectorRecordCount:t.recordCount}}:n}function vu(n,t,e,r,i){let o=n.sourceUrl,a=o?Eu(o):!1,s={pictureOffset:t,lcb:e.lcb,cbHeader:e.cbHeader,mm:e.mm,xExt:e.xExt,yExt:e.yExt,dxaGoalTwips:e.dxaGoalTwips,dyaGoalTwips:e.dyaGoalTwips,scaleXPermille:e.scaleXPermille,scaleYPermille:e.scaleYPermille,displayWidthTwips:e.displayWidthTwips,displayHeightTwips:e.displayHeightTwips,linkedPath:r,sourceKind:n.kind===\"officeArt\"?\"embedded\":n.kind,localExternal:a,browserRenderable:n.displayable,blipIndex:i?.blipIndex,sourceShapeId:i?.shapeId,...n.meta||{}};return{id:Ve(\"asset-img\"),type:\"image\",mime:n.mime,bytes:n.bytes,dataUrl:o?\"\":vr(n.bytes,n.mime),sourceUrl:o,displayable:n.displayable&&!a,meta:s}}function Nu(n,t,e={}){if(!n||t==null||t<0||t+Kn>n.length)return null;let i=new Rt(n).i32(t),o=i>0&&t+i<=n.length?i:Math.min(n.length-t,e.maxPictureBytes||A0),a=n.subarray(t,t+o),s=$0(a);if(!s)return null;let l=Math.min(s.cbHeader||Kn,a.length),c=W0(a,s),h=c?.value;c&&(l=c.nextOffset);let u=Xc(a,l),f=Y0(a,l),d=G0(f);if(d)return vu(wu(d),t,s,h,u);if(h){let I=L0(h)||\"application/octet-stream\",O=Eu(h),$={mime:I,bytes:new Uint8Array(0),sourceUrl:h,displayable:Zn(I)&&!O,kind:\"linked\",meta:{linkedPath:h}};return vu($,t,s,h,u)}let p=Math.min(s.cbHeader||Kn,a.length),m=_0(a.subarray(p));if(!m)return{id:Ve(\"asset-img\"),type:\"image\",mime:\"application/octet-stream\",bytes:a,dataUrl:vr(a,\"application/octet-stream\"),displayable:!1,meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:!1,blipIndex:u?.blipIndex,sourceShapeId:u?.shapeId}};let g=p+m.start,b=Math.min(p+m.end,a.length),T=a.subarray(g,b),S=wu({mime:m.mime,bytes:T,displayable:Zn(m.mime),kind:\"fallback\",meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:Zn(m.mime)}});return{id:Ve(\"asset-img\"),type:\"image\",mime:S.mime,bytes:S.bytes,dataUrl:vr(S.bytes,S.mime),displayable:S.displayable,meta:{pictureOffset:t,lcb:s.lcb,cbHeader:s.cbHeader,mm:s.mm,xExt:s.xExt,yExt:s.yExt,dxaGoalTwips:s.dxaGoalTwips,dyaGoalTwips:s.dyaGoalTwips,scaleXPermille:s.scaleXPermille,scaleYPermille:s.scaleYPermille,displayWidthTwips:s.displayWidthTwips,displayHeightTwips:s.displayHeightTwips,sourceKind:\"fallback\",browserRenderable:!!S.displayable,blipIndex:u?.blipIndex,sourceShapeId:u?.shapeId,...S.meta||{}}}}function ns(n,t){let e=t;for(;e<n.length&&n[e]!==0;)e+=1;return{value:new TextDecoder(\"windows-1252\").decode(n.subarray(t,e)),nextOffset:e+1}}function j0(n){let t=new Rt(n),e=[4,6];for(let r of e)try{let i=r,o=ns(n,i);i=o.nextOffset;let a=ns(n,i);i=a.nextOffset;let s=ns(n,i);if(i=s.nextOffset,i+4>n.length)continue;let l=t.u32(i);if(i+=4,l>0&&i+l<=n.length){let c=n.subarray(i,i+l);return{label:o.value,originalPath:a.value,tempPath:s.value,dataSize:l,bytes:c}}}catch{}return null}function V0(n,t){let e=n.listChildren(t).filter(l=>l.objectType===2||l.objectType===5),r=new Map(e.map(l=>[l.name.toLowerCase(),l])),i=r.get(\"\u0003objinfo\")||r.get(\"\u0003objinfo\")||r.get(\"\u0003objinfo\"),o=r.get(\"\u0001ole10native\")||r.get(\"\u0001ole10native\")||r.get(\"\u0001ole10native\"),a=r.get(\"package\")||r.get(\"contents\")||r.get(\"content\"),s={entry:t,streams:e,displayName:t.name,attachment:null,objectData:null};if(o){let l=n.getStream(o)||new Uint8Array(0),c=j0(l);if(c){let h=c.label||c.originalPath.split(/[\\\\/]/).pop()||`${t.name}.bin`,u=bu(h),f={...c,sourceKind:\"ole10-native\"},d={id:Ve(\"asset-ole\"),type:\"attachment\",name:h,mime:u,bytes:c.bytes,dataUrl:vr(c.bytes,u),meta:f};return s.attachment=d,s}}if(a){let l=n.getStream(a)||new Uint8Array(0),c=`${Vi(t.name)}.bin`,h=bu(c),u={id:Ve(\"asset-pkg\"),type:\"attachment\",name:c,mime:h,bytes:l,dataUrl:vr(l,h),meta:{stream:a.name,sourceKind:\"package\"}};s.attachment=u}return i&&(s.objectData=n.getStream(i)||new Uint8Array(0)),s}function Ru(n){let t=n.getEntry(\"/ObjectPool\");if(!t)return new Map;let e=n.listChildren(t).filter(i=>i.objectType===1),r=new Map;for(let i of e)r.set(i.name,V0(n,i));return r}var X0=new Set([\"insertCells\",\"deleteCells\",\"columnWidth\",\"merge\",\"split\",\"textFlow\",\"vertMerge\",\"vertAlign\",\"setShading\",\"defaultShading\",\"setBorder\",\"cellPadding\",\"cellSpacing\",\"cellWidth\",\"fitText\",\"cellNoWrap\"]);function on(...n){let t=new Map,e=0;for(let r of n)for(let i of r||[]){let o=i.kind===\"table\"&&X0.has(i.name);t.set(o?`${i.kind}:${i.name}:${e++}`:`${i.kind}:${i.name}`,i)}return Array.from(t.values())}function Iu(n){let t={para:[],char:[],table:[]};for(let e of n||[])e.kind===\"para\"?t.para.push(e):e.kind===\"char\"?t.char.push(e):e.kind===\"table\"&&t.table.push(e);return t}function q0(n,t){let e=new Rt(n),r=e.u16(t),i=t+2,o=r*2,a=e.utf16le(i,o),s=i+o+2;return{value:a.replace(/\\u0000+$/,\"\"),nextOffset:s}}function K0(n,t){let e=new Rt(n),r=e.u16(t),i=e.u16(t+2),o=e.u16(t+4);return{sti:r&4095,flags1:r>>12,stk:i&15,istdBase:i>>4&4095,cupx:o&15,istdNext:o>>4&4095,bchUpe:e.u16(t+6),grfstd:e.u16(t+8)}}function Pu(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=0,l=[];return a.length>=2&&(s=a[0]|(a[1]??0)<<8,l=Ur(a,2,a.length)),{cbUpx:r,styleId:s,properties:l,nextOffset:bn(o)}}function is(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=Ur(a,0,a.length);return{cbUpx:r,properties:s,nextOffset:bn(o)}}function Z0(n,t){let r=new Rt(n).u16(t),i=t+2,o=i+r,a=n.subarray(i,Math.min(o,n.length)),s=Ur(a,0,a.length);return{cbUpx:r,properties:s,nextOffset:bn(o)}}function J0(n,t,e){if(!n.length)return{istd:e,empty:!0,name:\"\",stdfBase:{istdBase:4095,istdNext:0,stk:1,cupx:0},paraProps:[],charProps:[],tableProps:[]};let r=Math.max(10,Math.min(t||10,n.length)),i=K0(n,0),o=r,a=q0(n,o);o=a.nextOffset;let s=[],l=[],c=[];try{if(i.stk===1){if(i.cupx>=1&&o+2<=n.length){let h=Pu(n,o);s=h.properties,o=h.nextOffset}i.cupx>=2&&o+2<=n.length&&(l=is(n,o).properties)}else if(i.stk===2)o+2<=n.length&&(l=is(n,o).properties);else if(i.stk===3){if(i.cupx>=1&&o+2<=n.length){let h=Z0(n,o);c=h.properties,o=h.nextOffset}if(i.cupx>=2&&o+2<=n.length){let h=Pu(n,o);s=h.properties,o=h.nextOffset}i.cupx>=3&&o+2<=n.length&&(l=is(n,o).properties)}}catch{}return{istd:e,name:a.value,stdfBase:i,paraProps:s,charProps:l,tableProps:c,empty:!1}}function Ou(n,t){let e=t.fcStshf,r=t.lcbStshf;if(e==null||r==null||r<=0)return{styles:new Map,header:null,resolveStyle(b){return os(new Map,b)}};let i=n.subarray(e,e+r),o=new Rt(i),a=o.u16(0),s=2,l=o.u16(s+0),c=o.u16(s+2),h=b=>a>=b+2&&i.length>=s+b+2?o.i16(s+b):-1,u=h(12),f=h(14),d=h(16),p={cbStshi:a,cstd:l,cbSTDBaseInFile:c,ftcAsci:u,ftcFE:f,ftcOther:d},m=2+a,g=new Map;for(let b=0;b<l&&m+2<=i.length;b+=1){let T=o.u16(m),S=m+2,I=S+T;if(T===0){g.set(b,{istd:b,empty:!0,name:\"\",stdfBase:{istdBase:4095,istdNext:0,stk:1,cupx:0},paraProps:[],charProps:[],tableProps:[]}),m=bn(I);continue}let O=i.subarray(S,Math.min(I,i.length)),$=J0(O,c,b);g.set(b,$),m=bn(I)}return{header:p,styles:g,resolveStyle(b){return os(g,b)}}}function os(n,t,e=new Set){if(t==null||t===4095||e.has(t))return{paraProps:[],charProps:[],tableProps:[],styleIds:[]};let r=n.get(t);if(!r||r.empty)return{paraProps:[],charProps:[],tableProps:[],styleIds:[]};e.add(t);let i=os(n,r.stdfBase?.istdBase,e);return{styleIds:[...i.styleIds,t],paraProps:on(i.paraProps,r.paraProps),charProps:on(i.charProps,r.charProps),tableProps:on(i.tableProps,r.tableProps)}}function Q0(n,t,e,r){let i=r?.index||0;for(;i<n.length&&n[i].cpEnd<=t;)i+=1;r&&(r.index=i);let o=[],a=i;for(;a<n.length&&n[a].cpStart<e;)n[a].cpEnd>t&&o.push(n[a]),a+=1;return o}function tb(n){return String(n||\"\").trim()}function Lu(n){let t=String(n||\"\").replace(/[\\r\\n\\t]+/g,\" \").replace(/\\s+/g,\" \").trim();if(!t)return null;let e=t.toUpperCase();if(e.startsWith(\"HYPERLINK\")){let r=t.slice(9).trim(),o=r.match(/\"([^\"]+)\"/)?.[1]||r.split(/\\s+/)[0]||\"\";return o?{type:\"hyperlink\",href:o}:null}if(e.startsWith(\"INCLUDEPICTURE\")){let r=t.slice(14).trim();return{type:\"includePicture\",target:r.match(/\"([^\"]+)\"/)?.[1]||r.split(/\\s+/)[0]||\"\"}}return e.startsWith(\"EMBED\")?{type:\"embed\",raw:t}:e.startsWith(\"LINK\")?{type:\"link\",raw:t}:{type:\"unknown\",raw:t}}function eb(n,t){if(!t.text)return;let e=n[n.length-1];if(e&&e.type===\"text\"&&e.href===t.href&&Ha(e.style,t.style)){e.text+=t.text;return}n.push(t)}function an(n,t,e){if(!e)return;let r=n.length?n[n.length-1].nodes:t;e.type===\"text\"?eb(r,e):r.push(e)}function rb(n,t){let e=[`_${t}`,`_${String(t)}`,`_${t.toString(16)}`,`_${t.toString(16).toUpperCase()}`];for(let r of e)if(n.has(r))return n.get(r)||null;return null}function nb(n,t,e,r,i,o={}){return function(s){let l=s?.pictureOffset;if(l==null)return null;if(i.has(l))return i.get(l)||null;let c=null,h=rb(t,l);if((s.ole2||s.object||s.data)&&h?.attachment&&(c=h.attachment,r.add(h.entry.name)),!c&&n?.length){let u=Nu(n,l,o);u&&u.mime!==\"application/octet-stream\"?c=u:!c&&h?.attachment?(c=h.attachment,r.add(h.entry.name)):u&&(c=u)}return!c&&h?.attachment&&(c=h.attachment,r.add(h.entry.name)),c&&e.push(c),i.set(l,c),c}}function ib(n){switch(n){case ge.nonBreakingHyphen:return\"-\";case ge.nonRequiredHyphen:case ge.annotationRef:case ge.textBoxPlaceholder:return\"\";default:return n}}function _u(n){return n.replaceAll(ge.textBoxPlaceholder,\"\")}function ob(n,t){let e=[[\"main\",n.fibRgLw.ccpText],[\"footnote\",n.fibRgLw.ccpFtn],[\"header\",n.fibRgLw.ccpHdd],[\"macro\",n.fibRgLw.ccpMcr],[\"annotation\",n.fibRgLw.ccpAtn],[\"endnote\",n.fibRgLw.ccpEdn],[\"textbox\",n.fibRgLw.ccpTxbx],[\"header-textbox\",n.fibRgLw.ccpHdrTxbx]];if(!e.some(([,a])=>a>0))return[{kind:\"main\",cpStart:0,cpEnd:t}];let i=[],o=0;for(let[a,s]of e){let l=Math.max(0,s||0),c=Math.min(o,t);o+=l;let h=Math.min(o,t);i.push({kind:a,cpStart:c,cpEnd:h})}return i}function ab(n,t,e){if(n.cpEnd<=n.cpStart)return[];let r=e.filter(i=>i.cpStart<n.cpEnd&&i.cpEnd>n.cpStart);return r.length?r.map(i=>{let o=Math.max(n.cpStart,i.cpStart),a=Math.min(n.cpEnd,i.cpEnd);return{cpStart:o,cpEnd:a,terminator:t[a-1]||\"\",styleId:i.styleId,properties:i.properties,storyKind:n.kind}}).filter(i=>i.cpEnd>i.cpStart):pc(t.slice(n.cpStart,n.cpEnd)).map(i=>({...i,cpStart:i.cpStart+n.cpStart,cpEnd:i.cpEnd+n.cpStart,styleId:0,properties:[],storyKind:n.kind}))}function sb(n,t){let e=[],r=[];for(let i of n)if(!(!i.text||i.state.hidden))for(let o of i.text){let a=ib(o);if(a===ge.fieldStart){r.push({instruction:\"\",parsed:null,readingInstruction:!0,nodes:[]});continue}if(a===ge.fieldSeparator){let l=r[r.length-1];l&&(l.parsed=Lu(l.instruction),l.readingInstruction=!1);continue}if(a===ge.fieldEnd){let l=r.pop();if(!l)continue;let c=l.nodes;if(l.readingInstruction&&(l.parsed=Lu(l.instruction)),l.parsed?.type===\"hyperlink\"){let h=l.parsed.href;c=c.map(u=>u.type===\"lineBreak\"||u.type===\"pageBreak\"?u:{...u,href:h})}for(let h of c)an(r,e,h);continue}let s=r[r.length-1];if(s?.readingInstruction){s.instruction+=a;continue}if(a===ge.hardLineBreak){an(r,e,{type:\"lineBreak\",style:i.state});continue}if(a===ge.pageBreak){an(r,e,{type:\"pageBreak\",style:i.state});continue}if(a===ge.picture){let l=t(i.state);l?.type===\"image\"?an(r,e,{type:\"image\",asset:l,style:i.state}):l?.type===\"attachment\"&&an(r,e,{type:\"attachment\",asset:l,style:i.state});continue}an(r,e,{type:\"text\",text:ic(a),style:i.state})}for(;r.length;){let i=r.pop();for(let o of i.nodes)an(r,e,o)}return e}function Mu(n,t,e){for(let[r,i,o]of[[\"fontFamilyId\",\"fontFamily\",e?.ftcAsci],[\"fontFamilyEastAsiaId\",\"fontFamilyEastAsia\",e?.ftcFE],[\"fontFamilyOtherId\",\"fontFamilyOther\",e?.ftcOther],[\"fontFamilyBiId\",\"fontFamilyBi\",void 0]]){let a=n[r]??o,s=t(a);s&&(n[r]=a,n[i]=s.name||s.altName||void 0)}}function Fu(n,t,e,r,i,o,a,s=!1){let l=Q0(e,n.cpStart,n.cpEnd,a),c=new Set([n.cpStart,n.cpEnd]);for(let f of l)c.add(Math.max(n.cpStart,f.cpStart)),c.add(Math.min(n.cpEnd,f.cpEnd));let h=Array.from(c).sort((f,d)=>f-d),u=[];for(let f=0;f<h.length-1;f+=1){let d=h[f],p=h[f+1];if(p<=d)continue;let g=l.find(U=>U.cpStart<=d&&U.cpEnd>=p)?.properties||[],b=xn(g),T=b.charStyleId!=null?r.resolveStyle(b.charStyleId).charProps:[],S=on(i,T,g),I=xn(S);s&&I.colorIndex===8&&(I.colorIndex=1),Mu(I,o,r.header);let O=d-n.cpStart,$=p-n.cpStart,k=t.slice(O,$);if(!k)continue;let W=u[u.length-1];if(W&&Ha(W.state,I)){W.text+=k,W.cpEnd=p;continue}u.push({cpStart:d,cpEnd:p,text:k,state:I})}if(!u.length&&t){let f=xn(i);s&&f.colorIndex===8&&(f.colorIndex=1),Mu(f,o,r.header),u.push({cpStart:n.cpStart,cpEnd:n.cpEnd,text:t,state:f})}return u}function lb(n,t,e,r,i,o,a){let s=Iu(n.properties||[]),l=n.styleId||s.para.find(O=>O.name===\"styleId\")?.value||0,c=e.resolveStyle(l),h=on(c.paraProps,s.para),u=Ji(h),f=Ya(s.table),d=f.styleId!=null?e.resolveStyle(f.styleId).tableProps:[],p=on(d,s.table),m=Ya(p),g=c.charProps,b=O=>r.byIndex(O),T=Fu(n,t,i,e,g,b,a,n.storyKind===\"textbox\"||n.storyKind===\"header-textbox\"),S=sb(T,o),I=n.terminator===ge.paragraph?Fu({...n,cpStart:n.cpEnd-1},n.terminator,i,e,g,b,{index:a.index})[0]?.state:void 0;return{id:Ve(\"para\"),cpStart:n.cpStart,cpEnd:n.cpEnd,terminator:n.terminator||\"\",paragraphMark:I&&{revisionDeleted:I.revisionDeleted,revisionInserted:I.revisionInserted},storyKind:n.storyKind,text:t,rawProperties:n.properties||[],styleId:l,styleName:tb(e.styles.get(l)?.name),paraProps:h,paraState:u,tableProps:p,tableState:m,segments:T,inlines:S}}function cb(n){for(let e of n){e.cells.forEach((r,i)=>{r.colIndex=i,r.colspan=1,r.rowspan=1,r.hidden=!1});for(let r=0;r<e.cells.length;r+=1){let i=e.cells[r],o=i.meta?.merge||0;if(o!==1&&o>1){let a=r+1;for(;a<e.cells.length&&(e.cells[a].meta?.merge||0)===1;)e.cells[a].hidden=!0,i.colspan=(i.colspan||1)+1,a+=1;let s=e.cells[a-1];if(i.meta&&s?.meta&&s!==i){i.meta.rightBoundary=s.meta.rightBoundary,i.meta.leftBoundary!=null&&i.meta.rightBoundary!=null&&(i.meta.width=Math.max(0,i.meta.rightBoundary-i.meta.leftBoundary));let l=s.meta.borders?.right;l&&(i.meta.borders={...i.meta.borders||{},right:l})}}}}for(let e=0;e<n.length;e+=1){let r=n[e];for(let i of r.cells){if(i.hidden)continue;let o=i.meta?.vertMerge||0;if(o!==1&&o>1){let a=e+1;for(;a<n.length;){let c=!0;for(let h=i.colIndex||0;h<(i.colIndex||0)+(i.colspan||1);h+=1){let u=n[a].cells[h];if(!u||(u.meta?.vertMerge||0)!==1){c=!1;break}}if(!c)break;for(let h=i.colIndex||0;h<(i.colIndex||0)+(i.colspan||1);h+=1)n[a].cells[h].hidden=!0;i.rowspan=(i.rowspan||1)+1,a+=1}let s=n[a-1]?.cells[i.colIndex||0],l=s?.meta?.borders?.bottom;i.meta&&s?.meta&&s!==i&&l&&(i.meta.borders={...i.meta.borders||{},bottom:l})}}}let t=Array.from(new Set(n.flatMap(e=>e.cells.flatMap(r=>{let i=r.meta?.leftBoundary,o=r.meta?.rightBoundary;return[i,o].filter(a=>a!=null)})))).sort((e,r)=>e-r);if(t.length>1)for(let e of n)for(let r of e.cells){if(!r.meta)continue;let i=t.indexOf(r.meta.leftBoundary??Number.NaN),o=t.indexOf(r.meta.rightBoundary??Number.NaN);i>=0&&(r.colIndex=i),!r.hidden&&i>=0&&o>i&&(r.colspan=o-i)}}function ub(n){let t=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)&&(()=>{let i=e[r];return!!(i?.nil||i?.borderType)})();n.forEach((e,r)=>{e.cells.forEach(i=>{if(i.hidden||!i.meta)return;let o={...i.meta.borders||{}},a=e.state.borders||{},s=i.colIndex||0,l=s+(i.colspan||1),c=r+(i.rowspan||1),h=(u,f)=>{!t(o,u)&&f&&(o[u]=f)};h(\"top\",r===0?a.top:a.horizontalInside),h(\"bottom\",c>=n.length?a.bottom:a.horizontalInside),h(\"left\",s===0?a.left:a.verticalInside),h(\"right\",l>=e.cells.length?a.right:a.verticalInside),i.meta.borders=o})})}function as(n){return{type:\"paragraph\",id:n.id,styleId:n.styleId,styleName:n.styleName,paraState:n.paraState,inlines:n.inlines,text:n.text,paragraphMark:n.paragraphMark,storyKind:n.storyKind}}function Du(n){let t=Qi(n.tableState);if(!t.length)return\"\";let e=n.tableState,r=i=>{let o=e.borders?.[i];return`${o?.borderType??\"\"}:${o?.lineWidth??\"\"}:${o?.nil?1:0}`};return[t[0]?.leftBoundary??\"\",t[t.length-1]?.rightBoundary??\"\",e.alignment??\"\",e.leftIndent??\"\",e.gapHalf??\"\",e.rtl?1:0,r(\"top\"),r(\"left\"),r(\"bottom\"),r(\"right\"),r(\"horizontalInside\"),r(\"verticalInside\")].join(\"|\")}function hb(n,t){n.paraState.inTable=!0,n.paraState.itap=Math.max(t.paraState.itap||1,n.paraState.itap||0),n.tableState=t.tableState,n.tableProps=t.tableProps}function db(n){for(let t=0;t<n.length;t+=1){let e=n[t],r=Qi(e.tableState).length;if(!e.paraState.tableRowEnd||!r)continue;e.paraState.inTable=!0,e.paraState.itap=Math.max(1,e.paraState.itap||0);let i=r,o=t-1,a=[];for(;o>=0&&i>0;o-=1){let c=n[o];if(c.paraState.tableRowEnd||c.paraState.innerTableRowEnd)break;a.push(c),c.terminator===ge.cellMark&&(i-=1)}if(i>0)continue;let s=o;for(;s>=0&&!n[s].paraState.tableRowEnd&&!n[s].paraState.innerTableRowEnd&&n[s].terminator!==ge.cellMark;)s-=1;let l=n[s];if(l?.paraState.tableRowEnd&&Du(l)===Du(e))for(let c=s+1;c<t;c+=1){let h=n[c];a.includes(h)||a.push(h)}a.forEach(c=>hb(c,e))}}function fb(n){let t=[],e=[],r=a=>{a.cells.push({id:Ve(\"cell\"),paragraphs:a.content.filter(s=>s.type===\"paragraph\"),blocks:a.content,meta:null}),a.content=[]},i=(a,s=a.lastState)=>{a.content.length&&r(a);let l=Qi(s);for(;a.cells.length<l.length;)r(a);a.cells.length||r(a),a.cells.forEach((c,h)=>{c.meta=l[h]||{index:h}}),a.table.rows.push({id:Ve(\"row\"),cells:a.cells,state:s,gridWidthTwips:l.length?(l[l.length-1].rightBoundary||0)-(l[0].leftBoundary||0):0}),a.cells=[]},o=()=>{let a=e.pop();(a.content.length||a.cells.length)&&i(a);let s=a.table;cb(s.rows),ub(s.rows),s.state=s.rows[0]?.state||a.lastState,s.gridWidthTwips=s.rows.find(c=>c.gridWidthTwips)?.gridWidthTwips||0;let l=e[e.length-1];l?l.content.push(s):t.push(s)};for(let a of n){let s=Nc(a.paraState);if(e.length&&e[0].storyKind!==a.storyKind)for(;e.length;)o();for(;e.length&&e[e.length-1].table.depth>s;)o();if(s<=0){t.push(as(a));continue}let l=e[e.length-1];if((!l||l.table.depth<s)&&(l={table:{type:\"table\",id:Ve(\"table\"),depth:s,rows:[],state:a.tableState,gridWidthTwips:0},cells:[],content:[],lastState:a.tableState,storyKind:a.storyKind},e.push(l)),l.lastState=a.tableState,s>1?a.paraState.innerTableRowEnd:a.paraState.tableRowEnd){(a.text||a.inlines.length)&&l.content.push(as(a)),i(l,a.tableState);continue}l.content.push(as(a)),(s>1?a.paraState.innerTableCell:a.terminator===ge.cellMark)&&r(l)}for(;e.length;)o();return t}function Bu(n,t={}){let e=[],r=uc(n,t);e.push(...r.warnings||[]);let i=r.getStream(\"/WordDocument\");if(!i)throw new Error(\"Missing WordDocument stream\");let o=Dc(i);if(o)return o.warnings.unshift(...r.warnings||[]),o;let a=yc(i);if(a.base.wIdent!==42476&&rn(e,`Unexpected FIB identifier: 0x${a.base.wIdent.toString(16)}`),a.base.fEncrypted)throw new Error(\"Encrypted .doc files are not supported yet\");let s=r.getStream(a.base.fWhichTblStm?\"/1Table\":\"/0Table\");if(!s)throw new Error(\"Missing table stream\");let l=r.getStream(\"/Data\")||new Uint8Array(0),c=hc(s,a.fibRgFcLcb),h=dc(i,c),u=h.join(\"\"),f=ob(a,u.length),d=f.find(nt=>nt.kind===\"main\")||{kind:\"main\",cpStart:0,cpEnd:u.length},p=f.filter(nt=>(nt.kind===\"textbox\"||nt.kind===\"header-textbox\")&&_u(u.slice(nt.cpStart,nt.cpEnd)).replace(/[\\r\\u0007]/g,\"\").trim().length>0),m=Ou(s,a.fibRgFcLcb),g=Cc(s,a.fibRgFcLcb),b=Math.max(d.cpEnd,...p.map(nt=>nt.cpEnd)),T=kc(i,s,a,c).filter(nt=>nt.cpStart<b).map(nt=>({...nt,cpEnd:Math.min(nt.cpEnd,b)})),S=Ac(i,s,a,c,l).filter(nt=>nt.cpStart<b).map(nt=>({...nt,cpEnd:Math.min(nt.cpEnd,b)})),I=[d,...p].flatMap(nt=>ab(nt,u,S));p.length&&rn(e,\"Recovered text from a legacy Word text-box story; text-box positioning is unavailable, so the content was linearized after the main story.\",{code:\"MSDOC_TEXTBOX_STORY_LINEARIZED\",storyCount:p.length});let O=Ru(r),$=[],k=new Set,U=nb(l,O,$,k,new Map,t),v={index:0},_=I.flatMap(nt=>{let J=fc(i,c,h,nt.cpStart,nt.cpEnd),lt=nt.terminator===ge.paragraph||nt.terminator===ge.cellMark?nt.terminator:\"\",ot=lt&&J.endsWith(lt)?J.slice(0,-1):J,et=_u(ot),B=nt.storyKind===\"textbox\"||nt.storyKind===\"header-textbox\";return(ot.includes(ge.textBoxPlaceholder)||B)&&!et.trim()?[]:[lb({...nt,terminator:lt},et,m,g,T,U,v)]});db(_);let y=fb(_),H=Array.from(O.values()).filter(nt=>nt?.attachment&&!k.has(nt.entry.name)).map(nt=>nt.attachment);for(let nt of H)$.push(nt);return H.length&&y.push({type:\"attachments\",id:Ve(\"attachments\"),items:H}),{kind:\"msdoc\",version:1,warnings:e,meta:{fib:{wIdent:a.base.wIdent,nFib:a.base.nFib,fWhichTblStm:a.base.fWhichTblStm,fComplex:a.base.fComplex,fEncrypted:a.base.fEncrypted,ccpText:a.fibRgLw.ccpText},counts:{paragraphs:_.length,blocks:y.length,assets:$.length,styles:m.styles.size,fonts:g.fonts.length}},fonts:g.fonts,styles:Array.from(m.styles.values()).map(nt=>({istd:nt.istd,name:nt.name,type:nt.stdfBase?.stk,basedOn:nt.stdfBase?.istdBase,next:nt.stdfBase?.istdNext})),blocks:y,assets:$}}var pb=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}\\p{Script=Bopomofo}\\u3000-\\u303f\\uff00-\\uffef]/u,mb=/[\\p{Mark}\\u200c\\u200d]/u;function gb(n){switch(n.toLowerCase().replace(/[ _-]/g,\"\")){case\"\\u5B8B\\u4F53\":case\"\\u65B0\\u5B8B\\u4F53\":case\"simsun\":case\"nsimsun\":return[\"SimSun\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u4EFF\\u5B8B\":case\"\\u4EFF\\u5B8Bgb2312\":case\"fangsong\":case\"fangsonggb2312\":return[\"FangSong\",\"STFangsong\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u6977\\u4F53\":case\"\\u6977\\u4F53gb2312\":case\"kaiti\":case\"kaitigb2312\":return[\"KaiTi\",\"STKaiti\",\"Kaiti SC\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];case\"\\u9ED1\\u4F53\":case\"simhei\":return[\"SimHei\",\"Heiti SC\",\"Noto Sans CJK SC\",\"sans-serif\"];case\"\\u5FAE\\u8F6F\\u96C5\\u9ED1\":case\"microsoftyahei\":return[\"Microsoft YaHei\",\"PingFang SC\",\"Noto Sans CJK SC\",\"sans-serif\"]}let t=n.normalize(\"NFKC\").toLowerCase();if(/fangsong|仿宋/.test(t))return[\"STFangsong\",\"Songti SC\",\"Noto Serif CJK SC\",\"serif\"];if(/simsun|nsimsun|宋体|宋體|songti/.test(t))return[\"Songti SC\",\"Songti TC\",\"Noto Serif CJK SC\",\"serif\"];if(/kaiti|楷体|楷體/.test(t))return[\"Kaiti SC\",\"STKaiti\",\"Noto Serif CJK SC\",\"serif\"];if(/mingliu|細明體|新細明體/.test(t))return[\"Songti TC\",\"Noto Serif CJK TC\",\"serif\"];if(/mincho|明朝/.test(t))return[\"Hiragino Mincho ProN\",\"Yu Mincho\",\"Noto Serif CJK JP\",\"serif\"];if(/simhei|黑体|黑體|heiti|dengxian|等线|等線|yahei/.test(t))return[\"PingFang SC\",\"Microsoft YaHei\",\"Noto Sans CJK SC\",\"sans-serif\"]}function $u(n,t){let e=t?.altName&&t.altName!==n?[t.altName]:[],r=gb(n);if(r)return[...e,...r];let i={1:\"serif\",2:\"sans-serif\",3:\"monospace\",4:\"cursive\",5:\"fantasy\"},o=(t?.ffid??0)>>>4&7,a=i[o];if(!a&&t?.panose?.[0]===2){let s=t.panose[1];t.panose[3]===9?a=\"monospace\":s>=2&&s<=10?a=\"serif\":s>=11&&s<=15&&(a=\"sans-serif\")}return[...e,a??\"sans-serif\"]}function Wu(n,t){if(!n)return[];if(t.rtl&&t.fontFamilyBi)return[{text:n,fontFamily:t.fontFamilyBi}];let e=t.fontFamily,r=t.fontFamilyEastAsia||e,i=t.fontFamilyOther||e;if(r===e&&i===e)return[{text:n,fontFamily:e}];let o=[];for(let a of n){let s=o[o.length-1],l=s&&mb.test(a)?s.fontFamily:pb.test(a)?r:a.codePointAt(0)<128?e:i;s&&s.fontFamily===l?s.text+=a:o.push({text:a,fontFamily:l})}return o}var Jn={1:\"#000000\",2:\"#0000ff\",3:\"#00ffff\",4:\"#00ff00\",5:\"#ff00ff\",6:\"#ff0000\",7:\"#ffff00\",8:\"#ffffff\",9:\"#000080\",10:\"#008080\",11:\"#008000\",12:\"#800080\",13:\"#800000\",14:\"#808000\",15:\"#808080\",16:\"#c0c0c0\"};function Tn(n){return Object.entries(n).filter(([,t])=>t!=null&&t!==\"\").map(([t,e])=>`${t}:${ce(e)}`).join(\";\")}function Hu(n){return`'${String(n??\"\").replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/[\\n\\r\\f]/g,\" \").replace(/[\\u0000-\\u001f\\u007f-\\u009f]/g,\" \")}'`}function Gu(n,t){let e=$u(n,t.fonts.get(n));return[Hu(n),...e.map((r,i)=>i===e.length-1?r:Hu(r))].join(\",\")}function Qn(n,t=\"block\"){let e=String(n??\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\").trim();return e?e.startsWith(\"#\")?e:t!==\"allow\"?null:/^(?:https?:|mailto:|tel:)/i.test(e)?e:e.startsWith(\"//\")||e.includes(\"\\\\\")?null:/^(?:\\/|\\.\\/|\\.\\.\\/)/.test(e)&&!e.startsWith(\"//\")||!/^[a-z][a-z\\d+.-]*:/i.test(e)?e:null:null}function lo(n,t){if(!t)return n;let e=ce(t);return t.startsWith(\"#\")?`<a class=\"msdoc-link\" href=\"${e}\">${n}</a>`:`<a class=\"msdoc-link\" href=\"${e}\" target=\"_blank\" rel=\"noreferrer noopener\">${n}</a>`}function vn(n){if(!n||n.nil)return null;let t=n.borderType;if(!t)return null;let e=Math.max(2,n.lineWidth||0),r=t>=64?e:e/8,i=Math.max(1,Math.round(r*(96/72))),o=t===3?\"double\":t===6?\"dotted\":[7,8,9].includes(t)?\"dashed\":\"solid\",a=n.color,s=n.colorRef!=null?ss(n.colorRef):Jn[a||1]||\"#000000\";return`${i}px ${o} ${s}`}function ss(n){if(n==null||n>>>24===255)return\"#000000\";let t=n&255,e=n>>>8&255,r=n>>>16&255;return`#${[t,e,r].map(i=>i.toString(16).padStart(2,\"0\")).join(\"\")}`}var Uu={2:5,3:10,4:20,5:25,6:30,7:40,8:50,9:60,10:70,11:75,12:80,13:90};function bb(n,t,e){let r=(a,s)=>Number.parseInt(a.slice(s,s+2),16),i=Math.max(0,Math.min(100,e))/100;return`#${[1,3,5].map(a=>Math.round(r(n,a)*i+r(t,a)*(1-i))).map(a=>a.toString(16).padStart(2,\"0\")).join(\"\")}`}function yb(n){if(!n||n.nil||n.auto||n.pattern===0)return{};let t=n.foregroundColorRef!=null?ss(n.foregroundColorRef):Jn[n.foregroundColorIndex||1]||\"#000000\",e=n.backgroundColorRef!=null?ss(n.backgroundColorRef):Jn[n.backgroundColorIndex||8]||\"#ffffff\";if(n.pattern===1)return{\"background-color\":t};if(Uu[n.pattern]!=null)return{\"background-color\":bb(t,e,Uu[n.pattern])};let r=n.pattern===14||n.pattern===20?`repeating-linear-gradient(0deg,${t} 0 1px,transparent 1px 4px)`:n.pattern===15||n.pattern===21?`repeating-linear-gradient(90deg,${t} 0 1px,transparent 1px 4px)`:n.pattern===16||n.pattern===22?`repeating-linear-gradient(45deg,${t} 0 1px,transparent 1px 5px)`:n.pattern===17||n.pattern===23?`repeating-linear-gradient(-45deg,${t} 0 1px,transparent 1px 5px)`:null;return r?{\"background-color\":e,\"background-image\":r}:{\"background-color\":e}}function xb(n){let t={\"text-align\":Rc(n.alignment)},e=de(n.spacingBefore),r=de(n.spacingAfter),i=de(n.leftIndent),o=de(n.rightIndent),a=de(n.firstLineIndent);if(e&&(t[\"margin-top\"]=`${e}px`),r&&(t[\"margin-bottom\"]=`${r}px`),i&&(t[\"margin-left\"]=`${i}px`),o&&(t[\"margin-right\"]=`${o}px`),a&&(t[\"text-indent\"]=`${a}px`),n.lineSpacing)if(n.lineSpacingRule===\"exact\"||n.lineSpacingRule===\"atLeast\")t[\"line-height\"]=`${de(Math.abs(n.lineSpacing))}px`;else{let u=Math.abs(n.lineSpacing)/240;t[\"line-height\"]=u===1?\"normal\":String(u)}n.keepLines&&(t[\"break-inside\"]=\"avoid\"),n.keepNext&&(t[\"break-after\"]=\"avoid\"),n.pageBreakBefore&&(t[\"break-before\"]=\"page\"),n.rtlPara&&(t.direction=\"rtl\");let s=vn(n.borders?.top),l=vn(n.borders?.right),c=vn(n.borders?.bottom),h=vn(n.borders?.left);return s&&(t[\"border-top\"]=s),l&&(t[\"border-inline-end\"]=l),c&&(t[\"border-bottom\"]=c),h&&(t[\"border-inline-start\"]=h),t}function wb(n){let t=Pc(n);if(!n||t===\"none\")return{};let e={\"text-decoration-line\":\"underline\"};return t===\"double\"||t===\"wavy-double\"?e[\"text-decoration-style\"]=\"double\":t.includes(\"dot\")||t===\"dotted-heavy\"?e[\"text-decoration-style\"]=\"dotted\":t.includes(\"dash\")?e[\"text-decoration-style\"]=\"dashed\":t.includes(\"wave\")||t.includes(\"wavy\")?e[\"text-decoration-style\"]=\"wavy\":e[\"text-decoration-style\"]=\"solid\",e}function ju(n,t){let e={};(n.bold||n.boldBi)&&(e[\"font-weight\"]=\"700\"),(n.italic||n.italicBi)&&(e[\"font-style\"]=\"italic\"),(n.strike||n.doubleStrike)&&(e[\"text-decoration-line\"]=`${e[\"text-decoration-line\"]?`${e[\"text-decoration-line\"]} `:\"\"}line-through`),Object.assign(e,wb(n.underline)),n.fontSizeHalfPoints&&(e[\"font-size\"]=`${n.fontSizeHalfPoints/2}pt`),n.fontFamily&&(e[\"font-family\"]=Gu(n.fontFamily,t)),n.colorIndex&&Jn[n.colorIndex]&&(e.color=Jn[n.colorIndex]);let r=typeof n.highlight==\"number\"?n.highlight:n.highlight?.index;return r&&Gn[r]&&(e[\"background-color\"]=Gn[r]),n.smallCaps&&(e[\"font-variant-caps\"]=\"small-caps\"),n.caps&&(e[\"text-transform\"]=\"uppercase\"),n.scale&&n.scale!==100&&(e.display=\"inline-block\",e.transform=`scaleX(${n.scale/100})`,e[\"transform-origin\"]=\"left center\"),n.positionHalfPoints>0&&(e[\"vertical-align\"]=\"super\"),n.positionHalfPoints<0&&(e[\"vertical-align\"]=\"sub\"),n.outline&&(e[\"text-shadow\"]=\"0 0 0.02em currentColor\"),(n.shadow||n.emboss||n.imprint)&&(e[\"text-shadow\"]=e[\"text-shadow\"]?`${e[\"text-shadow\"]}, 0.06em 0.06em 0.08em rgba(0,0,0,.25)`:\"0.06em 0.06em 0.08em rgba(0,0,0,.25)\"),n.rtl&&(e.direction=\"rtl\"),e}function vb(n,t){if(t.reviewMode===\"final\"&&n.style.revisionDeleted||t.reviewMode===\"original\"&&n.style.revisionInserted)return\"\";let e=Wu(n.text,n.style).map(c=>{let h=ce(c.text);return!c.fontFamily||c.fontFamily===n.style.fontFamily?h:`<span style=\"${Tn({\"font-family\":Gu(c.fontFamily,t)})}\">${h}</span>`}).join(\"\"),r=ju(n.style,t);r[\"white-space\"]=\"break-spaces\";let i=t.reviewMode===\"all\"?n.style.revisionDeleted?\"delete\":n.style.revisionInserted?\"insert\":null:null;i&&(r.color=\"#c62828\",r[\"text-decoration-line\"]=i===\"delete\"?\"line-through\":\"underline\");let o=Tn(r),a=i===\"delete\"?\"del\":i===\"insert\"?\"ins\":\"span\",s=i?` data-msdoc-change=\"${i}\"`:\"\",l=`<${a}${s}${o?` style=\"${o}\"`:\"\"}>${e}</${a}>`;return lo(l,Qn(n.href,t.externalLinkPolicy))}function Vu(n){let t=de(n.meta?.displayWidthTwips),e=de(n.meta?.displayHeightTwips);return{widthPx:t&&t>0?t:void 0,heightPx:e&&e>0?e:void 0}}function Tb(n,t){let{widthPx:e,heightPx:r}=Vu(t);!e&&!r||(e&&(n.width=`${e}px`),r&&(n.height=`${r}px`))}var Xu=/^data:image\\/(?:avif|bmp|gif|jpeg|png|webp|x-icon);base64,[a-z\\d+/=]+$/i;function Sb(n){try{let t=globalThis.Buffer;if(t)return t.from(n,\"base64\").toString(\"utf8\");if(typeof atob!=\"function\")return null;let e=atob(n),r=Uint8Array.from(e,i=>i.charCodeAt(0));return new TextDecoder().decode(r)}catch{return null}}function Eb(n){let t=/^data:image\\/svg\\+xml;base64,([a-z\\d+/=]+)$/i.exec(n);if(!t||t[1].length>8*1024*1024)return!1;let e=Sb(t[1]);if(!e||!/^\\s*<svg(?:\\s|>)/i.test(e)||/<\\/?(?:script|style|foreignObject|iframe|object|embed|form|link)\\b/i.test(e)||/<!\\s*(?:doctype|entity)\\b/i.test(e)||/\\son[a-z\\d_-]+\\s*=/i.test(e)||e.includes(\"\\\\\")||e.includes(\"/*\")||/@import\\b/i.test(e)||/url\\s*\\(\\s*(?![\"']?#[A-Za-z0-9_.:-]+[\"']?\\s*\\))/i.test(e))return!1;for(let r of e.matchAll(/\\s(?:href|xlink:href|src)\\s*=\\s*([\"'])([\\s\\S]*?)\\1/gi)){let i=String(r[2]||\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\");if(!/^#[A-Za-z0-9_.:-]+$/.test(i)&&!Xu.test(i))return!1}return!0}function zu(n,t,e=!1){let r=String(n||\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]/g,\"\").trim();return r?Xu.test(r)||e&&Eb(r)||/^blob:/i.test(r)?r:t!==\"allow\"?null:/^https?:/i.test(r)?r:r.startsWith(\"//\")||r.startsWith(\"\\\\\")?null:!/^[a-z][a-z\\d+.-]*:/i.test(r)&&!r.startsWith(\"\\\\\")?r:null:null}function ls(n){let t=String(n??\"\").trim();if(!t)return null;let e=/^data:([^;,]+);base64,([a-z\\d+/=\\s]+)$/i.exec(t);if(!e)return null;let r=e[1].trim().toLowerCase();return/^(?:text\\/(?:html|javascript)|application\\/(?:javascript|xhtml\\+xml|xml)|image\\/svg\\+xml)$/.test(r)||r.endsWith(\"+xml\")?null:t}function Yu(n,t){let e=ls(n);if(e)return e;let r=Qn(n,t.externalLinkPolicy);return r&&!r.startsWith(\"#\")?r:null}function kb(n,t){let e=n.asset.meta?.vectorConverted===!0,r=zu(n.asset.sourceUrl,t.externalResourcePolicy,e)||zu(n.asset.dataUrl,t.externalResourcePolicy,e),i=ju(n.style,t),o=Vu(n.asset);if(o.widthPx||o.heightPx?(Tb(i,n.asset),i[\"max-width\"]=\"none\",o.heightPx||(i.height=\"auto\")):(i[\"max-width\"]=\"100%\",i.height=\"auto\"),!r||n.asset.displayable===!1){let s=Yu(n.asset.dataUrl,t)||Yu(n.asset.sourceUrl,t),l=ce(String(n.asset.meta?.linkedPath||n.asset.mime||\"image\")),c=s?`<a class=\"msdoc-attachment msdoc-image-fallback\" href=\"${ce(s)}\" target=\"_blank\" rel=\"noreferrer noopener\">\\u{1F5BC} ${l}</a>`:`<span class=\"msdoc-image-fallback\">\\u{1F5BC} ${l}</span>`;return lo(c,Qn(n.href,t.externalLinkPolicy))}let a=`<img class=\"msdoc-image\" src=\"${ce(r)}\" alt=\"\" style=\"${Tn(i)}\">`;return lo(a,Qn(n.href,t.externalLinkPolicy))}function Ab(n,t){let e=ce(n.asset.name||\"embedded-file\"),r=ls(n.asset.dataUrl),i=r?`<a class=\"msdoc-attachment\" href=\"${ce(r)}\" download=\"${e}\">\\u{1F4CE} ${e}</a>`:`<span class=\"msdoc-attachment\">\\u{1F4CE} ${e}</span>`,o=Qn(n.href,t.externalLinkPolicy);return o?`<span class=\"msdoc-inline-group\">${i}${lo(\"\\u2197\",o)}</span>`:i}function Cb(n,t){return n.map(e=>qu(e.style,t)?\"\":e.type===\"text\"?vb(e,t):e.type===\"image\"?kb(e,t):e.type===\"attachment\"?Ab(e,t):e.type===\"lineBreak\"?\"<br>\":e.type===\"pageBreak\"?'<span class=\"msdoc-page-break\"></span>':\"\").join(\"\")}function qu(n,t){return!!(t.reviewMode===\"final\"&&n?.revisionDeleted||t.reviewMode===\"original\"&&n?.revisionInserted)}function Ku(n,t){let e=[];for(let r of n){let i=e[e.length-1];i&&i.storyKind===r.storyKind&&qu(i.paragraphMark,t)?e[e.length-1]={...r,inlines:[...i.inlines,...r.inlines],text:i.text+r.text}:e.push(r)}return e}function Zu(n,t,e={}){let r=e.inline?\"div\":\"p\",i=Tn(xb(n.paraState)),a=Cb(n.inlines||[],t)||\"<br>\",s=[\"msdoc-paragraph\"];return n.paraState.lineSpacingRule===\"atLeast\"&&s.push(\"msdoc-line-at-least\"),n.styleName&&s.push(`msdoc-style-${Vi(n.styleName)}`),`<${r} class=\"${s.join(\" \")}\"${i?` style=\"${i}\"`:\"\"}>${a}</${r}>`}function Nb(n){let t={},e=n.meta?.rightBoundary!=null&&n.meta?.leftBoundary!=null?n.meta.rightBoundary-n.meta.leftBoundary:n.meta?.width,r=de(e);r&&(t.width=`${r}px`),n.meta?.noWrap&&(t[\"white-space\"]=\"nowrap\"),n.meta?.fitText&&(t[\"text-align\"]=\"justify\"),n.meta?.vertAlign!=null&&(t[\"vertical-align\"]=Ic(n.meta.vertAlign));let i=n.meta?.borders||{},o=vn(i.all),a=f=>Object.prototype.hasOwnProperty.call(i,f)?vn(i[f]):o,s=a(\"top\"),l=a(\"right\"),c=a(\"bottom\"),h=a(\"left\");s&&(t[\"border-top\"]=s),l&&(t[\"border-inline-end\"]=l),c&&(t[\"border-bottom\"]=c),h&&(t[\"border-inline-start\"]=h);let u=n.meta?.paddingTwips;return u?.top!=null&&(t[\"padding-top\"]=`${de(u.top)}px`),u?.right!=null&&(t[\"padding-inline-end\"]=`${de(u.right)}px`),u?.bottom!=null&&(t[\"padding-bottom\"]=`${de(u.bottom)}px`),u?.left!=null&&(t[\"padding-inline-start\"]=`${de(u.left)}px`),Object.assign(t,yb(n.meta?.shading)),t}function Rb(n){let t={},e=de(n.gridWidthTwips||n.state?.tableWidth?.wWidth);e?t.width=`${e}px`:t.width=\"100%\";let r=de(n.state?.leftIndent);n.state?.alignment===1?(t[\"margin-inline-start\"]=\"auto\",t[\"margin-inline-end\"]=\"auto\"):n.state?.alignment===2?(t[\"margin-inline-start\"]=\"auto\",t[\"margin-inline-end\"]=\"0\"):r&&(t[\"margin-inline-start\"]=`${r}px`),n.state?.rtl&&(t.direction=\"rtl\");let i=n.rows.flatMap(o=>o.cells).reduce((o,a)=>{let s=a.meta?.spacingTwips;return s?{horizontal:Math.max(o.horizontal,s.left||0,s.right||0),vertical:Math.max(o.vertical,s.top||0,s.bottom||0)}:o},{horizontal:0,vertical:0});return i.horizontal||i.vertical?(t[\"border-collapse\"]=\"separate\",t[\"border-spacing\"]=`${de(i.horizontal)}px ${de(i.vertical)}px`):t[\"border-collapse\"]=\"collapse\",t[\"table-layout\"]=\"fixed\",t}function Pb(n){let t=new Set;for(let r of n.rows)for(let i of r.cells){let o=i.meta?.leftBoundary,a=i.meta?.rightBoundary;Number.isFinite(o)&&Number.isFinite(a)&&a>o&&(t.add(o),t.add(a))}let e=[...t].sort((r,i)=>r-i);return e.length<2?\"\":`<colgroup>${e.slice(1).map((r,i)=>`<col style=\"width:${de(r-e[i])}px\">`).join(\"\")}</colgroup>`}function Ib(n,t){let e=[],r=[],i=a=>n.meta?.textFlow===5?`<div class=\"msdoc-cell-vertical\" style=\"writing-mode:vertical-rl;text-orientation:upright;inline-size:max-content;block-size:max-content;margin:0 auto\">${a}</div>`:a,o=()=>{if(!r.length)return;let a=Ku(r,t).map(s=>Zu(s,t,{inline:!0})).join(\"\");a&&e.push(i(a)),r=[]};for(let a of n.blocks??n.paragraphs)a.type===\"paragraph\"?r.push(a):(o(),e.push(Ju(a,t)));return o(),e.join(\"\")||i('<div class=\"msdoc-paragraph\"><br></div>')}function Ju(n,t){let e=n.rows.map(r=>{let i=r.state?.rowHeight?de(Math.abs(r.state.rowHeight)):null,o=i?` style=\"height:${i}px\"`:\"\",a=r.cells.filter(s=>!s.hidden).map(s=>{let l=[];(s.colspan??1)>1&&l.push(` colspan=\"${s.colspan}\"`),(s.rowspan??1)>1&&l.push(` rowspan=\"${s.rowspan}\"`);let c=Tn(Nb(s)),h=Ib(s,t);return`<td class=\"msdoc-cell\"${l.join(\"\")}${c?` style=\"${c}\"`:\"\"}>${h||'<div class=\"msdoc-paragraph\"><br></div>'}</td>`}).join(\"\");return`<tr class=\"msdoc-row\"${o}>${a}</tr>`}).join(\"\");return`<table class=\"msdoc-table msdoc-table-depth-${n.depth}\" style=\"${Tn(Rb(n))}\">${Pb(n)}<tbody>${e}</tbody></table>`}function Ob(n){return`<section class=\"msdoc-attachments\"><div class=\"msdoc-attachments-title\">Embedded attachments</div><ul>${n.items.map(e=>{let r=ce(e.name||\"embedded-file\"),i=ls(e.dataUrl);return`<li>${i?`<a class=\"msdoc-attachment\" href=\"${ce(i)}\" download=\"${r}\">\\u{1F4CE} ${r}</a>`:`<span class=\"msdoc-attachment\">\\u{1F4CE} ${r}</span>`}</li>`}).join(\"\")}</ul></section>`}function Lb(){return`\n.msdoc-root{box-sizing:border-box;max-width:100%;padding:24px;background:#fff;color:#111;font:14px/1.6 -apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif}\n.msdoc-root *{box-sizing:border-box}\n.msdoc-paragraph{margin:0 0 8px;white-space:normal;word-break:break-word;overflow-wrap:anywhere}\n.msdoc-line-at-least span,.msdoc-line-at-least ins,.msdoc-line-at-least del{line-height:normal}\n.msdoc-paragraph:last-child{margin-bottom:0}\n.msdoc-table{margin:12px 0;border-collapse:collapse;border-spacing:0;max-width:100%}\n.msdoc-cell>.msdoc-table{margin-top:0;margin-bottom:0}\n.msdoc-cell{padding:6px 8px;vertical-align:top;word-break:break-word;overflow-wrap:anywhere}\n.msdoc-link{color:#1a73e8;text-decoration:none}\n.msdoc-link:hover{text-decoration:underline}\n.msdoc-image{display:inline-block;vertical-align:middle}\n.msdoc-image-fallback{display:inline-flex;align-items:center;gap:6px}\n.msdoc-attachment{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #d0d7de;border-radius:6px;background:#f6f8fa;color:#0969da;text-decoration:none}\n.msdoc-attachments{margin-top:20px;padding-top:12px;border-top:1px solid #e5e7eb}\n.msdoc-attachments-title{font-weight:600;margin-bottom:8px}\n.msdoc-page-break{display:block;height:0;border-top:1px dashed #cbd5e1;margin:16px 0}\n`}function Qu(n,t={}){let e=t.css??Lb(),r={reviewMode:t.reviewMode??\"all\",externalLinkPolicy:t.externalLinkPolicy??\"block\",externalResourcePolicy:t.externalResourcePolicy??\"block\",fonts:new Map((n.fonts??[]).flatMap(l=>[l.name,l.altName].filter(Boolean).map(c=>[c,l])))},i=[],o=[],a=()=>{i.push(...Ku(o,r).map(l=>Zu(l,r))),o=[]};for(let l of n.blocks){if(l.type===\"paragraph\"){o.push(l);continue}a(),l.type===\"table\"&&i.push(Ju(l,r)),l.type===\"attachments\"&&i.push(Ob(l))}return a(),{html:i.join(\"\"),css:e,warnings:n.warnings||[],meta:n.meta,assets:n.assets||[],parsed:n}}function _b(n,t){this.v=n,this.k=t}function th(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function Mb(n){if(Array.isArray(n))return n}function Fb(n,t){var e=n==null?null:typeof Symbol<\"u\"&&n[Symbol.iterator]||n[\"@@iterator\"];if(e!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(e=e.call(n)).next,t===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){c=!0,i=h}finally{try{if(!l&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bb(n,t){return Mb(n)||Fb(n,t)||$b(n,t)||Db()}function $b(n,t){if(n){if(typeof n==\"string\")return th(n,t);var e={}.toString.call(n).slice(8,-1);return e===\"Object\"&&n.constructor&&(e=n.constructor.name),e===\"Map\"||e===\"Set\"?Array.from(n):e===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?th(n,t):void 0}}function co(n){var t,e;function r(o,a){try{var s=n[o](a),l=s.value,c=l instanceof _b;Promise.resolve(c?l.v:l).then(function(h){if(c){var u=o===\"return\"&&l.k?o:\"next\";if(!l.k||h.done)return r(u,h);h=n[u](h).value}i(!!s.done,h)},function(h){r(\"throw\",h)})}catch(h){i(2,h)}}function i(o,a){o===2?t.reject(a):t.resolve({value:a,done:o}),(t=t.next)?r(t.key,t.arg):e=null}this._invoke=function(o,a){return new Promise(function(s,l){var c={key:o,arg:a,resolve:s,reject:l,next:null};e?e=e.next=c:(t=e=c,r(o,a))})},typeof n.return!=\"function\"&&(this.return=void 0)}co.prototype[typeof Symbol==\"function\"&&Symbol.asyncIterator||\"@@asyncIterator\"]=function(){return this},co.prototype.next=function(n){return this._invoke(\"next\",n)},co.prototype.throw=function(n){return this._invoke(\"throw\",n)},co.prototype.return=function(n){return this._invoke(\"return\",n)};var mh=Object.entries,eh=Object.setPrototypeOf,Wb=Object.isFrozen,gh=Object.getPrototypeOf,bh=Object.getOwnPropertyDescriptor,xe=Object.freeze,ve=Object.seal,Sn=Object.create,yh=typeof Reflect<\"u\"&&Reflect,ys=yh.apply,xs=yh.construct;xe||(xe=function(t){return t});ve||(ve=function(t){return t});ys||(ys=function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(e,i)});xs||(xs=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});var Ar=ee(Array.prototype.forEach);Array.prototype.indexOf;var Hb=ee(Array.prototype.lastIndexOf),rh=ee(Array.prototype.pop),ti=ee(Array.prototype.push),Ub=ee(Array.prototype.slice),zb=ee(Array.prototype.splice),En=Array.isArray,cs=xh(Set),us=ee(Set.prototype.add),ei=ee(Set.prototype.has),sn=ee(String.prototype.toLowerCase),hs=ee(String.prototype.toString),nh=ee(String.prototype.match),ri=ee(String.prototype.replace),ih=ee(String.prototype.indexOf),Yb=ee(String.prototype.trim),Gb=ee(Number.prototype.toString),jb=ee(Boolean.prototype.toString),oh=typeof BigInt>\"u\"?null:ee(BigInt.prototype.toString),ah=typeof Symbol>\"u\"?null:ee(Symbol.prototype.toString),Me=ee(Object.prototype.hasOwnProperty),ni=ee(Object.prototype.toString),we=ee(RegExp.prototype.test),Cr=xh(TypeError);function ee(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return ys(n,t,r)}}function xh(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return xs(n,e)}}function Gt(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sn;if(eh&&eh(n,null),!En(t))return n;let r=t.length;for(;r--;){let i=t[r];if(typeof i==\"string\"){let o=e(i);o!==i&&(Wb(t)||(t[r]=o),i=o)}n[i]=!0}return n}function Vb(n){for(let t=0;t<n.length;t++)Me(n,t)||(n[t]=null);return n}function $e(n){let t=Sn(null);for(let r of mh(n)){var e=Bb(r,2);let i=e[0],o=e[1];Me(n,i)&&(En(o)?t[i]=Vb(o):o&&typeof o==\"object\"&&o.constructor===Object?t[i]=$e(o):t[i]=o)}return t}function Xb(n){switch(typeof n){case\"string\":return n;case\"number\":return Gb(n);case\"boolean\":return jb(n);case\"bigint\":return oh?oh(n):\"0\";case\"symbol\":return ah?ah(n):\"Symbol()\";case\"undefined\":return ni(n);case\"function\":case\"object\":{if(n===null)return ni(n);let t=n,e=Ke(t,\"toString\");if(typeof e==\"function\"){let r=e(t);return typeof r==\"string\"?r:ni(r)}return ni(n)}default:return ni(n)}}function Ke(n,t){for(;n!==null;){let r=bh(n,t);if(r){if(r.get)return ee(r.get);if(typeof r.value==\"function\")return ee(r.value)}n=gh(n)}function e(){return null}return e}function qb(n,t){for(;n!==null;){let e=bh(n,t);if(e)return e.get?ee(e.get):null;n=gh(n)}return null}function Kb(n){try{return we(n,\"\"),!0}catch{return!1}}var sh=xe([\"a\",\"abbr\",\"acronym\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"bdi\",\"bdo\",\"big\",\"blink\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"center\",\"cite\",\"code\",\"col\",\"colgroup\",\"content\",\"data\",\"datalist\",\"dd\",\"decorator\",\"del\",\"details\",\"dfn\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"element\",\"em\",\"fieldset\",\"figcaption\",\"figure\",\"font\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"img\",\"input\",\"ins\",\"kbd\",\"label\",\"legend\",\"li\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meter\",\"nav\",\"nobr\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"search\",\"section\",\"select\",\"shadow\",\"slot\",\"small\",\"source\",\"spacer\",\"span\",\"strike\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"template\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"tt\",\"u\",\"ul\",\"var\",\"video\",\"wbr\"]),ds=xe([\"svg\",\"a\",\"altglyph\",\"altglyphdef\",\"altglyphitem\",\"animatecolor\",\"animatemotion\",\"animatetransform\",\"circle\",\"clippath\",\"defs\",\"desc\",\"ellipse\",\"enterkeyhint\",\"exportparts\",\"filter\",\"font\",\"g\",\"glyph\",\"glyphref\",\"hkern\",\"image\",\"inputmode\",\"line\",\"lineargradient\",\"marker\",\"mask\",\"metadata\",\"mpath\",\"part\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialgradient\",\"rect\",\"stop\",\"style\",\"switch\",\"symbol\",\"text\",\"textpath\",\"title\",\"tref\",\"tspan\",\"view\",\"vkern\"]),fs=xe([\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feDistantLight\",\"feDropShadow\",\"feFlood\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"fePointLight\",\"feSpecularLighting\",\"feSpotLight\",\"feTile\",\"feTurbulence\"]),Zb=xe([\"animate\",\"color-profile\",\"cursor\",\"discard\",\"font-face\",\"font-face-format\",\"font-face-name\",\"font-face-src\",\"font-face-uri\",\"foreignobject\",\"hatch\",\"hatchpath\",\"mesh\",\"meshgradient\",\"meshpatch\",\"meshrow\",\"missing-glyph\",\"script\",\"set\",\"solidcolor\",\"unknown\",\"use\"]),ps=xe([\"math\",\"menclose\",\"merror\",\"mfenced\",\"mfrac\",\"mglyph\",\"mi\",\"mlabeledtr\",\"mmultiscripts\",\"mn\",\"mo\",\"mover\",\"mpadded\",\"mphantom\",\"mroot\",\"mrow\",\"ms\",\"mspace\",\"msqrt\",\"mstyle\",\"msub\",\"msup\",\"msubsup\",\"mtable\",\"mtd\",\"mtext\",\"mtr\",\"munder\",\"munderover\",\"mprescripts\"]),Jb=xe([\"maction\",\"maligngroup\",\"malignmark\",\"mlongdiv\",\"mscarries\",\"mscarry\",\"msgroup\",\"mstack\",\"msline\",\"msrow\",\"semantics\",\"annotation\",\"annotation-xml\",\"mprescripts\",\"none\"]),lh=xe([\"#text\"]),ch=xe([\"accept\",\"action\",\"align\",\"alt\",\"autocapitalize\",\"autocomplete\",\"autopictureinpicture\",\"autoplay\",\"background\",\"bgcolor\",\"border\",\"capture\",\"cellpadding\",\"cellspacing\",\"checked\",\"cite\",\"class\",\"clear\",\"color\",\"cols\",\"colspan\",\"command\",\"commandfor\",\"controls\",\"controlslist\",\"coords\",\"crossorigin\",\"datetime\",\"decoding\",\"default\",\"dir\",\"disabled\",\"disablepictureinpicture\",\"disableremoteplayback\",\"download\",\"draggable\",\"enctype\",\"enterkeyhint\",\"exportparts\",\"face\",\"for\",\"headers\",\"height\",\"hidden\",\"high\",\"href\",\"hreflang\",\"id\",\"inert\",\"inputmode\",\"integrity\",\"ismap\",\"kind\",\"label\",\"lang\",\"list\",\"loading\",\"loop\",\"low\",\"max\",\"maxlength\",\"media\",\"method\",\"min\",\"minlength\",\"multiple\",\"muted\",\"name\",\"nonce\",\"noshade\",\"novalidate\",\"nowrap\",\"open\",\"optimum\",\"part\",\"pattern\",\"placeholder\",\"playsinline\",\"popover\",\"popovertarget\",\"popovertargetaction\",\"poster\",\"preload\",\"pubdate\",\"radiogroup\",\"readonly\",\"rel\",\"required\",\"rev\",\"reversed\",\"role\",\"rows\",\"rowspan\",\"spellcheck\",\"scope\",\"selected\",\"shape\",\"size\",\"sizes\",\"slot\",\"span\",\"srclang\",\"start\",\"src\",\"srcset\",\"step\",\"style\",\"summary\",\"tabindex\",\"title\",\"translate\",\"type\",\"usemap\",\"valign\",\"value\",\"width\",\"wrap\",\"xmlns\"]),ms=xe([\"accent-height\",\"accumulate\",\"additive\",\"alignment-baseline\",\"amplitude\",\"ascent\",\"attributename\",\"attributetype\",\"azimuth\",\"basefrequency\",\"baseline-shift\",\"begin\",\"bias\",\"by\",\"class\",\"clip\",\"clippathunits\",\"clip-path\",\"clip-rule\",\"color\",\"color-interpolation\",\"color-interpolation-filters\",\"color-profile\",\"color-rendering\",\"cx\",\"cy\",\"d\",\"dx\",\"dy\",\"diffuseconstant\",\"direction\",\"display\",\"divisor\",\"dominant-baseline\",\"dur\",\"edgemode\",\"elevation\",\"end\",\"exponent\",\"fill\",\"fill-opacity\",\"fill-rule\",\"filter\",\"filterunits\",\"flood-color\",\"flood-opacity\",\"font-family\",\"font-size\",\"font-size-adjust\",\"font-stretch\",\"font-style\",\"font-variant\",\"font-weight\",\"fx\",\"fy\",\"g1\",\"g2\",\"glyph-name\",\"glyphref\",\"gradientunits\",\"gradienttransform\",\"height\",\"href\",\"id\",\"image-rendering\",\"in\",\"in2\",\"intercept\",\"k\",\"k1\",\"k2\",\"k3\",\"k4\",\"kerning\",\"keypoints\",\"keysplines\",\"keytimes\",\"lang\",\"lengthadjust\",\"letter-spacing\",\"kernelmatrix\",\"kernelunitlength\",\"lighting-color\",\"local\",\"marker-end\",\"marker-mid\",\"marker-start\",\"markerheight\",\"markerunits\",\"markerwidth\",\"maskcontentunits\",\"maskunits\",\"max\",\"mask\",\"mask-type\",\"media\",\"method\",\"mode\",\"min\",\"name\",\"numoctaves\",\"offset\",\"operator\",\"opacity\",\"order\",\"orient\",\"orientation\",\"origin\",\"overflow\",\"paint-order\",\"path\",\"pathlength\",\"patterncontentunits\",\"patterntransform\",\"patternunits\",\"pointer-events\",\"points\",\"preservealpha\",\"preserveaspectratio\",\"primitiveunits\",\"r\",\"rx\",\"ry\",\"radius\",\"refx\",\"refy\",\"repeatcount\",\"repeatdur\",\"restart\",\"result\",\"rotate\",\"scale\",\"seed\",\"shape-rendering\",\"slope\",\"specularconstant\",\"specularexponent\",\"spreadmethod\",\"startoffset\",\"stddeviation\",\"stitchtiles\",\"stop-color\",\"stop-opacity\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-miterlimit\",\"stroke-opacity\",\"stroke\",\"stroke-width\",\"style\",\"surfacescale\",\"systemlanguage\",\"tabindex\",\"tablevalues\",\"targetx\",\"targety\",\"transform\",\"transform-origin\",\"text-anchor\",\"text-decoration\",\"text-orientation\",\"text-rendering\",\"textlength\",\"type\",\"u1\",\"u2\",\"unicode\",\"values\",\"vector-effect\",\"viewbox\",\"visibility\",\"version\",\"vert-adv-y\",\"vert-origin-x\",\"vert-origin-y\",\"width\",\"word-spacing\",\"wrap\",\"writing-mode\",\"xchannelselector\",\"ychannelselector\",\"x\",\"x1\",\"x2\",\"xmlns\",\"y\",\"y1\",\"y2\",\"z\",\"zoomandpan\"]),uh=xe([\"accent\",\"accentunder\",\"align\",\"bevelled\",\"close\",\"columnalign\",\"columnlines\",\"columnspacing\",\"columnspan\",\"denomalign\",\"depth\",\"dir\",\"display\",\"displaystyle\",\"encoding\",\"fence\",\"frame\",\"height\",\"href\",\"id\",\"largeop\",\"length\",\"linethickness\",\"lquote\",\"lspace\",\"mathbackground\",\"mathcolor\",\"mathsize\",\"mathvariant\",\"maxsize\",\"minsize\",\"movablelimits\",\"notation\",\"numalign\",\"open\",\"rowalign\",\"rowlines\",\"rowspacing\",\"rowspan\",\"rspace\",\"rquote\",\"scriptlevel\",\"scriptminsize\",\"scriptsizemultiplier\",\"selection\",\"separator\",\"separators\",\"stretchy\",\"subscriptshift\",\"supscriptshift\",\"symmetric\",\"voffset\",\"width\",\"xmlns\"]),uo=xe([\"xlink:href\",\"xml:id\",\"xlink:title\",\"xml:space\",\"xmlns:xlink\"]),Qb=ve(/{{[\\w\\W]*|^[\\w\\W]*}}/g),ty=ve(/<%[\\w\\W]*|^[\\w\\W]*%>/g),ey=ve(/\\${[\\w\\W]*/g),ry=ve(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),ny=ve(/^aria-[\\-\\w]+$/),hh=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),iy=ve(/^(?:\\w+script|data):/i),oy=ve(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),ay=ve(/^html$/i),sy=ve(/^[a-z][.\\w]*(-[.\\w]+)+$/i),gs=ve(/<[/\\w!]/g),dh=ve(/<[/\\w]/g),ly=ve(/<\\/no(script|embed|frames)/i),fh=ve(/\\/>/i),fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cy=xe(Gt({},[\"style\",\"script\",\"xmp\",\"iframe\",\"noembed\",\"noframes\",\"plaintext\",\"noscript\"])),uy=function(){return typeof window>\"u\"?null:window},hy=function(t,e){if(typeof t!=\"object\"||typeof t.createPolicy!=\"function\")return null;let r=null,i=\"data-tt-policy-suffix\";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let o=\"dompurify\"+(r?\"#\"+r:\"\");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn(\"TrustedTypes policy \"+o+\" could not be created.\"),null}},ph=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Yr=function(t,e,r,i){return Me(t,e)&&En(t[e])?Gt(i.base?$e(i.base):{},t[e],i.transform):r},bs=function(t,e,r){let i=Me(t,e)?t[e]:void 0;return i&&typeof i==\"object\"?$e(i):r()};function wh(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uy(),t=pt=>wh(pt);if(t.version=\"3.4.17\",t.removed=[],!n||!n.document||n.document.nodeType!==fe.document||!n.Element)return t.isSupported=!1,t;let e=n.document,r=e,i=r.currentScript;n.DocumentFragment;let o=n.HTMLTemplateElement,a=n.Node,s=n.Element,l=n.NodeFilter;n.NamedNodeMap===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let c=n.DOMParser,h=n.trustedTypes,u=s.prototype,f=Ke(u,\"cloneNode\"),d=Ke(u,\"remove\"),p=Ke(u,\"removeAttributeNode\"),m=Ke(u,\"nextSibling\"),g=Ke(u,\"childNodes\"),b=Ke(u,\"parentNode\"),T=Ke(u,\"shadowRoot\"),S=Ke(u,\"attributes\"),I=a&&a.prototype?Ke(a.prototype,\"nodeType\"):null,O=a&&a.prototype?Ke(a.prototype,\"nodeName\"):null,$=a&&a.prototype?Ke(a.prototype,\"ownerDocument\"):null,k=function(C){return I?I(C):C.nodeType},W=function(C){return O?O(C):C.nodeName},U=qb(u,\"namespaceURI\"),v=function(C){return U?U(C):C.namespaceURI};if(typeof o==\"function\"){let pt=e.createElement(\"template\");pt.content&&pt.content.ownerDocument&&(e=pt.content.ownerDocument)}let _,y=\"\",H,nt=!1,J=0,lt=function(){if(J>0)throw Cr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.')},ot=function(C){lt(),J++;try{return _.createHTML(C)}finally{J--}},et=function(C){lt(),J++;try{return _.createScriptURL(C)}finally{J--}},B=function(){return nt||(H=hy(h,i),nt=!0),H},z=e,st=z.implementation,dt=z.createNodeIterator,ft=z.createDocumentFragment,Ft=z.getElementsByTagName,Xt=r.importNode,Et=ph();t.isSupported=typeof mh==\"function\"&&typeof b==\"function\"&&st&&st.createHTMLDocument!==void 0;let _t=Qb,Kt=ty,Pt=ey,jt=ry,qt=ny,x=iy,it=oy,Q=sy,D=hh,R=null,G=Gt({},[...sh,...ds,...fs,...ps,...lh]),tt=null,ht=Gt({},[...ch,...ms,...uh,...uo]),V=Object.seal(Sn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,St=null,bt=Object.seal(Sn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),At=!0,zt=!0,Mt=!1,ue=!0,re=!1,he=!0,Te=!1,Zt=!1,We=null,Je=null,Se=!1,He=!1,Nr=!1,Rr=!1,Vr=!0,fr=!1,Qe=\"user-content-\",or=!0,Rn=!1,Ue=null,Pr={},pr=null,oi=Gt({},[\"annotation-xml\",\"audio\",\"colgroup\",\"desc\",\"foreignobject\",\"head\",\"iframe\",\"math\",\"mi\",\"mn\",\"mo\",\"ms\",\"mtext\",\"noembed\",\"noframes\",\"noscript\",\"plaintext\",\"script\",\"selectedcontent\",\"style\",\"svg\",\"template\",\"thead\",\"title\",\"video\",\"xmp\"]),ai=null,si=Gt({},[\"audio\",\"video\",\"img\",\"source\",\"image\",\"track\"]),li=null,ci=Gt({},[\"alt\",\"class\",\"for\",\"id\",\"label\",\"name\",\"pattern\",\"placeholder\",\"role\",\"summary\",\"title\",\"value\",\"style\",\"xmlns\"]),ln=\"http://www.w3.org/1998/Math/MathML\",Ir=\"http://www.w3.org/2000/svg\",ze=\"http://www.w3.org/1999/xhtml\",Or=ze,Pn=!1,E=null,L=Gt({},[ln,Ir,ze],hs),N=xe([\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\"]),P=Gt({},N),M=xe([\"annotation-xml\"]),F=Gt({},M),K=Gt({},[\"title\",\"style\",\"font\",\"a\",\"script\"]),rt=null,q=[\"application/xhtml+xml\",\"text/html\"],Z=\"text/html\",j=null,mt=null,yt=e.createElement(\"form\"),kt=function(C){return C instanceof RegExp||C instanceof Function},xt=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===C)return;(!C||typeof C!=\"object\")&&(C={}),C=$e(C),rt=q.indexOf(C.PARSER_MEDIA_TYPE)===-1?Z:C.PARSER_MEDIA_TYPE,j=rt===\"application/xhtml+xml\"?hs:sn,R=Yr(C,\"ALLOWED_TAGS\",G,{transform:j}),tt=Yr(C,\"ALLOWED_ATTR\",ht,{transform:j}),E=Yr(C,\"ALLOWED_NAMESPACES\",L,{transform:hs}),li=Yr(C,\"ADD_URI_SAFE_ATTR\",ci,{transform:j,base:ci}),ai=Yr(C,\"ADD_DATA_URI_TAGS\",si,{transform:j,base:si}),pr=Yr(C,\"FORBID_CONTENTS\",oi,{transform:j}),gt=Yr(C,\"FORBID_TAGS\",$e({}),{transform:j}),St=Yr(C,\"FORBID_ATTR\",$e({}),{transform:j}),Pr=Me(C,\"USE_PROFILES\")?C.USE_PROFILES&&typeof C.USE_PROFILES==\"object\"?$e(C.USE_PROFILES):C.USE_PROFILES:!1,At=C.ALLOW_ARIA_ATTR!==!1,zt=C.ALLOW_DATA_ATTR!==!1,Mt=C.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=C.SAFE_FOR_TEMPLATES||!1,he=C.SAFE_FOR_XML!==!1,Te=C.WHOLE_DOCUMENT||!1,He=C.RETURN_DOM||!1,Nr=C.RETURN_DOM_FRAGMENT||!1,Rr=C.RETURN_TRUSTED_TYPE||!1,Se=C.FORCE_BODY||!1,Vr=C.SANITIZE_DOM!==!1,fr=C.SANITIZE_NAMED_PROPS||!1,or=C.KEEP_CONTENT!==!1,Rn=C.IN_PLACE||!1,D=Kb(C.ALLOWED_URI_REGEXP)?C.ALLOWED_URI_REGEXP:hh,Or=typeof C.NAMESPACE==\"string\"?C.NAMESPACE:ze,P=bs(C,\"MATHML_TEXT_INTEGRATION_POINTS\",()=>Gt({},N)),F=bs(C,\"HTML_INTEGRATION_POINTS\",()=>Gt({},M));let Y=bs(C,\"CUSTOM_ELEMENT_HANDLING\",()=>Sn(null));if(V=Sn(null),Me(Y,\"tagNameCheck\")&&kt(Y.tagNameCheck)&&(V.tagNameCheck=Y.tagNameCheck),Me(Y,\"attributeNameCheck\")&&kt(Y.attributeNameCheck)&&(V.attributeNameCheck=Y.attributeNameCheck),Me(Y,\"allowCustomizedBuiltInElements\")&&typeof Y.allowCustomizedBuiltInElements==\"boolean\"&&(V.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),ve(V),re&&(zt=!1),Nr&&(He=!0),Pr&&(R=Gt({},lh),tt=Sn(null),Pr.html===!0&&(Gt(R,sh),Gt(tt,ch)),Pr.svg===!0&&(Gt(R,ds),Gt(tt,ms),Gt(tt,uo)),Pr.svgFilters===!0&&(Gt(R,fs),Gt(tt,ms),Gt(tt,uo)),Pr.mathMl===!0&&(Gt(R,ps),Gt(tt,uh),Gt(tt,uo))),bt.tagCheck=null,bt.attributeCheck=null,Me(C,\"ADD_TAGS\")&&(typeof C.ADD_TAGS==\"function\"?bt.tagCheck=C.ADD_TAGS:En(C.ADD_TAGS)&&(R===G&&(R=$e(R)),Gt(R,C.ADD_TAGS,j))),Me(C,\"ADD_ATTR\")&&(typeof C.ADD_ATTR==\"function\"?bt.attributeCheck=C.ADD_ATTR:En(C.ADD_ATTR)&&(tt===ht&&(tt=$e(tt)),Gt(tt,C.ADD_ATTR,j))),Me(C,\"ADD_FORBID_CONTENTS\")&&En(C.ADD_FORBID_CONTENTS)&&(pr===oi&&(pr=$e(pr)),Gt(pr,C.ADD_FORBID_CONTENTS,j)),or&&(R[\"#text\"]=!0),Te&&Gt(R,[\"html\",\"head\",\"body\"]),R.table&&(Gt(R,[\"tbody\"]),delete gt.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!=\"function\")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!=\"function\")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');let ct=_;_=C.TRUSTED_TYPES_POLICY;try{y=ot(\"\")}catch(ut){throw _=ct,ut}}else C.TRUSTED_TYPES_POLICY===null?(_=void 0,y=\"\"):(_===void 0&&(_=B()),_&&typeof y==\"string\"&&(y=ot(\"\")));xe&&xe(C),mt=C},vt=Gt({},[...ds,...fs,...Zb]),Ot=Gt({},[...ps,...Jb]),Jt=function(C,Y,ct){return Y.namespaceURI===ze?C===\"svg\":Y.namespaceURI===ln?C===\"svg\"&&(ct===\"annotation-xml\"||P[ct]):!!vt[C]},pe=function(C,Y,ct){return Y.namespaceURI===ze?C===\"math\":Y.namespaceURI===Ir?C===\"math\"&&F[ct]:!!Ot[C]},ie=function(C,Y,ct){return Y.namespaceURI===Ir&&!F[ct]||Y.namespaceURI===ln&&!P[ct]?!1:!Ot[C]&&(K[C]||!vt[C])},Ee=function(C){let Y=v(C),ct=sn(W(C)),ut=b(C),Nt,Lt;return ut&&k(ut)===fe.element?(Nt={namespaceURI:v(ut)},Lt=sn(W(ut))):(Nt={namespaceURI:Or},Lt=\"template\"),E[Y]?Y===Ir?Jt(ct,Nt,Lt):Y===ln?pe(ct,Nt,Lt):Y===ze?ie(ct,Nt,Lt):!!(rt===\"application/xhtml+xml\"&&E[Y]):!1},Oe=function(C){ti(t.removed,{element:C});try{b(C).removeChild(C)}catch{if(d(C),!b(C))throw Cr(\"a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place\")}},Lr=function(C,Y,ct){try{p(C,Y)}catch{try{C.removeAttribute(ct)}catch{}}},tr=function(C){bo(C);let Y=g(C);Y&&Ar(Ub(Y),ut=>{try{d(ut)}catch{}});let ct=k(C)===fe.element?S(C):null;if(ct)for(let ut=ct.length-1;ut>=0;--ut){let Nt=ct[ut],Lt=Nt&&Nt.name;typeof Lt==\"string\"&&Lr(C,Nt,Lt)}},ar=function(C,Y,ct){if(!ct)try{ct=Y.getAttributeNode(C)}catch{ct=null}ti(t.removed,{attribute:ct||null,from:Y});try{ct?p(Y,ct):Y.removeAttribute(C)}catch{try{Y.removeAttribute(C)}catch{}}if(C===\"is\")if(He||Nr)try{Oe(Y)}catch{}else try{Y.setAttribute(C,\"\")}catch{}},Ye=function(C){let Y=S(C);if(Y)for(let ct=Y.length-1;ct>=0;--ct){let ut=Y[ct],Nt=ut&&ut.name;typeof Nt!=\"string\"||tt[j(Nt)]||Lr(C,ut,Nt)}},go=function(C,Y){let ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=[C];for(;ut.length>0;){let Nt=ut.pop();if(Y(Nt)===!1)continue;if(ct&&k(Nt)===fe.element){let Bt=T(Nt);_r(Bt)&&ut.push(Bt)}let Lt=g(Nt);if(Lt)for(let Bt=Lt.length-1;Bt>=0;--Bt)ut.push(Lt[Bt])}},bo=function(C){go(C,Y=>{k(Y)===fe.element&&Ye(Y)})},yo=function(C){let Y=[];return go(C,ct=>{Y.push(ct)},!0),Y},Yh=function(C,Y){let ct=cs();Ar(yo(C),ut=>{k(ut)===fe.element&&us(ct,ut)}),Ar(Y,ut=>{k(ut)===fe.element&&!ei(ct,ut)&&Ye(ut)})},ks=function(C,Y){let ct=!1;return Ar(t.removed,ut=>{ut.element&&(ct=ct||ut.element===C,bo(ut.element))}),Yh(C,Y),ct},Gh=8,jh=function(C,Y){let ct=Ue,ut=null,Nt=()=>(ut||(ut=cs(),Ar(Y,Lt=>{us(ut,Lt)})),ut);for(let Lt=0;;Lt++){let Bt=yo(C),me=[C],sr=!1;if(Ar(Bt,ke=>{k(ke)===fe.documentFragment?ti(me,ke):!sr&&!ei(ct,ke)&&(sr=ei(Nt(),ke))}),!sr)return;if(Lt>=Gh)throw Cr(\"the tree kept changing during in-place sanitization; refusing to return it\");Ar(me,(ke,Le)=>{Vh(ke,Le>0,C,Nt())})}},Vh=function(C,Y,ct,ut){let Nt=xo(C),Lt;for(;Lt=Nt.nextNode();)!ei(ut,Lt)||ei(Ue,Lt)||(Y&&er(Et.uponSanitizeShadowNode,Lt,null),vo(Lt,ct),To(Lt,ct),_r(Lt.content)&&On(Lt.content))},Xh=function(C){Ue&&us(Ue,C)},As=function(C,Y){return he?C===\"patchsrc\"?!0:C===\"for\"&&Y!==\"label\"&&Y!==\"output\":!1},qh=function(C){he&&go(C,Y=>{let ct=k(Y);if(ct===fe.processingInstruction||ct===fe.comment&&we(dh,Y.data)){try{d(Y)}catch{}return!1}if(ct===fe.element){let ut=Y,Nt=j(W(Y));try{ut.hasAttribute&&ut.hasAttribute(\"patchsrc\")&&ut.removeAttribute(\"patchsrc\"),ut.hasAttribute&&ut.hasAttribute(\"for\")&&As(\"for\",Nt)&&ut.removeAttribute(\"for\")}catch{}}return!0})},Cs=function(C){let Y=null,ct=null;if(Se)C=\"<remove></remove>\"+C;else{let Lt=nh(C,/^[\\r\\n\\t ]+/);ct=Lt&&Lt[0]}rt===\"application/xhtml+xml\"&&Or===ze&&(C='<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>'+C+\"</body></html>\");let ut=_?ot(C):C;if(Or===ze)try{Y=new c().parseFromString(ut,rt)}catch{}if(!Y||!Y.documentElement){Y=st.createDocument(Or,\"template\",null);try{Y.documentElement.innerHTML=Pn?y:ut}catch{}}let Nt=Y.body||Y.documentElement;return C&&ct&&Nt.insertBefore(e.createTextNode(ct),Nt.childNodes[0]||null),Or===ze?Ft.call(Y,Te?\"html\":\"body\")[0]:Te?Y.documentElement:Nt},xo=function(C){let Y=$?$(C):C.ownerDocument;return dt.call(Y||C,C,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ui=function(C){return C=ri(C,_t,\" \"),C=ri(C,Kt,\" \"),C=ri(C,Pt,\" \"),C},wo=function(C){var Y;Ns(C);let ct=(Y=C.querySelectorAll)===null||Y===void 0?void 0:Y.call(C,\"template\");ct&&Ar(ct,ut=>{_r(ut.content)&&wo(ut.content)})},Ns=function(C){C.normalize();let Y=$?$(C):C.ownerDocument,ct=dt.call(Y||C,C,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),ut=ct.nextNode();for(;ut;)ut.data=ui(ut.data),ut=ct.nextNode()},hi=function(C){let Y=O?O(C):null;return typeof Y!=\"string\"||j(Y)!==\"form\"?!1:typeof C.nodeName!=\"string\"||typeof C.textContent!=\"string\"||typeof C.removeChild!=\"function\"||C.attributes!==S(C)||typeof C.removeAttribute!=\"function\"||typeof C.removeAttributeNode!=\"function\"||typeof C.getAttributeNode!=\"function\"||typeof C.setAttribute!=\"function\"||typeof C.namespaceURI!=\"string\"||typeof C.insertBefore!=\"function\"||typeof C.hasChildNodes!=\"function\"||C.nodeType!==I(C)||C.childNodes!==g(C)},_r=function(C){if(!I||typeof C!=\"object\"||C===null)return!1;try{return I(C)===fe.documentFragment}catch{return!1}},In=function(C){if(!I||typeof C!=\"object\"||C===null)return!1;try{return typeof I(C)==\"number\"}catch{return!1}};function er(pt,C,Y){pt.length!==0&&Ar(pt,ct=>{ct.call(t,C,Y,mt)})}let Kh=function(C,Y){return!!(he&&C.hasChildNodes()&&!In(C.firstElementChild)&&we(gs,C.textContent)&&we(gs,C.innerHTML)||he&&cy[Y]&&k(C)===fe.element&&v(C)===ze&&(In(C.firstElementChild)||typeof C.textContent==\"string\"&&we(gs,C.textContent))||C.nodeType===fe.processingInstruction||he&&C.nodeType===fe.comment&&we(dh,C.data))},di=function(C,Y){if(C instanceof RegExp)return we(C,Y);if(C instanceof Function){for(var ct=arguments.length,ut=new Array(ct>2?ct-2:0),Nt=2;Nt<ct;Nt++)ut[Nt-2]=arguments[Nt];return!!C(Y,...ut)}return!1},Zh=function(C,Y,ct){if(!gt[Y]&&Is(Y)&&di(V.tagNameCheck,Y))return!1;if(or&&!pr[Y]&&!pr[sn(Y)]){let ut=b(C),Nt=g(C);if(Nt&&ut){let Lt=Nt.length;for(let Bt=Lt-1;Bt>=0;--Bt){let me=C===ct?f(Nt[Bt],!0):Nt[Bt];ut.insertBefore(me,m(C))}}}return Oe(C),!0},Rs=function(C,Y,ct,ut){return C.length===0?Y:Y===ct||Y===ut?$e(Y):Y},cn=function(C,Y){return C===Y||b(C)!==null?!1:(Rn&&bo(C),!0)},vo=function(C,Y){if(Xh(C),er(Et.beforeSanitizeElements,C,null),cn(C,Y))return!0;if(hi(C))return Oe(C),!0;let ct=j(W(C));if(R=Rs(Et.uponSanitizeElement,R,G,We),er(Et.uponSanitizeElement,C,{tagName:ct,allowedTags:R}),cn(C,Y))return!0;if(Kh(C,ct))return Oe(C),!0;if(gt[ct]||!(bt.tagCheck instanceof Function&&bt.tagCheck(ct))&&!R[ct]){let ut=Zh(C,ct,Y);return ut===!1&&(er(Et.afterSanitizeElements,C,null),cn(C,Y))?!0:ut}if(k(C)===fe.element&&!Ee(C)||(ct===\"noscript\"||ct===\"noembed\"||ct===\"noframes\")&&we(ly,C.innerHTML))return Oe(C),!0;if(re&&C.nodeType===fe.text){let ut=ui(C.textContent);C.textContent!==ut&&(ti(t.removed,{element:C.cloneNode()}),C.textContent=ut)}return er(Et.afterSanitizeElements,C,null),cn(C,Y)},Ps=function(C,Y,ct){if(St[Y]||As(Y,C)||Vr&&(Y===\"id\"||Y===\"name\")&&(ct in e||ct in yt))return!1;let ut=tt[Y]||bt.attributeCheck instanceof Function&&bt.attributeCheck(Y,C);return zt&&we(jt,Y)||At&&we(qt,Y)?!0:ut?li[Y]||we(D,ri(ct,it,\"\"))||(Y===\"src\"||Y===\"xlink:href\"||Y===\"href\")&&C!==\"script\"&&ih(ct,\"data:\")===0&&ai[C]||Mt&&!we(x,ri(ct,it,\"\"))?!0:!ct:Is(C)&&di(V.tagNameCheck,C)&&di(V.attributeNameCheck,Y,C)||Y===\"is\"&&V.allowCustomizedBuiltInElements&&di(V.tagNameCheck,ct)},Jh=Gt({},[\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-format\",\"font-face-name\",\"font-face-src\",\"font-face-uri\",\"missing-glyph\"]),Is=function(C){return!Jh[sn(C)]&&we(Q,C)},Qh=function(C,Y,ct,ut){if(_&&typeof h==\"object\"&&typeof h.getAttributeType==\"function\"&&!ct)switch(h.getAttributeType(C,Y)){case\"TrustedHTML\":return ot(ut);case\"TrustedScriptURL\":return et(ut)}return ut},td=function(C,Y,ct,ut){try{return ct?C.setAttributeNS(ct,Y,ut):C.setAttribute(Y,ut),hi(C)?(Oe(C),!1):!0}catch{return ar(Y,C),!1}},Os=function(C,Y){return he&&we(/((--!?|])>)|<\\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Y)?!0:sn(C)===\"attributename\"&&nh(Y,\"href\")!==null},To=function(C,Y){if(er(Et.beforeSanitizeAttributes,C,null),cn(C,Y))return;let ct=C.attributes;if(!ct||hi(C))return;tt=Rs(Et.uponSanitizeAttribute,tt,ht,Je);let ut={attrName:\"\",attrValue:\"\",keepAttr:!0,allowedAttributes:tt,forceKeepAttr:void 0},Nt=ct.length,Lt=j(C.nodeName);for(;Nt--;){let Bt=ct[Nt],me=Bt.name,sr=Bt.namespaceURI,ke=Bt.value,Le=j(me),un=ke,_e=me===\"value\"?un:Yb(un),Ls=!1;if(ut.attrName=Le,ut.attrValue=_e,ut.keepAttr=!0,ut.forceKeepAttr=void 0,er(Et.uponSanitizeAttribute,C,ut),_e=ut.attrValue,fr&&(Le===\"id\"||Le===\"name\")&&ih(_e,Qe)!==0&&(ar(me,C,Bt),_e=Qe+_e,Ls=!0),Os(me,_e)){ar(me,C,Bt);continue}if(!ut.forceKeepAttr){if(!ut.keepAttr){ar(me,C,Bt);continue}if(!ue&&we(fh,_e)){ar(me,C,Bt);continue}if(re&&(_e=ui(_e)),!Ps(Lt,Le,_e)){ar(me,C,Bt);continue}_e=Qh(Lt,Le,sr,_e),_e!==un&&td(C,me,sr,_e)&&Ls&&rh(t.removed)}}er(Et.afterSanitizeAttributes,C,null),cn(C,Y)},On=function(C){let Y=null,ct=xo(C);for(er(Et.beforeSanitizeShadowDOM,C,null);Y=ct.nextNode();)if(er(Et.uponSanitizeShadowNode,Y,null),vo(Y,C),To(Y,C),_r(Y.content)&&On(Y.content),k(Y)===fe.element){let ut=T(Y);_r(ut)&&(So(ut),On(ut))}re&&Ns(C),er(Et.afterSanitizeShadowDOM,C,null)},So=function(C){let Y=[{node:C,shadow:null}];for(;Y.length>0;){let ct=Y.pop();if(ct.shadow){On(ct.shadow);continue}let ut=ct.node,Nt=k(ut)===fe.element,Lt=g(ut);if(Lt)for(let Bt=Lt.length-1;Bt>=0;--Bt)Y.push({node:Lt[Bt],shadow:null});if(Nt){let Bt=O?O(ut):null;if(typeof Bt==\"string\"&&j(Bt)===\"template\"){let me=ut.content;_r(me)&&Y.push({node:me,shadow:null})}}if(Nt){let Bt=T(ut);_r(Bt)&&Y.push({node:null,shadow:Bt},{node:Bt,shadow:null})}}};return t.sanitize=function(pt){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,ct=null,ut=null,Nt=null;if(Pn=!pt,Pn&&(pt=\"<!-->\"),typeof pt!=\"string\"&&!In(pt)&&(pt=Xb(pt),typeof pt!=\"string\"))throw Cr(\"dirty is not a string, aborting\");if(!t.isSupported)return pt;Zt?(R=We,tt=Je):xt(C),(Et.uponSanitizeElement.length>0||Et.uponSanitizeAttribute.length>0)&&(R=$e(R)),Et.uponSanitizeAttribute.length>0&&(tt=$e(tt)),t.removed=[];let Lt=Rn&&typeof pt!=\"string\"&&In(pt),Bt=[],me=Ue;if(Lt){qh(pt);let Le=W(pt);if(typeof Le==\"string\"){let un=j(Le);if(!R[un]||gt[un])throw tr(pt),Cr(\"root node is forbidden and cannot be sanitized in-place\")}if(hi(pt))throw tr(pt),Cr(\"root node is clobbered and cannot be sanitized in-place\");Bt=yo(pt),Ue=cs()}else if(In(pt))Y=Cs(\"<!---->\"),ct=Y.ownerDocument.importNode(pt,!0),ct.nodeType===fe.element&&ct.nodeName===\"BODY\"||ct.nodeName===\"HTML\"?Y=ct:Y.appendChild(ct),So(Y);else{if(!He&&!re&&!Te&&pt.indexOf(\"<\")===-1)return _&&Rr?ot(pt):pt;if(Y=Cs(pt),!Y)return He?null:Rr?y:\"\"}Y&&Se&&Oe(Y.firstChild);let sr=Lt?pt:Y;try{Lt&&So(pt);let Le=xo(sr);for(;ut=Le.nextNode();)vo(ut,sr),To(ut,sr),_r(ut.content)&&On(ut.content);Lt&&jh(pt,Bt)}catch(Le){throw Lt&&(tr(pt),ks(pt,Bt)),Le}finally{Ue=me}if(Lt){if(ks(pt,Bt))throw Cr(\"a node selected for removal could not be safely returned; refusing to sanitize in place\");return re&&wo(pt),pt}if(He){if(re&&wo(Y),Nr)for(Nt=ft.call(Y.ownerDocument);Y.firstChild;)Nt.appendChild(Y.firstChild);else Nt=Y;return(tt.shadowroot||tt.shadowrootmode)&&(Nt=Xt.call(r,Nt,!0)),Nt}let ke=Te?Y.outerHTML:Y.innerHTML;return Te&&R[\"!doctype\"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&we(ay,Y.ownerDocument.doctype.name)&&(ke=\"<!DOCTYPE \"+Y.ownerDocument.doctype.name+`>\n`+ke),re&&(ke=ui(ke)),_&&Rr?ot(ke):ke},t.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xt(pt),Zt=!0,We=R,Je=tt},t.clearConfig=function(){mt=null,Zt=!1,We=null,Je=null,_=H,y=\"\"},t.isValidAttribute=function(pt,C,Y){mt||xt({});let ct=j(pt),ut=j(C);return typeof Y==\"string\"&&(Os(C,Y)||!ue&&we(fh,Y))?!1:Ps(ct,ut,Y)},t.addHook=function(pt,C){typeof C==\"function\"&&Me(Et,pt)&&ti(Et[pt],C)},t.removeHook=function(pt,C){if(Me(Et,pt)){if(C!==void 0){let Y=Hb(Et[pt],C);return Y===-1?void 0:zb(Et[pt],Y,1)[0]}return rh(Et[pt])}},t.removeHooks=function(pt){Me(Et,pt)&&(Et[pt]=[])},t.removeAllHooks=function(){Et=ph()},t}var vh=wh();var Th=new WeakMap,Sh=new WeakMap,dy=n=>{let t=Th.get(n);if(t)return t;let e=vh(n);return e.isSupported?(Th.set(n,e),e):null},fy=n=>{let t=Sh.get(n);if(t)return t;let e=n.trustedTypes;if(!e?.createPolicy)return null;try{let r=e.createPolicy(\"file-viewer-document-sanitizer\",{createHTML:i=>i,createScriptURL:i=>i});return Sh.set(n,r),r}catch{return null}};function Eh(n,t,e){let r=dy(t);if(!r)return null;let i=fy(t);try{return r.sanitize(n,{...e,...i?{TRUSTED_TYPES_POLICY:i}:{}})}catch{return null}}async function py(n){if(n instanceof ArrayBuffer)return n;if(ArrayBuffer.isView(n)){let t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),t.buffer}if(typeof Blob<\"u\"&&n instanceof Blob)return await n.arrayBuffer();if(typeof n==\"string\"){let t=await fetch(n);if(!t.ok)throw new Error(`Failed to fetch document: ${t.status}`);return await t.arrayBuffer()}throw new TypeError(\"Unsupported input type\")}function kh(n,t){let e=Eh(n,t,{RETURN_DOM_FRAGMENT:!0,USE_PROFILES:{html:!0},FORBID_TAGS:[\"base\",\"embed\",\"form\",\"iframe\",\"object\",\"script\",\"style\",\"template\"],FORBID_ATTR:[\"action\",\"formaction\",\"srcdoc\"]});if(e?.nodeType===11)return e;let r=t.document.createDocumentFragment();return r.append(t.document.createTextNode(n)),r}function ws(n,t){if(!n)throw new Error(\"A container element is required\");let e=n.ownerDocument.defaultView;if(!e)throw new Error(\"The container must belong to a browser document\");let r=n.ownerDocument.createElement(\"style\");r.dataset.msdoc=\"\",r.textContent=t.css;let i=n.ownerDocument.createElement(\"div\");return i.className=\"msdoc-root\",i.append(kh(t.html,e)),n.replaceChildren(r,i),n}async function Ah(n,t={}){let e=await py(n);if(t.workerClient)return t.workerClient.parseToHtml(e,{parseOptions:t.parseOptions||{},renderOptions:t.renderOptions||{}});let r=Bu(e,t.parseOptions||{});return Qu(r,t.renderOptions||{})}function vs(n,t={}){let e=null;return{async load(r,i={}){let o=await Ah(r,{workerClient:i.workerClient||t.workerClient,parseOptions:{...t.parseOptions||{},...i.parseOptions||{}},renderOptions:{...t.renderOptions||{},...i.renderOptions||{}}});return ws(n,o),e=o,o},mount(r){return e=r,ws(n,r)},clear(){n.replaceChildren(),e=null},destroy(){this.clear()},get value(){return e}}}var mo=Ms(Bh());function $h(n){let t=mo.read(n,{type:\"array\"}),e=u=>{let f=mo.find(t,`/${u}`);if(!f||f.type!==2)throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 Word \\u6587\\u6863\");let d=Uint8Array.from(f.content);return new DataView(d.buffer)},r=e(\"WordDocument\");if(r.getUint16(0,!0)!==42476||r.getUint16(2,!0)<193)throw new Error(\"\\u6B64\\u65E7\\u7248 Word \\u683C\\u5F0F\\u6682\\u4E0D\\u652F\\u6301\");if(r.getUint16(10,!0)&33024)throw new Error(\"\\u8BF7\\u5148\\u5728 Word \\u4E2D\\u89E3\\u9664\\u6587\\u4EF6\\u5BC6\\u7801\");let i=34+r.getUint16(32,!0)*2;if(i+=2+r.getUint16(i,!0)*4,r.getUint16(i,!0)<7)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");i+=50;let o=e(r.getUint16(10,!0)&512?\"1Table\":\"0Table\"),a=r.getUint32(i,!0),s=r.getUint32(i+4,!0),l=(s-4)/16;if(!Number.isInteger(l)||l<1||l>1e3||a+s>o.byteLength)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");let c={width:12240,height:15840,left:1800,right:1800,top:1440,bottom:1440,sections:l},h=o.getUint32(a+(l+1)*4+2,!0);if(h!==4294967295){let u=h+2+r.getUint16(h,!0);if(u>r.byteLength)throw new Error(\"Word \\u5206\\u8282\\u4FE1\\u606F\\u65E0\\u6548\");let f={45087:\"width\",45088:\"height\",45089:\"left\",45090:\"right\",36899:\"top\",36900:\"bottom\"};for(let d=h+2;d<u;){let p=r.getUint16(d,!0);d+=2;let m=p>>>13,g=m===6?1+r.getUint8(d):[1,1,2,4,2,2,0,3][m];if(d+g>u)throw new Error(\"Word \\u5206\\u8282\\u5C5E\\u6027\\u65E0\\u6548\");let b=f[p];b&&(c[b]=Math.abs(p===36899||p===36900?r.getInt16(d,!0):r.getUint16(d,!0))),d+=g}}if(c.width<144||c.height<144||c.width>31680||c.height>31680||c.left+c.right>=c.width||c.top+c.bottom>=c.height)throw new Error(\"Word \\u9875\\u9762\\u5C3A\\u5BF8\\u65E0\\u6548\");return c}var Wh=n=>zn(n);function Sy(n){if(!n.length||n.length>50*1024*1024)throw new Error(\"Word \\u6587\\u6863\\u5FC5\\u987B\\u5C0F\\u4E8E 50 MiB\");if(n[0]===80&&n[1]===75){let t=0,e=0,r=Gs(n,{filter(i){if(++t>2e3||i.originalSize>20*1024*1024||(e+=i.originalSize)>100*1024*1024)throw new Error(\"Word \\u6587\\u6863\\u5C55\\u5F00\\u540E\\u8D85\\u8FC7\\u9884\\u89C8\\u9650\\u5236\");if(i.name.startsWith(\"/\")||i.name.includes(\"\\\\\")||i.name.split(\"/\").includes(\"..\"))throw new Error(\"Word \\u6587\\u6863\\u8DEF\\u5F84\\u65E0\\u6548\");return/\\.(xml|rels)$/i.test(i.name)}});if(!r[\"word/document.xml\"])throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 DOCX \\u6587\\u4EF6\");for(let i of Object.values(r))if(/<!DOCTYPE|<!ENTITY/i.test(new TextDecoder().decode(i)))throw new Error(\"Word \\u6587\\u6863\\u5305\\u542B\\u4E0D\\u652F\\u6301\\u7684 XML \\u58F0\\u660E\");return\"docx\"}if([208,207,17,224,161,177,26,225].every((t,e)=>n[e]===t))return\"doc\";throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 DOC/DOCX \\u6587\\u4EF6\")}async function Hh(n,t){if(Sy(n)===\"docx\"){await ec(n,t,t,{useWorker:!1,awaitLayout:!0,strictWordCompatibility:!0,maxDynamicPaginationPasses:30,ignoreLastRenderedPageBreak:!1,breakPages:!0,ignoreWidth:!1,ignoreHeight:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,renderAltChunks:!1,externalResourcePolicy:\"block\",externalLinkPolicy:\"block\",useBase64URL:!0,renderPageBatchSize:4,renderYieldEveryMs:12});let a=[...t.querySelectorAll(\"section.docx\")];if(!a.length||a.length>1e3)throw zn(t),new Error(\"Word \\u9875\\u6570\\u8D85\\u51FA\\u9884\\u89C8\\u9650\\u5236\");return{pages:a,note:\"\\u6309 DOCX \\u539F\\u59CB\\u9875\\u9762\\u548C\\u6837\\u5F0F\\u6E32\\u67D3\\u3002\\u7F3A\\u5C11\\u5B57\\u4F53\\u3001\\u590D\\u6742\\u6D6E\\u52A8\\u5BF9\\u8C61\\u6216\\u517C\\u5BB9\\u6A21\\u5F0F\\u53EF\\u80FD\\u5BFC\\u81F4\\u4E0E Word \\u7684\\u5206\\u9875\\u5B58\\u5728\\u5DEE\\u5F02\\u3002\",dispose:()=>zn(t)}}let r=$h(n),i=vs(t,{parseOptions:{maxPictureBytes:5*1024*1024},renderOptions:{externalLinkPolicy:\"block\",externalResourcePolicy:\"block\"}});await i.load(n);let o=t.querySelector(\".msdoc-root\");return o.style.cssText=`width:${r.width/15}px;min-height:${r.height/15}px;padding:${r.top/15}px ${r.right/15}px ${r.bottom/15}px ${r.left/15}px;max-width:none`,o.classList.add(\"word-legacy-page\"),{pages:[o],note:\"\\u65E7\\u7248 DOC \\u6309\\u4E8C\\u8FDB\\u5236\\u5B57\\u4F53\\u3001\\u6BB5\\u843D\\u3001\\u8868\\u683C\\u548C\\u5185\\u5D4C\\u56FE\\u7247\\u6837\\u5F0F\\u6E32\\u67D3\\uFF0C\\u91C7\\u7528\\u9996\\u8282\\u7EB8\\u5F20\\u53CA\\u9875\\u8FB9\\u8DDD\\u3002\\u5F53\\u524D\\u5F15\\u64CE\\u4E0D\\u8FD8\\u539F\\u5B8C\\u6574\\u7684\\u5206\\u9875\\u3001\\u5206\\u8282\\u548C\\u9875\\u7709\\u9875\\u811A\\uFF1B\\u590D\\u6742\\u6587\\u4EF6\\u5EFA\\u8BAE\\u53E6\\u5B58\\u4E3A DOCX \\u540E\\u67E5\\u770B\\u3002\",dispose:()=>i.destroy()}}var Uh=`Word Preview for Tano \\u2014 MIT\n\n\n@file-viewer/doc@3.3.3\nMIT License\n\nCopyright (c) 2026 msdoc-viewer contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n@file-viewer/docx@0.3.39\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) 2016-2023 Volodymyr Baydalka\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\nadler-32@1.3.1\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2014-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ncfb@1.2.2\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2013-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ncore-util-is@1.0.3\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\n\ncrc-32@1.2.2\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (C) 2014-present SheetJS LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\ndompurify@3.4.17\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\nfflate@0.8.3\nMIT License\n\nCopyright (c) 2026 Arjun Barrett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nimmediate@3.0.6\nCopyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\ninherits@2.0.4\nThe ISC License\n\nCopyright (c) Isaac Z. Schlueter\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n\n\nisarray@1.0.0\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\njszip@3.10.2\nJSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3\nlicense.\n\nThe MIT License\n===============\n\nCopyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, Ant\\xF3nio Afonso\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nGPL version 3\n=============\n\n GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n\npako@1.0.11\n(The MIT License)\n\nCopyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nlie@3.3.0\n#Copyright (c) 2014-2018 Calvin Metcalf, Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n**THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**\n\n\nprocess-nextick-args@2.0.1\n# Copyright (c) 2015 Calvin Metcalf\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n**THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.**\n\n\nreadable-stream@2.3.8\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\nsafe-buffer@5.1.2\nThe MIT License (MIT)\n\nCopyright (c) Feross Aboukhadijeh\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nsetimmediate@1.0.5\nCopyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\nstring_decoder@1.1.1\nNode.js is licensed for use as follows:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\n\n\nutil-deprecate@1.0.2\n(The MIT License)\n\nCopyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n`;function zh(n){let t=document.getElementById(\"app\");t.innerHTML='<p id=\"status\" role=\"status\">\\u8BF7\\u9009\\u62E9 DOC/DOCX \\u6587\\u4EF6</p><main tabindex=\"0\" aria-label=\"Word \\u6587\\u6863\\u9884\\u89C8\"><div id=\"paper\"></div></main><dialog><button id=\"close\">\\u5173\\u95ED</button><p id=\"note\"></p><details><summary>\\u5F00\\u6E90\\u8BB8\\u53EF</summary><pre></pre></details></dialog>';let e=Fs(t,\"word\"),r=t.querySelector(\"#status\"),i=t.querySelector(\"#paper\"),o=t.querySelector(\"main\"),a=t.querySelector(\"dialog\");a.querySelector(\"pre\").textContent=Uh,t.querySelector(\"#close\").onclick=()=>a.close();let s,l=0,c=1,h=!0,u=0,f=0,d=\"Word \\u6587\\u6863\\u9884\\u89C8\",p,m,g=()=>n.postMessage({type:\"header\",title:d,token:f,page:s?l+1:0,count:s?.pages.length??0,note:s?.note??\"\"}),b=v=>{r.textContent=v,r.hidden=!v};function T(){s?s.dispose():m&&Wh(m),s=void 0,m?.remove(),m=void 0,i.replaceChildren(),i.style.zoom=\"1\",o.scrollTop=0}function S(){if(!s)return;let v=Math.max(...s.pages.map(_=>_.offsetWidth));h&&(c=Math.min(1.5,Math.max(.05,(o.clientWidth-48)/(v+48)))),i.style.zoom=String(c)}function I(v){s&&(l=Math.max(0,Math.min(s.pages.length-1,v)),o.scrollTop+=s.pages[l].getBoundingClientRect().top-o.getBoundingClientRect().top-24,g())}async function O(v,_){let y=++u;T(),d=_,l=0,h=!0,e.show(),b(`\\u6B63\\u5728\\u6E32\\u67D3 ${_}\\u2026`),g();let H=document.createElement(\"div\");m=H,i.append(H),H.style.visibility=\"hidden\";try{if(await Ds(),y!==u)return;let nt=await Hh(v,H);if(y!==u){nt.dispose(),H.remove();return}s=nt,H.style.visibility=\"\",S(),a.querySelector(\"#note\").textContent=nt.note,e.hide(),b(\"\"),g()}catch(nt){y===u&&(T(),e.hide(),b(String(nt)),g())}}function $(v){(v===\"previous\"||v===\"next\")&&I(l+(v===\"next\"?1:-1)),v===\"fit\"&&(h=!0,S()),(v===\"minus\"||v===\"plus\")&&(h=!1,c=Math.max(.1,Math.min(4,c+(v===\"plus\"?.1:-.1))),S()),v===\"license\"&&!a.open&&a.showModal()}o.onkeydown=v=>{v.target!==o||v.altKey||v.ctrlKey||v.metaKey||((v.key===\"ArrowRight\"||v.key===\"ArrowLeft\")&&(v.preventDefault(),I(l+(v.key===\"ArrowRight\"?1:-1))),(v.key===\"Home\"||v.key===\"End\")&&(v.preventDefault(),I(v.key===\"Home\"?0:(s?.pages.length??1)-1)))};let k=0;o.onscroll=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{if(!s)return;let v=o.getBoundingClientRect().top,_=0,y=-1/0;s.pages.forEach((H,nt)=>{let J=H.getBoundingClientRect(),lt=Math.min(J.bottom,v+o.clientHeight)-Math.max(J.top,v);lt>y&&(y=lt,_=nt)}),l!==_&&(l=_,g())})};let W=new ResizeObserver(S);W.observe(o);let U=n.onState(async v=>{if(!v||typeof v!=\"object\"||Array.isArray(v))return;if(typeof v.action==\"string\"&&v.chunk===void 0){$(v.action);return}if(typeof v.token==\"number\"&&(f=v.token),v.loading){p=void 0,++u,T(),e.show(),b(\"\\u6B63\\u5728\\u8BFB\\u53D6\\u6587\\u4EF6\\u2026\");return}if(v.idle||typeof v.error==\"string\"){p=void 0,++u,T(),d=\"Word \\u6587\\u6863\\u9884\\u89C8\",e.hide(),b(typeof v.error==\"string\"?v.error:\"\\u8BF7\\u9009\\u62E9 DOC/DOCX \\u6587\\u4EF6\"),g();return}if(typeof v.chunk!=\"string\"||typeof v.token!=\"number\"||typeof v.total!=\"number\"||!Number.isSafeInteger(v.total)||v.total>50*1024*1024||v.total<0)return;v.offset===0&&(p={token:v.token,bytes:new Uint8Array(v.total),offset:0},++u,T(),e.show(),d=String(v.path),g());let _=p;if(!(!_||_.token!==v.token||v.offset!==_.offset))try{let y=Uint8Array.from(atob(v.chunk),H=>H.charCodeAt(0));if(!y.length||_.offset+y.length>_.bytes.length)throw new Error(\"\\u9644\\u4EF6\\u5206\\u5757\\u65E0\\u6548\");_.bytes.set(y,_.offset),_.offset+=y.length,b(`\\u8BFB\\u53D6\\u6587\\u4EF6 ${Math.round(_.offset/_.bytes.length*100)}%`),v.imported&&await n.postMessage({type:\"received\",token:_.token,offset:_.offset}),_.offset===_.bytes.length?(p=void 0,await O(_.bytes,String(v.path))):v.imported||(await new Promise(H=>setTimeout(H,25)),p===_&&await n.postMessage({offset:_.offset,token:_.token}))}catch(y){p===_&&(p=void 0,e.hide(),b(String(y)))}});addEventListener(\"pagehide\",()=>{++u,p=void 0,T(),W.disconnect(),U(),cancelAnimationFrame(k)},{once:!0})}return sd(ky);})();\n/*! Bundled license information:\n\njszip/dist/jszip.min.js:\n (*!\n \n JSZip v3.10.2 - A JavaScript class for generating and reading zip files\n <http://stuartk.com/jszip>\n \n (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>\n Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n \n JSZip uses the library pako released under the MIT license :\n https://github.com/nodeca/pako/blob/main/LICENSE\n *)\n\ncfb/cfb.js:\n (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)\n\n@file-viewer/docx/dist/docx-preview.mjs:\n (*!\n * @license @file-viewer/docx, derived from docx-preview\n * https://github.com/VolodymyrBaydalka/docxjs\n * Copyright Volodymyr Baydalka\n * Released under the Apache License 2.0. See LICENSE.\n * Bundled dependency notices: THIRD_PARTY_NOTICES.txt.\n *)\n (*! @license Adobe Symbol Encoding to Unicode\n * Copyright (c) 1991-2011 Unicode, Inc. All Rights reserved.\n *\n * This file is provided as-is by Unicode, Inc. (The Unicode Consortium). No\n * claims are made as to fitness for any particular purpose. No warranties of\n * any kind are expressed or implied. The recipient agrees to determine\n * applicability of information provided. If this file has been provided on\n * magnetic media by Unicode, Inc., the sole remedy for any claim will be\n * exchange of defective media within 90 days of receipt.\n *\n * Unicode, Inc. hereby grants the right to freely use the information\n * supplied in this file in the creation of products supporting the\n * Unicode Standard, and to make copies of this file in any form for\n * internal or external distribution as long as this notice remains\n * attached.\n *\n * Source: https://www.unicode.org/Public/MAPPINGS/VENDORS/ADOBE/symbol.txt\n *)\n\ndompurify/dist/purify.es.mjs:\n (*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE *)\n (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)\n*/\n\nawait TanoPluginView.default(tanoView);"}}}