@feedmepos/mf-payment 1.11.16-dev → 1.11.17-dev

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 (145) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +64 -0
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BvhrP3i-.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpSmJgWn.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BjGEcK8R.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BVqrbU1b.js} +3 -3
  4. package/dist/{Chargeback-CCzx9M4d.js → Chargeback-BqQYNBGo.js} +6 -6
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Cgetk-s9.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DERNbQ3k.js} +473 -473
  6. package/dist/{ExternalTerminal-BL5sEkJK.js → ExternalTerminal-fNOdfUBA.js} +7 -7
  7. package/dist/FoodCourtPayoutAccount-DNAcTdWF.js +187 -0
  8. package/dist/FoodCourtSettlement-CTtJEJ7Q.js +68 -0
  9. package/dist/FoodCourtTransaction-BaqOpZ2h.js +212 -0
  10. package/dist/Method.vue_vue_type_script_setup_true_lang-CYxMDr_T.js +58 -0
  11. package/dist/{OnboardForm-CHBL2xs2.js → OnboardForm-B4r4MFFi.js} +6 -6
  12. package/dist/{OnboardForm-CwoQ-u0X.js → OnboardForm-Bz_kBQ_2.js} +6 -6
  13. package/dist/{OnboardSubmission-De50hDlQ.js → OnboardSubmission-D_Mi1LR5.js} +6 -6
  14. package/dist/{OnboardSubmission-CwdA6Fh0.js → OnboardSubmission-GAG1q9Cu.js} +4 -4
  15. package/dist/{PaymentCheckout-C4zXAkTu.js → PaymentCheckout-BCy5_Qc8.js} +2 -2
  16. package/dist/{PayoutAccount-ChqGHuRR.js → PayoutAccount-9jZqReid.js} +7 -7
  17. package/dist/PayoutAccount-BDdUpPUJ.js +405 -0
  18. package/dist/{PayoutAccountSetting-SjFMSEu9.js → PayoutAccountSetting-CbRrZ-uL.js} +7 -7
  19. package/dist/{Restaurant-CYJ-XLRZ.js → Restaurant-yzTw6u3J.js} +5 -5
  20. package/dist/{RestaurantSetting-BdXl1yPZ.js → RestaurantSetting-LtwUZbiZ.js} +4 -4
  21. package/dist/Settlement-BTNKWaS6.js +510 -0
  22. package/dist/{Settlement-DFRxxs_m.js → Settlement-DKC-8m5B.js} +3 -3
  23. package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-hjz9Xw5x.js +132 -0
  24. package/dist/{SettlementTransactions-C3Fsm_X9.js → SettlementTransactions-B0wn4zEK.js} +106 -97
  25. package/dist/{SettlementTransactions-CGBKh1GN.js → SettlementTransactions-BA8lVRms.js} +5 -5
  26. package/dist/{Status.vue_vue_type_script_setup_true_lang-B64OGluJ.js → Status.vue_vue_type_script_setup_true_lang-B8QvOL7Z.js} +1 -1
  27. package/dist/{Terminal-C-rbyBC8.js → Terminal-jqcSPL2f.js} +7 -7
  28. package/dist/{TerminalSetting-CcTRaKIt.js → TerminalSetting-IkoP5RPL.js} +8 -8
  29. package/dist/{TerminalTemplate-DLaa9wUZ.js → TerminalTemplate-kSeKVJ-C.js} +5 -5
  30. package/dist/{TerminalTemplateSetting-YzhPDF8J.js → TerminalTemplateSetting-C7Q0ofoT.js} +6 -6
  31. package/dist/{Transaction-ou3zdIBB.js → Transaction-B9E6DQye.js} +16 -15
  32. package/dist/{Transaction-Bk8usnmd.js → Transaction-CauQVnjl.js} +54 -52
  33. package/dist/{TransactionOld-0X1celu9.js → TransactionOld-fdLtZOUV.js} +10 -9
  34. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-BS4AYaq1.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Cm-r2le1.js} +1 -1
  35. package/dist/api/document/index.d.ts +2 -0
  36. package/dist/api/food-court/index.d.ts +31 -0
  37. package/dist/{app-obftSkFb.js → app-LpRZG5SK.js} +2420 -2351
  38. package/dist/app.js +1 -1
  39. package/dist/{assets-DLPXM2Y4.js → assets-CU3fydSV.js} +1 -1
  40. package/dist/{grafana-BXLOtIvx.js → grafana-BBPv2vBQ.js} +1 -1
  41. package/dist/{index-Baec1AT2.js → index-BFqUsoWz.js} +4227 -4176
  42. package/dist/{index-a8lvAiCb.js → index-Be6BYI6Y.js} +52 -29
  43. package/dist/{index-owIgdVJd.js → index-CY-XsXFD.js} +1 -1
  44. package/dist/index-CazeCsOR.js +13 -0
  45. package/dist/{index-CJPHA9xo.js → index-CfdnF9Hu.js} +1 -1
  46. package/dist/{index-CtbE-KF0.js → index-CnXoDo29.js} +1 -1
  47. package/dist/{index-CR-HSdwu.js → index-DDRoa9oc.js} +2 -2
  48. package/dist/{index-Dlng-M3Z.js → index-DFb6LwIH.js} +2 -2
  49. package/dist/{index-CK7aA2pd.js → index-DGBA5vc9.js} +1 -1
  50. package/dist/index-DYFngO0V.js +75 -0
  51. package/dist/{index-BQadSOBj.js → index-Da1J8lF1.js} +1 -1
  52. package/dist/{index-CAT0OmJZ.js → index-DhTmRVyJ.js} +1 -1
  53. package/dist/{index-DRy36FqO.js → index-T3wrZJyq.js} +1 -1
  54. package/dist/index-j-zqgMuS.js +52 -0
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DrxOa3Bv.js → index.vue_vue_type_script_setup_true_lang-DiniY5At.js} +1 -1
  56. package/dist/{PayoutAccount-CpJaVhKj.js → mascot-side-DNc7naiM.js} +206 -598
  57. package/dist/model/payout-account.d.ts +3 -2
  58. package/dist/{onboard-submission-Dzw9Nu3k.js → onboard-submission-CYp6UpDI.js} +2 -2
  59. package/dist/package.json +3 -3
  60. package/dist/{payout-account-BXeQXNBN.js → payout-account-B8ZjV2cD.js} +179 -169
  61. package/dist/router/food-court.d.ts +3 -0
  62. package/dist/router/index.d.ts +3 -1
  63. package/dist/stores/payoutAccount.d.ts +40 -38
  64. package/dist/style.css +1 -1
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{useQuery-COlCU4ZR.js → useQuery-BKgSfFAn.js} +1 -1
  67. package/dist/utils/food-court.d.ts +2 -0
  68. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
  69. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
  70. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
  71. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
  72. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
  73. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  74. package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +20 -20
  75. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +20 -20
  76. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +40 -38
  77. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +62 -60
  78. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +62 -60
  79. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +40 -38
  80. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +40 -38
  81. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +62 -60
  82. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  83. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
  84. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  85. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  86. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  87. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  88. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  89. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  90. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  91. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -4
  92. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +6 -4
  93. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -4
  94. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -4
  95. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -4
  96. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -4
  97. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -4
  98. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -4
  99. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -4
  100. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -4
  101. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -4
  102. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -4
  103. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  104. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +22 -20
  105. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +22 -20
  106. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +22 -20
  107. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +22 -20
  108. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +22 -20
  109. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +22 -20
  110. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +22 -20
  111. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +22 -20
  112. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +22 -20
  113. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +22 -20
  114. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +22 -20
  115. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +22 -20
  116. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +22 -20
  117. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +22 -20
  118. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +22 -20
  119. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +22 -20
  120. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +22 -20
  121. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +22 -20
  122. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +22 -20
  123. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +22 -20
  124. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +22 -20
  125. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +22 -20
  126. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +22 -20
  127. package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +22 -20
  128. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +22 -20
  129. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +22 -20
  130. package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +26 -26
  131. package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +16 -16
  132. package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +16 -16
  133. package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +2 -0
  134. package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +2 -0
  135. package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +2 -0
  136. package/dist/views/onboard-submission/useTeyaConnect.d.ts +1 -1
  137. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +80 -76
  138. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
  139. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
  140. package/dist/views/settlement/SettlementTable.vue.d.ts +15 -5
  141. package/dist/views/settlement/SettlementTransactions.vue.d.ts +11 -1
  142. package/package.json +3 -3
  143. package/dist/Actions.vue_vue_type_script_setup_true_lang-C7wa3o3y.js +0 -118
  144. package/dist/Settlement-DlNwIY-o.js +0 -625
  145. package/dist/index-n58-Qewm.js +0 -62
@@ -1,10 +1,10 @@
1
- import { defineComponent as bR, shallowRef as cV, ref as MZ, toRef as Wm, computed as EZ, watch as AQ, onBeforeUnmount as uh, openBlock as Ll, createElementBlock as Kl, Fragment as am, renderList as sm, renderSlot as ma, createElementVNode as KU, normalizeStyle as nm, createCommentVNode as ac, watchEffect as Vm, toValue as kR, resolveComponent as WV, createVNode as $F, unref as fV, toDisplayString as zR, createBlock as LR } from "vue";
2
- import { d as IR } from "./index-a8lvAiCb.js";
1
+ import { defineComponent as eR, shallowRef as cV, ref as MZ, toRef as Wm, computed as EZ, watch as _Q, onBeforeUnmount as uh, openBlock as Ll, createElementBlock as Kl, Fragment as am, renderList as sm, renderSlot as ma, createElementVNode as KU, normalizeStyle as nm, createCommentVNode as ac, watchEffect as Vm, toValue as zR, resolveComponent as WV, createVNode as $F, unref as fV, toDisplayString as LR, createBlock as IR } from "vue";
2
+ import { d as AV } from "./index-Be6BYI6Y.js";
3
3
  import { _ as Qm } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const im = "data:image/svg+xml,%3csvg%20width='858'%20height='376'%20viewBox='0%200%20858%20376'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1132_89720)'%3e%3cpath%20d='M440%20505.86C651.525%20505.86%20823%20437.839%20823%20353.93C823%20270.021%20651.525%20202%20440%20202C228.475%20202%2057%20270.021%2057%20353.93C57%20437.839%20228.475%20505.86%20440%20505.86Z'%20fill='url(%23paint0_linear_1132_89720)'%20fill-opacity='0.5'/%3e%3cg%20clip-path='url(%23clip1_1132_89720)'%3e%3cpath%20d='M331.443%20106.351C343.852%2058.097%20379.776%2037.6206%20397.221%2030.2477C402.417%2028.0519%20407.88%2026.5702%20413.469%2025.749L424.914%2024.0709C430.503%2023.2497%20436.163%2023.1069%20441.769%2023.7138C460.588%2025.749%20500.887%2035.0321%20526.652%2077.6808C561.416%20135.2%20586.627%20250.954%20457.589%20272.322V272.376C456.91%20272.483%20456.25%20272.555%20455.589%20272.644C454.928%20272.751%20454.268%20272.858%20453.589%20272.965V272.912C323.854%20289.55%20314.695%20171.458%20331.443%20106.351Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M429.807%20275.839C396.221%20275.839%20370.046%20265.414%20351.762%20244.705C319.016%20207.644%20319.641%20146.84%20330.14%20106.03C342.406%2058.3112%20377.099%2037.2993%20396.686%2029.0337C401.899%2026.8379%20407.47%2025.2848%20413.273%2024.4457L424.718%2022.7676C430.521%2021.9107%20436.306%2021.7858%20441.912%2022.3928C463.053%2024.6778%20502.316%2034.8178%20527.795%2076.9845C549.596%20113.046%20567.701%20171.119%20547.007%20216.035C532.973%20246.508%20503.387%20265.824%20459.089%20273.429V273.465L457.786%20273.715C457.375%20273.768%20456.982%20273.822%20456.589%20273.876L454.982%20274.108C454.59%20274.179%20454.197%20274.233%20453.786%20274.304L452.447%20274.5L452.429%20274.411C444.573%20275.357%20437.02%20275.839%20429.807%20275.839ZM332.747%20106.69C322.408%20146.876%20321.712%20206.662%20353.762%20242.956C375.563%20267.645%20409.095%20277.285%20453.429%20271.591L454.75%20271.43V271.448L456.268%20271.233C456.375%20271.216%20456.5%20271.198%20456.607%20271.198L457.375%20271.037C501.477%20263.736%20530.813%20244.866%20544.597%20214.946C564.845%20170.976%20546.972%20113.921%20525.528%2078.3949C500.638%2037.1743%20462.285%2027.2842%20441.645%2025.0349C436.252%2024.4457%20430.699%2024.5707%20425.129%2025.3919L413.684%2027.07C408.113%2027.8912%20402.756%2029.3729%20397.757%2031.4795C378.598%2039.5665%20344.727%2060.0964%20332.747%20106.69Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M360.457%20129.166L360.493%20111.814C362.475%2083.3041%20397.685%2072.0216%20409.041%2068.3083C417.504%2065.5413%20428.467%2063.6489%20432.359%2063.042V63.0241C432.359%2063.0241%20432.609%2062.9884%20433.074%2062.917C433.538%2062.8456%20433.788%2062.8099%20433.788%2062.8099V62.8277C437.68%2062.31%20448.732%2060.9533%20457.642%2061.1675C469.569%2061.471%20506.547%2062.1315%20516.653%2088.874L521.67%20105.476C527.045%20124.114%20518.974%20141.324%20501.566%20143.876L390.757%20160.175C373.348%20162.728%20360.671%20148.571%20360.457%20129.166Z'%20fill='white'/%3e%3cpath%20d='M490.656%20119.473C482.675%20120.651%20473.997%20114.76%20473.158%20106.458C472.319%2098.1393%20477.622%2090.213%20486.175%2088.9633C494.156%2087.7851%20502.833%2093.6763%20503.673%20101.978C504.512%20110.297%20499.209%20118.223%20490.656%20119.473Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M488.585%20120.972C484.836%20120.972%20481.068%20119.651%20477.944%20117.223C474.426%20114.474%20472.248%20110.707%20471.837%20106.601C470.891%2097.2824%20477.105%2088.9455%20485.996%2087.6423C490.442%2086.9818%20495.156%2088.285%20498.923%2091.2306C502.441%2093.9798%20504.619%2097.7466%20505.03%20101.853C505.976%20111.171%20499.763%20119.508%20490.871%20120.812C490.103%20120.919%20489.335%20120.972%20488.585%20120.972ZM488.21%2090.1594C487.586%2090.1594%20486.978%2090.1952%20486.371%2090.2844C478.908%2091.3734%20473.694%2098.425%20474.498%20106.316C474.837%20109.69%20476.64%20112.796%20479.586%20115.099C482.729%20117.545%20486.8%20118.687%20490.478%20118.152C497.941%20117.063%20503.155%20110.011%20502.352%20102.12C502.012%2098.7463%20500.209%2095.6222%20497.263%2093.3371C494.62%2091.2841%20491.353%2090.1594%20488.21%2090.1594Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M411.309%20131.13C403.327%20132.308%20394.65%20126.417%20393.811%20118.116C392.971%20109.797%20398.274%20101.87%20406.827%20100.621C414.808%2099.4426%20423.486%20105.334%20424.325%20113.635C425.182%20121.954%20419.861%20129.88%20411.309%20131.13Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M409.238%20132.63C405.488%20132.63%20401.721%20131.309%20398.596%20128.881C395.079%20126.131%20392.9%20122.365%20392.49%20118.259C391.543%20108.94%20397.757%20100.603%20406.649%2099.2997C411.095%2098.6392%20415.808%2099.9603%20419.576%20102.888C423.093%20105.637%20425.272%20109.404%20425.682%20113.51C426.629%20122.829%20420.415%20131.166%20411.523%20132.469C410.755%20132.576%20409.988%20132.63%20409.238%20132.63ZM408.863%20101.817C408.238%20101.817%20407.631%20101.853%20407.024%20101.942C399.56%20103.031%20394.347%20110.082%20395.15%20117.973C395.489%20121.347%20397.293%20124.453%20400.239%20126.756C403.381%20129.202%20407.452%20130.345%20411.13%20129.809C418.594%20128.72%20423.807%20121.668%20423.004%20113.778C422.665%20110.404%20420.861%20107.28%20417.915%20104.995C415.291%20102.942%20412.005%20101.817%20408.863%20101.817Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M567.791%20147.286C576.968%20161.747%20586.699%20171.994%20597.698%20165.031C608.679%20158.069%20610.161%20140.699%20600.983%20126.239C591.806%20111.778%20575.468%20105.709%20564.47%20112.671C553.471%20119.633%20558.613%20132.826%20567.791%20147.286Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M317.962%20176.582C318.141%20176.546%20318.319%20176.546%20318.498%20176.51C318.569%20177.242%20318.623%20177.992%20318.712%20178.724C320.962%20200.039%20326.747%20219.07%20335.674%20234.905C334.121%20236.101%20332.193%20236.975%20329.836%20237.44C317.069%20239.921%20304.053%20228.317%20300.786%20211.518C297.518%20194.719%20305.178%20179.081%20317.962%20176.582Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M547.167%20216.088C549.917%20210.143%20552.006%20203.734%20553.506%20196.969C550.417%20185.579%20546.542%20174.671%20541.686%20165.852C539.775%20162.371%20535.883%20160.479%20531.955%20161.032L526.045%20161.871C519.849%20162.746%20516.153%20169.226%20518.546%20175.028C520.01%20178.599%20521.224%20180.241%20522.17%20183.454C523.831%20189.096%20520.081%20194.88%20514.243%20195.665L413.415%20209.179C408.059%20209.893%20403.095%20206.073%20402.559%20200.682C402.059%20195.737%20401.309%20192.88%20400.595%20188.953C399.685%20183.883%20394.917%20180.455%20389.829%20181.187L375.116%20183.276C369.902%20184.008%20366.242%20188.828%20366.974%20194.041C368.849%20207.751%20371.241%20234.101%20366.188%20256.952C366.117%20257.255%20366.099%20257.559%20366.063%20257.862C382.865%20269.93%20404.184%20276.018%20429.824%20276.018C437.002%20276.018%20444.501%20275.536%20452.339%20274.59L452.357%20274.679L453.857%20274.465C454.268%20274.411%20454.66%20274.34%20455.071%20274.268L456.678%20274.036C457.071%20273.983%20457.464%20273.929%20457.856%20273.875L459.32%20273.608V273.572C503.565%20265.913%20533.133%20246.58%20547.167%20216.088Z'%20fill='white'/%3e%3cpath%20d='M476.069%20249.668C484.727%20249.668%20491.746%20242.651%20491.746%20233.994C491.746%20225.337%20484.727%20218.32%20476.069%20218.32C467.411%20218.32%20460.393%20225.337%20460.393%20233.994C460.393%20242.651%20467.411%20249.668%20476.069%20249.668Z'%20fill='white'/%3e%3cpath%20d='M484.854%20240.617C485.032%20242.135%20485.318%20244.562%20485.55%20246.473C489.978%20243.116%20492.478%20237.511%20491.603%20231.62C490.443%20223.836%20483.765%20218.248%20476.141%20218.213C476.158%20218.552%20476.176%20218.855%20476.176%20218.909C476.212%20219.712%20476.248%20220.498%20476.266%20221.301C476.337%20223.497%20477.176%20224.657%20479.23%20225.461C479.783%20225.675%20480.337%20225.961%20480.836%20226.3C482.604%20227.496%20483.425%20229.263%20483.729%20231.298C483.997%20233.083%20484.175%20234.887%20484.39%20236.69C484.568%20238.011%20484.693%20239.314%20484.854%20240.617Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M460.499%20236.261C461.356%20242.045%20465.266%20246.615%20470.355%20248.597C470.319%20248.365%20470.302%20248.204%20470.284%20248.186C470.07%20246.812%20469.855%20245.437%20469.623%20244.063C469.016%20240.331%20468.373%20236.6%20467.802%20232.851C467.481%20230.816%20468.07%20229.031%20469.552%20227.567C470.105%20227.014%20470.694%20226.496%20471.248%20225.925C472.194%20224.961%20472.48%20223.854%20472.105%20222.497C471.623%20220.569%20471.784%20221.212%20471.623%20220.569C471.551%20220.284%20471.355%20219.569%20471.212%20218.962C464.017%20221.301%20459.356%20228.549%20460.499%20236.261Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M480.925%20235.797C480.89%20235.511%20480.818%20235.208%20480.729%20234.922C480.515%20234.19%20479.783%20233.762%20479.051%20233.94C478.336%20234.101%20477.872%20234.797%20477.979%20235.547C478.604%20239.725%20479.372%20244.919%20480.015%20249.168C480.979%20248.918%20481.907%20248.579%20482.782%20248.169C482.229%20244.473%20481.443%20239.225%20480.925%20235.797Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M472.855%20234.976C471.98%20235.261%20471.623%20235.833%20471.766%20236.779C472.266%20240.224%20473.069%20245.598%20473.641%20249.472C474.587%20249.615%20475.569%20249.686%20476.551%20249.65C476.373%20248.258%20476.087%20246.258%20475.944%20245.259C475.498%20242.152%20475.033%20239.046%20474.569%20235.958C474.444%20235.226%20473.587%20234.744%20472.855%20234.976Z'%20fill='%23A7A9AC'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1132_89720'%20x1='440.003'%20y1='133.148'%20x2='440.003'%20y2='371.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A5A5A5'/%3e%3cstop%20offset='0.4764'%20stop-color='%23E0E0E0'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1132_89720'%3e%3crect%20width='858'%20height='376'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1132_89720'%3e%3crect%20width='307'%20height='254'%20fill='white'%20transform='translate(300%2022)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
