hermes-web-ui 0.6.40 → 0.6.41

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 (287) hide show
  1. package/dist/client/assets/js/{AppSidebar-CaSVcbCW.js → AppSidebar-CNkSiv3l.js} +1 -1
  2. package/dist/client/assets/js/{ChannelsView-hdAXa1hf.js → ChannelsView-6rEo6RBl.js} +1 -1
  3. package/dist/client/assets/js/{ChatPanel-C6sX6idm.js → ChatPanel-ANAZWluc.js} +3 -3
  4. package/dist/client/assets/js/{ChatView-B68k_-D9.js → ChatView-DFcPsmRF.js} +1 -1
  5. package/dist/client/assets/js/{CodingAgentsView-CsIjwbXR.js → CodingAgentsView-CpIY0SHT.js} +1 -1
  6. package/dist/client/assets/js/{DefaultCredentialPrompt-BRhb4DOa.js → DefaultCredentialPrompt-DmNeotSW.js} +1 -1
  7. package/dist/client/assets/js/{DesktopBrowserPanel-BlBfS64w.js → DesktopBrowserPanel-CWjTU-3y.js} +1 -1
  8. package/dist/client/assets/js/{DesktopBrowserView-JukL0QuS.js → DesktopBrowserView-D9Qb3fIV.js} +1 -1
  9. package/dist/client/assets/js/{DesktopPetView-DWq4EiRU.js → DesktopPetView-B7REtC57.js} +1 -1
  10. package/dist/client/assets/js/{DesktopTitleBar-DphP4oa6.js → DesktopTitleBar-Dej_16hB.js} +1 -1
  11. package/dist/client/assets/js/{DevicesView-BFtrfqJs.js → DevicesView--d4HCkch.js} +1 -1
  12. package/dist/client/assets/js/{DocxFilePreview-CmVJ9Jxx.js → DocxFilePreview-BQz6WC7r.js} +2 -2
  13. package/dist/client/assets/js/{FileEditor-CdkNYp7b.js → FileEditor-BBegs-5i.js} +2 -2
  14. package/dist/client/assets/js/{FilePreview-CJrVRPRs.js → FilePreview-B7WqYvZs.js} +2 -2
  15. package/dist/client/assets/js/{FileRenameModal-mghyEXU4.js → FileRenameModal-82RkAZkd.js} +1 -1
  16. package/dist/client/assets/js/{FilesPanel-B9cKB5lX.js → FilesPanel-BHcg6CpC.js} +2 -2
  17. package/dist/client/assets/js/{FilesView-iKZu70E9.js → FilesView-Dl15WTar.js} +2 -2
  18. package/dist/client/assets/js/{GlobalAgentView-JZsss0gx.js → GlobalAgentView-dxEX611f.js} +1 -1
  19. package/dist/client/assets/js/{GlobalPendingActions-BRQIt5vl.js → GlobalPendingActions-CeK96C3G.js} +1 -1
  20. package/dist/client/assets/js/{GroupChatLinkView-CNrV8lnT.js → GroupChatLinkView-CJhI9DVE.js} +1 -1
  21. package/dist/client/assets/js/{GroupChatPanel-WK4zBasl.js → GroupChatPanel-CLa3s08V.js} +3 -3
  22. package/dist/client/assets/js/{GroupChatView-BlMUD1MW.js → GroupChatView-CUwvu-6F.js} +1 -1
  23. package/dist/client/assets/js/{HistoryMessageList-D8zoQ1Zs.js → HistoryMessageList-BdD8GJYM.js} +1 -1
  24. package/dist/client/assets/js/{HistoryView-Bpr8N2lC.js → HistoryView-Ro92tP5R.js} +1 -1
  25. package/dist/client/assets/js/{HtmlFilePreview-Bj3_-hMo.js → HtmlFilePreview-xYn7YtmC.js} +1 -1
  26. package/dist/client/assets/js/{JobsView-CZK26gTw.js → JobsView-BaNA1Yaa.js} +2 -2
  27. package/dist/client/assets/js/{JourneyView-BPUsLj4o.js → JourneyView-Bw-05mCF.js} +1 -1
  28. package/dist/client/assets/js/{KanbanView-B7d-2_z9.js → KanbanView-BYC32l2Q.js} +1 -1
  29. package/dist/client/assets/js/{LoginView-BpYyv831.js → LoginView-KrpCkwOr.js} +1 -1
  30. package/dist/client/assets/js/{LogsView-CabFHk0v.js → LogsView-Dgm4v5sN.js} +1 -1
  31. package/dist/client/assets/js/{MarkdownRenderer-CVtmHZwc.js → MarkdownRenderer-BIPowjr-.js} +3 -3
  32. package/dist/client/assets/js/{McpManagerView-C-ou8vf3.js → McpManagerView-DTtkUIvq.js} +1 -1
  33. package/dist/client/assets/js/{MemoryView-QGFW4iZo.js → MemoryView-BnL7xzux.js} +2 -2
  34. package/dist/client/assets/js/{MessageList-DZR-TFjD.js → MessageList-5tytzhb0.js} +3 -3
  35. package/dist/client/assets/js/{ModelsView-DiWdSWOW.js → ModelsView-ComCz0Ce.js} +1 -1
  36. package/dist/client/assets/js/{OutlinePanel-Dlr5svMY.js → OutlinePanel-CF_XPCRn.js} +1 -1
  37. package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js} +1 -1
  38. package/dist/client/assets/js/{PdfFilePreview-Dkpan1ay.js → PdfFilePreview-COOAoJ4V.js} +2 -2
  39. package/dist/client/assets/js/{PerformanceView-LrZaED_Z.js → PerformanceView-D6dKifJh.js} +1 -1
  40. package/dist/client/assets/js/{PetdexView-Bv8RioGL.js → PetdexView-CmvzDYwf.js} +1 -1
  41. package/dist/client/assets/js/{PluginsView-CbtdIGlq.js → PluginsView-zJV9FE9c.js} +1 -1
  42. package/dist/client/assets/js/{PptxFilePreview-5if_GbU6.js → PptxFilePreview-dC4JxV6j.js} +2 -2
  43. package/dist/client/assets/js/{ProfileAvatar-DI9ciJxS.js → ProfileAvatar-C8xoALCI.js} +1 -1
  44. package/dist/client/assets/js/{ProfilesView-C-FSiKMU.js → ProfilesView-CxVxJRN_.js} +1 -1
  45. package/dist/client/assets/js/{ProviderConfigurationPrompt-BUoWC41Y.js → ProviderConfigurationPrompt-zwk1UwoP.js} +1 -1
  46. package/dist/client/assets/js/{SessionSearchModal-CEKvSihp.js → SessionSearchModal-DhwGsV-i.js} +1 -1
  47. package/dist/client/assets/js/{SettingRow-CSfiJmxx.js → SettingRow-DHqhLX3M.js} +1 -1
  48. package/dist/client/assets/js/{SettingsCircuitBadge-DHIEFyTR.js → SettingsCircuitBadge-CnWSfQZd.js} +1 -1
  49. package/dist/client/assets/js/{SettingsView-DbNJroV3.js → SettingsView-Cbroga25.js} +1 -1
  50. package/dist/client/assets/js/{SharedGroupChatView-CTYjqWcO.js → SharedGroupChatView-DXfqtQ33.js} +1 -1
  51. package/dist/client/assets/js/{SkillsUsageView-BqZ3GtfT.js → SkillsUsageView-C34i3lOQ.js} +1 -1
  52. package/dist/client/assets/js/{SkillsView-Bhla7821.js → SkillsView-DRG_1esx.js} +2 -2
  53. package/dist/client/assets/js/{SpreadsheetFilePreview-CGK8HDAx.js → SpreadsheetFilePreview-DRw4kIx5.js} +1 -1
  54. package/dist/client/assets/js/{TerminalPanel-CtBTLOwq.js → TerminalPanel-Da1nL9P8.js} +1 -1
  55. package/dist/client/assets/js/{TerminalView-BID7fupB.js → TerminalView-B6z-VaGq.js} +1 -1
  56. package/dist/client/assets/js/{ThemeView-Cx3ucIus.js → ThemeView-CAaJ9MH-.js} +1 -1
  57. package/dist/client/assets/js/{UsageView-ByGCsw7o.js → UsageView-B_hLsp0k.js} +1 -1
  58. package/dist/client/assets/js/{VersionPreviewView-DiAK1ind.js → VersionPreviewView-DKXL6anl.js} +1 -1
  59. package/dist/client/assets/js/{WebPet-CdIqrnp1.js → WebPet-BUvrfjpq.js} +1 -1
  60. package/dist/client/assets/js/{WorkflowView-DmBOhSuq.js → WorkflowView-r46Ap9FY.js} +1 -1
  61. package/dist/client/assets/js/{WorkspaceDiffPreview-dHIGp-9F.js → WorkspaceDiffPreview-EwZAE18F.js} +2 -2
  62. package/dist/client/assets/js/{abap-Dj8IFKiF.js → abap-C7gkFu-A.js} +1 -1
  63. package/dist/client/assets/js/{aiden0z-pptx-renderer.es-6vi5-jAN.js → aiden0z-pptx-renderer.es-DOpVaH_k.js} +1 -1
  64. package/dist/client/assets/js/{apex-C3INPUEt.js → apex-DZOtRowu.js} +1 -1
  65. package/dist/client/assets/js/{ar-Gk9y3ZfO.js → ar-8iThLSJQ.js} +1 -1
  66. package/dist/client/assets/js/architecture-7EHR7CIX-BrfhYGuP.js +1 -0
  67. package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DLZYeivB.js → architectureDiagram-3BPJPVTR-DEsTTzKd.js} +1 -1
  68. package/dist/client/assets/js/{auth-D1ZFqv22.js → auth-B52zm2Ir.js} +1 -1
  69. package/dist/client/assets/js/{azcli-UBzLhJq5.js → azcli-KxuicZQh.js} +1 -1
  70. package/dist/client/assets/js/{bat-P3O4jldt.js → bat-DfFP4HF-.js} +1 -1
  71. package/dist/client/assets/js/{bicep-DdQR9RxE.js → bicep-Co4bntVh.js} +1 -1
  72. package/dist/client/assets/js/{blockDiagram-GPEHLZMM-UWFo8sm5.js → blockDiagram-GPEHLZMM-NsxYeUKd.js} +1 -1
  73. package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js} +1 -1
  74. package/dist/client/assets/js/{cameligo-Bb4ubW_C.js → cameligo-Xi0l_9Wr.js} +1 -1
  75. package/dist/client/assets/js/{chat-DdHii4Qz.js → chat-fUZW3YFa.js} +1 -1
  76. package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js} +1 -1
  77. package/dist/client/assets/js/{chat-timestamp-DGQ8fmtT.js → chat-timestamp-4wWFcZWv.js} +1 -1
  78. package/dist/client/assets/js/{chunk-2J33WTMH-Br9OWF5a.js → chunk-2J33WTMH-CEU5sLIh.js} +1 -1
  79. package/dist/client/assets/js/{chunk-3OPIFGDE-Cb40LuI4.js → chunk-3OPIFGDE-DEhbKkCl.js} +1 -1
  80. package/dist/client/assets/js/{chunk-4BX2VUAB-jYtdiafd.js → chunk-4BX2VUAB-OIZUstuy.js} +1 -1
  81. package/dist/client/assets/js/{chunk-55IACEB6-CBtymeHY.js → chunk-55IACEB6-DQHKZCBG.js} +1 -1
  82. package/dist/client/assets/js/{chunk-5ZQYHXKU-yj9xqmex.js → chunk-5ZQYHXKU-BU3pQVVl.js} +1 -1
  83. package/dist/client/assets/js/{chunk-727SXJPM-er_5tB5X.js → chunk-727SXJPM-jj97gdnP.js} +1 -1
  84. package/dist/client/assets/js/{chunk-AQP2D5EJ-C4mDD6xK.js → chunk-AQP2D5EJ-jv-oWlkb.js} +1 -1
  85. package/dist/client/assets/js/{chunk-BSJP7CBP-QZesZe57.js → chunk-BSJP7CBP-DkKsepNF.js} +1 -1
  86. package/dist/client/assets/js/{chunk-CSCIHK7Q-5LH118bT.js → chunk-CSCIHK7Q-CLgoBoCF.js} +3 -3
  87. package/dist/client/assets/js/{chunk-FMBD7UC4-CQho6QZ5.js → chunk-FMBD7UC4-Bx1bCKUR.js} +1 -1
  88. package/dist/client/assets/js/{chunk-KSCS5N6A-DONM1Omv.js → chunk-KSCS5N6A-CZHZ6pBd.js} +1 -1
  89. package/dist/client/assets/js/{chunk-L5ZTLDWV-FN_zFWkp.js → chunk-L5ZTLDWV-dz9D3kOb.js} +1 -1
  90. package/dist/client/assets/js/{chunk-LZXEDZCA-CEEUVvpS.js → chunk-LZXEDZCA-CQiSQehC.js} +2 -2
  91. package/dist/client/assets/js/{chunk-ND2GUHAM-DWckpxQD.js → chunk-ND2GUHAM-mWODKb8v.js} +1 -1
  92. package/dist/client/assets/js/{chunk-NZK2D7GU-0mKZmkuV.js → chunk-NZK2D7GU-ivCkjCOR.js} +1 -1
  93. package/dist/client/assets/js/{chunk-O5CBEL6O-DIDAOkT_.js → chunk-O5CBEL6O-BRUisK47.js} +1 -1
  94. package/dist/client/assets/js/{chunk-QZHKN3VN-D3c-TMz-.js → chunk-QZHKN3VN-BHjgTrzY.js} +1 -1
  95. package/dist/client/assets/js/{chunk-WU5MYG2G-BZvSpwm4.js → chunk-WU5MYG2G-CNW1rcpL.js} +1 -1
  96. package/dist/client/assets/js/{chunk-XPW4576I-xdyJtk-s.js → chunk-XPW4576I-DP3dJbOu.js} +1 -1
  97. package/dist/client/assets/js/classDiagram-4FO5ZUOK-BVBBe3DQ.js +1 -0
  98. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-DJUe3i9Y.js +1 -0
  99. package/dist/client/assets/js/{clipboard-DQ_A8ns-.js → clipboard-DHZFaAvO.js} +1 -1
  100. package/dist/client/assets/js/{clipboard-files-bDrcGKPe.js → clipboard-files-CBDy-02Y.js} +1 -1
  101. package/dist/client/assets/js/{clojure-ku7aCU1_.js → clojure-DuyGwS8X.js} +1 -1
  102. package/dist/client/assets/js/{coding-agents-DfHyBvky.js → coding-agents-BNTHD6kd.js} +1 -1
  103. package/dist/client/assets/js/{codingAgentProviders-BM18FAW9.js → codingAgentProviders-DM_ouxbL.js} +1 -1
  104. package/dist/client/assets/js/{coffee-DnRIdJlY.js → coffee-C5p7vzpa.js} +1 -1
  105. package/dist/client/assets/js/{completion-notification-XxjbntI8.js → completion-notification-CzdnhuX3.js} +1 -1
  106. package/dist/client/assets/js/{cose-bilkent-S5V4N54A-w891sIF1.js → cose-bilkent-S5V4N54A-De_ZdqY0.js} +1 -1
  107. package/dist/client/assets/js/{cpp-CN8i6ISX.js → cpp-II5hDbTe.js} +1 -1
  108. package/dist/client/assets/js/{csharp-B-fxig7O.js → csharp-D0POzSpv.js} +1 -1
  109. package/dist/client/assets/js/{csp-Bar9LGt4.js → csp-CwtuRkR3.js} +1 -1
  110. package/dist/client/assets/js/{css-DFtC5xZN.js → css-Dc2fJIqQ.js} +1 -1
  111. package/dist/client/assets/js/{cssMode-DH5XKKL2.js → cssMode-CC6jRvHF.js} +1 -1
  112. package/dist/client/assets/js/{cypher-BkJexWsv.js → cypher-DBcQoWDH.js} +1 -1
  113. package/dist/client/assets/js/{cytoscape.esm-BDsvr8Aq.js → cytoscape.esm-C9FMRqxM.js} +1 -1
  114. package/dist/client/assets/js/{dagre-BM42HDAG-BuT885pa.js → dagre-BM42HDAG-CvJIC410.js} +1 -1
  115. package/dist/client/assets/js/{dagre-BVUDh8Sh.js → dagre-BtgEsAtK.js} +1 -1
  116. package/dist/client/assets/js/{dart-B7W8hAtN.js → dart-Jf_Hmp2o.js} +1 -1
  117. package/dist/client/assets/js/{de-LDpd8WHJ.js → de-7hLSwCEx.js} +1 -1
  118. package/dist/client/assets/js/{defineProperty-DdPu4ZVv.js → defineProperty-DHkErCmG.js} +1 -1
  119. package/dist/client/assets/js/{desktop-browser-xrRFPNUg.js → desktop-browser-C6AhY0uu.js} +1 -1
  120. package/dist/client/assets/js/{diagram-2AECGRRQ-B1sSf-09.js → diagram-2AECGRRQ-CvPeU5Lm.js} +1 -1
  121. package/dist/client/assets/js/{diagram-5GNKFQAL-BffX22pf.js → diagram-5GNKFQAL-CBniYlkH.js} +1 -1
  122. package/dist/client/assets/js/{diagram-KO2AKTUF-D8QvpUpn.js → diagram-KO2AKTUF-C_yFaVRj.js} +1 -1
  123. package/dist/client/assets/js/{diagram-LMA3HP47-DkG7p3lQ.js → diagram-LMA3HP47-BzM1IxNe.js} +1 -1
  124. package/dist/client/assets/js/{diagram-OG6HWLK6-RjvNNvXM.js → diagram-OG6HWLK6-yvmf_3ax.js} +1 -1
  125. package/dist/client/assets/js/{dist-Bk0VKtV3.js → dist-BHzBn3v7.js} +1 -1
  126. package/dist/client/assets/js/{dockerfile-C4m7j8sy.js → dockerfile-J3d6ZPDJ.js} +1 -1
  127. package/dist/client/assets/js/{docx-preview-BpTW-GN7.js → docx-preview-Rqt8wMjQ.js} +1 -1
  128. package/dist/client/assets/js/{download-CX8EG48r.js → download-xhRMWMda.js} +1 -1
  129. package/dist/client/assets/js/{ecl-EHV358Ls.js → ecl-XnlT0p97.js} +1 -1
  130. package/dist/client/assets/js/{editor.api2-CnHBqh_d.js → editor.api2-ChO5nUQb.js} +1 -1
  131. package/dist/client/assets/js/{elixir-DLfp2Dwn.js → elixir-BEJbxH-B.js} +1 -1
  132. package/dist/client/assets/js/{en-D6VVFwFU.js → en-D2WSXgkM.js} +1 -1
  133. package/dist/client/assets/js/{erDiagram-TEJ5UH35-CLlLC6xx.js → erDiagram-TEJ5UH35-DZysD9r9.js} +1 -1
  134. package/dist/client/assets/js/{es-BIMLuyVP.js → es-B7Mq1P0U.js} +1 -1
  135. package/dist/client/assets/js/{esm-C8D4M0Yn.js → esm-DnZPPtmx.js} +1 -1
  136. package/dist/client/assets/js/eventmodeling-FCH6USID-vlE3-g2j.js +1 -0
  137. package/dist/client/assets/js/{file-preview-BvgwVZXh.js → file-preview-C417aixJ.js} +1 -1
  138. package/dist/client/assets/js/{files-CJkCqsUx.js → files-DjI-npgn.js} +1 -1
  139. package/dist/client/assets/js/{flow9-CtBaUnAi.js → flow9-j5XT_8TQ.js} +1 -1
  140. package/dist/client/assets/js/{flowDiagram-I6XJVG4X-VTRTPnqD.js → flowDiagram-I6XJVG4X-Dt5ZtyHz.js} +1 -1
  141. package/dist/client/assets/js/{fr-C2lf0cY2.js → fr-DvClrDOw.js} +1 -1
  142. package/dist/client/assets/js/{freemarker2-XLeMvhl_.js → freemarker2-BzCf_0SN.js} +1 -1
  143. package/dist/client/assets/js/{fsharp-Db0uaBQv.js → fsharp-ClU_Sdjr.js} +1 -1
  144. package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-CdKcIZ8_.js → ganttDiagram-6RSMTGT7-Bca3rPWi.js} +1 -1
  145. package/dist/client/assets/js/gitGraph-WXDBUCRP-Cyd4P6XH.js +1 -0
  146. package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-Bcuyw6fo.js → gitGraphDiagram-PVQCEYII-Co29qnTg.js} +1 -1
  147. package/dist/client/assets/js/{go-DwaTlB-B.js → go-D3iUyCM0.js} +1 -1
  148. package/dist/client/assets/js/{graphlib-vAI4Pw7R.js → graphlib-Bln6qd-Z.js} +1 -1
  149. package/dist/client/assets/js/{graphql-Cf2XhNJR.js → graphql-z8koqyyL.js} +1 -1
  150. package/dist/client/assets/js/{group-agent-avatar-CPehpiK0.js → group-agent-avatar-CwqtaKGw.js} +1 -1
  151. package/dist/client/assets/js/{group-chat-CY62vc77.js → group-chat-Buz8HP-N.js} +1 -1
  152. package/dist/client/assets/js/{group-chat-xkdjC2Jt.js → group-chat-CgFAwCtr.js} +1 -1
  153. package/dist/client/assets/js/{group-chat-agent-link-DdSNKasF.js → group-chat-agent-link-N5IFeN_j.js} +1 -1
  154. package/dist/client/assets/js/{handlebars-CNEKu_p8.js → handlebars-C_JvhUYs.js} +1 -1
  155. package/dist/client/assets/js/{hcl-6UZbq6h2.js → hcl-X7TzviIX.js} +1 -1
  156. package/dist/client/assets/js/{highlight-DwtBT6t1.js → highlight-C4yUBxwQ.js} +1 -1
  157. package/dist/client/assets/js/{html-DfSIHhKA.js → html-B-rCQB0N.js} +1 -1
  158. package/dist/client/assets/js/{htmlMode-iGw9-O-W.js → htmlMode-CAeEf_yf.js} +1 -1
  159. package/dist/client/assets/js/{index-DnjQJzX4.js → index-DN4SafrP.js} +5 -5
  160. package/dist/client/assets/js/info-J43DQDTF-B9tkQ2Sb.js +1 -0
  161. package/dist/client/assets/js/{infoDiagram-5YYISTIA-85450Zam.js → infoDiagram-5YYISTIA-BWQGayms.js} +1 -1
  162. package/dist/client/assets/js/{ini-8em8V_Af.js → ini-LTHHN4J-.js} +1 -1
  163. package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-BZ4az7UA.js → ishikawaDiagram-YF4QCWOH-Dhuplz_z.js} +1 -1
  164. package/dist/client/assets/js/{ja-C1bBXgr_.js → ja-D7BeX2_D.js} +1 -1
  165. package/dist/client/assets/js/{java-CP1MdIkO.js → java-BRFX-ya0.js} +1 -1
  166. package/dist/client/assets/js/{javascript-Cr8_LHYa.js → javascript-ZXiVmjXn.js} +1 -1
  167. package/dist/client/assets/js/{journeyDiagram-JHISSGLW-DGMB8Tgc.js → journeyDiagram-JHISSGLW-CJeatAU9.js} +1 -1
  168. package/dist/client/assets/js/{jsonMode-HCZ-1lFH.js → jsonMode-C6FcMe0o.js} +1 -1
  169. package/dist/client/assets/js/{jszip.min-BkR6b8DY.js → jszip.min-skZCUzWf.js} +1 -1
  170. package/dist/client/assets/js/{julia-DMTMxa5q.js → julia-Bph8N3CL.js} +1 -1
  171. package/dist/client/assets/js/{kanban-definition-UN3LZRKU-F5cH_RpB.js → kanban-definition-UN3LZRKU-tvWuOdSr.js} +1 -1
  172. package/dist/client/assets/js/{katex-CYbEJAbZ.js → katex-hSGJNERm.js} +1 -1
  173. package/dist/client/assets/js/{ko-qgOeHd8L.js → ko-BsVa-If_.js} +1 -1
  174. package/dist/client/assets/js/{kotlin-Blzus47W.js → kotlin-_c4-tPQp.js} +1 -1
  175. package/dist/client/assets/js/{less-DWCHpDyf.js → less-5oVo4jfQ.js} +1 -1
  176. package/dist/client/assets/js/{lexon-YXdlYGbJ.js → lexon-DE4YtGwF.js} +1 -1
  177. package/dist/client/assets/js/{liquid-DSQgvRwe.js → liquid-BGfieGMG.js} +1 -1
  178. package/dist/client/assets/js/{lspLanguageFeatures-0Hx2Vnc-.js → lspLanguageFeatures-DU_1H2uW.js} +1 -1
  179. package/dist/client/assets/js/{lua-Cyv3mTkg.js → lua-7WJSZJqD.js} +1 -1
  180. package/dist/client/assets/js/{m3-CPY3Ym7_.js → m3-gZlfoR19.js} +1 -1
  181. package/dist/client/assets/js/{markdown-DaPQ1nuG.js → markdown-BYF71orA.js} +1 -1
  182. package/dist/client/assets/js/{mdx-BqA6Xr9V.js → mdx-CunEIV3g.js} +1 -1
  183. package/dist/client/assets/js/{mermaid-parser.core-D4HRUOce.js → mermaid-parser.core-DU_SX15F.js} +3 -3
  184. package/dist/client/assets/js/{mermaid.core-w6kHmgOG.js → mermaid.core-8vsbhG5J.js} +3 -3
  185. package/dist/client/assets/js/{message-scroll-position-C5yRCyBU.js → message-scroll-position-C9_YO3pX.js} +2 -2
  186. package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-CnzhnJ7Z.js → mindmap-definition-RKZ34NQL-HPtlKqL1.js} +1 -1
  187. package/dist/client/assets/js/{mips-BfqBfLvN.js → mips-DXkvw9aZ.js} +1 -1
  188. package/dist/client/assets/js/{models-wrytxWnf.js → models-BILDy2sV.js} +1 -1
  189. package/dist/client/assets/js/{monaco.contribution-Bc-DesyO.js → monaco.contribution-DDqeHGl3.js} +2 -2
  190. package/dist/client/assets/js/{msdax-DgMip49g.js → msdax-BbHEBDvP.js} +1 -1
  191. package/dist/client/assets/js/{mysql-DPUvF1g2.js → mysql-7I1rlwh7.js} +1 -1
  192. package/dist/client/assets/js/{objective-c-BQ3llrPW.js → objective-c-Dk03REAv.js} +1 -1
  193. package/dist/client/assets/js/packet-YPE3B663-DlTFK3Wo.js +1 -0
  194. package/dist/client/assets/js/{pascal-bFWHV7MZ.js → pascal-BCfNkzYY.js} +1 -1
  195. package/dist/client/assets/js/{pascaligo-C8Qza2pK.js → pascaligo-D-DslS98.js} +1 -1
  196. package/dist/client/assets/js/{pdf-Cb7x495t.js → pdf-B_OYWxSy.js} +1 -1
  197. package/dist/client/assets/js/{pdf.worker.min-DDUKJ6cJ.js → pdf.worker.min--q2RLEHa.js} +1 -1
  198. package/dist/client/assets/js/{perl-x25gw0_p.js → perl-MUnuTclx.js} +1 -1
  199. package/dist/client/assets/js/{pets-BfRsvl7D.js → pets-D74G2jqA.js} +1 -1
  200. package/dist/client/assets/js/{pgsql-DAUcGeRq.js → pgsql-BxCBktNe.js} +1 -1
  201. package/dist/client/assets/js/{php-nri1eqb2.js → php-zp9UgH03.js} +1 -1
  202. package/dist/client/assets/js/pie-LRSECV5Y-BtnBGhFZ.js +1 -0
  203. package/dist/client/assets/js/{pieDiagram-4H26LBE5-4LODdtT_.js → pieDiagram-4H26LBE5-CG8_pcHr.js} +1 -1
  204. package/dist/client/assets/js/{pla-CHi5LWNL.js → pla-DGCtmYZC.js} +1 -1
  205. package/dist/client/assets/js/{postiats-Bk7jD0AA.js → postiats-DHSW8gnY.js} +1 -1
  206. package/dist/client/assets/js/{powerquery-UTqJ0Vs7.js → powerquery-BGsPEmJe.js} +1 -1
  207. package/dist/client/assets/js/{powershell-CuPY3Rqk.js → powershell-BItlb0hE.js} +1 -1
  208. package/dist/client/assets/js/{profiles-D-vlI-Ec.js → profiles-BK5JKD7h.js} +1 -1
  209. package/dist/client/assets/js/{protobuf-Be4AIz9j.js → protobuf-BIhm6JYx.js} +1 -1
  210. package/dist/client/assets/js/{pt-D7_udWb3.js → pt-BSORCDMm.js} +1 -1
  211. package/dist/client/assets/js/{pug-CZFx15Ey.js → pug-BtnM7KZj.js} +1 -1
  212. package/dist/client/assets/js/{python-BgRg6Ez6.js → python-DxzTx1Q_.js} +1 -1
  213. package/dist/client/assets/js/{qsharp-BiBiLhRS.js → qsharp-B_8MSfaB.js} +1 -1
  214. package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-g_q9-dXx.js → quadrantDiagram-W4KKPZXB-CsbkMYuV.js} +1 -1
  215. package/dist/client/assets/js/{r-DM7NVSbZ.js → r-kvKC59jk.js} +1 -1
  216. package/dist/client/assets/js/radar-GUYGQ44K-BTKMKX4G.js +1 -0
  217. package/dist/client/assets/js/{razor-CiWy0jCW.js → razor-BwZ0MkaL.js} +1 -1
  218. package/dist/client/assets/js/{redis-BR2LPmFL.js → redis-5j1U_i85.js} +1 -1
  219. package/dist/client/assets/js/{redshift-B0sdAV16.js → redshift-CX1dFLA1.js} +1 -1
  220. package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-EedCclad.js → requirementDiagram-4Y6WPE33-CKC7CQCX.js} +1 -1
  221. package/dist/client/assets/js/{restructuredtext-kQOBLN1M.js → restructuredtext-MV0-Naya.js} +1 -1
  222. package/dist/client/assets/js/{rough.esm-Dyx_2DON.js → rough.esm-CV1rL6PC.js} +1 -1
  223. package/dist/client/assets/js/{ru-CVQQmreT.js → ru-JsH6TKyg.js} +1 -1
  224. package/dist/client/assets/js/{ruby-CbdJXy6J.js → ruby-Bhyejf9X.js} +1 -1
  225. package/dist/client/assets/js/{rust-DZanYksk.js → rust-CR8d_FC1.js} +1 -1
  226. package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-DFC0nzsd.js → sankeyDiagram-5OEKKPKP-CKlqlvAe.js} +1 -1
  227. package/dist/client/assets/js/{sb-C5-WiqDZ.js → sb-hLW2EM2L.js} +1 -1
  228. package/dist/client/assets/js/{scala-Bk7i9nV-.js → scala-DVUhALEZ.js} +1 -1
  229. package/dist/client/assets/js/{scheme-CaZSWmJ2.js → scheme-BS6yNanr.js} +1 -1
  230. package/dist/client/assets/js/{scss-ByOYuc7K.js → scss-BfoRsElt.js} +1 -1
  231. package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-hWjPfqXt.js → sequenceDiagram-3UESZ5HK-CTimhD6H.js} +1 -1
  232. package/dist/client/assets/js/{session-browser-prefs-Br8OYA4_.js → session-browser-prefs-BT1woDux.js} +1 -1
  233. package/dist/client/assets/js/{sessions-iGK9S6zk.js → sessions-IkLKgnN6.js} +1 -1
  234. package/dist/client/assets/js/{settings-pbanANH0.js → settings-roYY6G3W.js} +1 -1
  235. package/dist/client/assets/js/{shell-Di0TEySc.js → shell-BO_Lyczz.js} +1 -1
  236. package/dist/client/assets/js/{skills-DC-UPcXj.js → skills-a5LPwmiT.js} +1 -1
  237. package/dist/client/assets/js/{solidity-BNTjAuuA.js → solidity-D3T2Ki4l.js} +1 -1
  238. package/dist/client/assets/js/{sophia-LY__8Yob.js → sophia-iJmIEvi8.js} +1 -1
  239. package/dist/client/assets/js/{sparql-CWnLfgGS.js → sparql-C2HCEExr.js} +1 -1
  240. package/dist/client/assets/js/{sql-B0ypQ9lR.js → sql-DM6_3GBc.js} +1 -1
  241. package/dist/client/assets/js/{src-BihFroE7.js → src-DD_TpJde.js} +1 -1
  242. package/dist/client/assets/js/{st-CqVFKTbZ.js → st-DSb39Fm5.js} +1 -1
  243. package/dist/client/assets/js/{stateDiagram-AJRCARHV-B7wEnYVe.js → stateDiagram-AJRCARHV-DwBGmBj6.js} +1 -1
  244. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-5bNcwBne.js +1 -0
  245. package/dist/client/assets/js/{style-DDAg_jVj.js → style-B5xXhBlp.js} +1 -1
  246. package/dist/client/assets/js/{swift-B4ZZmDxc.js → swift-DrZYSZK3.js} +1 -1
  247. package/dist/client/assets/js/{systemverilog-zLt-O1mT.js → systemverilog-BAWNCaf6.js} +1 -1
  248. package/dist/client/assets/js/{tcl-DCSZmA-l.js → tcl-DY15ex6v.js} +1 -1
  249. package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BN_LfleE.js → timeline-definition-PNZ67QCA-B8xuIu6g.js} +1 -1
  250. package/dist/client/assets/js/treeView-BLDUP644-DvZPUnGM.js +1 -0
  251. package/dist/client/assets/js/treemap-LRROVOQU-Bis1djYh.js +1 -0
  252. package/dist/client/assets/js/{tsMode-BjUcuHrq.js → tsMode-BE8JCSCE.js} +1 -1
  253. package/dist/client/assets/js/{ttsHelpers-BLunFYsq.js → ttsHelpers-BLNiQExI.js} +1 -1
  254. package/dist/client/assets/js/{twig-CuJlVpUG.js → twig-BpHF_18K.js} +1 -1
  255. package/dist/client/assets/js/{typescript-De40YVFt.js → typescript-FQ3z9hVG.js} +1 -1
  256. package/dist/client/assets/js/{typespec-8QcsIc3c.js → typespec-BKvcn6aE.js} +1 -1
  257. package/dist/client/assets/js/{useSttSettings-B1-KXN44.js → useSttSettings-DHX06G8A.js} +1 -1
  258. package/dist/client/assets/js/{vb-DEGTdhxf.js → vb-B74ucE43.js} +1 -1
  259. package/dist/client/assets/js/{vennDiagram-CIIHVFJN-hL8ax7wF.js → vennDiagram-CIIHVFJN-DtEu04QR.js} +1 -1
  260. package/dist/client/assets/js/wardley-L42UT6IY-CD4dIN63.js +1 -0
  261. package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BIR-RA6Y.js → wardleyDiagram-YWT4CUSO-DdNKCPsp.js} +1 -1
  262. package/dist/client/assets/js/{wgsl-CmbiucmY.js → wgsl-DEf5Vdqv.js} +1 -1
  263. package/dist/client/assets/js/{workers-BgWBq4qY.js → workers-BbaiLVxx.js} +1 -1
  264. package/dist/client/assets/js/{workflow-socket-DZ9Ceffc.js → workflow-socket-DH402vxO.js} +1 -1
  265. package/dist/client/assets/js/{xml-SZLdwDmk.js → xml-zjE51I7v.js} +1 -1
  266. package/dist/client/assets/js/{xterm-D6CotCNH.js → xterm-Djy4rCx0.js} +1 -1
  267. package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-DHa486uP.js → xychartDiagram-2RQKCTM6-CKqN7g7r.js} +1 -1
  268. package/dist/client/assets/js/{yaml-CgQpCgM5.js → yaml-DabeGoTc.js} +1 -1
  269. package/dist/client/assets/js/{zh-BDlMioZr.js → zh-CI4-L3JY.js} +1 -1
  270. package/dist/client/assets/js/{zh-TW-DTbLWR1A.js → zh-TW-wYlj-uOZ.js} +1 -1
  271. package/dist/client/index.html +1 -1
  272. package/dist/server/index.js +3 -3
  273. package/dist/server/openapi.json +1 -1
  274. package/package.json +9 -1
  275. package/dist/client/assets/js/architecture-7EHR7CIX-Cl4Qi40R.js +0 -1
  276. package/dist/client/assets/js/classDiagram-4FO5ZUOK-DC0BcY8x.js +0 -1
  277. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BfDDH_fm.js +0 -1
  278. package/dist/client/assets/js/eventmodeling-FCH6USID-Bgzwnvkn.js +0 -1
  279. package/dist/client/assets/js/gitGraph-WXDBUCRP-CwFrpI3e.js +0 -1
  280. package/dist/client/assets/js/info-J43DQDTF-wMwkmIWM.js +0 -1
  281. package/dist/client/assets/js/packet-YPE3B663-DYmKXJOE.js +0 -1
  282. package/dist/client/assets/js/pie-LRSECV5Y-Dx0hbcjV.js +0 -1
  283. package/dist/client/assets/js/radar-GUYGQ44K-D-t-QJhi.js +0 -1
  284. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CoMhBVvo.js +0 -1
  285. package/dist/client/assets/js/treeView-BLDUP644-CMJGhbWk.js +0 -1
  286. package/dist/client/assets/js/treemap-LRROVOQU-_j4KoVDh.js +0 -1
  287. package/dist/client/assets/js/wardley-L42UT6IY-BeOvmJoM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as sb,t as k}from"./defineProperty-DdPu4ZVv.js";import{Fr as nb,Ir as ab,wa as wn}from"./index-DnjQJzX4.js";function p(e,t,i){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var up=wn((()=>{}));function jm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}var Vm=wn((()=>{}));function m(e,t,i){jm(e,t),t.set(e,i)}var rb=wn((()=>{Vm()}));function n(e,t){return e.get(p(e,t))}var ob=wn((()=>{up()}));function H(e,t){jm(e,t),t.add(e)}var lb=wn((()=>{Vm()}));function u(e,t,i){return e.set(p(e,t),i),i}var hb=wn((()=>{up()}));function Vd(e,t,i){t||(t=[]);var s=t.length++;return Object.defineProperty({},"_",{set:function(r){t[s]=r,e.apply(i,t)}})}var cb=wn((()=>{}));function db(e){Number.isInteger(e)&&(fh=e)}function ub(){return fh}function rd(e){fh>=Xl.INFOS&&console.info(`Info: ${e}`)}function z(e){fh>=Xl.WARNINGS&&console.warn(`Warning: ${e}`)}function J(e){throw new Error(e)}function mt(e,t){e||J(t)}function fb(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Xm(e,t=null,i=null){if(!e)return null;if(i&&typeof e=="string"&&(i.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),i.tryConvertEncoding))try{e=mb(e)}catch{}const s=t?URL.parse(e,t):URL.parse(e);return fb(s)?s:null}function Ym(e,t,i=!1){const s=URL.parse(e);return s?(s.hash=t,s.href):i&&Xm(e,"http://example.com")?e.split("#",1)[0]+`${t?`#${t}`:""}`:""}function Df(e){return e.substring(e.lastIndexOf("/")+1)}function $(e,t,i,s=!1){return Object.defineProperty(e,t,{value:i,enumerable:!s,configurable:!0,writable:!1}),i}function pb(e){(typeof e!="object"||e?.length===void 0)&&J("Invalid argument for bytesToString");const t=e.length,i=8192;if(t<i)return String.fromCharCode.apply(null,e);const s=[];for(let a=0;a<t;a+=i){const r=Math.min(a+i,t),o=e.subarray(a,r);s.push(String.fromCharCode.apply(null,o))}return s.join("")}function hu(e){typeof e!="string"&&J("Invalid argument for stringToBytes");const t=e.length,i=new Uint8Array(t);for(let s=0;s<t;++s)i[s]=e.charCodeAt(s)&255;return i}function gb(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function gu(e,t,i,s,a,r,o,l,h,c){if(h<=0||h>=1)return;const d=1-h,f=h*h,g=f*h,_=d*(d*(d*e+3*h*t)+3*f*i)+g*s,b=d*(d*(d*a+3*h*r)+3*f*o)+g*l;c[0]=Math.min(c[0],_),c[1]=Math.min(c[1],b),c[2]=Math.max(c[2],_),c[3]=Math.max(c[3],b)}function Ap(e,t,i,s,a,r,o,l,h,c,d,f){if(Math.abs(h)<1e-12){Math.abs(c)>=1e-12&&p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,-d/c,f);return}const g=c**2-4*d*h;if(g<0)return;const _=Math.sqrt(g),b=2*h;p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,(-c+_)/b,f),p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,(-c-_)/b,f)}function mb(e){return decodeURIComponent(escape(e))}function _b(e){return ud||(ud=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Yf=new Map([["ſt","ſt"]])),e.replaceAll(ud,(t,i,s)=>i?i.normalize("NFKC"):Yf.get(s))}function vp(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),pb(e)}function bb(e,t,i){if(!Array.isArray(i)||i.length<2)return!1;const[s,a,...r]=i;if(!e(s)&&!Number.isInteger(s)||!t(a))return!1;const o=r.length;let l=!0;switch(a.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return o===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(o!==4)return!1;l=!1;break;default:return!1}for(const h of r)if(!(typeof h=="number"||l&&h===null))return!1;return!0}function pt(e,t,i){return Math.min(Math.max(e,t),i)}async function If(e,t="text"){if(Gl(e,document.baseURI)){const i=await fetch(e);if(!i.ok)throw new Error(i.statusText);switch(t){case"blob":return i.blob();case"bytes":return i.bytes();case"json":return i.json()}return i.text()}return new Promise((i,s)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t==="bytes"?"arraybuffer":t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"bytes":i(new Uint8Array(a.response));return;case"blob":case"json":i(a.response);return}i(a.responseText);return}s(new Error(a.statusText))}},a.send(null)})}function cu(e){const t=e.length;let i=0;for(;i<t&&e[i].trim()==="";)i++;return e.substring(i,i+5).toLowerCase()==="data:"}function Lf(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function wb(e){return[e]=e.split(/[#?]/,1),Df(e)}function yb(e,t="document.pdf"){if(typeof e!="string")return t;if(cu(e))return z('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const s=(l=>{try{return new URL(l)}catch{try{return new URL(decodeURIComponent(l))}catch{try{return new URL(l,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(l),"https://foo.bar")}catch{return null}}}}})(e);if(!s)return t;const a=l=>{try{let h=decodeURIComponent(l);return h.includes("/")&&(h=Df(h),/^\.pdf$/i.test(h))?l:h}catch{return l}},r=/\.pdf$/i,o=Df(s.pathname);if(r.test(o))return a(o);if(s.searchParams.size>0){const l=c=>[...c].findLast(d=>r.test(d)),h=l(s.searchParams.values())??l(s.searchParams.keys());if(h)return a(h)}if(s.hash){const l=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(s.hash);if(l)return a(l[0])}return t}function Gl(e,t){const i=t?URL.parse(e,t):URL.parse(e);return/https?:/.test(i?.protocol??"")}function ri(e){e.preventDefault()}function bt(e){e.preventDefault(),e.stopPropagation()}function Ab(e){console.log("Deprecated API usage: "+e)}function vb(e,{scale:t=1,rotation:i=0}){const{width:s,height:a}=e.attributes.style;return new Jd({viewBox:[0,0,parseInt(s,10),parseInt(a,10)],userUnit:1,scale:t,rotation:i})}function Ff(e){if(e.startsWith("#")){const i=e.slice(1);return[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16),i.length>=8?parseInt(i.slice(6,8),16)/255:1]}if(e.startsWith("rgb(")){const[i,s,a]=e.slice(4,-1).split(",").map(r=>parseInt(r,10));return[i,s,a,1]}if(e.startsWith("rgba(")){const i=e.slice(5,-1).split(",");return[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10),parseFloat(i[3])]}const t=e.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return t?[Math.round(parseFloat(t[1])*255),Math.round(parseFloat(t[2])*255),Math.round(parseFloat(t[3])*255),t[4]!==void 0&&t[4]!=="none"?parseFloat(t[4]):1]:null}function zl(e){const t=Ff(e);return t?t.slice(0,3):(z(`Not a valid color format: "${e}"`),[0,0,0])}function Sb(e){const t=document.createElement("span");t.style.visibility="hidden",t.style.colorScheme="only light",document.body.append(t);for(const i of e.keys()){t.style.color=i;const s=window.getComputedStyle(t).color;e.set(i,zl(s))}t.remove()}function ot(e){const{a:t,b:i,c:s,d:a,e:r,f:o}=e.getTransform();return[t,i,s,a,r,o]}function ki(e){const{a:t,b:i,c:s,d:a,e:r,f:o}=e.getTransform().invertSelf();return[t,i,s,a,r,o]}function An(e,t,i=!1,s=!0){if(t instanceof Jd){const{pageWidth:a,pageHeight:r}=t.rawDims,{style:o}=e,l=Ct.isCSSRoundSupported,h=`var(--total-scale-factor) * ${a}px`,c=`var(--total-scale-factor) * ${r}px`,d=l?`round(down, ${h}, var(--scale-round-x))`:`calc(${h})`,f=l?`round(down, ${c}, var(--scale-round-y))`:`calc(${c})`;!i||t.rotation%180===0?(o.width=d,o.height=f):(o.width=f,o.height=d)}s&&e.setAttribute("data-main-rotation",t.rotation)}function kb(e,t){t=pt(t??1,0,1);const i=255*(1-t);return e.map(s=>Math.round(s*t+i))}function Sp(e,t){const i=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.max(i,s,a),o=Math.min(i,s,a),l=(r+o)/2;if(r===o)t[0]=t[1]=0;else{const h=r-o;switch(t[1]=l<.5?h/(r+o):h/(2-r-o),r){case i:t[0]=((s-a)/h+(s<a?6:0))*60;break;case s:t[0]=((a-i)/h+2)*60;break;case a:t[0]=((i-s)/h+4)*60;break}}t[2]=l}function Rf(e,t){const i=e[0],s=e[1],a=e[2],r=(1-Math.abs(2*a-1))*s,o=r*(1-Math.abs(i/60%2-1)),l=a-r/2;switch(Math.floor(i/60)){case 0:t[0]=r+l,t[1]=o+l,t[2]=l;break;case 1:t[0]=o+l,t[1]=r+l,t[2]=l;break;case 2:t[0]=l,t[1]=r+l,t[2]=o+l;break;case 3:t[0]=l,t[1]=o+l,t[2]=r+l;break;case 4:t[0]=o+l,t[1]=l,t[2]=r+l;break;case 5:case 6:t[0]=r+l,t[1]=l,t[2]=o+l;break}}function kp(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Ep(e,t,i){Rf(e,i),i.map(kp);const s=.2126*i[0]+.7152*i[1]+.0722*i[2];Rf(t,i),i.map(kp);const a=.2126*i[0]+.7152*i[1]+.0722*i[2];return s>a?(s+.05)/(a+.05):(a+.05)/(s+.05)}function Eb(e,t){const i=e[0]+e[1]*256+e[2]*65536+t[0]*16777216+t[1]*4294967296+t[2]*1099511627776;let s=qf.get(i);if(s)return s;const a=new Float32Array(9),r=a.subarray(0,3),o=a.subarray(3,6);Sp(e,o);const l=a.subarray(6,9);Sp(t,l);const h=l[2]<.5,c=h?12:4.5;if(o[2]=h?Math.sqrt(o[2]):1-Math.sqrt(1-o[2]),Ep(o,l,r)<c){let d,f;h?(d=o[2],f=1):(d=0,f=o[2]);const g=.005;for(;f-d>g;){const _=o[2]=(d+f)/2;h===Ep(o,l,r)<c?d=_:f=_}o[2]=h?f:d}return Rf(o,r),s=C.makeHexColor(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[2]*255)),qf.set(i,s),s}function Mp({html:e,dir:t,className:i},s){const a=document.createDocumentFragment();if(typeof e=="string"){const r=document.createElement("p");r.dir=t||"auto";const o=e.split(/(?:\r\n?|\n)/);for(let l=0,h=o.length;l<h;++l){const c=o[l];r.append(document.createTextNode(c)),l<h-1&&r.append(document.createElement("br"))}a.append(r)}else Kf.render({xfaHtml:e,div:a,intent:"richText"});a.firstElementChild.classList.add("richText",i),s.append(a)}function Tp(e){const t=new Path2D;if(!e)return t;for(let i=0,s=e.length;i<s;)switch(e[i++]){case xr.moveTo:t.moveTo(e[i++],e[i++]);break;case xr.lineTo:t.lineTo(e[i++],e[i++]);break;case xr.curveTo:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case xr.quadraticCurveTo:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case xr.closePath:t.closePath();break;default:z(`Unrecognized drawing path operator: ${e[i-1]}`);break}return t}function Mb(e){e.stopPropagation()}function Tb(e){n(Ai,this)._focusEventsAllowed=!1,bt(e)}function Cb(e){n(Ai,this)._focusEventsAllowed=!0,bt(e)}function lo(e){const t=n(Ai,this)._uiManager._signal;return!(t instanceof AbortSignal)||t.aborted?!1:(e.addEventListener("focusin",p(Be,this,Tb).bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",p(Be,this,Cb).bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",ri,{signal:t}),!0)}function mh(){const e=document.createElement("div");return e.className="divider",e}function xb(){const e=u(ga,this,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const t=n(ln,this)._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",ri,{signal:t});const i=u(Zd,this,document.createElement("div"));return i.className="buttons",e.append(i),n(ln,this).hasCommentManager()&&p($r,this,Cp).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{n(ln,this).commentSelection("floating_button")}),p($r,this,Cp).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{n(ln,this).highlightSelection("floating_button")}),e}function Pb(e,t){let i=0,s=0;for(const a of e){const r=a.y+a.height;if(r<i)continue;const o=a.x+(t?a.width:0);if(r>i){s=o,i=r;continue}t?o>s&&(s=o):o<s&&(s=o)}return[t?1-s:s,i]}function Cp(e,t,i,s){const a=document.createElement("button");a.classList.add("basic",e),a.tabIndex=0,a.setAttribute("data-l10n-id",t);const r=document.createElement("span");a.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id",i);const o=n(ln,this)._signal;o instanceof AbortSignal&&!o.aborted&&(a.addEventListener("contextmenu",ri,{signal:o}),a.addEventListener("click",s,{signal:o})),n(Zd,this).append(a)}function xp(e,t,i){for(const s of i)t.addEventListener(s,e[s].bind(e))}async function mu(e,t){n(Ht,this)||u(Ht,this,new Map);let i=n(Ht,this).get(e);if(i===null)return null;if(i?.bitmap)return i.refCounter+=1,i;try{var s,a;i||(i={bitmap:null,id:`image_${n(kl,this)}_${u(Gr,this,(s=n(Gr,this),a=s++,s)),a}`,refCounter:0,isSvg:!1});let r;if(typeof t=="string"?(i.url=t,r=await If(t,"blob")):t instanceof File?r=i.file=t:t instanceof Blob&&(r=t),r.type==="image/svg+xml"){const o=g_._isSVGFittingCanvas,l=new FileReader,h=new Image,c=new Promise((d,f)=>{h.onload=()=>{i.bitmap=h,i.isSvg=!0,d()},l.onload=async()=>{const g=i.svgUrl=l.result;h.src=await o?`${g}#svgView(preserveAspectRatio(none))`:g},h.onerror=l.onerror=f});l.readAsDataURL(r),await c}else i.bitmap=await createImageBitmap(r);i.refCounter=1}catch(r){z(r),i=null}return n(Ht,this).set(e,i),i&&n(Ht,this).set(i.id,i),i}function Db(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}function fp({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}function Km(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const i of n(yt,this).values())if(i.hasTextLayer(e))return i;return null}function Ib(e){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}function Lb(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=p(N,this,fp).call(this,e).closest(".textLayer"),i=this.getSelectionBoxes(t);i&&(n(zi,this)||u(zi,this,new y_(this)),n(zi,this).show(t,i,this.direction==="ltr"))}function Fb(){const e=document.getSelection();if(!e||e.isCollapsed){n(Ks,this)&&(n(zi,this)?.hide(),u(Ks,this,null),p(N,this,Me).call(this,{hasSelectedText:!1}));return}const{anchorNode:t}=e;if(t===n(Ks,this))return;const i=p(N,this,fp).call(this,e).closest(".textLayer");if(!i){n(Ks,this)&&(n(zi,this)?.hide(),u(Ks,this,null),p(N,this,Me).call(this,{hasSelectedText:!1}));return}if(n(zi,this)?.hide(),u(Ks,this,t),p(N,this,Me).call(this,{hasSelectedText:!0}),!(n(Ut,this)!==U.HIGHLIGHT&&n(Ut,this)!==U.NONE)&&(n(Ut,this)===U.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),u(ma,this,this.isShiftKeyDown),!this.isShiftKeyDown)){const s=n(Ut,this)===U.HIGHLIGHT?p(N,this,Km).call(this,i):null;if(s?.toggleDrawing(),n(El,this)){const a=new AbortController,r=this.combinedSignal(a),o=l=>{l.type==="pointerup"&&l.button!==0||(a.abort(),s?.toggleDrawing(!0),l.type==="pointerup"&&p(N,this,Xd).call(this,"main_toolbar"))};window.addEventListener("pointerup",o,{signal:r}),window.addEventListener("blur",o,{signal:r})}else s?.toggleDrawing(!0),p(N,this,Xd).call(this,"main_toolbar")}}function Xd(e=""){n(Ut,this)===U.HIGHLIGHT?this.highlightSelection(e):n(pd,this)&&p(N,this,Lb).call(this)}function Rb(){document.addEventListener("selectionchange",p(N,this,Fb).bind(this),{signal:this._signal})}function Ob(){if(n(Ia,this))return;u(Ia,this,new AbortController);const e=this.combinedSignal(n(Ia,this));window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}function Nb(){n(Ia,this)?.abort(),u(Ia,this,null)}function Pp(){if(n(La,this))return;u(La,this,new AbortController);const e=this.combinedSignal(n(La,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}function Bb(){n(La,this)?.abort(),u(La,this,null)}function Wb(){if(n(Da,this))return;u(Da,this,new AbortController);const e=this.combinedSignal(n(Da,this));document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}function Hb(){n(Da,this)?.abort(),u(Da,this,null)}function Ub(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}function Me(e){Object.entries(e).some(([t,i])=>n(tu,this)[t]!==i)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(n(tu,this),e)}),n(Ut,this)===U.HIGHLIGHT&&e.hasSelectedEditor===!1&&p(N,this,js).call(this,[[G.HIGHLIGHT_FREE,!0]]))}function js(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}async function $b(){if(!n(hn,this)){u(hn,this,!0);const e=[];for(const t of n(yt,this).values())e.push(t.enable());await Promise.all(e);for(const t of n(Mt,this).values())t.enable()}}function Gb(){if(this.unselectAll(),n(hn,this)){u(hn,this,!1);for(const e of n(yt,this).values())e.disable();for(const e of n(Mt,this).values())e.disable()}}function Dp(e){const t=n(yt,this).get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}function zb(){let e=null;for(e of n(et,this));return e}function _h(){if(n(Mt,this).size===0)return!0;if(n(Mt,this).size===1)for(const e of n(Mt,this).values())return e.isEmpty();return!1}function Ip(e){for(const t of n(et,this))t.unselect();n(et,this).clear();for(const t of e)t.isEmpty()||(n(et,this).add(t),t.select());p(N,this,Me).call(this,{hasSelectedEditor:this.hasSelection})}function Yd(){return n(Zt,this)&&"added"||n(Zt,this)===null&&this.guessedText&&"review"||"missing"}async function _u(){const e=n(Ii,this);if(!e)return;if(n(cs,this)){if(e.classList.toggle("done",!!n(Zt,this)),e.setAttribute("data-l10n-id",va._[Yd.call(p(gs,this))]),n(Ml,this)?.setAttribute("data-l10n-id",va._[`${Yd.call(p(gs,this))}-label`]),!n(Zt,this)){n(ws,this)?.remove();return}}else{if(!n(Zt,this)&&!n(ps,this)){e.classList.remove("done"),n(ws,this)?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=n(ws,this);if(!t){u(ws,this,t=document.createElement("span")),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${n(He,this).id}`;const i=100,s=n(He,this)._uiManager._signal;s.addEventListener("abort",()=>{clearTimeout(n(si,this)),u(si,this,null)},{once:!0}),e.addEventListener("mouseenter",()=>{u(si,this,setTimeout(()=>{u(si,this,null),n(ws,this).classList.add("show"),n(He,this)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:s}),e.addEventListener("mouseleave",()=>{n(si,this)&&(clearTimeout(n(si,this)),u(si,this,null)),n(ws,this)?.classList.remove("show")},{signal:s})}n(ps,this)?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=n(Zt,this)),t.parentNode||e.append(t),n(He,this).getElementForAltText()?.setAttribute("aria-describedby",t.id)}function Lp(e,t){if(!n(ht,this)._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[n(ht,this)._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));const i=n(ht,this)._uiManager._signal;if(!(i instanceof AbortSignal)||i.aborted)return e;e.addEventListener("contextmenu",ri,{signal:i}),t&&(e.addEventListener("focusin",a=>{n(ht,this)._focusEventsAllowed=!1,bt(a)},{capture:!0,signal:i}),e.addEventListener("focusout",a=>{n(ht,this)._focusEventsAllowed=!0,bt(a)},{capture:!0,signal:i})),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:i});const s=a=>{a.preventDefault(),e===n(bi,this)?this.edit():n(ht,this).toggleComment(!0)};return e.addEventListener("click",s,{capture:!0,signal:i}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(u(Pr,this,!0),s(a))},{signal:i}),e.addEventListener("pointerenter",()=>{n(ht,this).toggleComment(!1,!0)},{signal:i}),e.addEventListener("pointerleave",()=>{n(ht,this).toggleComment(!1,!1)},{signal:i}),e}function jb(e){if(n(md,this)?.call(this))return;if(e.touches.length===1){if(n(cn,this))return;const s=u(cn,this,new AbortController),a=AbortSignal.any([n(zr,this),s.signal]),r=n(Yl,this),o={capture:!0,signal:a,passive:!1},l=h=>{h.pointerType==="touch"&&(n(cn,this)?.abort(),u(cn,this,null))};r.addEventListener("pointerdown",h=>{h.pointerType==="touch"&&(bt(h),l(h))},o),r.addEventListener("pointerup",l,o),r.addEventListener("pointercancel",l,o);return}if(!n(gn,this)){u(gn,this,new AbortController);const s=AbortSignal.any([n(zr,this),n(gn,this).signal]),a=n(Yl,this),r={signal:s,capture:!1,passive:!1};a.addEventListener("touchmove",p(Kl,this,Vb).bind(this),r);const o=p(Kl,this,Xb).bind(this);a.addEventListener("touchend",o,r),a.addEventListener("touchcancel",o,r),r.capture=!0,a.addEventListener("pointerdown",bt,r),a.addEventListener("pointermove",bt,r),a.addEventListener("pointercancel",bt,r),a.addEventListener("pointerup",bt,r),n(_d,this)?.call(this)}if(bt(e),e.touches.length!==2||n(gd,this)?.call(this)){u(bn,this,null);return}let[t,i]=e.touches;t.identifier>i.identifier&&([t,i]=[i,t]),u(bn,this,{touch0X:t.screenX,touch0Y:t.screenY,touch1X:i.screenX,touch1Y:i.screenY})}function Vb(e){if(!n(bn,this)||e.touches.length!==2)return;bt(e);let[t,i]=e.touches;t.identifier>i.identifier&&([t,i]=[i,t]);const{screenX:s,screenY:a}=t,{screenX:r,screenY:o}=i,l=n(bn,this),{touch0X:h,touch0Y:c,touch1X:d,touch1Y:f}=l,g=d-h,_=f-c,b=r-s,w=o-a,y=Math.hypot(b,w)||1,A=Math.hypot(g,_)||1;if(!n(io,this)&&Math.abs(A-y)<=m_.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=s,l.touch0Y=a,l.touch1X=r,l.touch1Y=o,!n(io,this)){u(io,this,!0);return}const v=[(s+r)/2,(a+o)/2];n(bd,this)?.call(this,v,A,y)}function Xb(e){e.touches.length>=2||(n(gn,this)&&(n(gn,this).abort(),u(gn,this,null),n(wd,this)?.call(this)),n(bn,this)&&(bt(e),u(bn,this,null),u(io,this,!1)))}function Fp([e,t],i,s){[i,s]=this.screenToPageTranslation(i,s),this.x+=i/e,this.y+=s/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}function Rp(e,t,i){switch(i){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function Of(e){switch(e){case 90:{const[t,i]=this.pageDimensions;return[0,-t/i,i/t,0]}case 180:return[-1,0,0,-1];case 270:{const[t,i]=this.pageDimensions;return[0,t/i,-i/t,0]}default:return[1,0,0,1]}}function Yb(){if(n(ce,this))return;u(ce,this,document.createElement("div")),n(ce,this).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const i of e){const s=document.createElement("div");n(ce,this).append(s),s.classList.add("resizer",i),s.setAttribute("data-resizer-name",i),s.addEventListener("pointerdown",p(Y,this,Kb).bind(this,i),{signal:t}),s.addEventListener("contextmenu",ri,{signal:t}),s.tabIndex=-1}this.div.prepend(n(ce,this))}function Kb(e,t){t.preventDefault();const{isMac:i}=Ct.platform;if(t.button!==0||t.ctrlKey&&i)return;n(gt,this)?.toggle(!1);const s=this._isDraggable;this._isDraggable=!1,u(so,this,[t.screenX,t.screenY]);const a=new AbortController,r=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",p(Y,this,qm).bind(this,e),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",bt,{passive:!1,signal:r}),window.addEventListener("contextmenu",ri,{signal:r}),u(mn,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const o=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const h=()=>{a.abort(),this.parent.togglePointerEvents(!0),n(gt,this)?.toggle(!0),this._isDraggable=s,this.parent.div.style.cursor=o,this.div.style.cursor=l,p(Y,this,pp).call(this)};window.addEventListener("pointerup",h,{signal:r}),window.addEventListener("blur",h,{signal:r})}function Op(e,t,i,s){this.width=i,this.height=s,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}function pp(){if(!n(mn,this))return;const{savedX:e,savedY:t,savedWidth:i,savedHeight:s}=n(mn,this);u(mn,this,null);const a=this.x,r=this.y,o=this.width,l=this.height;a===e&&r===t&&o===i&&l===s||this.addCommands({cmd:p(Y,this,Op).bind(this,a,r,o,l),undo:p(Y,this,Op).bind(this,e,t,i,s),mustExec:!0})}function qm(e,t){const[i,s]=this.parentDimensions,a=this.x,r=this.y,o=this.width,l=this.height,h=Pe.MIN_SIZE/i,c=Pe.MIN_SIZE/s,d=p(Y,this,Of).call(this,this.rotation),f=(W,B)=>[d[0]*W+d[2]*B,d[1]*W+d[3]*B],g=p(Y,this,Of).call(this,360-this.rotation),_=(W,B)=>[g[0]*W+g[2]*B,g[1]*W+g[3]*B];let b,w,y=!1,A=!1;switch(e){case"topLeft":y=!0,b=(W,B)=>[0,0],w=(W,B)=>[W,B];break;case"topMiddle":b=(W,B)=>[W/2,0],w=(W,B)=>[W/2,B];break;case"topRight":y=!0,b=(W,B)=>[W,0],w=(W,B)=>[0,B];break;case"middleRight":A=!0,b=(W,B)=>[W,B/2],w=(W,B)=>[0,B/2];break;case"bottomRight":y=!0,b=(W,B)=>[W,B],w=(W,B)=>[0,0];break;case"bottomMiddle":b=(W,B)=>[W/2,B],w=(W,B)=>[W/2,0];break;case"bottomLeft":y=!0,b=(W,B)=>[0,B],w=(W,B)=>[W,0];break;case"middleLeft":A=!0,b=(W,B)=>[0,B/2],w=(W,B)=>[W,B/2];break}const v=b(o,l),S=w(o,l);let M=f(...S);const E=Pe._round(a+M[0]),T=Pe._round(r+M[1]);let x=1,D=1,P,R;if(t.fromKeyboard)({deltaX:P,deltaY:R}=t);else{const{screenX:W,screenY:B}=t,[ee,Dt]=n(so,this);[P,R]=this.screenToPageTranslation(W-ee,B-Dt),n(so,this)[0]=W,n(so,this)[1]=B}if([P,R]=_(P/i,R/s),y){const W=Math.hypot(o,l);x=D=Math.max(Math.min(Math.hypot(S[0]-v[0]-P,S[1]-v[1]-R)/W,1/o,1/l),h/o,c/l)}else A?x=pt(Math.abs(S[0]-v[0]-P),h,1)/o:D=pt(Math.abs(S[1]-v[1]-R),c,1)/l;const I=Pe._round(o*x),Q=Pe._round(l*D);M=f(...w(I,Q));const X=E-M[0],V=T-M[1];n(he,this)||u(he,this,[this.x,this.y,this.width,this.height]),this.width=I,this.height=Q,this.x=X,this.y=V,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function qb(){u(mn,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),n(gt,this)?.toggle(!1),this.parent.togglePointerEvents(!1)}function Qb(e,t,i){let a=.7*(i/t)+1-.7;if(a===1)return;const r=p(Y,this,Of).call(this,this.rotation),o=(E,T)=>[r[0]*E+r[2]*T,r[1]*E+r[3]*T],[l,h]=this.parentDimensions,c=this.x,d=this.y,f=this.width,g=this.height,_=Pe.MIN_SIZE/l,b=Pe.MIN_SIZE/h;a=Math.max(Math.min(a,1/f,1/g),_/f,b/g);const w=Pe._round(f*a),y=Pe._round(g*a);if(w===f&&y===g)return;n(he,this)||u(he,this,[c,d,f,g]);const A=o(f/2,g/2),v=Pe._round(c+A[0]),S=Pe._round(d+A[1]),M=o(w/2,y/2);this.x=v-M[0],this.y=S-M[1],this.width=w,this.height=y,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function Jb(){n(gt,this)?.toggle(!0),this.parent.togglePointerEvents(!0),p(Y,this,pp).call(this)}function Qm(e){const{isMac:t}=Ct.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}function Zb(e){const{isSelected:t}=this;this._uiManager.setUpDragSession();let i=!1;const s=new AbortController,a=this._uiManager.combinedSignal(s),r={capture:!0,passive:!1,signal:a},o=h=>{s.abort(),u(Sa,this,null),u(Dr,this,!1),this._uiManager.endDragSession()||p(Y,this,Qm).call(this,h),i&&this._onStopDragging()};t&&(u(ql,this,e.clientX),u(Ql,this,e.clientY),u(Sa,this,e.pointerId),u(eu,this,e.pointerType),window.addEventListener("pointermove",h=>{i||(i=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:c,clientY:d,pointerId:f}=h;if(f!==n(Sa,this)){bt(h);return}const[g,_]=this.screenToPageTranslation(c-n(ql,this),d-n(Ql,this));u(ql,this,c),u(Ql,this,d),this._uiManager.dragSelectedEditors(g,_)},r),window.addEventListener("touchmove",bt,r),window.addEventListener("pointerdown",h=>{h.pointerType===n(eu,this)&&(n(_a,this)||h.isPrimary)&&o(h),bt(h)},r));const l=h=>{if(!n(Sa,this)||n(Sa,this)===h.pointerId){o(h);return}bt(h)};window.addEventListener("pointerup",l,{signal:a}),window.addEventListener("blur",l,{signal:a})}function Np(){if(n(Ta,this)||!this.div)return;u(Ta,this,new AbortController);const e=this._uiManager.combinedSignal(n(Ta,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}function tw(e){Pe._resizerKeyboardManager.exec(this,e)}function ew(e){n(tn,this)&&e.relatedTarget?.parentNode!==n(ce,this)&&p(Y,this,od).call(this)}function iw(e){u(yd,this,n(tn,this)?e:"")}function Jm(e){if(n(Ri,this))for(const t of n(Ri,this))t.tabIndex=e}function od(){u(tn,this,!1),p(Y,this,Jm).call(this,-1),p(Y,this,pp).call(this)}function sw(){n(jr,this)||(u(jr,this,!0),this.onSetModified?.())}function Bp(e,t,i,s,a,r){e[t*4+0]=Math.min(e[t*4+0],i),e[t*4+1]=Math.min(e[t*4+1],s),e[t*4+2]=Math.max(e[t*4+2],a),e[t*4+3]=Math.max(e[t*4+3],r)}function Wp(e,t){const i=new ArrayBuffer(e*4);u(Ir,this,new Uint8ClampedArray(i)),u(pe,this,new Uint32Array(i)),t&&t.length>0?(n(pe,this).set(t),n(pe,this).fill(iu,t.length)):n(pe,this).fill(iu)}function bu(e){mt(e<Qf.strings.length,"Invalid string index");let t=0;for(let s=0;s<e;s++)t+=n(Jl,this).getUint32(t)+4;const i=n(Jl,this).getUint32(t);return n(Zf,this).decode(new Uint8Array(n(Ad,this),t+4,i))}function bh(e){mt(e<Jf.strings.length,"Invalid string index");let t=5;for(let s=0;s<e;s++)t+=n(ms,this).getUint32(t)+4;const i=n(ms,this).getUint32(t);return n(Tl,this).decode(new Uint8Array(n(Lr,this),t+4,i))}function Ei(e){mt(e<Tt.bools.length,"Invalid boolean index");const t=Math.floor(e/4),i=e*2%8,s=n(Wt,this).getUint8(t)>>i&3;return s===0?void 0:s===2}function wu(e){return mt(e<Tt.numbers.length,"Invalid number index"),n(Wt,this).getFloat64(Tt.OFFSET_NUMBERS+e*8)}function yu(e,t,i,s){const a=n(Wt,this).getUint8(e);if(a===0)return;mt(a===t,"Invalid array length."),e+=1;const r=new Array(a);for(let o=0;o<a;o++)r[o]=n(Wt,this)[i](e,!0),e+=s;return r}function wh(e){mt(e<Tt.strings.length,"Invalid string index");let t=Tt.OFFSET_STRINGS+4;for(let s=0;s<e;s++)t+=n(Wt,this).getUint32(t)+4;const i=n(Wt,this).getUint32(t);return n(tp,this).decode(new Uint8Array(n(Li,this),t+4,i))}function Hp(){let e=Tt.OFFSET_STRINGS;const t=n(Wt,this).getUint32(e);e+=4+t;const i=n(Wt,this).getUint32(e);e+=4+i;const s=n(Wt,this).getUint32(e);e+=4+s;const a=n(Wt,this).getUint32(e);return{offset:e,length:a}}function nw(e){if(e instanceof URL)return e;if(typeof e=="string"){if(xe){if(/^[a-z][a-z0-9\-+.]+:/i.test(e))return new URL(e);const i=process.getBuiltinModule("url");return new URL(i.pathToFileURL(e))}const t=URL.parse(e,window.location);if(t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function aw(e){if(xe&&typeof Buffer<"u"&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return hu(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function yh(e){if(typeof e!="string")return null;if(e.endsWith("/"))return e;throw new Error(`Invalid factory url: "${e}" must include trailing slash.`)}function Up(){}function Ce(e){if(e instanceof fs||e instanceof Qd||e instanceof Xf||e instanceof hh||e instanceof dd)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||J('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new fs(e.message);case"InvalidPDFException":return new Qd(e.message);case"PasswordException":return new Xf(e.message,e.code);case"ResponseException":return new hh(e.message,e.status,e.missing);case"UnknownErrorException":return new dd(e.message,e.details)}return new dd(e.message,e.toString())}function rw({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){p(_n,this,lw).call(this,e);return}if(e.callback){const i=e.callbackId,s=this.callbackCapabilities[i];if(!s)throw new Error(`Cannot resolve callback ${i}`);if(delete this.callbackCapabilities[i],e.callback===Cl.DATA)s.resolve(e.data);else if(e.callback===Cl.ERROR)s.reject(Ce(e.reason));else throw new Error("Unexpected callback case");return}const t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const i=this.sourceName,s=e.sourceName,a=this.comObj;Promise.try(t,e.data).then(function(r){a.postMessage({sourceName:i,targetName:s,callback:Cl.DATA,callbackId:e.callbackId,data:r})},function(r){a.postMessage({sourceName:i,targetName:s,callback:Cl.ERROR,callbackId:e.callbackId,reason:Ce(r)})});return}if(e.streamId){p(_n,this,ow).call(this,e);return}t(e.data)}function ow(e){const t=e.streamId,i=this.sourceName,s=e.sourceName,a=this.comObj,r=this,o=this.actionHandler[e.action],l={enqueue(h,c=1,d){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=c,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:i,targetName:s,stream:xt.ENQUEUE,streamId:t,chunk:h},d)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:s,stream:xt.CLOSE,streamId:t}),delete r.streamSinks[t])},error(h){mt(h instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:s,stream:xt.ERROR,streamId:t,reason:Ce(h)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[t]=l,Promise.try(o,e.data,l).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.START_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.START_COMPLETE,streamId:t,reason:Ce(h)})})}function lw(e){const t=e.streamId,i=this.sourceName,s=e.sourceName,a=this.comObj,r=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case xt.START_COMPLETE:e.success?r.startCall.resolve():r.startCall.reject(Ce(e.reason));break;case xt.PULL_COMPLETE:e.success?r.pullCall.resolve():r.pullCall.reject(Ce(e.reason));break;case xt.PULL:if(!o){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||Up).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,reason:Ce(h)})});break;case xt.ENQUEUE:if(mt(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(e.chunk);break;case xt.CLOSE:if(mt(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),p(_n,this,Au).call(this,r,t);break;case xt.ERROR:mt(r,"error should have stream controller"),r.controller.error(Ce(e.reason)),p(_n,this,Au).call(this,r,t);break;case xt.CANCEL_COMPLETE:e.success?r.cancelCall.resolve():r.cancelCall.reject(Ce(e.reason)),p(_n,this,Au).call(this,r,t);break;case xt.CANCEL:if(!o)break;const l=Ce(e.reason);Promise.try(o.onCancel||Up,l).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.CANCEL_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.CANCEL_COMPLETE,streamId:t,reason:Ce(h)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function Au(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}function ue(){return n(Xr,this)||u(Xr,this,new Map)}function Ah(){return n(ka,this)||u(ka,this,new Map)}function oh(){if(!n(dn,this)){const e=n(be,this).createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;const i=n(be,this).createElementNS(ji,"svg");i.setAttribute("width",0),i.setAttribute("height",0),u(dn,this,n(be,this).createElementNS(ji,"defs")),e.append(i),i.append(n(dn,this)),n(be,this).body.append(e)}return n(dn,this)}function vu(e){if(e.length===1){const l=e[0],h=new Array(256);for(let d=0;d<256;d++)h[d]=l[d]/255;const c=h.join(",");return[c,c,c]}const[t,i,s]=e,a=new Array(256),r=new Array(256),o=new Array(256);for(let l=0;l<256;l++)a[l]=t[l]/255,r[l]=i[l]/255,o[l]=s[l]/255;return[a.join(","),r.join(","),o.join(",")]}function ho(e){if(n(Vr,this)===void 0){u(Vr,this,"");const t=n(be,this).URL;t!==n(be,this).baseURI&&(cu(t)?z('#createUrl: ignore "data:"-URL for performance reasons.'):u(Vr,this,Ym(t,"")))}return`url(${n(Vr,this)}#${e})`}function hw(e){const t=n(be,this).createElementNS(ji,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}function $p(e){const t=n(be,this).createElementNS(ji,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function co(e){const t=n(be,this).createElementNS(ji,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),oh.call(p(O,this)).append(t),t}function ld(e,t,i){const s=n(be,this).createElementNS(ji,t);s.setAttribute("type","discrete"),s.setAttribute("tableValues",i),e.append(s)}function vh(e,t,i,s){const a=n(be,this).createElementNS(ji,"feComponentTransfer");s.append(a),p(O,this,ld).call(this,a,"feFuncR",e),p(O,this,ld).call(this,a,"feFuncG",t),p(O,this,ld).call(this,a,"feFuncB",i)}function Gp(e,t){const i=n(be,this).createElementNS(ji,"feComponentTransfer");t.append(i),p(O,this,ld).call(this,i,"feFuncA",e)}function Sh(e){return oh.call(p(O,this)).style.color=e,zl(getComputedStyle(oh.call(p(O,this))).getPropertyValue("color"))}async function cw(e){const t=await process.getBuiltinModule("fs/promises").readFile(e);return new Uint8Array(t)}async function dw(){if(!globalThis.navigator?.gpu)return!1;try{const e=await navigator.gpu.requestAdapter();return e?(u(xl,this,navigator.gpu.getPreferredCanvasFormat()),u(Xs,this,await e.requestDevice()),!0):!1}catch{return!1}}function uw(){return ph.init()}function fw(){return ph.isReady}function pw(){ph.loadMeshShader()}function gw(e,t,i,s,a,r,o,l){return ph.draw(e,t,i,s,a,r,o,l)}function kh(e,t){if(!t)return;const i=t[2]-t[0],s=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],i,s),e.clip(a)}function mw(e,t,i,s,a,r,o,l){const h=t.coords,c=t.colors,d=e.data,f=e.width*4;let g;h[i*2+1]>h[s*2+1]&&(g=i,i=s,s=g,g=r,r=o,o=g),h[s*2+1]>h[a*2+1]&&(g=s,s=a,a=g,g=o,o=l,l=g),h[i*2+1]>h[s*2+1]&&(g=i,i=s,s=g,g=r,r=o,o=g);const _=(h[i*2]+t.offsetX)*t.scaleX,b=(h[i*2+1]+t.offsetY)*t.scaleY,w=(h[s*2]+t.offsetX)*t.scaleX,y=(h[s*2+1]+t.offsetY)*t.scaleY,A=(h[a*2]+t.offsetX)*t.scaleX,v=(h[a*2+1]+t.offsetY)*t.scaleY;if(b>=v)return;const S=c[r*4],M=c[r*4+1],E=c[r*4+2],T=c[o*4],x=c[o*4+1],D=c[o*4+2],P=c[l*4],R=c[l*4+1],I=c[l*4+2],Q=Math.round(b),X=Math.round(v);let V,W,B,ee,Dt,Vi,Oa,ie;for(let It=Q;It<=X;It++){if(It<y){const $t=It<b?0:(b-It)/(b-y);V=_-(_-w)*$t,W=S-(S-T)*$t,B=M-(M-x)*$t,ee=E-(E-D)*$t}else{let $t;It>v?$t=1:y===v?$t=0:$t=(y-It)/(y-v),V=w-(w-A)*$t,W=T-(T-P)*$t,B=x-(x-R)*$t,ee=D-(D-I)*$t}let Lt;It<b?Lt=0:It>v?Lt=1:Lt=(b-It)/(b-v),Dt=_-(_-A)*Lt,Vi=S-(S-P)*Lt,Oa=M-(M-R)*Lt,ie=E-(E-I)*Lt;const gh=Math.round(Math.min(V,Dt)),fu=Math.round(Math.max(V,Dt));let yn=f*It+gh*4;for(let $t=gh;$t<=fu;$t++)Lt=(V-$t)/(V-Dt),Lt<0?Lt=0:Lt>1&&(Lt=1),d[yn++]=W-(W-Vi)*Lt|0,d[yn++]=B-(B-Oa)*Lt|0,d[yn++]=ee-(ee-ie)*Lt|0,d[yn++]=255}}function _w(e){switch(e[0]){case"RadialAxial":return new T_(e);case"Mesh":return new C_(e);case"Dummy":return new x_}throw new Error(`Unknown IR type: ${e[0]}`)}function bw({src:e,srcPos:t=0,dest:i,width:s,height:a,nonBlackColor:r=4294967295,inverseDecode:o=!1}){const l=Ct.isLittleEndian?4278190080:255,[h,c]=o?[r,l]:[l,r],d=s>>3,f=s&7,g=h^c,_=e.length;i=new Uint32Array(i.buffer);let b=0;for(let w=0;w<a;++w){for(const A=t+d;t<A;++t,b+=8){const v=e[t];i[b]=h^-(v>>7&1)&g,i[b+1]=h^-(v>>6&1)&g,i[b+2]=h^-(v>>5&1)&g,i[b+3]=h^-(v>>4&1)&g,i[b+4]=h^-(v>>3&1)&g,i[b+5]=h^-(v>>2&1)&g,i[b+6]=h^-(v>>1&1)&g,i[b+7]=h^-(v&1)&g}if(f===0)continue;const y=t<_?e[t++]:255;for(let A=0;A<f;++A,++b)i[b]=h^-(y>>7-A&1)&g}return{srcPos:t,destPos:b}}function ww(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(i,s){t.translate(i,s),this.__originalTranslate(i,s)},e.scale=function(i,s){t.scale(i,s),this.__originalScale(i,s)},e.transform=function(i,s,a,r,o,l){t.transform(i,s,a,r,o,l),this.__originalTransform(i,s,a,r,o,l)},e.setTransform=function(i,s,a,r,o,l){s===void 0?(t.setTransform(i),this.__originalSetTransform(i)):(t.setTransform(i,s,a,r,o,l),this.__originalSetTransform(i,s,a,r,o,l))},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(i){t.rotate(i),this.__originalRotate(i)},e.clip=function(i){t.clip(i),this.__originalClip(i)},e.moveTo=function(i,s){t.moveTo(i,s),this.__originalMoveTo(i,s)},e.lineTo=function(i,s){t.lineTo(i,s),this.__originalLineTo(i,s)},e.bezierCurveTo=function(i,s,a,r,o,l){t.bezierCurveTo(i,s,a,r,o,l),this.__originalBezierCurveTo(i,s,a,r,o,l)},e.rect=function(i,s,a,r){t.rect(i,s,a,r),this.__originalRect(i,s,a,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}function Eh(e,t,i,s,a,r,o,l,h,c){const[d,f,g,_,b,w]=ot(e);if(f===0&&g===0){const v=o*d+b,S=Math.round(v),M=l*_+w,E=Math.round(M),T=(o+h)*d+b,x=Math.abs(Math.round(T)-S)||1,D=(l+c)*_+w,P=Math.abs(Math.round(D)-E)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(_),S,E),e.drawImage(t,i,s,a,r,0,0,x,P),e.setTransform(d,f,g,_,b,w),[x,P]}if(d===0&&_===0){const v=l*g+b,S=Math.round(v),M=o*f+w,E=Math.round(M),T=(l+c)*g+b,x=Math.abs(Math.round(T)-S)||1,D=(o+h)*f+w,P=Math.abs(Math.round(D)-E)||1;return e.setTransform(0,Math.sign(f),Math.sign(g),0,S,E),e.drawImage(t,i,s,a,r,0,0,P,x),e.setTransform(d,f,g,_,b,w),[P,x]}e.drawImage(t,i,s,a,r,o,l,h,c);const y=Math.hypot(d,f),A=Math.hypot(g,_);return[y*h,A*c]}function zp(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}const i=t.height,s=t.width,a=i%me,r=(i-a)/me,o=a===0?r:r+1,l=e.createImageData(s,me);let h=0,c;const d=t.data,f=l.data;let g,_,b,w;if(t.kind===Vl.GRAYSCALE_1BPP){const y=d.byteLength,A=new Uint32Array(f.buffer,0,f.byteLength>>2),v=A.length,S=s+7>>3,M=4294967295,E=Ct.isLittleEndian?4278190080:255;for(g=0;g<o;g++){for(b=g<r?me:a,c=0,_=0;_<b;_++){const T=y-h;let x=0;const D=T>S?s:T*8-7,P=D&-8;let R=0,I=0;for(;x<P;x+=8)I=d[h++],A[c++]=I&128?M:E,A[c++]=I&64?M:E,A[c++]=I&32?M:E,A[c++]=I&16?M:E,A[c++]=I&8?M:E,A[c++]=I&4?M:E,A[c++]=I&2?M:E,A[c++]=I&1?M:E;for(;x<D;x++)R===0&&(I=d[h++],R=128),A[c++]=I&R?M:E,R>>=1}for(;c<v;)A[c++]=0;e.putImageData(l,0,g*me)}}else if(t.kind===Vl.RGBA_32BPP){for(_=0,w=s*me*4,g=0;g<r;g++)f.set(d.subarray(h,h+w)),h+=w,e.putImageData(l,0,_),_+=me;g<o&&(w=s*a*4,f.set(d.subarray(h,h+w)),e.putImageData(l,0,_))}else if(t.kind===Vl.RGB_24BPP)for(b=me,w=s*b,g=0;g<o;g++){for(g>=r&&(b=a,w=s*b),c=0,_=w;_--;)f[c++]=d[h++],f[c++]=d[h++],f[c++]=d[h++],f[c++]=255;e.putImageData(l,0,g*me)}else throw new Error(`bad image kind: ${t.kind}`)}function jp(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const i=t.height,s=t.width,a=i%me,r=(i-a)/me,o=a===0?r:r+1,l=e.createImageData(s,me);let h=0;const c=t.data,d=l.data;for(let f=0;f<o;f++){const g=f<r?me:a;({srcPos:h}=bw({src:c,srcPos:h,dest:d,width:s,height:g,nonBlackColor:0})),e.putImageData(l,0,f*me)}}function uo(e,t){for(const i of["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"])e[i]!==void 0&&(t[i]=e[i]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function Mh(e){e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0);const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}function Vp(e,t){if(t)return!0;C.singularValueDecompose2dScale(e,ke);const i=Math.fround(Ys.pixelRatio*yi.PDF_TO_CSS_UNITS);return ke[0]<=i&&ke[1]<=i}function Xp(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(this.transparentCanvasEntry),this.transparentCanvas=null,this.transparentCanvasEntry=null)}function Yp(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}function Kp(e,t,i){const s=new Path2D;return s.addPath(e,new DOMMatrix(i).invertSelf().multiplySelf(t)),s}function yw(e){let t=!0,i=s("filename\\*","i").exec(e);if(i){i=i[1];let d=l(i);return d=unescape(d),d=h(d),d=c(d),r(d)}if(i=o(e),i)return r(c(i));if(i=s("filename","i").exec(e),i){i=i[1];let d=l(i);return d=c(d),r(d)}function s(d,f){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function a(d,f){if(d){if(!/^[\x00-\xFF]+$/.test(f))return f;try{const g=new TextDecoder(d,{fatal:!0}),_=hu(f);f=g.decode(_),t=!1}catch{}}return f}function r(d){return t&&/[\x80-\xff]/.test(d)&&(d=a("utf-8",d),t&&(d=a("iso-8859-1",d))),d}function o(d){const f=[];let g;const _=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(g=_.exec(d))!==null;){let[,w,y,A]=g;if(w=parseInt(w,10),w in f){if(w===0)break;continue}f[w]=[y,A]}const b=[];for(let w=0;w<f.length&&w in f;++w){let[y,A]=f[w];A=l(A),y&&(A=unescape(A),w===0&&(A=h(A))),b.push(A)}return b.join("")}function l(d){if(d.startsWith('"')){const f=d.slice(1).split('\\"');for(let g=0;g<f.length;++g){const _=f[g].indexOf('"');_!==-1&&(f[g]=f[g].slice(0,_),f.length=g+1),f[g]=f[g].replaceAll(/\\(.)/g,"$1")}d=f.join('"')}return d}function h(d){const f=d.indexOf("'");return f===-1?d:a(d.slice(0,f),d.slice(f+1).replace(/^[^']*'/,""))}function c(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,g,_,b){if(_==="q"||_==="Q")return b=b.replaceAll("_"," "),b=b.replaceAll(/=([0-9a-fA-F]{2})/g,function(w,y){return String.fromCharCode(parseInt(y,16))}),a(g,b);try{b=atob(b)}catch{}return a(g,b)})}return""}function qp(e,t){const i=new Headers;if(!e||!t||typeof t!="object")return i;for(const s in t){const a=t[s];a!==void 0&&i.append(s,a)}return i}function Kd(e){return URL.parse(e)?.origin??null}function Zm({responseHeaders:e,isHttp:t,rangeChunkSize:i,disableRange:s}){const a={contentLength:0,isRangeSupported:!1},r=parseInt(e.get("Content-Length"),10);return!Number.isInteger(r)||(a.contentLength=r,r<=2*i)||s||!t||e.get("Accept-Ranges")!=="bytes"||(e.get("Content-Encoding")||"identity")==="identity"&&(a.isRangeSupported=!0),a}function t_(e){const t=e.get("Content-Disposition");if(t){let i=yw(t);if(i.includes("%"))try{i=decodeURIComponent(i)}catch{}if(Lf(i))return i}return null}function du(e,t){return new hh(`Unexpected server response (${e}) while retrieving PDF "${t.href}".`,e,e===404||e===0&&t.protocol==="file:")}function e_(e,t){if(e!==t)throw new Error(`Expected range response-origin "${e}" to match "${t}".`)}function Qp(e,t,i,s){return fetch(e,{method:"GET",headers:t,signal:s.signal,mode:"cors",credentials:i?"include":"same-origin",redirect:"follow"})}function Jp(e,t){if(e!==200&&e!==206)throw du(e,t)}function Th(e){if(e instanceof Uint8Array)return e.buffer;if(e instanceof ArrayBuffer)return e;throw new Error(`getArrayBuffer - unexpected data: ${e}`)}function i_(e){return e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ch(){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}function Aw(e,t){const i=i_(t);if(e===void 0)this._fullReader?this._fullReader._enqueue(i):this._queuedChunks.push(i);else{const s=this._rangeReaders.keys().find(a=>a._begin===e);mt(s,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),s._enqueue(i)}}function vw(e){return typeof e!="string"?e:hu(e).buffer}function Sw(e,t){n(ys,this).get(e)?.onProgress?.(t)}function kw(e,t){const i=n(ys,this).get(e);if(!i||(e.readyState>=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),e.readyState!==4)||!n(ys,this).has(e))return;if(n(ys,this).delete(e),e.status===0&&this.isHttp){i.onError(e.status);return}const s=e.status||vd;if(!i.validateStatus(s)){i.onError(e.status);return}const a=vw(e.response);if(s===ip){const r=e.getResponseHeader("Content-Range");/bytes (\d+)-(\d+)\/(\d+)/.test(r)?i.onDone(a):(z('Missing or invalid "Content-Range" header.'),i.onError(0))}else a?i.onDone(a):i.onError(e.status)}function Ew(){const e=this._stream,{disableRange:t,rangeChunkSize:i}=e._source,s=this._fullRequestXhr;e._responseOrigin=Kd(s.responseURL);const a=s.getAllResponseHeaders(),r=new Headers(a?a.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(h=>{const[c,...d]=h.split(": ");return[c,d.join(": ")]}):[]),{contentLength:o,isRangeSupported:l}=Zm({responseHeaders:r,isHttp:e.isHttp,rangeChunkSize:i,disableRange:t});this._contentLength=o,this._isRangeSupported=l,this._filename=t_(r),this._isRangeSupported&&e._abortRequest(s),this._headersCapability.resolve()}function Mw(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e),this._done=!0,this._cachedChunks.length===0&&n(Sd,this).call(this)}function Tw(e){this._storedError=du(e,this._stream.url),this._headersCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}function Cw(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}function xw(){const e=Kd(this._requestXhr?.responseURL);try{e_(e,this._stream._responseOrigin)}catch(t){this._storedError=t,p(Fr,this,s_).call(this,0)}}function Pw(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,n(kd,this).call(this),this.onClosed?.()}function s_(e){this._storedError??(this._storedError=du(e,this._stream.url));for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}function Zp(e,t=null){const i=process.getBuiltinModule("fs"),{Readable:s}=process.getBuiltinModule("stream"),a=i.createReadStream(e,t);return s.toWeb(a)}function Dw(e){return Gl(e)?P_:xe?L_:I_}function n_(e){const t=e.length;if(t<2)return!0;const i=e[0];for(let s=1;s<t;s++){const a=e[s];let r;if(Array.isArray(a))r=p(Ed,this,n_).call(this,a);else if(n(rt,this).has(a))r=n(rt,this).get(a).visible;else return z(`Optional content group not found: ${a}`),!0;switch(i){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return i==="And"}function xh(){if(n(Bt,this))return;const e=n(le,this),t=u(Bt,this,new Uint32Array(e));for(let i=0;i<e;i++)t[i]=i+1;u(Oi,this,new Int32Array(t))}function Ph(){const e=new Map,t=n(Bt,this);for(let i=0,s=n(le,this);i<s;i++){const a=t[i],r=e.get(a);r?r.push(i+1):e.set(a,[i+1])}return e}function Su(e,t=null,i=-1,s=null){const a=n(Oi,this),r=n(Bt,this),o=i+(s?.length??0),l=new Map;for(let h=0,c=n(le,this);h<c;h++){if(h>=i&&h<o){a[h]=-s[h-i];continue}const d=r[h],f=e.get(d);let g=l.get(d)||0;if(t&&f)for(;g<f.length&&t.has(f[g]);)g++;a[h]=f?.[g],l.set(d,g+1)}}function Iw(e){var t;if(n(su,this))return;(t=n(un,this)).ctx??(t.ctx=gp.call(_e,n(Ea,this)));const i=n(Yr,this),s=n(Cd,this);for(const a of e){if(i.length>R_){z("Ignoring additional textDivs for performance reasons."),u(su,this,!0);return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const r=n(Te,this);u(Te,this,document.createElement("span")),n(Te,this).classList.add("markedContent"),a.id&&n(Te,this).setAttribute("id",`${a.id}`),a.tag==="Artifact"&&(n(Te,this).ariaHidden=!0),r.append(n(Te,this))}else a.type==="endMarkedContent"&&u(Te,this,n(Te,this).parentNode);continue}s.push(a.str),p(Kr,this,Lw).call(this,a)}}function Lw(e){const t=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};n(Yr,this).push(t);const s=C.transform(n(Pd,this),e.transform);let a=Math.atan2(s[1],s[0]);const r=n(Pl,this)[e.fontName];r.vertical&&(a+=Math.PI/2);let o=n(nu,this)&&r.fontSubstitution||r.fontFamily;o=_e.fontFamilyMap.get(o)||o;const l=Math.hypot(s[2],s[3]),h=l*Rw.call(_e,o,r,n(Ea,this));let c,d;a===0?(c=s[4],d=s[5]-h):(c=s[4]+h*Math.sin(a),d=s[5]-h*Math.cos(a));const f=t.style;f.left=`${(100*c/n(Td,this)).toFixed(2)}%`,f.top=`${(100*d/n(Md,this)).toFixed(2)}%`,f.setProperty("--font-height",`${l.toFixed(2)}px`),f.fontFamily=o,i.fontSize=l,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,n(nu,this)&&(t.dataset.fontName=r.fontSubstitutionLoadedName||e.fontName),a!==0&&(i.angle=a*(180/Math.PI));let g=!1;if(e.str.length>1)g=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const _=Math.abs(e.transform[0]),b=Math.abs(e.transform[3]);_!==b&&Math.max(_,b)/Math.min(_,b)>1.5&&(g=!0)}if(g&&(i.canvasWidth=r.vertical?e.height:e.width),n(xd,this).set(t,i),n(un,this).div=t,n(un,this).properties=i,p(Kr,this,a_).call(this,n(un,this)),i.hasText&&n(Te,this).append(t),i.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),n(Te,this).append(_)}}function a_(e){const{div:t,properties:i,ctx:s}=e,{style:a}=t;if(i.canvasWidth!==0&&i.hasText){const{fontFamily:r}=a,{canvasWidth:o,fontSize:l}=i;r_.call(_e,s,l*n(Ma,this),r);const{width:h}=s.measureText(t.textContent);h>0&&a.setProperty("--scale-x",o*n(Ma,this)/h)}i.angle!==0&&a.setProperty("--rotate",`${i.angle}deg`)}function gp(e=null){let t=p(_e,this,Zl)._.get(e||(e=""));if(!t){const i=document.createElement("canvas");i.className="hiddenCanvasElement",i.lang=e,document.body.append(i),t=i.getContext("2d",{alpha:!1,willReadFrequently:!0}),p(_e,this,Zl)._.set(e,t),p(_e,this,wp)._.set(t,{size:0,family:""})}return t}function r_(e,t,i){const s=p(_e,this,wp)._.get(e);t===s.size&&i===s.family||(e.font=`${t}px ${i}`,s.size=t,s.family=i)}function Fw(){if(p(_e,this,ru)._!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),ru._=p(_e,this,e.getBoundingClientRect().height),e.remove()}function Rw(e,t,i){const s=p(_e,this,au)._.get(e);if(s)return s;const a=p(_e,this,gp).call(this,i);a.canvas.width=a.canvas.height=sp,p(_e,this,r_).call(this,a,sp,e);const r=a.measureText(""),o=r.fontBoundingBoxAscent,l=Math.abs(r.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let h=.8;return o?h=o/(o+l):(Ct.platform.isFirefox&&z("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?h=t.ascent:t.descent&&(h=1+t.descent)),p(_e,this,au)._.set(e,h),h}function Ow(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new O_,{docId:i}=t,s=e.url?nw(e.url):null,a=e.data?aw(e.data):null,r=e.httpHeaders||null,o=e.withCredentials===!0,l=e.password??null,h=e.range instanceof np?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:2**16;let d=e.worker instanceof th?e.worker:null;const f=e.verbosity,g=typeof e.docBaseUrl=="string"&&!cu(e.docBaseUrl)?e.docBaseUrl:null,_=yh(e.cMapUrl),b=e.cMapPacked!==!1,w=yh(e.iccUrl),y=yh(e.standardFontDataUrl),A=yh(e.wasmUrl),v=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,M=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!xe,E=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!xe&&(Ct.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,x=typeof e.disableFontFace=="boolean"?e.disableFontFace:xe,D=e.fontExtraProperties===!0,P=e.enableXfa===!0,R=e.ownerDocument||globalThis.document,I=e.disableRange===!0,Q=e.disableStream===!0,X=e.disableAutoFetch===!0,V=e.pdfBug===!0,W=e.CanvasFactory||(xe?E_:v_),B=e.FilterFactory||(xe?k_:S_),ee=e.BinaryDataFactory||(xe?M_:ep),Dt=e.enableHWA===!0,Vi=e.enableWebGPU===!0?uw():Promise.resolve(!1),Oa=e.useWasm!==!1,ie=e.pagesMapper||new F_,It=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!xe&&!x,Lt=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:!!(ee===ep&&_&&b&&y&&A&&Gl(_,document.baseURI)&&Gl(y,document.baseURI)&&Gl(A,document.baseURI)),gh=null;db(f);const fu={canvasFactory:new W({ownerDocument:R,enableHWA:Dt}),filterFactory:new B({docId:i,ownerDocument:R}),binaryDataFactory:Lt?null:new ee({cMapUrl:_,standardFontDataUrl:y,wasmUrl:A})};d||(d=th.create({verbosity:f,port:ba.workerPort}),t._worker=d);const yn={docId:i,apiVersion:"5.7.284",data:a,password:l,disableAutoFetch:X,rangeChunkSize:c,docBaseUrl:g,enableXfa:P,evaluatorOptions:{maxImageSize:S,disableFontFace:x,ignoreErrors:v,isOffscreenCanvasSupported:M,isImageDecoderSupported:E,canvasMaxAreaInBytes:T,fontExtraProperties:D,useSystemFonts:It,useWasm:Oa,useWorkerFetch:Lt,cMapUrl:_,cMapPacked:b,iccUrl:w,standardFontDataUrl:y,wasmUrl:A,hasGPU:!1}},$t={ownerDocument:R,pdfBug:V,styleElement:gh,enableHWA:Dt,loadingParams:{disableAutoFetch:X,enableXfa:P}};return Promise.all([d.promise,Vi]).then(function([,tb]){if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");yn.evaluatorOptions.hasGPU=tb;const eb=d.messageHandler.sendWithPromise("GetDocRequest",yn,a?[a.buffer]:null);let pu;if(!a)if(h)pu=new D_({pdfDataRangeTransport:h,disableRange:I,disableStream:Q});else if(s)pu=new(Dw(s))({url:s,httpHeaders:r,withCredentials:o,rangeChunkSize:c,disableRange:I,disableStream:Q});else throw new Error("getDocument - expected either `data`, `range`, or `url` parameter.");return eb.then(ib=>{if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const yp=new oo(i,ib,d.port);t._transport=new N_(yp,t,pu,$t,fu,ie),yp.send("Ready",null)})}).catch(t._capability.reject),t}function Dh(){if(!n(qs,this)||this.destroyed)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),u(qs,this,!1),!0}function mp(){n(Fa,this).resolve(),n($i,this).send("configure",{verbosity:this.verbosity})}function Nw(e){u(en,this,e),u($i,this,new oo("main","worker",e)),n($i,this).on("ready",()=>{}),p(Si,this,mp).call(this)}function Bw(){if(ch._||Nf.call(Ui)){p(Si,this,Ih).call(this);return}let{workerSrc:e}=Ui;try{Ui._isSameOrigin(window.location,e)||(e=Ui._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),i=new oo("main","worker",t),s=()=>{a.abort(),i.destroy(),t.terminate(),this.destroyed?n(Fa,this).reject(new Error("Worker was destroyed")):p(Si,this,Ih).call(this)},a=new AbortController;t.addEventListener("error",()=>{n(qr,this)||s()},{signal:a.signal}),i.on("test",o=>{if(a.abort(),this.destroyed||!o){s();return}u($i,this,i),u(en,this,t),u(qr,this,t),p(Si,this,mp).call(this)}),i.on("ready",o=>{if(a.abort(),this.destroyed){s();return}try{r()}catch{p(Si,this,Ih).call(this)}});const r=()=>{const o=new Uint8Array;i.send("test",o,[o.buffer])};r();return}catch{rd("The worker has been disabled.")}p(Si,this,Ih).call(this)}function Ih(){ch._||(z("Setting up fake worker."),ch._=!0),Ui._setupFakeWorkerGlobal.then(e=>{var t,i;if(this.destroyed){n(Fa,this).reject(new Error("Worker was destroyed"));return}const s=new A_;u(en,this,s);const a=`fake${ap._=(t=ap._,i=t++,t),i}`,r=new oo(a+"_worker",a,s);e.setup(r,s),u($i,this,new oo(a,a+"_worker",s)),p(Si,this,mp).call(this)}).catch(e=>{n(Fa,this).reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}function Nf(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}function Lh(e,t=null){return n(Rr,this).getOrInsertComputed(e,()=>this.messageHandler.sendWithPromise(e,t))}function ku({loaded:e,total:t}){this.loadingTask.onProgress?.({loaded:e,total:t,percent:t?pt(Math.round(e/t*100),0,100):NaN})}function o_(){const e=document.createElement("div"),t=n(Wi,this)._signal;e.addEventListener("contextmenu",ri,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),n(Qs,this)&&(e.id=`${n(Qs,this).id}_colorpicker_dropdown`);for(const[i,s]of n(Wi,this).highlightColors){const a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",s),a.title=i,a.setAttribute("data-l10n-id",Ld._[i]);const r=document.createElement("span");a.append(r),r.className="swatch",r.style.backgroundColor=s,a.ariaSelected=s===n(Dl,this),a.addEventListener("click",p(At,this,l_).bind(this,s),{signal:t}),e.append(a)}return e.addEventListener("keydown",p(At,this,h_).bind(this),{signal:t}),e}function l_(e,t){t.stopPropagation(),n(Id,this).dispatch("switchannotationeditorparams",{source:this,type:G.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}function h_(e){__._keyboardManager.exec(this,e)}function Na(e){if(fa.call(p(At,this))){this.hideDropdown();return}if(u(Dd,this,e.detail===0),n(Ca,this)||(u(Ca,this,new AbortController),window.addEventListener("pointerdown",p(At,this,Ww).bind(this),{signal:n(Wi,this).combinedSignal(n(Ca,this))})),n(Qe,this).ariaExpanded="true",n(jt,this)){n(jt,this).classList.remove("hidden");return}const t=u(jt,this,p(At,this,o_).call(this));n(Qe,this).append(t)}function Ww(e){n(jt,this)?.contains(e.target)||this.hideDropdown()}function fa(){return n(jt,this)&&!n(jt,this).classList.contains("hidden")}function tg(e){return Math.floor(pt(e,0,1)*255).toString(16).padStart(2,"0")}function fo(e){return pt(e,0,1)*255}function eg(e){const{container:{style:t},data:{rect:i,rotation:s},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:r,pageX:o,pageY:l}}}}=this;i?.splice(0,4,...e),t.left=`${100*(e[0]-o)/a}%`,t.top=`${100*(r-e[3]+l)/r}%`,s===0?(t.width=`${100*(e[2]-e[0])/a}%`,t.height=`${100*(e[3]-e[1])/r}%`):this.setRotation(s)}function Ur(){this.container.setAttribute("data-internal-link","")}function Hw(e,t,i="",s=null){e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:i&&(e.title=i),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,s),!1),p(Ni,this,Ur).call(this)}function Uw(e,t,i=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),i&&(e.title=i),p(Ni,this,Ur).call(this)}function ig(){return new B_({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}function Eu(){if(n(sn,this))return;u(sn,this,new AbortController);const{signal:e}=n(sn,this);for(const t of this.trigger)t.addEventListener("click",n(dh,this),{signal:e}),t.addEventListener("pointerenter",n(op,this),{signal:e}),t.addEventListener("pointerleave",n(rp,this),{signal:e}),t.classList.add("popupTriggerArea");for(const t of n(no,this))t.container?.addEventListener("keydown",n(xa,this),{signal:e})}function sg(){const e=n(no,this).find(t=>t.hasCommentButton);e&&u(Js,this,e._normalizePoint(e.commentButtonPosition))}function ng(){if(n(Qt,this).extraPopupElement&&!n(Qt,this).editor)return;n(Et,this)||this.renderCommentButton();const[e,t]=n(Js,this),{style:i}=n(Et,this);i.left=`calc(${e}%)`,i.top=`calc(${t}% - var(--comment-button-dim))`}function ag(){n(Qt,this).extraPopupElement||(n(Et,this)||this.renderCommentButton(),n(Et,this).style.backgroundColor=this.commentButtonColor||"")}function _p(){const e=n(Zs,this),t=n(ds,this);return e?.str&&(!t?.str||t.str===e.str)&&n(Zs,this).html||null}function rg(){return _p.call(p(it,this))?.attributes?.style?.fontSize||0}function $w(){return _p.call(p(it,this))?.attributes?.style?.color||null}function Gw(e){const t=[],i={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},s={style:{color:$w.call(p(it,this)),fontSize:rg.call(p(it,this))?`calc(${rg.call(p(it,this))}px * var(--total-scale-factor))`:""}};for(const a of e.split(`
1
+ import{n as sb,t as k}from"./defineProperty-DHkErCmG.js";import{Fr as nb,Ir as ab,wa as wn}from"./index-DN4SafrP.js";function p(e,t,i){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var up=wn((()=>{}));function jm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}var Vm=wn((()=>{}));function m(e,t,i){jm(e,t),t.set(e,i)}var rb=wn((()=>{Vm()}));function n(e,t){return e.get(p(e,t))}var ob=wn((()=>{up()}));function H(e,t){jm(e,t),t.add(e)}var lb=wn((()=>{Vm()}));function u(e,t,i){return e.set(p(e,t),i),i}var hb=wn((()=>{up()}));function Vd(e,t,i){t||(t=[]);var s=t.length++;return Object.defineProperty({},"_",{set:function(r){t[s]=r,e.apply(i,t)}})}var cb=wn((()=>{}));function db(e){Number.isInteger(e)&&(fh=e)}function ub(){return fh}function rd(e){fh>=Xl.INFOS&&console.info(`Info: ${e}`)}function z(e){fh>=Xl.WARNINGS&&console.warn(`Warning: ${e}`)}function J(e){throw new Error(e)}function mt(e,t){e||J(t)}function fb(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Xm(e,t=null,i=null){if(!e)return null;if(i&&typeof e=="string"&&(i.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),i.tryConvertEncoding))try{e=mb(e)}catch{}const s=t?URL.parse(e,t):URL.parse(e);return fb(s)?s:null}function Ym(e,t,i=!1){const s=URL.parse(e);return s?(s.hash=t,s.href):i&&Xm(e,"http://example.com")?e.split("#",1)[0]+`${t?`#${t}`:""}`:""}function Df(e){return e.substring(e.lastIndexOf("/")+1)}function $(e,t,i,s=!1){return Object.defineProperty(e,t,{value:i,enumerable:!s,configurable:!0,writable:!1}),i}function pb(e){(typeof e!="object"||e?.length===void 0)&&J("Invalid argument for bytesToString");const t=e.length,i=8192;if(t<i)return String.fromCharCode.apply(null,e);const s=[];for(let a=0;a<t;a+=i){const r=Math.min(a+i,t),o=e.subarray(a,r);s.push(String.fromCharCode.apply(null,o))}return s.join("")}function hu(e){typeof e!="string"&&J("Invalid argument for stringToBytes");const t=e.length,i=new Uint8Array(t);for(let s=0;s<t;++s)i[s]=e.charCodeAt(s)&255;return i}function gb(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function gu(e,t,i,s,a,r,o,l,h,c){if(h<=0||h>=1)return;const d=1-h,f=h*h,g=f*h,_=d*(d*(d*e+3*h*t)+3*f*i)+g*s,b=d*(d*(d*a+3*h*r)+3*f*o)+g*l;c[0]=Math.min(c[0],_),c[1]=Math.min(c[1],b),c[2]=Math.max(c[2],_),c[3]=Math.max(c[3],b)}function Ap(e,t,i,s,a,r,o,l,h,c,d,f){if(Math.abs(h)<1e-12){Math.abs(c)>=1e-12&&p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,-d/c,f);return}const g=c**2-4*d*h;if(g<0)return;const _=Math.sqrt(g),b=2*h;p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,(-c+_)/b,f),p(cd,this,gu).call(this,e,t,i,s,a,r,o,l,(-c-_)/b,f)}function mb(e){return decodeURIComponent(escape(e))}function _b(e){return ud||(ud=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Yf=new Map([["ſt","ſt"]])),e.replaceAll(ud,(t,i,s)=>i?i.normalize("NFKC"):Yf.get(s))}function vp(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),pb(e)}function bb(e,t,i){if(!Array.isArray(i)||i.length<2)return!1;const[s,a,...r]=i;if(!e(s)&&!Number.isInteger(s)||!t(a))return!1;const o=r.length;let l=!0;switch(a.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return o===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(o!==4)return!1;l=!1;break;default:return!1}for(const h of r)if(!(typeof h=="number"||l&&h===null))return!1;return!0}function pt(e,t,i){return Math.min(Math.max(e,t),i)}async function If(e,t="text"){if(Gl(e,document.baseURI)){const i=await fetch(e);if(!i.ok)throw new Error(i.statusText);switch(t){case"blob":return i.blob();case"bytes":return i.bytes();case"json":return i.json()}return i.text()}return new Promise((i,s)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t==="bytes"?"arraybuffer":t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"bytes":i(new Uint8Array(a.response));return;case"blob":case"json":i(a.response);return}i(a.responseText);return}s(new Error(a.statusText))}},a.send(null)})}function cu(e){const t=e.length;let i=0;for(;i<t&&e[i].trim()==="";)i++;return e.substring(i,i+5).toLowerCase()==="data:"}function Lf(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function wb(e){return[e]=e.split(/[#?]/,1),Df(e)}function yb(e,t="document.pdf"){if(typeof e!="string")return t;if(cu(e))return z('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const s=(l=>{try{return new URL(l)}catch{try{return new URL(decodeURIComponent(l))}catch{try{return new URL(l,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(l),"https://foo.bar")}catch{return null}}}}})(e);if(!s)return t;const a=l=>{try{let h=decodeURIComponent(l);return h.includes("/")&&(h=Df(h),/^\.pdf$/i.test(h))?l:h}catch{return l}},r=/\.pdf$/i,o=Df(s.pathname);if(r.test(o))return a(o);if(s.searchParams.size>0){const l=c=>[...c].findLast(d=>r.test(d)),h=l(s.searchParams.values())??l(s.searchParams.keys());if(h)return a(h)}if(s.hash){const l=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(s.hash);if(l)return a(l[0])}return t}function Gl(e,t){const i=t?URL.parse(e,t):URL.parse(e);return/https?:/.test(i?.protocol??"")}function ri(e){e.preventDefault()}function bt(e){e.preventDefault(),e.stopPropagation()}function Ab(e){console.log("Deprecated API usage: "+e)}function vb(e,{scale:t=1,rotation:i=0}){const{width:s,height:a}=e.attributes.style;return new Jd({viewBox:[0,0,parseInt(s,10),parseInt(a,10)],userUnit:1,scale:t,rotation:i})}function Ff(e){if(e.startsWith("#")){const i=e.slice(1);return[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16),i.length>=8?parseInt(i.slice(6,8),16)/255:1]}if(e.startsWith("rgb(")){const[i,s,a]=e.slice(4,-1).split(",").map(r=>parseInt(r,10));return[i,s,a,1]}if(e.startsWith("rgba(")){const i=e.slice(5,-1).split(",");return[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10),parseFloat(i[3])]}const t=e.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return t?[Math.round(parseFloat(t[1])*255),Math.round(parseFloat(t[2])*255),Math.round(parseFloat(t[3])*255),t[4]!==void 0&&t[4]!=="none"?parseFloat(t[4]):1]:null}function zl(e){const t=Ff(e);return t?t.slice(0,3):(z(`Not a valid color format: "${e}"`),[0,0,0])}function Sb(e){const t=document.createElement("span");t.style.visibility="hidden",t.style.colorScheme="only light",document.body.append(t);for(const i of e.keys()){t.style.color=i;const s=window.getComputedStyle(t).color;e.set(i,zl(s))}t.remove()}function ot(e){const{a:t,b:i,c:s,d:a,e:r,f:o}=e.getTransform();return[t,i,s,a,r,o]}function ki(e){const{a:t,b:i,c:s,d:a,e:r,f:o}=e.getTransform().invertSelf();return[t,i,s,a,r,o]}function An(e,t,i=!1,s=!0){if(t instanceof Jd){const{pageWidth:a,pageHeight:r}=t.rawDims,{style:o}=e,l=Ct.isCSSRoundSupported,h=`var(--total-scale-factor) * ${a}px`,c=`var(--total-scale-factor) * ${r}px`,d=l?`round(down, ${h}, var(--scale-round-x))`:`calc(${h})`,f=l?`round(down, ${c}, var(--scale-round-y))`:`calc(${c})`;!i||t.rotation%180===0?(o.width=d,o.height=f):(o.width=f,o.height=d)}s&&e.setAttribute("data-main-rotation",t.rotation)}function kb(e,t){t=pt(t??1,0,1);const i=255*(1-t);return e.map(s=>Math.round(s*t+i))}function Sp(e,t){const i=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.max(i,s,a),o=Math.min(i,s,a),l=(r+o)/2;if(r===o)t[0]=t[1]=0;else{const h=r-o;switch(t[1]=l<.5?h/(r+o):h/(2-r-o),r){case i:t[0]=((s-a)/h+(s<a?6:0))*60;break;case s:t[0]=((a-i)/h+2)*60;break;case a:t[0]=((i-s)/h+4)*60;break}}t[2]=l}function Rf(e,t){const i=e[0],s=e[1],a=e[2],r=(1-Math.abs(2*a-1))*s,o=r*(1-Math.abs(i/60%2-1)),l=a-r/2;switch(Math.floor(i/60)){case 0:t[0]=r+l,t[1]=o+l,t[2]=l;break;case 1:t[0]=o+l,t[1]=r+l,t[2]=l;break;case 2:t[0]=l,t[1]=r+l,t[2]=o+l;break;case 3:t[0]=l,t[1]=o+l,t[2]=r+l;break;case 4:t[0]=o+l,t[1]=l,t[2]=r+l;break;case 5:case 6:t[0]=r+l,t[1]=l,t[2]=o+l;break}}function kp(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Ep(e,t,i){Rf(e,i),i.map(kp);const s=.2126*i[0]+.7152*i[1]+.0722*i[2];Rf(t,i),i.map(kp);const a=.2126*i[0]+.7152*i[1]+.0722*i[2];return s>a?(s+.05)/(a+.05):(a+.05)/(s+.05)}function Eb(e,t){const i=e[0]+e[1]*256+e[2]*65536+t[0]*16777216+t[1]*4294967296+t[2]*1099511627776;let s=qf.get(i);if(s)return s;const a=new Float32Array(9),r=a.subarray(0,3),o=a.subarray(3,6);Sp(e,o);const l=a.subarray(6,9);Sp(t,l);const h=l[2]<.5,c=h?12:4.5;if(o[2]=h?Math.sqrt(o[2]):1-Math.sqrt(1-o[2]),Ep(o,l,r)<c){let d,f;h?(d=o[2],f=1):(d=0,f=o[2]);const g=.005;for(;f-d>g;){const _=o[2]=(d+f)/2;h===Ep(o,l,r)<c?d=_:f=_}o[2]=h?f:d}return Rf(o,r),s=C.makeHexColor(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[2]*255)),qf.set(i,s),s}function Mp({html:e,dir:t,className:i},s){const a=document.createDocumentFragment();if(typeof e=="string"){const r=document.createElement("p");r.dir=t||"auto";const o=e.split(/(?:\r\n?|\n)/);for(let l=0,h=o.length;l<h;++l){const c=o[l];r.append(document.createTextNode(c)),l<h-1&&r.append(document.createElement("br"))}a.append(r)}else Kf.render({xfaHtml:e,div:a,intent:"richText"});a.firstElementChild.classList.add("richText",i),s.append(a)}function Tp(e){const t=new Path2D;if(!e)return t;for(let i=0,s=e.length;i<s;)switch(e[i++]){case xr.moveTo:t.moveTo(e[i++],e[i++]);break;case xr.lineTo:t.lineTo(e[i++],e[i++]);break;case xr.curveTo:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case xr.quadraticCurveTo:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case xr.closePath:t.closePath();break;default:z(`Unrecognized drawing path operator: ${e[i-1]}`);break}return t}function Mb(e){e.stopPropagation()}function Tb(e){n(Ai,this)._focusEventsAllowed=!1,bt(e)}function Cb(e){n(Ai,this)._focusEventsAllowed=!0,bt(e)}function lo(e){const t=n(Ai,this)._uiManager._signal;return!(t instanceof AbortSignal)||t.aborted?!1:(e.addEventListener("focusin",p(Be,this,Tb).bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",p(Be,this,Cb).bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",ri,{signal:t}),!0)}function mh(){const e=document.createElement("div");return e.className="divider",e}function xb(){const e=u(ga,this,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const t=n(ln,this)._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",ri,{signal:t});const i=u(Zd,this,document.createElement("div"));return i.className="buttons",e.append(i),n(ln,this).hasCommentManager()&&p($r,this,Cp).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{n(ln,this).commentSelection("floating_button")}),p($r,this,Cp).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{n(ln,this).highlightSelection("floating_button")}),e}function Pb(e,t){let i=0,s=0;for(const a of e){const r=a.y+a.height;if(r<i)continue;const o=a.x+(t?a.width:0);if(r>i){s=o,i=r;continue}t?o>s&&(s=o):o<s&&(s=o)}return[t?1-s:s,i]}function Cp(e,t,i,s){const a=document.createElement("button");a.classList.add("basic",e),a.tabIndex=0,a.setAttribute("data-l10n-id",t);const r=document.createElement("span");a.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id",i);const o=n(ln,this)._signal;o instanceof AbortSignal&&!o.aborted&&(a.addEventListener("contextmenu",ri,{signal:o}),a.addEventListener("click",s,{signal:o})),n(Zd,this).append(a)}function xp(e,t,i){for(const s of i)t.addEventListener(s,e[s].bind(e))}async function mu(e,t){n(Ht,this)||u(Ht,this,new Map);let i=n(Ht,this).get(e);if(i===null)return null;if(i?.bitmap)return i.refCounter+=1,i;try{var s,a;i||(i={bitmap:null,id:`image_${n(kl,this)}_${u(Gr,this,(s=n(Gr,this),a=s++,s)),a}`,refCounter:0,isSvg:!1});let r;if(typeof t=="string"?(i.url=t,r=await If(t,"blob")):t instanceof File?r=i.file=t:t instanceof Blob&&(r=t),r.type==="image/svg+xml"){const o=g_._isSVGFittingCanvas,l=new FileReader,h=new Image,c=new Promise((d,f)=>{h.onload=()=>{i.bitmap=h,i.isSvg=!0,d()},l.onload=async()=>{const g=i.svgUrl=l.result;h.src=await o?`${g}#svgView(preserveAspectRatio(none))`:g},h.onerror=l.onerror=f});l.readAsDataURL(r),await c}else i.bitmap=await createImageBitmap(r);i.refCounter=1}catch(r){z(r),i=null}return n(Ht,this).set(e,i),i&&n(Ht,this).set(i.id,i),i}function Db(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}function fp({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}function Km(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const i of n(yt,this).values())if(i.hasTextLayer(e))return i;return null}function Ib(e){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}function Lb(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=p(N,this,fp).call(this,e).closest(".textLayer"),i=this.getSelectionBoxes(t);i&&(n(zi,this)||u(zi,this,new y_(this)),n(zi,this).show(t,i,this.direction==="ltr"))}function Fb(){const e=document.getSelection();if(!e||e.isCollapsed){n(Ks,this)&&(n(zi,this)?.hide(),u(Ks,this,null),p(N,this,Me).call(this,{hasSelectedText:!1}));return}const{anchorNode:t}=e;if(t===n(Ks,this))return;const i=p(N,this,fp).call(this,e).closest(".textLayer");if(!i){n(Ks,this)&&(n(zi,this)?.hide(),u(Ks,this,null),p(N,this,Me).call(this,{hasSelectedText:!1}));return}if(n(zi,this)?.hide(),u(Ks,this,t),p(N,this,Me).call(this,{hasSelectedText:!0}),!(n(Ut,this)!==U.HIGHLIGHT&&n(Ut,this)!==U.NONE)&&(n(Ut,this)===U.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),u(ma,this,this.isShiftKeyDown),!this.isShiftKeyDown)){const s=n(Ut,this)===U.HIGHLIGHT?p(N,this,Km).call(this,i):null;if(s?.toggleDrawing(),n(El,this)){const a=new AbortController,r=this.combinedSignal(a),o=l=>{l.type==="pointerup"&&l.button!==0||(a.abort(),s?.toggleDrawing(!0),l.type==="pointerup"&&p(N,this,Xd).call(this,"main_toolbar"))};window.addEventListener("pointerup",o,{signal:r}),window.addEventListener("blur",o,{signal:r})}else s?.toggleDrawing(!0),p(N,this,Xd).call(this,"main_toolbar")}}function Xd(e=""){n(Ut,this)===U.HIGHLIGHT?this.highlightSelection(e):n(pd,this)&&p(N,this,Lb).call(this)}function Rb(){document.addEventListener("selectionchange",p(N,this,Fb).bind(this),{signal:this._signal})}function Ob(){if(n(Ia,this))return;u(Ia,this,new AbortController);const e=this.combinedSignal(n(Ia,this));window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}function Nb(){n(Ia,this)?.abort(),u(Ia,this,null)}function Pp(){if(n(La,this))return;u(La,this,new AbortController);const e=this.combinedSignal(n(La,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}function Bb(){n(La,this)?.abort(),u(La,this,null)}function Wb(){if(n(Da,this))return;u(Da,this,new AbortController);const e=this.combinedSignal(n(Da,this));document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}function Hb(){n(Da,this)?.abort(),u(Da,this,null)}function Ub(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}function Me(e){Object.entries(e).some(([t,i])=>n(tu,this)[t]!==i)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(n(tu,this),e)}),n(Ut,this)===U.HIGHLIGHT&&e.hasSelectedEditor===!1&&p(N,this,js).call(this,[[G.HIGHLIGHT_FREE,!0]]))}function js(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}async function $b(){if(!n(hn,this)){u(hn,this,!0);const e=[];for(const t of n(yt,this).values())e.push(t.enable());await Promise.all(e);for(const t of n(Mt,this).values())t.enable()}}function Gb(){if(this.unselectAll(),n(hn,this)){u(hn,this,!1);for(const e of n(yt,this).values())e.disable();for(const e of n(Mt,this).values())e.disable()}}function Dp(e){const t=n(yt,this).get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}function zb(){let e=null;for(e of n(et,this));return e}function _h(){if(n(Mt,this).size===0)return!0;if(n(Mt,this).size===1)for(const e of n(Mt,this).values())return e.isEmpty();return!1}function Ip(e){for(const t of n(et,this))t.unselect();n(et,this).clear();for(const t of e)t.isEmpty()||(n(et,this).add(t),t.select());p(N,this,Me).call(this,{hasSelectedEditor:this.hasSelection})}function Yd(){return n(Zt,this)&&"added"||n(Zt,this)===null&&this.guessedText&&"review"||"missing"}async function _u(){const e=n(Ii,this);if(!e)return;if(n(cs,this)){if(e.classList.toggle("done",!!n(Zt,this)),e.setAttribute("data-l10n-id",va._[Yd.call(p(gs,this))]),n(Ml,this)?.setAttribute("data-l10n-id",va._[`${Yd.call(p(gs,this))}-label`]),!n(Zt,this)){n(ws,this)?.remove();return}}else{if(!n(Zt,this)&&!n(ps,this)){e.classList.remove("done"),n(ws,this)?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=n(ws,this);if(!t){u(ws,this,t=document.createElement("span")),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${n(He,this).id}`;const i=100,s=n(He,this)._uiManager._signal;s.addEventListener("abort",()=>{clearTimeout(n(si,this)),u(si,this,null)},{once:!0}),e.addEventListener("mouseenter",()=>{u(si,this,setTimeout(()=>{u(si,this,null),n(ws,this).classList.add("show"),n(He,this)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:s}),e.addEventListener("mouseleave",()=>{n(si,this)&&(clearTimeout(n(si,this)),u(si,this,null)),n(ws,this)?.classList.remove("show")},{signal:s})}n(ps,this)?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=n(Zt,this)),t.parentNode||e.append(t),n(He,this).getElementForAltText()?.setAttribute("aria-describedby",t.id)}function Lp(e,t){if(!n(ht,this)._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[n(ht,this)._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));const i=n(ht,this)._uiManager._signal;if(!(i instanceof AbortSignal)||i.aborted)return e;e.addEventListener("contextmenu",ri,{signal:i}),t&&(e.addEventListener("focusin",a=>{n(ht,this)._focusEventsAllowed=!1,bt(a)},{capture:!0,signal:i}),e.addEventListener("focusout",a=>{n(ht,this)._focusEventsAllowed=!0,bt(a)},{capture:!0,signal:i})),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:i});const s=a=>{a.preventDefault(),e===n(bi,this)?this.edit():n(ht,this).toggleComment(!0)};return e.addEventListener("click",s,{capture:!0,signal:i}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(u(Pr,this,!0),s(a))},{signal:i}),e.addEventListener("pointerenter",()=>{n(ht,this).toggleComment(!1,!0)},{signal:i}),e.addEventListener("pointerleave",()=>{n(ht,this).toggleComment(!1,!1)},{signal:i}),e}function jb(e){if(n(md,this)?.call(this))return;if(e.touches.length===1){if(n(cn,this))return;const s=u(cn,this,new AbortController),a=AbortSignal.any([n(zr,this),s.signal]),r=n(Yl,this),o={capture:!0,signal:a,passive:!1},l=h=>{h.pointerType==="touch"&&(n(cn,this)?.abort(),u(cn,this,null))};r.addEventListener("pointerdown",h=>{h.pointerType==="touch"&&(bt(h),l(h))},o),r.addEventListener("pointerup",l,o),r.addEventListener("pointercancel",l,o);return}if(!n(gn,this)){u(gn,this,new AbortController);const s=AbortSignal.any([n(zr,this),n(gn,this).signal]),a=n(Yl,this),r={signal:s,capture:!1,passive:!1};a.addEventListener("touchmove",p(Kl,this,Vb).bind(this),r);const o=p(Kl,this,Xb).bind(this);a.addEventListener("touchend",o,r),a.addEventListener("touchcancel",o,r),r.capture=!0,a.addEventListener("pointerdown",bt,r),a.addEventListener("pointermove",bt,r),a.addEventListener("pointercancel",bt,r),a.addEventListener("pointerup",bt,r),n(_d,this)?.call(this)}if(bt(e),e.touches.length!==2||n(gd,this)?.call(this)){u(bn,this,null);return}let[t,i]=e.touches;t.identifier>i.identifier&&([t,i]=[i,t]),u(bn,this,{touch0X:t.screenX,touch0Y:t.screenY,touch1X:i.screenX,touch1Y:i.screenY})}function Vb(e){if(!n(bn,this)||e.touches.length!==2)return;bt(e);let[t,i]=e.touches;t.identifier>i.identifier&&([t,i]=[i,t]);const{screenX:s,screenY:a}=t,{screenX:r,screenY:o}=i,l=n(bn,this),{touch0X:h,touch0Y:c,touch1X:d,touch1Y:f}=l,g=d-h,_=f-c,b=r-s,w=o-a,y=Math.hypot(b,w)||1,A=Math.hypot(g,_)||1;if(!n(io,this)&&Math.abs(A-y)<=m_.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=s,l.touch0Y=a,l.touch1X=r,l.touch1Y=o,!n(io,this)){u(io,this,!0);return}const v=[(s+r)/2,(a+o)/2];n(bd,this)?.call(this,v,A,y)}function Xb(e){e.touches.length>=2||(n(gn,this)&&(n(gn,this).abort(),u(gn,this,null),n(wd,this)?.call(this)),n(bn,this)&&(bt(e),u(bn,this,null),u(io,this,!1)))}function Fp([e,t],i,s){[i,s]=this.screenToPageTranslation(i,s),this.x+=i/e,this.y+=s/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}function Rp(e,t,i){switch(i){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function Of(e){switch(e){case 90:{const[t,i]=this.pageDimensions;return[0,-t/i,i/t,0]}case 180:return[-1,0,0,-1];case 270:{const[t,i]=this.pageDimensions;return[0,t/i,-i/t,0]}default:return[1,0,0,1]}}function Yb(){if(n(ce,this))return;u(ce,this,document.createElement("div")),n(ce,this).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const i of e){const s=document.createElement("div");n(ce,this).append(s),s.classList.add("resizer",i),s.setAttribute("data-resizer-name",i),s.addEventListener("pointerdown",p(Y,this,Kb).bind(this,i),{signal:t}),s.addEventListener("contextmenu",ri,{signal:t}),s.tabIndex=-1}this.div.prepend(n(ce,this))}function Kb(e,t){t.preventDefault();const{isMac:i}=Ct.platform;if(t.button!==0||t.ctrlKey&&i)return;n(gt,this)?.toggle(!1);const s=this._isDraggable;this._isDraggable=!1,u(so,this,[t.screenX,t.screenY]);const a=new AbortController,r=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",p(Y,this,qm).bind(this,e),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",bt,{passive:!1,signal:r}),window.addEventListener("contextmenu",ri,{signal:r}),u(mn,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const o=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const h=()=>{a.abort(),this.parent.togglePointerEvents(!0),n(gt,this)?.toggle(!0),this._isDraggable=s,this.parent.div.style.cursor=o,this.div.style.cursor=l,p(Y,this,pp).call(this)};window.addEventListener("pointerup",h,{signal:r}),window.addEventListener("blur",h,{signal:r})}function Op(e,t,i,s){this.width=i,this.height=s,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}function pp(){if(!n(mn,this))return;const{savedX:e,savedY:t,savedWidth:i,savedHeight:s}=n(mn,this);u(mn,this,null);const a=this.x,r=this.y,o=this.width,l=this.height;a===e&&r===t&&o===i&&l===s||this.addCommands({cmd:p(Y,this,Op).bind(this,a,r,o,l),undo:p(Y,this,Op).bind(this,e,t,i,s),mustExec:!0})}function qm(e,t){const[i,s]=this.parentDimensions,a=this.x,r=this.y,o=this.width,l=this.height,h=Pe.MIN_SIZE/i,c=Pe.MIN_SIZE/s,d=p(Y,this,Of).call(this,this.rotation),f=(W,B)=>[d[0]*W+d[2]*B,d[1]*W+d[3]*B],g=p(Y,this,Of).call(this,360-this.rotation),_=(W,B)=>[g[0]*W+g[2]*B,g[1]*W+g[3]*B];let b,w,y=!1,A=!1;switch(e){case"topLeft":y=!0,b=(W,B)=>[0,0],w=(W,B)=>[W,B];break;case"topMiddle":b=(W,B)=>[W/2,0],w=(W,B)=>[W/2,B];break;case"topRight":y=!0,b=(W,B)=>[W,0],w=(W,B)=>[0,B];break;case"middleRight":A=!0,b=(W,B)=>[W,B/2],w=(W,B)=>[0,B/2];break;case"bottomRight":y=!0,b=(W,B)=>[W,B],w=(W,B)=>[0,0];break;case"bottomMiddle":b=(W,B)=>[W/2,B],w=(W,B)=>[W/2,0];break;case"bottomLeft":y=!0,b=(W,B)=>[0,B],w=(W,B)=>[W,0];break;case"middleLeft":A=!0,b=(W,B)=>[0,B/2],w=(W,B)=>[W,B/2];break}const v=b(o,l),S=w(o,l);let M=f(...S);const E=Pe._round(a+M[0]),T=Pe._round(r+M[1]);let x=1,D=1,P,R;if(t.fromKeyboard)({deltaX:P,deltaY:R}=t);else{const{screenX:W,screenY:B}=t,[ee,Dt]=n(so,this);[P,R]=this.screenToPageTranslation(W-ee,B-Dt),n(so,this)[0]=W,n(so,this)[1]=B}if([P,R]=_(P/i,R/s),y){const W=Math.hypot(o,l);x=D=Math.max(Math.min(Math.hypot(S[0]-v[0]-P,S[1]-v[1]-R)/W,1/o,1/l),h/o,c/l)}else A?x=pt(Math.abs(S[0]-v[0]-P),h,1)/o:D=pt(Math.abs(S[1]-v[1]-R),c,1)/l;const I=Pe._round(o*x),Q=Pe._round(l*D);M=f(...w(I,Q));const X=E-M[0],V=T-M[1];n(he,this)||u(he,this,[this.x,this.y,this.width,this.height]),this.width=I,this.height=Q,this.x=X,this.y=V,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function qb(){u(mn,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),n(gt,this)?.toggle(!1),this.parent.togglePointerEvents(!1)}function Qb(e,t,i){let a=.7*(i/t)+1-.7;if(a===1)return;const r=p(Y,this,Of).call(this,this.rotation),o=(E,T)=>[r[0]*E+r[2]*T,r[1]*E+r[3]*T],[l,h]=this.parentDimensions,c=this.x,d=this.y,f=this.width,g=this.height,_=Pe.MIN_SIZE/l,b=Pe.MIN_SIZE/h;a=Math.max(Math.min(a,1/f,1/g),_/f,b/g);const w=Pe._round(f*a),y=Pe._round(g*a);if(w===f&&y===g)return;n(he,this)||u(he,this,[c,d,f,g]);const A=o(f/2,g/2),v=Pe._round(c+A[0]),S=Pe._round(d+A[1]),M=o(w/2,y/2);this.x=v-M[0],this.y=S-M[1],this.width=w,this.height=y,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function Jb(){n(gt,this)?.toggle(!0),this.parent.togglePointerEvents(!0),p(Y,this,pp).call(this)}function Qm(e){const{isMac:t}=Ct.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}function Zb(e){const{isSelected:t}=this;this._uiManager.setUpDragSession();let i=!1;const s=new AbortController,a=this._uiManager.combinedSignal(s),r={capture:!0,passive:!1,signal:a},o=h=>{s.abort(),u(Sa,this,null),u(Dr,this,!1),this._uiManager.endDragSession()||p(Y,this,Qm).call(this,h),i&&this._onStopDragging()};t&&(u(ql,this,e.clientX),u(Ql,this,e.clientY),u(Sa,this,e.pointerId),u(eu,this,e.pointerType),window.addEventListener("pointermove",h=>{i||(i=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:c,clientY:d,pointerId:f}=h;if(f!==n(Sa,this)){bt(h);return}const[g,_]=this.screenToPageTranslation(c-n(ql,this),d-n(Ql,this));u(ql,this,c),u(Ql,this,d),this._uiManager.dragSelectedEditors(g,_)},r),window.addEventListener("touchmove",bt,r),window.addEventListener("pointerdown",h=>{h.pointerType===n(eu,this)&&(n(_a,this)||h.isPrimary)&&o(h),bt(h)},r));const l=h=>{if(!n(Sa,this)||n(Sa,this)===h.pointerId){o(h);return}bt(h)};window.addEventListener("pointerup",l,{signal:a}),window.addEventListener("blur",l,{signal:a})}function Np(){if(n(Ta,this)||!this.div)return;u(Ta,this,new AbortController);const e=this._uiManager.combinedSignal(n(Ta,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}function tw(e){Pe._resizerKeyboardManager.exec(this,e)}function ew(e){n(tn,this)&&e.relatedTarget?.parentNode!==n(ce,this)&&p(Y,this,od).call(this)}function iw(e){u(yd,this,n(tn,this)?e:"")}function Jm(e){if(n(Ri,this))for(const t of n(Ri,this))t.tabIndex=e}function od(){u(tn,this,!1),p(Y,this,Jm).call(this,-1),p(Y,this,pp).call(this)}function sw(){n(jr,this)||(u(jr,this,!0),this.onSetModified?.())}function Bp(e,t,i,s,a,r){e[t*4+0]=Math.min(e[t*4+0],i),e[t*4+1]=Math.min(e[t*4+1],s),e[t*4+2]=Math.max(e[t*4+2],a),e[t*4+3]=Math.max(e[t*4+3],r)}function Wp(e,t){const i=new ArrayBuffer(e*4);u(Ir,this,new Uint8ClampedArray(i)),u(pe,this,new Uint32Array(i)),t&&t.length>0?(n(pe,this).set(t),n(pe,this).fill(iu,t.length)):n(pe,this).fill(iu)}function bu(e){mt(e<Qf.strings.length,"Invalid string index");let t=0;for(let s=0;s<e;s++)t+=n(Jl,this).getUint32(t)+4;const i=n(Jl,this).getUint32(t);return n(Zf,this).decode(new Uint8Array(n(Ad,this),t+4,i))}function bh(e){mt(e<Jf.strings.length,"Invalid string index");let t=5;for(let s=0;s<e;s++)t+=n(ms,this).getUint32(t)+4;const i=n(ms,this).getUint32(t);return n(Tl,this).decode(new Uint8Array(n(Lr,this),t+4,i))}function Ei(e){mt(e<Tt.bools.length,"Invalid boolean index");const t=Math.floor(e/4),i=e*2%8,s=n(Wt,this).getUint8(t)>>i&3;return s===0?void 0:s===2}function wu(e){return mt(e<Tt.numbers.length,"Invalid number index"),n(Wt,this).getFloat64(Tt.OFFSET_NUMBERS+e*8)}function yu(e,t,i,s){const a=n(Wt,this).getUint8(e);if(a===0)return;mt(a===t,"Invalid array length."),e+=1;const r=new Array(a);for(let o=0;o<a;o++)r[o]=n(Wt,this)[i](e,!0),e+=s;return r}function wh(e){mt(e<Tt.strings.length,"Invalid string index");let t=Tt.OFFSET_STRINGS+4;for(let s=0;s<e;s++)t+=n(Wt,this).getUint32(t)+4;const i=n(Wt,this).getUint32(t);return n(tp,this).decode(new Uint8Array(n(Li,this),t+4,i))}function Hp(){let e=Tt.OFFSET_STRINGS;const t=n(Wt,this).getUint32(e);e+=4+t;const i=n(Wt,this).getUint32(e);e+=4+i;const s=n(Wt,this).getUint32(e);e+=4+s;const a=n(Wt,this).getUint32(e);return{offset:e,length:a}}function nw(e){if(e instanceof URL)return e;if(typeof e=="string"){if(xe){if(/^[a-z][a-z0-9\-+.]+:/i.test(e))return new URL(e);const i=process.getBuiltinModule("url");return new URL(i.pathToFileURL(e))}const t=URL.parse(e,window.location);if(t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function aw(e){if(xe&&typeof Buffer<"u"&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return hu(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function yh(e){if(typeof e!="string")return null;if(e.endsWith("/"))return e;throw new Error(`Invalid factory url: "${e}" must include trailing slash.`)}function Up(){}function Ce(e){if(e instanceof fs||e instanceof Qd||e instanceof Xf||e instanceof hh||e instanceof dd)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||J('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new fs(e.message);case"InvalidPDFException":return new Qd(e.message);case"PasswordException":return new Xf(e.message,e.code);case"ResponseException":return new hh(e.message,e.status,e.missing);case"UnknownErrorException":return new dd(e.message,e.details)}return new dd(e.message,e.toString())}function rw({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){p(_n,this,lw).call(this,e);return}if(e.callback){const i=e.callbackId,s=this.callbackCapabilities[i];if(!s)throw new Error(`Cannot resolve callback ${i}`);if(delete this.callbackCapabilities[i],e.callback===Cl.DATA)s.resolve(e.data);else if(e.callback===Cl.ERROR)s.reject(Ce(e.reason));else throw new Error("Unexpected callback case");return}const t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const i=this.sourceName,s=e.sourceName,a=this.comObj;Promise.try(t,e.data).then(function(r){a.postMessage({sourceName:i,targetName:s,callback:Cl.DATA,callbackId:e.callbackId,data:r})},function(r){a.postMessage({sourceName:i,targetName:s,callback:Cl.ERROR,callbackId:e.callbackId,reason:Ce(r)})});return}if(e.streamId){p(_n,this,ow).call(this,e);return}t(e.data)}function ow(e){const t=e.streamId,i=this.sourceName,s=e.sourceName,a=this.comObj,r=this,o=this.actionHandler[e.action],l={enqueue(h,c=1,d){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=c,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:i,targetName:s,stream:xt.ENQUEUE,streamId:t,chunk:h},d)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:s,stream:xt.CLOSE,streamId:t}),delete r.streamSinks[t])},error(h){mt(h instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:s,stream:xt.ERROR,streamId:t,reason:Ce(h)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[t]=l,Promise.try(o,e.data,l).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.START_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.START_COMPLETE,streamId:t,reason:Ce(h)})})}function lw(e){const t=e.streamId,i=this.sourceName,s=e.sourceName,a=this.comObj,r=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case xt.START_COMPLETE:e.success?r.startCall.resolve():r.startCall.reject(Ce(e.reason));break;case xt.PULL_COMPLETE:e.success?r.pullCall.resolve():r.pullCall.reject(Ce(e.reason));break;case xt.PULL:if(!o){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||Up).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.PULL_COMPLETE,streamId:t,reason:Ce(h)})});break;case xt.ENQUEUE:if(mt(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(e.chunk);break;case xt.CLOSE:if(mt(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),p(_n,this,Au).call(this,r,t);break;case xt.ERROR:mt(r,"error should have stream controller"),r.controller.error(Ce(e.reason)),p(_n,this,Au).call(this,r,t);break;case xt.CANCEL_COMPLETE:e.success?r.cancelCall.resolve():r.cancelCall.reject(Ce(e.reason)),p(_n,this,Au).call(this,r,t);break;case xt.CANCEL:if(!o)break;const l=Ce(e.reason);Promise.try(o.onCancel||Up,l).then(function(){a.postMessage({sourceName:i,targetName:s,stream:xt.CANCEL_COMPLETE,streamId:t,success:!0})},function(h){a.postMessage({sourceName:i,targetName:s,stream:xt.CANCEL_COMPLETE,streamId:t,reason:Ce(h)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function Au(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}function ue(){return n(Xr,this)||u(Xr,this,new Map)}function Ah(){return n(ka,this)||u(ka,this,new Map)}function oh(){if(!n(dn,this)){const e=n(be,this).createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;const i=n(be,this).createElementNS(ji,"svg");i.setAttribute("width",0),i.setAttribute("height",0),u(dn,this,n(be,this).createElementNS(ji,"defs")),e.append(i),i.append(n(dn,this)),n(be,this).body.append(e)}return n(dn,this)}function vu(e){if(e.length===1){const l=e[0],h=new Array(256);for(let d=0;d<256;d++)h[d]=l[d]/255;const c=h.join(",");return[c,c,c]}const[t,i,s]=e,a=new Array(256),r=new Array(256),o=new Array(256);for(let l=0;l<256;l++)a[l]=t[l]/255,r[l]=i[l]/255,o[l]=s[l]/255;return[a.join(","),r.join(","),o.join(",")]}function ho(e){if(n(Vr,this)===void 0){u(Vr,this,"");const t=n(be,this).URL;t!==n(be,this).baseURI&&(cu(t)?z('#createUrl: ignore "data:"-URL for performance reasons.'):u(Vr,this,Ym(t,"")))}return`url(${n(Vr,this)}#${e})`}function hw(e){const t=n(be,this).createElementNS(ji,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}function $p(e){const t=n(be,this).createElementNS(ji,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function co(e){const t=n(be,this).createElementNS(ji,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),oh.call(p(O,this)).append(t),t}function ld(e,t,i){const s=n(be,this).createElementNS(ji,t);s.setAttribute("type","discrete"),s.setAttribute("tableValues",i),e.append(s)}function vh(e,t,i,s){const a=n(be,this).createElementNS(ji,"feComponentTransfer");s.append(a),p(O,this,ld).call(this,a,"feFuncR",e),p(O,this,ld).call(this,a,"feFuncG",t),p(O,this,ld).call(this,a,"feFuncB",i)}function Gp(e,t){const i=n(be,this).createElementNS(ji,"feComponentTransfer");t.append(i),p(O,this,ld).call(this,i,"feFuncA",e)}function Sh(e){return oh.call(p(O,this)).style.color=e,zl(getComputedStyle(oh.call(p(O,this))).getPropertyValue("color"))}async function cw(e){const t=await process.getBuiltinModule("fs/promises").readFile(e);return new Uint8Array(t)}async function dw(){if(!globalThis.navigator?.gpu)return!1;try{const e=await navigator.gpu.requestAdapter();return e?(u(xl,this,navigator.gpu.getPreferredCanvasFormat()),u(Xs,this,await e.requestDevice()),!0):!1}catch{return!1}}function uw(){return ph.init()}function fw(){return ph.isReady}function pw(){ph.loadMeshShader()}function gw(e,t,i,s,a,r,o,l){return ph.draw(e,t,i,s,a,r,o,l)}function kh(e,t){if(!t)return;const i=t[2]-t[0],s=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],i,s),e.clip(a)}function mw(e,t,i,s,a,r,o,l){const h=t.coords,c=t.colors,d=e.data,f=e.width*4;let g;h[i*2+1]>h[s*2+1]&&(g=i,i=s,s=g,g=r,r=o,o=g),h[s*2+1]>h[a*2+1]&&(g=s,s=a,a=g,g=o,o=l,l=g),h[i*2+1]>h[s*2+1]&&(g=i,i=s,s=g,g=r,r=o,o=g);const _=(h[i*2]+t.offsetX)*t.scaleX,b=(h[i*2+1]+t.offsetY)*t.scaleY,w=(h[s*2]+t.offsetX)*t.scaleX,y=(h[s*2+1]+t.offsetY)*t.scaleY,A=(h[a*2]+t.offsetX)*t.scaleX,v=(h[a*2+1]+t.offsetY)*t.scaleY;if(b>=v)return;const S=c[r*4],M=c[r*4+1],E=c[r*4+2],T=c[o*4],x=c[o*4+1],D=c[o*4+2],P=c[l*4],R=c[l*4+1],I=c[l*4+2],Q=Math.round(b),X=Math.round(v);let V,W,B,ee,Dt,Vi,Oa,ie;for(let It=Q;It<=X;It++){if(It<y){const $t=It<b?0:(b-It)/(b-y);V=_-(_-w)*$t,W=S-(S-T)*$t,B=M-(M-x)*$t,ee=E-(E-D)*$t}else{let $t;It>v?$t=1:y===v?$t=0:$t=(y-It)/(y-v),V=w-(w-A)*$t,W=T-(T-P)*$t,B=x-(x-R)*$t,ee=D-(D-I)*$t}let Lt;It<b?Lt=0:It>v?Lt=1:Lt=(b-It)/(b-v),Dt=_-(_-A)*Lt,Vi=S-(S-P)*Lt,Oa=M-(M-R)*Lt,ie=E-(E-I)*Lt;const gh=Math.round(Math.min(V,Dt)),fu=Math.round(Math.max(V,Dt));let yn=f*It+gh*4;for(let $t=gh;$t<=fu;$t++)Lt=(V-$t)/(V-Dt),Lt<0?Lt=0:Lt>1&&(Lt=1),d[yn++]=W-(W-Vi)*Lt|0,d[yn++]=B-(B-Oa)*Lt|0,d[yn++]=ee-(ee-ie)*Lt|0,d[yn++]=255}}function _w(e){switch(e[0]){case"RadialAxial":return new T_(e);case"Mesh":return new C_(e);case"Dummy":return new x_}throw new Error(`Unknown IR type: ${e[0]}`)}function bw({src:e,srcPos:t=0,dest:i,width:s,height:a,nonBlackColor:r=4294967295,inverseDecode:o=!1}){const l=Ct.isLittleEndian?4278190080:255,[h,c]=o?[r,l]:[l,r],d=s>>3,f=s&7,g=h^c,_=e.length;i=new Uint32Array(i.buffer);let b=0;for(let w=0;w<a;++w){for(const A=t+d;t<A;++t,b+=8){const v=e[t];i[b]=h^-(v>>7&1)&g,i[b+1]=h^-(v>>6&1)&g,i[b+2]=h^-(v>>5&1)&g,i[b+3]=h^-(v>>4&1)&g,i[b+4]=h^-(v>>3&1)&g,i[b+5]=h^-(v>>2&1)&g,i[b+6]=h^-(v>>1&1)&g,i[b+7]=h^-(v&1)&g}if(f===0)continue;const y=t<_?e[t++]:255;for(let A=0;A<f;++A,++b)i[b]=h^-(y>>7-A&1)&g}return{srcPos:t,destPos:b}}function ww(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(i,s){t.translate(i,s),this.__originalTranslate(i,s)},e.scale=function(i,s){t.scale(i,s),this.__originalScale(i,s)},e.transform=function(i,s,a,r,o,l){t.transform(i,s,a,r,o,l),this.__originalTransform(i,s,a,r,o,l)},e.setTransform=function(i,s,a,r,o,l){s===void 0?(t.setTransform(i),this.__originalSetTransform(i)):(t.setTransform(i,s,a,r,o,l),this.__originalSetTransform(i,s,a,r,o,l))},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(i){t.rotate(i),this.__originalRotate(i)},e.clip=function(i){t.clip(i),this.__originalClip(i)},e.moveTo=function(i,s){t.moveTo(i,s),this.__originalMoveTo(i,s)},e.lineTo=function(i,s){t.lineTo(i,s),this.__originalLineTo(i,s)},e.bezierCurveTo=function(i,s,a,r,o,l){t.bezierCurveTo(i,s,a,r,o,l),this.__originalBezierCurveTo(i,s,a,r,o,l)},e.rect=function(i,s,a,r){t.rect(i,s,a,r),this.__originalRect(i,s,a,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}function Eh(e,t,i,s,a,r,o,l,h,c){const[d,f,g,_,b,w]=ot(e);if(f===0&&g===0){const v=o*d+b,S=Math.round(v),M=l*_+w,E=Math.round(M),T=(o+h)*d+b,x=Math.abs(Math.round(T)-S)||1,D=(l+c)*_+w,P=Math.abs(Math.round(D)-E)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(_),S,E),e.drawImage(t,i,s,a,r,0,0,x,P),e.setTransform(d,f,g,_,b,w),[x,P]}if(d===0&&_===0){const v=l*g+b,S=Math.round(v),M=o*f+w,E=Math.round(M),T=(l+c)*g+b,x=Math.abs(Math.round(T)-S)||1,D=(o+h)*f+w,P=Math.abs(Math.round(D)-E)||1;return e.setTransform(0,Math.sign(f),Math.sign(g),0,S,E),e.drawImage(t,i,s,a,r,0,0,P,x),e.setTransform(d,f,g,_,b,w),[P,x]}e.drawImage(t,i,s,a,r,o,l,h,c);const y=Math.hypot(d,f),A=Math.hypot(g,_);return[y*h,A*c]}function zp(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}const i=t.height,s=t.width,a=i%me,r=(i-a)/me,o=a===0?r:r+1,l=e.createImageData(s,me);let h=0,c;const d=t.data,f=l.data;let g,_,b,w;if(t.kind===Vl.GRAYSCALE_1BPP){const y=d.byteLength,A=new Uint32Array(f.buffer,0,f.byteLength>>2),v=A.length,S=s+7>>3,M=4294967295,E=Ct.isLittleEndian?4278190080:255;for(g=0;g<o;g++){for(b=g<r?me:a,c=0,_=0;_<b;_++){const T=y-h;let x=0;const D=T>S?s:T*8-7,P=D&-8;let R=0,I=0;for(;x<P;x+=8)I=d[h++],A[c++]=I&128?M:E,A[c++]=I&64?M:E,A[c++]=I&32?M:E,A[c++]=I&16?M:E,A[c++]=I&8?M:E,A[c++]=I&4?M:E,A[c++]=I&2?M:E,A[c++]=I&1?M:E;for(;x<D;x++)R===0&&(I=d[h++],R=128),A[c++]=I&R?M:E,R>>=1}for(;c<v;)A[c++]=0;e.putImageData(l,0,g*me)}}else if(t.kind===Vl.RGBA_32BPP){for(_=0,w=s*me*4,g=0;g<r;g++)f.set(d.subarray(h,h+w)),h+=w,e.putImageData(l,0,_),_+=me;g<o&&(w=s*a*4,f.set(d.subarray(h,h+w)),e.putImageData(l,0,_))}else if(t.kind===Vl.RGB_24BPP)for(b=me,w=s*b,g=0;g<o;g++){for(g>=r&&(b=a,w=s*b),c=0,_=w;_--;)f[c++]=d[h++],f[c++]=d[h++],f[c++]=d[h++],f[c++]=255;e.putImageData(l,0,g*me)}else throw new Error(`bad image kind: ${t.kind}`)}function jp(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const i=t.height,s=t.width,a=i%me,r=(i-a)/me,o=a===0?r:r+1,l=e.createImageData(s,me);let h=0;const c=t.data,d=l.data;for(let f=0;f<o;f++){const g=f<r?me:a;({srcPos:h}=bw({src:c,srcPos:h,dest:d,width:s,height:g,nonBlackColor:0})),e.putImageData(l,0,f*me)}}function uo(e,t){for(const i of["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"])e[i]!==void 0&&(t[i]=e[i]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function Mh(e){e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0);const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}function Vp(e,t){if(t)return!0;C.singularValueDecompose2dScale(e,ke);const i=Math.fround(Ys.pixelRatio*yi.PDF_TO_CSS_UNITS);return ke[0]<=i&&ke[1]<=i}function Xp(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(this.transparentCanvasEntry),this.transparentCanvas=null,this.transparentCanvasEntry=null)}function Yp(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}function Kp(e,t,i){const s=new Path2D;return s.addPath(e,new DOMMatrix(i).invertSelf().multiplySelf(t)),s}function yw(e){let t=!0,i=s("filename\\*","i").exec(e);if(i){i=i[1];let d=l(i);return d=unescape(d),d=h(d),d=c(d),r(d)}if(i=o(e),i)return r(c(i));if(i=s("filename","i").exec(e),i){i=i[1];let d=l(i);return d=c(d),r(d)}function s(d,f){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function a(d,f){if(d){if(!/^[\x00-\xFF]+$/.test(f))return f;try{const g=new TextDecoder(d,{fatal:!0}),_=hu(f);f=g.decode(_),t=!1}catch{}}return f}function r(d){return t&&/[\x80-\xff]/.test(d)&&(d=a("utf-8",d),t&&(d=a("iso-8859-1",d))),d}function o(d){const f=[];let g;const _=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(g=_.exec(d))!==null;){let[,w,y,A]=g;if(w=parseInt(w,10),w in f){if(w===0)break;continue}f[w]=[y,A]}const b=[];for(let w=0;w<f.length&&w in f;++w){let[y,A]=f[w];A=l(A),y&&(A=unescape(A),w===0&&(A=h(A))),b.push(A)}return b.join("")}function l(d){if(d.startsWith('"')){const f=d.slice(1).split('\\"');for(let g=0;g<f.length;++g){const _=f[g].indexOf('"');_!==-1&&(f[g]=f[g].slice(0,_),f.length=g+1),f[g]=f[g].replaceAll(/\\(.)/g,"$1")}d=f.join('"')}return d}function h(d){const f=d.indexOf("'");return f===-1?d:a(d.slice(0,f),d.slice(f+1).replace(/^[^']*'/,""))}function c(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,g,_,b){if(_==="q"||_==="Q")return b=b.replaceAll("_"," "),b=b.replaceAll(/=([0-9a-fA-F]{2})/g,function(w,y){return String.fromCharCode(parseInt(y,16))}),a(g,b);try{b=atob(b)}catch{}return a(g,b)})}return""}function qp(e,t){const i=new Headers;if(!e||!t||typeof t!="object")return i;for(const s in t){const a=t[s];a!==void 0&&i.append(s,a)}return i}function Kd(e){return URL.parse(e)?.origin??null}function Zm({responseHeaders:e,isHttp:t,rangeChunkSize:i,disableRange:s}){const a={contentLength:0,isRangeSupported:!1},r=parseInt(e.get("Content-Length"),10);return!Number.isInteger(r)||(a.contentLength=r,r<=2*i)||s||!t||e.get("Accept-Ranges")!=="bytes"||(e.get("Content-Encoding")||"identity")==="identity"&&(a.isRangeSupported=!0),a}function t_(e){const t=e.get("Content-Disposition");if(t){let i=yw(t);if(i.includes("%"))try{i=decodeURIComponent(i)}catch{}if(Lf(i))return i}return null}function du(e,t){return new hh(`Unexpected server response (${e}) while retrieving PDF "${t.href}".`,e,e===404||e===0&&t.protocol==="file:")}function e_(e,t){if(e!==t)throw new Error(`Expected range response-origin "${e}" to match "${t}".`)}function Qp(e,t,i,s){return fetch(e,{method:"GET",headers:t,signal:s.signal,mode:"cors",credentials:i?"include":"same-origin",redirect:"follow"})}function Jp(e,t){if(e!==200&&e!==206)throw du(e,t)}function Th(e){if(e instanceof Uint8Array)return e.buffer;if(e instanceof ArrayBuffer)return e;throw new Error(`getArrayBuffer - unexpected data: ${e}`)}function i_(e){return e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ch(){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}function Aw(e,t){const i=i_(t);if(e===void 0)this._fullReader?this._fullReader._enqueue(i):this._queuedChunks.push(i);else{const s=this._rangeReaders.keys().find(a=>a._begin===e);mt(s,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),s._enqueue(i)}}function vw(e){return typeof e!="string"?e:hu(e).buffer}function Sw(e,t){n(ys,this).get(e)?.onProgress?.(t)}function kw(e,t){const i=n(ys,this).get(e);if(!i||(e.readyState>=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),e.readyState!==4)||!n(ys,this).has(e))return;if(n(ys,this).delete(e),e.status===0&&this.isHttp){i.onError(e.status);return}const s=e.status||vd;if(!i.validateStatus(s)){i.onError(e.status);return}const a=vw(e.response);if(s===ip){const r=e.getResponseHeader("Content-Range");/bytes (\d+)-(\d+)\/(\d+)/.test(r)?i.onDone(a):(z('Missing or invalid "Content-Range" header.'),i.onError(0))}else a?i.onDone(a):i.onError(e.status)}function Ew(){const e=this._stream,{disableRange:t,rangeChunkSize:i}=e._source,s=this._fullRequestXhr;e._responseOrigin=Kd(s.responseURL);const a=s.getAllResponseHeaders(),r=new Headers(a?a.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(h=>{const[c,...d]=h.split(": ");return[c,d.join(": ")]}):[]),{contentLength:o,isRangeSupported:l}=Zm({responseHeaders:r,isHttp:e.isHttp,rangeChunkSize:i,disableRange:t});this._contentLength=o,this._isRangeSupported=l,this._filename=t_(r),this._isRangeSupported&&e._abortRequest(s),this._headersCapability.resolve()}function Mw(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e),this._done=!0,this._cachedChunks.length===0&&n(Sd,this).call(this)}function Tw(e){this._storedError=du(e,this._stream.url),this._headersCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}function Cw(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}function xw(){const e=Kd(this._requestXhr?.responseURL);try{e_(e,this._stream._responseOrigin)}catch(t){this._storedError=t,p(Fr,this,s_).call(this,0)}}function Pw(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,n(kd,this).call(this),this.onClosed?.()}function s_(e){this._storedError??(this._storedError=du(e,this._stream.url));for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}function Zp(e,t=null){const i=process.getBuiltinModule("fs"),{Readable:s}=process.getBuiltinModule("stream"),a=i.createReadStream(e,t);return s.toWeb(a)}function Dw(e){return Gl(e)?P_:xe?L_:I_}function n_(e){const t=e.length;if(t<2)return!0;const i=e[0];for(let s=1;s<t;s++){const a=e[s];let r;if(Array.isArray(a))r=p(Ed,this,n_).call(this,a);else if(n(rt,this).has(a))r=n(rt,this).get(a).visible;else return z(`Optional content group not found: ${a}`),!0;switch(i){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return i==="And"}function xh(){if(n(Bt,this))return;const e=n(le,this),t=u(Bt,this,new Uint32Array(e));for(let i=0;i<e;i++)t[i]=i+1;u(Oi,this,new Int32Array(t))}function Ph(){const e=new Map,t=n(Bt,this);for(let i=0,s=n(le,this);i<s;i++){const a=t[i],r=e.get(a);r?r.push(i+1):e.set(a,[i+1])}return e}function Su(e,t=null,i=-1,s=null){const a=n(Oi,this),r=n(Bt,this),o=i+(s?.length??0),l=new Map;for(let h=0,c=n(le,this);h<c;h++){if(h>=i&&h<o){a[h]=-s[h-i];continue}const d=r[h],f=e.get(d);let g=l.get(d)||0;if(t&&f)for(;g<f.length&&t.has(f[g]);)g++;a[h]=f?.[g],l.set(d,g+1)}}function Iw(e){var t;if(n(su,this))return;(t=n(un,this)).ctx??(t.ctx=gp.call(_e,n(Ea,this)));const i=n(Yr,this),s=n(Cd,this);for(const a of e){if(i.length>R_){z("Ignoring additional textDivs for performance reasons."),u(su,this,!0);return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const r=n(Te,this);u(Te,this,document.createElement("span")),n(Te,this).classList.add("markedContent"),a.id&&n(Te,this).setAttribute("id",`${a.id}`),a.tag==="Artifact"&&(n(Te,this).ariaHidden=!0),r.append(n(Te,this))}else a.type==="endMarkedContent"&&u(Te,this,n(Te,this).parentNode);continue}s.push(a.str),p(Kr,this,Lw).call(this,a)}}function Lw(e){const t=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};n(Yr,this).push(t);const s=C.transform(n(Pd,this),e.transform);let a=Math.atan2(s[1],s[0]);const r=n(Pl,this)[e.fontName];r.vertical&&(a+=Math.PI/2);let o=n(nu,this)&&r.fontSubstitution||r.fontFamily;o=_e.fontFamilyMap.get(o)||o;const l=Math.hypot(s[2],s[3]),h=l*Rw.call(_e,o,r,n(Ea,this));let c,d;a===0?(c=s[4],d=s[5]-h):(c=s[4]+h*Math.sin(a),d=s[5]-h*Math.cos(a));const f=t.style;f.left=`${(100*c/n(Td,this)).toFixed(2)}%`,f.top=`${(100*d/n(Md,this)).toFixed(2)}%`,f.setProperty("--font-height",`${l.toFixed(2)}px`),f.fontFamily=o,i.fontSize=l,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,n(nu,this)&&(t.dataset.fontName=r.fontSubstitutionLoadedName||e.fontName),a!==0&&(i.angle=a*(180/Math.PI));let g=!1;if(e.str.length>1)g=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const _=Math.abs(e.transform[0]),b=Math.abs(e.transform[3]);_!==b&&Math.max(_,b)/Math.min(_,b)>1.5&&(g=!0)}if(g&&(i.canvasWidth=r.vertical?e.height:e.width),n(xd,this).set(t,i),n(un,this).div=t,n(un,this).properties=i,p(Kr,this,a_).call(this,n(un,this)),i.hasText&&n(Te,this).append(t),i.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),n(Te,this).append(_)}}function a_(e){const{div:t,properties:i,ctx:s}=e,{style:a}=t;if(i.canvasWidth!==0&&i.hasText){const{fontFamily:r}=a,{canvasWidth:o,fontSize:l}=i;r_.call(_e,s,l*n(Ma,this),r);const{width:h}=s.measureText(t.textContent);h>0&&a.setProperty("--scale-x",o*n(Ma,this)/h)}i.angle!==0&&a.setProperty("--rotate",`${i.angle}deg`)}function gp(e=null){let t=p(_e,this,Zl)._.get(e||(e=""));if(!t){const i=document.createElement("canvas");i.className="hiddenCanvasElement",i.lang=e,document.body.append(i),t=i.getContext("2d",{alpha:!1,willReadFrequently:!0}),p(_e,this,Zl)._.set(e,t),p(_e,this,wp)._.set(t,{size:0,family:""})}return t}function r_(e,t,i){const s=p(_e,this,wp)._.get(e);t===s.size&&i===s.family||(e.font=`${t}px ${i}`,s.size=t,s.family=i)}function Fw(){if(p(_e,this,ru)._!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),ru._=p(_e,this,e.getBoundingClientRect().height),e.remove()}function Rw(e,t,i){const s=p(_e,this,au)._.get(e);if(s)return s;const a=p(_e,this,gp).call(this,i);a.canvas.width=a.canvas.height=sp,p(_e,this,r_).call(this,a,sp,e);const r=a.measureText(""),o=r.fontBoundingBoxAscent,l=Math.abs(r.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let h=.8;return o?h=o/(o+l):(Ct.platform.isFirefox&&z("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?h=t.ascent:t.descent&&(h=1+t.descent)),p(_e,this,au)._.set(e,h),h}function Ow(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new O_,{docId:i}=t,s=e.url?nw(e.url):null,a=e.data?aw(e.data):null,r=e.httpHeaders||null,o=e.withCredentials===!0,l=e.password??null,h=e.range instanceof np?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:2**16;let d=e.worker instanceof th?e.worker:null;const f=e.verbosity,g=typeof e.docBaseUrl=="string"&&!cu(e.docBaseUrl)?e.docBaseUrl:null,_=yh(e.cMapUrl),b=e.cMapPacked!==!1,w=yh(e.iccUrl),y=yh(e.standardFontDataUrl),A=yh(e.wasmUrl),v=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,M=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!xe,E=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!xe&&(Ct.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,x=typeof e.disableFontFace=="boolean"?e.disableFontFace:xe,D=e.fontExtraProperties===!0,P=e.enableXfa===!0,R=e.ownerDocument||globalThis.document,I=e.disableRange===!0,Q=e.disableStream===!0,X=e.disableAutoFetch===!0,V=e.pdfBug===!0,W=e.CanvasFactory||(xe?E_:v_),B=e.FilterFactory||(xe?k_:S_),ee=e.BinaryDataFactory||(xe?M_:ep),Dt=e.enableHWA===!0,Vi=e.enableWebGPU===!0?uw():Promise.resolve(!1),Oa=e.useWasm!==!1,ie=e.pagesMapper||new F_,It=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!xe&&!x,Lt=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:!!(ee===ep&&_&&b&&y&&A&&Gl(_,document.baseURI)&&Gl(y,document.baseURI)&&Gl(A,document.baseURI)),gh=null;db(f);const fu={canvasFactory:new W({ownerDocument:R,enableHWA:Dt}),filterFactory:new B({docId:i,ownerDocument:R}),binaryDataFactory:Lt?null:new ee({cMapUrl:_,standardFontDataUrl:y,wasmUrl:A})};d||(d=th.create({verbosity:f,port:ba.workerPort}),t._worker=d);const yn={docId:i,apiVersion:"5.7.284",data:a,password:l,disableAutoFetch:X,rangeChunkSize:c,docBaseUrl:g,enableXfa:P,evaluatorOptions:{maxImageSize:S,disableFontFace:x,ignoreErrors:v,isOffscreenCanvasSupported:M,isImageDecoderSupported:E,canvasMaxAreaInBytes:T,fontExtraProperties:D,useSystemFonts:It,useWasm:Oa,useWorkerFetch:Lt,cMapUrl:_,cMapPacked:b,iccUrl:w,standardFontDataUrl:y,wasmUrl:A,hasGPU:!1}},$t={ownerDocument:R,pdfBug:V,styleElement:gh,enableHWA:Dt,loadingParams:{disableAutoFetch:X,enableXfa:P}};return Promise.all([d.promise,Vi]).then(function([,tb]){if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");yn.evaluatorOptions.hasGPU=tb;const eb=d.messageHandler.sendWithPromise("GetDocRequest",yn,a?[a.buffer]:null);let pu;if(!a)if(h)pu=new D_({pdfDataRangeTransport:h,disableRange:I,disableStream:Q});else if(s)pu=new(Dw(s))({url:s,httpHeaders:r,withCredentials:o,rangeChunkSize:c,disableRange:I,disableStream:Q});else throw new Error("getDocument - expected either `data`, `range`, or `url` parameter.");return eb.then(ib=>{if(t.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const yp=new oo(i,ib,d.port);t._transport=new N_(yp,t,pu,$t,fu,ie),yp.send("Ready",null)})}).catch(t._capability.reject),t}function Dh(){if(!n(qs,this)||this.destroyed)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),u(qs,this,!1),!0}function mp(){n(Fa,this).resolve(),n($i,this).send("configure",{verbosity:this.verbosity})}function Nw(e){u(en,this,e),u($i,this,new oo("main","worker",e)),n($i,this).on("ready",()=>{}),p(Si,this,mp).call(this)}function Bw(){if(ch._||Nf.call(Ui)){p(Si,this,Ih).call(this);return}let{workerSrc:e}=Ui;try{Ui._isSameOrigin(window.location,e)||(e=Ui._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),i=new oo("main","worker",t),s=()=>{a.abort(),i.destroy(),t.terminate(),this.destroyed?n(Fa,this).reject(new Error("Worker was destroyed")):p(Si,this,Ih).call(this)},a=new AbortController;t.addEventListener("error",()=>{n(qr,this)||s()},{signal:a.signal}),i.on("test",o=>{if(a.abort(),this.destroyed||!o){s();return}u($i,this,i),u(en,this,t),u(qr,this,t),p(Si,this,mp).call(this)}),i.on("ready",o=>{if(a.abort(),this.destroyed){s();return}try{r()}catch{p(Si,this,Ih).call(this)}});const r=()=>{const o=new Uint8Array;i.send("test",o,[o.buffer])};r();return}catch{rd("The worker has been disabled.")}p(Si,this,Ih).call(this)}function Ih(){ch._||(z("Setting up fake worker."),ch._=!0),Ui._setupFakeWorkerGlobal.then(e=>{var t,i;if(this.destroyed){n(Fa,this).reject(new Error("Worker was destroyed"));return}const s=new A_;u(en,this,s);const a=`fake${ap._=(t=ap._,i=t++,t),i}`,r=new oo(a+"_worker",a,s);e.setup(r,s),u($i,this,new oo(a,a+"_worker",s)),p(Si,this,mp).call(this)}).catch(e=>{n(Fa,this).reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}function Nf(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}function Lh(e,t=null){return n(Rr,this).getOrInsertComputed(e,()=>this.messageHandler.sendWithPromise(e,t))}function ku({loaded:e,total:t}){this.loadingTask.onProgress?.({loaded:e,total:t,percent:t?pt(Math.round(e/t*100),0,100):NaN})}function o_(){const e=document.createElement("div"),t=n(Wi,this)._signal;e.addEventListener("contextmenu",ri,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),n(Qs,this)&&(e.id=`${n(Qs,this).id}_colorpicker_dropdown`);for(const[i,s]of n(Wi,this).highlightColors){const a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",s),a.title=i,a.setAttribute("data-l10n-id",Ld._[i]);const r=document.createElement("span");a.append(r),r.className="swatch",r.style.backgroundColor=s,a.ariaSelected=s===n(Dl,this),a.addEventListener("click",p(At,this,l_).bind(this,s),{signal:t}),e.append(a)}return e.addEventListener("keydown",p(At,this,h_).bind(this),{signal:t}),e}function l_(e,t){t.stopPropagation(),n(Id,this).dispatch("switchannotationeditorparams",{source:this,type:G.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}function h_(e){__._keyboardManager.exec(this,e)}function Na(e){if(fa.call(p(At,this))){this.hideDropdown();return}if(u(Dd,this,e.detail===0),n(Ca,this)||(u(Ca,this,new AbortController),window.addEventListener("pointerdown",p(At,this,Ww).bind(this),{signal:n(Wi,this).combinedSignal(n(Ca,this))})),n(Qe,this).ariaExpanded="true",n(jt,this)){n(jt,this).classList.remove("hidden");return}const t=u(jt,this,p(At,this,o_).call(this));n(Qe,this).append(t)}function Ww(e){n(jt,this)?.contains(e.target)||this.hideDropdown()}function fa(){return n(jt,this)&&!n(jt,this).classList.contains("hidden")}function tg(e){return Math.floor(pt(e,0,1)*255).toString(16).padStart(2,"0")}function fo(e){return pt(e,0,1)*255}function eg(e){const{container:{style:t},data:{rect:i,rotation:s},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:r,pageX:o,pageY:l}}}}=this;i?.splice(0,4,...e),t.left=`${100*(e[0]-o)/a}%`,t.top=`${100*(r-e[3]+l)/r}%`,s===0?(t.width=`${100*(e[2]-e[0])/a}%`,t.height=`${100*(e[3]-e[1])/r}%`):this.setRotation(s)}function Ur(){this.container.setAttribute("data-internal-link","")}function Hw(e,t,i="",s=null){e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:i&&(e.title=i),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,s),!1),p(Ni,this,Ur).call(this)}function Uw(e,t,i=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),i&&(e.title=i),p(Ni,this,Ur).call(this)}function ig(){return new B_({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}function Eu(){if(n(sn,this))return;u(sn,this,new AbortController);const{signal:e}=n(sn,this);for(const t of this.trigger)t.addEventListener("click",n(dh,this),{signal:e}),t.addEventListener("pointerenter",n(op,this),{signal:e}),t.addEventListener("pointerleave",n(rp,this),{signal:e}),t.classList.add("popupTriggerArea");for(const t of n(no,this))t.container?.addEventListener("keydown",n(xa,this),{signal:e})}function sg(){const e=n(no,this).find(t=>t.hasCommentButton);e&&u(Js,this,e._normalizePoint(e.commentButtonPosition))}function ng(){if(n(Qt,this).extraPopupElement&&!n(Qt,this).editor)return;n(Et,this)||this.renderCommentButton();const[e,t]=n(Js,this),{style:i}=n(Et,this);i.left=`calc(${e}%)`,i.top=`calc(${t}% - var(--comment-button-dim))`}function ag(){n(Qt,this).extraPopupElement||(n(Et,this)||this.renderCommentButton(),n(Et,this).style.backgroundColor=this.commentButtonColor||"")}function _p(){const e=n(Zs,this),t=n(ds,this);return e?.str&&(!t?.str||t.str===e.str)&&n(Zs,this).html||null}function rg(){return _p.call(p(it,this))?.attributes?.style?.fontSize||0}function $w(){return _p.call(p(it,this))?.attributes?.style?.color||null}function Gw(e){const t=[],i={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},s={style:{color:$w.call(p(it,this)),fontSize:rg.call(p(it,this))?`calc(${rg.call(p(it,this))}px * var(--total-scale-factor))`:""}};for(const a of e.split(`
2
2
  `))t.push({name:"span",value:a,attributes:s});return i}function zw(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&n(ks,this))&&p(it,this,Bf).call(this)}function jw(){if(n(fn,this)!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:i,pageX:s,pageY:a}}}=n(Il,this);let r=!!n(eh,this),o=r?n(eh,this):n(Fd,this);for(const g of n(no,this))if(!o||C.intersect(g.data.rect,o)!==null){o=g.data.rect,r=!0;break}const l=C.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),h=r?o[2]-o[0]+5:0,c=l[0]+h,d=l[1];u(fn,this,[100*(c-s)/t,100*(d-a)/i]);const{style:f}=n(Pt,this);f.left=`${n(fn,this)[0]}%`,f.top=`${n(fn,this)[1]}%`}function Bf(){if(n(Je,this)){n(Je,this).toggleCommentPopup(this,!1);return}u(ks,this,!n(ks,this)),n(ks,this)?(p(it,this,Wf).call(this),n(Pt,this).addEventListener("click",n(dh,this)),n(Pt,this).addEventListener("keydown",n(xa,this))):(p(it,this,c_).call(this),n(Pt,this).removeEventListener("click",n(dh,this)),n(Pt,this).removeEventListener("keydown",n(xa,this)))}function Wf(){n(Ye,this)||this.render(),this.isVisible?n(ks,this)&&n(Pt,this).classList.add("focused"):(p(it,this,jw).call(this),n(Pt,this).hidden=!1,n(Pt,this).style.zIndex=parseInt(n(Pt,this).style.zIndex,10)+1e3)}function c_(){n(Pt,this).classList.remove("focused"),!(n(ks,this)||!this.isVisible)&&(n(Pt,this).hidden=!0,n(Pt,this).style.zIndex=parseInt(n(Pt,this).style.zIndex,10)-1e3)}function og(e,t){switch(e){case 90:return{transform:`rotate(90) translate(${-t[0]},${t[1]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};case 180:return{transform:`rotate(180) translate(${-t[2]},${t[1]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]};case 270:return{transform:`rotate(270) translate(${-t[2]},${t[3]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};default:return{transform:`translate(${-t[0]},${t[3]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]}}}function lg(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}async function Mu(){if(n(ni,this).length===0)return;this.div.replaceChildren();const e=[];if(!n(ou,this)){u(ou,this,!0);for(const{contentElement:i,data:{id:s}}of n(ni,this)){const a=i.id=`${pa}${s}`;e.push(n(Rd,this)?.getAriaAttributes(a).then(r=>{if(r)for(const[o,l]of r)i.setAttribute(o,l)}))}}n(ni,this).sort(({data:{rect:[i,s,a,r]}},{data:{rect:[o,l,h,c]}})=>{if(i===a&&s===r)return 1;if(o===h&&l===c)return-1;const d=r,f=s,g=(s+r)/2,_=c,b=l,w=(l+c)/2;return g>=_&&w<=f?-1:w>=d&&g<=b?1:(i+a)/2-(o+h)/2});const t=document.createDocumentFragment();for(const i of n(ni,this))t.append(i.container),this._commentManager?(i.extraPopupElement?.popup||i.popup)?.renderCommentButton():i.extraPopupElement&&t.append(i.extraPopupElement.render());if(this.div.append(t),await Promise.all(e),n(Qr,this))for(const i of n(ni,this))n(Qr,this).addPointerInTextLayer(i.contentElement,!1)}function hg(){if(!n(ao,this))return;const e=this.div;for(const[t,i]of n(ao,this)){const s=e.querySelector(`[data-annotation-id="${t}"]`);if(!s)continue;i.className="annotationContent";const{firstChild:a}=s;a?a.nodeName==="CANVAS"?a.replaceWith(i):a.classList.contains("annotationContent")?a.after(i):a.before(i):s.append(i);const r=n(wa,this).get(t);r&&(r._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(t,s.id,i),r._hasNoCanvas=!1):r.canvas=i)}n(ao,this).clear()}function Vw(e){const t=s=>{this.editorDiv.style.fontSize=`calc(${s}px * var(--total-scale-factor))`,this.translate(0,-(s-n(ti,this))*this.parentScale),u(ti,this,s),p(Oe,this,Hf).call(this)},i=n(ti,this);this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:G.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function Xw(e){const t=s=>{this.color=s,this.onUpdatedColor()},i=this.color;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:G.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Yw(){const e=[];this.editorDiv.normalize();let t=null;for(const i of this.editorDiv.childNodes)t?.nodeType===Node.TEXT_NODE&&i.nodeName==="BR"||(e.push(Uf.call(b_,i)),t=i);return e.join(`
3
3
  `)}function Hf(){const[e,t]=this.parentDimensions;let i;if(this.isAttachedToDOM)i=this.div.getBoundingClientRect();else{const{currentLayer:s,div:a}=this,r=a.style.display,o=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",s.div.append(this.div),i=a.getBoundingClientRect(),a.remove(),a.style.display=r,a.classList.toggle("hidden",o)}this.rotation%180===this.parentRotation%180?(this.width=i.width/e,this.height=i.height/t):(this.width=i.height/e,this.height=i.width/t),this.fixAndSetPosition()}function Uf(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(Ll,"")}function Tu(){if(this.editorDiv.replaceChildren(),!!n(Ze,this))for(const e of n(Ze,this).split(`
4
4
  `)){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function Kw(){return n(Ze,this).replaceAll(" "," ")}function cg(e){return e.replaceAll(" "," ")}function qw(e){const{value:t,fontSize:i,color:s,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==t||e.fontSize!==i||e.color.some((r,o)=>r!==s[o])||e.pageIndex!==a}function uu(){const e=n(j,this).subarray(4,6),t=n(j,this).subarray(16,18),[i,s,a,r]=n(ai,this);return[(n(Jr,this)+(e[0]-t[0])/2-i)/a,(n(Zr,this)+(e[1]-t[1])/2-s)/r,(n(Jr,this)+(t[0]-e[0])/2-i)/a,(n(Zr,this)+(t[1]-e[1])/2-s)/r]}function Qw(){const[e,t,i,s]=n(ai,this),[a,r,o,l]=p(ei,this,uu).call(this);return`M${(n(j,this)[2]-e)/i} ${(n(j,this)[3]-t)/s} L${(n(j,this)[4]-e)/i} ${(n(j,this)[5]-t)/s} L${a} ${r} L${o} ${l} L${(n(j,this)[16]-e)/i} ${(n(j,this)[17]-t)/s} L${(n(j,this)[14]-e)/i} ${(n(j,this)[15]-t)/s} Z`}function Jw(e){const t=n(Bi,this);e.push(`L${t[4]} ${t[5]} Z`)}function Zw(e){const[t,i,s,a]=n(ai,this),r=n(j,this).subarray(4,6),o=n(j,this).subarray(16,18),[l,h,c,d]=p(ei,this,uu).call(this);e.push(`L${(r[0]-t)/s} ${(r[1]-i)/a} L${l} ${h} L${c} ${d} L${(o[0]-t)/s} ${(o[1]-i)/a}`)}function ty(e){const t=n(j,this),[i,s,a,r]=n(ai,this),[o,l,h,c]=p(ei,this,uu).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(t[2]-i)/a,(t[3]-s)/r,NaN,NaN,NaN,NaN,(t[4]-i)/a,(t[5]-s)/r,NaN,NaN,NaN,NaN,o,l,NaN,NaN,NaN,NaN,h,c,NaN,NaN,NaN,NaN,(t[16]-i)/a,(t[17]-s)/r,NaN,NaN,NaN,NaN,(t[14]-i)/a,(t[15]-s)/r],0),this.newFreeDrawOutline(d,e,n(ai,this),n(Ol,this),n(Fl,this),n(Rl,this))}function ey(e,t){const i=n(Bi,this);return e.set([NaN,NaN,NaN,NaN,i[4],i[5]],t),t+=6}function iy(e,t){const i=n(j,this).subarray(4,6),s=n(j,this).subarray(16,18),[a,r,o,l]=n(ai,this),[h,c,d,f]=p(ei,this,uu).call(this);return e.set([NaN,NaN,NaN,NaN,(i[0]-a)/o,(i[1]-r)/l,NaN,NaN,NaN,NaN,h,c,NaN,NaN,NaN,NaN,d,f,NaN,NaN,NaN,NaN,(s[0]-a)/o,(s[1]-r)/l],t),t+=24}function sy(e){const t=n(Ot,this);let i=t[4],s=t[5];const a=[i,s,i,s];let r=i,o=s,l=i,h=s;const c=e?Math.max:Math.min,d=new Float32Array(4);for(let g=6,_=t.length;g<_;g+=6){const b=t[g+4],w=t[g+5];isNaN(t[g])?(C.pointBoundingBox(b,w,a),o>w?(r=b,o=w):o===w&&(r=c(r,b)),h<w?(l=b,h=w):h===w&&(l=c(l,b))):(d.set(Di,0),C.bezierBoundingBox(i,s,...t.slice(g,g+6),d),C.rectBoundingBox(...d,a),o>d[1]?(r=d[0],o=d[1]):o===d[1]&&(r=c(r,d[0])),h<d[3]?(l=d[2],h=d[3]):h===d[3]&&(l=c(l,d[2]))),i=b,s=w}const f=n(Or,this);f[0]=a[0]-n(pn,this),f[1]=a[1]-n(pn,this),f[2]=a[2]-a[0]+2*n(pn,this),f[3]=a[3]-a[1]+2*n(pn,this),this.firstPoint=[r,o],this.lastPoint=[l,h]}function ny(e){const t=[],i=new Set;for(const r of e){const[o,l,h]=r;t.push([o,l,r],[o,h,r])}t.sort((r,o)=>r[1]-o[1]||r[0]-o[0]);for(let r=0,o=t.length;r<o;r+=2){const l=t[r][2],h=t[r+1][2];l.push(h),h.push(l),i.add(l),i.add(h)}const s=[];let a;for(;i.size>0;){const r=i.values().next().value;let[o,l,h,c,d]=r;i.delete(r);let f=o,g=l;for(a=[o,h],s.push(a);;){let _;if(i.has(c))_=c;else if(i.has(d))_=d;else break;i.delete(_),[o,l,h,c,d]=_,f!==o&&(a.push(f,g,o,g===l?l:h),f=o),g=g===l?h:l}a.push(f,g)}return new W_(s,n(Od,this),n(Nd,this),n(Bd,this))}function bp(e){const t=n(Gi,this);let i=0,s=t.length-1;for(;i<=s;){const a=i+s>>1,r=t[a][0];if(r===e)return a;r<e?i=a+1:s=a-1}return s+1}function ay([,e,t]){const i=p(Hi,this,bp).call(this,e);n(Gi,this).splice(i,0,[e,t])}function ry([,e,t]){const i=p(Hi,this,bp).call(this,e);for(let s=i;s<n(Gi,this).length;s++){const[a,r]=n(Gi,this)[s];if(a!==e)break;if(a===e&&r===t){n(Gi,this).splice(s,1);return}}for(let s=i-1;s>=0;s--){const[a,r]=n(Gi,this)[s];if(a!==e)break;if(a===e&&r===t){n(Gi,this).splice(s,1);return}}}function dg(e){const[t,i,s]=e,a=[[t,i,s]],r=p(Hi,this,bp).call(this,s);for(let o=0;o<r;o++){const[l,h]=n(Gi,this)[o];for(let c=0,d=a.length;c<d;c++){const[,f,g]=a[c];if(!(h<=f||g<=l)){if(f>=l){if(g>h)a[c][1]=h;else{if(d===1)return[];a.splice(c,1),c--,d--}continue}a[c][2]=l,g>h&&a.push([t,h,g])}}}return a}function ug(){const e=new lu(n(nn,this),.001);u(li,this,e.getOutlines()),[this.x,this.y,this.width,this.height]=n(li,this).box;const t=new lu(n(nn,this),.0025,.001,this._uiManager.direction==="ltr");u($e,this,t.getOutlines());const{firstPoint:i}=n(li,this);u(sh,this,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height]);const{lastPoint:s}=n($e,this);u(nh,this,[(s[0]-this.x)/this.width,(s[1]-this.y)/this.height])}function $f({highlightOutlines:e,highlightId:t,clipPathId:i}){if(u(li,this,e),u($e,this,e.getNewOutline(n(vi,this)/2+1.5,.0025)),t>=0)u(oi,this,t),u(ro,this,i),this.parent.drawLayer.finalizeDraw(t,{bbox:e.box,path:{d:e.toSVGPath()}}),u(ge,this,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:n($e,this).box,path:{d:n($e,this).toSVGPath()}},!0));else if(this.parent){const c=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(n(oi,this),{bbox:jl.call(lh,n(li,this).box,(c-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(n(ge,this),{bbox:jl.call(lh,n($e,this).box,c),path:{d:n($e,this).toSVGPath()}})}const[s,a,r,o]=e.box;switch(this.rotation){case 0:this.x=s,this.y=a,this.width=r,this.height=o;break;case 90:{const[c,d]=this.parentDimensions;this.x=a,this.y=1-s,this.width=r*d/c,this.height=o*c/d;break}case 180:this.x=1-s,this.y=1-a,this.width=r,this.height=o;break;case 270:{const[c,d]=this.parentDimensions;this.x=1-a,this.y=s,this.width=r*d/c,this.height=o*c/d;break}}const{firstPoint:l}=e;u(sh,this,[(l[0]-s)/r,(l[1]-a)/o]);const{lastPoint:h}=n($e,this);u(nh,this,[(h[0]-s)/r,(h[1]-a)/o])}function oy(e){const t=(a,r)=>{this.color=a,this.opacity=r,this.onUpdatedColor()},i=this.color,s=this.opacity;this.addCommands({cmd:t.bind(this,e,lh._defaultOpacity),undo:t.bind(this,i,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:G.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(e)},!0)}function ly(e){const t=n(vi,this),i=s=>{u(vi,this,s),p(tt,this,hy).call(this,s)};this.addCommands({cmd:i.bind(this,e),undo:i.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:G.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}function hy(e){n(de,this)&&(p(tt,this,$f).call(this,{highlightOutlines:n(li,this).getNewOutline(e/2)}),this.fixAndSetPosition(),this.setDims())}function fg(){n(oi,this)===null||!this.parent||(this.parent.drawLayer.remove(n(oi,this)),u(oi,this,null),this.parent.drawLayer.remove(n(ge,this)),u(ge,this,null))}function Ba(e=this.parent){n(oi,this)===null&&({id:Vd(u,[oi,this])._,clipPathId:Vd(u,[ro,this])._}=e.drawLayer.draw({bbox:n(li,this).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:n(de,this)},path:{d:n(li,this).toSVGPath()}},!1,!0),u(ge,this,e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:n(de,this)},bbox:n($e,this).box,path:{d:n($e,this).toSVGPath()}},n(de,this))),n(to,this)&&(n(to,this).style.clipPath=n(ro,this)))}function jl([e,t,i,s],a){switch(a){case 90:return[1-t-s,e,s,i];case 180:return[1-e-i,1-t-s,i,s];case 270:return[t,1-e-i,s,i]}return[e,t,i,s]}function cy(e){lh._keyboardManager.exec(this,e)}function Cu(e){if(!n(ih,this))return;const t=window.getSelection();e?t.setPosition(n(ih,this),n(Wd,this)):t.setPosition(n(Hd,this),n(Ud,this))}function Gf(){return n(de,this)?this.rotation:0}function dy(){if(n(de,this))return null;const[e,t]=this.pageDimensions,[i,s]=this.pageTranslation,a=n(nn,this),r=new Float32Array(a.length*8);let o=0;for(const{x:l,y:h,width:c,height:d}of a){const f=l*e+i,g=(1-h)*t+s;r[o]=r[o+4]=f,r[o+1]=r[o+3]=g,r[o+2]=r[o+6]=f+c*e,r[o+5]=r[o+7]=g-d*t,o+=8}return r}function uy(e){return n(li,this).serialize(e,p(tt,this,Gf).call(this))}function fy(e,t){this._freeHighlight.add(t)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}function py(e,t){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(t,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}function gy(e){const{color:t}=this._initialData;return this.hasEditedComment||e.color.some((i,s)=>i!==t[s])}function pg({drawOutlines:e,drawId:t,drawingOptions:i}){u(Se,this,e),this._drawingOptions||(this._drawingOptions=i),this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),t>=0?(this._drawId=t,this.parent.drawLayer.finalizeDraw(t,e.defaultProperties)):this._drawId=p(lt,this,d_).call(this,e,this.parent),p(lt,this,hd).call(this,e.box)}function d_(e,t){const{id:i}=t.drawLayer.draw(w_._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return i}function gg(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}function Fh(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=p(lt,this,d_).call(this,n(Se,this),e)}}function my([e,t,i,s]){const{parentDimensions:[a,r],rotation:o}=this;switch(o){case 90:return[t,1-e,i*(r/a),s*(a/r)];case 180:return[1-e,1-t,i,s];case 270:return[1-t,e,i*(r/a),s*(a/r)];default:return[e,t,i,s]}}function xu(){const{x:e,y:t,width:i,height:s,parentDimensions:[a,r],rotation:o}=this;switch(o){case 90:return[1-t,e,i*(a/r),s*(r/a)];case 180:return[1-e,1-t,i,s];case 270:return[t,1-e,i*(a/r),s*(r/a)];default:return[e,t,i,s]}}function hd(e){[this.x,this.y,this.width,this.height]=p(lt,this,my).call(this,e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}function po(){const{x:e,y:t,width:i,height:s,rotation:a,parentRotation:r,parentDimensions:[o,l]}=this;switch((a*4+r)/90){case 1:return[1-t-s,e,s,i];case 2:return[1-e-i,1-t-s,i,s];case 3:return[t,1-e-i,s,i];case 4:return[e,t-i*(o/l),s*(l/o),i*(o/l)];case 5:return[1-t,e,i*(o/l),s*(l/o)];case 6:return[1-e-s*(l/o),1-t,s*(l/o),i*(o/l)];case 7:return[t-i*(o/l),1-e-s*(l/o),i*(o/l),s*(l/o)];case 8:return[e-i,t-s,i,s];case 9:return[1-t,e-i,s,i];case 10:return[1-e,1-t,i,s];case 11:return[t-s,1-e,s,i];case 12:return[e-s*(l/o),t,s*(l/o),i*(o/l)];case 13:return[1-t-i*(o/l),e-s*(l/o),i*(o/l),s*(l/o)];case 14:return[1-e,1-t-i*(o/l),s*(l/o),i*(o/l)];case 15:return[t,1-e,i*(o/l),s*(l/o)];default:return[e,t,i,s]}}function Pu(e,t){return L._normalizePoint(e,t,n(Br,this),n(Wr,this),n(Nr,this))}function on(e=n(eo,this)){const t=n($d,this)+e/2*n(Nl,this);return n(Bl,this)%180===0?[t/n(_s,this),t/n(bs,this)]:[t/n(bs,this),t/n(_s,this)]}function _y(){const[e,t,i,s]=n(Ee,this),[a,r]=p(Ue,this,on).call(this,0);return[e+a,t+r,i-2*a,s-2*r]}function by(){const e=u(Ee,this,Vs.slice());for(const{line:s}of n(qe,this)){if(s.length<=12){for(let o=4,l=s.length;o<l;o+=6)C.pointBoundingBox(s[o],s[o+1],e);continue}let a=s[4],r=s[5];for(let o=6,l=s.length;o<l;o+=6){const[h,c,d,f,g,_]=s.subarray(o,o+6);C.bezierBoundingBox(a,r,h,c,d,f,g,_,e),a=g,r=_}}const[t,i]=p(Ue,this,on).call(this);e[0]=pt(e[0]-t,0,1),e[1]=pt(e[1]-i,0,1),e[2]=pt(e[2]+t,0,1),e[3]=pt(e[3]+i,0,1),e[2]-=e[0],e[3]-=e[1]}function wy(e){const[t,i]=p(Ue,this,on).call(this);u(eo,this,e);const[s,a]=p(Ue,this,on).call(this),[r,o]=[s-t,a-i],l=n(Ee,this);return l[0]-=r,l[1]-=o,l[2]+=2*r,l[3]+=2*o,l}function yy(e){const{color:t,thickness:i,opacity:s,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((r,o)=>r!==t[o])||e.thickness!==i||e.opacity!==s||e.pageIndex!==a}function u_(e,t,i,s){return i-=e,s-=t,i===0?s>0?0:4:i===1?s+6:2-s}function Ay(e,t,i,s,a,r,o){const l=p(Vt,this,u_).call(this,i,s,a,r);for(let h=0;h<8;h++){const c=(-h+l-o+16)%8,d=p(Vt,this,Ss)._[2*c],f=p(Vt,this,Ss)._[2*c+1];if(e[(i+d)*t+(s+f)]!==0)return c}return-1}function vy(e,t,i,s,a,r,o){const l=p(Vt,this,u_).call(this,i,s,a,r);for(let h=0;h<8;h++){const c=(h+l+o+16)%8,d=p(Vt,this,Ss)._[2*c],f=p(Vt,this,Ss)._[2*c+1];if(e[(i+d)*t+(s+f)]!==0)return c}return-1}function mg(e,t,i,s){const a=e.length,r=new Int32Array(a);for(let c=0;c<a;c++)r[c]=e[c]<=s?1:0;for(let c=1;c<i-1;c++)r[c*t]=r[c*t+t-1]=0;for(let c=0;c<t;c++)r[c]=r[t*i-1-c]=0;let o=1,l;const h=[];for(let c=1;c<i-1;c++){l=1;for(let d=1;d<t-1;d++){const f=c*t+d,g=r[f];if(g===0)continue;let _=c,b=d;if(g===1&&r[f-1]===0)o+=1,b-=1;else if(g>=1&&r[f+1]===0)o+=1,b+=1,g>1&&(l=g);else{g!==1&&(l=Math.abs(g));continue}const w=[d,c],y=b===d+1,A={isHole:y,points:w,id:o,parent:0};h.push(A);let v;for(const R of h)if(R.id===l){v=R;break}v?v.isHole?A.parent=y?v.parent:l:A.parent=y?l:v.parent:A.parent=y?l:0;const S=p(Vt,this,Ay).call(this,r,t,c,d,_,b,0);if(S===-1){r[f]=-o,r[f]!==1&&(l=Math.abs(r[f]));continue}let M=p(Vt,this,Ss)._[2*S],E=p(Vt,this,Ss)._[2*S+1];const T=c+M,x=d+E;_=T,b=x;let D=c,P=d;for(;;){const R=p(Vt,this,vy).call(this,r,t,D,P,_,b,1);M=p(Vt,this,Ss)._[2*R],E=p(Vt,this,Ss)._[2*R+1];const I=D+M,Q=P+E;w.push(Q,I);const X=D*t+P;if(r[X+1]===0?r[X]=-o:r[X]===1&&(r[X]=o),I===c&&Q===d&&D===T&&P===x){r[f]!==1&&(l=Math.abs(r[f]));break}else _=D,b=P,D=I,P=Q}}}return h}function zf(e,t,i,s){if(i-t<=4){for(let T=t;T<i-2;T+=2)s.push(e[T],e[T+1]);return}const a=e[t],r=e[t+1],o=e[i-4]-a,l=e[i-3]-r,h=Math.hypot(o,l),c=o/h,d=l/h,f=c*r-d*a,g=l/o,_=1/h,b=Math.atan(g),w=Math.cos(b),y=Math.sin(b),A=_*(Math.abs(w)+Math.abs(y)),v=_*(1-A+A**2),S=Math.max(Math.atan(Math.abs(y+w)*v),Math.atan(Math.abs(y-w)*v));let M=0,E=t;for(let T=t+2;T<i-2;T+=2){const x=Math.abs(f-c*e[T+1]+d*e[T]);x>M&&(E=T,M=x)}M>(h*S)**2?(p(Vt,this,zf).call(this,e,t,E+2,s),p(Vt,this,zf).call(this,e,E,i,s)):s.push(a,r)}function Sy(e){const t=[],i=e.length;return p(Vt,this,zf).call(this,e,0,i,t),t.push(e[i-2],e[i-1]),t.length<=4?null:t}function ky(e,t,i,s,a,r){const o=new Float32Array(r**2),l=-2*s**2,h=r>>1;for(let b=0;b<r;b++){const w=(b-h)**2;for(let y=0;y<r;y++)o[b*r+y]=Math.exp((w+(y-h)**2)/l)}const c=new Float32Array(256),d=-2*a**2;for(let b=0;b<256;b++)c[b]=Math.exp(b**2/d);const f=e.length,g=new Uint8Array(f),_=new Uint32Array(256);for(let b=0;b<i;b++)for(let w=0;w<t;w++){const y=b*t+w,A=e[y];let v=0,S=0;for(let E=0;E<r;E++){const T=b+E-h;if(!(T<0||T>=i))for(let x=0;x<r;x++){const D=w+x-h;if(D<0||D>=t)continue;const P=e[T*t+D],R=o[E*r+x]*c[Math.abs(P-A)];v+=P*R,S+=R}}const M=g[y]=Math.round(v/S);_[M]++}return[g,_]}function Ey(e){const t=new Uint32Array(256);for(const i of e)t[i]++;return t}function f_(e){const t=e.length,i=new Uint8ClampedArray(t>>2);let s=-1/0,a=1/0;for(let o=0,l=i.length;o<l;o++){const h=i[o]=e[o<<2];s=Math.max(s,h),a=Math.min(a,h)}const r=255/(s-a);for(let o=0,l=i.length;o<l;o++)i[o]=(i[o]-a)*r;return i}function _g(e){let t,i=-1/0,s=-1/0;const a=e.findIndex(l=>l!==0);let r=a,o=a;for(t=a;t<256;t++){const l=e[t];l>i&&(t-r>s&&(s=t-r,o=t-1),i=l,r=t)}for(t=o-1;t>=0&&!(e[t]>e[t+1]);t--);return t}function My(e){const t=e,{width:i,height:s}=e,{maxDim:a}=p(Vt,this,Wl)._;let r=i,o=s;if(i>a||s>a){let c=i,d=s,f=Math.log2(Math.max(i,s)/a);const g=Math.floor(f);f=f===g?g-1:g;for(let b=0;b<f;b++){r=Math.ceil(c/2),o=Math.ceil(d/2);const w=new OffscreenCanvas(r,o);w.getContext("2d").drawImage(e,0,0,c,d,0,0,r,o),c=r,d=o,e!==t&&e.close(),e=w.transferToImageBitmap()}const _=Math.min(a/r,a/o);r=Math.round(r*_),o=Math.round(o*_)}const l=new OffscreenCanvas(r,o).getContext("2d",{willReadFrequently:!0});l.fillStyle="white",l.fillRect(0,0,r,o),l.filter="grayscale(1)",l.drawImage(e,0,0,e.width,e.height,0,0,r,o);const h=l.getImageData(0,0,r,o).data;return[p(Vt,this,f_).call(this,h),r,o]}function Rh(e,t=!1){if(!e){this.remove();return}u(_t,this,e.bitmap),t||(u(Jt,this,e.id),u(ii,this,e.isSvg)),e.file&&u(uh,this,e.file.name),p(ct,this,jf).call(this)}function Oh(){if(u(Ra,this,null),this._uiManager.enableWaiting(!1),!!n(rn,this)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&n(_t,this)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&n(_t,this)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}function Du(){if(n(Jt,this)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(n(Jt,this)).then(i=>p(ct,this,Rh).call(this,i,!0)).finally(()=>p(ct,this,Oh).call(this));return}if(n(an,this)){const i=n(an,this);u(an,this,null),this._uiManager.enableWaiting(!0),u(Ra,this,this._uiManager.imageManager.getFromUrl(i).then(s=>p(ct,this,Rh).call(this,s)).finally(()=>p(ct,this,Oh).call(this)));return}if(n(Pa,this)){const i=n(Pa,this);u(Pa,this,null),this._uiManager.enableWaiting(!0),u(Ra,this,this._uiManager.imageManager.getFromFile(i).then(s=>p(ct,this,Rh).call(this,s)).finally(()=>p(ct,this,Oh).call(this)));return}const e=document.createElement("input");e.type="file",e.accept=fd.join(",");const t=this._uiManager._signal;u(Ra,this,new Promise(i=>{e.addEventListener("change",async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const s=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),p(ct,this,Rh).call(this,s)}i()},{signal:t}),e.addEventListener("cancel",()=>{this.remove(),i()},{signal:t})}).finally(()=>p(ct,this,Oh).call(this))),e.click()}function jf(){const{div:e}=this;let{width:t,height:i}=n(_t,this);const[s,a]=this.pageDimensions,r=.75;if(this.width)t=this.width*s,i=this.height*a;else if(t>r*s||i>r*a){const l=Math.min(r*s/t,r*a/i);t*=l,i*=l}this._uiManager.enableWaiting(!1);const o=u(rn,this,document.createElement("canvas"));o.setAttribute("role","img"),this.addContainer(o),this.width=t/s,this.height=i/a,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),p(ct,this,p_).call(this),n(ah,this)||(this.parent.addUndoableEditor(this),u(ah,this,!0)),this._reportTelemetry({action:"inserted_image"}),n(uh,this)&&this.div.setAttribute("aria-description",n(uh,this)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}function Vf(e,t){const{width:i,height:s}=n(_t,this);let a=i,r=s,o=n(_t,this);for(;a>2*e||r>2*t;){const l=a,h=r;a>2*e&&(a=Math.ceil(a/2)),r>2*t&&(r=Math.ceil(r/2));const c=new OffscreenCanvas(a,r);c.getContext("2d").drawImage(o,0,0,l,h,0,0,a,r),o=c.transferToImageBitmap()}return o}function p_(){const[e,t]=this.parentDimensions,{width:i,height:s}=this,a=new Ys,r=Math.ceil(i*e*a.sx),o=Math.ceil(s*t*a.sy),l=n(rn,this);if(!l||l.width===r&&l.height===o)return;l.width=r,l.height=o;const h=n(ii,this)?n(_t,this):p(ct,this,Vf).call(this,r,o),c=l.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(h,0,0,h.width,h.height,0,0,r,o)}function Iu(e){if(e){if(n(ii,this)){const i=this._uiManager.imageManager.getSvgUrl(n(Jt,this));if(i)return i}const t=document.createElement("canvas");return{width:t.width,height:t.height}=n(_t,this),t.getContext("2d").drawImage(n(_t,this),0,0),t.toDataURL()}if(n(ii,this)){const[t,i]=this.pageDimensions,s=Math.round(this.width*t*yi.PDF_TO_CSS_UNITS),a=Math.round(this.height*i*yi.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(s,a);return r.getContext("2d").drawImage(n(_t,this),0,0,n(_t,this).width,n(_t,this).height,0,0,s,a),r.transferToImageBitmap()}return structuredClone(n(_t,this))}function Ty(e){const{pageIndex:t,accessibilityData:{altText:i}}=this._initialData,s=e.pageIndex===t,a=(e.accessibilityData?.alt||"")===i;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&s&&a,isSameAltText:a}}function bg(){return n(We,this).size!==0?n(We,this).values():n(F,this).getEditors(this.pageIndex)}function Cy(e){n(F,this).unselectAll();const{target:t}=e;if(t===n(te,this).div||(t.getAttribute("role")==="img"||t.classList.contains("endOfContent")||t.classList.contains("textLayerImagePlaceholder"))&&n(te,this).div.contains(t)){const{isMac:i}=Ct.platform;if(e.button!==0||e.ctrlKey&&i)return;n(F,this).showAllEditors("highlight",!0,!0),n(te,this).div.classList.add("free"),this.toggleDrawing(),Ke.startHighlighting(this,n(F,this).direction==="ltr",{target:n(te,this).div,x:e.x,y:e.y}),n(te,this).div.addEventListener("pointerup",()=>{n(te,this).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:n(F,this)._signal}),e.preventDefault()}}function hs(){return Hr._.get(n(F,this).getMode())}function wg(e){const t=hs.call(p(kt,this));return t?new t.prototype.constructor(e):null}function yg(){const{x:e,y:t,width:i,height:s}=this.boundingClientRect,a=Math.max(0,e),r=Math.max(0,t),o=Math.min(window.innerWidth,e+i),l=Math.min(window.innerHeight,t+s),h=(a+o)/2-e,c=(r+l)/2-t,[d,f]=this.viewport.rotation%180===0?[h,c]:[c,h];return{offsetX:d,offsetY:f}}function Lu(){for(const e of n(We,this).values())e.isEmpty()&&e.remove()}function xy(e,[t,i,s,a]){const{style:r}=e;r.top=`${100*i}%`,r.left=`${100*t}%`,r.width=`${100*s}%`,r.height=`${100*a}%`}function Ag(){const e=qd._svgFactory.create(1,1,!0);return n(Fi,this).append(e),e.setAttribute("aria-hidden",!0),e}function Py(e,t){const i=qd._svgFactory.createElement("clipPath");e.append(i);const s=`clip_${t}`;i.setAttribute("id",s),i.setAttribute("clipPathUnits","objectBoundingBox");const a=qd._svgFactory.createElement("use");return i.append(a),a.setAttribute("href",`#${t}`),a.classList.add("clip"),s}function vg(e,t){for(const[i,s]of Object.entries(t))s===null?e.removeAttribute(i):e.setAttribute(i,s)}function Nh(e){return`${(e*100).toFixed(2)}%`}function Dy([e,t,i,s,a,r]){const o=Math.hypot((a-e)*n(As,this),(r-t)*n(vs,this)),l=Math.hypot((i-e)*n(As,this),(s-t)*n(vs,this));if(o<n(rh,this)||l<n(rh,this))return null;const h=[(a-e)*n(As,this)/o,(r-t)*n(vs,this)/o,(i-e)*n(As,this)/l,(s-t)*n(vs,this)/l,0,0],c=C.inverseTransform(h),d=document.createElement("canvas");return d.className="textLayerImagePlaceholder",d.width=0,d.height=0,Object.assign(d.style,{opacity:0,position:"absolute",left:Nh(e),top:Nh(t),width:Nh(o/n(As,this)),height:Nh(l/n(vs,this)),transformOrigin:"0% 0%",transform:`matrix(${h.join(",")})`}),n(Gd,this).set(d,{inverseTransform:c,width:o,height:l,x1:e,y1:t}),d}var cd,Fu,g_,m_,Pe,vn,_e,Ui,__,b_,lh,w_,Vt,qd,Sg,kg,Eg,Mg,go,xe,Di,Vs,Bh,Wh,we,Xi,Wa,U,G,Tg,Ft,Vl,vt,Sn,Xl,Mi,xr,Cg,fh,Es,Xf,dd,Qd,hh,xg,fs,Ct,C,ud,Yf,pa,Hh,Uh,$h,Gh,Kf,ji,yi,Jd,zh,kn,Ru,jh,Vh,Ys,fd,Pg,Dg,qf,En,Mn,Ai,hi,Xh,Tn,mo,_o,Be,Ig,Yh,Zd,ga,ln,$r,y_,fe,Ha,Ua,Kh,$a,qh,Lg,kl,Gr,Ht,bo,Ou,Rt,Cn,Qh,dt,Fg,Nu,Ga,Bu,wo,Ge,za,Mt,yt,yo,Ao,ye,ja,ci,Xt,Da,xn,Pn,Dn,Yi,di,Va,pd,Jh,vo,Zh,Ki,Ia,So,ma,zi,Wu,hn,El,tc,La,Xa,ko,Ms,ec,Ut,et,Ks,In,Ln,Eo,Mo,tu,Fn,qi,Ts,ic,sc,ui,N,Cs,Zt,ps,Ii,Ml,ws,si,To,Qi,He,xs,Ya,cs,gs,nc,va,se,bi,Pr,ht,ac,Rn,fi,On,Nn,Ka,rc,Co,Yl,io,gd,md,_d,bd,wd,cn,zr,bn,qa,gn,Kl,oc,Qa,Ri,gt,K,Ps,xo,Sa,eu,ce,so,mn,pi,Ta,yd,Dr,he,lc,Ja,tn,Ji,ql,Ql,ze,_a,hc,Hu,Y,q,Rg,Uu,De,Zi,cc,Za,jr,tr,ts,ne,$u,dc,uc,Gu,Bn,zu,ju,iu,Po,Wn,Og,Vu,Ds,Z,ut,er,ir,Ir,pe,fc,Ng,Ie,Le,sr,Ti,Do,Hn,Un,st,Bg,nt,St,Ci,$n,Gn,pc,Fe,nr,ar,zn,jn,rr,Wg,Xu,Io,Hg,at,Ug,Qf,Jf,Tt,ae,Ad,Zf,Jl,Lo,$g,Lr,Tl,ms,or,Gg,Li,tp,Wt,ft,zg,jg,Fo,Vg,gc,Xg,Yg,Is,Yu,A_,Cl,xt,Ro,_n,oo,Ku,qu,ep,mc,Qu,v_,Ju,Vr,Xr,dn,Ls,be,ka,es,O,S_,k_,E_,M_,Kg,_c,Xs,lr,xl,Zu,qg,ph,Gt,bc,T_,C_,x_,tf,Oo,ef,sf,Qg,nf,me,wc,ke,af,Jg,Zg,tm,rf,Fs,No,yc,Ac,Bo,Wo,Ho,P_,em,im,of,D_,vc,sm,Sc,nm,vd,ip,ys,kc,I_,Sd,hr,am,kd,Fr,rm,L_,om,lm,ba,lf,hf,Uo,Ec,hm,Vn,Mc,Tc,Cc,$o,cm,Xn,rt,Go,zo,Ed,dm,Bt,Oi,le,cr,is,Re,F_,Yn,cf,gi,df,R_,sp,Kn,Te,su,nu,jo,Ea,un,Md,Td,dr,xc,Vo,Ma,Pl,Cd,Xo,Yr,xd,Pd,Kr,Yo,au,Zl,wp,ru,Pc,um,O_,uf,Ko,ur,np,fm,qs,fr,pr,pm,Fa,$i,en,qr,Si,th,ap,ch,qo,je,Rr,Rs,xi,gr,Qo,Os,ss,N_,gm,qn,mm,Jo,_m,bm,Qe,mr,Dl,jt,Dd,Zo,Qs,Id,Ca,Wi,At,Dc,Ld,Ve,tl,_r,Ns,ff,Ic,pf,wm,el,ym,Bs,Am,Lc,Qn,il,mi,Fc,wt,vm,Ni,Rc,Sm,Ws,km,Em,Mm,gf,Tm,Cm,Oc,Nc,Je,xa,rp,op,dh,sl,Pt,ds,Jn,no,Il,eh,ks,Ye,sn,fn,Et,Js,Zn,Fd,Zs,nl,ta,ea,Qt,Hs,it,B_,mf,Bc,xm,Wc,Pm,Hc,Dm,Uc,_f,Im,Lm,$c,br,Gc,zc,bf,Fm,Rm,Om,wf,jc,Vc,Nm,Qr,ao,al,wa,Rd,wr,ni,ou,ia,Bm,Ll,Ze,Xc,yr,ti,Oe,ns,L,ai,Bi,Fl,Rl,as,j,Jr,Zr,Yc,Kc,Ol,rl,sa,ei,yf,Af,Wm,ol,Or,pn,qc,Xe,Qc,Ot,vf,Sf,Od,Nd,Bd,na,Gi,Hi,lu,Jc,ll,W_,Zc,Hm,ih,Wd,nn,ro,td,$e,Hd,Ud,to,li,oi,de,sh,nh,ge,hl,vi,ed,tt,Ke,Ar,kf,Se,cl,lt,aa,re,dl,ul,rs,Yt,Kt,Nr,fl,Ae,qt,_i,vr,Br,Wr,pl,Um,Ee,id,$d,qe,_s,bs,Nl,Bl,eo,Ue,Sr,Ef,Mf,gl,sd,ml,kr,Us,Wl,Ss,$m,Gm,ra,os,oa,Er,_l,_t,Jt,Ra,an,Pa,uh,rn,Mr,ls,ii,ah,ct,nd,Tr,bl,la,ha,$s,We,ca,wl,yl,Pi,Gs,te,zs,da,Al,F,kt,Tf,Hr,Fi,ve,Cr,ua,Cf,vl,Sl,Gd,ad,rh,As,vs,xf,zm,Pf,Iy=wn((()=>{up(),sb(),rb(),ob(),lb(),hb(),cb(),ab(),go={},go.d=(e,t)=>{for(var i in t)go.o(t,i)&&!go.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},go.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xe=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Di=[1/0,1/0,-1/0,-1/0],Vs=new Float32Array(Di),Bh=[.001,0,0,.001,0,0],Wh=1.35,we={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},Xi={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Wa="pdfjs_internal_editor_",U={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},G={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},Tg={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ft={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Vl={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},vt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},Sn={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Xl={ERRORS:0,WARNINGS:1,INFOS:5},Mi={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},xr={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},Cg={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},fh=Xl.WARNINGS,Es=(function(){function t(i,s){this.message=i,this.name=s}return t.prototype=new Error,t.constructor=t,t})(),Xf=class extends Es{constructor(e,t){super(e,"PasswordException"),this.code=t}},dd=class extends Es{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},Qd=class extends Es{constructor(e){super(e,"InvalidPDFException")}},hh=class extends Es{constructor(e,t,i){super(e,"ResponseException"),this.status=t,this.missing=i}},xg=class extends Es{constructor(e){super(e,"FormatError")}},fs=class extends Es{constructor(e){super(e,"AbortException")}},Ct=class{static get isLittleEndian(){return $(this,"isLittleEndian",gb())}static get isOffscreenCanvasSupported(){return $(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return $(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return $(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return $(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){const{platform:e,userAgent:t}=navigator;return $(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCSSRoundSupported(){return $(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}static get isAlphaColorInputSupported(){return $(this,"isAlphaColorInputSupported",(()=>{if(typeof document>"u")return!1;const e=document.createElement("input");return e.type="color",e.setAttribute("alpha",""),e.value="#ff000080",e.value!=="#ff0000"})())}},C=class lp{static get hexNums(){return $(this,"hexNums",Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0")))}static makeHexColor(t,i,s){return`#${this.hexNums[t]}${this.hexNums[i]}${this.hexNums[s]}`}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,i){let s;t[0]?(t[0]<0&&(s=i[0],i[0]=i[2],i[2]=s),i[0]*=t[0],i[2]*=t[0],t[3]<0&&(s=i[1],i[1]=i[3],i[3]=s),i[1]*=t[3],i[3]*=t[3]):(s=i[0],i[0]=i[1],i[1]=s,s=i[2],i[2]=i[3],i[3]=s,t[1]<0&&(s=i[1],i[1]=i[3],i[3]=s),i[1]*=t[1],i[3]*=t[1],t[2]<0&&(s=i[0],i[0]=i[2],i[2]=s),i[0]*=t[2],i[2]*=t[2]),i[0]+=t[4],i[1]+=t[5],i[2]+=t[4],i[3]+=t[5]}static transform(t,i){return[t[0]*i[0]+t[2]*i[1],t[1]*i[0]+t[3]*i[1],t[0]*i[2]+t[2]*i[3],t[1]*i[2]+t[3]*i[3],t[0]*i[4]+t[2]*i[5]+t[4],t[1]*i[4]+t[3]*i[5]+t[5]]}static multiplyByDOMMatrix(t,i){return[t[0]*i.a+t[2]*i.b,t[1]*i.a+t[3]*i.b,t[0]*i.c+t[2]*i.d,t[1]*i.c+t[3]*i.d,t[0]*i.e+t[2]*i.f+t[4],t[1]*i.e+t[3]*i.f+t[5]]}static applyTransform(t,i,s=0){const a=t[s],r=t[s+1];t[s]=a*i[0]+r*i[2]+i[4],t[s+1]=a*i[1]+r*i[3]+i[5]}static applyTransformToBezier(t,i,s=0){const a=i[0],r=i[1],o=i[2],l=i[3],h=i[4],c=i[5];for(let d=0;d<6;d+=2){const f=t[s+d],g=t[s+d+1];t[s+d]=f*a+g*o+h,t[s+d+1]=f*r+g*l+c}}static applyInverseTransform(t,i){const s=t[0],a=t[1],r=i[0]*i[3]-i[1]*i[2];t[0]=(s*i[3]-a*i[2]+i[2]*i[5]-i[4]*i[3])/r,t[1]=(-s*i[1]+a*i[0]+i[4]*i[1]-i[5]*i[0])/r}static axialAlignedBoundingBox(t,i,s){const a=i[0],r=i[1],o=i[2],l=i[3],h=i[4],c=i[5],d=t[0],f=t[1],g=t[2],_=t[3];let b=a*d+h,w=b,y=a*g+h,A=y,v=l*f+c,S=v,M=l*_+c,E=M;if(r!==0||o!==0){const T=r*d,x=r*g,D=o*f,P=o*_;b+=D,A+=D,y+=P,w+=P,v+=T,E+=T,M+=x,S+=x}s[0]=Math.min(s[0],b,y,w,A),s[1]=Math.min(s[1],v,M,S,E),s[2]=Math.max(s[2],b,y,w,A),s[3]=Math.max(s[3],v,M,S,E)}static inverseTransform(t){const i=t[0]*t[3]-t[1]*t[2];return[t[3]/i,-t[1]/i,-t[2]/i,t[0]/i,(t[2]*t[5]-t[4]*t[3])/i,(t[4]*t[1]-t[5]*t[0])/i]}static singularValueDecompose2dScale(t,i){const s=t[0],a=t[1],r=t[2],o=t[3],l=s**2+a**2,h=s*r+a*o,c=r**2+o**2,d=(l+c)/2,f=Math.sqrt(d**2-(l*c-h**2));i[0]=Math.sqrt(d+f||1),i[1]=Math.sqrt(d-f||1)}static normalizeRect(t){const i=t.slice(0);return t[0]>t[2]&&(i[0]=t[2],i[2]=t[0]),t[1]>t[3]&&(i[1]=t[3],i[3]=t[1]),i}static intersect(t,i){const s=Math.max(Math.min(t[0],t[2]),Math.min(i[0],i[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(i[0],i[2]));if(s>a)return null;const r=Math.max(Math.min(t[1],t[3]),Math.min(i[1],i[3])),o=Math.min(Math.max(t[1],t[3]),Math.max(i[1],i[3]));return r>o?null:[s,r,a,o]}static pointBoundingBox(t,i,s){s[0]=Math.min(s[0],t),s[1]=Math.min(s[1],i),s[2]=Math.max(s[2],t),s[3]=Math.max(s[3],i)}static rectBoundingBox(t,i,s,a,r){r[0]=Math.min(r[0],t,s),r[1]=Math.min(r[1],i,a),r[2]=Math.max(r[2],t,s),r[3]=Math.max(r[3],i,a)}static bezierBoundingBox(t,i,s,a,r,o,l,h,c){c[0]=Math.min(c[0],t,l),c[1]=Math.min(c[1],i,h),c[2]=Math.max(c[2],t,l),c[3]=Math.max(c[3],i,h),p(lp,this,Ap).call(this,t,s,r,l,i,a,o,h,3*(-t+3*(s-r)+l),6*(t-2*s+r),3*(s-t),c),p(lp,this,Ap).call(this,t,s,r,l,i,a,o,h,3*(-i+3*(a-o)+h),6*(i-2*a+o),3*(a-i),c)}},cd=C,ud=null,Yf=null,pa="pdfjs_internal_id_",Hh=()=>[],Uh=()=>new Map,$h=()=>Object.create(null),Gh=class H_{static textContent(t){const i=[],s={items:i,styles:Object.create(null)};function a(r){if(!r)return;let o=null;const l=r.name;if(l==="#text")o=r.value;else if(H_.shouldBuildText(l))r?.attributes?.textContent?o=r.attributes.textContent:r.value&&(o=r.value);else return;if(o!==null&&i.push({str:o}),!!r.children)for(const h of r.children)a(h)}return a(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}},Kf=class{static setupStorage(e,t,i,s,a){const r=s.getValue(t,{value:null});switch(i.name){case"textarea":if(r.value!==null&&(e.textContent=r.value),a==="print")break;e.addEventListener("input",o=>{s.setValue(t,{value:o.target.value})});break;case"input":if(i.attributes.type==="radio"||i.attributes.type==="checkbox"){if(r.value===i.attributes.xfaOn?e.setAttribute("checked",!0):r.value===i.attributes.xfaOff&&e.removeAttribute("checked"),a==="print")break;e.addEventListener("change",o=>{s.setValue(t,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(r.value!==null&&e.setAttribute("value",r.value),a==="print")break;e.addEventListener("input",o=>{s.setValue(t,{value:o.target.value})})}break;case"select":if(r.value!==null){e.setAttribute("value",r.value);for(const o of i.children)o.attributes.value===r.value?o.attributes.selected=!0:Object.hasOwn(o.attributes,"selected")&&delete o.attributes.selected}e.addEventListener("input",o=>{const l=o.target.options,h=l.selectedIndex===-1?"":l[l.selectedIndex].value;s.setValue(t,{value:h})});break}}static setAttributes({html:e,element:t,storage:i=null,intent:s,linkService:a}){const{attributes:r}=t,o=e instanceof HTMLAnchorElement;r.type==="radio"&&(r.name=`${r.name}-${s}`);for(const[l,h]of Object.entries(r))if(h!=null)switch(l){case"class":h.length&&e.setAttribute(l,h.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",h);break;case"style":Object.assign(e.style,h);break;case"textContent":e.textContent=h;break;default:(!o||l!=="href"&&l!=="newWindow")&&e.setAttribute(l,h)}o&&a.addLinkAttributes(e,r.href,r.newWindow),i&&r.dataId&&this.setupStorage(e,r.dataId,t,i)}static render(e){const t=e.annotationStorage,i=e.linkService,s=e.xfaHtml,a=e.intent||"display",r=document.createElement(s.name);s.attributes&&this.setAttributes({html:r,element:s,intent:a,linkService:i});const o=a!=="richText",l=e.div;if(l.append(r),e.viewport){const d=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=d}o&&l.setAttribute("class","xfaLayer xfaFont");const h=[];if(s.children.length===0){if(s.value){const d=document.createTextNode(s.value);r.append(d),o&&Gh.shouldBuildText(s.name)&&h.push(d)}return{textDivs:h}}const c=[[s,-1,r]];for(;c.length>0;){const[d,f,g]=c.at(-1);if(f+1===d.children.length){c.pop();continue}const _=d.children[++c.at(-1)[1]];if(_===null)continue;const{name:b}=_;if(b==="#text"){const y=document.createTextNode(_.value);h.push(y),g.append(y);continue}const w=_?.attributes?.xmlns?document.createElementNS(_.attributes.xmlns,b):document.createElement(b);if(g.append(w),_.attributes&&this.setAttributes({html:w,element:_,storage:t,intent:a,linkService:i}),_.children?.length>0)c.push([_,-1,w]);else if(_.value){const y=document.createTextNode(_.value);o&&Gh.shouldBuildText(b)&&h.push(y),w.append(y)}}for(const d of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))d.setAttribute("readOnly",!0);return{textDivs:h}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}},ji="http://www.w3.org/2000/svg",yi=class{},Fu=yi,k(yi,"CSS",96),k(yi,"PDF",72),k(yi,"PDF_TO_CSS_UNITS",Fu.CSS/Fu.PDF),Jd=class U_{constructor({viewBox:t,userUnit:i,scale:s,rotation:a,offsetX:r=0,offsetY:o=0,dontFlip:l=!1}){this.viewBox=t,this.userUnit=i,this.scale=s,this.rotation=a,this.offsetX=r,this.offsetY=o,s*=i;const h=(t[2]+t[0])/2,c=(t[3]+t[1])/2;let d,f,g,_;switch(a%=360,a<0&&(a+=360),a){case 180:d=-1,f=0,g=0,_=1;break;case 90:d=0,f=1,g=1,_=0;break;case 270:d=0,f=-1,g=-1,_=0;break;case 0:d=1,f=0,g=0,_=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(g=-g,_=-_);let b,w,y,A;d===0?(b=Math.abs(c-t[1])*s+r,w=Math.abs(h-t[0])*s+o,y=(t[3]-t[1])*s,A=(t[2]-t[0])*s):(b=Math.abs(h-t[0])*s+r,w=Math.abs(c-t[1])*s+o,y=(t[2]-t[0])*s,A=(t[3]-t[1])*s),this.transform=[d*s,f*s,g*s,_*s,b-d*s*h-g*s*c,w-f*s*h-_*s*c],this.width=y,this.height=A}get rawDims(){const t=this.viewBox;return $(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:i=this.rotation,offsetX:s=this.offsetX,offsetY:a=this.offsetY,dontFlip:r=!1}={}){return new U_({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:i,offsetX:s,offsetY:a,dontFlip:r})}convertToViewportPoint(t,i){const s=[t,i];return C.applyTransform(s,this.transform),s}convertToViewportRectangle(t){const i=[t[0],t[1]];C.applyTransform(i,this.transform);const s=[t[2],t[3]];return C.applyTransform(s,this.transform),[i[0],i[1],s[0],s[1]]}convertToPdfPoint(t,i){const s=[t,i];return C.applyInverseTransform(s,this.transform),s}},zh=class extends Es{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}},kn=new WeakMap,Ru=class{constructor(){m(this,kn,new Map),k(this,"times",[])}time(e){n(kn,this).has(e)&&z(`Timer is already running for ${e}`),n(kn,this).set(e,Date.now())}timeEnd(e){n(kn,this).has(e)||z(`Timer has not been started for ${e}`),this.times.push({name:e,start:n(kn,this).get(e),end:Date.now()}),n(kn,this).delete(e)}toString(){const e=Math.max(...this.times.map(t=>t.name.length));return this.times.map(t=>`${t.name.padEnd(e)} ${t.end-t.start}ms
@@ -1 +1 @@
1
- import{wa as r}from"./index-DnjQJzX4.js";var a,e=r((()=>{a="/assets/mjs/pdf.worker.min-iDqQPrd3.mjs"}));e();export{a as default};
1
+ import{wa as r}from"./index-DN4SafrP.js";var a,e=r((()=>{a="/assets/mjs/pdf.worker.min-iDqQPrd3.mjs"}));e();export{a as default};
@@ -1 +1 @@
1
- import{wa as e}from"./index-DnjQJzX4.js";var t,s,r=e((()=>{t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}));r();export{t as conf,s as language};
1
+ import{wa as e}from"./index-DN4SafrP.js";var t,s,r=e((()=>{t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}));r();export{t as conf,s as language};
@@ -1 +1 @@
1
- import{Qr as y,ai as m,ei as r,gi as _,oi as b,si as P,ua as s,wa as o}from"./index-DnjQJzX4.js";async function h(){return(await r("/api/hermes/pets/active")).pet}async function w(e){return(await r("/api/hermes/pets/adopt",{method:"POST",body:JSON.stringify({slug:e})})).pet}async function g(e){return(await r("/api/hermes/pets/active",{method:"PATCH",body:JSON.stringify(e)})).pet}var A=o((()=>{y()})),S,N=o((()=>{P(),b(),A(),S=m("pets",()=>{const e=s(null),l=s(!1),i=s(!1),t=s(""),c=_(()=>!!e.value?.enabled);async function v(){l.value=!0,t.value="";try{return e.value=await h(),e.value}catch(a){return t.value=a?.message||"Failed to load active pet",e.value=null,null}finally{l.value=!1}}async function f(a){i.value=!0,t.value="";try{return e.value=await w(a),e.value}catch(n){throw t.value=n?.message||"Failed to adopt pet",n}finally{i.value=!1}}async function u(a){if(e.value){e.value={...e.value,...typeof a.scale=="number"?{scale:a.scale}:{},...a.position?{position:a.position}:{},...typeof a.enabled=="boolean"?{enabled:a.enabled}:{}},i.value=!0;try{const n=await g(a);n?e.value=n:a.enabled===!1&&(e.value=null)}finally{i.value=!1}}}async function d(){await u({enabled:!1})}function p(){e.value=null,t.value=""}return{activePet:e,loading:l,saving:i,error:t,hasActivePet:c,loadActivePet:v,adopt:f,savePreferences:u,hideActivePet:d,clear:p}})}));export{S as n,N as t};
1
+ import{Qr as y,ai as m,ei as r,gi as _,oi as b,si as P,ua as s,wa as o}from"./index-DN4SafrP.js";async function h(){return(await r("/api/hermes/pets/active")).pet}async function w(e){return(await r("/api/hermes/pets/adopt",{method:"POST",body:JSON.stringify({slug:e})})).pet}async function g(e){return(await r("/api/hermes/pets/active",{method:"PATCH",body:JSON.stringify(e)})).pet}var A=o((()=>{y()})),S,N=o((()=>{P(),b(),A(),S=m("pets",()=>{const e=s(null),l=s(!1),i=s(!1),t=s(""),c=_(()=>!!e.value?.enabled);async function v(){l.value=!0,t.value="";try{return e.value=await h(),e.value}catch(a){return t.value=a?.message||"Failed to load active pet",e.value=null,null}finally{l.value=!1}}async function f(a){i.value=!0,t.value="";try{return e.value=await w(a),e.value}catch(n){throw t.value=n?.message||"Failed to adopt pet",n}finally{i.value=!1}}async function u(a){if(e.value){e.value={...e.value,...typeof a.scale=="number"?{scale:a.scale}:{},...a.position?{position:a.position}:{},...typeof a.enabled=="boolean"?{enabled:a.enabled}:{}},i.value=!0;try{const n=await g(a);n?e.value=n:a.enabled===!1&&(e.value=null)}finally{i.value=!1}}}async function d(){await u({enabled:!1})}function p(){e.value=null,t.value=""}return{activePet:e,loading:l,saving:i,error:t,hasActivePet:c,loadActivePet:v,adopt:f,savePreferences:u,hideActivePet:d,clear:p}})}));export{S as n,N as t};