5
5
  var Rm = Object.defineProperty, Yh = (U) => {
6
6
  throw TypeError(U);
7
- }, Nm = (U, l, d) => l in U ? Rm(U, l, { enumerable: !0, configurable: !0, writable: !0, value: d }) : U[l] = d, H = (U, l, d) => Nm(U, typeof l != "symbol" ? l + "" : l, d), eR = (U, l, d) => l.has(U) || Yh("Cannot " + d), W = (U, l, d) => (eR(U, l, "read from private field"), d ? d.call(U) : l.get(U)), e = (U, l, d) => l.has(U) ? Yh("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(U) : l.set(U, d), R = (U, l, d, Z) => (eR(U, l, "write to private field"), l.set(U, d), d), h = (U, l, d) => (eR(U, l, "access private method"), d), pd = (U, l, d, Z) => ({
7
+ }, Nm = (U, l, d) => l in U ? Rm(U, l, { enumerable: !0, configurable: !0, writable: !0, value: d }) : U[l] = d, H = (U, l, d) => Nm(U, typeof l != "symbol" ? l + "" : l, d), mR = (U, l, d) => l.has(U) || Yh("Cannot " + d), W = (U, l, d) => (mR(U, l, "read from private field"), d ? d.call(U) : l.get(U)), e = (U, l, d) => l.has(U) ? Yh("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(U) : l.set(U, d), R = (U, l, d, Z) => (mR(U, l, "write to private field"), l.set(U, d), d), h = (U, l, d) => (mR(U, l, "access private method"), d), pd = (U, l, d, Z) => ({
8
8
  set _(t) {
9
9
  R(U, l, t);
10
10
  },
@@ -2478,8 +2478,8 @@ var Rm = Object.defineProperty, Yh = (U) => {
2478
2478
  }, Ml = function(C, z, r, $) {
2479
2479
  var bl = C[z], A = $ && bl === $.value, pl = A && typeof $.source == "string" ? { source: $.source } : {}, Pl, TU, Jd, ad, Vc;
2480
2480
  if (V(bl)) {
2481
- var yR = Q(bl), Ya = A ? $.nodes : yR ? [] : {};
2482
- if (yR)
2481
+ var kR = Q(bl), Ya = A ? $.nodes : kR ? [] : {};
2482
+ if (kR)
2483
2483
  for (Pl = Ya.length, Jd = b(bl), ad = 0; ad < Jd; ad++)
2484
2484
  Jl(bl, ad, Ml(bl, "" + ad, r, ad < Pl ? Ya[ad] : void 0));
2485
2485
  else
@@ -2744,7 +2744,7 @@ Wl.d(_, {
2744
2744
  ),
2745
2745
  DOMSVGFactory: () => (
2746
2746
  /* reexport */
2747
- uR
2747
+ YR
2748
2748
  ),
2749
2749
  DrawLayer: () => (
2750
2750
  /* reexport */
@@ -2764,7 +2764,7 @@ Wl.d(_, {
2764
2764
  ),
2765
2765
  InvalidPDFException: () => (
2766
2766
  /* reexport */
2767
- qQ
2767
+ $Q
2768
2768
  ),
2769
2769
  MissingPDFException: () => (
2770
2770
  /* reexport */
@@ -2776,7 +2776,7 @@ Wl.d(_, {
2776
2776
  ),
2777
2777
  OutputScale: () => (
2778
2778
  /* reexport */
2779
- TR
2779
+ XR
2780
2780
  ),
2781
2781
  PDFDataRangeTransport: () => (
2782
2782
  /* reexport */
@@ -2804,11 +2804,11 @@ Wl.d(_, {
2804
2804
  ),
2805
2805
  RenderingCancelledException: () => (
2806
2806
  /* reexport */
2807
- JR
2807
+ GR
2808
2808
  ),
2809
2809
  TextLayer: () => (
2810
2810
  /* reexport */
2811
- mi
2811
+ Mi
2812
2812
  ),
2813
2813
  TouchManager: () => (
2814
2814
  /* reexport */
@@ -2864,7 +2864,7 @@ Wl.d(_, {
2864
2864
  ),
2865
2865
  isPdfFile: () => (
2866
2866
  /* reexport */
2867
- GR
2867
+ SR
2868
2868
  ),
2869
2869
  noContextMenu: () => (
2870
2870
  /* reexport */
@@ -2903,7 +2903,7 @@ Wl(4979);
2903
2903
  Wl(4603);
2904
2904
  Wl(7566);
2905
2905
  Wl(8721);
2906
- const Md = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), Bh = [1, 0, 0, 1, 0, 0], _Q = [1e-3, 0, 0, 1e-3, 0, 0], bm = 1e7, AV = 1.35, gd = {
2906
+ const Md = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), Bh = [1, 0, 0, 1, 0, 0], qQ = [1e-3, 0, 0, 1e-3, 0, 0], bm = 1e7, _V = 1.35, gd = {
2907
2907
  ANY: 1,
2908
2908
  DISPLAY: 2,
2909
2909
  PRINT: 4,
@@ -3155,12 +3155,12 @@ class ER extends Jt {
3155
3155
  super(l, "PasswordException"), this.code = d;
3156
3156
  }
3157
3157
  }
3158
- class _V extends Jt {
3158
+ class qV extends Jt {
3159
3159
  constructor(l, d) {
3160
3160
  super(l, "UnknownErrorException"), this.details = d;
3161
3161
  }
3162
3162
  }
3163
- let qQ = class extends Jt {
3163
+ let $Q = class extends Jt {
3164
3164
  constructor(U) {
3165
3165
  super(U, "InvalidPDFException");
3166
3166
  }
@@ -3205,7 +3205,7 @@ function xV(U) {
3205
3205
  function pm(U) {
3206
3206
  return String.fromCharCode(U >> 24 & 255, U >> 16 & 255, U >> 8 & 255, U & 255);
3207
3207
  }
3208
- function mR(U) {
3208
+ function MR(U) {
3209
3209
  const l = /* @__PURE__ */ Object.create(null);
3210
3210
  for (const [d, Z] of U)
3211
3211
  l[d] = Z;
@@ -3251,11 +3251,11 @@ class ud {
3251
3251
  return Ul(this, "isCSSRoundSupported", (d = (l = globalThis.CSS) == null ? void 0 : l.supports) == null ? void 0 : d.call(l, "width: round(1.5px, 1px)"));
3252
3252
  }
3253
3253
  }
3254
- const qV = Array.from(Array(256).keys(), (U) => U.toString(16).padStart(2, "0"));
3255
- var Gt, $V, Ba, lQ;
3256
- let O = ($V = class {
3254
+ const $V = Array.from(Array(256).keys(), (U) => U.toString(16).padStart(2, "0"));
3255
+ var Gt, lQ, Ba, dQ;
3256
+ let O = (lQ = class {
3257
3257
  static makeHexColor(U, l, d) {
3258
- return `#${qV[U]}${qV[l]}${qV[d]}`;
3258
+ return `#${$V[U]}${$V[l]}${$V[d]}`;
3259
3259
  }
3260
3260
  static scaleMinMax(U, l) {
3261
3261
  let d;
@@ -3296,14 +3296,14 @@ let O = ($V = class {
3296
3296
  return t > F ? null : [d, t, Z, F];
3297
3297
  }
3298
3298
  static bezierBoundingBox(U, l, d, Z, t, F, c, a, s) {
3299
- return s ? (s[0] = Math.min(s[0], U, c), s[1] = Math.min(s[1], l, a), s[2] = Math.max(s[2], U, c), s[3] = Math.max(s[3], l, a)) : s = [Math.min(U, c), Math.min(l, a), Math.max(U, c), Math.max(l, a)], h(this, Gt, lQ).call(this, U, d, t, c, l, Z, F, a, 3 * (-U + 3 * (d - t) + c), 6 * (U - 2 * d + t), 3 * (d - U), s), h(this, Gt, lQ).call(this, U, d, t, c, l, Z, F, a, 3 * (-l + 3 * (Z - F) + a), 6 * (l - 2 * Z + F), 3 * (Z - l), s), s;
3299
+ return s ? (s[0] = Math.min(s[0], U, c), s[1] = Math.min(s[1], l, a), s[2] = Math.max(s[2], U, c), s[3] = Math.max(s[3], l, a)) : s = [Math.min(U, c), Math.min(l, a), Math.max(U, c), Math.max(l, a)], h(this, Gt, dQ).call(this, U, d, t, c, l, Z, F, a, 3 * (-U + 3 * (d - t) + c), 6 * (U - 2 * d + t), 3 * (d - U), s), h(this, Gt, dQ).call(this, U, d, t, c, l, Z, F, a, 3 * (-l + 3 * (Z - F) + a), 6 * (l - 2 * Z + F), 3 * (Z - l), s), s;
3300
3300
  }
3301
3301
  }, Gt = /* @__PURE__ */ new WeakSet(), Ba = function(U, l, d, Z, t, F, c, a, s, n) {
3302
3302
  if (s <= 0 || s >= 1)
3303
3303
  return;
3304
3304
  const V = 1 - s, Q = s * s, i = Q * s, N = V * (V * (V * U + 3 * s * l) + 3 * Q * d) + i * Z, b = V * (V * (V * t + 3 * s * F) + 3 * Q * c) + i * a;
3305
3305
  n[0] = Math.min(n[0], N), n[1] = Math.min(n[1], b), n[2] = Math.max(n[2], N), n[3] = Math.max(n[3], b);
3306
- }, lQ = function(U, l, d, Z, t, F, c, a, s, n, V, Q) {
3306
+ }, dQ = function(U, l, d, Z, t, F, c, a, s, n, V, Q) {
3307
3307
  if (Math.abs(s) < 1e-12) {
3308
3308
  Math.abs(n) >= 1e-12 && h(this, Gt, Ba).call(this, U, l, d, Z, t, F, c, a, -V / n, Q);
3309
3309
  return;
@@ -3313,13 +3313,13 @@ let O = ($V = class {
3313
3313
  return;
3314
3314
  const N = Math.sqrt(i), b = 2 * s;
3315
3315
  h(this, Gt, Ba).call(this, U, l, d, Z, t, F, c, a, (-n + N) / b, Q), h(this, Gt, Ba).call(this, U, l, d, Z, t, F, c, a, (-n - N) / b, Q);
3316
- }, e($V, Gt), $V);
3316
+ }, e(lQ, Gt), lQ);
3317
3317
  function Bm(U) {
3318
3318
  return decodeURIComponent(escape(U));
3319
3319
  }
3320
- let dQ = null, wR = null;
3320
+ let UQ = null, wR = null;
3321
3321
  function om(U) {
3322
- return dQ || (dQ = /([\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, wR = /* @__PURE__ */ new Map([["ſt", "ſt"]])), U.replaceAll(dQ, (l, d, Z) => d ? d.normalize("NFKC") : wR.get(Z));
3322
+ return UQ || (UQ = /([\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, wR = /* @__PURE__ */ new Map([["ſt", "ſt"]])), U.replaceAll(UQ, (l, d, Z) => d ? d.normalize("NFKC") : wR.get(Z));
3323
3323
  }
3324
3324
  function ym() {
3325
3325
  if (typeof crypto.randomUUID == "function")
@@ -3327,7 +3327,7 @@ function ym() {
3327
3327
  const U = new Uint8Array(32);
3328
3328
  return crypto.getRandomValues(U), oh(U);
3329
3329
  }
3330
- const MR = "pdfjs_internal_id_";
3330
+ const JR = "pdfjs_internal_id_";
3331
3331
  function km(U) {
3332
3332
  return Uint8Array.prototype.toBase64 ? U.toBase64() : btoa(oh(U));
3333
3333
  }
@@ -3457,7 +3457,7 @@ class Xa {
3457
3457
  return O.applyInverseTransform([l, d], this.transform);
3458
3458
  }
3459
3459
  }
3460
- let JR = class extends Jt {
3460
+ let GR = class extends Jt {
3461
3461
  constructor(U, l = 0) {
3462
3462
  super(U, "RenderingCancelledException"), this.extraDelay = l;
3463
3463
  }
@@ -3469,7 +3469,7 @@ function OV(U) {
3469
3469
  d++;
3470
3470
  return U.substring(d, d + 5).toLowerCase() === "data:";
3471
3471
  }
3472
- function GR(U) {
3472
+ function SR(U) {
3473
3473
  return typeof U == "string" && /\.pdf$/i.test(U);
3474
3474
  }
3475
3475
  function zm(U) {
@@ -3536,8 +3536,8 @@ function JU(U) {
3536
3536
  function Hd(U) {
3537
3537
  U.preventDefault(), U.stopPropagation();
3538
3538
  }
3539
- var UQ, ic;
3540
- let yh = (UQ = class {
3539
+ var ZQ, ic;
3540
+ let yh = (ZQ = class {
3541
3541
  static toDateObject(U) {
3542
3542
  if (!U || typeof U != "string")
3543
3543
  return null;
@@ -3562,7 +3562,7 @@ let yh = (UQ = class {
3562
3562
  let V = parseInt(l[9], 10) || 0;
3563
3563
  return V = V >= 0 && V <= 59 ? V : 0, s === "-" ? (F += n, c += V) : s === "+" && (F -= n, c -= V), new Date(Date.UTC(d, Z, t, F, c, a));
3564
3564
  }
3565
- }, ic = /* @__PURE__ */ new WeakMap(), e(UQ, ic), UQ);
3565
+ }, ic = /* @__PURE__ */ new WeakMap(), e(ZQ, ic), ZQ);
3566
3566
  function Im(U, {
3567
3567
  scale: l = 1,
3568
3568
  rotation: d = 0
@@ -3578,7 +3578,7 @@ function Im(U, {
3578
3578
  rotation: d
3579
3579
  });
3580
3580
  }
3581
- function SR(U) {
3581
+ function TR(U) {
3582
3582
  if (U.startsWith("#")) {
3583
3583
  const l = parseInt(U.slice(1), 16);
3584
3584
  return [(l & 16711680) >> 16, (l & 65280) >> 8, l & 255];
@@ -3591,7 +3591,7 @@ function Dm(U) {
3591
3591
  for (const d of U.keys()) {
3592
3592
  l.style.color = d;
3593
3593
  const Z = window.getComputedStyle(l).color;
3594
- U.set(d, SR(Z));
3594
+ U.set(d, TR(Z));
3595
3595
  }
3596
3596
  l.remove();
3597
3597
  }
@@ -3629,7 +3629,7 @@ function uF(U, l, d = !1, Z = !0) {
3629
3629
  }
3630
3630
  Z && U.setAttribute("data-main-rotation", l.rotation);
3631
3631
  }
3632
- let TR = class {
3632
+ let XR = class {
3633
3633
  constructor() {
3634
3634
  const U = window.devicePixelRatio || 1;
3635
3635
  this.sx = U, this.sy = U;
@@ -3641,7 +3641,7 @@ let TR = class {
3641
3641
  return this.sx === this.sy;
3642
3642
  }
3643
3643
  };
3644
- var Ot, l0, vU, y0, Bs, wW, $Q, kh, OU, rR, xR, sV, zh, li;
3644
+ var Ot, l0, vU, y0, Bs, wW, li, kh, OU, rR, xR, sV, zh, di;
3645
3645
  const os = class ys {
3646
3646
  constructor(l) {
3647
3647
  e(this, OU), e(this, Ot, null), e(this, l0, null), e(this, vU), e(this, y0, null), e(this, Bs, null), R(this, vU, l), W(ys, wW) || R(ys, wW, Object.freeze({
@@ -3657,7 +3657,7 @@ const os = class ys {
3657
3657
  const d = W(this, vU)._uiManager._signal;
3658
3658
  l.addEventListener("contextmenu", JU, {
3659
3659
  signal: d
3660
- }), l.addEventListener("pointerdown", h(ys, $Q, kh), {
3660
+ }), l.addEventListener("pointerdown", h(ys, li, kh), {
3661
3661
  signal: d
3662
3662
  });
3663
3663
  const Z = R(this, y0, document.createElement("div"));
@@ -3684,19 +3684,19 @@ const os = class ys {
3684
3684
  }
3685
3685
  async addAltText(l) {
3686
3686
  const d = await l.render();
3687
- h(this, OU, sV).call(this, d), W(this, y0).prepend(d, W(this, OU, li)), R(this, Bs, l);
3687
+ h(this, OU, sV).call(this, d), W(this, y0).prepend(d, W(this, OU, di)), R(this, Bs, l);
3688
3688
  }
3689
3689
  addColorPicker(l) {
3690
3690
  R(this, l0, l);
3691
3691
  const d = l.renderButton();
3692
- h(this, OU, sV).call(this, d), W(this, y0).prepend(d, W(this, OU, li));
3692
+ h(this, OU, sV).call(this, d), W(this, y0).prepend(d, W(this, OU, di));
3693
3693
  }
3694
3694
  remove() {
3695
3695
  var l;
3696
3696
  W(this, Ot).remove(), (l = W(this, l0)) == null || l.destroy(), R(this, l0, null);
3697
3697
  }
3698
3698
  };
3699
- Ot = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), vU = /* @__PURE__ */ new WeakMap(), y0 = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), wW = /* @__PURE__ */ new WeakMap(), $Q = /* @__PURE__ */ new WeakSet(), kh = function(U) {
3699
+ Ot = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), vU = /* @__PURE__ */ new WeakMap(), y0 = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), wW = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakSet(), kh = function(U) {
3700
3700
  U.stopPropagation();
3701
3701
  }, OU = /* @__PURE__ */ new WeakSet(), rR = function(U) {
3702
3702
  W(this, vU)._focusEventsAllowed = !1, Hd(U);
@@ -3723,10 +3723,10 @@ Ot = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), vU = /*
3723
3723
  }, {
3724
3724
  signal: l._signal
3725
3725
  }), W(this, y0).append(d);
3726
- }, li = function() {
3726
+ }, di = function() {
3727
3727
  const U = document.createElement("div");
3728
3728
  return U.className = "divider", U;
3729
- }, e(os, $Q), e(os, wW, null);
3729
+ }, e(os, li), e(os, wW, null);
3730
3730
  let Em = os;
3731
3731
  var ks, RF, k0, CW, Lh, Ih, jR;
3732
3732
  class wm {
@@ -3782,16 +3782,16 @@ function nV(U, l, d) {
3782
3782
  for (const Z of d)
3783
3783
  l.addEventListener(Z, U[Z].bind(U));
3784
3784
  }
3785
- var di;
3785
+ var Ui;
3786
3786
  class Cm {
3787
3787
  constructor() {
3788
- e(this, di, 0);
3788
+ e(this, Ui, 0);
3789
3789
  }
3790
3790
  get id() {
3791
- return `${em}${pd(this, di)._++}`;
3791
+ return `${em}${pd(this, Ui)._++}`;
3792
3792
  }
3793
3793
  }
3794
- di = /* @__PURE__ */ new WeakMap();
3794
+ Ui = /* @__PURE__ */ new WeakMap();
3795
3795
  var rW, VV, gl, Hc, zs;
3796
3796
  const Dh = class {
3797
3797
  constructor() {
@@ -3982,10 +3982,10 @@ class xm {
3982
3982
  }
3983
3983
  }
3984
3984
  Dl = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap();
3985
- var Ui, Eh;
3985
+ var Zi, Eh;
3986
3986
  class pa {
3987
3987
  constructor(l) {
3988
- e(this, Ui), this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
3988
+ e(this, Zi), this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
3989
3989
  const {
3990
3990
  isMac: d
3991
3991
  } = ud.platform;
@@ -4004,7 +4004,7 @@ class pa {
4004
4004
  exec(l, d) {
4005
4005
  if (!this.allKeys.has(d.key))
4006
4006
  return;
4007
- const Z = this.callbacks.get(h(this, Ui, Eh).call(this, d));
4007
+ const Z = this.callbacks.get(h(this, Zi, Eh).call(this, d));
4008
4008
  if (!Z)
4009
4009
  return;
4010
4010
  const {
@@ -4018,7 +4018,7 @@ class pa {
4018
4018
  a && !a(l, d) || (t.bind(l, ...c, d)(), F || Hd(d));
4019
4019
  }
4020
4020
  }
4021
- Ui = /* @__PURE__ */ new WeakSet(), Eh = function(U) {
4021
+ Zi = /* @__PURE__ */ new WeakSet(), Eh = function(U) {
4022
4022
  U.altKey && this.buffer.push("alt"), U.ctrlKey && this.buffer.push("ctrl"), U.metaKey && this.buffer.push("meta"), U.shiftKey && this.buffer.push("shift"), this.buffer.push(U.key);
4023
4023
  const l = this.buffer.join("+");
4024
4024
  return this.buffer.length = 0, l;
@@ -4029,7 +4029,7 @@ const wh = class Ch {
4029
4029
  return Dm(l), Ul(this, "_colors", l);
4030
4030
  }
4031
4031
  convert(l) {
4032
- const d = SR(l);
4032
+ const d = TR(l);
4033
4033
  if (!window.matchMedia("(forced-colors: active)").matches)
4034
4034
  return d;
4035
4035
  for (const [Z, t] of this._colors)
@@ -4044,10 +4044,10 @@ const wh = class Ch {
4044
4044
  };
4045
4045
  H(wh, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
4046
4046
  let jm = wh;
4047
- var Rc, Pd, fl, sd, Nc, YZ, oF, nU, Tt, yF, hc, kF, fU, pU, zF, oa, ya, bc, ka, AU, Xt, ec, pt, uU, ZQ, ut, za, Yt, LF, La, Ia, ql, Rl, BZ, IF, mc, Da, Bt, _U, oZ, Ea, VU, DF, g, wa, tQ, OR, gR, Ca, KR, vR, HR, FQ, PR, cQ, WQ, fR, Gd, qU, AR, _R, aQ, qR, Mc, sQ;
4047
+ var Rc, Pd, fl, sd, Nc, YZ, oF, nU, Tt, yF, hc, kF, fU, pU, zF, oa, ya, bc, ka, AU, Xt, ec, pt, uU, tQ, ut, za, Yt, LF, La, Ia, ql, Rl, BZ, IF, mc, Da, Bt, _U, oZ, Ea, VU, DF, g, wa, FQ, OR, gR, Ca, KR, vR, HR, cQ, PR, WQ, aQ, fR, Gd, qU, AR, _R, sQ, qR, Mc, nQ;
4048
4048
  let Ja = (DF = class {
4049
4049
  constructor(U, l, d, Z, t, F, c, a, s, n, V, Q, i) {
4050
- e(this, g), e(this, Rc, new AbortController()), e(this, Pd, null), e(this, fl, /* @__PURE__ */ new Map()), e(this, sd, /* @__PURE__ */ new Map()), e(this, Nc, null), e(this, YZ, null), e(this, oF, null), e(this, nU, new xm()), e(this, Tt, null), e(this, yF, null), e(this, hc, 0), e(this, kF, /* @__PURE__ */ new Set()), e(this, fU, null), e(this, pU, null), e(this, zF, /* @__PURE__ */ new Set()), H(this, "_editorUndoBar", null), e(this, oa, !1), e(this, ya, !1), e(this, bc, !1), e(this, ka, null), e(this, AU, null), e(this, Xt, null), e(this, ec, null), e(this, pt, !1), e(this, uU, null), e(this, ZQ, new Cm()), e(this, ut, !1), e(this, za, !1), e(this, Yt, null), e(this, LF, null), e(this, La, null), e(this, Ia, null), e(this, ql, dl.NONE), e(this, Rl, /* @__PURE__ */ new Set()), e(this, BZ, null), e(this, IF, null), e(this, mc, null), e(this, Da, {
4050
+ e(this, g), e(this, Rc, new AbortController()), e(this, Pd, null), e(this, fl, /* @__PURE__ */ new Map()), e(this, sd, /* @__PURE__ */ new Map()), e(this, Nc, null), e(this, YZ, null), e(this, oF, null), e(this, nU, new xm()), e(this, Tt, null), e(this, yF, null), e(this, hc, 0), e(this, kF, /* @__PURE__ */ new Set()), e(this, fU, null), e(this, pU, null), e(this, zF, /* @__PURE__ */ new Set()), H(this, "_editorUndoBar", null), e(this, oa, !1), e(this, ya, !1), e(this, bc, !1), e(this, ka, null), e(this, AU, null), e(this, Xt, null), e(this, ec, null), e(this, pt, !1), e(this, uU, null), e(this, tQ, new Cm()), e(this, ut, !1), e(this, za, !1), e(this, Yt, null), e(this, LF, null), e(this, La, null), e(this, Ia, null), e(this, ql, dl.NONE), e(this, Rl, /* @__PURE__ */ new Set()), e(this, BZ, null), e(this, IF, null), e(this, mc, null), e(this, Da, {
4051
4051
  isEditing: !1,
4052
4052
  isEmpty: !0,
4053
4053
  hasSomethingToUndo: !1,
@@ -4068,7 +4068,7 @@ let Ja = (DF = class {
4068
4068
  signal: N
4069
4069
  }), Z._on("switchannotationeditorparams", (b) => this.updateParams(b.type, b.value), {
4070
4070
  signal: N
4071
- }), h(this, g, KR).call(this), h(this, g, fR).call(this), h(this, g, FQ).call(this), R(this, YZ, t.annotationStorage), R(this, ka, t.filterFactory), R(this, IF, F), R(this, ec, c || null), R(this, oa, a), R(this, ya, s), R(this, bc, n), R(this, Ia, V || null), this.viewParameters = {
4071
+ }), h(this, g, KR).call(this), h(this, g, fR).call(this), h(this, g, cQ).call(this), R(this, YZ, t.annotationStorage), R(this, ka, t.filterFactory), R(this, IF, F), R(this, ec, c || null), R(this, oa, a), R(this, ya, s), R(this, bc, n), R(this, Ia, V || null), this.viewParameters = {
4072
4072
  realScale: sc.PDF_TO_CSS_UNITS,
4073
4073
  rotation: 0
4074
4074
  }, this.isShiftKeyDown = !1, this._editorUndoBar = Q || null, this._supportsPinchToZoom = i !== !1;
@@ -4251,7 +4251,7 @@ let Ja = (DF = class {
4251
4251
  if (!s)
4252
4252
  return;
4253
4253
  l.empty();
4254
- const n = h(this, g, tQ).call(this, a), V = W(this, ql) === dl.NONE, Q = () => {
4254
+ const n = h(this, g, FQ).call(this, a), V = W(this, ql) === dl.NONE, Q = () => {
4255
4255
  n == null || n.createAndAddNewEditor({
4256
4256
  x: 0,
4257
4257
  y: 0
@@ -4298,10 +4298,10 @@ let Ja = (DF = class {
4298
4298
  }), l.focus();
4299
4299
  }
4300
4300
  addEditListeners() {
4301
- h(this, g, FQ).call(this), h(this, g, cQ).call(this);
4301
+ h(this, g, cQ).call(this), h(this, g, WQ).call(this);
4302
4302
  }
4303
4303
  removeEditListeners() {
4304
- h(this, g, PR).call(this), h(this, g, WQ).call(this);
4304
+ h(this, g, PR).call(this), h(this, g, aQ).call(this);
4305
4305
  }
4306
4306
  dragOver(U) {
4307
4307
  for (const {
@@ -4369,8 +4369,8 @@ let Ja = (DF = class {
4369
4369
  }
4370
4370
  const F = () => {
4371
4371
  for (const a of t)
4372
- h(this, g, aQ).call(this, a);
4373
- h(this, g, sQ).call(this, t);
4372
+ h(this, g, sQ).call(this, a);
4373
+ h(this, g, nQ).call(this, t);
4374
4374
  }, c = () => {
4375
4375
  for (const a of t)
4376
4376
  a.remove();
@@ -4406,13 +4406,13 @@ let Ja = (DF = class {
4406
4406
  }
4407
4407
  }
4408
4408
  setEditingState(U) {
4409
- U ? (h(this, g, vR).call(this), h(this, g, cQ).call(this), h(this, g, Gd).call(this, {
4409
+ U ? (h(this, g, vR).call(this), h(this, g, WQ).call(this), h(this, g, Gd).call(this, {
4410
4410
  isEditing: W(this, ql) !== dl.NONE,
4411
4411
  isEmpty: h(this, g, Mc).call(this),
4412
4412
  hasSomethingToUndo: W(this, nU).hasSomethingToUndo(),
4413
4413
  hasSomethingToRedo: W(this, nU).hasSomethingToRedo(),
4414
4414
  hasSelectedEditor: !1
4415
- })) : (h(this, g, HR).call(this), h(this, g, WQ).call(this), h(this, g, Gd).call(this, {
4415
+ })) : (h(this, g, HR).call(this), h(this, g, aQ).call(this), h(this, g, Gd).call(this, {
4416
4416
  isEditing: !1
4417
4417
  }), this.disableUserSelect(!1));
4418
4418
  }
@@ -4424,7 +4424,7 @@ let Ja = (DF = class {
4424
4424
  }
4425
4425
  }
4426
4426
  getId() {
4427
- return W(this, ZQ).id;
4427
+ return W(this, tQ).id;
4428
4428
  }
4429
4429
  get currentLayer() {
4430
4430
  return W(this, sd).get(W(this, hc));
@@ -4622,7 +4622,7 @@ let Ja = (DF = class {
4622
4622
  c.remove();
4623
4623
  }, t = () => {
4624
4624
  for (const F of d)
4625
- h(this, g, aQ).call(this, F);
4625
+ h(this, g, sQ).call(this, F);
4626
4626
  };
4627
4627
  this.addCommands({
4628
4628
  cmd: Z,
@@ -4640,7 +4640,7 @@ let Ja = (DF = class {
4640
4640
  selectAll() {
4641
4641
  for (const U of W(this, Rl))
4642
4642
  U.commit();
4643
- h(this, g, sQ).call(this, W(this, fl).values());
4643
+ h(this, g, nQ).call(this, W(this, fl).values());
4644
4644
  }
4645
4645
  unselectAll() {
4646
4646
  var U;
@@ -4838,11 +4838,11 @@ let Ja = (DF = class {
4838
4838
  const Z = W(this, YZ).getRawValue(d);
4839
4839
  Z && (W(this, ql) === dl.NONE && !Z.hasBeenModified || Z.renderAnnotationElement(U));
4840
4840
  }
4841
- }, Rc = /* @__PURE__ */ new WeakMap(), Pd = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), YZ = /* @__PURE__ */ new WeakMap(), oF = /* @__PURE__ */ new WeakMap(), nU = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), yF = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), kF = /* @__PURE__ */ new WeakMap(), fU = /* @__PURE__ */ new WeakMap(), pU = /* @__PURE__ */ new WeakMap(), zF = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), AU = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), uU = /* @__PURE__ */ new WeakMap(), ZQ = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), LF = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Rl = /* @__PURE__ */ new WeakMap(), BZ = /* @__PURE__ */ new WeakMap(), IF = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), _U = /* @__PURE__ */ new WeakMap(), oZ = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), VU = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakSet(), wa = function({
4841
+ }, Rc = /* @__PURE__ */ new WeakMap(), Pd = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), YZ = /* @__PURE__ */ new WeakMap(), oF = /* @__PURE__ */ new WeakMap(), nU = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), yF = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), kF = /* @__PURE__ */ new WeakMap(), fU = /* @__PURE__ */ new WeakMap(), pU = /* @__PURE__ */ new WeakMap(), zF = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), AU = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), uU = /* @__PURE__ */ new WeakMap(), tQ = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), LF = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Rl = /* @__PURE__ */ new WeakMap(), BZ = /* @__PURE__ */ new WeakMap(), IF = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), _U = /* @__PURE__ */ new WeakMap(), oZ = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), VU = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakSet(), wa = function({
4842
4842
  anchorNode: U
4843
4843
  }) {
4844
4844
  return U.nodeType === Node.TEXT_NODE ? U.parentElement : U;
4845
- }, tQ = function(U) {
4845
+ }, FQ = function(U) {
4846
4846
  const {
4847
4847
  currentLayer: l
4848
4848
  } = this;
@@ -4882,7 +4882,7 @@ let Ja = (DF = class {
4882
4882
  if ((d = W(this, uU)) == null || d.hide(), R(this, BZ, t), h(this, g, Gd).call(this, {
4883
4883
  hasSelectedText: !0
4884
4884
  }), !(W(this, ql) !== dl.HIGHLIGHT && W(this, ql) !== dl.NONE) && (W(this, ql) === dl.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), R(this, pt, this.isShiftKeyDown), !this.isShiftKeyDown)) {
4885
- const c = W(this, ql) === dl.HIGHLIGHT ? h(this, g, tQ).call(this, F) : null;
4885
+ const c = W(this, ql) === dl.HIGHLIGHT ? h(this, g, FQ).call(this, F) : null;
4886
4886
  c == null || c.toggleDrawing();
4887
4887
  const a = new AbortController(), s = this.combinedSignal(a), n = (V) => {
4888
4888
  V.type === "pointerup" && V.button !== 0 || (a.abort(), c == null || c.toggleDrawing(!0), V.type === "pointerup" && h(this, g, Ca).call(this, "main_toolbar"));
@@ -4912,7 +4912,7 @@ let Ja = (DF = class {
4912
4912
  }, HR = function() {
4913
4913
  var U;
4914
4914
  (U = W(this, Xt)) == null || U.abort(), R(this, Xt, null);
4915
- }, FQ = function() {
4915
+ }, cQ = function() {
4916
4916
  if (W(this, Yt))
4917
4917
  return;
4918
4918
  R(this, Yt, new AbortController());
@@ -4925,7 +4925,7 @@ let Ja = (DF = class {
4925
4925
  }, PR = function() {
4926
4926
  var U;
4927
4927
  (U = W(this, Yt)) == null || U.abort(), R(this, Yt, null);
4928
- }, cQ = function() {
4928
+ }, WQ = function() {
4929
4929
  if (W(this, Tt))
4930
4930
  return;
4931
4931
  R(this, Tt, new AbortController());
@@ -4937,7 +4937,7 @@ let Ja = (DF = class {
4937
4937
  }), document.addEventListener("paste", this.paste.bind(this), {
4938
4938
  signal: U
4939
4939
  });
4940
- }, WQ = function() {
4940
+ }, aQ = function() {
4941
4941
  var U;
4942
4942
  (U = W(this, Tt)) == null || U.abort(), R(this, Tt, null);
4943
4943
  }, fR = function() {
@@ -4975,7 +4975,7 @@ let Ja = (DF = class {
4975
4975
  for (const U of W(this, fl).values())
4976
4976
  U.disable();
4977
4977
  }
4978
- }, aQ = function(U) {
4978
+ }, sQ = function(U) {
4979
4979
  const l = W(this, sd).get(U.pageIndex);
4980
4980
  l ? l.addOrRebuild(U) : (this.addEditor(U), this.addToAnnotationStorage(U));
4981
4981
  }, qR = function() {
@@ -4990,7 +4990,7 @@ let Ja = (DF = class {
4990
4990
  for (const U of W(this, fl).values())
4991
4991
  return U.isEmpty();
4992
4992
  return !1;
4993
- }, sQ = function(U) {
4993
+ }, nQ = function(U) {
4994
4994
  for (const l of W(this, Rl))
4995
4995
  l.unselect();
4996
4996
  W(this, Rl).clear();
@@ -5161,8 +5161,8 @@ Wd = /* @__PURE__ */ new WeakMap(), hZ = /* @__PURE__ */ new WeakMap(), DU = /*
5161
5161
  F == null || F.setAttribute("aria-describedby", t.id);
5162
5162
  }, e(fc, Rt, null), H(fc, "_l10n", null);
5163
5163
  let $R = fc;
5164
- var ra, EF, xa, ja, Oa, ga, Ka, Jc, yZ, wF, ot, CF, lN, dN, nQ, VQ;
5165
- let rh = (VQ = class {
5164
+ var ra, EF, xa, ja, Oa, ga, Ka, Jc, yZ, wF, ot, CF, lN, dN, VQ, QQ;
5165
+ let rh = (QQ = class {
5166
5166
  constructor({
5167
5167
  container: U,
5168
5168
  isPinchingDisabled: l = null,
@@ -5194,7 +5194,7 @@ let rh = (VQ = class {
5194
5194
  signal: c,
5195
5195
  passive: !1
5196
5196
  };
5197
- a.addEventListener("touchmove", h(this, CF, dN).bind(this), s), a.addEventListener("touchend", h(this, CF, nQ).bind(this), s), a.addEventListener("touchcancel", h(this, CF, nQ).bind(this), s), (d = W(this, Oa)) == null || d.call(this);
5197
+ a.addEventListener("touchmove", h(this, CF, dN).bind(this), s), a.addEventListener("touchend", h(this, CF, VQ).bind(this), s), a.addEventListener("touchcancel", h(this, CF, VQ).bind(this), s), (d = W(this, Oa)) == null || d.call(this);
5198
5198
  }
5199
5199
  if (Hd(U), U.touches.length !== 2 || (Z = W(this, xa)) != null && Z.call(this)) {
5200
5200
  R(this, yZ, null);
@@ -5225,7 +5225,7 @@ let rh = (VQ = class {
5225
5225
  touch1X: Q,
5226
5226
  touch1Y: i
5227
5227
  } = s, N = Q - n, b = i - V, m = c - t, M = a - F, J = Math.hypot(m, M) || 1, S = Math.hypot(N, b) || 1;
5228
- if (!W(this, EF) && Math.abs(S - J) <= VQ.MIN_TOUCH_DISTANCE_TO_PINCH)
5228
+ if (!W(this, EF) && Math.abs(S - J) <= QQ.MIN_TOUCH_DISTANCE_TO_PINCH)
5229
5229
  return;
5230
5230
  if (s.touch0X = t, s.touch0Y = F, s.touch1X = c, s.touch1Y = a, U.preventDefault(), !W(this, EF)) {
5231
5231
  R(this, EF, !0);
@@ -5233,14 +5233,14 @@ let rh = (VQ = class {
5233
5233
  }
5234
5234
  const G = [(t + c) / 2, (F + a) / 2];
5235
5235
  (l = W(this, ga)) == null || l.call(this, G, S, J);
5236
- }, nQ = function(U) {
5236
+ }, VQ = function(U) {
5237
5237
  var l;
5238
5238
  W(this, ot).abort(), R(this, ot, null), (l = W(this, Ka)) == null || l.call(this), W(this, yZ) && (U.preventDefault(), R(this, yZ, null), R(this, EF, !1));
5239
- }, VQ);
5240
- var U0, wU, Tl, Ac, Kt, Ds, Z0, hd, t0, fZ, mF, QV, z0, Rd, Es, F0, Nt, ZZ, _c, qc, Ad, NF, ws, Zi, al, ti, iV, Fi, va, xh, UN, QQ, Ha, ci, jh, Oh, gh, Wi, Kh, ai, vh, Hh, Ph, si, OW;
5239
+ }, QQ);
5240
+ var U0, wU, Tl, Ac, Kt, Ds, Z0, hd, t0, fZ, mF, QV, z0, Rd, Es, F0, Nt, ZZ, _c, qc, Ad, NF, ws, ti, al, Fi, iV, ci, va, xh, UN, iQ, Ha, Wi, jh, Oh, gh, ai, Kh, si, vh, Hh, Ph, ni, OW;
5241
5241
  const kl = class $l {
5242
5242
  constructor(l) {
5243
- e(this, al), e(this, U0, null), e(this, wU, null), e(this, Tl, null), e(this, Ac, !1), e(this, Kt, null), e(this, Ds, ""), e(this, Z0, !1), e(this, hd, null), e(this, t0, null), e(this, fZ, null), e(this, mF, null), e(this, QV, ""), e(this, z0, !1), e(this, Rd, null), e(this, Es, !1), e(this, F0, !1), e(this, Nt, !1), e(this, ZZ, null), e(this, _c, 0), e(this, qc, 0), e(this, Ad, null), e(this, NF, null), H(this, "_editToolbar", null), H(this, "_initialOptions", /* @__PURE__ */ Object.create(null)), H(this, "_initialData", null), H(this, "_isVisible", !0), H(this, "_uiManager", null), H(this, "_focusEventsAllowed", !0), e(this, ws, !1), e(this, Zi, $l._zIndex++), this.parent = l.parent, this.id = l.id, this.width = this.height = null, this.pageIndex = l.parent.pageIndex, this.name = l.name, this.div = null, this._uiManager = l.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = l.isCentered, this._structTreeParentId = null;
5243
+ e(this, al), e(this, U0, null), e(this, wU, null), e(this, Tl, null), e(this, Ac, !1), e(this, Kt, null), e(this, Ds, ""), e(this, Z0, !1), e(this, hd, null), e(this, t0, null), e(this, fZ, null), e(this, mF, null), e(this, QV, ""), e(this, z0, !1), e(this, Rd, null), e(this, Es, !1), e(this, F0, !1), e(this, Nt, !1), e(this, ZZ, null), e(this, _c, 0), e(this, qc, 0), e(this, Ad, null), e(this, NF, null), H(this, "_editToolbar", null), H(this, "_initialOptions", /* @__PURE__ */ Object.create(null)), H(this, "_initialData", null), H(this, "_isVisible", !0), H(this, "_uiManager", null), H(this, "_focusEventsAllowed", !0), e(this, ws, !1), e(this, ti, $l._zIndex++), this.parent = l.parent, this.id = l.id, this.width = this.height = null, this.pageIndex = l.parent.pageIndex, this.name = l.name, this.div = null, this._uiManager = l.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = l.isCentered, this._structTreeParentId = null;
5244
5244
  const {
5245
5245
  rotation: d,
5246
5246
  rawDims: {
@@ -5358,7 +5358,7 @@ const kl = class $l {
5358
5358
  this.div.style.zIndex = 0;
5359
5359
  }
5360
5360
  setInForeground() {
5361
- this.div.style.zIndex = W(this, Zi);
5361
+ this.div.style.zIndex = W(this, ti);
5362
5362
  }
5363
5363
  setParent(l) {
5364
5364
  l !== null ? (this.pageIndex = l.pageIndex, this.pageDimensions = l.pageDimensions) : h(this, al, OW).call(this), this.parent = l;
@@ -5387,10 +5387,10 @@ const kl = class $l {
5387
5387
  [Z, t] = this.screenToPageTranslation(Z, t), this.x = (l + Z) / F, this.y = (d + t) / c, this.fixAndSetPosition();
5388
5388
  }
5389
5389
  translate(l, d) {
5390
- h(this, al, ti).call(this, this.parentDimensions, l, d);
5390
+ h(this, al, Fi).call(this, this.parentDimensions, l, d);
5391
5391
  }
5392
5392
  translateInPage(l, d) {
5393
- W(this, Rd) || R(this, Rd, [this.x, this.y, this.width, this.height]), h(this, al, ti).call(this, this.pageDimensions, l, d), this.div.scrollIntoView({
5393
+ W(this, Rd) || R(this, Rd, [this.x, this.y, this.width, this.height]), h(this, al, Fi).call(this, this.pageDimensions, l, d), this.div.scrollIntoView({
5394
5394
  block: "nearest"
5395
5395
  });
5396
5396
  }
@@ -5482,11 +5482,11 @@ const kl = class $l {
5482
5482
  }
5483
5483
  screenToPageTranslation(l, d) {
5484
5484
  var Z;
5485
- return h(Z = $l, iV, Fi).call(Z, l, d, this.parentRotation);
5485
+ return h(Z = $l, iV, ci).call(Z, l, d, this.parentRotation);
5486
5486
  }
5487
5487
  pageTranslationToScreen(l, d) {
5488
5488
  var Z;
5489
- return h(Z = $l, iV, Fi).call(Z, l, d, 360 - this.parentRotation);
5489
+ return h(Z = $l, iV, ci).call(Z, l, d, 360 - this.parentRotation);
5490
5490
  }
5491
5491
  get parentScale() {
5492
5492
  return this._uiManager.viewParameters.realScale;
@@ -5579,7 +5579,7 @@ const kl = class $l {
5579
5579
  }
5580
5580
  render() {
5581
5581
  var l;
5582
- this.div = document.createElement("div"), this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360), this.div.className = this.name, this.div.setAttribute("id", this.id), this.div.tabIndex = W(this, Ac) ? -1 : 0, this._isVisible || this.div.classList.add("hidden"), this.setInForeground(), h(this, al, ai).call(this);
5582
+ this.div = document.createElement("div"), this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360), this.div.className = this.name, this.div.setAttribute("id", this.id), this.div.tabIndex = W(this, Ac) ? -1 : 0, this._isVisible || this.div.classList.add("hidden"), this.setInForeground(), h(this, al, si).call(this);
5583
5583
  const [d, Z] = this.parentDimensions;
5584
5584
  this.parentRotation % 180 !== 0 && (this.div.style.maxWidth = `${(100 * Z / d).toFixed(2)}%`, this.div.style.maxHeight = `${(100 * d / Z).toFixed(2)}%`);
5585
5585
  const [t, F] = this.getInitialTranslation();
@@ -5604,7 +5604,7 @@ const kl = class $l {
5604
5604
  h(this, al, Kh).call(this, l);
5605
5605
  return;
5606
5606
  }
5607
- h(this, al, Wi).call(this, l);
5607
+ h(this, al, ai).call(this, l);
5608
5608
  }
5609
5609
  get isSelected() {
5610
5610
  return this._uiManager.isSelected(this);
@@ -5685,7 +5685,7 @@ const kl = class $l {
5685
5685
  return d < c && t > 0 && l < F && Z > 0;
5686
5686
  }
5687
5687
  rebuild() {
5688
- h(this, al, ai).call(this);
5688
+ h(this, al, si).call(this);
5689
5689
  }
5690
5690
  rotate(l) {
5691
5691
  }
@@ -5779,12 +5779,12 @@ const kl = class $l {
5779
5779
  a.setAttribute("data-l10n-id", $l._l10nResizer[s]);
5780
5780
  }
5781
5781
  }
5782
- h(this, al, si).call(this, 0), R(this, Nt, !0), W(this, hd).firstChild.focus({
5782
+ h(this, al, ni).call(this, 0), R(this, Nt, !0), W(this, hd).firstChild.focus({
5783
5783
  focusVisible: !0
5784
5784
  }), l.preventDefault(), l.stopImmediatePropagation();
5785
5785
  }
5786
5786
  _resizeWithKeyboard(l, d) {
5787
- W(this, Nt) && h(this, al, ci).call(this, W(this, QV), {
5787
+ W(this, Nt) && h(this, al, Wi).call(this, W(this, QV), {
5788
5788
  deltaX: l,
5789
5789
  deltaY: d,
5790
5790
  fromKeyboard: !0
@@ -5897,9 +5897,9 @@ const kl = class $l {
5897
5897
  (d == null ? void 0 : d.nodeName) === "DIV" && d.classList.contains("annotationContent") && d.remove();
5898
5898
  }
5899
5899
  };
5900
- U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /* @__PURE__ */ new WeakMap(), Ac = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Z0 = /* @__PURE__ */ new WeakMap(), hd = /* @__PURE__ */ new WeakMap(), t0 = /* @__PURE__ */ new WeakMap(), fZ = /* @__PURE__ */ new WeakMap(), mF = /* @__PURE__ */ new WeakMap(), QV = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), Rd = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakMap(), F0 = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ZZ = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), qc = /* @__PURE__ */ new WeakMap(), Ad = /* @__PURE__ */ new WeakMap(), NF = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakSet(), ti = function([U, l], d, Z) {
5900
+ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /* @__PURE__ */ new WeakMap(), Ac = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Z0 = /* @__PURE__ */ new WeakMap(), hd = /* @__PURE__ */ new WeakMap(), t0 = /* @__PURE__ */ new WeakMap(), fZ = /* @__PURE__ */ new WeakMap(), mF = /* @__PURE__ */ new WeakMap(), QV = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), Rd = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakMap(), F0 = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ZZ = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), qc = /* @__PURE__ */ new WeakMap(), Ad = /* @__PURE__ */ new WeakMap(), NF = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakSet(), Fi = function([U, l], d, Z) {
5901
5901
  [d, Z] = this.screenToPageTranslation(d, Z), this.x += d / U, this.y += Z / l, this._onTranslating(this.x, this.y), this.fixAndSetPosition();
5902
- }, iV = /* @__PURE__ */ new WeakSet(), Fi = function(U, l, d) {
5902
+ }, iV = /* @__PURE__ */ new WeakSet(), ci = function(U, l, d) {
5903
5903
  switch (d) {
5904
5904
  case 90:
5905
5905
  return [l, -U];
@@ -5951,7 +5951,7 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
5951
5951
  const t = this._isDraggable;
5952
5952
  this._isDraggable = !1, R(this, t0, [l.screenX, l.screenY]);
5953
5953
  const F = new AbortController(), c = this._uiManager.combinedSignal(F);
5954
- this.parent.togglePointerEvents(!1), window.addEventListener("pointermove", h(this, al, ci).bind(this, U), {
5954
+ this.parent.togglePointerEvents(!1), window.addEventListener("pointermove", h(this, al, Wi).bind(this, U), {
5955
5955
  passive: !0,
5956
5956
  capture: !0,
5957
5957
  signal: c
@@ -5977,7 +5977,7 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
5977
5977
  }), window.addEventListener("blur", n, {
5978
5978
  signal: c
5979
5979
  });
5980
- }, QQ = function(U, l, d, Z) {
5980
+ }, iQ = function(U, l, d, Z) {
5981
5981
  this.width = d, this.height = Z, this.x = U, this.y = l;
5982
5982
  const [t, F] = this.parentDimensions;
5983
5983
  this.setDims(t * d, F * Z), this.fixAndSetPosition(), this._onResized();
@@ -5993,11 +5993,11 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
5993
5993
  R(this, fZ, null);
5994
5994
  const t = this.x, F = this.y, c = this.width, a = this.height;
5995
5995
  t === U && F === l && c === d && a === Z || this.addCommands({
5996
- cmd: h(this, al, QQ).bind(this, t, F, c, a),
5997
- undo: h(this, al, QQ).bind(this, U, l, d, Z),
5996
+ cmd: h(this, al, iQ).bind(this, t, F, c, a),
5997
+ undo: h(this, al, iQ).bind(this, U, l, d, Z),
5998
5998
  mustExec: !0
5999
5999
  });
6000
- }, ci = function(U, l) {
6000
+ }, Wi = function(U, l) {
6001
6001
  const [d, Z] = this.parentDimensions, t = this.x, F = this.y, c = this.width, a = this.height, s = kl.MIN_SIZE / d, n = kl.MIN_SIZE / Z, V = h(this, al, va).call(this, this.rotation), Q = (I, L) => [V[0] * I + V[2] * L, V[1] * I + V[3] * L], i = h(this, al, va).call(this, 360 - this.rotation), N = (I, L) => [i[0] * I + i[2] * L, i[1] * I + i[3] * L];
6002
6002
  let b, m, M = !1, J = !1;
6003
6003
  switch (U) {
@@ -6073,7 +6073,7 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
6073
6073
  }, gh = function() {
6074
6074
  var U;
6075
6075
  (U = W(this, Tl)) == null || U.toggle(!0), this.parent.togglePointerEvents(!0), h(this, al, Ha).call(this);
6076
- }, Wi = function(U) {
6076
+ }, ai = function(U) {
6077
6077
  const {
6078
6078
  isMac: l
6079
6079
  } = ud.platform;
@@ -6089,7 +6089,7 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
6089
6089
  passive: !1,
6090
6090
  signal: t
6091
6091
  }, c = (s) => {
6092
- Z.abort(), R(this, Kt, null), R(this, z0, !1), this._uiManager.endDragSession() || h(this, al, Wi).call(this, s), d && this._onStopDragging();
6092
+ Z.abort(), R(this, Kt, null), R(this, z0, !1), this._uiManager.endDragSession() || h(this, al, ai).call(this, s), d && this._onStopDragging();
6093
6093
  };
6094
6094
  l && (R(this, _c, U.clientX), R(this, qc, U.clientY), R(this, Kt, U.pointerId), R(this, Ds, U.pointerType), window.addEventListener("pointermove", (s) => {
6095
6095
  d || (d = !0, this._onStartDragging());
@@ -6119,7 +6119,7 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
6119
6119
  }), window.addEventListener("blur", a, {
6120
6120
  signal: t
6121
6121
  });
6122
- }, ai = function() {
6122
+ }, si = function() {
6123
6123
  if (W(this, mF) || !this.div)
6124
6124
  return;
6125
6125
  R(this, mF, new AbortController());
@@ -6136,12 +6136,12 @@ U0 = /* @__PURE__ */ new WeakMap(), wU = /* @__PURE__ */ new WeakMap(), Tl = /*
6136
6136
  W(this, Nt) && ((l = U.relatedTarget) == null ? void 0 : l.parentNode) !== W(this, hd) && h(this, al, OW).call(this);
6137
6137
  }, Ph = function(U) {
6138
6138
  R(this, QV, W(this, Nt) ? U : "");
6139
- }, si = function(U) {
6139
+ }, ni = function(U) {
6140
6140
  if (W(this, wU))
6141
6141
  for (const l of W(this, wU))
6142
6142
  l.tabIndex = U;
6143
6143
  }, OW = function() {
6144
- R(this, Nt, !1), h(this, al, si).call(this, -1), h(this, al, Ha).call(this);
6144
+ R(this, Nt, !1), h(this, al, ni).call(this, -1), h(this, al, Ha).call(this);
6145
6145
  }, e(kl, iV), H(kl, "_l10n", null), H(kl, "_l10nResizer", null), H(kl, "_borderLineWidth", -1), H(kl, "_colorManager", new jm()), H(kl, "_zIndex", 1), H(kl, "_telemetryTimeout", 1e3);
6146
6146
  let Il = kl;
6147
6147
  class Om extends Il {
@@ -6189,15 +6189,15 @@ class fh {
6189
6189
  return l ^= d >>> 1, l = l * 3981806797 & fd | l * 36045 & YU, d = d * 4283543511 & fd | ((d << 16 | l >>> 16) * 2950163797 & fd) >>> 16, l ^= d >>> 1, l = l * 444984403 & fd | l * 60499 & YU, d = d * 3301882366 & fd | ((d << 16 | l >>> 16) * 3120437893 & fd) >>> 16, l ^= d >>> 1, (l >>> 0).toString(16).padStart(8, "0") + (d >>> 0).toString(16).padStart(8, "0");
6190
6190
  }
6191
6191
  }
6192
- const ni = Object.freeze({
6192
+ const Vi = Object.freeze({
6193
6193
  map: null,
6194
6194
  hash: "",
6195
6195
  transfer: void 0
6196
6196
  });
6197
- var A0, c0, ld, Vi, Ah;
6198
- class XR {
6197
+ var A0, c0, ld, Qi, Ah;
6198
+ class pR {
6199
6199
  constructor() {
6200
- e(this, Vi), e(this, A0, !1), e(this, c0, null), e(this, ld, /* @__PURE__ */ new Map()), this.onSetModified = null, this.onResetModified = null, this.onAnnotationEditor = null;
6200
+ e(this, Qi), e(this, A0, !1), e(this, c0, null), e(this, ld, /* @__PURE__ */ new Map()), this.onSetModified = null, this.onResetModified = null, this.onAnnotationEditor = null;
6201
6201
  }
6202
6202
  getValue(l, d) {
6203
6203
  const Z = W(this, ld).get(l);
@@ -6222,13 +6222,13 @@ class XR {
6222
6222
  Z[F] !== c && (t = !0, Z[F] = c);
6223
6223
  else
6224
6224
  t = !0, W(this, ld).set(l, d);
6225
- t && h(this, Vi, Ah).call(this), d instanceof Il && typeof this.onAnnotationEditor == "function" && this.onAnnotationEditor(d.constructor._type);
6225
+ t && h(this, Qi, Ah).call(this), d instanceof Il && typeof this.onAnnotationEditor == "function" && this.onAnnotationEditor(d.constructor._type);
6226
6226
  }
6227
6227
  has(l) {
6228
6228
  return W(this, ld).has(l);
6229
6229
  }
6230
6230
  getAll() {
6231
- return W(this, ld).size > 0 ? mR(W(this, ld)) : null;
6231
+ return W(this, ld).size > 0 ? MR(W(this, ld)) : null;
6232
6232
  }
6233
6233
  setAll(l) {
6234
6234
  for (const [d, Z] of Object.entries(l))
@@ -6245,7 +6245,7 @@ class XR {
6245
6245
  }
6246
6246
  get serializable() {
6247
6247
  if (W(this, ld).size === 0)
6248
- return ni;
6248
+ return Vi;
6249
6249
  const l = /* @__PURE__ */ new Map(), d = new fh(), Z = [], t = /* @__PURE__ */ Object.create(null);
6250
6250
  let F = !1;
6251
6251
  for (const [c, a] of W(this, ld)) {
@@ -6259,7 +6259,7 @@ class XR {
6259
6259
  map: l,
6260
6260
  hash: d.hexdigest(),
6261
6261
  transfer: Z
6262
- } : ni;
6262
+ } : Vi;
6263
6263
  }
6264
6264
  get editorStats() {
6265
6265
  let l = null;
@@ -6303,11 +6303,11 @@ class XR {
6303
6303
  });
6304
6304
  }
6305
6305
  }
6306
- A0 = /* @__PURE__ */ new WeakMap(), c0 = /* @__PURE__ */ new WeakMap(), ld = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakSet(), Ah = function() {
6306
+ A0 = /* @__PURE__ */ new WeakMap(), c0 = /* @__PURE__ */ new WeakMap(), ld = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakSet(), Ah = function() {
6307
6307
  W(this, A0) || (R(this, A0, !0), typeof this.onSetModified == "function" && this.onSetModified());
6308
6308
  };
6309
6309
  var Cs;
6310
- class _h extends XR {
6310
+ class _h extends pR {
6311
6311
  constructor(l) {
6312
6312
  super(), e(this, Cs);
6313
6313
  const {
@@ -6557,13 +6557,13 @@ const Pa = {
6557
6557
  function tN() {
6558
6558
  }
6559
6559
  function kd(U) {
6560
- if (U instanceof mt || U instanceof qQ || U instanceof Ma || U instanceof ER || U instanceof aV || U instanceof _V)
6560
+ if (U instanceof mt || U instanceof $Q || U instanceof Ma || U instanceof ER || U instanceof aV || U instanceof qV)
6561
6561
  return U;
6562
6562
  switch (U instanceof Error || typeof U == "object" && U !== null || el('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), U.name) {
6563
6563
  case "AbortException":
6564
6564
  return new mt(U.message);
6565
6565
  case "InvalidPDFException":
6566
- return new qQ(U.message);
6566
+ return new $Q(U.message);
6567
6567
  case "MissingPDFException":
6568
6568
  return new Ma(U.message);
6569
6569
  case "PasswordException":
@@ -6571,9 +6571,9 @@ function kd(U) {
6571
6571
  case "UnexpectedResponseException":
6572
6572
  return new aV(U.message, U.status);
6573
6573
  case "UnknownErrorException":
6574
- return new _V(U.message, U.details);
6574
+ return new qV(U.message, U.details);
6575
6575
  }
6576
- return new _V(U.message, U.toString());
6576
+ return new qV(U.message, U.toString());
6577
6577
  }
6578
6578
  var lW, AZ, qh, FN, cN, fa;
6579
6579
  class dW {
@@ -6949,7 +6949,7 @@ class Ub {
6949
6949
  destroy(l = !1) {
6950
6950
  }
6951
6951
  }
6952
- var W0, _0, Ft, rZ, Td, MF, a0, K, Qd, UW, L0, xs, s0, Zb, Qi, n0, Gc, ZW, ii, tW;
6952
+ var W0, _0, Ft, rZ, Td, MF, a0, K, Qd, UW, L0, xs, s0, Zb, ii, n0, Gc, ZW, Ri, tW;
6953
6953
  class Hm extends Ub {
6954
6954
  constructor({
6955
6955
  docId: l,
@@ -6992,7 +6992,7 @@ class Hm extends Ub {
6992
6992
  n[b] = m <= 0.03928 ? m / 12.92 : ((m + 0.055) / 1.055) ** 2.4;
6993
6993
  }
6994
6994
  const V = n.join(","), Q = `g_${W(this, rZ)}_hcm_filter`, i = c.filter = h(this, K, n0).call(this, Q);
6995
- h(this, K, ZW).call(this, V, V, V, i), h(this, K, Qi).call(this, i);
6995
+ h(this, K, ZW).call(this, V, V, V, i), h(this, K, ii).call(this, i);
6996
6996
  const N = (b, m) => {
6997
6997
  const M = a[b] / 255, J = s[b] / 255, S = new Array(m + 1);
6998
6998
  for (let G = 0; G <= m; G++)
@@ -7011,7 +7011,7 @@ class Hm extends Ub {
7011
7011
  const F = `g_${W(this, rZ)}_alpha_map_${pd(this, a0)._++}`, c = h(this, K, s0).call(this, F);
7012
7012
  W(this, K, Qd).set(l, c), W(this, K, Qd).set(t, c);
7013
7013
  const a = h(this, K, n0).call(this, F);
7014
- return h(this, K, ii).call(this, Z, a), c;
7014
+ return h(this, K, Ri).call(this, Z, a), c;
7015
7015
  }
7016
7016
  addLuminosityFilter(l) {
7017
7017
  let d = W(this, K, Qd).get(l || "luminosity");
@@ -7023,7 +7023,7 @@ class Hm extends Ub {
7023
7023
  const F = `g_${W(this, rZ)}_luminosity_map_${pd(this, a0)._++}`, c = h(this, K, s0).call(this, F);
7024
7024
  W(this, K, Qd).set(l, c), W(this, K, Qd).set(t, c);
7025
7025
  const a = h(this, K, n0).call(this, F);
7026
- return h(this, K, Zb).call(this, a), l && h(this, K, ii).call(this, Z, a), c;
7026
+ return h(this, K, Zb).call(this, a), l && h(this, K, Ri).call(this, Z, a), c;
7027
7027
  }
7028
7028
  addHighlightHCMFilter(l, d, Z, t, F) {
7029
7029
  var c;
@@ -7051,7 +7051,7 @@ class Hm extends Ub {
7051
7051
  p[B] = p[X - 1];
7052
7052
  return p.join(",");
7053
7053
  }, M = `g_${W(this, rZ)}_hcm_${l}_filter`, J = s.filter = h(this, K, n0).call(this, M);
7054
- return h(this, K, Qi).call(this, J), h(this, K, ZW).call(this, m(N[0], b[0], 5), m(N[1], b[1], 5), m(N[2], b[2], 5), J), s.url = h(this, K, s0).call(this, M), s.url;
7054
+ return h(this, K, ii).call(this, J), h(this, K, ZW).call(this, m(N[0], b[0], 5), m(N[1], b[1], 5), m(N[2], b[2], 5), J), s.url = h(this, K, s0).call(this, M), s.url;
7055
7055
  }
7056
7056
  destroy(l = !1) {
7057
7057
  var d, Z, t, F;
@@ -7094,7 +7094,7 @@ W0 = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), Ft = /*
7094
7094
  }, Zb = function(U) {
7095
7095
  const l = W(this, Td).createElementNS(dZ, "feColorMatrix");
7096
7096
  l.setAttribute("type", "matrix"), l.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"), U.append(l);
7097
- }, Qi = function(U) {
7097
+ }, ii = function(U) {
7098
7098
  const l = W(this, Td).createElementNS(dZ, "feColorMatrix");
7099
7099
  l.setAttribute("type", "matrix"), l.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"), U.append(l);
7100
7100
  }, n0 = function(U) {
@@ -7106,11 +7106,11 @@ W0 = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), Ft = /*
7106
7106
  }, ZW = function(U, l, d, Z) {
7107
7107
  const t = W(this, Td).createElementNS(dZ, "feComponentTransfer");
7108
7108
  Z.append(t), h(this, K, Gc).call(this, t, "feFuncR", U), h(this, K, Gc).call(this, t, "feFuncG", l), h(this, K, Gc).call(this, t, "feFuncB", d);
7109
- }, ii = function(U, l) {
7109
+ }, Ri = function(U, l) {
7110
7110
  const d = W(this, Td).createElementNS(dZ, "feComponentTransfer");
7111
7111
  l.append(d), h(this, K, Gc).call(this, d, "feFuncA", U);
7112
7112
  }, tW = function(U) {
7113
- return W(this, K, L0).style.color = U, SR(getComputedStyle(W(this, K, L0)).getPropertyValue("color"));
7113
+ return W(this, K, L0).style.color = U, TR(getComputedStyle(W(this, K, L0)).getPropertyValue("color"));
7114
7114
  };
7115
7115
  class tb {
7116
7116
  constructor({
@@ -7180,18 +7180,18 @@ const ed = {
7180
7180
  STROKE: "Stroke",
7181
7181
  SHADING: "Shading"
7182
7182
  };
7183
- function Ri(U, l) {
7183
+ function Ni(U, l) {
7184
7184
  if (!l)
7185
7185
  return;
7186
7186
  const d = l[2] - l[0], Z = l[3] - l[1], t = new Path2D();
7187
7187
  t.rect(l[0], l[1], d, Z), U.clip(t);
7188
7188
  }
7189
- class pR {
7189
+ class uR {
7190
7190
  getPattern() {
7191
7191
  el("Abstract method `getPattern` called.");
7192
7192
  }
7193
7193
  }
7194
- class qm extends pR {
7194
+ class qm extends uR {
7195
7195
  constructor(l) {
7196
7196
  super(), this._type = l[1], this._bbox = l[2], this._colorStops = l[3], this._p0 = l[4], this._p1 = l[5], this._r0 = l[6], this._r1 = l[7], this.matrix = null;
7197
7197
  }
@@ -7206,15 +7206,15 @@ class qm extends pR {
7206
7206
  let F;
7207
7207
  if (t === ed.STROKE || t === ed.FILL) {
7208
7208
  const c = d.current.getClippedPathBoundingBox(t, Sl(l)) || [0, 0, 0, 0], a = Math.ceil(c[2] - c[0]) || 1, s = Math.ceil(c[3] - c[1]) || 1, n = d.cachedCanvases.getCanvas("pattern", a, s), V = n.context;
7209
- V.clearRect(0, 0, V.canvas.width, V.canvas.height), V.beginPath(), V.rect(0, 0, V.canvas.width, V.canvas.height), V.translate(-c[0], -c[1]), Z = O.transform(Z, [1, 0, 0, 1, c[0], c[1]]), V.transform(...d.baseTransform), this.matrix && V.transform(...this.matrix), Ri(V, this._bbox), V.fillStyle = this._createGradient(V), V.fill(), F = l.createPattern(n.canvas, "no-repeat");
7209
+ V.clearRect(0, 0, V.canvas.width, V.canvas.height), V.beginPath(), V.rect(0, 0, V.canvas.width, V.canvas.height), V.translate(-c[0], -c[1]), Z = O.transform(Z, [1, 0, 0, 1, c[0], c[1]]), V.transform(...d.baseTransform), this.matrix && V.transform(...this.matrix), Ni(V, this._bbox), V.fillStyle = this._createGradient(V), V.fill(), F = l.createPattern(n.canvas, "no-repeat");
7210
7210
  const Q = new DOMMatrix(Z);
7211
7211
  F.setTransform(Q);
7212
7212
  } else
7213
- Ri(l, this._bbox), F = this._createGradient(l);
7213
+ Ni(l, this._bbox), F = this._createGradient(l);
7214
7214
  return F;
7215
7215
  }
7216
7216
  }
7217
- function iQ(U, l, d, Z, t, F, c, a) {
7217
+ function RQ(U, l, d, Z, t, F, c, a) {
7218
7218
  const s = l.coords, n = l.colors, V = U.data, Q = U.width * 4;
7219
7219
  let i;
7220
7220
  s[d + 1] > s[Z + 1] && (i = d, d = Z, Z = i, i = F, F = c, c = i), s[Z + 1] > s[t + 1] && (i = Z, Z = t, t = i, i = c, c = a, a = i), s[d + 1] > s[Z + 1] && (i = d, d = Z, Z = i, i = F, F = c, c = i);
@@ -7248,18 +7248,18 @@ function $m(U, l, d) {
7248
7248
  for (F = 0; F < s; F++) {
7249
7249
  let V = F * a;
7250
7250
  for (let Q = 0; Q < n; Q++, V++)
7251
- iQ(U, d, Z[V], Z[V + 1], Z[V + a], t[V], t[V + 1], t[V + a]), iQ(U, d, Z[V + a + 1], Z[V + 1], Z[V + a], t[V + a + 1], t[V + 1], t[V + a]);
7251
+ RQ(U, d, Z[V], Z[V + 1], Z[V + a], t[V], t[V + 1], t[V + a]), RQ(U, d, Z[V + a + 1], Z[V + 1], Z[V + a], t[V + a + 1], t[V + 1], t[V + a]);
7252
7252
  }
7253
7253
  break;
7254
7254
  case "triangles":
7255
7255
  for (F = 0, c = Z.length; F < c; F += 3)
7256
- iQ(U, d, Z[F], Z[F + 1], Z[F + 2], t[F], t[F + 1], t[F + 2]);
7256
+ RQ(U, d, Z[F], Z[F + 1], Z[F + 2], t[F], t[F + 1], t[F + 2]);
7257
7257
  break;
7258
7258
  default:
7259
7259
  throw new Error("illegal figure");
7260
7260
  }
7261
7261
  }
7262
- class l2 extends pR {
7262
+ class l2 extends uR {
7263
7263
  constructor(l) {
7264
7264
  super(), this._coords = l[2], this._colors = l[3], this._figures = l[4], this._bounds = l[5], this._bbox = l[7], this._background = l[8], this.matrix = null;
7265
7265
  }
@@ -7288,7 +7288,7 @@ class l2 extends pR {
7288
7288
  };
7289
7289
  }
7290
7290
  getPattern(l, d, Z, t) {
7291
- Ri(l, this._bbox);
7291
+ Ni(l, this._bbox);
7292
7292
  let F;
7293
7293
  if (t === ed.SHADING)
7294
7294
  F = O.singularValueDecompose2dScale(Sl(l));
@@ -7300,7 +7300,7 @@ class l2 extends pR {
7300
7300
  return t !== ed.SHADING && (l.setTransform(...d.baseTransform), this.matrix && l.transform(...this.matrix)), l.translate(c.offsetX, c.offsetY), l.scale(c.scaleX, c.scaleY), l.createPattern(c.canvas, "no-repeat");
7301
7301
  }
7302
7302
  }
7303
- class d2 extends pR {
7303
+ class d2 extends uR {
7304
7304
  getPattern() {
7305
7305
  return "hotpink";
7306
7306
  }
@@ -7560,7 +7560,7 @@ function a2(U) {
7560
7560
  }
7561
7561
  class QN {
7562
7562
  constructor(l, d) {
7563
- this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = Bh, this.textMatrixScale = 1, this.fontMatrix = _Q, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = Vd.FILL, this.textRise = 0, this.fillColor = "#000000", this.strokeColor = "#000000", this.patternFill = !1, this.patternStroke = !1, this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.activeSMask = null, this.transferMaps = "none", this.startNewPathAndClipBox([0, 0, l, d]);
7563
+ this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = Bh, this.textMatrixScale = 1, this.fontMatrix = qQ, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = Vd.FILL, this.textRise = 0, this.fillColor = "#000000", this.strokeColor = "#000000", this.patternFill = !1, this.patternStroke = !1, this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.activeSMask = null, this.transferMaps = "none", this.startNewPathAndClipBox([0, 0, l, d]);
7564
7564
  }
7565
7565
  clone() {
7566
7566
  const l = Object.create(this);
@@ -7690,7 +7690,7 @@ function NN(U, l) {
7690
7690
  return d[0] <= Z && d[1] <= Z;
7691
7691
  }
7692
7692
  const s2 = ["butt", "round", "square"], n2 = ["miter", "round", "bevel"], V2 = {}, hN = {};
7693
- var xZ, Ni, hi, bi;
7693
+ var xZ, hi, bi, ei;
7694
7694
  const Q2 = class sb {
7695
7695
  constructor(l, d, Z, t, F, {
7696
7696
  optionalContentConfig: c,
@@ -7745,13 +7745,13 @@ const Q2 = class sb {
7745
7745
  }
7746
7746
  }
7747
7747
  endDrawing() {
7748
- h(this, xZ, Ni).call(this), this.cachedCanvases.clear(), this.cachedPatterns.clear();
7748
+ h(this, xZ, hi).call(this), this.cachedCanvases.clear(), this.cachedPatterns.clear();
7749
7749
  for (const l of this._cachedBitmapsMap.values()) {
7750
7750
  for (const d of l.values())
7751
7751
  typeof HTMLCanvasElement < "u" && d instanceof HTMLCanvasElement && (d.width = d.height = 0);
7752
7752
  l.clear();
7753
7753
  }
7754
- this._cachedBitmapsMap.clear(), h(this, xZ, hi).call(this);
7754
+ this._cachedBitmapsMap.clear(), h(this, xZ, bi).call(this);
7755
7755
  }
7756
7756
  _scaleImage(l, d) {
7757
7757
  const Z = l.width ?? l.displayWidth, t = l.height ?? l.displayHeight;
@@ -8031,7 +8031,7 @@ const Q2 = class sb {
8031
8031
  const t = this.commonObjs.get(l), F = this.current;
8032
8032
  if (!t)
8033
8033
  throw new Error(`Can't find font for ${l}`);
8034
- if (F.fontMatrix = t.fontMatrix || _Q, (F.fontMatrix[0] === 0 || F.fontMatrix[3] === 0) && q("Invalid font matrix for font " + l), d < 0 ? (d = -d, F.fontDirection = -1) : F.fontDirection = 1, this.current.font = t, this.current.fontSize = d, t.isType3Font)
8034
+ if (F.fontMatrix = t.fontMatrix || qQ, (F.fontMatrix[0] === 0 || F.fontMatrix[3] === 0) && q("Invalid font matrix for font " + l), d < 0 ? (d = -d, F.fontDirection = -1) : F.fontDirection = 1, this.current.font = t, this.current.fontSize = d, t.isType3Font)
8035
8035
  return;
8036
8036
  const c = t.loadedName || "sans-serif", a = ((Z = t.systemFontInfo) == null ? void 0 : Z.css) || `"${c}", ${t.fallbackName}`;
8037
8037
  let s = "normal";
@@ -8065,13 +8065,13 @@ const Q2 = class sb {
8065
8065
  if (c.save(), c.translate(d, Z), c.scale(V, -V), Q === Vd.FILL || Q === Vd.FILL_STROKE)
8066
8066
  if (t) {
8067
8067
  const M = c.getTransform();
8068
- c.setTransform(...t), c.fill(h(this, xZ, bi).call(this, m, M, t));
8068
+ c.setTransform(...t), c.fill(h(this, xZ, ei).call(this, m, M, t));
8069
8069
  } else
8070
8070
  c.fill(m);
8071
8071
  if (Q === Vd.STROKE || Q === Vd.FILL_STROKE)
8072
8072
  if (F) {
8073
8073
  const M = c.getTransform();
8074
- c.setTransform(...F), c.stroke(h(this, xZ, bi).call(this, m, M, F));
8074
+ c.setTransform(...F), c.stroke(h(this, xZ, ei).call(this, m, M, F));
8075
8075
  } else
8076
8076
  c.lineWidth /= V, c.stroke(m);
8077
8077
  c.restore();
@@ -8170,7 +8170,7 @@ const Q2 = class sb {
8170
8170
  i ? d.y -= p : d.x += p * V, F.restore(), this.compose();
8171
8171
  }
8172
8172
  showType3Text(l) {
8173
- const d = this.ctx, Z = this.current, t = Z.font, F = Z.fontSize, c = Z.fontDirection, a = t.vertical ? 1 : -1, s = Z.charSpacing, n = Z.wordSpacing, V = Z.textHScale * c, Q = Z.fontMatrix || _Q, i = l.length, N = Z.textRenderingMode === Vd.INVISIBLE;
8173
+ const d = this.ctx, Z = this.current, t = Z.font, F = Z.fontSize, c = Z.fontDirection, a = t.vertical ? 1 : -1, s = Z.charSpacing, n = Z.wordSpacing, V = Z.textHScale * c, Q = Z.fontMatrix || qQ, i = l.length, N = Z.textRenderingMode === Vd.INVISIBLE;
8174
8174
  let b, m, M, J;
8175
8175
  if (!(N || F === 0)) {
8176
8176
  for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, d.save(), d.transform(...Z.textMatrix), d.translate(Z.x, Z.y), d.scale(V, c), b = 0; b < i; ++b) {
@@ -8306,7 +8306,7 @@ const Q2 = class sb {
8306
8306
  }
8307
8307
  }
8308
8308
  beginAnnotation(l, d, Z, t, F) {
8309
- if (h(this, xZ, Ni).call(this), _a(this.ctx), this.ctx.save(), this.save(), this.baseTransform && this.ctx.setTransform(...this.baseTransform), d) {
8309
+ if (h(this, xZ, hi).call(this), _a(this.ctx), this.ctx.save(), this.save(), this.baseTransform && this.ctx.setTransform(...this.baseTransform), d) {
8310
8310
  const c = d[2] - d[0], a = d[3] - d[1];
8311
8311
  if (F && this.annotationCanvasMap) {
8312
8312
  Z = Z.slice(), Z[4] -= d[0], Z[5] -= d[1], d = d.slice(), d[0] = d[1] = 0, d[2] = c, d[3] = a;
@@ -8325,7 +8325,7 @@ const Q2 = class sb {
8325
8325
  this.current = new QN(this.ctx.canvas.width, this.ctx.canvas.height), this.transform(...Z), this.transform(...t);
8326
8326
  }
8327
8327
  endAnnotation() {
8328
- this.annotationCanvas && (this.ctx.restore(), h(this, xZ, hi).call(this), this.ctx = this.annotationCanvas.savedCtx, delete this.annotationCanvas.savedCtx, delete this.annotationCanvas);
8328
+ this.annotationCanvas && (this.ctx.restore(), h(this, xZ, bi).call(this), this.ctx = this.annotationCanvas.savedCtx, delete this.annotationCanvas.savedCtx, delete this.annotationCanvas);
8329
8329
  }
8330
8330
  paintImageMaskXObject(l) {
8331
8331
  if (!this.contentVisible)
@@ -8560,11 +8560,11 @@ const Q2 = class sb {
8560
8560
  return !0;
8561
8561
  }
8562
8562
  };
8563
- xZ = /* @__PURE__ */ new WeakSet(), Ni = function() {
8563
+ xZ = /* @__PURE__ */ new WeakSet(), hi = function() {
8564
8564
  for (; this.stateStack.length || this.inSMaskMode; )
8565
8565
  this.restore();
8566
8566
  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.transparentCanvas = null);
8567
- }, hi = function() {
8567
+ }, bi = function() {
8568
8568
  if (this.pageColors) {
8569
8569
  const U = this.filterFactory.addHCMFilter(this.pageColors.foreground, this.pageColors.background);
8570
8570
  if (U !== "none") {
@@ -8572,7 +8572,7 @@ xZ = /* @__PURE__ */ new WeakSet(), Ni = function() {
8572
8572
  this.ctx.filter = U, this.ctx.drawImage(this.ctx.canvas, 0, 0), this.ctx.filter = l;
8573
8573
  }
8574
8574
  }
8575
- }, bi = function(U, l, d) {
8575
+ }, ei = function(U, l, d) {
8576
8576
  const Z = new Path2D();
8577
8577
  return Z.addPath(U, new DOMMatrix(d).invertSelf().multiplySelf(l)), Z;
8578
8578
  };
@@ -8613,7 +8613,7 @@ class i2 {
8613
8613
  return W(this, V0).get(l) ?? null;
8614
8614
  }
8615
8615
  getAll() {
8616
- return mR(W(this, V0));
8616
+ return MR(W(this, V0));
8617
8617
  }
8618
8618
  has(l) {
8619
8619
  return W(this, V0).has(l);
@@ -8647,7 +8647,7 @@ class R2 {
8647
8647
  }
8648
8648
  }
8649
8649
  gs = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), FW = /* @__PURE__ */ new WeakMap();
8650
- var vt, Nl, cW, WW, RV, ei;
8650
+ var vt, Nl, cW, WW, RV, mi;
8651
8651
  class N2 {
8652
8652
  constructor(l, d = gd.DISPLAY) {
8653
8653
  if (e(this, RV), e(this, vt, null), e(this, Nl, /* @__PURE__ */ new Map()), e(this, cW, null), e(this, WW, null), this.renderingIntent = d, this.name = null, this.creator = null, l !== null) {
@@ -8673,7 +8673,7 @@ class N2 {
8673
8673
  return W(this, Nl).has(l.id) ? W(this, Nl).get(l.id).visible : (q(`Optional content group not found: ${l.id}`), !0);
8674
8674
  if (l.type === "OCMD") {
8675
8675
  if (l.expression)
8676
- return h(this, RV, ei).call(this, l.expression);
8676
+ return h(this, RV, mi).call(this, l.expression);
8677
8677
  if (!l.policy || l.policy === "AnyOn") {
8678
8678
  for (const d of l.ids) {
8679
8679
  if (!W(this, Nl).has(d))
@@ -8760,7 +8760,7 @@ class N2 {
8760
8760
  return W(this, Nl).size ? W(this, WW) ? W(this, WW).slice() : [...W(this, Nl).keys()] : null;
8761
8761
  }
8762
8762
  getGroups() {
8763
- return W(this, Nl).size > 0 ? mR(W(this, Nl)) : null;
8763
+ return W(this, Nl).size > 0 ? MR(W(this, Nl)) : null;
8764
8764
  }
8765
8765
  getGroup(l) {
8766
8766
  return W(this, Nl).get(l) || null;
@@ -8774,7 +8774,7 @@ class N2 {
8774
8774
  return R(this, vt, l.hexdigest());
8775
8775
  }
8776
8776
  }
8777
- vt = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap(), cW = /* @__PURE__ */ new WeakMap(), WW = /* @__PURE__ */ new WeakMap(), RV = /* @__PURE__ */ new WeakSet(), ei = function(U) {
8777
+ vt = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap(), cW = /* @__PURE__ */ new WeakMap(), WW = /* @__PURE__ */ new WeakMap(), RV = /* @__PURE__ */ new WeakSet(), mi = function(U) {
8778
8778
  const l = U.length;
8779
8779
  if (l < 2)
8780
8780
  return !0;
@@ -8783,7 +8783,7 @@ vt = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap(), cW = /*
8783
8783
  const t = U[Z];
8784
8784
  let F;
8785
8785
  if (Array.isArray(t))
8786
- F = h(this, RV, ei).call(this, t);
8786
+ F = h(this, RV, mi).call(this, t);
8787
8787
  else if (W(this, Nl).has(t))
8788
8788
  F = W(this, Nl).get(t).visible;
8789
8789
  else
@@ -8895,7 +8895,7 @@ class h2 {
8895
8895
  }
8896
8896
  class b2 {
8897
8897
  constructor(l, d, Z = !1, t = null) {
8898
- this._stream = l, this._done = Z || !1, this._filename = GR(t) ? t : null, this._queuedChunks = d || [], this._loaded = 0;
8898
+ this._stream = l, this._done = Z || !1, this._filename = SR(t) ? t : null, this._queuedChunks = d || [], this._loaded = 0;
8899
8899
  for (const F of this._queuedChunks)
8900
8900
  this._loaded += F.byteLength;
8901
8901
  this._requests = [], this._headersReady = Promise.resolve(), l._fullRequestReader = this, this.onProgress = null;
@@ -9127,7 +9127,7 @@ function Qb(U) {
9127
9127
  d = decodeURIComponent(d);
9128
9128
  } catch {
9129
9129
  }
9130
- if (GR(d))
9130
+ if (SR(d))
9131
9131
  return d;
9132
9132
  }
9133
9133
  return null;
@@ -9277,7 +9277,7 @@ class J2 {
9277
9277
  (d = this._reader) == null || d.cancel(l), this._abortController.abort();
9278
9278
  }
9279
9279
  }
9280
- const RQ = 200, NQ = 206;
9280
+ const NQ = 200, hQ = 206;
9281
9281
  function G2(U) {
9282
9282
  const l = U.response;
9283
9283
  return typeof l != "string" ? l : xV(l).buffer;
@@ -9297,7 +9297,7 @@ class S2 {
9297
9297
  d.open("GET", this.url), d.withCredentials = this.withCredentials;
9298
9298
  for (const [F, c] of this.headers)
9299
9299
  d.setRequestHeader(F, c);
9300
- return this.isHttp && "begin" in l && "end" in l ? (d.setRequestHeader("Range", `bytes=${l.begin}-${l.end - 1}`), t.expectedStatus = NQ) : t.expectedStatus = RQ, d.responseType = "arraybuffer", Cl(l.onError, "Expected `onError` callback to be provided."), d.onerror = () => {
9300
+ return this.isHttp && "begin" in l && "end" in l ? (d.setRequestHeader("Range", `bytes=${l.begin}-${l.end - 1}`), t.expectedStatus = hQ) : t.expectedStatus = NQ, d.responseType = "arraybuffer", Cl(l.onError, "Expected `onError` callback to be provided."), d.onerror = () => {
9301
9301
  l.onError(d.status);
9302
9302
  }, d.onreadystatechange = this.onStateChange.bind(this, Z), d.onprogress = this.onProgress.bind(this, Z), t.onHeadersReceived = l.onHeadersReceived, t.onDone = l.onDone, t.onError = l.onError, t.onProgress = l.onProgress, d.send(null), Z;
9303
9303
  }
@@ -9317,13 +9317,13 @@ class S2 {
9317
9317
  Z.onError(t.status);
9318
9318
  return;
9319
9319
  }
9320
- const F = t.status || RQ;
9321
- if (!(F === RQ && Z.expectedStatus === NQ) && F !== Z.expectedStatus) {
9320
+ const F = t.status || NQ;
9321
+ if (!(F === NQ && Z.expectedStatus === hQ) && F !== Z.expectedStatus) {
9322
9322
  Z.onError(t.status);
9323
9323
  return;
9324
9324
  }
9325
9325
  const c = G2(t);
9326
- if (F === NQ) {
9326
+ if (F === hQ) {
9327
9327
  const a = t.getResponseHeader("Content-Range"), s = /bytes (\d+)-(\d+)\/(\d+)/.exec(a);
9328
9328
  s ? Z.onDone({
9329
9329
  begin: parseInt(s[1], 10),
@@ -9684,8 +9684,8 @@ class y2 {
9684
9684
  }
9685
9685
  }
9686
9686
  const k2 = 1e5, Yd = 30, z2 = 0.8;
9687
- var eN, yt, Dd, ds, Us, kt, kZ, Zs, ts, rF, Tc, Xc, zt, pc, Fs, uc, xF, cs, Ws, xl, jF, OF, as, Lt, Yc, gF, mN, MN, hQ, $U, ss, bQ, JN, GN;
9688
- let mi = (xl = class {
9687
+ var eN, yt, Dd, ds, Us, kt, kZ, Zs, ts, rF, Tc, Xc, zt, pc, Fs, uc, xF, cs, Ws, xl, jF, OF, as, Lt, Yc, gF, mN, MN, bQ, $U, ss, eQ, JN, GN;
9688
+ let Mi = (xl = class {
9689
9689
  constructor({
9690
9690
  textContentSource: U,
9691
9691
  container: l,
@@ -9757,7 +9757,7 @@ let mi = (xl = class {
9757
9757
  ctx: h(d = xl, $U, ss).call(d, W(this, kt))
9758
9758
  };
9759
9759
  for (const c of W(this, xF))
9760
- F.properties = W(this, cs).get(c), F.div = c, h(this, gF, hQ).call(this, F);
9760
+ F.properties = W(this, cs).get(c), F.div = c, h(this, gF, bQ).call(this, F);
9761
9761
  }
9762
9762
  }
9763
9763
  cancel() {
@@ -9830,11 +9830,11 @@ let mi = (xl = class {
9830
9830
  const m = Math.abs(U.transform[0]), M = Math.abs(U.transform[3]);
9831
9831
  m !== M && Math.max(m, M) / Math.min(m, M) > 1.5 && (b = !0);
9832
9832
  }
9833
- if (b && (Z.canvasWidth = c.vertical ? U.height : U.width), W(this, cs).set(d, Z), W(this, kZ).div = d, W(this, kZ).properties = Z, h(this, gF, hQ).call(this, W(this, kZ)), Z.hasText && W(this, Dd).append(d), Z.hasEOL) {
9833
+ if (b && (Z.canvasWidth = c.vertical ? U.height : U.width), W(this, cs).set(d, Z), W(this, kZ).div = d, W(this, kZ).properties = Z, h(this, gF, bQ).call(this, W(this, kZ)), Z.hasText && W(this, Dd).append(d), Z.hasEOL) {
9834
9834
  const m = document.createElement("br");
9835
9835
  m.setAttribute("role", "presentation"), W(this, Dd).append(m);
9836
9836
  }
9837
- }, hQ = function(U) {
9837
+ }, bQ = function(U) {
9838
9838
  var l;
9839
9839
  const {
9840
9840
  div: d,
@@ -9851,7 +9851,7 @@ let mi = (xl = class {
9851
9851
  canvasWidth: s,
9852
9852
  fontSize: n
9853
9853
  } = Z;
9854
- h(l = xl, $U, bQ).call(l, t, n * W(this, zt), a);
9854
+ h(l = xl, $U, eQ).call(l, t, n * W(this, zt), a);
9855
9855
  const {
9856
9856
  width: V
9857
9857
  } = t.measureText(d.textContent);
@@ -9871,7 +9871,7 @@ let mi = (xl = class {
9871
9871
  });
9872
9872
  }
9873
9873
  return l;
9874
- }, bQ = function(U, l, d) {
9874
+ }, eQ = function(U, l, d) {
9875
9875
  const Z = W(this, as).get(U);
9876
9876
  l === Z.size && d === Z.family || (U.font = `${l}px ${d}`, Z.size = l, Z.family = d);
9877
9877
  }, JN = function() {
@@ -9884,7 +9884,7 @@ let mi = (xl = class {
9884
9884
  if (d)
9885
9885
  return d;
9886
9886
  const Z = h(this, $U, ss).call(this, l);
9887
- Z.canvas.width = Z.canvas.height = Yd, h(this, $U, bQ).call(this, Z, Yd, U);
9887
+ Z.canvas.width = Z.canvas.height = Yd, h(this, $U, eQ).call(this, Z, Yd, U);
9888
9888
  const t = Z.measureText("");
9889
9889
  let F = t.fontBoundingBoxAscent, c = Math.abs(t.fontBoundingBoxDescent);
9890
9890
  if (F) {
@@ -10079,10 +10079,10 @@ function O2(U) {
10079
10079
  function SN(U) {
10080
10080
  return typeof U == "object" && Number.isInteger(U == null ? void 0 : U.num) && U.num >= 0 && Number.isInteger(U == null ? void 0 : U.gen) && U.gen >= 0;
10081
10081
  }
10082
- var Mi;
10082
+ var Ji;
10083
10083
  const hb = class bb {
10084
10084
  constructor() {
10085
- this._capability = Promise.withResolvers(), this._transport = null, this._worker = null, this.docId = `d${pd(bb, Mi)._++}`, this.destroyed = !1, this.onPassword = null, this.onProgress = null;
10085
+ this._capability = Promise.withResolvers(), this._transport = null, this._worker = null, this.docId = `d${pd(bb, Ji)._++}`, this.destroyed = !1, this.onPassword = null, this.onProgress = null;
10086
10086
  }
10087
10087
  get promise() {
10088
10088
  return this._capability.promise;
@@ -10098,7 +10098,7 @@ const hb = class bb {
10098
10098
  this._transport = null, (t = this._worker) == null || t.destroy(), this._worker = null;
10099
10099
  }
10100
10100
  };
10101
- Mi = /* @__PURE__ */ new WeakMap(), e(hb, Mi, 0);
10101
+ Ji = /* @__PURE__ */ new WeakMap(), e(hb, Ji, 0);
10102
10102
  let g2 = hb, eb = class {
10103
10103
  constructor(U, l, d = !1, Z = null) {
10104
10104
  this.length = U, this.initialData = l, this.progressiveDone = d, this.contentDispositionFilename = Z, this._rangeListeners = [], this._progressListeners = [], this._progressiveReadListeners = [], this._progressiveDoneListeners = [], this._readyCapability = Promise.withResolvers();
@@ -10536,7 +10536,7 @@ class v2 {
10536
10536
  if (l.streamReaderCancelTimeout && (clearTimeout(l.streamReaderCancelTimeout), l.streamReaderCancelTimeout = null), !Z) {
10537
10537
  if (l.renderTasks.size > 0)
10538
10538
  return;
10539
- if (d instanceof JR) {
10539
+ if (d instanceof GR) {
10540
10540
  let t = I2;
10541
10541
  d.extraDelay > 0 && d.extraDelay < 1e3 && (t += d.extraDelay), l.streamReaderCancelTimeout = setTimeout(() => {
10542
10542
  l.streamReaderCancelTimeout = null, this._abortOperatorList({
@@ -10580,10 +10580,10 @@ Ht = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), CU = /*
10580
10580
  }, NV = function() {
10581
10581
  W(this, Ht) && (clearTimeout(W(this, Ht)), R(this, Ht, null));
10582
10582
  };
10583
- var jZ, Ji;
10583
+ var jZ, Gi;
10584
10584
  class H2 {
10585
10585
  constructor() {
10586
- e(this, jZ, /* @__PURE__ */ new Map()), e(this, Ji, Promise.resolve());
10586
+ e(this, jZ, /* @__PURE__ */ new Map()), e(this, Gi, Promise.resolve());
10587
10587
  }
10588
10588
  postMessage(l, d) {
10589
10589
  const Z = {
@@ -10591,7 +10591,7 @@ class H2 {
10591
10591
  transfer: d
10592
10592
  } : null)
10593
10593
  };
10594
- W(this, Ji).then(() => {
10594
+ W(this, Gi).then(() => {
10595
10595
  for (const [t] of W(this, jZ))
10596
10596
  t.call(this, Z);
10597
10597
  });
@@ -10621,8 +10621,8 @@ class H2 {
10621
10621
  W(this, jZ).clear();
10622
10622
  }
10623
10623
  }
10624
- jZ = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap();
10625
- var ul, eQ, KF, It, Bc, ns, oc, Vs;
10624
+ jZ = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap();
10625
+ var ul, mQ, KF, It, Bc, ns, oc, Vs;
10626
10626
  let Hs = (ul = class {
10627
10627
  constructor({
10628
10628
  name: U = null,
@@ -10707,7 +10707,7 @@ let Hs = (ul = class {
10707
10707
  }
10708
10708
  const l = new H2();
10709
10709
  this._port = l;
10710
- const d = `fake${pd(ul, eQ)._++}`, Z = new dW(d + "_worker", d, l);
10710
+ const d = `fake${pd(ul, mQ)._++}`, Z = new dW(d + "_worker", d, l);
10711
10711
  U.setup(Z, l), this._messageHandler = new dW(d, d + "_worker", l), h(this, Bc, ns).call(this);
10712
10712
  }).catch((U) => {
10713
10713
  this._readyCapability.reject(new Error(`Setting up fake worker failed: "${U.message}".`));
@@ -10740,7 +10740,7 @@ let Hs = (ul = class {
10740
10740
  this.workerSrc
10741
10741
  )).WorkerMessageHandler)());
10742
10742
  }
10743
- }, eQ = /* @__PURE__ */ new WeakMap(), KF = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakSet(), ns = function() {
10743
+ }, mQ = /* @__PURE__ */ new WeakMap(), KF = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakSet(), ns = function() {
10744
10744
  this._readyCapability.resolve(), this._messageHandler.send("configure", {
10745
10745
  verbosity: this.verbosity
10746
10746
  });
@@ -10751,7 +10751,7 @@ let Hs = (ul = class {
10751
10751
  } catch {
10752
10752
  return null;
10753
10753
  }
10754
- }, e(ul, oc), e(ul, eQ, 0), e(ul, KF, !1), e(ul, It), Md && (R(ul, KF, !0), I0.workerSrc || (I0.workerSrc = "./pdf.worker.mjs")), ul._isSameOrigin = (U, l) => {
10754
+ }, e(ul, oc), e(ul, mQ, 0), e(ul, KF, !1), e(ul, It), Md && (R(ul, KF, !0), I0.workerSrc || (I0.workerSrc = "./pdf.worker.mjs")), ul._isSameOrigin = (U, l) => {
10755
10755
  let d;
10756
10756
  try {
10757
10757
  if (d = new URL(U), !d.origin || d.origin === "null")
@@ -10776,10 +10776,10 @@ class P2 {
10776
10776
  }), this.loadingParams = t.loadingParams, this._params = t, this.canvasFactory = F.canvasFactory, this.filterFactory = F.filterFactory, this.cMapReaderFactory = F.cMapReaderFactory, this.standardFontDataFactory = F.standardFontDataFactory, this.destroyed = !1, this.destroyCapability = null, this._networkStream = Z, this._fullReader = null, this._lastProgress = null, this.downloadInfoCapability = Promise.withResolvers(), this.setupMessageHandler();
10777
10777
  }
10778
10778
  get annotationStorage() {
10779
- return Ul(this, "annotationStorage", new XR());
10779
+ return Ul(this, "annotationStorage", new pR());
10780
10780
  }
10781
10781
  getRenderingIntent(l, d = tt.ENABLE, Z = null, t = !1, F = !1) {
10782
- let c = gd.DISPLAY, a = ni;
10782
+ let c = gd.DISPLAY, a = Vi;
10783
10783
  switch (l) {
10784
10784
  case "any":
10785
10785
  c = gd.ANY;
@@ -10832,7 +10832,7 @@ class P2 {
10832
10832
  const Z = this.messageHandler.sendWithPromise("Terminate", null);
10833
10833
  return d.push(Z), Promise.all(d).then(() => {
10834
10834
  var t, F;
10835
- this.commonObjs.clear(), this.fontLoader.clear(), W(this, Wt).clear(), this.filterFactory.destroy(), mi.cleanup(), (t = this._networkStream) == null || t.cancelAllRequests(new mt("Worker was terminated.")), (F = this.messageHandler) == null || F.destroy(), this.messageHandler = null, this.destroyCapability.resolve();
10835
+ this.commonObjs.clear(), this.fontLoader.clear(), W(this, Wt).clear(), this.filterFactory.destroy(), Mi.cleanup(), (t = this._networkStream) == null || t.cancelAllRequests(new mt("Worker was terminated.")), (F = this.messageHandler) == null || F.destroy(), this.messageHandler = null, this.destroyCapability.resolve();
10836
10836
  }, this.destroyCapability.reject), this.destroyCapability.promise;
10837
10837
  }
10838
10838
  setupMessageHandler() {
@@ -11155,7 +11155,7 @@ class P2 {
11155
11155
  for (const d of W(this, tZ).values())
11156
11156
  if (!d.cleanup())
11157
11157
  throw new Error(`startCleanup: Page ${d.pageNumber} is currently rendering.`);
11158
- this.commonObjs.clear(), l || this.fontLoader.clear(), W(this, Wt).clear(), this.filterFactory.destroy(!0), mi.cleanup();
11158
+ this.commonObjs.clear(), l || this.fontLoader.clear(), W(this, Wt).clear(), this.filterFactory.destroy(!0), Mi.cleanup();
11159
11159
  }
11160
11160
  }
11161
11161
  cachedPageNumber(l) {
@@ -11173,14 +11173,14 @@ Wt = /* @__PURE__ */ new WeakMap(), tZ = /* @__PURE__ */ new WeakMap(), aW = /*
11173
11173
  return W(this, Wt).set(U, Z), Z;
11174
11174
  };
11175
11175
  const VW = Symbol("INITIAL_DATA");
11176
- var lU, Ps, Gi;
11176
+ var lU, Ps, Si;
11177
11177
  class mb {
11178
11178
  constructor() {
11179
11179
  e(this, Ps), e(this, lU, /* @__PURE__ */ Object.create(null));
11180
11180
  }
11181
11181
  get(l, d = null) {
11182
11182
  if (d) {
11183
- const t = h(this, Ps, Gi).call(this, l);
11183
+ const t = h(this, Ps, Si).call(this, l);
11184
11184
  return t.promise.then(() => d(t.data)), null;
11185
11185
  }
11186
11186
  const Z = W(this, lU)[l];
@@ -11197,7 +11197,7 @@ class mb {
11197
11197
  return !d || d.data === VW ? !1 : (delete W(this, lU)[l], !0);
11198
11198
  }
11199
11199
  resolve(l, d = null) {
11200
- const Z = h(this, Ps, Gi).call(this, l);
11200
+ const Z = h(this, Ps, Si).call(this, l);
11201
11201
  Z.data = d, Z.resolve();
11202
11202
  }
11203
11203
  clear() {
@@ -11219,7 +11219,7 @@ class mb {
11219
11219
  }
11220
11220
  }
11221
11221
  }
11222
- lU = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakSet(), Gi = function(U) {
11222
+ lU = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakSet(), Si = function(U) {
11223
11223
  var l;
11224
11224
  return (l = W(this, lU))[U] || (l[U] = {
11225
11225
  ...Promise.withResolvers(),
@@ -11302,7 +11302,7 @@ const Mb = class QW {
11302
11302
  }
11303
11303
  cancel(l = null, d = 0) {
11304
11304
  var Z;
11305
- this.running = !1, this.cancelled = !0, (Z = this.gfx) == null || Z.endDrawing(), W(this, ft) && (window.cancelAnimationFrame(W(this, ft)), R(this, ft, null)), W(QW, E0).delete(this._canvas), this.callback(l || new JR(`Rendering cancelled, page ${this._pageIndex + 1}`, d));
11305
+ this.running = !1, this.cancelled = !0, (Z = this.gfx) == null || Z.endDrawing(), W(this, ft) && (window.cancelAnimationFrame(W(this, ft)), R(this, ft, null)), W(QW, E0).delete(this._canvas), this.callback(l || new GR(`Rendering cancelled, page ${this._pageIndex + 1}`, d));
11306
11306
  }
11307
11307
  operatorListChanged() {
11308
11308
  var l;
@@ -11397,7 +11397,7 @@ class $2 {
11397
11397
  el("Abstract method `_createSVG` called.");
11398
11398
  }
11399
11399
  }
11400
- let uR = class extends $2 {
11400
+ let YR = class extends $2 {
11401
11401
  _createSVG(U) {
11402
11402
  return document.createElementNS(dZ, U);
11403
11403
  }
@@ -11578,7 +11578,7 @@ class dM {
11578
11578
  }
11579
11579
  return new BF(l);
11580
11580
  case Ol.POPUP:
11581
- return new Ti(l);
11581
+ return new Xi(l);
11582
11582
  case Ol.FREETEXT:
11583
11583
  return new Bb(l);
11584
11584
  case Ol.LINE:
@@ -11592,7 +11592,7 @@ class dM {
11592
11592
  case Ol.CARET:
11593
11593
  return new RM(l);
11594
11594
  case Ol.INK:
11595
- return new YR(l);
11595
+ return new BR(l);
11596
11596
  case Ol.POLYGON:
11597
11597
  return new iM(l);
11598
11598
  case Ol.HIGHLIGHT:
@@ -11612,7 +11612,7 @@ class dM {
11612
11612
  }
11613
11613
  }
11614
11614
  }
11615
- var At, iW, RW, fs, Si;
11615
+ var At, iW, RW, fs, Ti;
11616
11616
  const UM = class Gb {
11617
11617
  constructor(l, {
11618
11618
  isRenderable: d = !1,
@@ -11644,11 +11644,11 @@ const UM = class Gb {
11644
11644
  const {
11645
11645
  rect: Z
11646
11646
  } = l;
11647
- Z && h(this, fs, Si).call(this, Z), (d = W(this, RW)) == null || d.popup.updateEdited(l);
11647
+ Z && h(this, fs, Ti).call(this, Z), (d = W(this, RW)) == null || d.popup.updateEdited(l);
11648
11648
  }
11649
11649
  resetEdited() {
11650
11650
  var l;
11651
- W(this, At) && (h(this, fs, Si).call(this, W(this, At).rect), (l = W(this, RW)) == null || l.popup.resetEdited(), R(this, At, null));
11651
+ W(this, At) && (h(this, fs, Ti).call(this, W(this, At).rect), (l = W(this, RW)) == null || l.popup.resetEdited(), R(this, At, null));
11652
11652
  }
11653
11653
  _createContainer(l) {
11654
11654
  const {
@@ -11662,7 +11662,7 @@ const UM = class Gb {
11662
11662
  const {
11663
11663
  style: c
11664
11664
  } = F;
11665
- if (c.zIndex = this.parent.zIndex++, d.alternativeText && (F.title = d.alternativeText), d.noRotate && F.classList.add("norotate"), !d.rect || this instanceof Ti) {
11665
+ if (c.zIndex = this.parent.zIndex++, d.alternativeText && (F.title = d.alternativeText), d.noRotate && F.classList.add("norotate"), !d.rect || this instanceof Xi) {
11666
11666
  const {
11667
11667
  rotation: m
11668
11668
  } = d;
@@ -11867,7 +11867,7 @@ const UM = class Gb {
11867
11867
  _createPopup() {
11868
11868
  const {
11869
11869
  data: l
11870
- } = this, d = R(this, RW, new Ti({
11870
+ } = this, d = R(this, RW, new Xi({
11871
11871
  data: {
11872
11872
  color: l.color,
11873
11873
  titleObj: l.titleObj,
@@ -11962,7 +11962,7 @@ const UM = class Gb {
11962
11962
  });
11963
11963
  }
11964
11964
  };
11965
- At = /* @__PURE__ */ new WeakMap(), iW = /* @__PURE__ */ new WeakMap(), RW = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakSet(), Si = function(U) {
11965
+ At = /* @__PURE__ */ new WeakMap(), iW = /* @__PURE__ */ new WeakMap(), RW = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakSet(), Ti = function(U) {
11966
11966
  const {
11967
11967
  container: {
11968
11968
  style: l
@@ -12200,11 +12200,11 @@ class BF extends Hl {
12200
12200
  let c;
12201
12201
  const a = 2, s = (n) => Math.round(10 * n) / 10;
12202
12202
  if (this.data.multiLine) {
12203
- const n = Math.abs(this.data.rect[3] - this.data.rect[1] - a), V = Math.round(n / (AV * t)) || 1, Q = n / V;
12204
- c = Math.min(t, s(Q / AV));
12203
+ const n = Math.abs(this.data.rect[3] - this.data.rect[1] - a), V = Math.round(n / (_V * t)) || 1, Q = n / V;
12204
+ c = Math.min(t, s(Q / _V));
12205
12205
  } else {
12206
12206
  const n = Math.abs(this.data.rect[3] - this.data.rect[1] - a);
12207
- c = Math.min(t, s(n / AV));
12207
+ c = Math.min(t, s(n / _V));
12208
12208
  }
12209
12209
  F.fontSize = `calc(${c}px * var(--scale-factor))`, F.color = O.makeHexColor(Z[0], Z[1], Z[2]), this.data.textAlignment !== null && (F.textAlign = d[this.data.textAlignment]);
12210
12210
  }
@@ -12679,7 +12679,7 @@ class aM extends BF {
12679
12679
  }), this.data.combo && this._setTextStyle(t), this._setBackgroundColor(t), this._setDefaultPropertiesFromJS(t), this.container.append(t), this.container;
12680
12680
  }
12681
12681
  }
12682
- class Ti extends Hl {
12682
+ class Xi extends Hl {
12683
12683
  constructor(l) {
12684
12684
  const {
12685
12685
  data: d,
@@ -12706,10 +12706,10 @@ class Ti extends Hl {
12706
12706
  }), d = [];
12707
12707
  for (const Z of this.elements)
12708
12708
  Z.popup = l, Z.container.ariaHasPopup = "dialog", d.push(Z.data.id), Z.addHighlightArea();
12709
- return this.container.setAttribute("aria-controls", d.map((Z) => `${MR}${Z}`).join(",")), this.container;
12709
+ return this.container.setAttribute("aria-controls", d.map((Z) => `${JR}${Z}`).join(",")), this.container;
12710
12710
  }
12711
12711
  }
12712
- var gW, Xi, pi, KW, R0, zl, _Z, NW, hV, bV, vW, gZ, EU, at, eV, st, As, _t, N0, vl, _s, mQ, pN, ub, Yb, uN, mV, MV, ui;
12712
+ var gW, pi, ui, KW, R0, zl, _Z, NW, hV, bV, vW, gZ, EU, at, eV, st, As, _t, N0, vl, _s, MQ, pN, ub, Yb, uN, mV, MV, Yi;
12713
12713
  class sM {
12714
12714
  constructor({
12715
12715
  container: l,
@@ -12724,11 +12724,11 @@ class sM {
12724
12724
  parentRect: V,
12725
12725
  open: Q
12726
12726
  }) {
12727
- e(this, vl), e(this, gW, h(this, vl, Yb).bind(this)), e(this, Xi, h(this, vl, ui).bind(this)), e(this, pi, h(this, vl, MV).bind(this)), e(this, KW, h(this, vl, mV).bind(this)), e(this, R0, null), e(this, zl, null), e(this, _Z, null), e(this, NW, null), e(this, hV, null), e(this, bV, null), e(this, vW, null), e(this, gZ, !1), e(this, EU, null), e(this, at, null), e(this, eV, null), e(this, st, null), e(this, As, null), e(this, _t, null), e(this, N0, !1);
12727
+ e(this, vl), e(this, gW, h(this, vl, Yb).bind(this)), e(this, pi, h(this, vl, Yi).bind(this)), e(this, ui, h(this, vl, MV).bind(this)), e(this, KW, h(this, vl, mV).bind(this)), e(this, R0, null), e(this, zl, null), e(this, _Z, null), e(this, NW, null), e(this, hV, null), e(this, bV, null), e(this, vW, null), e(this, gZ, !1), e(this, EU, null), e(this, at, null), e(this, eV, null), e(this, st, null), e(this, As, null), e(this, _t, null), e(this, N0, !1);
12728
12728
  var i;
12729
12729
  R(this, zl, l), R(this, As, t), R(this, _Z, c), R(this, st, a), R(this, bV, s), R(this, R0, d), R(this, eV, n), R(this, vW, V), R(this, hV, Z), R(this, NW, yh.toDateObject(F)), this.trigger = Z.flatMap((N) => N.getElementsToTriggerPopup());
12730
12730
  for (const N of this.trigger)
12731
- N.addEventListener("click", W(this, KW)), N.addEventListener("mouseenter", W(this, pi)), N.addEventListener("mouseleave", W(this, Xi)), N.classList.add("popupTriggerArea");
12731
+ N.addEventListener("click", W(this, KW)), N.addEventListener("mouseenter", W(this, ui)), N.addEventListener("mouseleave", W(this, pi)), N.classList.add("popupTriggerArea");
12732
12732
  for (const N of Z)
12733
12733
  (i = N.container) == null || i.addEventListener("keydown", W(this, gW));
12734
12734
  W(this, zl).hidden = !0, Q && h(this, vl, mV).call(this);
@@ -12806,10 +12806,10 @@ class sM {
12806
12806
  return W(this, zl).hidden === !1;
12807
12807
  }
12808
12808
  }
12809
- gW = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), KW = /* @__PURE__ */ new WeakMap(), R0 = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap(), _Z = /* @__PURE__ */ new WeakMap(), NW = /* @__PURE__ */ new WeakMap(), hV = /* @__PURE__ */ new WeakMap(), bV = /* @__PURE__ */ new WeakMap(), vW = /* @__PURE__ */ new WeakMap(), gZ = /* @__PURE__ */ new WeakMap(), EU = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), eV = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), N0 = /* @__PURE__ */ new WeakMap(), vl = /* @__PURE__ */ new WeakSet(), _s = function() {
12809
+ gW = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), KW = /* @__PURE__ */ new WeakMap(), R0 = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap(), _Z = /* @__PURE__ */ new WeakMap(), NW = /* @__PURE__ */ new WeakMap(), hV = /* @__PURE__ */ new WeakMap(), bV = /* @__PURE__ */ new WeakMap(), vW = /* @__PURE__ */ new WeakMap(), gZ = /* @__PURE__ */ new WeakMap(), EU = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), eV = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), N0 = /* @__PURE__ */ new WeakMap(), vl = /* @__PURE__ */ new WeakSet(), _s = function() {
12810
12810
  const U = W(this, st), l = W(this, _Z);
12811
12811
  return U != null && U.str && (!(l != null && l.str) || l.str === U.str) && W(this, st).html || null;
12812
- }, mQ = function() {
12812
+ }, MQ = function() {
12813
12813
  var U, l, d;
12814
12814
  return ((d = (l = (U = W(this, vl, _s)) == null ? void 0 : U.attributes) == null ? void 0 : l.style) == null ? void 0 : d.fontSize) || 0;
12815
12815
  }, pN = function() {
@@ -12831,7 +12831,7 @@ gW = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), pi = /*
12831
12831
  }, Z = {
12832
12832
  style: {
12833
12833
  color: W(this, vl, pN),
12834
- fontSize: W(this, vl, mQ) ? `calc(${W(this, vl, mQ)}px * var(--scale-factor))` : ""
12834
+ fontSize: W(this, vl, MQ) ? `calc(${W(this, vl, MQ)}px * var(--scale-factor))` : ""
12835
12835
  }
12836
12836
  };
12837
12837
  for (const t of U.split(`
@@ -12873,10 +12873,10 @@ gW = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), pi = /*
12873
12873
  } = W(this, zl);
12874
12874
  Q.left = `${W(this, at)[0]}%`, Q.top = `${W(this, at)[1]}%`;
12875
12875
  }, mV = function() {
12876
- R(this, gZ, !W(this, gZ)), W(this, gZ) ? (h(this, vl, MV).call(this), W(this, zl).addEventListener("click", W(this, KW)), W(this, zl).addEventListener("keydown", W(this, gW))) : (h(this, vl, ui).call(this), W(this, zl).removeEventListener("click", W(this, KW)), W(this, zl).removeEventListener("keydown", W(this, gW)));
12876
+ R(this, gZ, !W(this, gZ)), W(this, gZ) ? (h(this, vl, MV).call(this), W(this, zl).addEventListener("click", W(this, KW)), W(this, zl).addEventListener("keydown", W(this, gW))) : (h(this, vl, Yi).call(this), W(this, zl).removeEventListener("click", W(this, KW)), W(this, zl).removeEventListener("keydown", W(this, gW)));
12877
12877
  }, MV = function() {
12878
12878
  W(this, EU) || this.render(), this.isVisible ? W(this, gZ) && W(this, zl).classList.add("focused") : (h(this, vl, uN).call(this), W(this, zl).hidden = !1, W(this, zl).style.zIndex = parseInt(W(this, zl).style.zIndex) + 1e3);
12879
- }, ui = function() {
12879
+ }, Yi = function() {
12880
12880
  W(this, zl).classList.remove("focused"), !(W(this, gZ) || !this.isVisible) && (W(this, zl).hidden = !0, W(this, zl).style.zIndex = parseInt(W(this, zl).style.zIndex) - 1e3);
12881
12881
  };
12882
12882
  class Bb extends Hl {
@@ -13028,8 +13028,8 @@ class RM extends Hl {
13028
13028
  return this.container.classList.add("caretAnnotation"), !this.data.popupRef && this.hasPopupData && this._createPopup(), this.container;
13029
13029
  }
13030
13030
  }
13031
- var Un, h0, Zn, Yi;
13032
- class YR extends Hl {
13031
+ var Un, h0, Zn, Bi;
13032
+ class BR extends Hl {
13033
13033
  constructor(l) {
13034
13034
  super(l, {
13035
13035
  isRenderable: !0,
@@ -13050,7 +13050,7 @@ class YR extends Hl {
13050
13050
  transform: c,
13051
13051
  width: a,
13052
13052
  height: s
13053
- } = h(this, Zn, Yi).call(this, d, l), n = this.svgFactory.create(a, s, !0), V = R(this, Un, this.svgFactory.createElement("svg:g"));
13053
+ } = h(this, Zn, Bi).call(this, d, l), n = this.svgFactory.create(a, s, !0), V = R(this, Un, this.svgFactory.createElement("svg:g"));
13054
13054
  n.append(V), V.setAttribute("stroke-width", t.width || 1), V.setAttribute("stroke-linecap", "round"), V.setAttribute("stroke-linejoin", "round"), V.setAttribute("stroke-miterlimit", 10), V.setAttribute("stroke", "transparent"), V.setAttribute("fill", "transparent"), V.setAttribute("transform", c);
13055
13055
  for (let Q = 0, i = Z.length; Q < i; Q++) {
13056
13056
  const N = this.svgFactory.createElement(this.svgElementName);
@@ -13073,7 +13073,7 @@ class YR extends Hl {
13073
13073
  transform: c,
13074
13074
  width: a,
13075
13075
  height: s
13076
- } = h(this, Zn, Yi).call(this, this.data.rotation, t);
13076
+ } = h(this, Zn, Bi).call(this, this.data.rotation, t);
13077
13077
  F.parentElement.setAttribute("viewBox", `0 0 ${a} ${s}`), F.setAttribute("transform", c);
13078
13078
  }
13079
13079
  }
@@ -13084,7 +13084,7 @@ class YR extends Hl {
13084
13084
  this.container.classList.add("highlightArea");
13085
13085
  }
13086
13086
  }
13087
- Un = /* @__PURE__ */ new WeakMap(), h0 = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakSet(), Yi = function(U, l) {
13087
+ Un = /* @__PURE__ */ new WeakMap(), h0 = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakSet(), Bi = function(U, l) {
13088
13088
  switch (U) {
13089
13089
  case 90:
13090
13090
  return {
@@ -13171,7 +13171,7 @@ class kb extends Hl {
13171
13171
  return this.container.classList.add("stampAnnotation"), this.container.setAttribute("role", "img"), !this.data.popupRef && this.hasPopupData && this._createPopup(), this._editOnDoubleClick(), this.container;
13172
13172
  }
13173
13173
  }
13174
- var tn, Fn, Bi;
13174
+ var tn, Fn, oi;
13175
13175
  class eM extends Hl {
13176
13176
  constructor(l) {
13177
13177
  var d;
@@ -13193,12 +13193,12 @@ class eM extends Hl {
13193
13193
  data: d
13194
13194
  } = this;
13195
13195
  let Z;
13196
- d.hasAppearance || d.fillAlpha === 0 ? Z = document.createElement("div") : (Z = document.createElement("img"), Z.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(d.name) ? "paperclip" : "pushpin"}.svg`, d.fillAlpha && d.fillAlpha < 1 && (Z.style = `filter: opacity(${Math.round(d.fillAlpha * 100)}%);`)), Z.addEventListener("dblclick", h(this, Fn, Bi).bind(this)), R(this, tn, Z);
13196
+ d.hasAppearance || d.fillAlpha === 0 ? Z = document.createElement("div") : (Z = document.createElement("img"), Z.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(d.name) ? "paperclip" : "pushpin"}.svg`, d.fillAlpha && d.fillAlpha < 1 && (Z.style = `filter: opacity(${Math.round(d.fillAlpha * 100)}%);`)), Z.addEventListener("dblclick", h(this, Fn, oi).bind(this)), R(this, tn, Z);
13197
13197
  const {
13198
13198
  isMac: t
13199
13199
  } = ud.platform;
13200
13200
  return l.addEventListener("keydown", (F) => {
13201
- F.key === "Enter" && (t ? F.metaKey : F.ctrlKey) && h(this, Fn, Bi).call(this);
13201
+ F.key === "Enter" && (t ? F.metaKey : F.ctrlKey) && h(this, Fn, oi).call(this);
13202
13202
  }), !d.popupRef && this.hasPopupData ? this._createPopup() : Z.classList.add("popupTriggerArea"), l.append(Z), l;
13203
13203
  }
13204
13204
  getElementsToTriggerPopup() {
@@ -13208,11 +13208,11 @@ class eM extends Hl {
13208
13208
  this.container.classList.add("highlightArea");
13209
13209
  }
13210
13210
  }
13211
- tn = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), Bi = function() {
13211
+ tn = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), oi = function() {
13212
13212
  var U;
13213
13213
  (U = this.downloadManager) == null || U.openOrDownloadData(this.content, this.filename);
13214
13214
  };
13215
- var Qs, vF, HF, is, kc, YN, MQ, BN;
13215
+ var Qs, vF, HF, is, kc, YN, JQ, BN;
13216
13216
  let mM = (BN = class {
13217
13217
  constructor({
13218
13218
  div: U,
@@ -13241,8 +13241,8 @@ let mM = (BN = class {
13241
13241
  downloadManager: U.downloadManager,
13242
13242
  imageResourcesPath: U.imageResourcesPath || "",
13243
13243
  renderForms: U.renderForms !== !1,
13244
- svgFactory: new uR(),
13245
- annotationStorage: U.annotationStorage || new XR(),
13244
+ svgFactory: new YR(),
13245
+ annotationStorage: U.annotationStorage || new pR(),
13246
13246
  enableScripting: U.enableScripting === !0,
13247
13247
  hasJSActions: U.hasJSActions,
13248
13248
  fieldObjects: U.fieldObjects,
@@ -13277,7 +13277,7 @@ let mM = (BN = class {
13277
13277
  const n = s.render();
13278
13278
  c.hidden && (n.style.visibility = "hidden"), await h(this, kc, YN).call(this, n, c.id), s._isEditable && (W(this, HF).set(s.data.id, s), (l = this._annotationEditorUIManager) == null || l.renderAnnotationElement(s));
13279
13279
  }
13280
- h(this, kc, MQ).call(this);
13280
+ h(this, kc, JQ).call(this);
13281
13281
  }
13282
13282
  update({
13283
13283
  viewport: U
@@ -13285,7 +13285,7 @@ let mM = (BN = class {
13285
13285
  const l = this.div;
13286
13286
  this.viewport = U, uF(l, {
13287
13287
  rotation: U.rotation
13288
- }), h(this, kc, MQ).call(this), l.hidden = !1;
13288
+ }), h(this, kc, JQ).call(this), l.hidden = !1;
13289
13289
  }
13290
13290
  getEditableAnnotations() {
13291
13291
  return Array.from(W(this, HF).values());
@@ -13295,12 +13295,12 @@ let mM = (BN = class {
13295
13295
  }
13296
13296
  }, Qs = /* @__PURE__ */ new WeakMap(), vF = /* @__PURE__ */ new WeakMap(), HF = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakSet(), YN = async function(U, l) {
13297
13297
  var d, Z;
13298
- const t = U.firstChild || U, F = t.id = `${MR}${l}`, c = await ((d = W(this, is)) == null ? void 0 : d.getAriaAttributes(F));
13298
+ const t = U.firstChild || U, F = t.id = `${JR}${l}`, c = await ((d = W(this, is)) == null ? void 0 : d.getAriaAttributes(F));
13299
13299
  if (c)
13300
13300
  for (const [a, s] of c)
13301
13301
  t.setAttribute(a, s);
13302
13302
  this.div.append(U), (Z = W(this, Qs)) == null || Z.moveElementInDOM(this.div, U, t, !1);
13303
- }, MQ = function() {
13303
+ }, JQ = function() {
13304
13304
  if (!W(this, vF))
13305
13305
  return;
13306
13306
  const U = this.div;
@@ -13317,7 +13317,7 @@ let mM = (BN = class {
13317
13317
  W(this, vF).clear();
13318
13318
  }, BN);
13319
13319
  const cn = /\r\n?|\n/g;
13320
- var xU, FU, Wn, b0, cU, xd, zb, Lb, Ib, JV, GF, GV, an, Db, oi, Eb;
13320
+ var xU, FU, Wn, b0, cU, xd, zb, Lb, Ib, JV, GF, GV, an, Db, yi, Eb;
13321
13321
  const FZ = class dd extends Il {
13322
13322
  constructor(l) {
13323
13323
  super({
@@ -13534,7 +13534,7 @@ const FZ = class dd extends Il {
13534
13534
  if (c.length === 1 && c[0] === "text/plain")
13535
13535
  return;
13536
13536
  l.preventDefault();
13537
- const a = h(d = dd, GF, oi).call(d, F.getData("text") || "").replaceAll(cn, `
13537
+ const a = h(d = dd, GF, yi).call(d, F.getData("text") || "").replaceAll(cn, `
13538
13538
  `);
13539
13539
  if (!a)
13540
13540
  return;
@@ -13632,7 +13632,7 @@ const FZ = class dd extends Il {
13632
13632
  };
13633
13633
  }
13634
13634
  const c = await super.deserialize(l, d, Z);
13635
- return R(c, cU, l.fontSize), R(c, xU, O.makeHexColor(...l.color)), R(c, FU, h(t = dd, GF, oi).call(t, l.value)), c.annotationElementId = l.id || null, c._initialData = F, c;
13635
+ return R(c, cU, l.fontSize), R(c, xU, O.makeHexColor(...l.color)), R(c, FU, h(t = dd, GF, yi).call(t, l.value)), c.annotationElementId = l.id || null, c._initialData = F, c;
13636
13636
  }
13637
13637
  serialize(l = !1) {
13638
13638
  if (this.isEmpty())
@@ -13733,7 +13733,7 @@ xU = /* @__PURE__ */ new WeakMap(), FU = /* @__PURE__ */ new WeakMap(), Wn = /*
13733
13733
  }
13734
13734
  }, Db = function() {
13735
13735
  return W(this, FU).replaceAll(" ", " ");
13736
- }, oi = function(U) {
13736
+ }, yi = function(U) {
13737
13737
  return U.replaceAll(" ", " ");
13738
13738
  }, Eb = function(U) {
13739
13739
  const {
@@ -13805,13 +13805,13 @@ class x {
13805
13805
  }
13806
13806
  }
13807
13807
  H(x, "PRECISION", 1e-4);
13808
- var WU, jU, HW, PW, cZ, Zl, q0, $0, sn, nn, fW, hW, qt, Vn, JQ, yi, aU, zc, wb, Cb, rb, xb, jb, Ob;
13809
- const e0 = class ki {
13808
+ var WU, jU, HW, PW, cZ, Zl, q0, $0, sn, nn, fW, hW, qt, Vn, GQ, ki, aU, zc, wb, Cb, rb, xb, jb, Ob;
13809
+ const e0 = class zi {
13810
13810
  constructor({
13811
13811
  x: l,
13812
13812
  y: d
13813
13813
  }, Z, t, F, c, a = 0) {
13814
- e(this, aU), e(this, WU), e(this, jU, []), e(this, HW), e(this, PW), e(this, cZ, []), e(this, Zl, new Float32Array(18)), e(this, q0), e(this, $0), e(this, sn), e(this, nn), e(this, fW), e(this, hW), e(this, qt, []), R(this, WU, Z), R(this, hW, F * t), R(this, PW, c), W(this, Zl).set([NaN, NaN, NaN, NaN, l, d], 6), R(this, HW, a), R(this, nn, W(ki, Vn) * t), R(this, sn, W(ki, yi) * t), R(this, fW, t), W(this, qt).push(l, d);
13814
+ e(this, aU), e(this, WU), e(this, jU, []), e(this, HW), e(this, PW), e(this, cZ, []), e(this, Zl, new Float32Array(18)), e(this, q0), e(this, $0), e(this, sn), e(this, nn), e(this, fW), e(this, hW), e(this, qt, []), R(this, WU, Z), R(this, hW, F * t), R(this, PW, c), W(this, Zl).set([NaN, NaN, NaN, NaN, l, d], 6), R(this, HW, a), R(this, nn, W(zi, Vn) * t), R(this, sn, W(zi, ki) * t), R(this, fW, t), W(this, qt).push(l, d);
13815
13815
  }
13816
13816
  isEmpty() {
13817
13817
  return isNaN(W(this, Zl)[8]);
@@ -13879,7 +13879,7 @@ const e0 = class ki {
13879
13879
  return h(this, aU, jb).call(this, V, Q), this.newFreeDrawOutline(V, n, W(this, WU), W(this, fW), W(this, HW), W(this, PW));
13880
13880
  }
13881
13881
  };
13882
- WU = /* @__PURE__ */ new WeakMap(), jU = /* @__PURE__ */ new WeakMap(), HW = /* @__PURE__ */ new WeakMap(), PW = /* @__PURE__ */ new WeakMap(), cZ = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), q0 = /* @__PURE__ */ new WeakMap(), $0 = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), fW = /* @__PURE__ */ new WeakMap(), hW = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), JQ = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), aU = /* @__PURE__ */ new WeakSet(), zc = function() {
13882
+ WU = /* @__PURE__ */ new WeakMap(), jU = /* @__PURE__ */ new WeakMap(), HW = /* @__PURE__ */ new WeakMap(), PW = /* @__PURE__ */ new WeakMap(), cZ = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), q0 = /* @__PURE__ */ new WeakMap(), $0 = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), fW = /* @__PURE__ */ new WeakMap(), hW = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), GQ = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), aU = /* @__PURE__ */ new WeakSet(), zc = function() {
13883
13883
  const U = W(this, Zl).subarray(4, 6), l = W(this, Zl).subarray(16, 18), [d, Z, t, F] = W(this, WU);
13884
13884
  return [(W(this, q0) + (U[0] - l[0]) / 2 - d) / t, (W(this, $0) + (U[1] - l[1]) / 2 - Z) / F, (W(this, q0) + (l[0] - U[0]) / 2 - d) / t, (W(this, $0) + (l[1] - U[1]) / 2 - Z) / F];
13885
13885
  }, wb = function() {
@@ -13900,12 +13900,12 @@ WU = /* @__PURE__ */ new WeakMap(), jU = /* @__PURE__ */ new WeakMap(), HW = /*
13900
13900
  }, Ob = function(U, l) {
13901
13901
  const d = W(this, Zl).subarray(4, 6), Z = W(this, Zl).subarray(16, 18), [t, F, c, a] = W(this, WU), [s, n, V, Q] = h(this, aU, zc).call(this);
13902
13902
  return U.set([NaN, NaN, NaN, NaN, (d[0] - t) / c, (d[1] - F) / a, NaN, NaN, NaN, NaN, s, n, NaN, NaN, NaN, NaN, V, Q, NaN, NaN, NaN, NaN, (Z[0] - t) / c, (Z[1] - F) / a], l), l += 24;
13903
- }, e(e0, Vn, 8), e(e0, JQ, 2), e(e0, yi, W(e0, Vn) + W(e0, JQ));
13903
+ }, e(e0, Vn, 8), e(e0, GQ, 2), e(e0, ki, W(e0, Vn) + W(e0, GQ));
13904
13904
  let gb = e0;
13905
- var bW, w0, nt, Qn, _d, Rn, wl, zi, Kb;
13905
+ var bW, w0, nt, Qn, _d, Rn, wl, Li, Kb;
13906
13906
  class vb extends x {
13907
13907
  constructor(l, d, Z, t, F, c) {
13908
- super(), e(this, zi), e(this, bW), e(this, w0, new Float32Array(4)), e(this, nt), e(this, Qn), e(this, _d), e(this, Rn), e(this, wl), R(this, wl, l), R(this, _d, d), R(this, bW, Z), R(this, Rn, t), R(this, nt, F), R(this, Qn, c), this.lastPoint = [NaN, NaN], h(this, zi, Kb).call(this, c);
13908
+ super(), e(this, Li), e(this, bW), e(this, w0, new Float32Array(4)), e(this, nt), e(this, Qn), e(this, _d), e(this, Rn), e(this, wl), R(this, wl, l), R(this, _d, d), R(this, bW, Z), R(this, Rn, t), R(this, nt, F), R(this, Qn, c), this.lastPoint = [NaN, NaN], h(this, Li, Kb).call(this, c);
13909
13909
  const [a, s, n, V] = W(this, w0);
13910
13910
  for (let Q = 0, i = l.length; Q < i; Q += 2)
13911
13911
  l[Q] = (l[Q] - a) / n, l[Q + 1] = (l[Q + 1] - s) / V;
@@ -13964,7 +13964,7 @@ class vb extends x {
13964
13964
  return m.getOutlines();
13965
13965
  }
13966
13966
  }
13967
- bW = /* @__PURE__ */ new WeakMap(), w0 = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), wl = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakSet(), Kb = function(U) {
13967
+ bW = /* @__PURE__ */ new WeakMap(), w0 = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), wl = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakSet(), Kb = function(U) {
13968
13968
  const l = W(this, wl);
13969
13969
  let d = l[4], Z = l[5], t = d, F = Z, c = d, a = Z, s = d, n = Z;
13970
13970
  const V = U ? Math.max : Math.min;
@@ -13980,8 +13980,8 @@ bW = /* @__PURE__ */ new WeakMap(), w0 = /* @__PURE__ */ new WeakMap(), nt = /*
13980
13980
  const Q = W(this, w0);
13981
13981
  Q[0] = t - W(this, nt), Q[1] = F - W(this, nt), Q[2] = c - t + 2 * W(this, nt), Q[3] = a - F + 2 * W(this, nt), this.lastPoint = [s, n];
13982
13982
  };
13983
- var SV, TV, $t, LU, gU, Hb, Rs, Pb, fb, Li;
13984
- class Ii {
13983
+ var SV, TV, $t, LU, gU, Hb, Rs, Pb, fb, Ii;
13984
+ class Di {
13985
13985
  constructor(l, d = 0, Z = 0, t = !0) {
13986
13986
  e(this, gU), e(this, SV), e(this, TV), e(this, $t, []), e(this, LU, []);
13987
13987
  let F = 1 / 0, c = -1 / 0, a = 1 / 0, s = -1 / 0;
@@ -14006,7 +14006,7 @@ class Ii {
14006
14006
  W(this, $t).sort((d, Z) => d[0] - Z[0] || d[1] - Z[1] || d[2] - Z[2]);
14007
14007
  const l = [];
14008
14008
  for (const d of W(this, $t))
14009
- d[3] ? (l.push(...h(this, gU, Li).call(this, d)), h(this, gU, Pb).call(this, d)) : (h(this, gU, fb).call(this, d), l.push(...h(this, gU, Li).call(this, d)));
14009
+ d[3] ? (l.push(...h(this, gU, Ii).call(this, d)), h(this, gU, Pb).call(this, d)) : (h(this, gU, fb).call(this, d), l.push(...h(this, gU, Ii).call(this, d)));
14010
14010
  return h(this, gU, Hb).call(this, l);
14011
14011
  }
14012
14012
  }
@@ -14074,7 +14074,7 @@ SV = /* @__PURE__ */ new WeakMap(), TV = /* @__PURE__ */ new WeakMap(), $t = /*
14074
14074
  return;
14075
14075
  }
14076
14076
  }
14077
- }, Li = function(U) {
14077
+ }, Ii = function(U) {
14078
14078
  const [l, d, Z] = U, t = [[l, d, Z]], F = h(this, gU, Rs).call(this, Z);
14079
14079
  for (let c = 0; c < F; c++) {
14080
14080
  const [a, s] = W(this, LU)[c];
@@ -14133,17 +14133,17 @@ class JM extends x {
14133
14133
  }
14134
14134
  }
14135
14135
  Nn = /* @__PURE__ */ new WeakMap(), eW = /* @__PURE__ */ new WeakMap();
14136
- class Di extends gb {
14136
+ class Ei extends gb {
14137
14137
  newFreeDrawOutline(l, d, Z, t, F, c) {
14138
14138
  return new GM(l, d, Z, t, F, c);
14139
14139
  }
14140
14140
  }
14141
14141
  class GM extends vb {
14142
14142
  newOutliner(l, d, Z, t, F, c = 0) {
14143
- return new Di(l, d, Z, t, F, c);
14143
+ return new Ei(l, d, Z, t, F, c);
14144
14144
  }
14145
14145
  }
14146
- var BU, PF, Lc, Al, Ns, Ic, hs, bs, Dt, oU, Dc, Ed, Ec, Bl, GQ, SQ, TQ, Et, oN, zZ;
14146
+ var BU, PF, Lc, Al, Ns, Ic, hs, bs, Dt, oU, Dc, Ed, Ec, Bl, SQ, TQ, XQ, Et, oN, zZ;
14147
14147
  let Ab = (Ed = class {
14148
14148
  constructor({
14149
14149
  editor: U = null,
@@ -14168,14 +14168,14 @@ let Ab = (Ed = class {
14168
14168
  const l = W(this, oU)._signal;
14169
14169
  U.addEventListener("click", h(this, Bl, Et).bind(this), {
14170
14170
  signal: l
14171
- }), U.addEventListener("keydown", h(this, Bl, TQ).bind(this), {
14171
+ }), U.addEventListener("keydown", h(this, Bl, XQ).bind(this), {
14172
14172
  signal: l
14173
14173
  });
14174
14174
  const d = R(this, PF, document.createElement("span"));
14175
14175
  return d.className = "swatch", d.setAttribute("aria-hidden", !0), d.style.backgroundColor = W(this, Lc), U.append(d), U;
14176
14176
  }
14177
14177
  renderMainDropdown() {
14178
- const U = R(this, Al, h(this, Bl, GQ).call(this));
14178
+ const U = R(this, Al, h(this, Bl, SQ).call(this));
14179
14179
  return U.setAttribute("aria-orientation", "horizontal"), U.setAttribute("aria-labelledby", "highlightColorPickerLabel"), U;
14180
14180
  }
14181
14181
  _colorSelectFromKeyboard(U) {
@@ -14184,7 +14184,7 @@ let Ab = (Ed = class {
14184
14184
  return;
14185
14185
  }
14186
14186
  const l = U.target.getAttribute("data-color");
14187
- l && h(this, Bl, SQ).call(this, l, U);
14187
+ l && h(this, Bl, TQ).call(this, l, U);
14188
14188
  }
14189
14189
  _moveToNext(U) {
14190
14190
  var l, d;
@@ -14250,7 +14250,7 @@ let Ab = (Ed = class {
14250
14250
  var U, l;
14251
14251
  (U = W(this, BU)) == null || U.remove(), R(this, BU, null), R(this, PF, null), (l = W(this, Al)) == null || l.remove(), R(this, Al, null);
14252
14252
  }
14253
- }, BU = /* @__PURE__ */ new WeakMap(), PF = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Al = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), oU = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Bl = /* @__PURE__ */ new WeakSet(), GQ = function() {
14253
+ }, BU = /* @__PURE__ */ new WeakMap(), PF = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Al = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), oU = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Bl = /* @__PURE__ */ new WeakSet(), SQ = function() {
14254
14254
  const U = document.createElement("div"), l = W(this, oU)._signal;
14255
14255
  U.addEventListener("contextmenu", JU, {
14256
14256
  signal: l
@@ -14259,20 +14259,20 @@ let Ab = (Ed = class {
14259
14259
  const t = document.createElement("button");
14260
14260
  t.tabIndex = "0", t.role = "option", t.setAttribute("data-color", Z), t.title = d, t.setAttribute("data-l10n-id", W(Ed, Ec)[d]);
14261
14261
  const F = document.createElement("span");
14262
- t.append(F), F.className = "swatch", F.style.backgroundColor = Z, t.setAttribute("aria-selected", Z === W(this, Lc)), t.addEventListener("click", h(this, Bl, SQ).bind(this, Z), {
14262
+ t.append(F), F.className = "swatch", F.style.backgroundColor = Z, t.setAttribute("aria-selected", Z === W(this, Lc)), t.addEventListener("click", h(this, Bl, TQ).bind(this, Z), {
14263
14263
  signal: l
14264
14264
  }), U.append(t);
14265
14265
  }
14266
- return U.addEventListener("keydown", h(this, Bl, TQ).bind(this), {
14266
+ return U.addEventListener("keydown", h(this, Bl, XQ).bind(this), {
14267
14267
  signal: l
14268
14268
  }), U;
14269
- }, SQ = function(U, l) {
14269
+ }, TQ = function(U, l) {
14270
14270
  l.stopPropagation(), W(this, bs).dispatch("switchannotationeditorparams", {
14271
14271
  source: this,
14272
14272
  type: W(this, Dc),
14273
14273
  value: U
14274
14274
  });
14275
- }, TQ = function(U) {
14275
+ }, XQ = function(U) {
14276
14276
  Ed._keyboardManager.exec(this, U);
14277
14277
  }, Et = function(U) {
14278
14278
  if (W(this, Bl, zZ)) {
@@ -14285,7 +14285,7 @@ let Ab = (Ed = class {
14285
14285
  W(this, Al).classList.remove("hidden");
14286
14286
  return;
14287
14287
  }
14288
- const l = R(this, Al, h(this, Bl, GQ).call(this));
14288
+ const l = R(this, Al, h(this, Bl, SQ).call(this));
14289
14289
  W(this, BU).append(l);
14290
14290
  }, oN = function(U) {
14291
14291
  var l;
@@ -14293,13 +14293,13 @@ let Ab = (Ed = class {
14293
14293
  }, zZ = function() {
14294
14294
  return W(this, Al) && !W(this, Al).classList.contains("hidden");
14295
14295
  }, e(Ed, Ec, null), Ed);
14296
- var AW, XV, ht, C0, _W, jd, pV, uV, lc, bU, UU, bd, qW, bt, Xd, mW, mU, hn, Ql, Ei, YV, _b, qb, yN, wi, lF, JZ, dc, $b, bn, $W, le, de, Ue, Ze, te;
14296
+ var AW, XV, ht, C0, _W, jd, pV, uV, lc, bU, UU, bd, qW, bt, Xd, mW, mU, hn, Ql, wi, YV, _b, qb, yN, Ci, lF, JZ, dc, $b, bn, $W, le, de, Ue, Ze, te;
14297
14297
  const od = class id extends Il {
14298
14298
  constructor(l) {
14299
14299
  super({
14300
14300
  ...l,
14301
14301
  name: "highlightEditor"
14302
- }), e(this, Ql), e(this, AW, null), e(this, XV, 0), e(this, ht), e(this, C0, null), e(this, _W, null), e(this, jd, null), e(this, pV, null), e(this, uV, 0), e(this, lc, null), e(this, bU, null), e(this, UU, null), e(this, bd, !1), e(this, qW, null), e(this, bt), e(this, Xd, null), e(this, mW, ""), e(this, mU), e(this, hn, ""), this.color = l.color || id._defaultColor, R(this, mU, l.thickness || id._defaultThickness), R(this, bt, l.opacity || id._defaultOpacity), R(this, ht, l.boxes || null), R(this, hn, l.methodOfCreation || ""), R(this, mW, l.text || ""), this._isDraggable = !1, l.highlightId > -1 ? (R(this, bd, !0), h(this, Ql, YV).call(this, l), h(this, Ql, lF).call(this)) : W(this, ht) && (R(this, AW, l.anchorNode), R(this, XV, l.anchorOffset), R(this, pV, l.focusNode), R(this, uV, l.focusOffset), h(this, Ql, Ei).call(this), h(this, Ql, lF).call(this), this.rotate(this.rotation));
14302
+ }), e(this, Ql), e(this, AW, null), e(this, XV, 0), e(this, ht), e(this, C0, null), e(this, _W, null), e(this, jd, null), e(this, pV, null), e(this, uV, 0), e(this, lc, null), e(this, bU, null), e(this, UU, null), e(this, bd, !1), e(this, qW, null), e(this, bt), e(this, Xd, null), e(this, mW, ""), e(this, mU), e(this, hn, ""), this.color = l.color || id._defaultColor, R(this, mU, l.thickness || id._defaultThickness), R(this, bt, l.opacity || id._defaultOpacity), R(this, ht, l.boxes || null), R(this, hn, l.methodOfCreation || ""), R(this, mW, l.text || ""), this._isDraggable = !1, l.highlightId > -1 ? (R(this, bd, !0), h(this, Ql, YV).call(this, l), h(this, Ql, lF).call(this)) : W(this, ht) && (R(this, AW, l.anchorNode), R(this, XV, l.anchorOffset), R(this, pV, l.focusNode), R(this, uV, l.focusOffset), h(this, Ql, wi).call(this), h(this, Ql, lF).call(this), this.rotate(this.rotation));
14303
14303
  }
14304
14304
  static get _keyboardManager() {
14305
14305
  const l = id.prototype;
@@ -14393,7 +14393,7 @@ const od = class id extends Il {
14393
14393
  this.annotationElementId || this.parent.addUndoableEditor(this), l && this.div.focus();
14394
14394
  }
14395
14395
  remove() {
14396
- h(this, Ql, wi).call(this), this._reportTelemetry({
14396
+ h(this, Ql, Ci).call(this), this._reportTelemetry({
14397
14397
  action: "deleted"
14398
14398
  }), super.remove();
14399
14399
  }
@@ -14403,7 +14403,7 @@ const od = class id extends Il {
14403
14403
  setParent(l) {
14404
14404
  var d;
14405
14405
  let Z = !1;
14406
- this.parent && !l ? h(this, Ql, wi).call(this) : l && (h(this, Ql, lF).call(this, l), Z = !this.parent && ((d = this.div) == null ? void 0 : d.classList.contains("selectedEditor"))), super.setParent(l), this.show(this._isVisible), Z && this.select();
14406
+ this.parent && !l ? h(this, Ql, Ci).call(this) : l && (h(this, Ql, lF).call(this, l), Z = !this.parent && ((d = this.div) == null ? void 0 : d.classList.contains("selectedEditor"))), super.setParent(l), this.show(this._isVisible), Z && this.select();
14407
14407
  }
14408
14408
  rotate(l) {
14409
14409
  var d, Z, t;
@@ -14519,7 +14519,7 @@ const od = class id extends Il {
14519
14519
  signal: Q
14520
14520
  }), Z.addEventListener("pointermove", h(this, JZ, Ue).bind(this, l), {
14521
14521
  signal: Q
14522
- }), this._freeHighlight = new Di({
14522
+ }), this._freeHighlight = new Ei({
14523
14523
  x: t,
14524
14524
  y: F
14525
14525
  }, [c, a, s, n], l.scale, this._defaultThickness / 2, d, 1e-3), {
@@ -14574,7 +14574,7 @@ const od = class id extends Il {
14574
14574
  deleted: !1,
14575
14575
  popupRef: o
14576
14576
  };
14577
- } else if (l instanceof YR) {
14577
+ } else if (l instanceof BR) {
14578
14578
  const {
14579
14579
  data: {
14580
14580
  inkLists: S,
@@ -14624,13 +14624,13 @@ const od = class id extends Il {
14624
14624
  width: (V[G + 2] - V[G]) / b,
14625
14625
  height: (V[G + 1] - V[G + 5]) / m
14626
14626
  });
14627
- h(t = N, Ql, Ei).call(t), h(F = N, Ql, lF).call(F), N.rotate(N.rotation);
14627
+ h(t = N, Ql, wi).call(t), h(F = N, Ql, lF).call(F), N.rotate(N.rotation);
14628
14628
  } else if (Q) {
14629
14629
  R(N, bd, !0);
14630
14630
  const S = Q[0], G = {
14631
14631
  x: S[0] - M,
14632
14632
  y: m - (S[1] - J)
14633
- }, T = new Di(G, [0, 0, b, m], 1, W(N, mU) / 2, !0, 1e-3);
14633
+ }, T = new Ei(G, [0, 0, b, m], 1, W(N, mU) / 2, !0, 1e-3);
14634
14634
  for (let Y = 0, o = S.length; Y < o; Y += 2)
14635
14635
  G.x = S[Y] - M, G.y = m - (S[Y + 1] - J), T.add(G);
14636
14636
  const {
@@ -14687,10 +14687,10 @@ const od = class id extends Il {
14687
14687
  return !1;
14688
14688
  }
14689
14689
  };
14690
- AW = /* @__PURE__ */ new WeakMap(), XV = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), C0 = /* @__PURE__ */ new WeakMap(), _W = /* @__PURE__ */ new WeakMap(), jd = /* @__PURE__ */ new WeakMap(), pV = /* @__PURE__ */ new WeakMap(), uV = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), bU = /* @__PURE__ */ new WeakMap(), UU = /* @__PURE__ */ new WeakMap(), bd = /* @__PURE__ */ new WeakMap(), qW = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Xd = /* @__PURE__ */ new WeakMap(), mW = /* @__PURE__ */ new WeakMap(), mU = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakSet(), Ei = function() {
14691
- const U = new Ii(W(this, ht), 1e-3);
14690
+ AW = /* @__PURE__ */ new WeakMap(), XV = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), C0 = /* @__PURE__ */ new WeakMap(), _W = /* @__PURE__ */ new WeakMap(), jd = /* @__PURE__ */ new WeakMap(), pV = /* @__PURE__ */ new WeakMap(), uV = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), bU = /* @__PURE__ */ new WeakMap(), UU = /* @__PURE__ */ new WeakMap(), bd = /* @__PURE__ */ new WeakMap(), qW = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Xd = /* @__PURE__ */ new WeakMap(), mW = /* @__PURE__ */ new WeakMap(), mU = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakSet(), wi = function() {
14691
+ const U = new Di(W(this, ht), 1e-3);
14692
14692
  R(this, bU, U.getOutlines()), [this.x, this.y, this.width, this.height] = W(this, bU).box;
14693
- const l = new Ii(W(this, ht), 25e-4, 1e-3, this._uiManager.direction === "ltr");
14693
+ const l = new Di(W(this, ht), 25e-4, 1e-3, this._uiManager.direction === "ltr");
14694
14694
  R(this, jd, l.getOutlines());
14695
14695
  const {
14696
14696
  lastPoint: d
@@ -14801,7 +14801,7 @@ AW = /* @__PURE__ */ new WeakMap(), XV = /* @__PURE__ */ new WeakMap(), ht = /*
14801
14801
  }), this.fixAndSetPosition();
14802
14802
  const [l, d] = this.parentDimensions;
14803
14803
  this.setDims(this.width * l, this.height * d);
14804
- }, wi = function() {
14804
+ }, Ci = function() {
14805
14805
  W(this, UU) === null || !this.parent || (this.parent.drawLayer.remove(W(this, UU)), R(this, UU, null), this.parent.drawLayer.remove(W(this, Xd)), R(this, Xd, null));
14806
14806
  }, lF = function(U = this.parent) {
14807
14807
  W(this, UU) === null && ({
@@ -14920,10 +14920,10 @@ class SM {
14920
14920
  }
14921
14921
  }
14922
14922
  m0 = /* @__PURE__ */ new WeakMap();
14923
- var ZU, MW, Fd, r0, x0, qZ, $Z, lt, j0, ml, Ci, XQ, ri, JW, zN, en, la, M0;
14923
+ var ZU, MW, Fd, r0, x0, qZ, $Z, lt, j0, ml, ri, pQ, xi, JW, zN, en, la, M0;
14924
14924
  const qd = class P extends Il {
14925
14925
  constructor(l) {
14926
- super(l), e(this, ml), e(this, ZU, null), e(this, MW), H(this, "_drawId", null), R(this, MW, l.mustBeCommitted || !1), l.drawOutlines && (h(this, ml, Ci).call(this, l), h(this, ml, JW).call(this));
14926
+ super(l), e(this, ml), e(this, ZU, null), e(this, MW), H(this, "_drawId", null), R(this, MW, l.mustBeCommitted || !1), l.drawOutlines && (h(this, ml, ri).call(this, l), h(this, ml, JW).call(this));
14927
14927
  }
14928
14928
  static _mergeSVGProperties(l, d) {
14929
14929
  const Z = new Set(Object.keys(l));
@@ -15041,7 +15041,7 @@ const qd = class P extends Il {
15041
15041
  this.annotationElementId || this.parent.addUndoableEditor(this), this._isDraggable = !0, W(this, MW) && (R(this, MW, !1), this.commit(), this.parent.setSelected(this), l && this.isOnScreen && this.div.focus());
15042
15042
  }
15043
15043
  remove() {
15044
- h(this, ml, ri).call(this), super.remove();
15044
+ h(this, ml, xi).call(this), super.remove();
15045
15045
  }
15046
15046
  rebuild() {
15047
15047
  this.parent && (super.rebuild(), this.div !== null && (h(this, ml, JW).call(this), h(this, ml, la).call(this, W(this, ZU).box), this.isAttachedToDOM || this.parent.add(this)));
@@ -15049,7 +15049,7 @@ const qd = class P extends Il {
15049
15049
  setParent(l) {
15050
15050
  var d;
15051
15051
  let Z = !1;
15052
- this.parent && !l ? (this._uiManager.removeShouldRescale(this), h(this, ml, ri).call(this)) : l && (this._uiManager.addShouldRescale(this), h(this, ml, JW).call(this, l), Z = !this.parent && ((d = this.div) == null ? void 0 : d.classList.contains("selectedEditor"))), super.setParent(l), Z && this.select();
15052
+ this.parent && !l ? (this._uiManager.removeShouldRescale(this), h(this, ml, xi).call(this)) : l && (this._uiManager.addShouldRescale(this), h(this, ml, JW).call(this, l), Z = !this.parent && ((d = this.div) == null ? void 0 : d.classList.contains("selectedEditor"))), super.setParent(l), Z && this.select();
15053
15053
  }
15054
15054
  rotate() {
15055
15055
  this.parent && this.parent.drawLayer.updateProperties(this._drawId, P._mergeSVGProperties({
@@ -15201,7 +15201,7 @@ const qd = class P extends Il {
15201
15201
  pageY: n
15202
15202
  }
15203
15203
  } = d.viewport, V = this.deserializeDraw(s, n, c, a, this._INNER_MARGIN, l), Q = await super.deserialize(l, d, Z);
15204
- return Q.createDrawingOptions(l), h(t = Q, ml, Ci).call(t, {
15204
+ return Q.createDrawingOptions(l), h(t = Q, ml, ri).call(t, {
15205
15205
  drawOutlines: V
15206
15206
  }), h(F = Q, ml, JW).call(F), Q.onScaleChanging(), Q.rotate(), Q;
15207
15207
  }
@@ -15218,18 +15218,18 @@ const qd = class P extends Il {
15218
15218
  return !1;
15219
15219
  }
15220
15220
  };
15221
- ZU = /* @__PURE__ */ new WeakMap(), MW = /* @__PURE__ */ new WeakMap(), Fd = /* @__PURE__ */ new WeakMap(), r0 = /* @__PURE__ */ new WeakMap(), x0 = /* @__PURE__ */ new WeakMap(), qZ = /* @__PURE__ */ new WeakMap(), $Z = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), j0 = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakSet(), Ci = function({
15221
+ ZU = /* @__PURE__ */ new WeakMap(), MW = /* @__PURE__ */ new WeakMap(), Fd = /* @__PURE__ */ new WeakMap(), r0 = /* @__PURE__ */ new WeakMap(), x0 = /* @__PURE__ */ new WeakMap(), qZ = /* @__PURE__ */ new WeakMap(), $Z = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), j0 = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakSet(), ri = function({
15222
15222
  drawOutlines: U,
15223
15223
  drawId: l,
15224
15224
  drawingOptions: d
15225
15225
  }) {
15226
- R(this, ZU, U), this._drawingOptions || (this._drawingOptions = d), l >= 0 ? (this._drawId = l, this.parent.drawLayer.finalizeDraw(l, U.defaultProperties)) : this._drawId = h(this, ml, XQ).call(this, U, this.parent), h(this, ml, la).call(this, U.box);
15227
- }, XQ = function(U, l) {
15226
+ R(this, ZU, U), this._drawingOptions || (this._drawingOptions = d), l >= 0 ? (this._drawId = l, this.parent.drawLayer.finalizeDraw(l, U.defaultProperties)) : this._drawId = h(this, ml, pQ).call(this, U, this.parent), h(this, ml, la).call(this, U.box);
15227
+ }, pQ = function(U, l) {
15228
15228
  const {
15229
15229
  id: d
15230
15230
  } = l.drawLayer.draw(qd._mergeSVGProperties(this._drawingOptions.toSVGProperties(), U.defaultSVGProperties), !1, !1);
15231
15231
  return d;
15232
- }, ri = function() {
15232
+ }, xi = function() {
15233
15233
  this._drawId === null || !this.parent || (this.parent.drawLayer.remove(this._drawId), this._drawId = null, this._drawingOptions.reset());
15234
15234
  }, JW = function(U = this.parent) {
15235
15235
  if (!(this._drawId !== null && this.parent === U)) {
@@ -15237,7 +15237,7 @@ ZU = /* @__PURE__ */ new WeakMap(), MW = /* @__PURE__ */ new WeakMap(), Fd = /*
15237
15237
  this.parent.drawLayer.updateParent(this._drawId, U.drawLayer);
15238
15238
  return;
15239
15239
  }
15240
- this._drawingOptions.updateAll(), this._drawId = h(this, ml, XQ).call(this, W(this, ZU), U);
15240
+ this._drawingOptions.updateAll(), this._drawId = h(this, ml, pQ).call(this, W(this, ZU), U);
15241
15241
  }
15242
15242
  }, zN = function([U, l, d, Z]) {
15243
15243
  const {
@@ -15775,13 +15775,13 @@ const uM = class ne extends SM {
15775
15775
  };
15776
15776
  TW = /* @__PURE__ */ new WeakMap();
15777
15777
  let YM = uM;
15778
- var xi, Ve;
15778
+ var ji, Ve;
15779
15779
  const Jn = class Qe extends TM {
15780
15780
  constructor(l) {
15781
15781
  super({
15782
15782
  ...l,
15783
15783
  name: "inkEditor"
15784
- }), e(this, xi), this._willKeepAspectRatio = !0;
15784
+ }), e(this, ji), this._willKeepAspectRatio = !0;
15785
15785
  }
15786
15786
  static initialize(l, d) {
15787
15787
  Il.initialize(l, d), this._defaultDrawingOptions = new YM(d.viewParameters);
@@ -15804,7 +15804,7 @@ const Jn = class Qe extends TM {
15804
15804
  }
15805
15805
  static async deserialize(l, d, Z) {
15806
15806
  let t = null;
15807
- if (l instanceof YR) {
15807
+ if (l instanceof BR) {
15808
15808
  const {
15809
15809
  data: {
15810
15810
  inkLists: c,
@@ -15899,7 +15899,7 @@ const Jn = class Qe extends TM {
15899
15899
  rotation: this.rotation,
15900
15900
  structTreeParentId: this._structTreeParentId
15901
15901
  };
15902
- return l ? s : this.annotationElementId && !h(this, xi, Ve).call(this, s) ? null : (s.id = this.annotationElementId, s);
15902
+ return l ? s : this.annotationElementId && !h(this, ji, Ve).call(this, s) ? null : (s.id = this.annotationElementId, s);
15903
15903
  }
15904
15904
  renderAnnotationElement(l) {
15905
15905
  const {
@@ -15913,7 +15913,7 @@ const Jn = class Qe extends TM {
15913
15913
  }), null;
15914
15914
  }
15915
15915
  };
15916
- xi = /* @__PURE__ */ new WeakSet(), Ve = function(U) {
15916
+ ji = /* @__PURE__ */ new WeakSet(), Ve = function(U) {
15917
15917
  const {
15918
15918
  color: l,
15919
15919
  thickness: d,
@@ -15923,7 +15923,7 @@ xi = /* @__PURE__ */ new WeakSet(), Ve = function(U) {
15923
15923
  return this._hasBeenMoved || this._hasBeenResized || U.color.some((F, c) => F !== l[c]) || U.thickness !== d || U.opacity !== Z || U.pageIndex !== t;
15924
15924
  }, H(Jn, "_type", "ink"), H(Jn, "_editorType", dl.INK), H(Jn, "_defaultDrawingOptions", null);
15925
15925
  let BM = Jn;
15926
- var ol, Nd, hF, et, SF, XW, SZ, aZ, sU, ta, Xl, wc, Cc, Gn, ji, oV, Oi, Sn, ie;
15926
+ var ol, Nd, hF, et, SF, XW, SZ, aZ, sU, ta, Xl, wc, Cc, Gn, Oi, oV, gi, Sn, ie;
15927
15927
  const Tn = class extends Il {
15928
15928
  constructor(l) {
15929
15929
  super({
@@ -16026,7 +16026,7 @@ const Tn = class extends Il {
16026
16026
  if (this.div)
16027
16027
  return this.div;
16028
16028
  let l, d;
16029
- if (this.width && (l = this.x, d = this.y), super.render(), this.div.hidden = !0, this.div.setAttribute("role", "figure"), this.addAltTextButton(), W(this, ol) ? h(this, Xl, ji).call(this) : h(this, Xl, Gn).call(this), this.width && !this.annotationElementId) {
16029
+ if (this.width && (l = this.x, d = this.y), super.render(), this.div.hidden = !0, this.div.setAttribute("role", "figure"), this.addAltTextButton(), W(this, ol) ? h(this, Xl, Oi).call(this) : h(this, Xl, Gn).call(this), this.width && !this.annotationElementId) {
16030
16030
  const [Z, t] = this.parentDimensions;
16031
16031
  this.setAt(l * Z, d * t, this.width * Z, this.height * t);
16032
16032
  }
@@ -16037,7 +16037,7 @@ const Tn = class extends Il {
16037
16037
  }
16038
16038
  onScaleChanging() {
16039
16039
  this.parent && (W(this, aZ) !== null && clearTimeout(W(this, aZ)), R(this, aZ, setTimeout(() => {
16040
- R(this, aZ, null), h(this, Xl, Oi).call(this);
16040
+ R(this, aZ, null), h(this, Xl, gi).call(this);
16041
16041
  }, 200)));
16042
16042
  }
16043
16043
  copyCanvas(l, d, Z = !1) {
@@ -16046,7 +16046,7 @@ const Tn = class extends Il {
16046
16046
  const {
16047
16047
  width: F,
16048
16048
  height: c
16049
- } = W(this, ol), a = new TR();
16049
+ } = W(this, ol), a = new XR();
16050
16050
  let s = W(this, ol), n = F, V = c, Q = null;
16051
16051
  if (d) {
16052
16052
  if (F > d || c > d) {
@@ -16111,7 +16111,7 @@ const Tn = class extends Il {
16111
16111
  }
16112
16112
  } = l, u = T.querySelector("canvas"), Y = Z.imageManager.getFromCanvas(T.id, u);
16113
16113
  u.remove();
16114
- const o = ((t = await d._structTree.getAriaAttributes(`${MR}${J}`)) == null ? void 0 : t.get("aria-label")) || "";
16114
+ const o = ((t = await d._structTree.getAriaAttributes(`${JR}${J}`)) == null ? void 0 : t.get("aria-label")) || "";
16115
16115
  F = l = {
16116
16116
  annotationType: dl.STAMP,
16117
16117
  bitmapId: Y.id,
@@ -16197,7 +16197,7 @@ ol = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), hF = /*
16197
16197
  this.remove();
16198
16198
  return;
16199
16199
  }
16200
- R(this, ol, U.bitmap), l || (R(this, Nd, U.id), R(this, sU, U.isSvg)), U.file && R(this, XW, U.file.name), h(this, Xl, ji).call(this);
16200
+ R(this, ol, U.bitmap), l || (R(this, Nd, U.id), R(this, sU, U.isSvg)), U.file && R(this, XW, U.file.name), h(this, Xl, Oi).call(this);
16201
16201
  }, Cc = function() {
16202
16202
  if (R(this, hF, null), this._uiManager.enableWaiting(!1), !!W(this, SZ)) {
16203
16203
  if (this._uiManager.useNewAltTextWhenAddingImage && this._uiManager.useNewAltTextFlow && W(this, ol)) {
@@ -16260,7 +16260,7 @@ ol = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), hF = /*
16260
16260
  signal: l
16261
16261
  });
16262
16262
  }).finally(() => h(this, Xl, Cc).call(this))), U.click();
16263
- }, ji = function() {
16263
+ }, Oi = function() {
16264
16264
  var U;
16265
16265
  const {
16266
16266
  div: l
@@ -16279,7 +16279,7 @@ ol = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), hF = /*
16279
16279
  const [a, s] = this.parentDimensions;
16280
16280
  this.setDims(d * a / t, Z * s / F), this._uiManager.enableWaiting(!1);
16281
16281
  const n = R(this, SZ, document.createElement("canvas"));
16282
- n.setAttribute("role", "img"), this.addContainer(n), this.width = d / t, this.height = Z / F, (U = this._initialOptions) != null && U.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, (!this._uiManager.useNewAltTextWhenAddingImage || !this._uiManager.useNewAltTextFlow || this.annotationElementId) && (l.hidden = !1), h(this, Xl, Oi).call(this), W(this, ta) || (this.parent.addUndoableEditor(this), R(this, ta, !0)), this._reportTelemetry({
16282
+ n.setAttribute("role", "img"), this.addContainer(n), this.width = d / t, this.height = Z / F, (U = this._initialOptions) != null && U.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, (!this._uiManager.useNewAltTextWhenAddingImage || !this._uiManager.useNewAltTextFlow || this.annotationElementId) && (l.hidden = !1), h(this, Xl, gi).call(this), W(this, ta) || (this.parent.addUndoableEditor(this), R(this, ta, !0)), this._reportTelemetry({
16283
16283
  action: "inserted_image"
16284
16284
  }), W(this, XW) && n.setAttribute("aria-label", W(this, XW));
16285
16285
  }, oV = function(U, l) {
@@ -16295,11 +16295,11 @@ ol = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), hF = /*
16295
16295
  n.getContext("2d").drawImage(c, 0, 0, a, s, 0, 0, t, F), c = n.transferToImageBitmap();
16296
16296
  }
16297
16297
  return c;
16298
- }, Oi = function() {
16298
+ }, gi = function() {
16299
16299
  const [U, l] = this.parentDimensions, {
16300
16300
  width: d,
16301
16301
  height: Z
16302
- } = this, t = new TR(), F = Math.ceil(d * U * t.sx), c = Math.ceil(Z * l * t.sy), a = W(this, SZ);
16302
+ } = this, t = new XR(), F = Math.ceil(d * U * t.sx), c = Math.ceil(Z * l * t.sy), a = W(this, SZ);
16303
16303
  if (!a || a.width === F && a.height === c)
16304
16304
  return;
16305
16305
  a.width = F, a.height = c;
@@ -16337,7 +16337,7 @@ ol = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), hF = /*
16337
16337
  };
16338
16338
  }, H(Tn, "_type", "stamp"), H(Tn, "_editorType", dl.STAMP);
16339
16339
  let oM = Tn;
16340
- var fF, rc, lZ, wt, LZ, QU, Ct, xc, AF, yU, IZ, Sd, DZ, j, iU, rt, jl, LN, kU, pQ, uQ, es;
16340
+ var fF, rc, lZ, wt, LZ, QU, Ct, xc, AF, yU, IZ, Sd, DZ, j, iU, rt, jl, LN, kU, uQ, YQ, es;
16341
16341
  let yM = (iU = class {
16342
16342
  constructor({
16343
16343
  uiManager: U,
@@ -16580,7 +16580,7 @@ let yM = (iU = class {
16580
16580
  const {
16581
16581
  offsetX: d,
16582
16582
  offsetY: Z
16583
- } = h(this, jl, uQ).call(this), t = this.getNextId(), F = h(this, jl, pQ).call(this, {
16583
+ } = h(this, jl, YQ).call(this), t = this.getNextId(), F = h(this, jl, uQ).call(this, {
16584
16584
  parent: this,
16585
16585
  id: t,
16586
16586
  x: d,
@@ -16596,7 +16596,7 @@ let yM = (iU = class {
16596
16596
  return await ((l = W(iU, rt).get(U.annotationType ?? U.annotationEditorType)) == null ? void 0 : l.deserialize(U, this, W(this, j))) || null;
16597
16597
  }
16598
16598
  createAndAddNewEditor(U, l, d = {}) {
16599
- const Z = this.getNextId(), t = h(this, jl, pQ).call(this, {
16599
+ const Z = this.getNextId(), t = h(this, jl, uQ).call(this, {
16600
16600
  parent: this,
16601
16601
  id: Z,
16602
16602
  x: U.offsetX,
@@ -16608,7 +16608,7 @@ let yM = (iU = class {
16608
16608
  return t && this.add(t), t;
16609
16609
  }
16610
16610
  addNewEditor() {
16611
- this.createAndAddNewEditor(h(this, jl, uQ).call(this), !0);
16611
+ this.createAndAddNewEditor(h(this, jl, YQ).call(this), !0);
16612
16612
  }
16613
16613
  setSelected(U) {
16614
16614
  W(this, j).setSelected(U);
@@ -16755,10 +16755,10 @@ let yM = (iU = class {
16755
16755
  }
16756
16756
  }, kU = function() {
16757
16757
  return W(iU, rt).get(W(this, j).getMode());
16758
- }, pQ = function(U) {
16758
+ }, uQ = function(U) {
16759
16759
  const l = W(this, jl, kU);
16760
16760
  return l ? new l.prototype.constructor(U) : null;
16761
- }, uQ = function() {
16761
+ }, YQ = function() {
16762
16762
  const {
16763
16763
  x: U,
16764
16764
  y: l,
@@ -16773,7 +16773,7 @@ let yM = (iU = class {
16773
16773
  for (const U of W(this, QU).values())
16774
16774
  U.isEmpty() && U.remove();
16775
16775
  }, H(iU, "_initialized", !1), e(iU, rt, new Map([MM, BM, oM, kN].map((U) => [U._editorType, U]))), iU);
16776
- var zU, ms, Bd, _F, YQ, nd, IN, xt, BQ, DN, oQ;
16776
+ var zU, ms, Bd, _F, BQ, nd, IN, xt, oQ, DN, yQ;
16777
16777
  let kM = (nd = class {
16778
16778
  constructor({
16779
16779
  pageIndex: U
@@ -16793,10 +16793,10 @@ let kM = (nd = class {
16793
16793
  }
16794
16794
  }
16795
16795
  static get _svgFactory() {
16796
- return Ul(this, "_svgFactory", new uR());
16796
+ return Ul(this, "_svgFactory", new YR());
16797
16797
  }
16798
16798
  draw(U, l = !1, d = !1) {
16799
- const Z = pd(this, ms)._++, t = h(this, xt, BQ).call(this), F = nd._svgFactory.createElement("defs");
16799
+ const Z = pd(this, ms)._++, t = h(this, xt, oQ).call(this), F = nd._svgFactory.createElement("defs");
16800
16800
  t.append(F);
16801
16801
  const c = nd._svgFactory.createElement("path");
16802
16802
  F.append(c);
@@ -16809,7 +16809,7 @@ let kM = (nd = class {
16809
16809
  };
16810
16810
  }
16811
16811
  drawOutline(U, l) {
16812
- const d = pd(this, ms)._++, Z = h(this, xt, BQ).call(this), t = nd._svgFactory.createElement("defs");
16812
+ const d = pd(this, ms)._++, Z = h(this, xt, oQ).call(this), t = nd._svgFactory.createElement("defs");
16813
16813
  Z.append(t);
16814
16814
  const F = nd._svgFactory.createElement("path");
16815
16815
  t.append(F);
@@ -16843,7 +16843,7 @@ let kM = (nd = class {
16843
16843
  path: c
16844
16844
  } = l, a = typeof U == "number" ? W(this, Bd).get(U) : U;
16845
16845
  if (a) {
16846
- if (Z && h(this, xt, oQ).call(this, a, Z), t && h(d = nd, YQ, IN).call(d, a, t), F) {
16846
+ if (Z && h(this, xt, yQ).call(this, a, Z), t && h(d = nd, BQ, IN).call(d, a, t), F) {
16847
16847
  const {
16848
16848
  classList: s
16849
16849
  } = a;
@@ -16852,7 +16852,7 @@ let kM = (nd = class {
16852
16852
  }
16853
16853
  if (c) {
16854
16854
  const s = a.firstChild.firstChild;
16855
- h(this, xt, oQ).call(this, s, c);
16855
+ h(this, xt, yQ).call(this, s, c);
16856
16856
  }
16857
16857
  }
16858
16858
  }
@@ -16871,12 +16871,12 @@ let kM = (nd = class {
16871
16871
  U.remove();
16872
16872
  W(this, Bd).clear(), W(this, _F).clear();
16873
16873
  }
16874
- }, zU = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), Bd = /* @__PURE__ */ new WeakMap(), _F = /* @__PURE__ */ new WeakMap(), YQ = /* @__PURE__ */ new WeakSet(), IN = function(U, [l, d, Z, t]) {
16874
+ }, zU = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), Bd = /* @__PURE__ */ new WeakMap(), _F = /* @__PURE__ */ new WeakMap(), BQ = /* @__PURE__ */ new WeakSet(), IN = function(U, [l, d, Z, t]) {
16875
16875
  const {
16876
16876
  style: F
16877
16877
  } = U;
16878
16878
  F.top = `${100 * d}%`, F.left = `${100 * l}%`, F.width = `${100 * Z}%`, F.height = `${100 * t}%`;
16879
- }, xt = /* @__PURE__ */ new WeakSet(), BQ = function() {
16879
+ }, xt = /* @__PURE__ */ new WeakSet(), oQ = function() {
16880
16880
  const U = nd._svgFactory.create(1, 1, !0);
16881
16881
  return W(this, zU).append(U), U.setAttribute("aria-hidden", !0), U;
16882
16882
  }, DN = function(U, l) {
@@ -16886,12 +16886,12 @@ let kM = (nd = class {
16886
16886
  d.setAttribute("id", Z), d.setAttribute("clipPathUnits", "objectBoundingBox");
16887
16887
  const t = nd._svgFactory.createElement("use");
16888
16888
  return d.append(t), t.setAttribute("href", `#${l}`), t.classList.add("clip"), Z;
16889
- }, oQ = function(U, l) {
16889
+ }, yQ = function(U, l) {
16890
16890
  for (const [d, Z] of Object.entries(l))
16891
16891
  Z === null ? U.removeAttribute(d) : U.setAttribute(d, Z);
16892
- }, e(nd, YQ), nd);
16892
+ }, e(nd, BQ), nd);
16893
16893
  globalThis.pdfjsTestingUtils = {
16894
- HighlightOutliner: Ii
16894
+ HighlightOutliner: Di
16895
16895
  };
16896
16896
  _.AbortException;
16897
16897
  _.AnnotationEditorLayer;
@@ -16904,7 +16904,7 @@ _.ColorPicker;
16904
16904
  _.DOMSVGFactory;
16905
16905
  _.DrawLayer;
16906
16906
  _.FeatureTest;
16907
- var yQ = _.GlobalWorkerOptions;
16907
+ var kQ = _.GlobalWorkerOptions;
16908
16908
  _.ImageKind;
16909
16909
  _.InvalidPDFException;
16910
16910
  _.MissingPDFException;
@@ -16980,7 +16980,7 @@ function EN(U) {
16980
16980
  function wN(U) {
16981
16981
  return U ? Object.prototype.hasOwnProperty.call(U, "_pdfInfo") : !1;
16982
16982
  }
16983
- function kQ(U) {
16983
+ function zQ(U) {
16984
16984
  U == null || U.querySelectorAll("canvas").forEach((l) => {
16985
16985
  var d;
16986
16986
  l.width = 1, l.height = 1, (d = l.getContext("2d")) == null || d.clearRect(0, 0, 1, 1);
@@ -16994,7 +16994,7 @@ function Re({
16994
16994
  }) {
16995
16995
  const t = cV(null), F = cV(null);
16996
16996
  return Vm(async () => {
16997
- const c = kR(Z);
16997
+ const c = zR(Z);
16998
16998
  if (c) {
16999
16999
  if (wN(c)) {
17000
17000
  t.value = c;
@@ -17016,11 +17016,11 @@ function Re({
17016
17016
  else
17017
17017
  throw a;
17018
17018
  }
17019
- }), AQ(t, (c, a) => {
17019
+ }), _Q(t, (c, a) => {
17020
17020
  a == null || a.destroy();
17021
17021
  }), uh(() => {
17022
17022
  var c, a, s, n;
17023
- (c = F.value) != null && c.onPassword && (F.value.onPassword = null), (a = F.value) != null && a.onProgress && (F.value.onProgress = null), (s = F.value) == null || s.destroy(), wN(kR(Z)) || (n = t.value) == null || n.destroy();
17023
+ (c = F.value) != null && c.onPassword && (F.value.onPassword = null), (a = F.value) != null && a.onProgress && (F.value.onProgress = null), (s = F.value) == null || s.destroy(), wN(zR(Z)) || (n = t.value) == null || n.destroy();
17024
17024
  }), {
17025
17025
  doc: t
17026
17026
  };
@@ -17099,7 +17099,7 @@ Fa.d(Yl, {
17099
17099
  ),
17100
17100
  SimpleLinkService: () => (
17101
17101
  /* reexport */
17102
- BR
17102
+ oR
17103
17103
  ),
17104
17104
  SpreadMode: () => (
17105
17105
  /* reexport */
@@ -17122,7 +17122,7 @@ Fa.d(Yl, {
17122
17122
  vV
17123
17123
  )
17124
17124
  });
17125
- const xM = "auto", Ne = 1, CN = 1.1, jM = 0.1, OM = 10, zQ = 0, gM = 1.25, he = 40, be = 5, yl = {
17125
+ const xM = "auto", Ne = 1, CN = 1.1, jM = 0.1, OM = 10, LQ = 0, gM = 1.25, he = 40, be = 5, yl = {
17126
17126
  INITIAL: 0,
17127
17127
  RUNNING: 1,
17128
17128
  PAUSED: 2,
@@ -17409,9 +17409,9 @@ function sJ(U) {
17409
17409
  function Gs(U) {
17410
17410
  return lJ(U) ? dJ(U) ? tJ(U) ? RU.SPACE : UJ(U) || ZJ(U) || U === 95 ? RU.ALPHA_LETTER : RU.PUNCT : sJ(U) ? RU.THAI_LETTER : U === 160 ? RU.SPACE : RU.ALPHA_LETTER : FJ(U) ? RU.HAN_LETTER : cJ(U) ? RU.KATAKANA_LETTER : WJ(U) ? RU.HIRAGANA_LETTER : aJ(U) ? RU.HALFWIDTH_KATAKANA_LETTER : RU.ALPHA_LETTER;
17411
17411
  }
17412
- let LQ;
17412
+ let IQ;
17413
17413
  function nJ() {
17414
- return LQ || (LQ = " ¨ª¯²-µ¸-º¼-¾IJ-ijĿ-ŀʼnſDŽ-njDZ-dzʰ-ʸ˘-˝ˠ-ˤʹͺ;΄-΅·ϐ-ϖϰ-ϲϴ-ϵϹևٵ-ٸक़-य़ড়-ঢ়য়ਲ਼ਸ਼ਖ਼-ਜ਼ਫ਼ଡ଼-ଢ଼ำຳໜ-ໝ༌གྷཌྷདྷབྷཛྷཀྵჼᴬ-ᴮᴰ-ᴺᴼ-ᵍᵏ-ᵪᵸᶛ-ᶿẚ-ẛάέήίόύώΆ᾽-῁ΈΉ῍-῏ΐΊ῝-῟ΰΎ῭-`ΌΏ´-῾ - ‑‗․-… ″-‴‶-‷‼‾⁇-⁉⁗ ⁰-ⁱ⁴-₎ₐ-ₜ₨℀-℃℅-ℇ℉-ℓℕ-№ℙ-ℝ℠-™ℤΩℨK-ℭℯ-ℱℳ-ℹ℻-⅀ⅅ-ⅉ⅐-ⅿ↉∬-∭∯-∰〈-〉①-⓪⨌⩴-⩶⫝̸ⱼ-ⱽⵯ⺟⻳⼀-⿕ 〶〸-〺゛-゜ゟヿㄱ-ㆎ㆒-㆟㈀-㈞㈠-㉇㉐-㉾㊀-㏿ꚜ-ꚝꝰꟲ-ꟴꟸ-ꟹꭜ-ꭟꭩ豈-嗀塚晴凞-羽蘒諸逸-都飯-舘並-龎ff-stﬓ-ﬗיִײַ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷼︐-︙︰-﹄﹇-﹒﹔-﹦﹨-﹫ﹰ-ﹲﹴﹶ-ﻼ!-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ¢-₩"), LQ;
17414
+ return IQ || (IQ = " ¨ª¯²-µ¸-º¼-¾IJ-ijĿ-ŀʼnſDŽ-njDZ-dzʰ-ʸ˘-˝ˠ-ˤʹͺ;΄-΅·ϐ-ϖϰ-ϲϴ-ϵϹևٵ-ٸक़-य़ড়-ঢ়য়ਲ਼ਸ਼ਖ਼-ਜ਼ਫ਼ଡ଼-ଢ଼ำຳໜ-ໝ༌གྷཌྷདྷབྷཛྷཀྵჼᴬ-ᴮᴰ-ᴺᴼ-ᵍᵏ-ᵪᵸᶛ-ᶿẚ-ẛάέήίόύώΆ᾽-῁ΈΉ῍-῏ΐΊ῝-῟ΰΎ῭-`ΌΏ´-῾ - ‑‗․-… ″-‴‶-‷‼‾⁇-⁉⁗ ⁰-ⁱ⁴-₎ₐ-ₜ₨℀-℃℅-ℇ℉-ℓℕ-№ℙ-ℝ℠-™ℤΩℨK-ℭℯ-ℱℳ-ℹ℻-⅀ⅅ-ⅉ⅐-ⅿ↉∬-∭∯-∰〈-〉①-⓪⨌⩴-⩶⫝̸ⱼ-ⱽⵯ⺟⻳⼀-⿕ 〶〸-〺゛-゜ゟヿㄱ-ㆎ㆒-㆟㈀-㈞㈠-㉇㉐-㉾㊀-㏿ꚜ-ꚝꝰꟲ-ꟴꟸ-ꟹꭜ-ꭟꭩ豈-嗀塚晴凞-羽蘒諸逸-都飯-舘並-龎ff-stﬓ-ﬗיִײַ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷼︐-︙︰-﹄﹇-﹒﹔-﹦﹨-﹫ﹰ-ﹲﹴﹶ-ﻼ!-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ¢-₩"), IQ;
17415
17415
  }
17416
17416
  const KZ = {
17417
17417
  FOUND: 0,
@@ -17432,10 +17432,10 @@ const KZ = {
17432
17432
  "½": "1/2",
17433
17433
  "¾": "3/4"
17434
17434
  }, ON = /* @__PURE__ */ new Set([12441, 12442, 2381, 2509, 2637, 2765, 2893, 3021, 3149, 3277, 3387, 3388, 3405, 3530, 3642, 3770, 3972, 4153, 4154, 5908, 5940, 6098, 6752, 6980, 7082, 7083, 7154, 7155, 11647, 43014, 43052, 43204, 43347, 43456, 43766, 44013, 3158, 3953, 3954, 3962, 3963, 3964, 3965, 3968, 3956]);
17435
- let IQ;
17435
+ let DQ;
17436
17436
  const RJ = new RegExp("\\p{M}+", "gu"), NJ = new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})", "gu"), hJ = new RegExp("([^\\p{M}])\\p{M}*$", "u"), bJ = new RegExp("^\\p{M}*([^\\p{M}])", "u"), eJ = /[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g, gN = /* @__PURE__ */ new Map(), mJ = "[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]", KN = /* @__PURE__ */ new Map();
17437
- let DQ = null, EQ = null;
17438
- function wQ(U) {
17437
+ let EQ = null, wQ = null;
17438
+ function CQ(U) {
17439
17439
  const l = [];
17440
17440
  let d;
17441
17441
  for (; (d = eJ.exec(U)) !== null; ) {
@@ -17448,13 +17448,13 @@ function wQ(U) {
17448
17448
  }
17449
17449
  }
17450
17450
  let Z;
17451
- if (l.length === 0 && DQ)
17452
- Z = DQ;
17453
- else if (l.length > 0 && EQ)
17451
+ if (l.length === 0 && EQ)
17454
17452
  Z = EQ;
17453
+ else if (l.length > 0 && wQ)
17454
+ Z = wQ;
17455
17455
  else {
17456
17456
  const m = Object.keys(jN).join(""), M = nJ(), J = `([${m}])|([${M}])|((?:゙|゚)\\n)|(\\p{M}+(?:-\\n)?)|(\\p{Ll}-\\n\\p{Lu})|(\\S-\\n)|((?:\\p{Ideographic}|[぀-ヿ])\\n)|(\\n)`;
17457
- l.length === 0 ? Z = DQ = new RegExp(J + "|(\\u0000)", "gum") : Z = EQ = new RegExp(J + `|(${mJ})`, "gum");
17457
+ l.length === 0 ? Z = EQ = new RegExp(J + "|(\\u0000)", "gum") : Z = wQ = new RegExp(J + `|(${mJ})`, "gum");
17458
17458
  }
17459
17459
  const t = [];
17460
17460
  for (; (d = RJ.exec(U)) !== null; )
@@ -17528,14 +17528,14 @@ function MJ(U, l, d) {
17528
17528
  const n = F + t[a], V = c + t[s] + 1 - n;
17529
17529
  return [n, V];
17530
17530
  }
17531
- var cd, Wa, T0, ll, Je, gi, CQ, vN, Ge, Ki, HN, PN, Ss, jc, qF, fN, rQ, xQ, Ts, Se, jQ, OQ, Oc;
17531
+ var cd, Wa, T0, ll, Je, Ki, rQ, vN, Ge, vi, HN, PN, Ss, jc, qF, fN, xQ, jQ, Ts, Se, OQ, gQ, Oc;
17532
17532
  class JJ {
17533
17533
  constructor({
17534
17534
  linkService: l,
17535
17535
  eventBus: d,
17536
17536
  updateMatchesCountOnProgress: Z = !0
17537
17537
  }) {
17538
- e(this, ll), e(this, cd, null), e(this, Wa, !0), e(this, T0, 0), this._linkService = l, this._eventBus = d, R(this, Wa, Z), this.onIsPageVisible = null, h(this, ll, gi).call(this), d._on("find", h(this, ll, Je).bind(this)), d._on("findbarclose", h(this, ll, Se).bind(this));
17538
+ e(this, ll), e(this, cd, null), e(this, Wa, !0), e(this, T0, 0), this._linkService = l, this._eventBus = d, R(this, Wa, Z), this.onIsPageVisible = null, h(this, ll, Ki).call(this), d._on("find", h(this, ll, Je).bind(this)), d._on("findbarclose", h(this, ll, Se).bind(this));
17539
17539
  }
17540
17540
  get highlightMatches() {
17541
17541
  return this._highlightMatches;
@@ -17553,7 +17553,7 @@ class JJ {
17553
17553
  return W(this, cd);
17554
17554
  }
17555
17555
  setDocument(l) {
17556
- this._pdfDocument && h(this, ll, gi).call(this), l && (this._pdfDocument = l, this._firstPageCapability.resolve());
17556
+ this._pdfDocument && h(this, ll, Ki).call(this), l && (this._pdfDocument = l, this._firstPageCapability.resolve());
17557
17557
  }
17558
17558
  scrollMatchIntoView({
17559
17559
  element: l = null,
@@ -17573,8 +17573,8 @@ class JJ {
17573
17573
  match(l, d, Z) {
17574
17574
  const t = this._hasDiacritics[Z];
17575
17575
  let F = !1;
17576
- if (typeof l == "string" ? [F, l] = h(this, ll, Ki).call(this, l, t) : l = l.sort().reverse().map((Q) => {
17577
- const [i, N] = h(this, ll, Ki).call(this, Q, t);
17576
+ if (typeof l == "string" ? [F, l] = h(this, ll, vi).call(this, l, t) : l = l.sort().reverse().map((Q) => {
17577
+ const [i, N] = h(this, ll, vi).call(this, Q, t);
17578
17578
  return F || (F = i), `(${N})`;
17579
17579
  }).join("|"), !l)
17580
17580
  return;
@@ -17608,7 +17608,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17608
17608
  h(this, ll, qF).call(this), this._findTimeout = null;
17609
17609
  }, VJ);
17610
17610
  });
17611
- }, gi = function() {
17611
+ }, Ki = function() {
17612
17612
  this._highlightMatches = !1, this._scrollMatches = !1, this._pdfDocument = null, this._pageMatches = [], this._pageMatchesLength = [], R(this, T0, 0), R(this, cd, null), this._selected = {
17613
17613
  pageIdx: -1,
17614
17614
  matchIdx: -1
@@ -17617,11 +17617,11 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17617
17617
  matchIdx: null,
17618
17618
  wrapped: !1
17619
17619
  }, this._extractTextPromises = [], this._pageContents = [], this._pageDiffs = [], this._hasDiacritics = [], this._matchesCountTotal = 0, this._pagesToSearch = null, this._pendingFindMatches = /* @__PURE__ */ new Set(), this._resumePageIdx = null, this._dirtyMatch = !1, clearTimeout(this._findTimeout), this._findTimeout = null, this._firstPageCapability = Promise.withResolvers();
17620
- }, CQ = function() {
17620
+ }, rQ = function() {
17621
17621
  const {
17622
17622
  query: U
17623
17623
  } = W(this, cd);
17624
- return typeof U == "string" ? (U !== this._rawQuery && (this._rawQuery = U, [this._normalizedQuery] = wQ(U)), this._normalizedQuery) : (U || []).filter((l) => !!l).map((l) => wQ(l)[0]);
17624
+ return typeof U == "string" ? (U !== this._rawQuery && (this._rawQuery = U, [this._normalizedQuery] = CQ(U)), this._normalizedQuery) : (U || []).filter((l) => !!l).map((l) => CQ(l)[0]);
17625
17625
  }, vN = function(U) {
17626
17626
  var l;
17627
17627
  const d = U.query, Z = W(this, cd).query, t = typeof d;
@@ -17653,16 +17653,16 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17653
17653
  return !1;
17654
17654
  }
17655
17655
  return !0;
17656
- }, Ki = function(U, l) {
17656
+ }, vi = function(U, l) {
17657
17657
  const {
17658
17658
  matchDiacritics: d
17659
17659
  } = W(this, cd);
17660
17660
  let Z = !1;
17661
17661
  U = U.replaceAll(NJ, (F, c, a, s, n, V) => c ? `[ ]*\\${c}[ ]*` : a ? `[ ]*${a}[ ]*` : s ? "[ ]+" : d ? n || V : n ? ON.has(n.charCodeAt(0)) ? n : "" : l ? (Z = !0, `${V}\\p{M}*`) : V);
17662
17662
  const t = "[ ]*";
17663
- return U.endsWith(t) && (U = U.slice(0, U.length - t.length)), d && l && (IQ || (IQ = String.fromCharCode(...ON)), Z = !0, U = `${U}(?=[${IQ}]|[^\\p{M}]|$)`), [Z, U];
17663
+ return U.endsWith(t) && (U = U.slice(0, U.length - t.length)), d && l && (DQ || (DQ = String.fromCharCode(...ON)), Z = !0, U = `${U}(?=[${DQ}]|[^\\p{M}]|$)`), [Z, U];
17664
17664
  }, HN = function(U) {
17665
- const l = W(this, ll, CQ);
17665
+ const l = W(this, ll, rQ);
17666
17666
  if (l.length === 0)
17667
17667
  return;
17668
17668
  const d = this._pageContents[U], Z = this.match(l, d, U), t = this._pageMatches[U] = [], F = this._pageMatchesLength[U] = [], c = this._pageDiffs[U];
@@ -17672,9 +17672,9 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17672
17672
  }) => {
17673
17673
  const [V, Q] = MJ(c, s, n);
17674
17674
  Q && (t.push(V), F.push(Q));
17675
- }), W(this, cd).highlightAll && h(this, ll, Ss).call(this, U), this._resumePageIdx === U && (this._resumePageIdx = null, h(this, ll, rQ).call(this));
17675
+ }), W(this, cd).highlightAll && h(this, ll, Ss).call(this, U), this._resumePageIdx === U && (this._resumePageIdx = null, h(this, ll, xQ).call(this));
17676
17676
  const a = t.length;
17677
- this._matchesCountTotal += a, W(this, Wa) ? a > 0 && h(this, ll, OQ).call(this) : ++pd(this, T0)._ === this._linkService.pagesCount && h(this, ll, OQ).call(this);
17677
+ this._matchesCountTotal += a, W(this, Wa) ? a > 0 && h(this, ll, gQ).call(this) : ++pd(this, T0)._ === this._linkService.pagesCount && h(this, ll, gQ).call(this);
17678
17678
  }, PN = function() {
17679
17679
  if (this._extractTextPromises.length > 0)
17680
17680
  return;
@@ -17692,7 +17692,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17692
17692
  for (const s of c.items)
17693
17693
  a.push(s.str), s.hasEOL && a.push(`
17694
17694
  `);
17695
- [this._pageContents[d], this._pageDiffs[d], this._hasDiacritics[d]] = wQ(a.join("")), F();
17695
+ [this._pageContents[d], this._pageDiffs[d], this._hasDiacritics[d]] = CQ(a.join("")), F();
17696
17696
  }, (c) => {
17697
17697
  console.error(`Unable to get text content for page ${d + 1}`, c), this._pageContents[d] = "", this._pageDiffs[d] = null, this._hasDiacritics[d] = !1, F();
17698
17698
  }));
@@ -17716,7 +17716,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17716
17716
  this._pendingFindMatches.delete(t), h(this, ll, HN).call(this, t);
17717
17717
  }));
17718
17718
  }
17719
- if (W(this, ll, CQ).length === 0) {
17719
+ if (W(this, ll, rQ).length === 0) {
17720
17720
  h(this, ll, Oc).call(this, KZ.FOUND);
17721
17721
  return;
17722
17722
  }
@@ -17729,13 +17729,13 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17729
17729
  Z.matchIdx = U ? Z.matchIdx - 1 : Z.matchIdx + 1, h(this, ll, Ts).call(this, !0);
17730
17730
  return;
17731
17731
  }
17732
- h(this, ll, xQ).call(this, U);
17732
+ h(this, ll, jQ).call(this, U);
17733
17733
  }
17734
- h(this, ll, rQ).call(this);
17734
+ h(this, ll, xQ).call(this);
17735
17735
  }, fN = function(U) {
17736
17736
  const l = this._offset, d = U.length, Z = W(this, cd).findPrevious;
17737
- return d ? (l.matchIdx = Z ? d - 1 : 0, h(this, ll, Ts).call(this, !0), !0) : (h(this, ll, xQ).call(this, Z), l.wrapped && (l.matchIdx = null, this._pagesToSearch < 0) ? (h(this, ll, Ts).call(this, !1), !0) : !1);
17738
- }, rQ = function() {
17737
+ return d ? (l.matchIdx = Z ? d - 1 : 0, h(this, ll, Ts).call(this, !0), !0) : (h(this, ll, jQ).call(this, Z), l.wrapped && (l.matchIdx = null, this._pagesToSearch < 0) ? (h(this, ll, Ts).call(this, !1), !0) : !1);
17738
+ }, xQ = function() {
17739
17739
  this._resumePageIdx !== null && console.error("There can only be one pending page.");
17740
17740
  let U = null;
17741
17741
  do {
@@ -17745,7 +17745,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17745
17745
  break;
17746
17746
  }
17747
17747
  } while (!h(this, ll, fN).call(this, U));
17748
- }, xQ = function(U) {
17748
+ }, jQ = function(U) {
17749
17749
  const l = this._offset, d = this._linkService.pagesCount;
17750
17750
  l.pageIdx = U ? l.pageIdx - 1 : l.pageIdx + 1, l.matchIdx = null, this._pagesToSearch--, (l.pageIdx >= d || l.pageIdx < 0) && (l.pageIdx = U ? d - 1 : 0, l.wrapped = !0);
17751
17751
  }, Ts = function(U = !1) {
@@ -17761,7 +17761,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17761
17761
  this._firstPageCapability.promise.then(() => {
17762
17762
  !this._pdfDocument || l && this._pdfDocument !== l || (this._findTimeout && (clearTimeout(this._findTimeout), this._findTimeout = null), this._resumePageIdx && (this._resumePageIdx = null, this._dirtyMatch = !0), h(this, ll, Oc).call(this, KZ.FOUND), this._highlightMatches = !1, h(this, ll, jc).call(this));
17763
17763
  });
17764
- }, jQ = function() {
17764
+ }, OQ = function() {
17765
17765
  var U;
17766
17766
  const {
17767
17767
  pageIdx: l,
@@ -17777,10 +17777,10 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17777
17777
  current: Z,
17778
17778
  total: t
17779
17779
  };
17780
- }, OQ = function() {
17780
+ }, gQ = function() {
17781
17781
  this._eventBus.dispatch("updatefindmatchescount", {
17782
17782
  source: this,
17783
- matchesCount: h(this, ll, jQ).call(this)
17783
+ matchesCount: h(this, ll, OQ).call(this)
17784
17784
  });
17785
17785
  }, Oc = function(U, l = !1) {
17786
17786
  var d, Z;
@@ -17789,7 +17789,7 @@ cd = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), T0 = /*
17789
17789
  state: U,
17790
17790
  previous: l,
17791
17791
  entireWord: ((d = W(this, cd)) == null ? void 0 : d.entireWord) ?? null,
17792
- matchesCount: h(this, ll, jQ).call(this),
17792
+ matchesCount: h(this, ll, OQ).call(this),
17793
17793
  rawQuery: ((Z = W(this, cd)) == null ? void 0 : Z.query) ?? null
17794
17794
  });
17795
17795
  };
@@ -17800,7 +17800,7 @@ const GJ = "noopener noreferrer nofollow", ZF = {
17800
17800
  PARENT: 3,
17801
17801
  TOP: 4
17802
17802
  };
17803
- var vi, Te;
17803
+ var Hi, Te;
17804
17804
  const Xe = class pe {
17805
17805
  constructor({
17806
17806
  eventBus: l,
@@ -17960,7 +17960,7 @@ const Xe = class pe {
17960
17960
  t = JSON.parse(t), Array.isArray(t) || (t = t.toString());
17961
17961
  } catch {
17962
17962
  }
17963
- if (typeof t == "string" || h(d = pe, vi, Te).call(d, t)) {
17963
+ if (typeof t == "string" || h(d = pe, Hi, Te).call(d, t)) {
17964
17964
  this.goToDestination(t);
17965
17965
  return;
17966
17966
  }
@@ -18002,7 +18002,7 @@ const Xe = class pe {
18002
18002
  d === this.pdfDocument && (Z.setOCGState(l), this.pdfViewer.optionalContentConfigPromise = Promise.resolve(Z));
18003
18003
  }
18004
18004
  };
18005
- vi = /* @__PURE__ */ new WeakSet(), Te = function(U) {
18005
+ Hi = /* @__PURE__ */ new WeakSet(), Te = function(U) {
18006
18006
  if (!Array.isArray(U) || U.length < 2)
18007
18007
  return !1;
18008
18008
  const [l, d, ...Z] = U;
@@ -18037,9 +18037,9 @@ vi = /* @__PURE__ */ new WeakSet(), Te = function(U) {
18037
18037
  if (!(typeof c == "number" || F && c === null))
18038
18038
  return !1;
18039
18039
  return !0;
18040
- }, e(Xe, vi);
18040
+ }, e(Xe, Hi);
18041
18041
  let ue = Xe;
18042
- class BR extends ue {
18042
+ class oR extends ue {
18043
18043
  setDocument(l, d = null) {
18044
18044
  }
18045
18045
  }
@@ -18078,19 +18078,19 @@ const {
18078
18078
  PDFWorker: fS,
18079
18079
  PermissionFlag: Xs,
18080
18080
  PixelsPerInch: TZ,
18081
- RenderingCancelledException: oR,
18081
+ RenderingCancelledException: yR,
18082
18082
  setLayerDimensions: zJ,
18083
18083
  shadow: yV,
18084
- stopEvent: Hi,
18084
+ stopEvent: Pi,
18085
18085
  TextLayer: LJ,
18086
18086
  TouchManager: AS,
18087
18087
  UnexpectedResponseException: _S,
18088
18088
  Util: qS,
18089
18089
  VerbosityLevel: $S,
18090
18090
  version: _N,
18091
- XfaLayer: gQ
18091
+ XfaLayer: KQ
18092
18092
  } = globalThis.pdfjsLib;
18093
- var Xn, tF, pn, Pi;
18093
+ var Xn, tF, pn, fi;
18094
18094
  class Ye {
18095
18095
  constructor({
18096
18096
  pdfPage: l,
@@ -18151,8 +18151,8 @@ class Ye {
18151
18151
  enableScripting: this.enableScripting,
18152
18152
  hasJSActions: a,
18153
18153
  fieldObjects: s
18154
- }), this.linkService.isInPresentationMode && h(this, pn, Pi).call(this, Uc.FULLSCREEN), W(this, tF) || (R(this, tF, new AbortController()), (F = this._eventBus) == null || F._on("presentationmodechanged", (V) => {
18155
- h(this, pn, Pi).call(this, V.state);
18154
+ }), this.linkService.isInPresentationMode && h(this, pn, fi).call(this, Uc.FULLSCREEN), W(this, tF) || (R(this, tF, new AbortController()), (F = this._eventBus) == null || F._on("presentationmodechanged", (V) => {
18155
+ h(this, pn, fi).call(this, V.state);
18156
18156
  }, {
18157
18157
  signal: W(this, tF).signal
18158
18158
  }));
@@ -18169,7 +18169,7 @@ class Ye {
18169
18169
  return !!((l = this.annotationLayer) != null && l.hasEditableAnnotations());
18170
18170
  }
18171
18171
  }
18172
- Xn = /* @__PURE__ */ new WeakMap(), tF = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakSet(), Pi = function(U) {
18172
+ Xn = /* @__PURE__ */ new WeakMap(), tF = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakSet(), fi = function(U) {
18173
18173
  if (!this.div)
18174
18174
  return;
18175
18175
  let l = !1;
@@ -18374,7 +18374,7 @@ function CJ(U, l, d) {
18374
18374
  function dh(U, l, d) {
18375
18375
  return l[d] ? nc(U, l[d].value) : (U.reportError(new RangeError("No default")), new rl());
18376
18376
  }
18377
- function fi(U, l) {
18377
+ function Ai(U, l) {
18378
18378
  const d = [], Z = /* @__PURE__ */ Object.create(null);
18379
18379
  for (const t of l)
18380
18380
  t.type === "narg" ? Z[t.name] = Ta(U, t.value) : d.push(Ta(U, t));
@@ -18456,13 +18456,13 @@ function jJ(U, {
18456
18456
  if (d) {
18457
18457
  const a = F.attributes[d];
18458
18458
  if (a) {
18459
- U.params = fi(U, Z).named;
18459
+ U.params = Ai(U, Z).named;
18460
18460
  const s = nc(U, a);
18461
18461
  return U.params = null, s;
18462
18462
  }
18463
18463
  return U.reportError(new ReferenceError(`Unknown attribute: ${d}`)), new rl(`${t}.${d}`);
18464
18464
  }
18465
- U.params = fi(U, Z).named;
18465
+ U.params = Ai(U, Z).named;
18466
18466
  const c = nc(U, F.value);
18467
18467
  return U.params = null, c;
18468
18468
  }
@@ -18476,7 +18476,7 @@ function OJ(U, {
18476
18476
  if (typeof Z != "function")
18477
18477
  return U.reportError(new TypeError(`Function ${l}() is not callable`)), new rl(`${l}()`);
18478
18478
  try {
18479
- let t = fi(U, d);
18479
+ let t = Ai(U, d);
18480
18480
  return Z(t.positional, t.named);
18481
18481
  } catch (t) {
18482
18482
  return U.reportError(t), new rl(`${l}()`);
@@ -18629,16 +18629,16 @@ class fJ {
18629
18629
  }
18630
18630
  }
18631
18631
  }
18632
- const KQ = /^(-?[a-zA-Z][\w-]*) *= */gm, Fh = /\.([a-zA-Z][\w-]*) *= */y, AJ = /\*?\[/y, vQ = /(-?[0-9]+(?:\.([0-9]+))?)/y, _J = /([a-zA-Z][\w-]*)/y, ch = /([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y, qJ = /^[A-Z][A-Z0-9_-]*$/, ps = /([^{}\n\r]+)/y, $J = /([^\\"\n\r]*)/y, Wh = /\\([\\"])/y, ah = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y, lG = /^\n+/, sh = / +$/, dG = / *\r?\n/g, UG = /( *)$/, ZG = /{\s*/y, nh = /\s*}/y, tG = /\[\s*/y, FG = /\s*] */y, cG = /\s*\(\s*/y, WG = /\s*->\s*/y, aG = /\s*:\s*/y, sG = /\s*,?\s*/y, nG = /\s+/y;
18632
+ const vQ = /^(-?[a-zA-Z][\w-]*) *= */gm, Fh = /\.([a-zA-Z][\w-]*) *= */y, AJ = /\*?\[/y, HQ = /(-?[0-9]+(?:\.([0-9]+))?)/y, _J = /([a-zA-Z][\w-]*)/y, ch = /([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y, qJ = /^[A-Z][A-Z0-9_-]*$/, ps = /([^{}\n\r]+)/y, $J = /([^\\"\n\r]*)/y, Wh = /\\([\\"])/y, ah = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y, lG = /^\n+/, sh = / +$/, dG = / *\r?\n/g, UG = /( *)$/, ZG = /{\s*/y, nh = /\s*}/y, tG = /\[\s*/y, FG = /\s*] */y, cG = /\s*\(\s*/y, WG = /\s*->\s*/y, aG = /\s*:\s*/y, sG = /\s*,?\s*/y, nG = /\s+/y;
18633
18633
  class VG {
18634
18634
  constructor(l) {
18635
- this.body = [], KQ.lastIndex = 0;
18635
+ this.body = [], vQ.lastIndex = 0;
18636
18636
  let d = 0;
18637
18637
  for (; ; ) {
18638
- let X = KQ.exec(l);
18638
+ let X = vQ.exec(l);
18639
18639
  if (X === null)
18640
18640
  break;
18641
- d = KQ.lastIndex;
18641
+ d = vQ.lastIndex;
18642
18642
  try {
18643
18643
  this.body.push(s(X[1]));
18644
18644
  } catch (B) {
@@ -18826,20 +18826,20 @@ class VG {
18826
18826
  function J() {
18827
18827
  F(tG, SyntaxError);
18828
18828
  let X;
18829
- return Z(vQ) ? X = G() : X = {
18829
+ return Z(HQ) ? X = G() : X = {
18830
18830
  type: "str",
18831
18831
  value: a(_J)
18832
18832
  }, F(FG, SyntaxError), X;
18833
18833
  }
18834
18834
  function S() {
18835
- if (Z(vQ))
18835
+ if (Z(HQ))
18836
18836
  return G();
18837
18837
  if (l[d] === '"')
18838
18838
  return T();
18839
18839
  throw new SyntaxError("Invalid expression");
18840
18840
  }
18841
18841
  function G() {
18842
- let [, X, B = ""] = c(vQ), y = B.length;
18842
+ let [, X, B = ""] = c(HQ), y = B.length;
18843
18843
  return {
18844
18844
  type: "num",
18845
18845
  value: parseFloat(X),
@@ -18953,7 +18953,7 @@ function hG(U, l) {
18953
18953
  U.replaceChild(Z, d);
18954
18954
  continue;
18955
18955
  }
18956
- console.warn(`An element of forbidden type "${d.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`), U.replaceChild(Ai(d), d);
18956
+ console.warn(`An element of forbidden type "${d.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`), U.replaceChild(_i(d), d);
18957
18957
  }
18958
18958
  l.textContent = "", l.appendChild(U);
18959
18959
  }
@@ -18976,9 +18976,9 @@ function ke(U, l) {
18976
18976
  function eG(U, l) {
18977
18977
  const d = l.getAttribute("data-l10n-name"), Z = U.querySelector(`[data-l10n-name="${d}"]`);
18978
18978
  if (!Z)
18979
- return console.warn(`An element named "${d}" wasn't found in the source.`), Ai(l);
18979
+ return console.warn(`An element named "${d}" wasn't found in the source.`), _i(l);
18980
18980
  if (Z.localName !== l.localName)
18981
- return console.warn(`An element named "${d}" was found in the translation but its type ${l.localName} didn't match the element found in the source (${Z.localName}).`), Ai(l);
18981
+ return console.warn(`An element named "${d}" was found in the translation but its type ${l.localName} didn't match the element found in the source (${Z.localName}).`), _i(l);
18982
18982
  U.removeChild(Z);
18983
18983
  const t = Z.cloneNode(!1);
18984
18984
  return ze(l, t);
@@ -18987,7 +18987,7 @@ function mG(U) {
18987
18987
  const l = U.ownerDocument.createElement(U.localName);
18988
18988
  return ze(U, l);
18989
18989
  }
18990
- function Ai(U) {
18990
+ function _i(U) {
18991
18991
  return U.ownerDocument.createTextNode(U.textContent);
18992
18992
  }
18993
18993
  function MG(U) {
@@ -19234,14 +19234,14 @@ class YG extends SG {
19234
19234
  }
19235
19235
  }
19236
19236
  var un, vZ, YW, Cd, zV, Le, Ie;
19237
- const De = class _i {
19237
+ const De = class qi {
19238
19238
  constructor({
19239
19239
  lang: l,
19240
19240
  isRTL: d
19241
19241
  }, Z = null) {
19242
19242
  e(this, un), e(this, vZ), e(this, YW), e(this, Cd);
19243
19243
  var t, F;
19244
- R(this, YW, h(t = _i, zV, Le).call(t, l)), R(this, Cd, Z), R(this, un, d ?? h(F = _i, zV, Ie).call(F, W(this, YW)) ? "rtl" : "ltr");
19244
+ R(this, YW, h(t = qi, zV, Le).call(t, l)), R(this, Cd, Z), R(this, un, d ?? h(F = qi, zV, Ie).call(F, W(this, YW)) ? "rtl" : "ltr");
19245
19245
  }
19246
19246
  _setL10n(l) {
19247
19247
  R(this, Cd, l);
@@ -19316,7 +19316,7 @@ function ih(U, l) {
19316
19316
  const d = new VG(l), Z = new fJ(U), t = Z.addResource(d);
19317
19317
  return t.length && console.error("L10n errors", t), Z;
19318
19318
  }
19319
- var dt, Ee, Rh, Nh, we, HQ;
19319
+ var dt, Ee, Rh, Nh, we, PQ;
19320
19320
  const Ce = class BW extends BG {
19321
19321
  constructor(l) {
19322
19322
  super({
@@ -19337,7 +19337,7 @@ dt = /* @__PURE__ */ new WeakSet(), Ee = async function* (U, l) {
19337
19337
  }
19338
19338
  for (const F of t) {
19339
19339
  const c = await h(this, dt, Rh).call(this, F, d, Z);
19340
- c ? yield c : F === "en-us" && (yield h(this, dt, HQ).call(this, F));
19340
+ c ? yield c : F === "en-us" && (yield h(this, dt, PQ).call(this, F));
19341
19341
  }
19342
19342
  }, Rh = async function(U, l, d) {
19343
19343
  const Z = d[U];
@@ -19361,8 +19361,8 @@ dt = /* @__PURE__ */ new WeakSet(), Ee = async function* (U, l) {
19361
19361
  paths: /* @__PURE__ */ Object.create(null)
19362
19362
  };
19363
19363
  }, we = async function* (U) {
19364
- yield h(this, dt, HQ).call(this, U);
19365
- }, HQ = async function(U) {
19364
+ yield h(this, dt, PQ).call(this, U);
19365
+ }, PQ = async function(U) {
19366
19366
  return ih(U, `pdfjs-previous-button =
19367
19367
  .title = Previous Page
19368
19368
  pdfjs-previous-button-label = Previous
@@ -19703,10 +19703,10 @@ pdfjs-editor-undo-bar-close-button-label = Close`);
19703
19703
  }, e(Ce, dt);
19704
19704
  let PV = Ce;
19705
19705
  const oG = 1e3, yG = 50, kG = 1e3;
19706
- function qi() {
19706
+ function $i() {
19707
19707
  return document.location.hash;
19708
19708
  }
19709
- var cF, nl, XZ, Yn, LV, sa, Bn, $i, hh, bh, lR, re, xe;
19709
+ var cF, nl, XZ, Yn, LV, sa, Bn, lR, hh, bh, dR, re, xe;
19710
19710
  class zG {
19711
19711
  constructor({
19712
19712
  linkService: l,
@@ -19733,12 +19733,12 @@ class zG {
19733
19733
  const t = this._fingerprint !== "" && this._fingerprint !== l;
19734
19734
  this._fingerprint = l, this._updateUrl = Z === !0, this._initialized = !0, h(this, nl, re).call(this);
19735
19735
  const F = window.history.state;
19736
- if (this._popStateInProgress = !1, this._blockHashChange = 0, this._currentHash = qi(), this._numPositionUpdates = 0, this._uid = this._maxUid = 0, this._destination = null, this._position = null, !h(this, nl, sa).call(this, F, !0) || d) {
19736
+ if (this._popStateInProgress = !1, this._blockHashChange = 0, this._currentHash = $i(), this._numPositionUpdates = 0, this._uid = this._maxUid = 0, this._destination = null, this._position = null, !h(this, nl, sa).call(this, F, !0) || d) {
19737
19737
  const {
19738
19738
  hash: a,
19739
19739
  page: s,
19740
19740
  rotation: n
19741
- } = h(this, nl, $i).call(this, !0);
19741
+ } = h(this, nl, lR).call(this, !0);
19742
19742
  if (!a || t || d) {
19743
19743
  h(this, nl, XZ).call(this, null, !0);
19744
19744
  return;
@@ -19754,7 +19754,7 @@ class zG {
19754
19754
  h(this, nl, Bn).call(this, c, F.uid, !0), c.rotation !== void 0 && (this._initialRotation = c.rotation), c.dest ? (this._initialBookmark = JSON.stringify(c.dest), this._destination.page = null) : c.hash ? this._initialBookmark = c.hash : c.page && (this._initialBookmark = `page=${c.page}`);
19755
19755
  }
19756
19756
  reset() {
19757
- this._initialized && (h(this, nl, lR).call(this), this._initialized = !1, h(this, nl, xe).call(this)), this._updateViewareaTimeout && (clearTimeout(this._updateViewareaTimeout), this._updateViewareaTimeout = null), this._initialBookmark = null, this._initialRotation = null;
19757
+ this._initialized && (h(this, nl, dR).call(this), this._initialized = !1, h(this, nl, xe).call(this)), this._updateViewareaTimeout && (clearTimeout(this._updateViewareaTimeout), this._updateViewareaTimeout = null), this._initialBookmark = null, this._initialRotation = null;
19758
19758
  }
19759
19759
  push({
19760
19760
  namedDest: l = null,
@@ -19886,8 +19886,8 @@ cF = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakSet(), XZ = fun
19886
19886
  return !(!Number.isInteger(U.uid) || U.uid < 0 || U.destination === null || typeof U.destination != "object");
19887
19887
  }, Bn = function(U, l, d = !1) {
19888
19888
  this._updateViewareaTimeout && (clearTimeout(this._updateViewareaTimeout), this._updateViewareaTimeout = null), d && U != null && U.temporary && delete U.temporary, this._destination = U, this._uid = l, this._maxUid = Math.max(this._maxUid, l), this._numPositionUpdates = 0;
19889
- }, $i = function(U = !1) {
19890
- const l = unescape(qi()).substring(1), d = vV(l), Z = d.get("nameddest") || "";
19889
+ }, lR = function(U = !1) {
19890
+ const l = unescape($i()).substring(1), d = vV(l), Z = d.get("nameddest") || "";
19891
19891
  let t = d.get("page") | 0;
19892
19892
  return (!h(this, nl, LV).call(this, t) || U && Z.length > 0) && (t = null), {
19893
19893
  hash: l,
@@ -19908,14 +19908,14 @@ cF = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakSet(), XZ = fun
19908
19908
  }, bh = function({
19909
19909
  state: U
19910
19910
  }) {
19911
- const l = qi(), d = this._currentHash !== l;
19911
+ const l = $i(), d = this._currentHash !== l;
19912
19912
  if (this._currentHash = l, !U) {
19913
19913
  this._uid++;
19914
19914
  const {
19915
19915
  hash: t,
19916
19916
  page: F,
19917
19917
  rotation: c
19918
- } = h(this, nl, $i).call(this);
19918
+ } = h(this, nl, lR).call(this);
19919
19919
  h(this, nl, XZ).call(this, {
19920
19920
  hash: t,
19921
19921
  page: F,
@@ -19936,7 +19936,7 @@ cF = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakSet(), XZ = fun
19936
19936
  h(this, nl, Bn).call(this, Z, U.uid, !0), me(Z.rotation) && (this.linkService.rotation = Z.rotation), Z.dest ? this.linkService.goToDestination(Z.dest) : Z.hash ? this.linkService.setHash(Z.hash) : Z.page && (this.linkService.page = Z.page), Promise.resolve().then(() => {
19937
19937
  this._popStateInProgress = !1;
19938
19938
  });
19939
- }, lR = function() {
19939
+ }, dR = function() {
19940
19940
  (!this._destination || this._destination.temporary) && h(this, nl, Yn).call(this);
19941
19941
  }, re = function() {
19942
19942
  if (W(this, cF))
@@ -19949,7 +19949,7 @@ cF = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakSet(), XZ = fun
19949
19949
  signal: U
19950
19950
  }), window.addEventListener("popstate", h(this, nl, bh).bind(this), {
19951
19951
  signal: U
19952
- }), window.addEventListener("pagehide", h(this, nl, lR).bind(this), {
19952
+ }), window.addEventListener("pagehide", h(this, nl, dR).bind(this), {
19953
19953
  signal: U
19954
19954
  });
19955
19955
  }, xe = function() {
@@ -20031,12 +20031,12 @@ class DG {
20031
20031
  }
20032
20032
  on = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), oW = /* @__PURE__ */ new WeakMap();
20033
20033
  {
20034
- var dR = /* @__PURE__ */ new Map();
20034
+ var UR = /* @__PURE__ */ new Map();
20035
20035
  const U = navigator.userAgent || "", l = navigator.platform || "", d = navigator.maxTouchPoints || 1, Z = /Android/.test(U), t = /\b(iPad|iPhone|iPod)(?=;)/.test(U) || l === "MacIntel" && d > 1;
20036
20036
  (function() {
20037
- (t || Z) && dR.set("maxCanvasPixels", 5242880);
20037
+ (t || Z) && UR.set("maxCanvasPixels", 5242880);
20038
20038
  })(), function() {
20039
- Z && dR.set("useSystemFonts", !1);
20039
+ Z && UR.set("useSystemFonts", !1);
20040
20040
  }();
20041
20041
  }
20042
20042
  const k = {
@@ -20046,7 +20046,7 @@ const k = {
20046
20046
  WORKER: 8,
20047
20047
  EVENT_DISPATCH: 16,
20048
20048
  PREFERENCE: 128
20049
- }, UR = {
20049
+ }, ZR = {
20050
20050
  BOOLEAN: 1,
20051
20051
  NUMBER: 2,
20052
20052
  OBJECT: 4,
@@ -20306,7 +20306,7 @@ const k = {
20306
20306
  useSystemFonts: {
20307
20307
  value: void 0,
20308
20308
  kind: k.API,
20309
- type: UR.BOOLEAN + UR.UNDEFINED
20309
+ type: ZR.BOOLEAN + ZR.UNDEFINED
20310
20310
  },
20311
20311
  verbosity: {
20312
20312
  value: 1,
@@ -20361,7 +20361,7 @@ const sZ = class {
20361
20361
  let Z;
20362
20362
  for (const t in l) {
20363
20363
  const F = PU[t], c = l[t];
20364
- if (!F || !(typeof c == typeof F.value || UR[(typeof c).toUpperCase()] & F.type))
20364
+ if (!F || !(typeof c == typeof F.value || ZR[(typeof c).toUpperCase()] & F.type))
20365
20365
  continue;
20366
20366
  const {
20367
20367
  kind: a
@@ -20379,7 +20379,7 @@ const sZ = class {
20379
20379
  TF = /* @__PURE__ */ new WeakMap(), H(sZ, "eventBus"), e(sZ, TF, /* @__PURE__ */ new Map()), (() => {
20380
20380
  for (const U in PU)
20381
20381
  W(sZ, TF).set(U, PU[U].value);
20382
- for (const [U, l] of dR)
20382
+ for (const [U, l] of UR)
20383
20383
  W(sZ, TF).set(U, l);
20384
20384
  sZ._hasInvokedSet = !1, sZ._checkDisablePreferences = () => sZ.get("disablePreferences") ? !0 : (sZ._hasInvokedSet && console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'), !1);
20385
20385
  })();
@@ -20448,7 +20448,7 @@ const eh = {
20448
20448
  Formula: null,
20449
20449
  Artifact: null
20450
20450
  }, CG = /^H(\d+)$/;
20451
- var yW, IU, kW, na, Va, Vt, bF, PQ, mh, ZR;
20451
+ var yW, IU, kW, na, Va, Vt, bF, fQ, mh, tR;
20452
20452
  class je {
20453
20453
  constructor(l, d) {
20454
20454
  e(this, bF), e(this, yW), e(this, IU, null), e(this, kW), e(this, na, /* @__PURE__ */ new Map()), e(this, Va), e(this, Vt, null), R(this, yW, l.getStructTree()), R(this, Va, d);
@@ -20464,7 +20464,7 @@ class je {
20464
20464
  } = Promise.withResolvers();
20465
20465
  R(this, kW, d);
20466
20466
  try {
20467
- R(this, IU, h(this, bF, ZR).call(this, await W(this, yW)));
20467
+ R(this, IU, h(this, bF, tR).call(this, await W(this, yW)));
20468
20468
  } catch (F) {
20469
20469
  t(F);
20470
20470
  }
@@ -20493,7 +20493,7 @@ class je {
20493
20493
  }
20494
20494
  }
20495
20495
  }
20496
- yW = /* @__PURE__ */ new WeakMap(), IU = /* @__PURE__ */ new WeakMap(), kW = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), bF = /* @__PURE__ */ new WeakSet(), PQ = function(U, l) {
20496
+ yW = /* @__PURE__ */ new WeakMap(), IU = /* @__PURE__ */ new WeakMap(), kW = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), bF = /* @__PURE__ */ new WeakSet(), fQ = function(U, l) {
20497
20497
  const {
20498
20498
  alt: d,
20499
20499
  id: Z,
@@ -20534,7 +20534,7 @@ yW = /* @__PURE__ */ new WeakMap(), IU = /* @__PURE__ */ new WeakMap(), kW = /*
20534
20534
  style: i
20535
20535
  } = a;
20536
20536
  return i.width = `${Q}${Z[2] - Z[0]}px)`, i.height = `${Q}${Z[3] - Z[1]}px)`, i.left = `${Q}${Z[0] - n}px)`, i.top = `${Q}${s - Z[3] + V}px)`, !0;
20537
- }, ZR = function(U) {
20537
+ }, tR = function(U) {
20538
20538
  if (!U)
20539
20539
  return null;
20540
20540
  const l = document.createElement("span");
@@ -20545,15 +20545,15 @@ yW = /* @__PURE__ */ new WeakMap(), IU = /* @__PURE__ */ new WeakMap(), kW = /*
20545
20545
  if (Z ? (l.setAttribute("role", "heading"), l.setAttribute("aria-level", Z[1])) : eh[d] && l.setAttribute("role", eh[d]), d === "Figure" && h(this, bF, mh).call(this, U, l))
20546
20546
  return l;
20547
20547
  }
20548
- if (h(this, bF, PQ).call(this, U, l), U.children)
20548
+ if (h(this, bF, fQ).call(this, U, l), U.children)
20549
20549
  if (U.children.length === 1 && "id" in U.children[0])
20550
- h(this, bF, PQ).call(this, U.children[0], l);
20550
+ h(this, bF, fQ).call(this, U.children[0], l);
20551
20551
  else
20552
20552
  for (const d of U.children)
20553
- l.append(h(this, bF, ZR).call(this, d));
20553
+ l.append(h(this, bF, tR).call(this, d));
20554
20554
  return l;
20555
20555
  };
20556
- var HZ, hU, PZ, WF, Qa, In, Dn, tR;
20556
+ var HZ, hU, PZ, WF, Qa, In, Dn, FR;
20557
20557
  const Oe = class En {
20558
20558
  constructor() {
20559
20559
  e(this, Dn), e(this, HZ, !1), e(this, hU, null), e(this, PZ, /* @__PURE__ */ new Map()), e(this, WF, /* @__PURE__ */ new Map());
@@ -20573,7 +20573,7 @@ const Oe = class En {
20573
20573
  W(this, PZ).delete(d);
20574
20574
  continue;
20575
20575
  }
20576
- h(this, Dn, tR).call(this, d, l[Z]);
20576
+ h(this, Dn, FR).call(this, d, l[Z]);
20577
20577
  }
20578
20578
  }
20579
20579
  for (const [l, d] of W(this, WF))
@@ -20617,7 +20617,7 @@ const Oe = class En {
20617
20617
  var V;
20618
20618
  return h(V = En, Qa, In).call(V, l, n) < 0;
20619
20619
  }), c = Math.max(0, F - 1), a = t[c];
20620
- h(this, Dn, tR).call(this, Z, a), W(this, PZ).set(Z, c);
20620
+ h(this, Dn, FR).call(this, Z, a), W(this, PZ).set(Z, c);
20621
20621
  const s = a.parentNode;
20622
20622
  return s != null && s.classList.contains("markedContent") ? s.id : null;
20623
20623
  }
@@ -20648,7 +20648,7 @@ HZ = /* @__PURE__ */ new WeakMap(), hU = /* @__PURE__ */ new WeakMap(), PZ = /*
20648
20648
  return 1;
20649
20649
  const V = d.x + d.width / 2, Q = Z.x + Z.width / 2;
20650
20650
  return V - Q;
20651
- }, Dn = /* @__PURE__ */ new WeakSet(), tR = function(U, l) {
20651
+ }, Dn = /* @__PURE__ */ new WeakSet(), FR = function(U, l) {
20652
20652
  const d = l.getAttribute("aria-owns");
20653
20653
  d != null && d.includes(U) || l.setAttribute("aria-owns", d ? `${d} ${U}` : U), l.removeAttribute("role");
20654
20654
  }, e(Oe, Qa);
@@ -20802,7 +20802,7 @@ class xG {
20802
20802
  }
20803
20803
  }
20804
20804
  aF = /* @__PURE__ */ new WeakMap();
20805
- var IV, wn, X0, VZ, wd, jt, FR, ge, Cn, Ke, Mh;
20805
+ var IV, wn, X0, VZ, wd, jt, cR, ge, Cn, Ke, Mh;
20806
20806
  const p0 = class ve {
20807
20807
  constructor({
20808
20808
  pdfPage: l,
@@ -20811,7 +20811,7 @@ const p0 = class ve {
20811
20811
  enablePermissions: t = !1,
20812
20812
  onAppend: F = null
20813
20813
  }) {
20814
- e(this, FR), e(this, IV, !1), e(this, wn, null), e(this, X0, !1), e(this, VZ, null), this.pdfPage = l, this.highlighter = d, this.accessibilityManager = Z, R(this, IV, t === !0), R(this, wn, F), this.div = document.createElement("div"), this.div.tabIndex = 0, this.div.className = "textLayer";
20814
+ e(this, cR), e(this, IV, !1), e(this, wn, null), e(this, X0, !1), e(this, VZ, null), this.pdfPage = l, this.highlighter = d, this.accessibilityManager = Z, R(this, IV, t === !0), R(this, wn, F), this.div = document.createElement("div"), this.div.tabIndex = 0, this.div.className = "textLayer";
20815
20815
  }
20816
20816
  async render(l, d = null) {
20817
20817
  var Z, t, F, c, a;
@@ -20836,7 +20836,7 @@ const p0 = class ve {
20836
20836
  } = W(this, VZ);
20837
20837
  (Z = this.highlighter) == null || Z.setTextMapping(s, n), (t = this.accessibilityManager) == null || t.setTextMapping(s), await W(this, VZ).render(), R(this, X0, !0);
20838
20838
  const V = document.createElement("div");
20839
- V.className = "endOfContent", this.div.append(V), h(this, FR, ge).call(this, V), (F = W(this, wn)) == null || F.call(this, this.div), (c = this.highlighter) == null || c.enable(), (a = this.accessibilityManager) == null || a.enable();
20839
+ V.className = "endOfContent", this.div.append(V), h(this, cR, ge).call(this, V), (F = W(this, wn)) == null || F.call(this, this.div), (c = this.highlighter) == null || c.enable(), (a = this.accessibilityManager) == null || a.enable();
20840
20840
  }
20841
20841
  hide() {
20842
20842
  var l;
@@ -20851,7 +20851,7 @@ const p0 = class ve {
20851
20851
  (l = W(this, VZ)) == null || l.cancel(), R(this, VZ, null), (d = this.highlighter) == null || d.disable(), (Z = this.accessibilityManager) == null || Z.disable(), h(t = ve, Cn, Ke).call(t, this.div);
20852
20852
  }
20853
20853
  };
20854
- IV = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), X0 = /* @__PURE__ */ new WeakMap(), VZ = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), FR = /* @__PURE__ */ new WeakSet(), ge = function(U) {
20854
+ IV = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), X0 = /* @__PURE__ */ new WeakMap(), VZ = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), cR = /* @__PURE__ */ new WeakSet(), ge = function(U) {
20855
20855
  var l;
20856
20856
  const {
20857
20857
  div: d
@@ -20863,7 +20863,7 @@ IV = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), X0 = /*
20863
20863
  const t = document.getSelection();
20864
20864
  Z.clipboardData.setData("text/plain", ca(yJ(t.toString())));
20865
20865
  }
20866
- Hi(Z);
20866
+ Pi(Z);
20867
20867
  }), W(p0, wd).set(d, U), h(l = p0, Cn, Mh).call(l);
20868
20868
  }, Cn = /* @__PURE__ */ new WeakSet(), Ke = function(U) {
20869
20869
  var l;
@@ -20944,7 +20944,7 @@ class Pe {
20944
20944
  linkService: this.linkService,
20945
20945
  intent: d
20946
20946
  };
20947
- return this.div = document.createElement("div"), F.div = this.div, gQ.render(F);
20947
+ return this.div = document.createElement("div"), F.div = this.div, KQ.render(F);
20948
20948
  }
20949
20949
  const Z = await this.pdfPage.getXfa();
20950
20950
  if (this._cancelled || !Z)
@@ -20961,7 +20961,7 @@ class Pe {
20961
20961
  linkService: this.linkService,
20962
20962
  intent: d
20963
20963
  };
20964
- return this.div ? gQ.update(t) : (this.div = document.createElement("div"), t.div = this.div, gQ.render(t));
20964
+ return this.div ? KQ.update(t) : (this.div = document.createElement("div"), t.div = this.div, KQ.render(t));
20965
20965
  }
20966
20966
  cancel() {
20967
20967
  this._cancelled = !0;
@@ -20979,10 +20979,10 @@ const jG = {
20979
20979
  findController: null,
20980
20980
  hasJSActionsPromise: null,
20981
20981
  get linkService() {
20982
- return new BR();
20982
+ return new oR();
20983
20983
  }
20984
20984
  }, OG = /* @__PURE__ */ new Map([["canvasWrapper", 0], ["textLayer", 1], ["annotationLayer", 2], ["annotationEditorLayer", 3], ["xfaLayer", 3]]);
20985
- var u0, sF, rn, Y0, xn, nF, VF, ia, jn, On, gn, v0, zW, LW, Ut, XF, Vl, H0, Kn, Kc, cR, WR, aR, sR, nR, Jh, Gh, VR, QR;
20985
+ var u0, sF, rn, Y0, xn, nF, VF, ia, jn, On, gn, v0, zW, LW, Ut, XF, Vl, H0, Kn, Kc, WR, aR, sR, nR, VR, Jh, Gh, QR, iR;
20986
20986
  class fe {
20987
20987
  constructor(l) {
20988
20988
  e(this, Vl), e(this, u0, pZ.ENABLE_FORMS), e(this, sF, null), e(this, rn, !1), e(this, Y0, !1), e(this, xn, !1), e(this, nF, null), e(this, VF, null), e(this, ia, null), e(this, jn, null), e(this, On, 1), e(this, gn, 1), e(this, v0, null), e(this, zW, yl.INITIAL), e(this, LW, HU.ENABLE), e(this, Ut, {
@@ -21079,7 +21079,7 @@ class fe {
21079
21079
  const T = W(this, XF).indexOf(G);
21080
21080
  T >= 0 && (W(this, XF)[T] = null);
21081
21081
  }
21082
- Q.removeAttribute("data-loaded"), N && this.annotationLayer.hide(), b && this.annotationEditorLayer.hide(), m && this.xfaLayer.hide(), M && this.textLayer.hide(), (V = this.structTreeLayer) == null || V.hide(), !F && W(this, sF) && (R(this, sF, null), h(this, Vl, VR).call(this));
21082
+ Q.removeAttribute("data-loaded"), N && this.annotationLayer.hide(), b && this.annotationEditorLayer.hide(), m && this.xfaLayer.hide(), M && this.textLayer.hide(), (V = this.structTreeLayer) == null || V.hide(), !F && W(this, sF) && (R(this, sF, null), h(this, Vl, QR).call(this));
21083
21083
  }
21084
21084
  toggleEditingMode(l) {
21085
21085
  this.hasEditableAnnotations() && (R(this, xn, l), this.reset({
@@ -21189,7 +21189,7 @@ class fe {
21189
21189
  } else
21190
21190
  a.style.transform = n === 0 ? "" : `rotate(${n}deg)`;
21191
21191
  }
21192
- l && this.annotationLayer && h(this, Vl, cR).call(this), d && this.annotationEditorLayer && (this.drawLayer && h(this, Vl, aR).call(this), h(this, Vl, WR).call(this)), Z && this.xfaLayer && h(this, Vl, sR).call(this), this.textLayer && (F ? (this.textLayer.hide(), (c = this.structTreeLayer) == null || c.hide()) : t && h(this, Vl, nR).call(this));
21192
+ l && this.annotationLayer && h(this, Vl, WR).call(this), d && this.annotationEditorLayer && (this.drawLayer && h(this, Vl, sR).call(this), h(this, Vl, aR).call(this)), Z && this.xfaLayer && h(this, Vl, nR).call(this), this.textLayer && (F ? (this.textLayer.hide(), (c = this.structTreeLayer) == null || c.hide()) : t && h(this, Vl, VR).call(this));
21193
21193
  }
21194
21194
  get width() {
21195
21195
  return this.viewport.width;
@@ -21297,13 +21297,13 @@ class fe {
21297
21297
  X.onContinue = a;
21298
21298
  const B = X.promise.then(async () => {
21299
21299
  var y;
21300
- b == null || b(!0), await h(this, Vl, QR).call(this, X), this.structTreeLayer || (this.structTreeLayer = new je(t, F.rawDims)), h(this, Vl, nR).call(this), this.annotationLayer && await h(this, Vl, cR).call(this);
21300
+ b == null || b(!0), await h(this, Vl, iR).call(this, X), this.structTreeLayer || (this.structTreeLayer = new je(t, F.rawDims)), h(this, Vl, VR).call(this), this.annotationLayer && await h(this, Vl, WR).call(this);
21301
21301
  const {
21302
21302
  annotationEditorUIManager: E
21303
21303
  } = W(this, nF);
21304
21304
  E && (this.drawLayer || (this.drawLayer = new wG({
21305
21305
  pageIndex: this.id
21306
- })), await h(this, Vl, aR).call(this), this.drawLayer.setParent(c), this.annotationEditorLayer || (this.annotationEditorLayer = new DG({
21306
+ })), await h(this, Vl, sR).call(this), this.drawLayer.setParent(c), this.annotationEditorLayer || (this.annotationEditorLayer = new DG({
21307
21307
  uiManager: E,
21308
21308
  pdfPage: t,
21309
21309
  l10n: d,
@@ -21315,8 +21315,8 @@ class fe {
21315
21315
  onAppend: (D) => {
21316
21316
  h(this, Vl, H0).call(this, D, "annotationEditorLayer");
21317
21317
  }
21318
- })), h(this, Vl, WR).call(this));
21319
- }, (y) => (y instanceof oR ? (i == null || i.remove(), h(this, Vl, VR).call(this)) : b == null || b(!0), h(this, Vl, QR).call(this, X, y)));
21318
+ })), h(this, Vl, aR).call(this));
21319
+ }, (y) => (y instanceof yR ? (i == null || i.remove(), h(this, Vl, QR).call(this)) : b == null || b(!0), h(this, Vl, iR).call(this, X, y)));
21320
21320
  if (t.isPureXfa) {
21321
21321
  if (!this.xfaLayer) {
21322
21322
  const {
@@ -21329,7 +21329,7 @@ class fe {
21329
21329
  linkService: E
21330
21330
  });
21331
21331
  }
21332
- h(this, Vl, sR).call(this);
21332
+ h(this, Vl, nR).call(this);
21333
21333
  }
21334
21334
  return l.setAttribute("data-loaded", !0), this.eventBus.dispatch("pagerender", {
21335
21335
  source: this,
@@ -21380,7 +21380,7 @@ u0 = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(), rn = /*
21380
21380
  pageNumber: this.id,
21381
21381
  error: l
21382
21382
  });
21383
- }, cR = async function() {
21383
+ }, WR = async function() {
21384
21384
  let U = null;
21385
21385
  try {
21386
21386
  await this.annotationLayer.render(this.viewport, {
@@ -21391,7 +21391,7 @@ u0 = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(), rn = /*
21391
21391
  } finally {
21392
21392
  h(this, Vl, Kc).call(this, "annotationlayerrendered", U);
21393
21393
  }
21394
- }, WR = async function() {
21394
+ }, aR = async function() {
21395
21395
  let U = null;
21396
21396
  try {
21397
21397
  await this.annotationEditorLayer.render(this.viewport, "display");
@@ -21400,13 +21400,13 @@ u0 = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(), rn = /*
21400
21400
  } finally {
21401
21401
  h(this, Vl, Kc).call(this, "annotationeditorlayerrendered", U);
21402
21402
  }
21403
- }, aR = async function() {
21403
+ }, sR = async function() {
21404
21404
  try {
21405
21405
  await this.drawLayer.render("display");
21406
21406
  } catch (U) {
21407
21407
  console.error("#renderDrawLayer:", U);
21408
21408
  }
21409
- }, sR = async function() {
21409
+ }, nR = async function() {
21410
21410
  var U;
21411
21411
  let l = null;
21412
21412
  try {
@@ -21417,7 +21417,7 @@ u0 = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(), rn = /*
21417
21417
  } finally {
21418
21418
  (U = this.xfaLayer) != null && U.div && (this.l10n.pause(), h(this, Vl, H0).call(this, this.xfaLayer.div, "xfaLayer"), this.l10n.resume()), h(this, Vl, Kc).call(this, "xfalayerrendered", l);
21419
21419
  }
21420
- }, nR = async function() {
21420
+ }, VR = async function() {
21421
21421
  if (!this.textLayer)
21422
21422
  return;
21423
21423
  let U = null;
@@ -21440,13 +21440,13 @@ u0 = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(), rn = /*
21440
21440
  for (const Z of l.items)
21441
21441
  d.push(Z.str);
21442
21442
  this._textHighlighter.setTextMapping(U, d), this._textHighlighter.enable();
21443
- }, VR = function() {
21443
+ }, QR = function() {
21444
21444
  const {
21445
21445
  canvas: U
21446
21446
  } = this;
21447
21447
  U && (U.remove(), U.width = U.height = 0, this.canvas = null, R(this, ia, null));
21448
- }, QR = async function(U, l = null) {
21449
- if (U === this.renderTask && (this.renderTask = null), l instanceof oR) {
21448
+ }, iR = async function(U, l = null) {
21449
+ if (U === this.renderTask && (this.renderTask = null), l instanceof yR) {
21450
21450
  R(this, v0, null);
21451
21451
  return;
21452
21452
  }
@@ -21506,7 +21506,7 @@ class KG {
21506
21506
  (await this._ready).nukeSandbox();
21507
21507
  }
21508
21508
  }
21509
- var RZ, P0, vn, Zc, tc, DV, Id, Qt, Ra, _l, MU, rd, Ae, Hn, iR, _e, IW;
21509
+ var RZ, P0, vn, Zc, tc, DV, Id, Qt, Ra, _l, MU, rd, Ae, Hn, RR, _e, IW;
21510
21510
  class vG {
21511
21511
  constructor({
21512
21512
  eventBus: l,
@@ -21553,7 +21553,7 @@ class vG {
21553
21553
  pageNumber: s,
21554
21554
  previous: n
21555
21555
  }) => {
21556
- s !== n && (h(this, rd, iR).call(this, n), h(this, rd, Hn).call(this, s));
21556
+ s !== n && (h(this, rd, RR).call(this, n), h(this, rd, Hn).call(this, s));
21557
21557
  }, {
21558
21558
  signal: a
21559
21559
  }), c._on("pagerendered", ({
@@ -21564,7 +21564,7 @@ class vG {
21564
21564
  signal: a
21565
21565
  }), c._on("pagesdestroy", async () => {
21566
21566
  var s, n;
21567
- await h(this, rd, iR).call(this, W(this, Qt).currentPageNumber), await ((s = W(this, _l)) == null ? void 0 : s.dispatchEventInSandbox({
21567
+ await h(this, rd, RR).call(this, W(this, Qt).currentPageNumber), await ((s = W(this, _l)) == null ? void 0 : s.dispatchEventInSandbox({
21568
21568
  id: "doc",
21569
21569
  name: "WillClose"
21570
21570
  })), (n = W(this, RZ)) == null || n.resolve();
@@ -21746,7 +21746,7 @@ RZ = /* @__PURE__ */ new WeakMap(), P0 = /* @__PURE__ */ new WeakMap(), vn = /*
21746
21746
  }));
21747
21747
  })();
21748
21748
  Z.set(U, F);
21749
- }, iR = async function(U) {
21749
+ }, RR = async function(U) {
21750
21750
  var l;
21751
21751
  const d = W(this, Id), Z = this._visitedPages;
21752
21752
  if (!W(this, RZ) || this._pageOpenPending.has(U))
@@ -21850,7 +21850,7 @@ class fG {
21850
21850
  this.highestPriorityPage = l.renderingId, l.draw().finally(() => {
21851
21851
  this.renderHighestPriority();
21852
21852
  }).catch((d) => {
21853
- d instanceof oR || console.error("renderView:", d);
21853
+ d instanceof yR || console.error("renderView:", d);
21854
21854
  });
21855
21855
  break;
21856
21856
  }
@@ -21865,14 +21865,14 @@ const Sh = 10, us = {
21865
21865
  function Th(U) {
21866
21866
  return Object.values(Od).includes(U) && U !== Od.DISABLE;
21867
21867
  }
21868
- var it, B0, Pn, RR;
21868
+ var it, B0, Pn, NR;
21869
21869
  class AG {
21870
21870
  constructor(l) {
21871
21871
  e(this, Pn), e(this, it, /* @__PURE__ */ new Set()), e(this, B0, 0), R(this, B0, l);
21872
21872
  }
21873
21873
  push(l) {
21874
21874
  const d = W(this, it);
21875
- d.has(l) && d.delete(l), d.add(l), d.size > W(this, B0) && h(this, Pn, RR).call(this);
21875
+ d.has(l) && d.delete(l), d.add(l), d.size > W(this, B0) && h(this, Pn, NR).call(this);
21876
21876
  }
21877
21877
  resize(l, d = null) {
21878
21878
  R(this, B0, l);
@@ -21885,7 +21885,7 @@ class AG {
21885
21885
  break;
21886
21886
  }
21887
21887
  for (; Z.size > W(this, B0); )
21888
- h(this, Pn, RR).call(this);
21888
+ h(this, Pn, NR).call(this);
21889
21889
  }
21890
21890
  has(l) {
21891
21891
  return W(this, it).has(l);
@@ -21894,11 +21894,11 @@ class AG {
21894
21894
  return W(this, it).keys();
21895
21895
  }
21896
21896
  }
21897
- it = /* @__PURE__ */ new WeakMap(), B0 = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakSet(), RR = function() {
21897
+ it = /* @__PURE__ */ new WeakMap(), B0 = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakSet(), NR = function() {
21898
21898
  const U = W(this, it).keys().next().value;
21899
21899
  U == null || U.destroy(), W(this, it).delete(U);
21900
21900
  };
21901
- var QF, fn, An, NZ, $d, Fc, Na, _n, qn, $n, lV, dV, UV, iF, o0, cc, f0, DW, eF, ha, ZV, EW, Wc, pF, tV, ba, Fl, qe, $e, lm, ea, EV, Xh, fQ, ph, Zt, NR, dm, Um, Zm, hR, tm, FV;
21901
+ var QF, fn, An, NZ, $d, Fc, Na, _n, qn, $n, lV, dV, UV, iF, o0, cc, f0, DW, eF, ha, ZV, EW, Wc, pF, tV, ba, Fl, qe, $e, lm, ea, EV, Xh, AQ, ph, Zt, hR, dm, Um, Zm, bR, tm, FV;
21902
21902
  class Fm {
21903
21903
  constructor(l) {
21904
21904
  e(this, Fl), e(this, QF, null), e(this, fn, null), e(this, An, null), e(this, NZ, Od.NONE), e(this, $d, null), e(this, Fc, pZ.ENABLE_FORMS), e(this, Na, null), e(this, _n, null), e(this, qn, !1), e(this, $n, !1), e(this, lV, !1), e(this, dV, !1), e(this, UV, !1), e(this, iF, null), e(this, o0, null), e(this, cc, null), e(this, f0, null), e(this, DW, !1), e(this, eF, null), e(this, ha, !1), e(this, ZV, 0), e(this, EW, new ResizeObserver(h(this, Fl, tm).bind(this))), e(this, Wc, null), e(this, pF, null), e(this, tV, !0), e(this, ba, HU.ENABLE);
@@ -21910,7 +21910,7 @@ class Fm {
21910
21910
  throw new Error("Invalid `container` and/or `viewer` option.");
21911
21911
  if (this.container.offsetParent && getComputedStyle(this.container).position !== "absolute")
21912
21912
  throw new Error("The `container` must be absolutely positioned.");
21913
- W(this, EW).observe(this.container), this.eventBus = l.eventBus, this.linkService = l.linkService || new BR(), this.downloadManager = l.downloadManager || null, this.findController = l.findController || null, R(this, fn, l.altTextManager || null), R(this, _n, l.editorUndoBar || null), this.findController && (this.findController.onIsPageVisible = (c) => this._getVisiblePages().ids.has(c)), this._scriptingManager = l.scriptingManager || null, R(this, ba, l.textLayerMode ?? HU.ENABLE), R(this, Fc, l.annotationMode ?? pZ.ENABLE_FORMS), R(this, NZ, l.annotationEditorMode ?? Od.NONE), R(this, An, l.annotationEditorHighlightColors || null), R(this, $n, l.enableHighlightFloatingButton === !0), R(this, dV, l.enableUpdatedAddImage === !0), R(this, UV, l.enableNewAltTextWhenAddingImage === !0), this.imageResourcesPath = l.imageResourcesPath || "", this.enablePrintAutoRotate = l.enablePrintAutoRotate || !1, this.removePageBorders = l.removePageBorders || !1, this.maxCanvasPixels = l.maxCanvasPixels, this.l10n = l.l10n, this.l10n || (this.l10n = new PV()), R(this, lV, l.enablePermissions || !1), this.pageColors = l.pageColors || null, R(this, o0, l.mlManager || null), R(this, qn, l.enableHWA || !1), R(this, tV, l.supportsPinchToZoom !== !1), this.defaultRenderingQueue = !l.renderingQueue, this.defaultRenderingQueue ? (this.renderingQueue = new fG(), this.renderingQueue.setViewer(this)) : this.renderingQueue = l.renderingQueue;
21913
+ W(this, EW).observe(this.container), this.eventBus = l.eventBus, this.linkService = l.linkService || new oR(), this.downloadManager = l.downloadManager || null, this.findController = l.findController || null, R(this, fn, l.altTextManager || null), R(this, _n, l.editorUndoBar || null), this.findController && (this.findController.onIsPageVisible = (c) => this._getVisiblePages().ids.has(c)), this._scriptingManager = l.scriptingManager || null, R(this, ba, l.textLayerMode ?? HU.ENABLE), R(this, Fc, l.annotationMode ?? pZ.ENABLE_FORMS), R(this, NZ, l.annotationEditorMode ?? Od.NONE), R(this, An, l.annotationEditorHighlightColors || null), R(this, $n, l.enableHighlightFloatingButton === !0), R(this, dV, l.enableUpdatedAddImage === !0), R(this, UV, l.enableNewAltTextWhenAddingImage === !0), this.imageResourcesPath = l.imageResourcesPath || "", this.enablePrintAutoRotate = l.enablePrintAutoRotate || !1, this.removePageBorders = l.removePageBorders || !1, this.maxCanvasPixels = l.maxCanvasPixels, this.l10n = l.l10n, this.l10n || (this.l10n = new PV()), R(this, lV, l.enablePermissions || !1), this.pageColors = l.pageColors || null, R(this, o0, l.mlManager || null), R(this, qn, l.enableHWA || !1), R(this, tV, l.supportsPinchToZoom !== !1), this.defaultRenderingQueue = !l.renderingQueue, this.defaultRenderingQueue ? (this.renderingQueue = new fG(), this.renderingQueue.setViewer(this)) : this.renderingQueue = l.renderingQueue;
21914
21914
  const {
21915
21915
  abortSignal: F
21916
21916
  } = l;
@@ -21918,7 +21918,7 @@ class Fm {
21918
21918
  W(this, EW).disconnect(), R(this, EW, null);
21919
21919
  }, {
21920
21920
  once: !0
21921
- }), this.scroll = KM(this.container, this._scrollUpdate.bind(this), F), this.presentationModeState = Uc.UNKNOWN, this._resetView(), this.removePageBorders && this.viewer.classList.add("removePageBorders"), h(this, Fl, hR).call(this), this.eventBus._on("thumbnailrendered", ({
21921
+ }), this.scroll = KM(this.container, this._scrollUpdate.bind(this), F), this.presentationModeState = Uc.UNKNOWN, this._resetView(), this.removePageBorders && this.viewer.classList.add("removePageBorders"), h(this, Fl, bR).call(this), this.eventBus._on("thumbnailrendered", ({
21922
21922
  pageNumber: c,
21923
21923
  pdfPage: a
21924
21924
  }) => {
@@ -21955,7 +21955,7 @@ class Fm {
21955
21955
  _setCurrentPageNumber(l, d = !1) {
21956
21956
  var Z;
21957
21957
  if (this._currentPageNumber === l)
21958
- return d && h(this, Fl, NR).call(this), !0;
21958
+ return d && h(this, Fl, hR).call(this), !0;
21959
21959
  if (!(0 < l && l <= this.pagesCount))
21960
21960
  return !1;
21961
21961
  const t = this._currentPageNumber;
@@ -21964,7 +21964,7 @@ class Fm {
21964
21964
  pageNumber: l,
21965
21965
  pageLabel: ((Z = this._pageLabels) == null ? void 0 : Z[l - 1]) ?? null,
21966
21966
  previous: t
21967
- }), d && h(this, Fl, NR).call(this), !0;
21967
+ }), d && h(this, Fl, hR).call(this), !0;
21968
21968
  }
21969
21969
  get currentPageLabel() {
21970
21970
  var l;
@@ -21981,7 +21981,7 @@ class Fm {
21981
21981
  this._setCurrentPageNumber(d, !0) || console.error(`currentPageLabel: "${l}" is not a valid page.`);
21982
21982
  }
21983
21983
  get currentScale() {
21984
- return this._currentScale !== zQ ? this._currentScale : Ne;
21984
+ return this._currentScale !== LQ ? this._currentScale : Ne;
21985
21985
  }
21986
21986
  set currentScale(l) {
21987
21987
  if (isNaN(l))
@@ -22215,7 +22215,7 @@ class Fm {
22215
22215
  }
22216
22216
  _resetView() {
22217
22217
  var l, d;
22218
- this._pages = [], this._currentPageNumber = 1, this._currentScale = zQ, this._currentScaleValue = null, this._pageLabels = null, R(this, QF, new AG(Sh)), this._location = null, this._pagesRotation = 0, this._optionalContentConfigPromise = null, this._firstPageCapability = Promise.withResolvers(), this._onePageRenderedCapability = Promise.withResolvers(), this._pagesCapability = Promise.withResolvers(), this._scrollMode = cl.VERTICAL, this._previousScrollMode = cl.UNKNOWN, this._spreadMode = md.NONE, R(this, Wc, {
22218
+ this._pages = [], this._currentPageNumber = 1, this._currentScale = LQ, this._currentScaleValue = null, this._pageLabels = null, R(this, QF, new AG(Sh)), this._location = null, this._pagesRotation = 0, this._optionalContentConfigPromise = null, this._firstPageCapability = Promise.withResolvers(), this._onePageRenderedCapability = Promise.withResolvers(), this._pagesCapability = Promise.withResolvers(), this._scrollMode = cl.VERTICAL, this._previousScrollMode = cl.UNKNOWN, this._spreadMode = md.NONE, R(this, Wc, {
22219
22219
  previousPageNumber: 1,
22220
22220
  scrollDown: !0,
22221
22221
  pages: []
@@ -22275,7 +22275,7 @@ class Fm {
22275
22275
  console.error(`scrollPageIntoView: "${d[1].name}" is not a valid destination type.`);
22276
22276
  return;
22277
22277
  }
22278
- if (t || (m && m !== this._currentScale ? this.currentScaleValue = m : this._currentScale === zQ && (this.currentScaleValue = xM)), m === "page-fit" && !d[4]) {
22278
+ if (t || (m && m !== this._currentScale ? this.currentScaleValue = m : this._currentScale === LQ && (this.currentScaleValue = xM)), m === "page-fit" && !d[4]) {
22279
22279
  h(this, Fl, EV).call(this, F);
22280
22280
  return;
22281
22281
  }
@@ -22669,7 +22669,7 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22669
22669
  } = d;
22670
22670
  if (t && Z && d.containsNode(W(this, eF))) {
22671
22671
  if (W(this, DW) || U === HU.ENABLE_PERMISSIONS) {
22672
- Hi(l);
22672
+ Pi(l);
22673
22673
  return;
22674
22674
  }
22675
22675
  R(this, DW, !0);
@@ -22686,7 +22686,7 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22686
22686
  console.warn(`Something goes wrong when extracting the text: ${a.message}`);
22687
22687
  }).finally(() => {
22688
22688
  R(this, DW, !1), R(this, ha, !1), c.abort(), F.remove("copyAll");
22689
- }), Hi(l);
22689
+ }), Pi(l);
22690
22690
  }
22691
22691
  }, ea = function() {
22692
22692
  if (this._scrollMode !== cl.PAGE)
@@ -22728,7 +22728,7 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22728
22728
  ee(d, l), !this._currentScaleValue && this._location && (this._location = null);
22729
22729
  }, Xh = function(U) {
22730
22730
  return U === this._currentScale || Math.abs(U - this._currentScale) < 1e-15;
22731
- }, fQ = function(U, l, {
22731
+ }, AQ = function(U, l, {
22732
22732
  noScroll: d = !1,
22733
22733
  preset: Z = !1,
22734
22734
  drawingDelay: t = -1,
@@ -22774,7 +22774,7 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22774
22774
  }, Zt = function(U, l) {
22775
22775
  let d = parseFloat(U);
22776
22776
  if (d > 0)
22777
- l.preset = !1, h(this, Fl, fQ).call(this, d, U, l);
22777
+ l.preset = !1, h(this, Fl, AQ).call(this, d, U, l);
22778
22778
  else {
22779
22779
  const Z = this._pages[this._currentPageNumber - 1];
22780
22780
  if (!Z)
@@ -22803,9 +22803,9 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22803
22803
  console.error(`#setScale: "${U}" is an unknown zoom value.`);
22804
22804
  return;
22805
22805
  }
22806
- l.preset = !0, h(this, Fl, fQ).call(this, d, U, l);
22806
+ l.preset = !0, h(this, Fl, AQ).call(this, d, U, l);
22807
22807
  }
22808
- }, NR = function() {
22808
+ }, hR = function() {
22809
22809
  const U = this._pages[this._currentPageNumber - 1];
22810
22810
  this.isInPresentationMode && h(this, Fl, Zt).call(this, this._currentScaleValue, {
22811
22811
  noScroll: !0
@@ -22853,12 +22853,12 @@ QF = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), An = /*
22853
22853
  return this.scroll.right;
22854
22854
  }
22855
22855
  return this.scroll.down;
22856
- }, hR = function(U = this.container.clientHeight) {
22856
+ }, bR = function(U = this.container.clientHeight) {
22857
22857
  U !== W(this, ZV) && (R(this, ZV, U), AM.setProperty("--viewer-container-height", `${U}px`));
22858
22858
  }, tm = function(U) {
22859
22859
  for (const l of U)
22860
22860
  if (l.target === this.container) {
22861
- h(this, Fl, hR).call(this, Math.floor(l.borderBoxSize[0].blockSize)), R(this, Na, null);
22861
+ h(this, Fl, bR).call(this, Math.floor(l.borderBoxSize[0].blockSize)), R(this, Na, null);
22862
22862
  break;
22863
22863
  }
22864
22864
  }, FV = function() {
@@ -22906,7 +22906,7 @@ const $G = ["id"], lS = ["id"], dS = {
22906
22906
  }, US = {
22907
22907
  key: 1,
22908
22908
  class: "annotationLayer"
22909
- }, cm = /* @__PURE__ */ bR({
22909
+ }, cm = /* @__PURE__ */ eR({
22910
22910
  __name: "VuePdfEmbed",
22911
22911
  props: {
22912
22912
  annotationLayer: { type: Boolean },
@@ -22989,7 +22989,7 @@ const $G = ["id"], lS = ["id"], dS = {
22989
22989
  })
22990
22990
  ), G && (E = window.document.title, window.document.title = G), (p = y.contentWindow) == null || p.focus(), (u = y.contentWindow) == null || u.print();
22991
22991
  } finally {
22992
- E && (window.document.title = E), kQ(B), (Y = B.parentNode) == null || Y.removeChild(B);
22992
+ E && (window.document.title = E), zQ(B), (Y = B.parentNode) == null || Y.removeChild(B);
22993
22993
  }
22994
22994
  }, b = async () => {
22995
22995
  if (!(!n.value || s != null && s.isAborted))
@@ -23069,13 +23069,13 @@ const $G = ["id"], lS = ["id"], dS = {
23069
23069
  viewport: G
23070
23070
  }).render();
23071
23071
  };
23072
- return AQ(
23072
+ return _Q(
23073
23073
  n,
23074
23074
  (S) => {
23075
23075
  S && t("loaded", S);
23076
23076
  },
23077
23077
  { immediate: !0 }
23078
- ), AQ(
23078
+ ), _Q(
23079
23079
  () => [
23080
23080
  n.value,
23081
23081
  Z.annotationLayer,
@@ -23088,14 +23088,14 @@ const $G = ["id"], lS = ["id"], dS = {
23088
23088
  Z.width
23089
23089
  ],
23090
23090
  async ([S]) => {
23091
- S && (s && (s.isAborted = !0, await s.promise), kQ(a.value), s = {
23091
+ S && (s && (s.isAborted = !0, await s.promise), zQ(a.value), s = {
23092
23092
  isAborted: !1,
23093
23093
  promise: b()
23094
23094
  }, await s.promise, s = null);
23095
23095
  },
23096
23096
  { immediate: !0 }
23097
23097
  ), uh(() => {
23098
- kQ(a.value);
23098
+ zQ(a.value);
23099
23099
  }), l({
23100
23100
  doc: n,
23101
23101
  download: Q,
@@ -23126,14 +23126,14 @@ const $G = ["id"], lS = ["id"], dS = {
23126
23126
  }
23127
23127
  });
23128
23128
  window != null && window.Vue && (window.VuePdfEmbed = cm, window.useVuePdfEmbed = Re);
23129
- yQ != null && yQ.workerSrc || (yQ.workerSrc = EM);
23129
+ kQ != null && kQ.workerSrc || (kQ.workerSrc = EM);
23130
23130
  const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { class: "relative-position fit bordered overflow-hidden pdf-wrapper" }, WS = {
23131
23131
  key: 0,
23132
23132
  class: "absolute fit row justify-center items-center"
23133
23133
  }, aS = { class: "pdf-overlay" }, sS = {
23134
23134
  key: 1,
23135
23135
  class: "pdf-viewer-name"
23136
- }, nS = { class: "flex justify-between items-center" }, VS = { class: "t-system" }, QS = /* @__PURE__ */ bR({
23136
+ }, nS = { class: "flex justify-between items-center" }, VS = { class: "t-system" }, QS = /* @__PURE__ */ eR({
23137
23137
  __name: "PDFViewer",
23138
23138
  props: {
23139
23139
  pdf: {
@@ -23197,7 +23197,7 @@ const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { c
23197
23197
  icon: fV(ZS),
23198
23198
  onClick: c
23199
23199
  }, null, 8, ["icon"]),
23200
- KU("div", VS, zR(t.value) + " / " + zR(Z.value), 1),
23200
+ KU("div", VS, LR(t.value) + " / " + LR(Z.value), 1),
23201
23201
  $F(i, {
23202
23202
  variant: "plain",
23203
23203
  icon: fV(tS),
@@ -23222,7 +23222,7 @@ const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { c
23222
23222
  }, XS = {
23223
23223
  key: 1,
23224
23224
  class: "flex flex-col items-center gap-2 py-8"
23225
- }, dT = /* @__PURE__ */ bR({
23225
+ }, dT = /* @__PURE__ */ eR({
23226
23226
  __name: "DocumentViewer",
23227
23227
  props: {
23228
23228
  document: {},
@@ -23242,11 +23242,11 @@ const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { c
23242
23242
  a.value = !0;
23243
23243
  try {
23244
23244
  let M = "";
23245
- l.businessId ? M = await IR.adminView(
23245
+ l.document.startsWith("food-court/") ? M = await AV.foodCourtView(l.document) : l.businessId ? M = await AV.adminView(
23246
23246
  l.document,
23247
23247
  l.businessId,
23248
23248
  l.restaurantId
23249
- ) : M = await IR.view(l.document, l.restaurantId);
23249
+ ) : M = await AV.view(l.document, l.restaurantId);
23250
23250
  try {
23251
23251
  const J = await fetch(M), S = J.headers.get("content-type") ?? "";
23252
23252
  V.value = S.split(";")[0].trim(), (m = J.body) == null || m.cancel();
@@ -23272,7 +23272,7 @@ const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { c
23272
23272
  key: 0,
23273
23273
  src: m.$props.document ?? "",
23274
23274
  alt: "Document"
23275
- }, null, 8, NS)) : F.value ? (Ll(), LR(iS, {
23275
+ }, null, 8, NS)) : F.value ? (Ll(), IR(iS, {
23276
23276
  key: 1,
23277
23277
  pdf: m.$props.document ?? "",
23278
23278
  "disable-text-layer": !0,
@@ -23302,7 +23302,7 @@ const ZS = "chevron_left", tS = "chevron_right", FS = { class: "row" }, cS = { c
23302
23302
  ])) : (Ll(), Kl("div", MS, [
23303
23303
  KU("div", JS, [
23304
23304
  Q.value ? (Ll(), Kl("div", GS, [
23305
- a.value ? (Ll(), LR(S, {
23305
+ a.value ? (Ll(), IR(S, {
23306
23306
  key: 1,
23307
23307
  size: "xl",
23308
23308
  color: "primary"