legalesign-document-viewer 0.7.2 → 0.7.3

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 (524) hide show
  1. package/dist/{components/p-ChV9xqsO.js → ls-document-viewer/clsx-ChV9xqsO.js} +2 -2
  2. package/dist/ls-document-viewer/clsx-ChV9xqsO.js.map +1 -0
  3. package/dist/{components/p-Cp3IxvzK.js → ls-document-viewer/defaultFieldIcons-Cp3IxvzK.js} +2 -2
  4. package/dist/ls-document-viewer/defaultFieldIcons-Cp3IxvzK.js.map +1 -0
  5. package/dist/{collection/components/ls-document-viewer/defaultFieldLabels.js → ls-document-viewer/defaultFieldLabels-CUaKk41L.js} +11 -7
  6. package/dist/ls-document-viewer/defaultFieldLabels-CUaKk41L.js.map +1 -0
  7. package/dist/{collection/components/ls-document-viewer/defaultPalette.js → ls-document-viewer/defaultPalette-CwCWCxsI.js} +6 -2
  8. package/dist/ls-document-viewer/defaultPalette-CwCWCxsI.js.map +1 -0
  9. package/dist/{components/p-CKnixZlS.js → ls-document-viewer/editorUtils-B8pqYCt6.js} +70 -260
  10. package/dist/ls-document-viewer/editorUtils-B8pqYCt6.js.map +1 -0
  11. package/dist/ls-document-viewer/index-DANCsk1i.js +4417 -0
  12. package/dist/ls-document-viewer/index-DANCsk1i.js.map +1 -0
  13. package/dist/ls-document-viewer/index.esm.js +17 -1
  14. package/dist/ls-document-viewer/index.esm.js.map +1 -1
  15. package/dist/ls-document-viewer/ls-compose-manager.entry.js +24 -0
  16. package/dist/{components/p-Bd5hHfVU.js → ls-document-viewer/ls-document-options.entry.js} +10 -53
  17. package/dist/ls-document-viewer/ls-document-viewer.css +259 -1
  18. package/dist/{components/ls-document-viewer.js → ls-document-viewer/ls-document-viewer.entry.js} +884 -505
  19. package/dist/ls-document-viewer/ls-document-viewer.esm.js +49 -1
  20. package/dist/ls-document-viewer/ls-document-viewer.esm.js.map +1 -1
  21. package/dist/ls-document-viewer/ls-editor-field.entry.js +203 -0
  22. package/dist/ls-document-viewer/ls-editor-table.entry.js +38 -0
  23. package/dist/ls-document-viewer/ls-feature-column.entry.js +49 -0
  24. package/dist/{components/p-UffBQXtF.js → ls-document-viewer/ls-field-alignment.entry.js} +12 -46
  25. package/dist/{components/p-Dsi4R7Oq.js → ls-document-viewer/ls-field-content.entry.js} +13 -70
  26. package/dist/{components/p-DBZFz4Ni.js → ls-document-viewer/ls-field-dimensions.entry.js} +13 -47
  27. package/dist/ls-document-viewer/ls-field-distribute.entry.js +159 -0
  28. package/dist/{components/p-BDTgDxaX.js → ls-document-viewer/ls-field-footer.entry.js} +9 -37
  29. package/dist/{components/p-Ch9RTQWk.js → ls-document-viewer/ls-field-format.entry.js} +21 -57
  30. package/dist/{components/p-CYMm2d62.js → ls-document-viewer/ls-field-placement.entry.js} +11 -45
  31. package/dist/{components/p-BSpwN-xy.js → ls-document-viewer/ls-field-properties-advanced.entry.js} +10 -45
  32. package/dist/{components/p-Cx-QcGQg.js → ls-document-viewer/ls-field-properties-autosign.entry.js} +9 -67
  33. package/dist/ls-document-viewer/ls-field-properties-container.entry.js +24 -0
  34. package/dist/ls-document-viewer/ls-field-properties-date.entry.js +17 -0
  35. package/dist/ls-document-viewer/ls-field-properties-dropdown.entry.js +17 -0
  36. package/dist/ls-document-viewer/ls-field-properties-email.entry.js +17 -0
  37. package/dist/ls-document-viewer/ls-field-properties-file.entry.js +17 -0
  38. package/dist/ls-document-viewer/ls-field-properties-general.entry.js +17 -0
  39. package/dist/ls-document-viewer/ls-field-properties-image.entry.js +17 -0
  40. package/dist/{components/p-CMsyvCsL.js → ls-document-viewer/ls-field-properties-multiple.entry.js} +13 -101
  41. package/dist/ls-document-viewer/ls-field-properties-number.entry.js +17 -0
  42. package/dist/ls-document-viewer/ls-field-properties-signature.entry.js +17 -0
  43. package/dist/ls-document-viewer/ls-field-properties-text.entry.js +17 -0
  44. package/dist/ls-document-viewer/ls-field-properties.entry.js +53 -0
  45. package/dist/{components/p-DirhmWEt.js → ls-document-viewer/ls-field-size.entry.js} +11 -45
  46. package/dist/ls-document-viewer/ls-field-type-display.entry.js +29 -0
  47. package/dist/{esm → ls-document-viewer}/ls-formfield.entry.js +4 -4
  48. package/dist/ls-document-viewer/ls-helper-bar.entry.js +23 -0
  49. package/dist/{components/p-DnyBXRV4.js → ls-document-viewer/ls-icon.entry.js} +16 -34
  50. package/dist/ls-document-viewer/ls-input-wrapper.entry.js +18 -0
  51. package/dist/{components/p-DfkXv1vI.js → ls-document-viewer/ls-keyboard-shortcuts.entry.js} +9 -29
  52. package/dist/{components/p-BrNFnrQ5.js → ls-document-viewer/ls-number-input.entry.js} +10 -51
  53. package/dist/{collection/components/ls-page-loader/ls-page-loader.js → ls-document-viewer/ls-page-loader.entry.js} +15 -18
  54. package/dist/{components/p-B4_-Y3Tc.js → ls-document-viewer/ls-participant-card.entry.js} +19 -68
  55. package/dist/{components/p-enO8g-4z.js → ls-document-viewer/ls-participant-manager.entry.js} +11 -58
  56. package/dist/{components/p-DK4_6BnD.js → ls-document-viewer/ls-participant-select.entry.js} +18 -51
  57. package/dist/ls-document-viewer/ls-props-section.entry.js +19 -0
  58. package/dist/ls-document-viewer/ls-radio-input.entry.js +26 -0
  59. package/dist/{components/p-CbSH7gJL.js → ls-document-viewer/ls-recipient-card.entry.js} +15 -63
  60. package/dist/ls-document-viewer/ls-recipient-manager.entry.js +16 -0
  61. package/dist/{components/p-B6kmJVw0.js → ls-document-viewer/ls-select-input.entry.js} +10 -48
  62. package/dist/{components/p-Bw19bxna.js → ls-document-viewer/ls-statusbar.entry.js} +13 -62
  63. package/dist/{components/p-tbdpKil5.js → ls-document-viewer/ls-text-input.entry.js} +11 -53
  64. package/dist/{components/p-CntMVGQM.js → ls-document-viewer/ls-textarea-input.entry.js} +10 -51
  65. package/dist/{esm → ls-document-viewer}/ls-title-input.entry.js +3 -3
  66. package/dist/{components/p-mm_laW9q.js → ls-document-viewer/ls-toggle.entry.js} +10 -32
  67. package/dist/{components/p-pumCOAgo.js → ls-document-viewer/ls-toolbar.entry.js} +10 -60
  68. package/dist/{components/p-CI3IFKqK.js → ls-document-viewer/ls-toolbox-field.entry.js} +14 -59
  69. package/dist/{components/p-faUZy676.js → ls-document-viewer/ls-tooltip.entry.js} +695 -45
  70. package/dist/{components/p-T6MZpv4Y.js → ls-document-viewer/ls-validation-manager.entry.js} +11 -51
  71. package/dist/{components/p-DdAAJAZW.js → ls-document-viewer/ls-validation-tag.entry.js} +11 -43
  72. package/dist/{collection/components/ls-document-viewer/mouseHandlers.js → ls-document-viewer/mouseHandlers-ng8CZPvb.js} +15 -10
  73. package/dist/ls-document-viewer/mouseHandlers-ng8CZPvb.js.map +1 -0
  74. package/dist/{components/p-Cb8nDMs-.js → ls-document-viewer/tooltip-Cb8nDMs-.js} +2 -2
  75. package/dist/ls-document-viewer/tooltip-Cb8nDMs-.js.map +1 -0
  76. package/dist/types/components.d.ts +6 -6
  77. package/package.json +1 -1
  78. package/dist/cjs/index-Czv4Oowx.js +0 -2010
  79. package/dist/cjs/index-Czv4Oowx.js.map +0 -1
  80. package/dist/cjs/index.cjs.js +0 -10
  81. package/dist/cjs/index.cjs.js.map +0 -1
  82. package/dist/cjs/loader.cjs.js +0 -15
  83. package/dist/cjs/loader.cjs.js.map +0 -1
  84. package/dist/cjs/ls-compose-manager.cjs.entry.js +0 -26
  85. package/dist/cjs/ls-document-options_45.cjs.entry.js +0 -51718
  86. package/dist/cjs/ls-document-viewer.cjs.js +0 -27
  87. package/dist/cjs/ls-document-viewer.cjs.js.map +0 -1
  88. package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +0 -19
  89. package/dist/cjs/ls-formfield.cjs.entry.js +0 -160
  90. package/dist/cjs/ls-number-input_5.cjs.entry.js +0 -1129
  91. package/dist/cjs/ls-title-input.cjs.entry.js +0 -49
  92. package/dist/collection/collection-manifest.json +0 -65
  93. package/dist/collection/components/interfaces/IToolboxField.js +0 -2
  94. package/dist/collection/components/interfaces/IToolboxField.js.map +0 -1
  95. package/dist/collection/components/ls-compose-manager/ls-compose-manager.css +0 -3
  96. package/dist/collection/components/ls-compose-manager/ls-compose-manager.js +0 -54
  97. package/dist/collection/components/ls-compose-manager/ls-compose-manager.js.map +0 -1
  98. package/dist/collection/components/ls-document-options/ls-document-options.css +0 -386
  99. package/dist/collection/components/ls-document-options/ls-document-options.js +0 -163
  100. package/dist/collection/components/ls-document-options/ls-document-options.js.map +0 -1
  101. package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +0 -89
  102. package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +0 -1
  103. package/dist/collection/components/ls-document-viewer/adapter/elementActions.js +0 -72
  104. package/dist/collection/components/ls-document-viewer/adapter/elementActions.js.map +0 -1
  105. package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +0 -96
  106. package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +0 -1
  107. package/dist/collection/components/ls-document-viewer/adapter/parameters.js +0 -16
  108. package/dist/collection/components/ls-document-viewer/adapter/parameters.js.map +0 -1
  109. package/dist/collection/components/ls-document-viewer/adapter/roleActions.js +0 -70
  110. package/dist/collection/components/ls-document-viewer/adapter/roleActions.js.map +0 -1
  111. package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +0 -95
  112. package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +0 -1
  113. package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js +0 -20
  114. package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js.map +0 -1
  115. package/dist/collection/components/ls-document-viewer/defaultFieldLabels.js.map +0 -1
  116. package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +0 -1
  117. package/dist/collection/components/ls-document-viewer/editorCalculator.js +0 -133
  118. package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +0 -1
  119. package/dist/collection/components/ls-document-viewer/editorUtils.js +0 -210
  120. package/dist/collection/components/ls-document-viewer/editorUtils.js.map +0 -1
  121. package/dist/collection/components/ls-document-viewer/keyHandlers.js +0 -76
  122. package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +0 -1
  123. package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +0 -688
  124. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +0 -1292
  125. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +0 -1
  126. package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +0 -1
  127. package/dist/collection/components/ls-document-viewer/validator.js +0 -51
  128. package/dist/collection/components/ls-document-viewer/validator.js.map +0 -1
  129. package/dist/collection/components/ls-editor-field/ls-editor-field.css +0 -89
  130. package/dist/collection/components/ls-editor-field/ls-editor-field.js +0 -468
  131. package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +0 -1
  132. package/dist/collection/components/ls-editor-table/ls-editor-table.css +0 -16
  133. package/dist/collection/components/ls-editor-table/ls-editor-table.js +0 -69
  134. package/dist/collection/components/ls-editor-table/ls-editor-table.js.map +0 -1
  135. package/dist/collection/components/ls-feature-column/ls-feature-column.css +0 -27
  136. package/dist/collection/components/ls-feature-column/ls-feature-column.js +0 -114
  137. package/dist/collection/components/ls-feature-column/ls-feature-column.js.map +0 -1
  138. package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +0 -370
  139. package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +0 -208
  140. package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +0 -1
  141. package/dist/collection/components/ls-field-content/ls-field-content.css +0 -288
  142. package/dist/collection/components/ls-field-content/ls-field-content.js +0 -141
  143. package/dist/collection/components/ls-field-content/ls-field-content.js.map +0 -1
  144. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.css +0 -353
  145. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +0 -141
  146. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +0 -1
  147. package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +0 -376
  148. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +0 -213
  149. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +0 -1
  150. package/dist/collection/components/ls-field-footer/ls-field-footer.css +0 -55
  151. package/dist/collection/components/ls-field-footer/ls-field-footer.js +0 -145
  152. package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +0 -1
  153. package/dist/collection/components/ls-field-format/ls-field-format.css +0 -297
  154. package/dist/collection/components/ls-field-format/ls-field-format.js +0 -145
  155. package/dist/collection/components/ls-field-format/ls-field-format.js.map +0 -1
  156. package/dist/collection/components/ls-field-placement/ls-field-placement.css +0 -370
  157. package/dist/collection/components/ls-field-placement/ls-field-placement.js +0 -121
  158. package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +0 -1
  159. package/dist/collection/components/ls-field-properties/ls-field-properties.css +0 -286
  160. package/dist/collection/components/ls-field-properties/ls-field-properties.js +0 -83
  161. package/dist/collection/components/ls-field-properties/ls-field-properties.js.map +0 -1
  162. package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.css +0 -391
  163. package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +0 -144
  164. package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +0 -1
  165. package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.css +0 -284
  166. package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +0 -47
  167. package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map +0 -1
  168. package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.css +0 -65
  169. package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js +0 -91
  170. package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js.map +0 -1
  171. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.css +0 -302
  172. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +0 -47
  173. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +0 -1
  174. package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.css +0 -3
  175. package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +0 -47
  176. package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js.map +0 -1
  177. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.css +0 -304
  178. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +0 -47
  179. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +0 -1
  180. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.css +0 -304
  181. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +0 -47
  182. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +0 -1
  183. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.css +0 -304
  184. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +0 -47
  185. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +0 -1
  186. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.css +0 -304
  187. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +0 -47
  188. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +0 -1
  189. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css +0 -459
  190. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +0 -148
  191. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +0 -1
  192. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css +0 -304
  193. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +0 -47
  194. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +0 -1
  195. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css +0 -304
  196. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +0 -47
  197. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +0 -1
  198. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.css +0 -301
  199. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +0 -47
  200. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +0 -1
  201. package/dist/collection/components/ls-field-size/ls-field-size.css +0 -376
  202. package/dist/collection/components/ls-field-size/ls-field-size.js +0 -87
  203. package/dist/collection/components/ls-field-size/ls-field-size.js.map +0 -1
  204. package/dist/collection/components/ls-field-type-display/ls-field-type-display.css +0 -35
  205. package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +0 -75
  206. package/dist/collection/components/ls-field-type-display/ls-field-type-display.js.map +0 -1
  207. package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.css +0 -273
  208. package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +0 -336
  209. package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js.map +0 -1
  210. package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.css +0 -69
  211. package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +0 -172
  212. package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js.map +0 -1
  213. package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.css +0 -228
  214. package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +0 -288
  215. package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js.map +0 -1
  216. package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.css +0 -218
  217. package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +0 -365
  218. package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js.map +0 -1
  219. package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.css +0 -208
  220. package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +0 -326
  221. package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js.map +0 -1
  222. package/dist/collection/components/ls-formfield/ls-formfield.css +0 -98
  223. package/dist/collection/components/ls-formfield/ls-formfield.js +0 -546
  224. package/dist/collection/components/ls-formfield/ls-formfield.js.map +0 -1
  225. package/dist/collection/components/ls-helper-bar/ls-helper-bar.css +0 -33
  226. package/dist/collection/components/ls-helper-bar/ls-helper-bar.js +0 -71
  227. package/dist/collection/components/ls-helper-bar/ls-helper-bar.js.map +0 -1
  228. package/dist/collection/components/ls-icon/icons.js +0 -6639
  229. package/dist/collection/components/ls-icon/icons.js.map +0 -1
  230. package/dist/collection/components/ls-icon/ls-icon.js +0 -145
  231. package/dist/collection/components/ls-icon/ls-icon.js.map +0 -1
  232. package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.css +0 -29
  233. package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +0 -70
  234. package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js.map +0 -1
  235. package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.css +0 -45
  236. package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js +0 -19
  237. package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js.map +0 -1
  238. package/dist/collection/components/ls-page-loader/ls-page-loader.css +0 -20
  239. package/dist/collection/components/ls-page-loader/ls-page-loader.js.map +0 -1
  240. package/dist/collection/components/ls-participant-card/ls-participant-card.css +0 -430
  241. package/dist/collection/components/ls-participant-card/ls-participant-card.js +0 -280
  242. package/dist/collection/components/ls-participant-card/ls-participant-card.js.map +0 -1
  243. package/dist/collection/components/ls-participant-manager/ls-participant-manager.css +0 -350
  244. package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +0 -190
  245. package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +0 -1
  246. package/dist/collection/components/ls-participant-select/ls-participant-select.css +0 -431
  247. package/dist/collection/components/ls-participant-select/ls-participant-select.js +0 -198
  248. package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +0 -1
  249. package/dist/collection/components/ls-props-section/ls-props-section.css +0 -42
  250. package/dist/collection/components/ls-props-section/ls-props-section.js +0 -84
  251. package/dist/collection/components/ls-props-section/ls-props-section.js.map +0 -1
  252. package/dist/collection/components/ls-recipient-card/ls-recipient-card.css +0 -464
  253. package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +0 -299
  254. package/dist/collection/components/ls-recipient-card/ls-recipient-card.js.map +0 -1
  255. package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.css +0 -29
  256. package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js +0 -19
  257. package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js.map +0 -1
  258. package/dist/collection/components/ls-statusbar/ls-statusbar.css +0 -212
  259. package/dist/collection/components/ls-statusbar/ls-statusbar.js +0 -143
  260. package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +0 -1
  261. package/dist/collection/components/ls-title-input/ls-title-input.css +0 -320
  262. package/dist/collection/components/ls-title-input/ls-title-input.js +0 -106
  263. package/dist/collection/components/ls-title-input/ls-title-input.js.map +0 -1
  264. package/dist/collection/components/ls-toggle/ls-toggle.css +0 -90
  265. package/dist/collection/components/ls-toggle/ls-toggle.js +0 -86
  266. package/dist/collection/components/ls-toggle/ls-toggle.js.map +0 -1
  267. package/dist/collection/components/ls-toolbar/ls-toolbar.css +0 -303
  268. package/dist/collection/components/ls-toolbar/ls-toolbar.js +0 -215
  269. package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +0 -1
  270. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +0 -329
  271. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +0 -381
  272. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +0 -1
  273. package/dist/collection/components/ls-tooltip/ls-tooltip.css +0 -55
  274. package/dist/collection/components/ls-tooltip/ls-tooltip.js +0 -205
  275. package/dist/collection/components/ls-tooltip/ls-tooltip.js.map +0 -1
  276. package/dist/collection/components/ls-validation-manager/ls-validation-manager.css +0 -159
  277. package/dist/collection/components/ls-validation-manager/ls-validation-manager.js +0 -63
  278. package/dist/collection/components/ls-validation-manager/ls-validation-manager.js.map +0 -1
  279. package/dist/collection/components/ls-validation-tag/ls-validation-tag.css +0 -232
  280. package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +0 -170
  281. package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +0 -1
  282. package/dist/collection/index.js +0 -11
  283. package/dist/collection/index.js.map +0 -1
  284. package/dist/collection/types/Icon.js +0 -369
  285. package/dist/collection/types/Icon.js.map +0 -1
  286. package/dist/collection/types/LSApiElement.js +0 -2
  287. package/dist/collection/types/LSApiElement.js.map +0 -1
  288. package/dist/collection/types/LSApiElementType.js +0 -16
  289. package/dist/collection/types/LSApiElementType.js.map +0 -1
  290. package/dist/collection/types/LSApiRecipient.js +0 -2
  291. package/dist/collection/types/LSApiRecipient.js.map +0 -1
  292. package/dist/collection/types/LSApiRole.js +0 -2
  293. package/dist/collection/types/LSApiRole.js.map +0 -1
  294. package/dist/collection/types/LSApiTemplate.js +0 -2
  295. package/dist/collection/types/LSApiTemplate.js.map +0 -1
  296. package/dist/collection/types/LSMutateEvent.js +0 -2
  297. package/dist/collection/types/LSMutateEvent.js.map +0 -1
  298. package/dist/collection/types/RoleColor.js +0 -2
  299. package/dist/collection/types/RoleColor.js.map +0 -1
  300. package/dist/collection/types/ValidationError.js +0 -2
  301. package/dist/collection/types/ValidationError.js.map +0 -1
  302. package/dist/collection/types/ValidationType.js +0 -2
  303. package/dist/collection/types/ValidationType.js.map +0 -1
  304. package/dist/collection/utils/tooltip.js +0 -28
  305. package/dist/collection/utils/tooltip.js.map +0 -1
  306. package/dist/collection/utils/utils.js +0 -4
  307. package/dist/collection/utils/utils.js.map +0 -1
  308. package/dist/components/index.js +0 -10
  309. package/dist/components/index.js.map +0 -1
  310. package/dist/components/ls-compose-manager.js +0 -49
  311. package/dist/components/ls-compose-manager.js.map +0 -1
  312. package/dist/components/ls-document-options.js +0 -9
  313. package/dist/components/ls-document-options.js.map +0 -1
  314. package/dist/components/ls-document-viewer.js.map +0 -1
  315. package/dist/components/ls-editor-field.js +0 -9
  316. package/dist/components/ls-editor-field.js.map +0 -1
  317. package/dist/components/ls-editor-table.js +0 -9
  318. package/dist/components/ls-editor-table.js.map +0 -1
  319. package/dist/components/ls-feature-column.js +0 -9
  320. package/dist/components/ls-feature-column.js.map +0 -1
  321. package/dist/components/ls-field-alignment.js +0 -9
  322. package/dist/components/ls-field-alignment.js.map +0 -1
  323. package/dist/components/ls-field-content.js +0 -9
  324. package/dist/components/ls-field-content.js.map +0 -1
  325. package/dist/components/ls-field-dimensions.js +0 -9
  326. package/dist/components/ls-field-dimensions.js.map +0 -1
  327. package/dist/components/ls-field-distribute.js +0 -9
  328. package/dist/components/ls-field-distribute.js.map +0 -1
  329. package/dist/components/ls-field-footer.js +0 -9
  330. package/dist/components/ls-field-footer.js.map +0 -1
  331. package/dist/components/ls-field-format.js +0 -9
  332. package/dist/components/ls-field-format.js.map +0 -1
  333. package/dist/components/ls-field-placement.js +0 -9
  334. package/dist/components/ls-field-placement.js.map +0 -1
  335. package/dist/components/ls-field-properties-advanced.js +0 -9
  336. package/dist/components/ls-field-properties-advanced.js.map +0 -1
  337. package/dist/components/ls-field-properties-autosign.js +0 -9
  338. package/dist/components/ls-field-properties-autosign.js.map +0 -1
  339. package/dist/components/ls-field-properties-container.js +0 -9
  340. package/dist/components/ls-field-properties-container.js.map +0 -1
  341. package/dist/components/ls-field-properties-date.js +0 -9
  342. package/dist/components/ls-field-properties-date.js.map +0 -1
  343. package/dist/components/ls-field-properties-dropdown.js +0 -120
  344. package/dist/components/ls-field-properties-dropdown.js.map +0 -1
  345. package/dist/components/ls-field-properties-email.js +0 -9
  346. package/dist/components/ls-field-properties-email.js.map +0 -1
  347. package/dist/components/ls-field-properties-file.js +0 -9
  348. package/dist/components/ls-field-properties-file.js.map +0 -1
  349. package/dist/components/ls-field-properties-general.js +0 -9
  350. package/dist/components/ls-field-properties-general.js.map +0 -1
  351. package/dist/components/ls-field-properties-image.js +0 -9
  352. package/dist/components/ls-field-properties-image.js.map +0 -1
  353. package/dist/components/ls-field-properties-multiple.js +0 -9
  354. package/dist/components/ls-field-properties-multiple.js.map +0 -1
  355. package/dist/components/ls-field-properties-number.js +0 -9
  356. package/dist/components/ls-field-properties-number.js.map +0 -1
  357. package/dist/components/ls-field-properties-signature.js +0 -9
  358. package/dist/components/ls-field-properties-signature.js.map +0 -1
  359. package/dist/components/ls-field-properties-text.js +0 -9
  360. package/dist/components/ls-field-properties-text.js.map +0 -1
  361. package/dist/components/ls-field-properties.js +0 -9
  362. package/dist/components/ls-field-properties.js.map +0 -1
  363. package/dist/components/ls-field-size.js +0 -9
  364. package/dist/components/ls-field-size.js.map +0 -1
  365. package/dist/components/ls-field-type-display.js +0 -9
  366. package/dist/components/ls-field-type-display.js.map +0 -1
  367. package/dist/components/ls-formfield.js +0 -243
  368. package/dist/components/ls-formfield.js.map +0 -1
  369. package/dist/components/ls-helper-bar.js +0 -9
  370. package/dist/components/ls-helper-bar.js.map +0 -1
  371. package/dist/components/ls-icon.js +0 -9
  372. package/dist/components/ls-icon.js.map +0 -1
  373. package/dist/components/ls-input-wrapper.js +0 -9
  374. package/dist/components/ls-input-wrapper.js.map +0 -1
  375. package/dist/components/ls-keyboard-shortcuts.js +0 -9
  376. package/dist/components/ls-keyboard-shortcuts.js.map +0 -1
  377. package/dist/components/ls-number-input.js +0 -9
  378. package/dist/components/ls-number-input.js.map +0 -1
  379. package/dist/components/ls-page-loader.js +0 -9
  380. package/dist/components/ls-page-loader.js.map +0 -1
  381. package/dist/components/ls-participant-card.js +0 -9
  382. package/dist/components/ls-participant-card.js.map +0 -1
  383. package/dist/components/ls-participant-manager.js +0 -9
  384. package/dist/components/ls-participant-manager.js.map +0 -1
  385. package/dist/components/ls-participant-select.js +0 -9
  386. package/dist/components/ls-participant-select.js.map +0 -1
  387. package/dist/components/ls-props-section.js +0 -9
  388. package/dist/components/ls-props-section.js.map +0 -1
  389. package/dist/components/ls-radio-input.js +0 -9
  390. package/dist/components/ls-radio-input.js.map +0 -1
  391. package/dist/components/ls-recipient-card.js +0 -9
  392. package/dist/components/ls-recipient-card.js.map +0 -1
  393. package/dist/components/ls-recipient-manager.js +0 -9
  394. package/dist/components/ls-recipient-manager.js.map +0 -1
  395. package/dist/components/ls-select-input.js +0 -9
  396. package/dist/components/ls-select-input.js.map +0 -1
  397. package/dist/components/ls-statusbar.js +0 -9
  398. package/dist/components/ls-statusbar.js.map +0 -1
  399. package/dist/components/ls-text-input.js +0 -9
  400. package/dist/components/ls-text-input.js.map +0 -1
  401. package/dist/components/ls-textarea-input.js +0 -9
  402. package/dist/components/ls-textarea-input.js.map +0 -1
  403. package/dist/components/ls-title-input.js +0 -79
  404. package/dist/components/ls-title-input.js.map +0 -1
  405. package/dist/components/ls-toggle.js +0 -9
  406. package/dist/components/ls-toggle.js.map +0 -1
  407. package/dist/components/ls-toolbar.js +0 -9
  408. package/dist/components/ls-toolbar.js.map +0 -1
  409. package/dist/components/ls-toolbox-field.js +0 -9
  410. package/dist/components/ls-toolbox-field.js.map +0 -1
  411. package/dist/components/ls-tooltip.js +0 -9
  412. package/dist/components/ls-tooltip.js.map +0 -1
  413. package/dist/components/ls-validation-manager.js +0 -9
  414. package/dist/components/ls-validation-manager.js.map +0 -1
  415. package/dist/components/ls-validation-tag.js +0 -9
  416. package/dist/components/ls-validation-tag.js.map +0 -1
  417. package/dist/components/p-B4_-Y3Tc.js.map +0 -1
  418. package/dist/components/p-B5cnJ7Uh.js +0 -47
  419. package/dist/components/p-B5cnJ7Uh.js.map +0 -1
  420. package/dist/components/p-B6kmJVw0.js.map +0 -1
  421. package/dist/components/p-BDTgDxaX.js.map +0 -1
  422. package/dist/components/p-BFUdzGLI.js +0 -48
  423. package/dist/components/p-BFUdzGLI.js.map +0 -1
  424. package/dist/components/p-BKrsDBDB.js +0 -219
  425. package/dist/components/p-BKrsDBDB.js.map +0 -1
  426. package/dist/components/p-BREZ8Ewj.js +0 -117
  427. package/dist/components/p-BREZ8Ewj.js.map +0 -1
  428. package/dist/components/p-BSpwN-xy.js.map +0 -1
  429. package/dist/components/p-B_JOCgcw.js +0 -105
  430. package/dist/components/p-B_JOCgcw.js.map +0 -1
  431. package/dist/components/p-Bd5hHfVU.js.map +0 -1
  432. package/dist/components/p-Begt0qBL.js +0 -117
  433. package/dist/components/p-Begt0qBL.js.map +0 -1
  434. package/dist/components/p-BgQSapwC.js +0 -117
  435. package/dist/components/p-BgQSapwC.js.map +0 -1
  436. package/dist/components/p-BhZ5Udbm.js +0 -1765
  437. package/dist/components/p-BhZ5Udbm.js.map +0 -1
  438. package/dist/components/p-Bkyhs-9F.js +0 -60
  439. package/dist/components/p-Bkyhs-9F.js.map +0 -1
  440. package/dist/components/p-BrNFnrQ5.js.map +0 -1
  441. package/dist/components/p-Bw19bxna.js.map +0 -1
  442. package/dist/components/p-Bxq4Jou6.js +0 -568
  443. package/dist/components/p-Bxq4Jou6.js.map +0 -1
  444. package/dist/components/p-C6pzA2Lp.js +0 -59
  445. package/dist/components/p-C6pzA2Lp.js.map +0 -1
  446. package/dist/components/p-CI3IFKqK.js.map +0 -1
  447. package/dist/components/p-CKnixZlS.js.map +0 -1
  448. package/dist/components/p-CMsyvCsL.js.map +0 -1
  449. package/dist/components/p-CN4S8Tr6.js +0 -64
  450. package/dist/components/p-CN4S8Tr6.js.map +0 -1
  451. package/dist/components/p-CSPv-sVd.js +0 -117
  452. package/dist/components/p-CSPv-sVd.js.map +0 -1
  453. package/dist/components/p-CYMm2d62.js.map +0 -1
  454. package/dist/components/p-Ca-YBRIi.js +0 -117
  455. package/dist/components/p-Ca-YBRIi.js.map +0 -1
  456. package/dist/components/p-Cb8nDMs-.js.map +0 -1
  457. package/dist/components/p-CbSH7gJL.js.map +0 -1
  458. package/dist/components/p-Cdp9Kc36.js +0 -117
  459. package/dist/components/p-Cdp9Kc36.js.map +0 -1
  460. package/dist/components/p-Ch9RTQWk.js.map +0 -1
  461. package/dist/components/p-ChV9xqsO.js.map +0 -1
  462. package/dist/components/p-CntMVGQM.js.map +0 -1
  463. package/dist/components/p-Cp3IxvzK.js.map +0 -1
  464. package/dist/components/p-CwkNbClZ.js +0 -43
  465. package/dist/components/p-CwkNbClZ.js.map +0 -1
  466. package/dist/components/p-Cx-QcGQg.js.map +0 -1
  467. package/dist/components/p-D1Vbun-H.js +0 -36
  468. package/dist/components/p-D1Vbun-H.js.map +0 -1
  469. package/dist/components/p-D9j4pLd9.js +0 -84
  470. package/dist/components/p-D9j4pLd9.js.map +0 -1
  471. package/dist/components/p-DBZFz4Ni.js.map +0 -1
  472. package/dist/components/p-DK4_6BnD.js.map +0 -1
  473. package/dist/components/p-DThoxHje.js +0 -117
  474. package/dist/components/p-DThoxHje.js.map +0 -1
  475. package/dist/components/p-DdAAJAZW.js.map +0 -1
  476. package/dist/components/p-DfV8Cje6.js +0 -231
  477. package/dist/components/p-DfV8Cje6.js.map +0 -1
  478. package/dist/components/p-DfkXv1vI.js.map +0 -1
  479. package/dist/components/p-DirhmWEt.js.map +0 -1
  480. package/dist/components/p-DnyBXRV4.js.map +0 -1
  481. package/dist/components/p-Dsi4R7Oq.js.map +0 -1
  482. package/dist/components/p-MT9M7yVh.js +0 -117
  483. package/dist/components/p-MT9M7yVh.js.map +0 -1
  484. package/dist/components/p-T6MZpv4Y.js.map +0 -1
  485. package/dist/components/p-UffBQXtF.js.map +0 -1
  486. package/dist/components/p-enO8g-4z.js.map +0 -1
  487. package/dist/components/p-faUZy676.js.map +0 -1
  488. package/dist/components/p-kug3tj7P.js +0 -115
  489. package/dist/components/p-kug3tj7P.js.map +0 -1
  490. package/dist/components/p-mm_laW9q.js.map +0 -1
  491. package/dist/components/p-pumCOAgo.js.map +0 -1
  492. package/dist/components/p-tbdpKil5.js.map +0 -1
  493. package/dist/esm/index-BwdJ-HOC.js +0 -2000
  494. package/dist/esm/index-BwdJ-HOC.js.map +0 -1
  495. package/dist/esm/index.js +0 -8
  496. package/dist/esm/index.js.map +0 -1
  497. package/dist/esm/loader.js +0 -13
  498. package/dist/esm/loader.js.map +0 -1
  499. package/dist/esm/ls-compose-manager.entry.js +0 -24
  500. package/dist/esm/ls-compose-manager.entry.js.map +0 -1
  501. package/dist/esm/ls-document-options_45.entry.js +0 -51671
  502. package/dist/esm/ls-document-viewer.js +0 -23
  503. package/dist/esm/ls-document-viewer.js.map +0 -1
  504. package/dist/esm/ls-field-properties-dropdown.entry.js +0 -17
  505. package/dist/esm/ls-field-properties-dropdown.entry.js.map +0 -1
  506. package/dist/esm/ls-formfield.entry.js.map +0 -1
  507. package/dist/esm/ls-number-input_5.entry.js +0 -1123
  508. package/dist/esm/ls-title-input.entry.js.map +0 -1
  509. package/dist/index.cjs.js +0 -1
  510. package/dist/index.js +0 -1
  511. package/dist/ls-document-viewer/p-00ab25ff.entry.js +0 -2
  512. package/dist/ls-document-viewer/p-00ab25ff.entry.js.map +0 -1
  513. package/dist/ls-document-viewer/p-131fe514.entry.js +0 -2
  514. package/dist/ls-document-viewer/p-131fe514.entry.js.map +0 -1
  515. package/dist/ls-document-viewer/p-18dc496a.entry.js +0 -4922
  516. package/dist/ls-document-viewer/p-18dc496a.entry.js.map +0 -1
  517. package/dist/ls-document-viewer/p-96fe16df.entry.js +0 -2
  518. package/dist/ls-document-viewer/p-96fe16df.entry.js.map +0 -1
  519. package/dist/ls-document-viewer/p-BwdJ-HOC.js +0 -3
  520. package/dist/ls-document-viewer/p-BwdJ-HOC.js.map +0 -1
  521. package/dist/ls-document-viewer/p-bd532735.entry.js +0 -2
  522. package/dist/ls-document-viewer/p-bd532735.entry.js.map +0 -1
  523. package/dist/ls-document-viewer/p-ccbc4663.entry.js +0 -2
  524. package/dist/ls-document-viewer/p-ccbc4663.entry.js.map +0 -1
@@ -1,49 +1,7 @@
1
- import { t as transformTag, p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-BhZ5Udbm.js';
2
- import { a as alter, o as oob, u as updateTemplate, r as recalculateCoordinates, d as defineCustomElement$I, m as matchData, v as validate, b as moveField, g as getApiType, c as addField, e as getTemplate } from './p-CKnixZlS.js';
3
- import { d as defineCustomElement$C, m as mouseClick, a as mouseDown, b as mouseMove, c as mouseUp, e as mouseDoubleClick, f as mouseDrop } from './p-Bxq4Jou6.js';
4
- import { a as attachAllTooltips } from './p-Cb8nDMs-.js';
5
- import { d as defineCustomElement$J } from './p-Bd5hHfVU.js';
6
- import { d as defineCustomElement$H } from './p-Bkyhs-9F.js';
7
- import { d as defineCustomElement$G } from './p-D9j4pLd9.js';
8
- import { d as defineCustomElement$F } from './p-UffBQXtF.js';
9
- import { d as defineCustomElement$E } from './p-Dsi4R7Oq.js';
10
- import { d as defineCustomElement$D } from './p-DBZFz4Ni.js';
11
- import { d as defineCustomElement$B } from './p-BDTgDxaX.js';
12
- import { d as defineCustomElement$A } from './p-Ch9RTQWk.js';
13
- import { d as defineCustomElement$z } from './p-CYMm2d62.js';
14
- import { d as defineCustomElement$y } from './p-DfV8Cje6.js';
15
- import { d as defineCustomElement$x } from './p-BSpwN-xy.js';
16
- import { d as defineCustomElement$w } from './p-Cx-QcGQg.js';
17
- import { d as defineCustomElement$v } from './p-BFUdzGLI.js';
18
- import { d as defineCustomElement$u } from './p-DThoxHje.js';
19
- import { d as defineCustomElement$t } from './p-Begt0qBL.js';
20
- import { d as defineCustomElement$s } from './p-Ca-YBRIi.js';
21
- import { d as defineCustomElement$r } from './p-BREZ8Ewj.js';
22
- import { d as defineCustomElement$q } from './p-CSPv-sVd.js';
23
- import { d as defineCustomElement$p } from './p-CMsyvCsL.js';
24
- import { d as defineCustomElement$o } from './p-BgQSapwC.js';
25
- import { d as defineCustomElement$n } from './p-Cdp9Kc36.js';
26
- import { d as defineCustomElement$m } from './p-MT9M7yVh.js';
27
- import { d as defineCustomElement$l } from './p-DirhmWEt.js';
28
- import { d as defineCustomElement$k } from './p-kug3tj7P.js';
29
- import { d as defineCustomElement$j } from './p-CN4S8Tr6.js';
30
- import { d as defineCustomElement$i } from './p-DnyBXRV4.js';
31
- import { d as defineCustomElement$h } from './p-B5cnJ7Uh.js';
32
- import { d as defineCustomElement$g } from './p-DfkXv1vI.js';
33
- import { d as defineCustomElement$f } from './p-B_JOCgcw.js';
34
- import { d as defineCustomElement$e } from './p-B4_-Y3Tc.js';
35
- import { d as defineCustomElement$d } from './p-enO8g-4z.js';
36
- import { d as defineCustomElement$c } from './p-DK4_6BnD.js';
37
- import { d as defineCustomElement$b } from './p-CwkNbClZ.js';
38
- import { d as defineCustomElement$a } from './p-CbSH7gJL.js';
39
- import { d as defineCustomElement$9 } from './p-D1Vbun-H.js';
40
- import { d as defineCustomElement$8 } from './p-Bw19bxna.js';
41
- import { d as defineCustomElement$7 } from './p-mm_laW9q.js';
42
- import { d as defineCustomElement$6 } from './p-pumCOAgo.js';
43
- import { d as defineCustomElement$5 } from './p-CI3IFKqK.js';
44
- import { d as defineCustomElement$4 } from './p-faUZy676.js';
45
- import { d as defineCustomElement$3 } from './p-T6MZpv4Y.js';
46
- import { d as defineCustomElement$2 } from './p-DdAAJAZW.js';
1
+ import { r as registerInstance, d as createEvent, e as getElement, h, a as Host } from './index-DANCsk1i.js';
2
+ import { a as alter, o as oob, u as updateTemplate, r as recalculateCoordinates, m as matchData, v as validate, b as moveField, g as getApiType, c as addField, d as getTemplate } from './editorUtils-B8pqYCt6.js';
3
+ import { m as mouseClick, a as mouseDown, b as mouseMove, c as mouseUp, d as mouseDoubleClick, e as mouseDrop } from './mouseHandlers-ng8CZPvb.js';
4
+ import { a as attachAllTooltips } from './tooltip-Cb8nDMs-.js';
47
5
 
48
6
  /**
49
7
  * @licstart The following is the entire license notice for the
@@ -67,13 +25,45 @@ import { d as defineCustomElement$2 } from './p-DdAAJAZW.js';
67
25
  * JavaScript code in this page
68
26
  */
69
27
 
28
+ /**
29
+ * pdfjsVersion = 5.4.449
30
+ * pdfjsBuild = f44e5f0e6
31
+ */
32
+ /******/ // The require scope
33
+ /******/ var __webpack_require__$1 = {};
34
+ /******/
35
+ /************************************************************************/
36
+ /******/ /* webpack/runtime/define property getters */
37
+ /******/ (() => {
38
+ /******/ // define getter functions for harmony exports
39
+ /******/ __webpack_require__$1.d = (exports, definition) => {
40
+ /******/ for(var key in definition) {
41
+ /******/ if(__webpack_require__$1.o(definition, key) && !__webpack_require__$1.o(exports, key)) {
42
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
43
+ /******/ }
44
+ /******/ }
45
+ /******/ };
46
+ /******/ })();
47
+ /******/
48
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
49
+ /******/ (() => {
50
+ /******/ __webpack_require__$1.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
51
+ /******/ })();
52
+ /******/
53
+ /************************************************************************/
54
+ var __webpack_exports__$1 = {};
55
+
56
+ ;// ./src/shared/util.js
70
57
  const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
71
58
  const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
72
59
  const LINE_FACTOR = 1.35;
60
+ const LINE_DESCENT_FACTOR = 0.35;
61
+ const BASELINE_FACTOR = LINE_DESCENT_FACTOR / LINE_FACTOR;
73
62
  const RenderingIntentFlag = {
74
63
  ANY: 0x01,
75
64
  DISPLAY: 0x02,
76
65
  PRINT: 0x04,
66
+ SAVE: 0x08,
77
67
  ANNOTATIONS_FORMS: 0x10,
78
68
  ANNOTATIONS_STORAGE: 0x20,
79
69
  ANNOTATIONS_DISABLE: 0x40,
@@ -98,7 +88,7 @@ const AnnotationEditorType$1 = {
98
88
  SIGNATURE: 101,
99
89
  COMMENT: 102
100
90
  };
101
- const AnnotationEditorParamsType = {
91
+ const AnnotationEditorParamsType$1 = {
102
92
  RESIZE: 1,
103
93
  CREATE: 2,
104
94
  FREETEXT_SIZE: 11,
@@ -125,12 +115,18 @@ const PermissionFlag$1 = {
125
115
  };
126
116
  const MeshFigureType = {
127
117
  TRIANGLES: 1,
128
- LATTICE: 2};
118
+ LATTICE: 2,
119
+ PATCH: 3
120
+ };
129
121
  const TextRenderingMode = {
130
122
  FILL: 0,
131
123
  STROKE: 1,
132
124
  FILL_STROKE: 2,
133
125
  INVISIBLE: 3,
126
+ FILL_ADD_TO_PATH: 4,
127
+ STROKE_ADD_TO_PATH: 5,
128
+ FILL_STROKE_ADD_TO_PATH: 6,
129
+ ADD_TO_PATH: 7,
134
130
  FILL_STROKE_MASK: 3,
135
131
  ADD_TO_PATH_FLAG: 4
136
132
  };
@@ -167,6 +163,43 @@ const AnnotationType$1 = {
167
163
  THREED: 25,
168
164
  REDACT: 26
169
165
  };
166
+ const AnnotationReplyType = {
167
+ GROUP: "Group",
168
+ REPLY: "R"
169
+ };
170
+ const AnnotationFlag = {
171
+ INVISIBLE: 0x01,
172
+ HIDDEN: 0x02,
173
+ PRINT: 0x04,
174
+ NOZOOM: 0x08,
175
+ NOROTATE: 0x10,
176
+ NOVIEW: 0x20,
177
+ READONLY: 0x40,
178
+ LOCKED: 0x80,
179
+ TOGGLENOVIEW: 0x100,
180
+ LOCKEDCONTENTS: 0x200
181
+ };
182
+ const AnnotationFieldFlag = {
183
+ READONLY: 0x0000001,
184
+ REQUIRED: 0x0000002,
185
+ NOEXPORT: 0x0000004,
186
+ MULTILINE: 0x0001000,
187
+ PASSWORD: 0x0002000,
188
+ NOTOGGLETOOFF: 0x0004000,
189
+ RADIO: 0x0008000,
190
+ PUSHBUTTON: 0x0010000,
191
+ COMBO: 0x0020000,
192
+ EDIT: 0x0040000,
193
+ SORT: 0x0080000,
194
+ FILESELECT: 0x0100000,
195
+ MULTISELECT: 0x0200000,
196
+ DONOTSPELLCHECK: 0x0400000,
197
+ DONOTSCROLL: 0x0800000,
198
+ COMB: 0x1000000,
199
+ RICHTEXT: 0x2000000,
200
+ RADIOSINUNISON: 0x2000000,
201
+ COMMITONSELCHANGE: 0x4000000
202
+ };
170
203
  const AnnotationBorderStyleType = {
171
204
  SOLID: 1,
172
205
  DASHED: 2,
@@ -174,12 +207,39 @@ const AnnotationBorderStyleType = {
174
207
  INSET: 4,
175
208
  UNDERLINE: 5
176
209
  };
177
- const VerbosityLevel = {
210
+ const AnnotationActionEventType = {
211
+ E: "Mouse Enter",
212
+ X: "Mouse Exit",
213
+ D: "Mouse Down",
214
+ U: "Mouse Up",
215
+ Fo: "Focus",
216
+ Bl: "Blur",
217
+ PO: "PageOpen",
218
+ PC: "PageClose",
219
+ PV: "PageVisible",
220
+ PI: "PageInvisible",
221
+ K: "Keystroke",
222
+ F: "Format",
223
+ V: "Validate",
224
+ C: "Calculate"
225
+ };
226
+ const DocumentActionEventType = {
227
+ WC: "WillClose",
228
+ WS: "WillSave",
229
+ DS: "DidSave",
230
+ WP: "WillPrint",
231
+ DP: "DidPrint"
232
+ };
233
+ const PageActionEventType = {
234
+ O: "PageOpen",
235
+ C: "PageClose"
236
+ };
237
+ const VerbosityLevel$1 = {
178
238
  ERRORS: 0,
179
239
  WARNINGS: 1,
180
240
  INFOS: 5
181
241
  };
182
- const OPS = {
242
+ const OPS$1 = {
183
243
  dependency: 1,
184
244
  setLineWidth: 2,
185
245
  setLineCap: 3,
@@ -279,11 +339,11 @@ const DrawOPS = {
279
339
  quadraticCurveTo: 3,
280
340
  closePath: 4
281
341
  };
282
- const PasswordResponses = {
342
+ const PasswordResponses$1 = {
283
343
  NEED_PASSWORD: 1,
284
344
  INCORRECT_PASSWORD: 2
285
345
  };
286
- let verbosity = VerbosityLevel.WARNINGS;
346
+ let verbosity = VerbosityLevel$1.WARNINGS;
287
347
  function setVerbosityLevel(level) {
288
348
  if (Number.isInteger(level)) {
289
349
  verbosity = level;
@@ -293,12 +353,12 @@ function getVerbosityLevel() {
293
353
  return verbosity;
294
354
  }
295
355
  function info(msg) {
296
- if (verbosity >= VerbosityLevel.INFOS) {
356
+ if (verbosity >= VerbosityLevel$1.INFOS) {
297
357
  console.info(`Info: ${msg}`);
298
358
  }
299
359
  }
300
360
  function warn(msg) {
301
- if (verbosity >= VerbosityLevel.WARNINGS) {
361
+ if (verbosity >= VerbosityLevel$1.WARNINGS) {
302
362
  console.warn(`Warning: ${msg}`);
303
363
  }
304
364
  }
@@ -383,18 +443,18 @@ class UnknownErrorException extends BaseException {
383
443
  this.details = details;
384
444
  }
385
445
  }
386
- class InvalidPDFException extends BaseException {
446
+ let InvalidPDFException$1 = class InvalidPDFException extends BaseException {
387
447
  constructor(msg) {
388
448
  super(msg, "InvalidPDFException");
389
449
  }
390
- }
391
- class ResponseException extends BaseException {
450
+ };
451
+ let ResponseException$1 = class ResponseException extends BaseException {
392
452
  constructor(msg, status, missing) {
393
453
  super(msg, "ResponseException");
394
454
  this.status = status;
395
455
  this.missing = missing;
396
456
  }
397
- }
457
+ };
398
458
  class FormatError extends BaseException {
399
459
  constructor(msg) {
400
460
  super(msg, "FormatError");
@@ -436,6 +496,9 @@ function stringToBytes(str) {
436
496
  function string32(value) {
437
497
  return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff);
438
498
  }
499
+ function objectSize(obj) {
500
+ return Object.keys(obj).length;
501
+ }
439
502
  function isLittleEndian() {
440
503
  const buffer8 = new Uint8Array(4);
441
504
  buffer8[0] = 1;
@@ -702,9 +765,75 @@ let Util$1 = class Util {
702
765
  this.#getExtremum(x0, x1, x2, x3, y0, y1, y2, y3, 3 * (-y0 + 3 * (y1 - y2) + y3), 6 * (y0 - 2 * y1 + y2), 3 * (y1 - y0), minMax);
703
766
  }
704
767
  };
768
+ const PDFStringTranslateTable = (/* unused pure expression or super */ null && ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2d8, 0x2c7, 0x2c6, 0x2d9, 0x2dd, 0x2db, 0x2da, 0x2dc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018, 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x141, 0x152, 0x160, 0x178, 0x17d, 0x131, 0x142, 0x153, 0x161, 0x17e, 0, 0x20ac]));
769
+ function stringToPDFString(str, keepEscapeSequence = false) {
770
+ if (str[0] >= "\xEF") {
771
+ let encoding;
772
+ if (str[0] === "\xFE" && str[1] === "\xFF") {
773
+ encoding = "utf-16be";
774
+ if (str.length % 2 === 1) {
775
+ str = str.slice(0, -1);
776
+ }
777
+ } else if (str[0] === "\xFF" && str[1] === "\xFE") {
778
+ encoding = "utf-16le";
779
+ if (str.length % 2 === 1) {
780
+ str = str.slice(0, -1);
781
+ }
782
+ } else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") {
783
+ encoding = "utf-8";
784
+ }
785
+ if (encoding) {
786
+ try {
787
+ const decoder = new TextDecoder(encoding, {
788
+ fatal: true
789
+ });
790
+ const buffer = stringToBytes(str);
791
+ const decoded = decoder.decode(buffer);
792
+ if (keepEscapeSequence || !decoded.includes("\x1b")) {
793
+ return decoded;
794
+ }
795
+ return decoded.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g, "");
796
+ } catch (ex) {
797
+ warn(`stringToPDFString: "${ex}".`);
798
+ }
799
+ }
800
+ }
801
+ const strBuf = [];
802
+ for (let i = 0, ii = str.length; i < ii; i++) {
803
+ const charCode = str.charCodeAt(i);
804
+ if (!keepEscapeSequence && charCode === 0x1b) {
805
+ while (++i < ii && str.charCodeAt(i) !== 0x1b) {}
806
+ continue;
807
+ }
808
+ const code = PDFStringTranslateTable[charCode];
809
+ strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
810
+ }
811
+ return strBuf.join("");
812
+ }
705
813
  function stringToUTF8String(str) {
706
814
  return decodeURIComponent(escape(str));
707
815
  }
816
+ function utf8StringToString(str) {
817
+ return unescape(encodeURIComponent(str));
818
+ }
819
+ function isArrayEqual(arr1, arr2) {
820
+ if (arr1.length !== arr2.length) {
821
+ return false;
822
+ }
823
+ for (let i = 0, ii = arr1.length; i < ii; i++) {
824
+ if (arr1[i] !== arr2[i]) {
825
+ return false;
826
+ }
827
+ }
828
+ return true;
829
+ }
830
+ function getModificationDate(date = new Date()) {
831
+ if (!(date instanceof Date)) {
832
+ date = new Date(date);
833
+ }
834
+ const buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), date.getUTCDate().toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")];
835
+ return buffer.join("");
836
+ }
708
837
  let NormalizeRegex = null;
709
838
  let NormalizationMap = null;
710
839
  function normalizeUnicode$1(str) {
@@ -714,7 +843,7 @@ function normalizeUnicode$1(str) {
714
843
  }
715
844
  return str.replaceAll(NormalizeRegex, (_, p1, p2) => p1 ? p1.normalize("NFKC") : NormalizationMap.get(p2));
716
845
  }
717
- function getUuid() {
846
+ function getUuid$1() {
718
847
  if (typeof crypto.randomUUID === "function") {
719
848
  return crypto.randomUUID();
720
849
  }
@@ -773,6 +902,12 @@ function _isValidExplicitDest(validRef, validName, dest) {
773
902
  function MathClamp$1(v, min, max) {
774
903
  return Math.min(Math.max(v, min), max);
775
904
  }
905
+ function toHexUtil(arr) {
906
+ if (Uint8Array.prototype.toHex) {
907
+ return arr.toHex();
908
+ }
909
+ return Array.from(arr, num => hexNumbers[num]).join("");
910
+ }
776
911
  function toBase64Util(arr) {
777
912
  if (Uint8Array.prototype.toBase64) {
778
913
  return arr.toBase64();
@@ -797,6 +932,8 @@ if (typeof Math.sumPrecise !== "function") {
797
932
  return numbers.reduce((a, b) => a + b, 0);
798
933
  };
799
934
  }
935
+
936
+ ;// ./src/display/xfa_text.js
800
937
  class XfaText {
801
938
  static textContent(xfa) {
802
939
  const items = [];
@@ -839,6 +976,8 @@ class XfaText {
839
976
  }
840
977
  }
841
978
 
979
+ ;// ./src/display/xfa_layer.js
980
+
842
981
  let XfaLayer$1 = class XfaLayer {
843
982
  static setupStorage(html, id, element, storage, intent) {
844
983
  const storedData = storage.getValue(id, {
@@ -1048,6 +1187,8 @@ let XfaLayer$1 = class XfaLayer {
1048
1187
  }
1049
1188
  };
1050
1189
 
1190
+ ;// ./src/display/display_utils.js
1191
+
1051
1192
 
1052
1193
  const SVG_NS = "http://www.w3.org/2000/svg";
1053
1194
  let PixelsPerInch$1 = class PixelsPerInch {
@@ -1218,7 +1359,7 @@ let RenderingCancelledException$1 = class RenderingCancelledException extends Ba
1218
1359
  this.extraDelay = extraDelay;
1219
1360
  }
1220
1361
  };
1221
- function isDataScheme(url) {
1362
+ function isDataScheme$1(url) {
1222
1363
  const ii = url.length;
1223
1364
  let i = 0;
1224
1365
  while (i < ii && url[i].trim() === "") {
@@ -1229,7 +1370,7 @@ function isDataScheme(url) {
1229
1370
  function isPdfFile$1(filename) {
1230
1371
  return typeof filename === "string" && /\.pdf$/i.test(filename);
1231
1372
  }
1232
- function getFilenameFromUrl(url) {
1373
+ function getFilenameFromUrl$1(url) {
1233
1374
  [url] = url.split(/[#?]/, 1);
1234
1375
  return url.substring(url.lastIndexOf("/") + 1);
1235
1376
  }
@@ -1237,7 +1378,7 @@ function getPdfFilenameFromUrl$1(url, defaultFilename = "document.pdf") {
1237
1378
  if (typeof url !== "string") {
1238
1379
  return defaultFilename;
1239
1380
  }
1240
- if (isDataScheme(url)) {
1381
+ if (isDataScheme$1(url)) {
1241
1382
  warn('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.');
1242
1383
  return defaultFilename;
1243
1384
  }
@@ -1349,7 +1490,7 @@ function isValidFetchUrl(url, baseUrl) {
1349
1490
  const res = baseUrl ? URL.parse(url, baseUrl) : URL.parse(url);
1350
1491
  return res?.protocol === "http:" || res?.protocol === "https:";
1351
1492
  }
1352
- function noContextMenu(e) {
1493
+ function noContextMenu$1(e) {
1353
1494
  e.preventDefault();
1354
1495
  }
1355
1496
  function stopEvent$1(e) {
@@ -1359,7 +1500,7 @@ function stopEvent$1(e) {
1359
1500
  function deprecated(details) {
1360
1501
  console.log("Deprecated API usage: " + details);
1361
1502
  }
1362
- class PDFDateString {
1503
+ let PDFDateString$1 = class PDFDateString {
1363
1504
  static #regex;
1364
1505
  static toDateObject(input) {
1365
1506
  if (input instanceof Date) {
@@ -1398,8 +1539,8 @@ class PDFDateString {
1398
1539
  }
1399
1540
  return new Date(Date.UTC(year, month, day, hour, minute, second));
1400
1541
  }
1401
- }
1402
- function getXfaPageViewport(xfaPage, {
1542
+ };
1543
+ function getXfaPageViewport$1(xfaPage, {
1403
1544
  scale = 1,
1404
1545
  rotation = 0
1405
1546
  }) {
@@ -1415,7 +1556,7 @@ function getXfaPageViewport(xfaPage, {
1415
1556
  rotation
1416
1557
  });
1417
1558
  }
1418
- function getRGB(color) {
1559
+ function getRGB$1(color) {
1419
1560
  if (color.startsWith("#")) {
1420
1561
  const colorRGB = parseInt(color.slice(1), 16);
1421
1562
  return [(colorRGB & 0xff0000) >> 16, (colorRGB & 0x00ff00) >> 8, colorRGB & 0x0000ff];
@@ -1437,7 +1578,7 @@ function getColorValues(colors) {
1437
1578
  for (const name of colors.keys()) {
1438
1579
  span.style.color = name;
1439
1580
  const computedColor = window.getComputedStyle(span).color;
1440
- colors.set(name, getRGB(computedColor));
1581
+ colors.set(name, getRGB$1(computedColor));
1441
1582
  }
1442
1583
  span.remove();
1443
1584
  }
@@ -1534,13 +1675,13 @@ let OutputScale$1 = class OutputScale {
1534
1675
  return maxPixels;
1535
1676
  }
1536
1677
  };
1537
- const SupportedImageMimeTypes = ["image/apng", "image/avif", "image/bmp", "image/gif", "image/jpeg", "image/png", "image/svg+xml", "image/webp", "image/x-icon"];
1678
+ const SupportedImageMimeTypes$1 = ["image/apng", "image/avif", "image/bmp", "image/gif", "image/jpeg", "image/png", "image/svg+xml", "image/webp", "image/x-icon"];
1538
1679
  class ColorScheme {
1539
1680
  static get isDarkMode() {
1540
1681
  return shadow$1(this, "isDarkMode", !!window?.matchMedia?.("(prefers-color-scheme: dark)").matches);
1541
1682
  }
1542
1683
  }
1543
- class CSSConstants {
1684
+ let CSSConstants$1 = class CSSConstants {
1544
1685
  static get commentForegroundColor() {
1545
1686
  const element = document.createElement("span");
1546
1687
  element.classList.add("comment", "sidebar");
@@ -1555,10 +1696,10 @@ class CSSConstants {
1555
1696
  color
1556
1697
  } = window.getComputedStyle(element);
1557
1698
  element.remove();
1558
- return shadow$1(this, "commentForegroundColor", getRGB(color));
1699
+ return shadow$1(this, "commentForegroundColor", getRGB$1(color));
1559
1700
  }
1560
- }
1561
- function applyOpacity(r, g, b, opacity) {
1701
+ };
1702
+ function applyOpacity$1(r, g, b, opacity) {
1562
1703
  opacity = Math.min(Math.max(opacity ?? 1, 0), 1);
1563
1704
  const white = 255 * (1 - opacity);
1564
1705
  r = Math.round(r * opacity + white);
@@ -1646,7 +1787,7 @@ function contrastRatio(hsl1, hsl2, output) {
1646
1787
  return lum1 > lum2 ? (lum1 + 0.05) / (lum2 + 0.05) : (lum2 + 0.05) / (lum1 + 0.05);
1647
1788
  }
1648
1789
  const contrastCache = new Map();
1649
- function findContrastColor(baseColor, fixedColor) {
1790
+ function findContrastColor$1(baseColor, fixedColor) {
1650
1791
  const key = baseColor[0] + baseColor[1] * 0x100 + baseColor[2] * 0x10000 + fixedColor[0] * 0x1000000 + fixedColor[1] * 0x100000000 + fixedColor[2] * 0x10000000000;
1651
1792
  let cachedValue = contrastCache.get(key);
1652
1793
  if (cachedValue) {
@@ -1686,7 +1827,7 @@ function findContrastColor(baseColor, fixedColor) {
1686
1827
  contrastCache.set(key, cachedValue);
1687
1828
  return cachedValue;
1688
1829
  }
1689
- function renderRichText({
1830
+ function renderRichText$1({
1690
1831
  html,
1691
1832
  dir,
1692
1833
  className
@@ -1744,6 +1885,8 @@ function makePathFromDrawOPS(data) {
1744
1885
  return path;
1745
1886
  }
1746
1887
 
1888
+ ;// ./src/display/editor/toolbar.js
1889
+
1747
1890
  class EditorToolbar {
1748
1891
  #toolbar = null;
1749
1892
  #colorPicker = null;
@@ -1770,7 +1913,7 @@ class EditorToolbar {
1770
1913
  editToolbar.setAttribute("role", "toolbar");
1771
1914
  const signal = this.#editor._uiManager._signal;
1772
1915
  if (signal instanceof AbortSignal && !signal.aborted) {
1773
- editToolbar.addEventListener("contextmenu", noContextMenu, {
1916
+ editToolbar.addEventListener("contextmenu", noContextMenu$1, {
1774
1917
  signal
1775
1918
  });
1776
1919
  editToolbar.addEventListener("pointerdown", EditorToolbar.#pointerDown, {
@@ -1818,7 +1961,7 @@ class EditorToolbar {
1818
1961
  capture: true,
1819
1962
  signal
1820
1963
  });
1821
- element.addEventListener("contextmenu", noContextMenu, {
1964
+ element.addEventListener("contextmenu", noContextMenu$1, {
1822
1965
  signal
1823
1966
  });
1824
1967
  return true;
@@ -1967,7 +2110,7 @@ class FloatingToolbar {
1967
2110
  editToolbar.setAttribute("role", "toolbar");
1968
2111
  const signal = this.#uiManager._signal;
1969
2112
  if (signal instanceof AbortSignal && !signal.aborted) {
1970
- editToolbar.addEventListener("contextmenu", noContextMenu, {
2113
+ editToolbar.addEventListener("contextmenu", noContextMenu$1, {
1971
2114
  signal
1972
2115
  });
1973
2116
  }
@@ -2031,7 +2174,7 @@ class FloatingToolbar {
2031
2174
  span.setAttribute("data-l10n-id", labelL10nId);
2032
2175
  const signal = this.#uiManager._signal;
2033
2176
  if (signal instanceof AbortSignal && !signal.aborted) {
2034
- button.addEventListener("contextmenu", noContextMenu, {
2177
+ button.addEventListener("contextmenu", noContextMenu$1, {
2035
2178
  signal
2036
2179
  });
2037
2180
  button.addEventListener("click", clickHandler, {
@@ -2042,6 +2185,8 @@ class FloatingToolbar {
2042
2185
  }
2043
2186
  }
2044
2187
 
2188
+ ;// ./src/display/editor/tools.js
2189
+
2045
2190
 
2046
2191
 
2047
2192
  function bindEvents(obj, element, names) {
@@ -2104,7 +2249,7 @@ class IdManager {
2104
2249
  }
2105
2250
  }
2106
2251
  class ImageManager {
2107
- #baseId = getUuid();
2252
+ #baseId = getUuid$1();
2108
2253
  #id = 0;
2109
2254
  #cache = null;
2110
2255
  static get _isSVGFittingCanvas() {
@@ -2454,7 +2599,7 @@ class ColorManager {
2454
2599
  return shadow$1(this, "_colors", colors);
2455
2600
  }
2456
2601
  convert(color) {
2457
- const rgb = getRGB(color);
2602
+ const rgb = getRGB$1(color);
2458
2603
  if (!window.matchMedia("(forced-colors: active)").matches) {
2459
2604
  return rgb;
2460
2605
  }
@@ -3333,7 +3478,7 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
3333
3478
  details: Object.assign(this.#previousStates, details)
3334
3479
  });
3335
3480
  if (this.#mode === AnnotationEditorType$1.HIGHLIGHT && details.hasSelectedEditor === false) {
3336
- this.#dispatchUpdateUI([[AnnotationEditorParamsType.HIGHLIGHT_FREE, true]]);
3481
+ this.#dispatchUpdateUI([[AnnotationEditorParamsType$1.HIGHLIGHT_FREE, true]]);
3337
3482
  }
3338
3483
  }
3339
3484
  }
@@ -3506,10 +3651,10 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
3506
3651
  return;
3507
3652
  }
3508
3653
  switch (type) {
3509
- case AnnotationEditorParamsType.CREATE:
3654
+ case AnnotationEditorParamsType$1.CREATE:
3510
3655
  this.currentLayer.addNewEditor(value);
3511
3656
  return;
3512
- case AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL:
3657
+ case AnnotationEditorParamsType$1.HIGHLIGHT_SHOW_ALL:
3513
3658
  this._eventBus.dispatch("reporttelemetry", {
3514
3659
  source: this,
3515
3660
  details: {
@@ -3540,9 +3685,9 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
3540
3685
  editor.show(visible);
3541
3686
  }
3542
3687
  }
3543
- const state = this.#showAllStates?.get(AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL) ?? true;
3688
+ const state = this.#showAllStates?.get(AnnotationEditorParamsType$1.HIGHLIGHT_SHOW_ALL) ?? true;
3544
3689
  if (state !== visible) {
3545
- this.#dispatchUpdateUI([[AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL, visible]]);
3690
+ this.#dispatchUpdateUI([[AnnotationEditorParamsType$1.HIGHLIGHT_SHOW_ALL, visible]]);
3546
3691
  }
3547
3692
  }
3548
3693
  enableWaiting(mustWait = false) {
@@ -4092,6 +4237,8 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
4092
4237
  }
4093
4238
  };
4094
4239
 
4240
+ ;// ./src/display/editor/alt_text.js
4241
+
4095
4242
  class AltText {
4096
4243
  #altText = null;
4097
4244
  #altTextDecorative = false;
@@ -4137,7 +4284,7 @@ class AltText {
4137
4284
  label.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button-label");
4138
4285
  }
4139
4286
  const signal = this.#editor._uiManager._signal;
4140
- altText.addEventListener("contextmenu", noContextMenu, {
4287
+ altText.addEventListener("contextmenu", noContextMenu$1, {
4141
4288
  signal
4142
4289
  });
4143
4290
  altText.addEventListener("pointerdown", event => event.stopPropagation(), {
@@ -4355,6 +4502,8 @@ class AltText {
4355
4502
  }
4356
4503
  }
4357
4504
 
4505
+ ;// ./src/display/editor/comment.js
4506
+
4358
4507
  class Comment {
4359
4508
  #commentStandaloneButton = null;
4360
4509
  #commentToolbarButton = null;
@@ -4470,7 +4619,7 @@ class Comment {
4470
4619
  if (!(signal instanceof AbortSignal) || signal.aborted) {
4471
4620
  return comment;
4472
4621
  }
4473
- comment.addEventListener("contextmenu", noContextMenu, {
4622
+ comment.addEventListener("contextmenu", noContextMenu$1, {
4474
4623
  signal
4475
4624
  });
4476
4625
  if (isStandalone) {
@@ -4615,7 +4764,9 @@ class Comment {
4615
4764
  }
4616
4765
  }
4617
4766
 
4618
- class TouchManager {
4767
+ ;// ./src/display/touch_manager.js
4768
+
4769
+ let TouchManager$1 = class TouchManager {
4619
4770
  #container;
4620
4771
  #isPinching = false;
4621
4772
  #isPinchingStopped = null;
@@ -4787,7 +4938,9 @@ class TouchManager {
4787
4938
  this.#pointerDownAC?.abort();
4788
4939
  this.#pointerDownAC = null;
4789
4940
  }
4790
- }
4941
+ };
4942
+
4943
+ ;// ./src/display/editor/editor.js
4791
4944
 
4792
4945
 
4793
4946
 
@@ -5267,7 +5420,7 @@ class AnnotationEditor {
5267
5420
  div.addEventListener("pointerdown", this.#resizerPointerdown.bind(this, name), {
5268
5421
  signal
5269
5422
  });
5270
- div.addEventListener("contextmenu", noContextMenu, {
5423
+ div.addEventListener("contextmenu", noContextMenu$1, {
5271
5424
  signal
5272
5425
  });
5273
5426
  div.tabIndex = -1;
@@ -5298,7 +5451,7 @@ class AnnotationEditor {
5298
5451
  passive: false,
5299
5452
  signal
5300
5453
  });
5301
- window.addEventListener("contextmenu", noContextMenu, {
5454
+ window.addEventListener("contextmenu", noContextMenu$1, {
5302
5455
  signal
5303
5456
  });
5304
5457
  this.#savedDimensions = {
@@ -5700,7 +5853,7 @@ class AnnotationEditor {
5700
5853
  this.translate(tx, ty);
5701
5854
  bindEvents(this, div, ["keydown", "pointerdown", "dblclick"]);
5702
5855
  if (this.isResizable && this._uiManager._supportsPinchToZoom) {
5703
- this.#touchManager ||= new TouchManager({
5856
+ this.#touchManager ||= new TouchManager$1({
5704
5857
  container: div,
5705
5858
  isPinchingDisabled: () => !this.isSelected,
5706
5859
  onPinchStart: this.#touchPinchStartCallback.bind(this),
@@ -6439,6 +6592,8 @@ class FakeEditor extends AnnotationEditor {
6439
6592
  return this.serializeDeleted();
6440
6593
  }
6441
6594
  }
6595
+
6596
+ ;// ./src/shared/murmurhash3.js
6442
6597
  const SEED = 0xc3d2e1f0;
6443
6598
  const MASK_HIGH = 0xffff0000;
6444
6599
  const MASK_LOW = 0xffff;
@@ -6531,6 +6686,8 @@ class MurmurHash3_64 {
6531
6686
  }
6532
6687
  }
6533
6688
 
6689
+ ;// ./src/display/annotation_storage.js
6690
+
6534
6691
 
6535
6692
 
6536
6693
  const SerializableEmpty = Object.freeze({
@@ -6787,6 +6944,8 @@ class PrintAnnotationStorage extends AnnotationStorage {
6787
6944
  }
6788
6945
  }
6789
6946
 
6947
+ ;// ./src/display/font_loader.js
6948
+
6790
6949
 
6791
6950
  class FontLoader {
6792
6951
  #systemFonts = new Set();
@@ -7134,6 +7293,8 @@ class FontFaceObject {
7134
7293
  }
7135
7294
  }
7136
7295
 
7296
+ ;// ./src/shared/obj-bin-transform.js
7297
+
7137
7298
  class CssFontInfo {
7138
7299
  #buffer;
7139
7300
  #view;
@@ -7786,6 +7947,8 @@ class PatternInfo {
7786
7947
  }
7787
7948
  }
7788
7949
 
7950
+ ;// ./src/display/api_utils.js
7951
+
7789
7952
  function getUrlProp(val) {
7790
7953
  if (val instanceof URL) {
7791
7954
  return val.href;
@@ -7872,6 +8035,8 @@ class LoopbackPort {
7872
8035
  }
7873
8036
  }
7874
8037
 
8038
+ ;// ./src/shared/message_handler.js
8039
+
7875
8040
  const CallbackKind = {
7876
8041
  DATA: 1,
7877
8042
  ERROR: 2
@@ -7888,7 +8053,7 @@ const StreamKind = {
7888
8053
  };
7889
8054
  function onFn() {}
7890
8055
  function wrapReason(ex) {
7891
- if (ex instanceof AbortException$1 || ex instanceof InvalidPDFException || ex instanceof PasswordException || ex instanceof ResponseException || ex instanceof UnknownErrorException) {
8056
+ if (ex instanceof AbortException$1 || ex instanceof InvalidPDFException$1 || ex instanceof PasswordException || ex instanceof ResponseException$1 || ex instanceof UnknownErrorException) {
7892
8057
  return ex;
7893
8058
  }
7894
8059
  if (!(ex instanceof Error || typeof ex === "object" && ex !== null)) {
@@ -7898,11 +8063,11 @@ function wrapReason(ex) {
7898
8063
  case "AbortException":
7899
8064
  return new AbortException$1(ex.message);
7900
8065
  case "InvalidPDFException":
7901
- return new InvalidPDFException(ex.message);
8066
+ return new InvalidPDFException$1(ex.message);
7902
8067
  case "PasswordException":
7903
8068
  return new PasswordException(ex.message, ex.code);
7904
8069
  case "ResponseException":
7905
- return new ResponseException(ex.message, ex.status, ex.missing);
8070
+ return new ResponseException$1(ex.message, ex.status, ex.missing);
7906
8071
  case "UnknownErrorException":
7907
8072
  return new UnknownErrorException(ex.message, ex.details);
7908
8073
  }
@@ -8273,6 +8438,8 @@ class MessageHandler {
8273
8438
  }
8274
8439
  }
8275
8440
 
8441
+ ;// ./src/display/canvas_factory.js
8442
+
8276
8443
  class BaseCanvasFactory {
8277
8444
  #enableHWA = false;
8278
8445
  constructor({
@@ -8333,6 +8500,8 @@ class DOMCanvasFactory extends BaseCanvasFactory {
8333
8500
  }
8334
8501
  }
8335
8502
 
8503
+ ;// ./src/display/cmap_reader_factory.js
8504
+
8336
8505
 
8337
8506
  class BaseCMapReaderFactory {
8338
8507
  constructor({
@@ -8370,6 +8539,8 @@ class DOMCMapReaderFactory extends BaseCMapReaderFactory {
8370
8539
  }
8371
8540
  }
8372
8541
 
8542
+ ;// ./src/display/filter_factory.js
8543
+
8373
8544
 
8374
8545
  class BaseFilterFactory {
8375
8546
  addFilter(maps) {
@@ -8459,7 +8630,7 @@ class DOMFilterFactory extends BaseFilterFactory {
8459
8630
  this.#baseUrl = "";
8460
8631
  const url = this.#document.URL;
8461
8632
  if (url !== this.#document.baseURI) {
8462
- if (isDataScheme(url)) {
8633
+ if (isDataScheme$1(url)) {
8463
8634
  warn('#createUrl: ignore "data:"-URL for performance reasons.');
8464
8635
  } else {
8465
8636
  this.#baseUrl = updateUrlHash$1(url, "");
@@ -8700,10 +8871,12 @@ class DOMFilterFactory extends BaseFilterFactory {
8700
8871
  }
8701
8872
  #getRGB(color) {
8702
8873
  this.#defs.style.color = color;
8703
- return getRGB(getComputedStyle(this.#defs).getPropertyValue("color"));
8874
+ return getRGB$1(getComputedStyle(this.#defs).getPropertyValue("color"));
8704
8875
  }
8705
8876
  }
8706
8877
 
8878
+ ;// ./src/display/standard_fontdata_factory.js
8879
+
8707
8880
 
8708
8881
  class BaseStandardFontDataFactory {
8709
8882
  constructor({
@@ -8736,6 +8909,8 @@ class DOMStandardFontDataFactory extends BaseStandardFontDataFactory {
8736
8909
  }
8737
8910
  }
8738
8911
 
8912
+ ;// ./src/display/wasm_factory.js
8913
+
8739
8914
 
8740
8915
  class BaseWasmFactory {
8741
8916
  constructor({
@@ -8768,6 +8943,8 @@ class DOMWasmFactory extends BaseWasmFactory {
8768
8943
  }
8769
8944
  }
8770
8945
 
8946
+ ;// ./src/display/node_utils.js
8947
+
8771
8948
 
8772
8949
 
8773
8950
 
@@ -8805,6 +8982,8 @@ class NodeWasmFactory extends BaseWasmFactory {
8805
8982
  }
8806
8983
  }
8807
8984
 
8985
+ ;// ./src/display/canvas_dependency_tracker.js
8986
+
8808
8987
  const FORCED_DEPENDENCY_LABEL = "__forcedDependency";
8809
8988
  const {
8810
8989
  floor,
@@ -9370,6 +9549,8 @@ const Dependencies = {
9370
9549
  transformAndFill: ["transform", "fillColor"]
9371
9550
  };
9372
9551
 
9552
+ ;// ./src/display/pattern_helper.js
9553
+
9373
9554
 
9374
9555
  const PathType = {
9375
9556
  FILL: "Fill",
@@ -9859,6 +10040,18 @@ class TilingPattern {
9859
10040
  return pattern;
9860
10041
  }
9861
10042
  }
10043
+
10044
+ ;// ./src/shared/image_utils.js
10045
+
10046
+ function convertToRGBA(params) {
10047
+ switch (params.kind) {
10048
+ case ImageKind.GRAYSCALE_1BPP:
10049
+ return convertBlackAndWhiteToRGBA(params);
10050
+ case ImageKind.RGB_24BPP:
10051
+ return convertRGBToRGBA(params);
10052
+ }
10053
+ return null;
10054
+ }
9862
10055
  function convertBlackAndWhiteToRGBA({
9863
10056
  src,
9864
10057
  srcPos = 0,
@@ -9900,6 +10093,63 @@ function convertBlackAndWhiteToRGBA({
9900
10093
  destPos
9901
10094
  };
9902
10095
  }
10096
+ function convertRGBToRGBA({
10097
+ src,
10098
+ srcPos = 0,
10099
+ dest,
10100
+ destPos = 0,
10101
+ width,
10102
+ height
10103
+ }) {
10104
+ let i = 0;
10105
+ const len = width * height * 3;
10106
+ const len32 = len >> 2;
10107
+ const src32 = new Uint32Array(src.buffer, srcPos, len32);
10108
+ if (FeatureTest.isLittleEndian) {
10109
+ for (; i < len32 - 2; i += 3, destPos += 4) {
10110
+ const s1 = src32[i];
10111
+ const s2 = src32[i + 1];
10112
+ const s3 = src32[i + 2];
10113
+ dest[destPos] = s1 | 0xff000000;
10114
+ dest[destPos + 1] = s1 >>> 24 | s2 << 8 | 0xff000000;
10115
+ dest[destPos + 2] = s2 >>> 16 | s3 << 16 | 0xff000000;
10116
+ dest[destPos + 3] = s3 >>> 8 | 0xff000000;
10117
+ }
10118
+ for (let j = i * 4, jj = srcPos + len; j < jj; j += 3) {
10119
+ dest[destPos++] = src[j] | src[j + 1] << 8 | src[j + 2] << 16 | 0xff000000;
10120
+ }
10121
+ } else {
10122
+ for (; i < len32 - 2; i += 3, destPos += 4) {
10123
+ const s1 = src32[i];
10124
+ const s2 = src32[i + 1];
10125
+ const s3 = src32[i + 2];
10126
+ dest[destPos] = s1 | 0xff;
10127
+ dest[destPos + 1] = s1 << 24 | s2 >>> 8 | 0xff;
10128
+ dest[destPos + 2] = s2 << 16 | s3 >>> 16 | 0xff;
10129
+ dest[destPos + 3] = s3 << 8 | 0xff;
10130
+ }
10131
+ for (let j = i * 4, jj = srcPos + len; j < jj; j += 3) {
10132
+ dest[destPos++] = src[j] << 24 | src[j + 1] << 16 | src[j + 2] << 8 | 0xff;
10133
+ }
10134
+ }
10135
+ return {
10136
+ srcPos: srcPos + len,
10137
+ destPos
10138
+ };
10139
+ }
10140
+ function grayToRGBA(src, dest) {
10141
+ if (FeatureTest.isLittleEndian) {
10142
+ for (let i = 0, ii = src.length; i < ii; i++) {
10143
+ dest[i] = src[i] * 0x10101 | 0xff000000;
10144
+ }
10145
+ } else {
10146
+ for (let i = 0, ii = src.length; i < ii; i++) {
10147
+ dest[i] = src[i] * 0x1010100 | 0x000000ff;
10148
+ }
10149
+ }
10150
+ }
10151
+
10152
+ ;// ./src/display/canvas.js
9903
10153
 
9904
10154
 
9905
10155
 
@@ -10171,7 +10421,7 @@ function putBinaryImageData(ctx, imgData) {
10171
10421
  const srcDiff = srcLength - srcPos;
10172
10422
  let k = 0;
10173
10423
  const kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7;
10174
- const kEndUnrolled = kEnd & -8;
10424
+ const kEndUnrolled = kEnd & ~7;
10175
10425
  let mask = 0;
10176
10426
  let srcByte = 0;
10177
10427
  for (; k < kEndUnrolled; k += 8) {
@@ -10407,7 +10657,7 @@ class CanvasGraphics {
10407
10657
  if (!operationsFilter || operationsFilter(i)) {
10408
10658
  fnId = fnArray[i];
10409
10659
  fnArgs = argsArray[i] ?? null;
10410
- if (fnId !== OPS.dependency) {
10660
+ if (fnId !== OPS$1.dependency) {
10411
10661
  if (fnArgs === null) {
10412
10662
  this[fnId](i);
10413
10663
  } else {
@@ -10823,7 +11073,7 @@ class CanvasGraphics {
10823
11073
  return;
10824
11074
  }
10825
11075
  if (this.dependencyTracker !== null) {
10826
- const outerExtraSize = op === OPS.stroke ? this.current.lineWidth / 2 : 0;
11076
+ const outerExtraSize = op === OPS$1.stroke ? this.current.lineWidth / 2 : 0;
10827
11077
  this.dependencyTracker.resetBBox(opIdx).recordBBox(opIdx, this.ctx, minMax[0] - outerExtraSize, minMax[2] + outerExtraSize, minMax[1] - outerExtraSize, minMax[3] + outerExtraSize).recordDependencies(opIdx, ["transform"]);
10828
11078
  }
10829
11079
  if (!(path instanceof Path2D)) {
@@ -12012,12 +12262,14 @@ class CanvasGraphics {
12012
12262
  return true;
12013
12263
  }
12014
12264
  }
12015
- for (const op in OPS) {
12265
+ for (const op in OPS$1) {
12016
12266
  if (CanvasGraphics.prototype[op] !== undefined) {
12017
- CanvasGraphics.prototype[OPS[op]] = CanvasGraphics.prototype[op];
12267
+ CanvasGraphics.prototype[OPS$1[op]] = CanvasGraphics.prototype[op];
12018
12268
  }
12019
12269
  }
12020
- class GlobalWorkerOptions {
12270
+
12271
+ ;// ./src/display/worker_options.js
12272
+ let GlobalWorkerOptions$1 = class GlobalWorkerOptions {
12021
12273
  static #port = null;
12022
12274
  static #src = "";
12023
12275
  static get workerPort() {
@@ -12038,7 +12290,9 @@ class GlobalWorkerOptions {
12038
12290
  }
12039
12291
  this.#src = val;
12040
12292
  }
12041
- }
12293
+ };
12294
+
12295
+ ;// ./src/display/metadata.js
12042
12296
  class Metadata {
12043
12297
  #map;
12044
12298
  #data;
@@ -12060,6 +12314,8 @@ class Metadata {
12060
12314
  }
12061
12315
  }
12062
12316
 
12317
+ ;// ./src/display/optional_content_config.js
12318
+
12063
12319
 
12064
12320
  const INTERNAL = Symbol("INTERNAL");
12065
12321
  class OptionalContentGroup {
@@ -12321,6 +12577,8 @@ class OptionalContentConfig {
12321
12577
  }
12322
12578
  }
12323
12579
 
12580
+ ;// ./src/display/transport_stream.js
12581
+
12324
12582
 
12325
12583
  class PDFDataTransportStream {
12326
12584
  constructor(pdfDataRangeTransport, {
@@ -12587,6 +12845,8 @@ class PDFDataTransportStreamRangeReader {
12587
12845
  }
12588
12846
  }
12589
12847
 
12848
+ ;// ./src/display/content_disposition.js
12849
+
12590
12850
  function getFilenameFromContentDispositionHeader(contentDisposition) {
12591
12851
  let needsEncodingFixup = true;
12592
12852
  let tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition);
@@ -12716,6 +12976,8 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
12716
12976
  return "";
12717
12977
  }
12718
12978
 
12979
+ ;// ./src/display/network_utils.js
12980
+
12719
12981
 
12720
12982
 
12721
12983
  function createHeaders(isHttp, httpHeaders) {
@@ -12781,12 +13043,14 @@ function extractFilenameFromHeader(responseHeaders) {
12781
13043
  return null;
12782
13044
  }
12783
13045
  function createResponseError(status, url) {
12784
- return new ResponseException(`Unexpected server response (${status}) while retrieving PDF "${url}".`, status, status === 404 || status === 0 && url.startsWith("file:"));
13046
+ return new ResponseException$1(`Unexpected server response (${status}) while retrieving PDF "${url}".`, status, status === 404 || status === 0 && url.startsWith("file:"));
12785
13047
  }
12786
13048
  function validateResponseStatus(status) {
12787
13049
  return status === 200 || status === 206;
12788
13050
  }
12789
13051
 
13052
+ ;// ./src/display/fetch_stream.js
13053
+
12790
13054
 
12791
13055
  function createFetchOptions(headers, withCredentials, abortController) {
12792
13056
  return {
@@ -12984,6 +13248,8 @@ class PDFFetchStreamRangeReader {
12984
13248
  }
12985
13249
  }
12986
13250
 
13251
+ ;// ./src/display/network.js
13252
+
12987
13253
 
12988
13254
  const OK_RESPONSE = 200;
12989
13255
  const PARTIAL_CONTENT_RESPONSE = 206;
@@ -13391,6 +13657,8 @@ class PDFNetworkStreamRangeRequestReader {
13391
13657
  }
13392
13658
  }
13393
13659
 
13660
+ ;// ./src/display/node_stream.js
13661
+
13394
13662
 
13395
13663
  const urlRegex = /^[a-z][a-z0-9\-+.]+:/i;
13396
13664
  function parseUrlOrPath(sourceUrl) {
@@ -13613,6 +13881,8 @@ class PDFNodeStreamFsRangeReader {
13613
13881
  }
13614
13882
  }
13615
13883
  }
13884
+
13885
+ ;// ./src/display/pdf_objects.js
13616
13886
  const INITIAL_DATA = Symbol("INITIAL_DATA");
13617
13887
  class PDFObjects {
13618
13888
  #objs = Object.create(null);
@@ -13673,6 +13943,8 @@ class PDFObjects {
13673
13943
  }
13674
13944
  }
13675
13945
 
13946
+ ;// ./src/display/text_layer.js
13947
+
13676
13948
 
13677
13949
  const MAX_TEXT_DIVS_TO_RENDER = 100000;
13678
13950
  const DEFAULT_FONT_SIZE = 30;
@@ -14036,6 +14308,8 @@ let TextLayer$1 = class TextLayer {
14036
14308
  }
14037
14309
  };
14038
14310
 
14311
+ ;// ./src/display/api.js
14312
+
14039
14313
 
14040
14314
 
14041
14315
 
@@ -14061,7 +14335,7 @@ let TextLayer$1 = class TextLayer {
14061
14335
 
14062
14336
 
14063
14337
  const RENDERING_CANCELLED_TIMEOUT = 100;
14064
- function getDocument(src = {}) {
14338
+ function getDocument$1(src = {}) {
14065
14339
  if (typeof src === "string" || src instanceof URL) {
14066
14340
  src = {
14067
14341
  url: src
@@ -14080,11 +14354,11 @@ function getDocument(src = {}) {
14080
14354
  const httpHeaders = src.httpHeaders || null;
14081
14355
  const withCredentials = src.withCredentials === true;
14082
14356
  const password = src.password ?? null;
14083
- const rangeTransport = src.range instanceof PDFDataRangeTransport ? src.range : null;
14357
+ const rangeTransport = src.range instanceof PDFDataRangeTransport$1 ? src.range : null;
14084
14358
  const rangeChunkSize = Number.isInteger(src.rangeChunkSize) && src.rangeChunkSize > 0 ? src.rangeChunkSize : 2 ** 16;
14085
- let worker = src.worker instanceof PDFWorker ? src.worker : null;
14359
+ let worker = src.worker instanceof PDFWorker$1 ? src.worker : null;
14086
14360
  const verbosity = src.verbosity;
14087
- const docBaseUrl = typeof src.docBaseUrl === "string" && !isDataScheme(src.docBaseUrl) ? src.docBaseUrl : null;
14361
+ const docBaseUrl = typeof src.docBaseUrl === "string" && !isDataScheme$1(src.docBaseUrl) ? src.docBaseUrl : null;
14088
14362
  const cMapUrl = getFactoryUrlProp(src.cMapUrl);
14089
14363
  const cMapPacked = src.cMapPacked !== false;
14090
14364
  const CMapReaderFactory = src.CMapReaderFactory || (isNodeJS ? NodeCMapReaderFactory : DOMCMapReaderFactory);
@@ -14137,9 +14411,9 @@ function getDocument(src = {}) {
14137
14411
  })
14138
14412
  };
14139
14413
  if (!worker) {
14140
- worker = PDFWorker.create({
14414
+ worker = PDFWorker$1.create({
14141
14415
  verbosity,
14142
- port: GlobalWorkerOptions.workerPort
14416
+ port: GlobalWorkerOptions$1.workerPort
14143
14417
  });
14144
14418
  task._worker = worker;
14145
14419
  }
@@ -14257,7 +14531,7 @@ class PDFDocumentLoadingTask {
14257
14531
  return this._transport.getData();
14258
14532
  }
14259
14533
  }
14260
- class PDFDataRangeTransport {
14534
+ let PDFDataRangeTransport$1 = class PDFDataRangeTransport {
14261
14535
  #capability = Promise.withResolvers();
14262
14536
  #progressiveDoneListeners = [];
14263
14537
  #progressiveReadListeners = [];
@@ -14314,7 +14588,7 @@ class PDFDataRangeTransport {
14314
14588
  unreachable("Abstract method PDFDataRangeTransport.requestDataRange");
14315
14589
  }
14316
14590
  abort() {}
14317
- }
14591
+ };
14318
14592
  class PDFDocumentProxy {
14319
14593
  constructor(pdfInfo, transport) {
14320
14594
  this._pdfInfo = pdfInfo;
@@ -14881,7 +15155,7 @@ class PDFPageProxy {
14881
15155
  return this._stats;
14882
15156
  }
14883
15157
  }
14884
- class PDFWorker {
15158
+ let PDFWorker$1 = class PDFWorker {
14885
15159
  #capability = Promise.withResolvers();
14886
15160
  #messageHandler = null;
14887
15161
  #port = null;
@@ -14892,7 +15166,7 @@ class PDFWorker {
14892
15166
  static {
14893
15167
  if (isNodeJS) {
14894
15168
  this.#isWorkerDisabled = true;
14895
- GlobalWorkerOptions.workerSrc ||= "./pdf.worker.mjs";
15169
+ GlobalWorkerOptions$1.workerSrc ||= "./pdf.worker.mjs";
14896
15170
  }
14897
15171
  this._isSameOrigin = (baseUrl, otherUrl) => {
14898
15172
  const base = URL.parse(baseUrl);
@@ -15064,8 +15338,8 @@ class PDFWorker {
15064
15338
  return new PDFWorker(params);
15065
15339
  }
15066
15340
  static get workerSrc() {
15067
- if (GlobalWorkerOptions.workerSrc) {
15068
- return GlobalWorkerOptions.workerSrc;
15341
+ if (GlobalWorkerOptions$1.workerSrc) {
15342
+ return GlobalWorkerOptions$1.workerSrc;
15069
15343
  }
15070
15344
  throw new Error('No "GlobalWorkerOptions.workerSrc" specified.');
15071
15345
  }
@@ -15089,7 +15363,7 @@ class PDFWorker {
15089
15363
  };
15090
15364
  return shadow$1(this, "_setupFakeWorkerGlobal", loader());
15091
15365
  }
15092
- }
15366
+ };
15093
15367
  class WorkerTransport {
15094
15368
  #methodPromises = new Map();
15095
15369
  #pageCache = new Map();
@@ -15811,11 +16085,13 @@ class InternalRenderTask {
15811
16085
  }
15812
16086
  }
15813
16087
  const version$1 = "5.4.449";
15814
- const build = "f44e5f0e6";
16088
+ const build$1 = "f44e5f0e6";
16089
+
16090
+ ;// ./src/display/editor/color_picker.js
15815
16091
 
15816
16092
 
15817
16093
 
15818
- class ColorPicker {
16094
+ let ColorPicker$1 = class ColorPicker {
15819
16095
  #button = null;
15820
16096
  #buttonSwatch = null;
15821
16097
  #defaultColor;
@@ -15883,7 +16159,7 @@ class ColorPicker {
15883
16159
  #getDropdownRoot() {
15884
16160
  const div = document.createElement("div");
15885
16161
  const signal = this.#uiManager._signal;
15886
- div.addEventListener("contextmenu", noContextMenu, {
16162
+ div.addEventListener("contextmenu", noContextMenu$1, {
15887
16163
  signal
15888
16164
  });
15889
16165
  div.className = "dropdown";
@@ -15920,7 +16196,7 @@ class ColorPicker {
15920
16196
  event.stopPropagation();
15921
16197
  this.#eventBus.dispatch("switchannotationeditorparams", {
15922
16198
  source: this,
15923
- type: AnnotationEditorParamsType.HIGHLIGHT_COLOR,
16199
+ type: AnnotationEditorParamsType$1.HIGHLIGHT_COLOR,
15924
16200
  value: color
15925
16201
  });
15926
16202
  this.updateColor(color);
@@ -16044,7 +16320,7 @@ class ColorPicker {
16044
16320
  this.#dropdown?.remove();
16045
16321
  this.#dropdown = null;
16046
16322
  }
16047
- }
16323
+ };
16048
16324
  class BasicColorPicker {
16049
16325
  #input = null;
16050
16326
  #editor = null;
@@ -16092,6 +16368,8 @@ class BasicColorPicker {
16092
16368
  }
16093
16369
  hideDropdown() {}
16094
16370
  }
16371
+
16372
+ ;// ./src/shared/scripting_utils.js
16095
16373
  function makeColorComp(n) {
16096
16374
  return Math.floor(Math.max(0, Math.min(1, n)) * 255).toString(16).padStart(2, "0");
16097
16375
  }
@@ -16149,6 +16427,10 @@ class ColorConverters {
16149
16427
  return ["CMYK", c, m, y, k];
16150
16428
  }
16151
16429
  }
16430
+ const DateFormats = (/* unused pure expression or super */ null && (["m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yy-mm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM"]));
16431
+ const TimeFormats = (/* unused pure expression or super */ null && (["HH:MM", "h:MM tt", "HH:MM:ss", "h:MM:ss tt"]));
16432
+
16433
+ ;// ./src/display/svg_factory.js
16152
16434
 
16153
16435
 
16154
16436
  class BaseSVGFactory {
@@ -16176,11 +16458,13 @@ class BaseSVGFactory {
16176
16458
  unreachable("Abstract method `_createSVG` called.");
16177
16459
  }
16178
16460
  }
16179
- class DOMSVGFactory extends BaseSVGFactory {
16461
+ let DOMSVGFactory$1 = class DOMSVGFactory extends BaseSVGFactory {
16180
16462
  _createSVG(type) {
16181
16463
  return document.createElementNS(SVG_NS, type);
16182
16464
  }
16183
- }
16465
+ };
16466
+
16467
+ ;// ./src/display/annotation_layer.js
16184
16468
 
16185
16469
 
16186
16470
 
@@ -16535,6 +16819,8 @@ class AnnotationElement {
16535
16819
  case AnnotationBorderStyleType.UNDERLINE:
16536
16820
  style.borderBottomStyle = "solid";
16537
16821
  break;
16822
+ default:
16823
+ break;
16538
16824
  }
16539
16825
  const borderColor = data.borderColor || null;
16540
16826
  if (borderColor) {
@@ -18083,7 +18369,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
18083
18369
  }
18084
18370
  if (this.data.combo) {
18085
18371
  this._setTextStyle(selectElement);
18086
- }
18372
+ } else {}
18087
18373
  this._setBackgroundColor(selectElement);
18088
18374
  this._setDefaultPropertiesFromJS(selectElement);
18089
18375
  this.container.append(selectElement);
@@ -18197,7 +18483,7 @@ class PopupElement {
18197
18483
  this.#elements = elements;
18198
18484
  this.#commentManager = commentManager;
18199
18485
  this.#firstElement = elements[0];
18200
- this.#dateObj = PDFDateString.toDateObject(modificationDate);
18486
+ this.#dateObj = PDFDateString$1.toDateObject(modificationDate);
18201
18487
  this.trigger = elements.flatMap(e => e.getElementsToTriggerPopup());
18202
18488
  if (!commentManager) {
18203
18489
  this.#addEventListeners();
@@ -18475,7 +18761,7 @@ class PopupElement {
18475
18761
  modificationDate.dateTime = this.#dateObj.toISOString();
18476
18762
  header.append(modificationDate);
18477
18763
  }
18478
- renderRichText({
18764
+ renderRichText$1({
18479
18765
  html: this.#html || this.#contentsObj.str,
18480
18766
  dir: this.#contentsObj?.dir,
18481
18767
  className: "popupContent"
@@ -18572,7 +18858,7 @@ class PopupElement {
18572
18858
  }
18573
18859
  if (popup && popup.text) {
18574
18860
  this.#richText = this.#makePopupContent(popup.text);
18575
- this.#dateObj = PDFDateString.toDateObject(popup.date);
18861
+ this.#dateObj = PDFDateString$1.toDateObject(popup.date);
18576
18862
  this.#contentsObj = null;
18577
18863
  }
18578
18864
  this.#popup?.remove();
@@ -19297,7 +19583,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
19297
19583
  downloadManager: params.downloadManager,
19298
19584
  imageResourcesPath: params.imageResourcesPath || "",
19299
19585
  renderForms: params.renderForms !== false,
19300
- svgFactory: new DOMSVGFactory(),
19586
+ svgFactory: new DOMSVGFactory$1(),
19301
19587
  annotationStorage: this.#annotationStorage,
19302
19588
  enableComment: params.enableComment === true,
19303
19589
  enableScripting: params.enableScripting === true,
@@ -19402,7 +19688,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
19402
19688
  }
19403
19689
  }) => {
19404
19690
  if (a0 === a2 && a1 === a3) {
19405
- return 1;
19691
+ return +1;
19406
19692
  }
19407
19693
  if (b0 === b2 && b1 === b3) {
19408
19694
  return -1;
@@ -19417,7 +19703,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
19417
19703
  return -1;
19418
19704
  }
19419
19705
  if (mid2 >= top1 && mid1 <= bot2) {
19420
- return 1;
19706
+ return +1;
19421
19707
  }
19422
19708
  const centerX1 = (a0 + a2) / 2;
19423
19709
  const centerX2 = (b0 + b2) / 2;
@@ -19445,7 +19731,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
19445
19731
  data: null,
19446
19732
  layer: this.div,
19447
19733
  linkService: this.#linkService,
19448
- svgFactory: new DOMSVGFactory(),
19734
+ svgFactory: new DOMSVGFactory$1(),
19449
19735
  parent: this
19450
19736
  };
19451
19737
  for (const data of annotations) {
@@ -19573,6 +19859,8 @@ let AnnotationLayer$1 = class AnnotationLayer {
19573
19859
  }
19574
19860
  };
19575
19861
 
19862
+ ;// ./src/display/editor/freetext.js
19863
+
19576
19864
 
19577
19865
 
19578
19866
 
@@ -19642,36 +19930,36 @@ class FreeTextEditor extends AnnotationEditor {
19642
19930
  }
19643
19931
  static updateDefaultParams(type, value) {
19644
19932
  switch (type) {
19645
- case AnnotationEditorParamsType.FREETEXT_SIZE:
19933
+ case AnnotationEditorParamsType$1.FREETEXT_SIZE:
19646
19934
  FreeTextEditor._defaultFontSize = value;
19647
19935
  break;
19648
- case AnnotationEditorParamsType.FREETEXT_COLOR:
19936
+ case AnnotationEditorParamsType$1.FREETEXT_COLOR:
19649
19937
  FreeTextEditor._defaultColor = value;
19650
19938
  break;
19651
19939
  }
19652
19940
  }
19653
19941
  updateParams(type, value) {
19654
19942
  switch (type) {
19655
- case AnnotationEditorParamsType.FREETEXT_SIZE:
19943
+ case AnnotationEditorParamsType$1.FREETEXT_SIZE:
19656
19944
  this.#updateFontSize(value);
19657
19945
  break;
19658
- case AnnotationEditorParamsType.FREETEXT_COLOR:
19946
+ case AnnotationEditorParamsType$1.FREETEXT_COLOR:
19659
19947
  this.#updateColor(value);
19660
19948
  break;
19661
19949
  }
19662
19950
  }
19663
19951
  static get defaultPropertiesToUpdate() {
19664
- return [[AnnotationEditorParamsType.FREETEXT_SIZE, FreeTextEditor._defaultFontSize], [AnnotationEditorParamsType.FREETEXT_COLOR, FreeTextEditor._defaultColor || AnnotationEditor._defaultLineColor]];
19952
+ return [[AnnotationEditorParamsType$1.FREETEXT_SIZE, FreeTextEditor._defaultFontSize], [AnnotationEditorParamsType$1.FREETEXT_COLOR, FreeTextEditor._defaultColor || AnnotationEditor._defaultLineColor]];
19665
19953
  }
19666
19954
  get propertiesToUpdate() {
19667
- return [[AnnotationEditorParamsType.FREETEXT_SIZE, this.#fontSize], [AnnotationEditorParamsType.FREETEXT_COLOR, this.color]];
19955
+ return [[AnnotationEditorParamsType$1.FREETEXT_SIZE, this.#fontSize], [AnnotationEditorParamsType$1.FREETEXT_COLOR, this.color]];
19668
19956
  }
19669
19957
  get toolbarButtons() {
19670
19958
  this._colorPicker ||= new BasicColorPicker(this);
19671
19959
  return [["colorPicker", this._colorPicker]];
19672
19960
  }
19673
19961
  get colorType() {
19674
- return AnnotationEditorParamsType.FREETEXT_COLOR;
19962
+ return AnnotationEditorParamsType$1.FREETEXT_COLOR;
19675
19963
  }
19676
19964
  #updateFontSize(fontSize) {
19677
19965
  const setFontsize = size => {
@@ -19686,7 +19974,7 @@ class FreeTextEditor extends AnnotationEditor {
19686
19974
  undo: setFontsize.bind(this, savedFontsize),
19687
19975
  post: this._uiManager.updateUI.bind(this._uiManager, this),
19688
19976
  mustExec: true,
19689
- type: AnnotationEditorParamsType.FREETEXT_SIZE,
19977
+ type: AnnotationEditorParamsType$1.FREETEXT_SIZE,
19690
19978
  overwriteIfSameType: true,
19691
19979
  keepUndo: true
19692
19980
  });
@@ -19707,7 +19995,7 @@ class FreeTextEditor extends AnnotationEditor {
19707
19995
  undo: setColor.bind(this, savedColor),
19708
19996
  post: this._uiManager.updateUI.bind(this._uiManager, this),
19709
19997
  mustExec: true,
19710
- type: AnnotationEditorParamsType.FREETEXT_COLOR,
19998
+ type: AnnotationEditorParamsType$1.FREETEXT_COLOR,
19711
19999
  overwriteIfSameType: true,
19712
20000
  keepUndo: true
19713
20001
  });
@@ -20213,6 +20501,8 @@ class FreeTextEditor extends AnnotationEditor {
20213
20501
  }
20214
20502
  }
20215
20503
 
20504
+ ;// ./src/display/editor/drawers/outline.js
20505
+
20216
20506
  class Outline {
20217
20507
  static PRECISION = 1e-4;
20218
20508
  toSVGPath() {
@@ -20280,6 +20570,8 @@ class Outline {
20280
20570
  }
20281
20571
  }
20282
20572
 
20573
+ ;// ./src/display/editor/drawers/freedraw.js
20574
+
20283
20575
 
20284
20576
  class FreeDrawOutliner {
20285
20577
  #box;
@@ -20643,6 +20935,8 @@ class FreeDrawOutline extends Outline {
20643
20935
  }
20644
20936
  }
20645
20937
 
20938
+ ;// ./src/display/editor/drawers/highlight.js
20939
+
20646
20940
 
20647
20941
 
20648
20942
  class HighlightOutliner {
@@ -20653,7 +20947,8 @@ class HighlightOutliner {
20653
20947
  #intervals = [];
20654
20948
  constructor(boxes, borderWidth = 0, innerMargin = 0, isLTR = true) {
20655
20949
  const minMax = [Infinity, Infinity, -Infinity, -Infinity];
20656
- const EPSILON = 10 ** -4;
20950
+ const NUMBER_OF_DIGITS = 4;
20951
+ const EPSILON = 10 ** -NUMBER_OF_DIGITS;
20657
20952
  for (const {
20658
20953
  x,
20659
20954
  y,
@@ -20903,6 +21198,8 @@ class FreeHighlightOutline extends FreeDrawOutline {
20903
21198
  }
20904
21199
  }
20905
21200
 
21201
+ ;// ./src/display/editor/highlight.js
21202
+
20906
21203
 
20907
21204
 
20908
21205
 
@@ -21103,10 +21400,10 @@ class HighlightEditor extends AnnotationEditor {
21103
21400
  }
21104
21401
  static updateDefaultParams(type, value) {
21105
21402
  switch (type) {
21106
- case AnnotationEditorParamsType.HIGHLIGHT_COLOR:
21403
+ case AnnotationEditorParamsType$1.HIGHLIGHT_COLOR:
21107
21404
  HighlightEditor._defaultColor = value;
21108
21405
  break;
21109
- case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
21406
+ case AnnotationEditorParamsType$1.HIGHLIGHT_THICKNESS:
21110
21407
  HighlightEditor._defaultThickness = value;
21111
21408
  break;
21112
21409
  }
@@ -21120,19 +21417,19 @@ class HighlightEditor extends AnnotationEditor {
21120
21417
  }
21121
21418
  updateParams(type, value) {
21122
21419
  switch (type) {
21123
- case AnnotationEditorParamsType.HIGHLIGHT_COLOR:
21420
+ case AnnotationEditorParamsType$1.HIGHLIGHT_COLOR:
21124
21421
  this.#updateColor(value);
21125
21422
  break;
21126
- case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
21423
+ case AnnotationEditorParamsType$1.HIGHLIGHT_THICKNESS:
21127
21424
  this.#updateThickness(value);
21128
21425
  break;
21129
21426
  }
21130
21427
  }
21131
21428
  static get defaultPropertiesToUpdate() {
21132
- return [[AnnotationEditorParamsType.HIGHLIGHT_COLOR, HighlightEditor._defaultColor], [AnnotationEditorParamsType.HIGHLIGHT_THICKNESS, HighlightEditor._defaultThickness]];
21429
+ return [[AnnotationEditorParamsType$1.HIGHLIGHT_COLOR, HighlightEditor._defaultColor], [AnnotationEditorParamsType$1.HIGHLIGHT_THICKNESS, HighlightEditor._defaultThickness]];
21133
21430
  }
21134
21431
  get propertiesToUpdate() {
21135
- return [[AnnotationEditorParamsType.HIGHLIGHT_COLOR, this.color || HighlightEditor._defaultColor], [AnnotationEditorParamsType.HIGHLIGHT_THICKNESS, this.#thickness || HighlightEditor._defaultThickness], [AnnotationEditorParamsType.HIGHLIGHT_FREE, this.#isFreeHighlight]];
21432
+ return [[AnnotationEditorParamsType$1.HIGHLIGHT_COLOR, this.color || HighlightEditor._defaultColor], [AnnotationEditorParamsType$1.HIGHLIGHT_THICKNESS, this.#thickness || HighlightEditor._defaultThickness], [AnnotationEditorParamsType$1.HIGHLIGHT_FREE, this.#isFreeHighlight]];
21136
21433
  }
21137
21434
  onUpdatedColor() {
21138
21435
  this.parent?.drawLayer.updateProperties(this.#id, {
@@ -21157,7 +21454,7 @@ class HighlightEditor extends AnnotationEditor {
21157
21454
  undo: setColorAndOpacity.bind(this, savedColor, savedOpacity),
21158
21455
  post: this._uiManager.updateUI.bind(this._uiManager, this),
21159
21456
  mustExec: true,
21160
- type: AnnotationEditorParamsType.HIGHLIGHT_COLOR,
21457
+ type: AnnotationEditorParamsType$1.HIGHLIGHT_COLOR,
21161
21458
  overwriteIfSameType: true,
21162
21459
  keepUndo: true
21163
21460
  });
@@ -21177,7 +21474,7 @@ class HighlightEditor extends AnnotationEditor {
21177
21474
  undo: setThickness.bind(this, savedThickness),
21178
21475
  post: this._uiManager.updateUI.bind(this._uiManager, this),
21179
21476
  mustExec: true,
21180
- type: AnnotationEditorParamsType.INK_THICKNESS,
21477
+ type: AnnotationEditorParamsType$1.INK_THICKNESS,
21181
21478
  overwriteIfSameType: true,
21182
21479
  keepUndo: true
21183
21480
  });
@@ -21188,7 +21485,7 @@ class HighlightEditor extends AnnotationEditor {
21188
21485
  }
21189
21486
  get toolbarButtons() {
21190
21487
  if (this._uiManager.highlightColors) {
21191
- const colorPicker = this.#colorPicker = new ColorPicker({
21488
+ const colorPicker = this.#colorPicker = new ColorPicker$1({
21192
21489
  editor: this
21193
21490
  });
21194
21491
  return [["colorPicker", colorPicker]];
@@ -21518,7 +21815,7 @@ class HighlightEditor extends AnnotationEditor {
21518
21815
  passive: false,
21519
21816
  signal
21520
21817
  });
21521
- window.addEventListener("contextmenu", noContextMenu, {
21818
+ window.addEventListener("contextmenu", noContextMenu$1, {
21522
21819
  signal
21523
21820
  });
21524
21821
  textLayer.addEventListener("pointermove", this.#highlightMove.bind(this, parent), {
@@ -21771,6 +22068,8 @@ class HighlightEditor extends AnnotationEditor {
21771
22068
  }
21772
22069
  }
21773
22070
 
22071
+ ;// ./src/display/editor/draw.js
22072
+
21774
22073
 
21775
22074
 
21776
22075
 
@@ -22245,7 +22544,7 @@ class DrawingEditor extends AnnotationEditor {
22245
22544
  passive: false,
22246
22545
  signal
22247
22546
  });
22248
- window.addEventListener("contextmenu", noContextMenu, {
22547
+ window.addEventListener("contextmenu", noContextMenu$1, {
22249
22548
  signal
22250
22549
  });
22251
22550
  target.addEventListener("pointermove", this._drawMove.bind(this), {
@@ -22273,6 +22572,7 @@ class DrawingEditor extends AnnotationEditor {
22273
22572
  } = parent.drawLayer.draw(this._mergeSVGProperties(DrawingEditor.#currentDrawingOptions.toSVGProperties(), DrawingEditor.#currentDraw.defaultSVGProperties), true, false));
22274
22573
  }
22275
22574
  static _drawMove(event) {
22575
+ CurrentPointers.isSameTimeStamp(event.timeStamp);
22276
22576
  if (!DrawingEditor.#currentDraw) {
22277
22577
  return;
22278
22578
  }
@@ -22329,7 +22629,7 @@ class DrawingEditor extends AnnotationEditor {
22329
22629
  parent.drawLayer.updateProperties(drawId, draw.removeLastElement());
22330
22630
  },
22331
22631
  mustExec: false,
22332
- type: AnnotationEditorParamsType.DRAW_STEP
22632
+ type: AnnotationEditorParamsType$1.DRAW_STEP
22333
22633
  });
22334
22634
  return;
22335
22635
  }
@@ -22341,7 +22641,7 @@ class DrawingEditor extends AnnotationEditor {
22341
22641
  return null;
22342
22642
  }
22343
22643
  parent.toggleDrawing(true);
22344
- parent.cleanUndoStack(AnnotationEditorParamsType.DRAW_STEP);
22644
+ parent.cleanUndoStack(AnnotationEditorParamsType$1.DRAW_STEP);
22345
22645
  if (!DrawingEditor.#currentDraw.isEmpty()) {
22346
22646
  const {
22347
22647
  pageDimensions: [pageWidth, pageHeight],
@@ -22403,6 +22703,8 @@ class DrawingEditor extends AnnotationEditor {
22403
22703
  }
22404
22704
  }
22405
22705
 
22706
+ ;// ./src/display/editor/drawers/inkdraw.js
22707
+
22406
22708
 
22407
22709
  class InkDrawOutliner {
22408
22710
  #last = new Float64Array(6);
@@ -23062,6 +23364,8 @@ class InkDrawOutline extends Outline {
23062
23364
  }
23063
23365
  }
23064
23366
 
23367
+ ;// ./src/display/editor/ink.js
23368
+
23065
23369
 
23066
23370
 
23067
23371
 
@@ -23119,7 +23423,7 @@ class InkEditor extends DrawingEditor {
23119
23423
  return true;
23120
23424
  }
23121
23425
  static get typesMap() {
23122
- return shadow$1(this, "typesMap", new Map([[AnnotationEditorParamsType.INK_THICKNESS, "stroke-width"], [AnnotationEditorParamsType.INK_COLOR, "stroke"], [AnnotationEditorParamsType.INK_OPACITY, "stroke-opacity"]]));
23426
+ return shadow$1(this, "typesMap", new Map([[AnnotationEditorParamsType$1.INK_THICKNESS, "stroke-width"], [AnnotationEditorParamsType$1.INK_COLOR, "stroke"], [AnnotationEditorParamsType$1.INK_OPACITY, "stroke-opacity"]]));
23123
23427
  }
23124
23428
  static createDrawerInstance(x, y, parentWidth, parentHeight, rotation) {
23125
23429
  return new InkDrawOutliner(x, y, parentWidth, parentHeight, rotation, this._defaultDrawingOptions["stroke-width"]);
@@ -23187,7 +23491,7 @@ class InkEditor extends DrawingEditor {
23187
23491
  return [["colorPicker", this._colorPicker]];
23188
23492
  }
23189
23493
  get colorType() {
23190
- return AnnotationEditorParamsType.INK_COLOR;
23494
+ return AnnotationEditorParamsType$1.INK_COLOR;
23191
23495
  }
23192
23496
  get color() {
23193
23497
  return this._drawingOptions.stroke;
@@ -23294,6 +23598,8 @@ class InkEditor extends DrawingEditor {
23294
23598
  }
23295
23599
  }
23296
23600
 
23601
+ ;// ./src/display/editor/drawers/contour.js
23602
+
23297
23603
  class ContourDrawOutline extends InkDrawOutline {
23298
23604
  toSVGPath() {
23299
23605
  let path = super.toSVGPath();
@@ -23304,12 +23610,14 @@ class ContourDrawOutline extends InkDrawOutline {
23304
23610
  }
23305
23611
  }
23306
23612
 
23613
+ ;// ./src/display/editor/drawers/signaturedraw.js
23614
+
23307
23615
 
23308
23616
 
23309
23617
 
23310
23618
  const BASE_HEADER_LENGTH = 8;
23311
23619
  const POINTS_PROPERTIES_NUMBER = 3;
23312
- class SignatureExtractor {
23620
+ let SignatureExtractor$1 = class SignatureExtractor {
23313
23621
  static #PARAMETERS = {
23314
23622
  maxDim: 512,
23315
23623
  sigmaSFactor: 0.02,
@@ -23918,7 +24226,9 @@ class SignatureExtractor {
23918
24226
  return null;
23919
24227
  }
23920
24228
  }
23921
- }
24229
+ };
24230
+
24231
+ ;// ./src/display/editor/signature.js
23922
24232
 
23923
24233
 
23924
24234
 
@@ -24045,7 +24355,7 @@ class SignatureEditor extends DrawingEditor {
24045
24355
  },
24046
24356
  rotation
24047
24357
  } = this.parent.viewport;
24048
- const outline = SignatureExtractor.processDrawnLines({
24358
+ const outline = SignatureExtractor$1.processDrawnLines({
24049
24359
  lines,
24050
24360
  pageWidth,
24051
24361
  pageHeight,
@@ -24104,7 +24414,7 @@ class SignatureEditor extends DrawingEditor {
24104
24414
  height
24105
24415
  } = this.#signatureData;
24106
24416
  const maxDim = Math.max(width, height);
24107
- const outlineData = SignatureExtractor.processDrawnLines({
24417
+ const outlineData = SignatureExtractor$1.processDrawnLines({
24108
24418
  lines: {
24109
24419
  curves: newCurves.map(points => ({
24110
24420
  points
@@ -24189,7 +24499,7 @@ class SignatureEditor extends DrawingEditor {
24189
24499
  },
24190
24500
  rotation
24191
24501
  } = this.parent.viewport;
24192
- return SignatureExtractor.process(bitmap, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
24502
+ return SignatureExtractor$1.process(bitmap, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
24193
24503
  }
24194
24504
  getFromText(text, fontInfo) {
24195
24505
  const {
@@ -24199,7 +24509,7 @@ class SignatureEditor extends DrawingEditor {
24199
24509
  },
24200
24510
  rotation
24201
24511
  } = this.parent.viewport;
24202
- return SignatureExtractor.extractContoursFromText(text, fontInfo, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
24512
+ return SignatureExtractor$1.extractContoursFromText(text, fontInfo, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
24203
24513
  }
24204
24514
  getDrawnSignature(curves) {
24205
24515
  const {
@@ -24209,7 +24519,7 @@ class SignatureEditor extends DrawingEditor {
24209
24519
  },
24210
24520
  rotation
24211
24521
  } = this.parent.viewport;
24212
- return SignatureExtractor.processDrawnLines({
24522
+ return SignatureExtractor$1.processDrawnLines({
24213
24523
  lines: curves,
24214
24524
  pageWidth,
24215
24525
  pageHeight,
@@ -24285,6 +24595,8 @@ class SignatureEditor extends DrawingEditor {
24285
24595
  }
24286
24596
  }
24287
24597
 
24598
+ ;// ./src/display/editor/stamp.js
24599
+
24288
24600
 
24289
24601
 
24290
24602
 
@@ -24315,7 +24627,7 @@ class StampEditor extends AnnotationEditor {
24315
24627
  AnnotationEditor.initialize(l10n, uiManager);
24316
24628
  }
24317
24629
  static isHandlingMimeForPasting(mime) {
24318
- return SupportedImageMimeTypes.includes(mime);
24630
+ return SupportedImageMimeTypes$1.includes(mime);
24319
24631
  }
24320
24632
  static paste(item, parent) {
24321
24633
  parent.pasteEditor({
@@ -24456,7 +24768,7 @@ class StampEditor extends AnnotationEditor {
24456
24768
  }
24457
24769
  const input = document.createElement("input");
24458
24770
  input.type = "file";
24459
- input.accept = SupportedImageMimeTypes.join(",");
24771
+ input.accept = SupportedImageMimeTypes$1.join(",");
24460
24772
  const signal = this._uiManager._signal;
24461
24773
  this.#bitmapPromise = new Promise(resolve => {
24462
24774
  input.addEventListener("change", async () => {
@@ -24977,6 +25289,8 @@ class StampEditor extends AnnotationEditor {
24977
25289
  }
24978
25290
  }
24979
25291
 
25292
+ ;// ./src/display/editor/annotation_editor_layer.js
25293
+
24980
25294
 
24981
25295
 
24982
25296
 
@@ -25733,6 +26047,8 @@ let AnnotationEditorLayer$1 = class AnnotationEditorLayer {
25733
26047
  }
25734
26048
  };
25735
26049
 
26050
+ ;// ./src/display/draw_layer.js
26051
+
25736
26052
 
25737
26053
  let DrawLayer$1 = class DrawLayer {
25738
26054
  #parent = null;
@@ -25760,7 +26076,7 @@ let DrawLayer$1 = class DrawLayer {
25760
26076
  }
25761
26077
  }
25762
26078
  static get _svgFactory() {
25763
- return shadow$1(this, "_svgFactory", new DOMSVGFactory());
26079
+ return shadow$1(this, "_svgFactory", new DOMSVGFactory$1());
25764
26080
  }
25765
26081
  static #setBox(element, [x, y, width, height]) {
25766
26082
  const {
@@ -25934,6 +26250,8 @@ let DrawLayer$1 = class DrawLayer {
25934
26250
  }
25935
26251
  };
25936
26252
 
26253
+ ;// ./src/pdf.js
26254
+
25937
26255
 
25938
26256
 
25939
26257
 
@@ -25957,58 +26275,58 @@ let DrawLayer$1 = class DrawLayer {
25957
26275
  globalThis.pdfjsLib = {
25958
26276
  AbortException: AbortException$1,
25959
26277
  AnnotationEditorLayer: AnnotationEditorLayer$1,
25960
- AnnotationEditorParamsType: AnnotationEditorParamsType,
26278
+ AnnotationEditorParamsType: AnnotationEditorParamsType$1,
25961
26279
  AnnotationEditorType: AnnotationEditorType$1,
25962
26280
  AnnotationEditorUIManager: AnnotationEditorUIManager$1,
25963
26281
  AnnotationLayer: AnnotationLayer$1,
25964
26282
  AnnotationMode: AnnotationMode$1,
25965
26283
  AnnotationType: AnnotationType$1,
25966
- applyOpacity: applyOpacity,
25967
- build: build,
25968
- ColorPicker: ColorPicker,
26284
+ applyOpacity: applyOpacity$1,
26285
+ build: build$1,
26286
+ ColorPicker: ColorPicker$1,
25969
26287
  createValidAbsoluteUrl: createValidAbsoluteUrl$1,
25970
- CSSConstants: CSSConstants,
25971
- DOMSVGFactory: DOMSVGFactory,
26288
+ CSSConstants: CSSConstants$1,
26289
+ DOMSVGFactory: DOMSVGFactory$1,
25972
26290
  DrawLayer: DrawLayer$1,
25973
26291
  FeatureTest: util_FeatureTest,
25974
26292
  fetchData: fetchData$1,
25975
- findContrastColor: findContrastColor,
25976
- getDocument: getDocument,
25977
- getFilenameFromUrl: getFilenameFromUrl,
26293
+ findContrastColor: findContrastColor$1,
26294
+ getDocument: getDocument$1,
26295
+ getFilenameFromUrl: getFilenameFromUrl$1,
25978
26296
  getPdfFilenameFromUrl: getPdfFilenameFromUrl$1,
25979
- getRGB: getRGB,
25980
- getUuid: getUuid,
25981
- getXfaPageViewport: getXfaPageViewport,
25982
- GlobalWorkerOptions: GlobalWorkerOptions,
26297
+ getRGB: getRGB$1,
26298
+ getUuid: getUuid$1,
26299
+ getXfaPageViewport: getXfaPageViewport$1,
26300
+ GlobalWorkerOptions: GlobalWorkerOptions$1,
25983
26301
  ImageKind: util_ImageKind,
25984
- InvalidPDFException: InvalidPDFException,
25985
- isDataScheme: isDataScheme,
26302
+ InvalidPDFException: InvalidPDFException$1,
26303
+ isDataScheme: isDataScheme$1,
25986
26304
  isPdfFile: isPdfFile$1,
25987
26305
  isValidExplicitDest: isValidExplicitDest$1,
25988
26306
  MathClamp: MathClamp$1,
25989
- noContextMenu: noContextMenu,
26307
+ noContextMenu: noContextMenu$1,
25990
26308
  normalizeUnicode: normalizeUnicode$1,
25991
- OPS: OPS,
26309
+ OPS: OPS$1,
25992
26310
  OutputScale: OutputScale$1,
25993
- PasswordResponses: PasswordResponses,
25994
- PDFDataRangeTransport: PDFDataRangeTransport,
25995
- PDFDateString: PDFDateString,
25996
- PDFWorker: PDFWorker,
26311
+ PasswordResponses: PasswordResponses$1,
26312
+ PDFDataRangeTransport: PDFDataRangeTransport$1,
26313
+ PDFDateString: PDFDateString$1,
26314
+ PDFWorker: PDFWorker$1,
25997
26315
  PermissionFlag: PermissionFlag$1,
25998
26316
  PixelsPerInch: PixelsPerInch$1,
25999
26317
  RenderingCancelledException: RenderingCancelledException$1,
26000
- renderRichText: renderRichText,
26001
- ResponseException: ResponseException,
26318
+ renderRichText: renderRichText$1,
26319
+ ResponseException: ResponseException$1,
26002
26320
  setLayerDimensions: setLayerDimensions$1,
26003
26321
  shadow: shadow$1,
26004
- SignatureExtractor: SignatureExtractor,
26322
+ SignatureExtractor: SignatureExtractor$1,
26005
26323
  stopEvent: stopEvent$1,
26006
- SupportedImageMimeTypes: SupportedImageMimeTypes,
26324
+ SupportedImageMimeTypes: SupportedImageMimeTypes$1,
26007
26325
  TextLayer: TextLayer$1,
26008
- TouchManager: TouchManager,
26326
+ TouchManager: TouchManager$1,
26009
26327
  updateUrlHash: updateUrlHash$1,
26010
26328
  Util: Util$1,
26011
- VerbosityLevel: VerbosityLevel,
26329
+ VerbosityLevel: VerbosityLevel$1,
26012
26330
  version: version$1,
26013
26331
  XfaLayer: XfaLayer$1
26014
26332
  };
@@ -26035,37 +26353,96 @@ globalThis.pdfjsLib = {
26035
26353
  * JavaScript code in this page
26036
26354
  */
26037
26355
 
26356
+ /**
26357
+ * pdfjsVersion = 5.4.449
26358
+ * pdfjsBuild = f44e5f0e6
26359
+ */
26360
+ /******/ // The require scope
26361
+ /******/ var __webpack_require__ = {};
26362
+ /******/
26363
+ /************************************************************************/
26364
+ /******/ /* webpack/runtime/define property getters */
26365
+ /******/ (() => {
26366
+ /******/ // define getter functions for harmony exports
26367
+ /******/ __webpack_require__.d = (exports, definition) => {
26368
+ /******/ for(var key in definition) {
26369
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
26370
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26371
+ /******/ }
26372
+ /******/ }
26373
+ /******/ };
26374
+ /******/ })();
26375
+ /******/
26376
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
26377
+ /******/ (() => {
26378
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
26379
+ /******/ })();
26380
+ /******/
26381
+ /************************************************************************/
26382
+ var __webpack_exports__ = {};
26383
+
26384
+ ;// ./web/pdfjs.js
26038
26385
  const {
26039
26386
  AbortException,
26040
26387
  AnnotationEditorLayer,
26388
+ AnnotationEditorParamsType,
26041
26389
  AnnotationEditorType,
26042
26390
  AnnotationEditorUIManager,
26043
26391
  AnnotationLayer,
26044
26392
  AnnotationMode,
26045
26393
  AnnotationType,
26394
+ applyOpacity,
26395
+ build,
26396
+ ColorPicker,
26046
26397
  createValidAbsoluteUrl,
26398
+ CSSConstants,
26399
+ DOMSVGFactory,
26047
26400
  DrawLayer,
26048
- FeatureTest,
26401
+ FeatureTest: FeatureTest$1,
26049
26402
  fetchData,
26403
+ findContrastColor,
26404
+ getDocument,
26405
+ getFilenameFromUrl,
26050
26406
  getPdfFilenameFromUrl,
26407
+ getRGB,
26408
+ getUuid,
26409
+ getXfaPageViewport,
26410
+ GlobalWorkerOptions,
26411
+ ImageKind: ImageKind$1,
26412
+ InvalidPDFException,
26413
+ isDataScheme,
26051
26414
  isPdfFile,
26052
26415
  isValidExplicitDest,
26053
26416
  MathClamp,
26417
+ noContextMenu,
26054
26418
  normalizeUnicode,
26419
+ OPS,
26055
26420
  OutputScale,
26421
+ PasswordResponses,
26422
+ PDFDataRangeTransport,
26423
+ PDFDateString,
26424
+ PDFWorker,
26056
26425
  PermissionFlag,
26057
26426
  PixelsPerInch,
26058
26427
  RenderingCancelledException,
26428
+ renderRichText,
26429
+ ResponseException,
26059
26430
  setLayerDimensions,
26060
26431
  shadow,
26432
+ SignatureExtractor,
26061
26433
  stopEvent,
26434
+ SupportedImageMimeTypes,
26062
26435
  TextLayer,
26436
+ TouchManager,
26063
26437
  updateUrlHash,
26064
26438
  Util,
26439
+ VerbosityLevel,
26065
26440
  version,
26066
26441
  XfaLayer
26067
26442
  } = globalThis.pdfjsLib;
26068
26443
 
26444
+ ;// ./web/ui_utils.js
26445
+
26069
26446
  const DEFAULT_SCALE_VALUE = "auto";
26070
26447
  const DEFAULT_SCALE = 1.0;
26071
26448
  const DEFAULT_SCALE_DELTA = 1.1;
@@ -26087,6 +26464,14 @@ const PresentationModeState = {
26087
26464
  CHANGING: 2,
26088
26465
  FULLSCREEN: 3
26089
26466
  };
26467
+ const SidebarView = {
26468
+ UNKNOWN: -1,
26469
+ NONE: 0,
26470
+ THUMBS: 1,
26471
+ OUTLINE: 2,
26472
+ ATTACHMENTS: 3,
26473
+ LAYERS: 4
26474
+ };
26090
26475
  const TextLayerMode = {
26091
26476
  DISABLE: 0,
26092
26477
  ENABLE: 1,
@@ -26105,6 +26490,12 @@ const SpreadMode = {
26105
26490
  ODD: 1,
26106
26491
  EVEN: 2
26107
26492
  };
26493
+ const CursorTool = {
26494
+ SELECT: 0,
26495
+ HAND: 1,
26496
+ ZOOM: 2
26497
+ };
26498
+ const AutoPrintRegExp = /\bprint\s*\(/;
26108
26499
  function scrollIntoView(element, spot, scrollMatches = false) {
26109
26500
  let parent = element.offsetParent;
26110
26501
  if (!parent) {
@@ -26255,6 +26646,20 @@ function approximateFraction(x) {
26255
26646
  function floorToDivide(x, div) {
26256
26647
  return x - x % div;
26257
26648
  }
26649
+ function getPageSizeInches({
26650
+ view,
26651
+ userUnit,
26652
+ rotate
26653
+ }) {
26654
+ const [x1, y1, x2, y2] = view;
26655
+ const changeOrientation = rotate % 180 !== 0;
26656
+ const width = (x2 - x1) / 72 * userUnit;
26657
+ const height = (y2 - y1) / 72 * userUnit;
26658
+ return {
26659
+ width: changeOrientation ? height : width,
26660
+ height: changeOrientation ? width : height
26661
+ };
26662
+ }
26258
26663
  function backtrackBeforeAllVisibleElements(index, views, top) {
26259
26664
  if (index < 2) {
26260
26665
  return index;
@@ -26364,6 +26769,26 @@ function getVisibleElements({
26364
26769
  ids
26365
26770
  };
26366
26771
  }
26772
+ function normalizeWheelEventDirection(evt) {
26773
+ let delta = Math.hypot(evt.deltaX, evt.deltaY);
26774
+ const angle = Math.atan2(evt.deltaY, evt.deltaX);
26775
+ if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {
26776
+ delta = -delta;
26777
+ }
26778
+ return delta;
26779
+ }
26780
+ function normalizeWheelEventDelta(evt) {
26781
+ const deltaMode = evt.deltaMode;
26782
+ let delta = normalizeWheelEventDirection(evt);
26783
+ const MOUSE_PIXELS_PER_LINE = 30;
26784
+ const MOUSE_LINES_PER_PAGE = 30;
26785
+ if (deltaMode === WheelEvent.DOM_DELTA_PIXEL) {
26786
+ delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE;
26787
+ } else if (deltaMode === WheelEvent.DOM_DELTA_LINE) {
26788
+ delta /= MOUSE_LINES_PER_PAGE;
26789
+ }
26790
+ return delta;
26791
+ }
26367
26792
  function isValidRotation(angle) {
26368
26793
  return Number.isInteger(angle) && angle % 90 === 0;
26369
26794
  }
@@ -26376,7 +26801,7 @@ function isValidSpreadMode(mode) {
26376
26801
  function isPortraitOrientation(size) {
26377
26802
  return size.width <= size.height;
26378
26803
  }
26379
- new Promise(function (resolve) {
26804
+ const animationStarted = new Promise(function (resolve) {
26380
26805
  window.requestAnimationFrame(resolve);
26381
26806
  });
26382
26807
  const docStyle = document.documentElement.style;
@@ -26440,6 +26865,15 @@ class ProgressBar {
26440
26865
  this.#classList.remove("hidden");
26441
26866
  }
26442
26867
  }
26868
+ function getActiveOrFocusedElement() {
26869
+ let curRoot = document;
26870
+ let curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");
26871
+ while (curActiveOrFocused?.shadowRoot) {
26872
+ curRoot = curActiveOrFocused.shadowRoot;
26873
+ curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");
26874
+ }
26875
+ return curActiveOrFocused;
26876
+ }
26443
26877
  function apiPageLayoutToViewerModes(layout) {
26444
26878
  let scrollMode = ScrollMode.VERTICAL,
26445
26879
  spreadMode = SpreadMode.NONE;
@@ -26465,12 +26899,39 @@ function apiPageLayoutToViewerModes(layout) {
26465
26899
  spreadMode
26466
26900
  };
26467
26901
  }
26902
+ function apiPageModeToSidebarView(mode) {
26903
+ switch (mode) {
26904
+ case "UseNone":
26905
+ return SidebarView.NONE;
26906
+ case "UseThumbs":
26907
+ return SidebarView.THUMBS;
26908
+ case "UseOutlines":
26909
+ return SidebarView.OUTLINE;
26910
+ case "UseAttachments":
26911
+ return SidebarView.ATTACHMENTS;
26912
+ case "UseOC":
26913
+ return SidebarView.LAYERS;
26914
+ }
26915
+ return SidebarView.NONE;
26916
+ }
26917
+ function toggleCheckedBtn(button, toggle, view = null) {
26918
+ button.classList.toggle("toggled", toggle);
26919
+ button.setAttribute("aria-checked", toggle);
26920
+ view?.classList.toggle("hidden", !toggle);
26921
+ }
26922
+ function toggleExpandedBtn(button, toggle, view = null) {
26923
+ button.classList.toggle("toggled", toggle);
26924
+ button.setAttribute("aria-expanded", toggle);
26925
+ view?.classList.toggle("hidden", !toggle);
26926
+ }
26468
26927
  const calcRound = function () {
26469
26928
  const e = document.createElement("div");
26470
26929
  e.style.width = "round(down, calc(1.6666666666666665 * 792px), 1px)";
26471
26930
  return e.style.width === "calc(1320px)" ? Math.fround : x => x;
26472
26931
  }();
26473
26932
 
26933
+ ;// ./web/pdf_find_utils.js
26934
+
26474
26935
  const CharacterType = {
26475
26936
  SPACE: 0,
26476
26937
  ALPHA_LETTER: 1,
@@ -26543,6 +27004,8 @@ function getNormalizeWithNFKC() {
26543
27004
  return NormalizeWithNFKC;
26544
27005
  }
26545
27006
 
27007
+ ;// ./web/pdf_find_controller.js
27008
+
26546
27009
 
26547
27010
  const FindState = {
26548
27011
  FOUND: 0,
@@ -27314,6 +27777,8 @@ class PDFFindController {
27314
27777
  }
27315
27778
  }
27316
27779
 
27780
+ ;// ./web/pdf_link_service.js
27781
+
27317
27782
 
27318
27783
  const DEFAULT_LINK_REL = "noopener noreferrer nofollow";
27319
27784
  const LinkTarget = {
@@ -27607,6 +28072,8 @@ class PDFLinkService {
27607
28072
  case "FirstPage":
27608
28073
  this.page = 1;
27609
28074
  break;
28075
+ default:
28076
+ break;
27610
28077
  }
27611
28078
  this.eventBus.dispatch("namedaction", {
27612
28079
  source: this,
@@ -27630,6 +28097,8 @@ class SimpleLinkService extends PDFLinkService {
27630
28097
  setDocument(pdfDocument, baseUrl = null) {}
27631
28098
  }
27632
28099
 
28100
+ ;// ./web/annotation_layer_builder.js
28101
+
27633
28102
 
27634
28103
  class AnnotationLayerBuilder {
27635
28104
  #annotations = null;
@@ -27854,6 +28323,8 @@ class AnnotationLayerBuilder {
27854
28323
  }
27855
28324
  }
27856
28325
 
28326
+ ;// ./web/download_manager.js
28327
+
27857
28328
  function download(blobUrl, filename) {
27858
28329
  const a = document.createElement("a");
27859
28330
  if (!a.click) {
@@ -27898,6 +28369,8 @@ class DownloadManager {
27898
28369
  download(blobUrl, filename);
27899
28370
  }
27900
28371
  }
28372
+
28373
+ ;// ./web/event_utils.js
27901
28374
  const WaitOnType = {
27902
28375
  EVENT: "event",
27903
28376
  TIMEOUT: "timeout"
@@ -27907,7 +28380,7 @@ async function waitOnEventOrTimeout({
27907
28380
  name,
27908
28381
  delay = 0
27909
28382
  }) {
27910
- if (typeof target !== "object" || false || !(Number.isInteger(delay) && delay >= 0)) {
28383
+ if (typeof target !== "object" || !(name && typeof name === "string") || !(Number.isInteger(delay) && delay >= 0)) {
27911
28384
  throw new Error("waitOnEventOrTimeout - invalid parameters.");
27912
28385
  }
27913
28386
  const {
@@ -28003,6 +28476,22 @@ class EventBus {
28003
28476
  }
28004
28477
  }
28005
28478
  }
28479
+ class FirefoxEventBus extends EventBus {
28480
+ #externalServices;
28481
+ #globalEventNames;
28482
+ #isInAutomation;
28483
+ constructor(globalEventNames, externalServices, isInAutomation) {
28484
+ super();
28485
+ this.#globalEventNames = globalEventNames;
28486
+ this.#externalServices = externalServices;
28487
+ this.#isInAutomation = isInAutomation;
28488
+ }
28489
+ dispatch(eventName, data) {
28490
+ throw new Error("Not implemented: FirefoxEventBus.dispatch");
28491
+ }
28492
+ }
28493
+
28494
+ ;// ./node_modules/@fluent/bundle/esm/types.js
28006
28495
  class FluentType {
28007
28496
  constructor(value) {
28008
28497
  this.value = value;
@@ -28098,6 +28587,7 @@ class FluentDateTime extends FluentType {
28098
28587
  return this.value.toString();
28099
28588
  }
28100
28589
  }
28590
+ ;// ./node_modules/@fluent/bundle/esm/resolver.js
28101
28591
 
28102
28592
  const MAX_PLACEABLES = 100;
28103
28593
  const FSI = "\u2068";
@@ -28317,6 +28807,7 @@ function resolvePattern(scope, value) {
28317
28807
  }
28318
28808
  return resolveComplexPattern(scope, value);
28319
28809
  }
28810
+ ;// ./node_modules/@fluent/bundle/esm/scope.js
28320
28811
  class Scope {
28321
28812
  constructor(bundle, errors, args) {
28322
28813
  this.dirty = new WeakSet();
@@ -28345,6 +28836,7 @@ class Scope {
28345
28836
  return cache[id];
28346
28837
  }
28347
28838
  }
28839
+ ;// ./node_modules/@fluent/bundle/esm/builtins.js
28348
28840
 
28349
28841
  function values(opts, allowed) {
28350
28842
  const unwrapped = Object.create(null);
@@ -28385,6 +28877,7 @@ function DATETIME(args, opts) {
28385
28877
  }
28386
28878
  throw new TypeError("Invalid argument to DATETIME");
28387
28879
  }
28880
+ ;// ./node_modules/@fluent/bundle/esm/memoizer.js
28388
28881
  const cache = new Map();
28389
28882
  function getMemoizerForLocale(locales) {
28390
28883
  const stringLocale = Array.isArray(locales) ? locales.join(" ") : locales;
@@ -28395,6 +28888,7 @@ function getMemoizerForLocale(locales) {
28395
28888
  }
28396
28889
  return memoizer;
28397
28890
  }
28891
+ ;// ./node_modules/@fluent/bundle/esm/bundle.js
28398
28892
 
28399
28893
 
28400
28894
 
@@ -28463,6 +28957,7 @@ class FluentBundle {
28463
28957
  }
28464
28958
  }
28465
28959
  }
28960
+ ;// ./node_modules/@fluent/bundle/esm/resource.js
28466
28961
  const RE_MESSAGE_START = /^(-?[a-zA-Z][\w-]*) *= */gm;
28467
28962
  const RE_ATTRIBUTE_START = /\.([a-zA-Z][\w-]*) *= */y;
28468
28963
  const RE_VARIANT_START = /\*?\[/y;
@@ -28841,6 +29336,11 @@ class Indent {
28841
29336
  this.length = length;
28842
29337
  }
28843
29338
  }
29339
+ ;// ./node_modules/@fluent/bundle/esm/index.js
29340
+
29341
+
29342
+
29343
+ ;// ./node_modules/@fluent/dom/esm/overlay.js
28844
29344
  const reOverlay = /<|&#?\w+;/;
28845
29345
  const TEXT_LEVEL_ELEMENTS = {
28846
29346
  "http://www.w3.org/1999/xhtml": ["em", "strong", "small", "s", "cite", "q", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "bdi", "bdo", "span", "br", "wbr"]
@@ -28991,6 +29491,7 @@ function shallowPopulateUsing(fromElement, toElement) {
28991
29491
  overlayAttributes(fromElement, toElement);
28992
29492
  return toElement;
28993
29493
  }
29494
+ ;// ./node_modules/cached-iterable/src/cached_iterable.mjs
28994
29495
  class CachedIterable extends Array {
28995
29496
  static from(iterable) {
28996
29497
  if (iterable instanceof this) {
@@ -28999,6 +29500,42 @@ class CachedIterable extends Array {
28999
29500
  return new this(iterable);
29000
29501
  }
29001
29502
  }
29503
+ ;// ./node_modules/cached-iterable/src/cached_sync_iterable.mjs
29504
+
29505
+ class CachedSyncIterable extends CachedIterable {
29506
+ constructor(iterable) {
29507
+ super();
29508
+ if (Symbol.iterator in Object(iterable)) {
29509
+ this.iterator = iterable[Symbol.iterator]();
29510
+ } else {
29511
+ throw new TypeError("Argument must implement the iteration protocol.");
29512
+ }
29513
+ }
29514
+ [Symbol.iterator]() {
29515
+ const cached = this;
29516
+ let cur = 0;
29517
+ return {
29518
+ next() {
29519
+ if (cached.length <= cur) {
29520
+ cached.push(cached.iterator.next());
29521
+ }
29522
+ return cached[cur++];
29523
+ }
29524
+ };
29525
+ }
29526
+ touchNext(count = 1) {
29527
+ let idx = 0;
29528
+ while (idx++ < count) {
29529
+ const last = this[this.length - 1];
29530
+ if (last && last.done) {
29531
+ break;
29532
+ }
29533
+ this.push(this.iterator.next());
29534
+ }
29535
+ return this[this.length - 1];
29536
+ }
29537
+ }
29538
+ ;// ./node_modules/cached-iterable/src/cached_async_iterable.mjs
29002
29539
 
29003
29540
  class CachedAsyncIterable extends CachedIterable {
29004
29541
  constructor(iterable) {
@@ -29035,6 +29572,10 @@ class CachedAsyncIterable extends CachedIterable {
29035
29572
  return this[this.length - 1];
29036
29573
  }
29037
29574
  }
29575
+ ;// ./node_modules/cached-iterable/src/index.mjs
29576
+
29577
+
29578
+ ;// ./node_modules/@fluent/dom/esm/localization.js
29038
29579
 
29039
29580
  class Localization {
29040
29581
  constructor(resourceIds = [], generateBundles) {
@@ -29149,6 +29690,7 @@ function keysFromBundle(method, bundle, keys, translations) {
29149
29690
  });
29150
29691
  return missingIds;
29151
29692
  }
29693
+ ;// ./node_modules/@fluent/dom/esm/dom_localization.js
29152
29694
 
29153
29695
 
29154
29696
  const L10NID_ATTR_NAME = "data-l10n-id";
@@ -29311,6 +29853,10 @@ class DOMLocalization extends Localization {
29311
29853
  };
29312
29854
  }
29313
29855
  }
29856
+ ;// ./node_modules/@fluent/dom/esm/index.js
29857
+
29858
+
29859
+ ;// ./web/l10n.js
29314
29860
  class L10n {
29315
29861
  #dir;
29316
29862
  #elements;
@@ -29402,6 +29948,9 @@ class L10n {
29402
29948
  return ["ar", "he", "fa", "ps", "ur"].includes(shortCode);
29403
29949
  }
29404
29950
  }
29951
+ const GenericL10n = null;
29952
+
29953
+ ;// ./web/genericl10n.js
29405
29954
 
29406
29955
 
29407
29956
 
@@ -29412,7 +29961,7 @@ function PLATFORM() {
29412
29961
  isLinux,
29413
29962
  isMac,
29414
29963
  isWindows
29415
- } = FeatureTest.platform;
29964
+ } = FeatureTest$1.platform;
29416
29965
  if (isLinux) {
29417
29966
  return "linux";
29418
29967
  }
@@ -29505,6 +30054,8 @@ class genericl10n_GenericL10n extends L10n {
29505
30054
  }
29506
30055
  }
29507
30056
 
30057
+ ;// ./web/pdf_history.js
30058
+
29508
30059
 
29509
30060
 
29510
30061
  const HASH_CHANGE_TIMEOUT = 1000;
@@ -29753,7 +30304,7 @@ class PDFHistory {
29753
30304
  if (this._destination.hash === position.hash) {
29754
30305
  return;
29755
30306
  }
29756
- if (!this._destination.page && (this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {
30307
+ if (!this._destination.page && (POSITION_UPDATED_THRESHOLD <= 0 || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {
29757
30308
  return;
29758
30309
  }
29759
30310
  let forceReplace = false;
@@ -29836,10 +30387,10 @@ class PDFHistory {
29836
30387
  if (this._popStateInProgress) {
29837
30388
  return;
29838
30389
  }
29839
- if (this._isPagesLoaded && this._destination && !this._destination.page) {
30390
+ if (POSITION_UPDATED_THRESHOLD > 0 && this._isPagesLoaded && this._destination && !this._destination.page) {
29840
30391
  this._numPositionUpdates++;
29841
30392
  }
29842
- {
30393
+ if (UPDATE_VIEWAREA_TIMEOUT > 0) {
29843
30394
  this._updateViewareaTimeout = setTimeout(() => {
29844
30395
  if (!this._popStateInProgress) {
29845
30396
  this.#tryPushCurrentPosition(true);
@@ -29974,6 +30525,8 @@ function isDestArraysEqual(firstDest, secondDest) {
29974
30525
  return true;
29975
30526
  }
29976
30527
 
30528
+ ;// ./web/annotation_editor_layer_builder.js
30529
+
29977
30530
 
29978
30531
  class AnnotationEditorLayerBuilder {
29979
30532
  #annotationLayer = null;
@@ -30065,6 +30618,8 @@ class AnnotationEditorLayerBuilder {
30065
30618
  this.annotationEditorLayer.pause(false);
30066
30619
  }
30067
30620
  }
30621
+
30622
+ ;// ./web/app_options.js
30068
30623
  {
30069
30624
  var compatParams = new Map();
30070
30625
  const {
@@ -30512,6 +31067,8 @@ class AppOptions {
30512
31067
  }
30513
31068
  }
30514
31069
 
31070
+ ;// ./web/autolinker.js
31071
+
30515
31072
 
30516
31073
  function DOMRectToPDF({
30517
31074
  width,
@@ -30638,6 +31195,8 @@ class Autolinker {
30638
31195
  }
30639
31196
  }
30640
31197
 
31198
+ ;// ./web/base_pdf_page_view.js
31199
+
30641
31200
 
30642
31201
  class BasePDFPageView {
30643
31202
  #loadingId = null;
@@ -30841,6 +31400,8 @@ class BasePDFPageView {
30841
31400
  }
30842
31401
  }
30843
31402
 
31403
+ ;// ./web/draw_layer_builder.js
31404
+
30844
31405
  class DrawLayerBuilder {
30845
31406
  #drawLayer = null;
30846
31407
  constructor(options) {
@@ -30872,6 +31433,8 @@ class DrawLayerBuilder {
30872
31433
  }
30873
31434
  }
30874
31435
 
31436
+ ;// ./web/pdf_page_detail_view.js
31437
+
30875
31438
 
30876
31439
 
30877
31440
  class PDFPageDetailView extends BasePDFPageView {
@@ -31080,6 +31643,8 @@ class PDFPageDetailView extends BasePDFPageView {
31080
31643
  }
31081
31644
  }
31082
31645
 
31646
+ ;// ./web/struct_tree_layer_builder.js
31647
+
31083
31648
 
31084
31649
  const PDF_ROLE_TO_HTML_ROLE = {
31085
31650
  Document: null,
@@ -31127,7 +31692,7 @@ const MathMLElements = new Set(["math", "merror", "mfrac", "mi", "mmultiscripts"
31127
31692
  const MathMLNamespace = "http://www.w3.org/1998/Math/MathML";
31128
31693
  class MathMLSanitizer {
31129
31694
  static get sanitizer() {
31130
- return shadow(this, "sanitizer", FeatureTest.isSanitizerSupported ? new Sanitizer({
31695
+ return shadow(this, "sanitizer", FeatureTest$1.isSanitizerSupported ? new Sanitizer({
31131
31696
  elements: [...MathMLElements].map(name => ({
31132
31697
  name,
31133
31698
  namespace: MathMLNamespace
@@ -31313,6 +31878,8 @@ class StructTreeLayerBuilder {
31313
31878
  }
31314
31879
  }
31315
31880
 
31881
+ ;// ./web/text_accessibility.js
31882
+
31316
31883
  class TextAccessibilityManager {
31317
31884
  #enabled = false;
31318
31885
  #textChildren = null;
@@ -31325,7 +31892,7 @@ class TextAccessibilityManager {
31325
31892
  const rect1 = e1.getBoundingClientRect();
31326
31893
  const rect2 = e2.getBoundingClientRect();
31327
31894
  if (rect1.width === 0 && rect1.height === 0) {
31328
- return 1;
31895
+ return +1;
31329
31896
  }
31330
31897
  if (rect2.width === 0 && rect2.height === 0) {
31331
31898
  return -1;
@@ -31340,7 +31907,7 @@ class TextAccessibilityManager {
31340
31907
  return -1;
31341
31908
  }
31342
31909
  if (mid2 <= top1 && mid1 >= bot2) {
31343
- return 1;
31910
+ return +1;
31344
31911
  }
31345
31912
  const centerX1 = rect1.x + rect1.width / 2;
31346
31913
  const centerX2 = rect2.x + rect2.width / 2;
@@ -31461,6 +32028,8 @@ class TextAccessibilityManager {
31461
32028
  return id;
31462
32029
  }
31463
32030
  }
32031
+
32032
+ ;// ./web/text_highlighter.js
31464
32033
  class TextHighlighter {
31465
32034
  #eventAbortController = null;
31466
32035
  constructor({
@@ -31565,6 +32134,7 @@ class TextHighlighter {
31565
32134
  const highlightAll = findController.state.highlightAll;
31566
32135
  let prevEnd = null;
31567
32136
  const infinity = {
32137
+ divIdx: -1,
31568
32138
  offset: undefined
31569
32139
  };
31570
32140
  function beginText(begin, className) {
@@ -31686,6 +32256,8 @@ class TextHighlighter {
31686
32256
  }
31687
32257
  }
31688
32258
 
32259
+ ;// ./web/text_layer_builder.js
32260
+
31689
32261
 
31690
32262
  class TextLayerBuilder {
31691
32263
  #enablePermissions = false;
@@ -31884,6 +32456,8 @@ class TextLayerBuilder {
31884
32456
  }
31885
32457
  }
31886
32458
 
32459
+ ;// ./web/xfa_layer_builder.js
32460
+
31887
32461
  class XfaLayerBuilder {
31888
32462
  constructor({
31889
32463
  pdfPage,
@@ -31951,6 +32525,8 @@ class XfaLayerBuilder {
31951
32525
  }
31952
32526
  }
31953
32527
 
32528
+ ;// ./web/pdf_page_view.js
32529
+
31954
32530
 
31955
32531
 
31956
32532
 
@@ -32244,6 +32820,7 @@ class PDFPageView extends BasePDFPageView {
32244
32820
  this._textHighlighter.enable();
32245
32821
  }
32246
32822
  async #injectLinkAnnotations(textLayerPromise) {
32823
+ let error = null;
32247
32824
  try {
32248
32825
  await textLayerPromise;
32249
32826
  if (!this.annotationLayer) {
@@ -32252,6 +32829,7 @@ class PDFPageView extends BasePDFPageView {
32252
32829
  await this.annotationLayer.injectLinkAnnotations(Autolinker.processLinks(this));
32253
32830
  } catch (ex) {
32254
32831
  console.error("#injectLinkAnnotations:", ex);
32832
+ error = ex;
32255
32833
  }
32256
32834
  }
32257
32835
  _resetCanvas() {
@@ -32751,6 +33329,8 @@ class PDFPageView extends BasePDFPageView {
32751
33329
  }
32752
33330
  }
32753
33331
 
33332
+ ;// ./web/generic_scripting.js
33333
+
32754
33334
  async function docProperties(pdfDocument) {
32755
33335
  const url = "",
32756
33336
  baseUrl = "";
@@ -32797,6 +33377,8 @@ class GenericScripting {
32797
33377
  }
32798
33378
  }
32799
33379
 
33380
+ ;// ./web/pdf_scripting_manager.js
33381
+
32800
33382
 
32801
33383
  class PDFScriptingManager {
32802
33384
  #closeCapability = null;
@@ -33160,6 +33742,8 @@ class PDFScriptingManager {
33160
33742
  }
33161
33743
  }
33162
33744
 
33745
+ ;// ./web/pdf_scripting_manager.component.js
33746
+
33163
33747
 
33164
33748
  class PDFScriptingManagerComponents extends PDFScriptingManager {
33165
33749
  constructor(options) {
@@ -33179,6 +33763,8 @@ class PDFScriptingManagerComponents extends PDFScriptingManager {
33179
33763
  }
33180
33764
  }
33181
33765
 
33766
+ ;// ./web/pdf_rendering_queue.js
33767
+
33182
33768
 
33183
33769
  const CLEANUP_TIMEOUT = 30000;
33184
33770
  class PDFRenderingQueue {
@@ -33302,6 +33888,8 @@ class PDFRenderingQueue {
33302
33888
  }
33303
33889
  }
33304
33890
 
33891
+ ;// ./web/pdf_viewer.js
33892
+
33305
33893
 
33306
33894
 
33307
33895
 
@@ -35004,6 +35592,8 @@ class PDFViewer {
35004
35592
  }
35005
35593
  }
35006
35594
 
35595
+ ;// ./web/pdf_single_page_viewer.js
35596
+
35007
35597
 
35008
35598
  class PDFSinglePageViewer extends PDFViewer {
35009
35599
  _resetView() {
@@ -35017,6 +35607,8 @@ class PDFSinglePageViewer extends PDFViewer {
35017
35607
  _updateSpreadMode() {}
35018
35608
  }
35019
35609
 
35610
+ ;// ./web/pdf_viewer.component.js
35611
+
35020
35612
 
35021
35613
 
35022
35614
 
@@ -35137,6 +35729,39 @@ function getDefaultExportFromCjs (x) {
35137
35729
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
35138
35730
  }
35139
35731
 
35732
+ function getDefaultExportFromNamespaceIfPresent (n) {
35733
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
35734
+ }
35735
+
35736
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
35737
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
35738
+ }
35739
+
35740
+ function getAugmentedNamespace(n) {
35741
+ if (n.__esModule) return n;
35742
+ var f = n.default;
35743
+ if (typeof f == "function") {
35744
+ var a = function a () {
35745
+ if (this instanceof a) {
35746
+ return Reflect.construct(f, arguments, this.constructor);
35747
+ }
35748
+ return f.apply(this, arguments);
35749
+ };
35750
+ a.prototype = f.prototype;
35751
+ } else a = {};
35752
+ Object.defineProperty(a, '__esModule', {value: true});
35753
+ Object.keys(n).forEach(function (k) {
35754
+ var d = Object.getOwnPropertyDescriptor(n, k);
35755
+ Object.defineProperty(a, k, d.get ? d : {
35756
+ enumerable: true,
35757
+ get: function () {
35758
+ return n[k];
35759
+ }
35760
+ });
35761
+ });
35762
+ return a;
35763
+ }
35764
+
35140
35765
  /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
35141
35766
 
35142
35767
  var axios_1;
@@ -35145,6 +35770,7 @@ var hasRequiredAxios;
35145
35770
  function requireAxios () {
35146
35771
  if (hasRequiredAxios) return axios_1;
35147
35772
  hasRequiredAxios = 1;
35773
+ 'use strict';
35148
35774
 
35149
35775
  /**
35150
35776
  * Create a bound version of a function with a specified `this` context
@@ -36642,7 +37268,7 @@ function requireAxios () {
36642
37268
  function stringifySafely(rawValue, parser, encoder) {
36643
37269
  if (utils$1.isString(rawValue)) {
36644
37270
  try {
36645
- (0, JSON.parse)(rawValue);
37271
+ (parser || JSON.parse)(rawValue);
36646
37272
  return utils$1.trim(rawValue);
36647
37273
  } catch (e) {
36648
37274
  if (e.name !== 'SyntaxError') {
@@ -37855,7 +38481,7 @@ function requireAxios () {
37855
38481
  const streamChunk = function* (chunk, chunkSize) {
37856
38482
  let len = chunk.byteLength;
37857
38483
 
37858
- if (len < chunkSize) {
38484
+ if (!chunkSize || len < chunkSize) {
37859
38485
  yield chunk;
37860
38486
  return;
37861
38487
  }
@@ -39064,7 +39690,15 @@ var axios = /*@__PURE__*/getDefaultExportFromCjs(axiosExports);
39064
39690
  ////////////////////////////////////////////////////////////////////////
39065
39691
  const Parameters = {
39066
39692
  endpoints: {
39067
- graphQL: "https://dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com/graphql"}};
39693
+ graphQL: "https://dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com/graphql",
39694
+ wssHost: "dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com",
39695
+ wssRealTime: 'wss://dypxviim4zgwtpev7valhchaem.appsync-realtime-api.eu-west-2.amazonaws.com/graphql'
39696
+ },
39697
+ buckets: {
39698
+ region: "eu-west-2",
39699
+ clearing: "lon-files-clearing",
39700
+ },
39701
+ };
39068
39702
 
39069
39703
  // Construct all mutations for a template element.
39070
39704
  const createElement = element => {
@@ -39188,6 +39822,23 @@ const swapRoles = (roleId1, roleId2) => {
39188
39822
  })
39189
39823
  }`;
39190
39824
  };
39825
+ const getTemplateRoles = (id) => {
39826
+ return `
39827
+ query LDVGetTemplate {
39828
+ template(id: "${id}") {
39829
+ roles{
39830
+ id
39831
+ name
39832
+ roleType
39833
+ signerIndex
39834
+ ordinal
39835
+ signerParent
39836
+ experience
39837
+ }
39838
+ }
39839
+ }
39840
+ `;
39841
+ };
39191
39842
 
39192
39843
  class LsDocumentAdapter {
39193
39844
  endpoint;
@@ -39369,14 +40020,10 @@ const getGroupData = (id) => {
39369
40020
 
39370
40021
  const lsDocumentViewerCss = () => `*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}.left-slot-wrapper{position:fixed;top:0.375rem;left:0.675rem;z-index:2000}slot{justify-content:center;align-items:center;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content;background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.right-slot-wrapper{position:fixed;top:0.375rem;right:0.675rem;z-index:2000}.validation-tag-wrapper{position:fixed;top:0.375rem;right:0.375rem;z-index:2000}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{position:relative;border-radius:1rem;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%;z-index:1000;left:0;top:0}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{border:1px gray solid;width:29.375rem;min-width:24.375rem;padding:0.25rem;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.compose-toolbox{display:flex;flex-direction:column;width:100%;height:100%;overflow:none;border-radius:0;border:none;background:white;padding:0.25rem}.recipients-box{position:relative;display:flex;flex-direction:column;gap:0.75rem;overflow-y:auto;width:calc(100% + 0.25rem);padding:0.75rem 0.25rem 0.25rem 0.25rem}.scroll-gradient-top{position:absolute;top:5.9375rem;left:0;width:100%;height:1rem;background:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));pointer-events:none;z-index:100}.scroll-gradient-bottom{position:absolute;bottom:1rem;left:0.75rem;width:calc(100% - 1.5rem);height:1rem;background:linear-gradient(to top, white, rgba(255, 255, 255, 0));pointer-events:none;z-index:100}.ls-editor-infobox{padding:0.125rem 0.5rem 0.125rem 0.5rem}#pdf-canvas{top:0px;left:0px;width:6.25rem;height:6.25rem;box-shadow:0 0.5rem 2rem 0 rgba(0, 0, 0, 0.12)}#ls-mid-area{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:100vw;height:100%}.document-frame-wrapper{display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:visible;max-height:100%;width:100vw;overflow:scroll;padding:5rem 23.75rem 2rem 23.75rem}#ls-document-frame{position:relative;height:98vh;margin-right:auto;margin-left:auto}.prevButton{position:relative;bottom:1.875rem}.nextButton{position:relative;bottom:1.875rem}.fieldBox{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:transparent;border:1px rgba(71, 71, 71, 0.716) dashed}#ls-editor-form{display:flex;width:100vw;height:calc(100vh - 2.25rem);position:relative;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.hidden{visibility:hidden;display:none;width:0px}.toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.toolbox-section-description{color:var(--gray-80, #5e6066);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.fields-box{display:flex;flex-direction:column;gap:0.75rem}.page-header{display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.properties-header{display:flex;padding:1rem;gap:0.75rem;align-items:center;border-bottom:1px solid var(--gray-20, #edeff2)}.properties-header-title{color:var(--gray-100, #45484d);width:100%;font-size:1.5rem;font-style:normal;font-weight:500;line-height:2rem;}.properties-header-icon{display:flex;padding:0.5rem;border-radius:0.625rem;background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:2.25rem}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.field-properties-outer{position:relative;height:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
39371
40022
 
39372
- GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@5.4.449/build/pdf.worker.min.mjs`;
39373
- const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentViewer extends H {
39374
- constructor(registerHost) {
39375
- super();
39376
- if (registerHost !== false) {
39377
- this.__registerHost();
39378
- }
39379
- this.__attachShadow();
40023
+ GlobalWorkerOptions$1.workerSrc = `https://unpkg.com/pdfjs-dist@5.4.449/build/pdf.worker.min.mjs`;
40024
+ const LsDocumentViewer = class {
40025
+ constructor(hostRef) {
40026
+ registerInstance(this, hostRef);
39380
40027
  this.pageRendered = createEvent(this, "pageRendered", 7);
39381
40028
  this.pageChange = createEvent(this, "pageChange", 7);
39382
40029
  this.selectFields = createEvent(this, "selectFields", 7);
@@ -39385,7 +40032,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39385
40032
  this.validate = createEvent(this, "validate", 7);
39386
40033
  this.addParticipant = createEvent(this, "addParticipant", 7);
39387
40034
  }
39388
- get component() { return this; }
40035
+ get component() { return getElement(this); }
39389
40036
  isPageRendering;
39390
40037
  pdfDocument;
39391
40038
  pageNumPending = null;
@@ -39567,7 +40214,9 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39567
40214
  addParticpantHandler(event) {
39568
40215
  const defaultExperience = this.groupInfo.experienceConnection.experiences.find(x => x.defaultExperience === true);
39569
40216
  const parent = event.detail.signerIndex > 99 ? this._template.roles.find(r => r.signerIndex === event.detail.signerIndex % 100) : null;
39570
- const newSignerIndex = Math.max(...this._template.roles.filter(r => r.roleType !== 'WITNESS').map(r => r.signerIndex)) + 1;
40217
+ const newSignerIndex = event.detail.type === 'WITNESS' ?
40218
+ parent.signerIndex + 100 :
40219
+ Math.max(...this._template.roles.filter(r => r.roleType !== 'WITNESS').map(r => r.signerIndex)) + 1;
39571
40220
  const data = [
39572
40221
  {
39573
40222
  action: 'create',
@@ -39575,8 +40224,8 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39575
40224
  id: btoa('rol' + crypto.randomUUID()),
39576
40225
  name: event.detail.name ? event.detail.name : 'Signer ' + (this._template.roles.length + 1),
39577
40226
  roleType: event.detail.type,
39578
- signerIndex: event.detail.signerIndex ? event.detail.signerIndex : (event.detail.type === 'WITNESS' ? 100 + parent.signerIndex : this._template.roles.length === 0 ? 1 : newSignerIndex),
39579
- ordinal: event.detail.type === 'WITNESS' ? parent.ordinal + 1 : this._template.roles.length + 1,
40227
+ signerIndex: event.detail.signerIndex ? event.detail.signerIndex : (event.detail.type === 'WITNESS' ? 100 + parent?.signerIndex : this._template.roles.length === 0 ? 1 : newSignerIndex),
40228
+ ordinal: event.detail.type === 'WITNESS' ? parent?.ordinal + 1 : this._template.roles.length + 1,
39580
40229
  signerParent: event.detail.parent,
39581
40230
  experience: defaultExperience.id,
39582
40231
  templateId: this._template.id,
@@ -39776,7 +40425,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39776
40425
  }
39777
40426
  }
39778
40427
  loadAndRender(src) {
39779
- getDocument(src).promise.then((pdfDocument) => {
40428
+ getDocument$1(src).promise.then((pdfDocument) => {
39780
40429
  this.pdfDocument = pdfDocument;
39781
40430
  this.renderPage(this.pageNum);
39782
40431
  });
@@ -39799,7 +40448,13 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39799
40448
  this.unselect();
39800
40449
  }
39801
40450
  if (getApiType(update.data) === 'element') {
39802
- if (update.action === 'create') ;
40451
+ if (update.action === 'create') {
40452
+ // const newData = { ...update.data, page: this.pageNum };
40453
+ // addField.bind(this)(this.component.shadowRoot.getElementById('ls-document-frame'), newData);
40454
+ //const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id) as HTMLLsEditorFieldElement;
40455
+ //this.selected = [newField];
40456
+ //this.selectFields.emit([newData as LSApiElement]);
40457
+ }
39803
40458
  else if (update.action === 'update') {
39804
40459
  const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
39805
40460
  if (fi) {
@@ -39921,7 +40576,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39921
40576
  return this.filtertoolbox === null || this.filtertoolbox.split('|').includes(fieldFormType);
39922
40577
  }
39923
40578
  render() {
39924
- return (h(Host, { key: '1c2056f695e2524d4528d48d275569f86ada5dde' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: '604a97119f77b1a467dac7d0fa19225d5323a158' }), h("div", { key: 'a29bfd38955a3bf60370a5a3f96f5dd9288437b2', class: "page-header" }, h("div", { key: 'aea8ff00971dbef53b97130acb5bf3c90bf628ed', class: 'left-slot-wrapper' }, h("slot", { key: 'e9e381f10a9d63e50a95c7e1082ea216d8381550', name: "left-button" })), h("div", { key: '67e835295874fbb28d32a4314988552ff2c45ca4', class: 'right-slot-wrapper' }, h("slot", { key: '75b2ff60984537335aa2e182e1e226d81d80f442', name: "right-button" })), this.mode === 'editor' && (h("div", { key: '2361287fa8d93d6f10491e733cc73aa49dc3a583' }, h("span", { key: '4247dcce8529f094cd476152b1ffb434fe3421c4', class: "header-text-1" }, "Template Creation"), h("span", { key: '99940da3e2a59b65abf762925ac90ef05146dce7' }, "/"), h("span", { key: 'fcb3cd83693fa978699a0e548bfef0816c67f734', class: "header-text-2" }, this._template?.title))), this.mode === 'compose' && (h("div", { key: '365595a842926021a4a04122b89e0422796e2d7b', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, h("span", { key: 'c23263e87e2cf30119eb2e995eae9cdb827be6b8', class: "header-text-1" }, "Compose")))), this.mode === 'editor' && (h("div", { key: '4c2db6783aef2b9856643a1e07fbf14308e1e556', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: '2876ba1dec573b8ae5e31db11359a68e63f59ebf', validationErrors: this.validationErrors }))), h("form", { key: 'af9ffc26ade5a1b310c431996e931e5cfa4f5123', id: "ls-editor-form" }, this.mode !== 'preview' ? (h("div", { id: "ls-left-box", class: "leftBox", style: this.mode === 'compose' ? { borderRadius: '1.75rem' } : {} }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, this.mode === 'editor' && (h("ls-feature-column", { mode: this.mode, onManage: manager => {
40579
+ return (h(Host, { key: 'f475e38d0f4cc1dee2d9428c7b299d701e066193' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: 'e7247e3711f9fa0d05b24386c20bf4f912862ca7' }), h("div", { key: 'aa074061aeabdb6783bd9d00c68788770197dcff', class: "page-header" }, h("div", { key: 'eb2899d8b4a7507d3b90a6e15d3801f80c04893b', class: 'left-slot-wrapper' }, h("slot", { key: '45817f46a4f3f83d838f67a0bcf574f6d52a0c71', name: "left-button" })), h("div", { key: '70eef4435d2414975097361f6a261ac0fe5665ef', class: 'right-slot-wrapper' }, h("slot", { key: '145e42499a96cac6eb8e4c828ff2630207e9f45b', name: "right-button" })), this.mode === 'editor' && (h("div", { key: '2cb6950506f683c0c036ae74fb0a4dc6a8a0aa37' }, h("span", { key: 'e542f150f8ef8aefadf61e307502c9600f186b7c', class: "header-text-1" }, "Template Creation"), h("span", { key: '921cd6937909b3f5c6c4609ea88decf80840f04a' }, "/"), h("span", { key: '8672b0fe14e445fb9f6b595c28085c41222b6ba5', class: "header-text-2" }, this._template?.title))), this.mode === 'compose' && (h("div", { key: 'df9f3269759a1fe49c998e37c89c858e96cdbffd', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, h("span", { key: 'a1995b15c4d5ab720887f69cf3696b3064975129', class: "header-text-1" }, "Compose")))), this.mode === 'editor' && (h("div", { key: 'dab9646bbe38dad541e07ac60db4380612b68226', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: '9979aedf80808b04d888c08f8ced1b93e7ee0daa', validationErrors: this.validationErrors }))), h("form", { key: 'c330c06979e69d51c505189e5d3dfa3325019578', id: "ls-editor-form" }, this.mode !== 'preview' ? (h("div", { id: "ls-left-box", class: "leftBox", style: this.mode === 'compose' ? { borderRadius: '1.75rem' } : {} }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, this.mode === 'editor' && (h("ls-feature-column", { mode: this.mode, onManage: manager => {
39925
40580
  if (manager.detail === 'document') {
39926
40581
  var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
39927
40582
  documentManager.template = this._template;
@@ -39939,290 +40594,14 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
39939
40594
  this._recipients.map(recipient => (h("ls-recipient-card", { recipient: recipient, activeRecipient: this.signer, filtertoolbox: this.filtertoolbox, template: this._template, validationErrors: this.validationErrors, fieldTypeSelected: this.fieldTypeSelected, "data-signer-index": recipient.signerIndex }))), h("slot", { name: 'recipient-panel' })))), !this.displayTable && (h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, h("div", { class: 'properties-header' }, h("div", { class: 'properties-header-icon' }, h("ls-icon", { name: "pre-filled-content" })), h("h1", { class: 'properties-header-title' }, "Field Properties"), h("button", { class: 'tertiaryGrey', onClick: e => {
39940
40595
  this.selected = [];
39941
40596
  e.preventDefault();
39942
- }, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: 'ca15ea5f5993d15aed4914001e1101876cc48ff7', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo, mode: this.mode }), h("div", { key: '9fa2020d20f3c6458e3a35ecdfb39968478f3418', id: "ls-mid-area" }, h("div", { key: '3210f5fe54621a53029f12967beed5a05dd9542f', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '762ce80ecd562548ae072ce204a0914bb384d6d3', id: "ls-document-frame" }, h("canvas", { key: '269b6ad74b91a525c4bfd8801c12e1bb67a847b6', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: '4925af7fdb05e8a2b6610ba26e817a0342d0f88c', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '208592b96a91e7c6de17c9797d5d64a38385801b', id: "ls-box-selector" }))), h("ls-statusbar", { key: '03b7a93c26576b9a9ef8e7446f1c39f7ef3ea6c0', editor: this, page: this.pageNum, pageCount: this.pageCount })))), h("ls-tooltip", { key: '6bb3c0e2bdf005cb491ab71e7f0497a41a9ebc9f', id: "ls-tooltip-master" })));
40597
+ }, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '5e88f4b6f82acfba6b8248ff99ca4b35bd2b5683', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo, mode: this.mode }), h("div", { key: '88c3d0cc16139353015a326b5145dbcb6932145e', id: "ls-mid-area" }, h("div", { key: '7a374edfa2f0d6db84238027453ad612ba3c14ca', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '6f7e841ee47782f4e7ac3665c55f72f5e6d382f2', id: "ls-document-frame" }, h("canvas", { key: 'c7ec53ef7095b2ee526521eb6b13a5691ac0e33b', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: '9be64e172250a5750d0f6dd17af871eb4e5ee432', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '63ef85784a5515d098a8fbac0e089af2248119ad', id: "ls-box-selector" }))), h("ls-statusbar", { key: '989d2be8b88fac0d78ec75537d44c503a8b96c10', editor: this, page: this.pageNum, pageCount: this.pageCount })))), h("ls-tooltip", { key: '342d8a48a6bbf7b8633e346a95ad621782a30b04', id: "ls-tooltip-master" })));
39943
40598
  }
39944
40599
  static get watchers() { return {
39945
40600
  "mode": ["modeHandler"],
39946
40601
  "zoom": ["zoomChanged"]
39947
40602
  }; }
39948
- static get style() { return lsDocumentViewerCss(); }
39949
- }, [769, "ls-document-viewer", {
39950
- "template": [1],
39951
- "token": [1],
39952
- "userpool": [1],
39953
- "endpoint": [1],
39954
- "templateid": [1],
39955
- "recipients": [1],
39956
- "_recipients": [16],
39957
- "zoom": [1026],
39958
- "pageNum": [1026, "page-num"],
39959
- "pageCount": [1026, "page-count"],
39960
- "signer": [1026],
39961
- "groupInfo": [1032, "group-info"],
39962
- "mode": [1],
39963
- "manager": [1025],
39964
- "displayTable": [1028, "display-table"],
39965
- "filtertoolbox": [1],
39966
- "showstatusbar": [4],
39967
- "showpagepreview": [4],
39968
- "readonly": [4],
39969
- "showtableview": [4],
39970
- "toolboxFilter": [1, "toolbox-filter"],
39971
- "_template": [32],
39972
- "validationErrors": [32],
39973
- "status": [32],
39974
- "fontSize": [32],
39975
- "fontFamily": [32],
39976
- "selected": [32],
39977
- "isLoading": [32],
39978
- "fieldTypeSelected": [32],
39979
- "pageNext": [64],
39980
- "pagePrev": [64],
39981
- "unselect": [64],
39982
- "setZoom": [64]
39983
- }, [[0, "mutate", "mutateHandler"], [0, "fieldTypeSelected", "handleFieldTypeSelected"], [0, "addParticipant", "addParticpantHandler"], [0, "changeSigner", "updateSigner"], [0, "selectFields", "selectFieldsHandler"], [0, "roleChange", "roleHandler"]], {
39984
- "mode": ["modeHandler"],
39985
- "zoom": ["zoomChanged"]
39986
- }]);
39987
- function defineCustomElement$1() {
39988
- if (typeof customElements === "undefined") {
39989
- return;
39990
- }
39991
- const components = ["ls-document-viewer", "ls-document-options", "ls-editor-field", "ls-editor-table", "ls-feature-column", "ls-field-alignment", "ls-field-content", "ls-field-dimensions", "ls-field-distribute", "ls-field-footer", "ls-field-format", "ls-field-placement", "ls-field-properties", "ls-field-properties-advanced", "ls-field-properties-autosign", "ls-field-properties-container", "ls-field-properties-date", "ls-field-properties-email", "ls-field-properties-file", "ls-field-properties-general", "ls-field-properties-image", "ls-field-properties-multiple", "ls-field-properties-number", "ls-field-properties-signature", "ls-field-properties-text", "ls-field-size", "ls-field-type-display", "ls-helper-bar", "ls-icon", "ls-input-wrapper", "ls-keyboard-shortcuts", "ls-page-loader", "ls-participant-card", "ls-participant-manager", "ls-participant-select", "ls-props-section", "ls-recipient-card", "ls-recipient-manager", "ls-statusbar", "ls-toggle", "ls-toolbar", "ls-toolbox-field", "ls-tooltip", "ls-validation-manager", "ls-validation-tag"];
39992
- components.forEach(tagName => { switch (tagName) {
39993
- case "ls-document-viewer":
39994
- if (!customElements.get(transformTag(tagName))) {
39995
- customElements.define(transformTag(tagName), LsDocumentViewer$1);
39996
- }
39997
- break;
39998
- case "ls-document-options":
39999
- if (!customElements.get(transformTag(tagName))) {
40000
- defineCustomElement$J();
40001
- }
40002
- break;
40003
- case "ls-editor-field":
40004
- if (!customElements.get(transformTag(tagName))) {
40005
- defineCustomElement$I();
40006
- }
40007
- break;
40008
- case "ls-editor-table":
40009
- if (!customElements.get(transformTag(tagName))) {
40010
- defineCustomElement$H();
40011
- }
40012
- break;
40013
- case "ls-feature-column":
40014
- if (!customElements.get(transformTag(tagName))) {
40015
- defineCustomElement$G();
40016
- }
40017
- break;
40018
- case "ls-field-alignment":
40019
- if (!customElements.get(transformTag(tagName))) {
40020
- defineCustomElement$F();
40021
- }
40022
- break;
40023
- case "ls-field-content":
40024
- if (!customElements.get(transformTag(tagName))) {
40025
- defineCustomElement$E();
40026
- }
40027
- break;
40028
- case "ls-field-dimensions":
40029
- if (!customElements.get(transformTag(tagName))) {
40030
- defineCustomElement$D();
40031
- }
40032
- break;
40033
- case "ls-field-distribute":
40034
- if (!customElements.get(transformTag(tagName))) {
40035
- defineCustomElement$C();
40036
- }
40037
- break;
40038
- case "ls-field-footer":
40039
- if (!customElements.get(transformTag(tagName))) {
40040
- defineCustomElement$B();
40041
- }
40042
- break;
40043
- case "ls-field-format":
40044
- if (!customElements.get(transformTag(tagName))) {
40045
- defineCustomElement$A();
40046
- }
40047
- break;
40048
- case "ls-field-placement":
40049
- if (!customElements.get(transformTag(tagName))) {
40050
- defineCustomElement$z();
40051
- }
40052
- break;
40053
- case "ls-field-properties":
40054
- if (!customElements.get(transformTag(tagName))) {
40055
- defineCustomElement$y();
40056
- }
40057
- break;
40058
- case "ls-field-properties-advanced":
40059
- if (!customElements.get(transformTag(tagName))) {
40060
- defineCustomElement$x();
40061
- }
40062
- break;
40063
- case "ls-field-properties-autosign":
40064
- if (!customElements.get(transformTag(tagName))) {
40065
- defineCustomElement$w();
40066
- }
40067
- break;
40068
- case "ls-field-properties-container":
40069
- if (!customElements.get(transformTag(tagName))) {
40070
- defineCustomElement$v();
40071
- }
40072
- break;
40073
- case "ls-field-properties-date":
40074
- if (!customElements.get(transformTag(tagName))) {
40075
- defineCustomElement$u();
40076
- }
40077
- break;
40078
- case "ls-field-properties-email":
40079
- if (!customElements.get(transformTag(tagName))) {
40080
- defineCustomElement$t();
40081
- }
40082
- break;
40083
- case "ls-field-properties-file":
40084
- if (!customElements.get(transformTag(tagName))) {
40085
- defineCustomElement$s();
40086
- }
40087
- break;
40088
- case "ls-field-properties-general":
40089
- if (!customElements.get(transformTag(tagName))) {
40090
- defineCustomElement$r();
40091
- }
40092
- break;
40093
- case "ls-field-properties-image":
40094
- if (!customElements.get(transformTag(tagName))) {
40095
- defineCustomElement$q();
40096
- }
40097
- break;
40098
- case "ls-field-properties-multiple":
40099
- if (!customElements.get(transformTag(tagName))) {
40100
- defineCustomElement$p();
40101
- }
40102
- break;
40103
- case "ls-field-properties-number":
40104
- if (!customElements.get(transformTag(tagName))) {
40105
- defineCustomElement$o();
40106
- }
40107
- break;
40108
- case "ls-field-properties-signature":
40109
- if (!customElements.get(transformTag(tagName))) {
40110
- defineCustomElement$n();
40111
- }
40112
- break;
40113
- case "ls-field-properties-text":
40114
- if (!customElements.get(transformTag(tagName))) {
40115
- defineCustomElement$m();
40116
- }
40117
- break;
40118
- case "ls-field-size":
40119
- if (!customElements.get(transformTag(tagName))) {
40120
- defineCustomElement$l();
40121
- }
40122
- break;
40123
- case "ls-field-type-display":
40124
- if (!customElements.get(transformTag(tagName))) {
40125
- defineCustomElement$k();
40126
- }
40127
- break;
40128
- case "ls-helper-bar":
40129
- if (!customElements.get(transformTag(tagName))) {
40130
- defineCustomElement$j();
40131
- }
40132
- break;
40133
- case "ls-icon":
40134
- if (!customElements.get(transformTag(tagName))) {
40135
- defineCustomElement$i();
40136
- }
40137
- break;
40138
- case "ls-input-wrapper":
40139
- if (!customElements.get(transformTag(tagName))) {
40140
- defineCustomElement$h();
40141
- }
40142
- break;
40143
- case "ls-keyboard-shortcuts":
40144
- if (!customElements.get(transformTag(tagName))) {
40145
- defineCustomElement$g();
40146
- }
40147
- break;
40148
- case "ls-page-loader":
40149
- if (!customElements.get(transformTag(tagName))) {
40150
- defineCustomElement$f();
40151
- }
40152
- break;
40153
- case "ls-participant-card":
40154
- if (!customElements.get(transformTag(tagName))) {
40155
- defineCustomElement$e();
40156
- }
40157
- break;
40158
- case "ls-participant-manager":
40159
- if (!customElements.get(transformTag(tagName))) {
40160
- defineCustomElement$d();
40161
- }
40162
- break;
40163
- case "ls-participant-select":
40164
- if (!customElements.get(transformTag(tagName))) {
40165
- defineCustomElement$c();
40166
- }
40167
- break;
40168
- case "ls-props-section":
40169
- if (!customElements.get(transformTag(tagName))) {
40170
- defineCustomElement$b();
40171
- }
40172
- break;
40173
- case "ls-recipient-card":
40174
- if (!customElements.get(transformTag(tagName))) {
40175
- defineCustomElement$a();
40176
- }
40177
- break;
40178
- case "ls-recipient-manager":
40179
- if (!customElements.get(transformTag(tagName))) {
40180
- defineCustomElement$9();
40181
- }
40182
- break;
40183
- case "ls-statusbar":
40184
- if (!customElements.get(transformTag(tagName))) {
40185
- defineCustomElement$8();
40186
- }
40187
- break;
40188
- case "ls-toggle":
40189
- if (!customElements.get(transformTag(tagName))) {
40190
- defineCustomElement$7();
40191
- }
40192
- break;
40193
- case "ls-toolbar":
40194
- if (!customElements.get(transformTag(tagName))) {
40195
- defineCustomElement$6();
40196
- }
40197
- break;
40198
- case "ls-toolbox-field":
40199
- if (!customElements.get(transformTag(tagName))) {
40200
- defineCustomElement$5();
40201
- }
40202
- break;
40203
- case "ls-tooltip":
40204
- if (!customElements.get(transformTag(tagName))) {
40205
- defineCustomElement$4();
40206
- }
40207
- break;
40208
- case "ls-validation-manager":
40209
- if (!customElements.get(transformTag(tagName))) {
40210
- defineCustomElement$3();
40211
- }
40212
- break;
40213
- case "ls-validation-tag":
40214
- if (!customElements.get(transformTag(tagName))) {
40215
- defineCustomElement$2();
40216
- }
40217
- break;
40218
- } });
40219
- }
40220
- defineCustomElement$1();
40221
-
40222
- const LsDocumentViewer = LsDocumentViewer$1;
40223
- const defineCustomElement = defineCustomElement$1;
40224
-
40225
- export { LsDocumentViewer, defineCustomElement };
40226
- //# sourceMappingURL=ls-document-viewer.js.map
40603
+ };
40604
+ LsDocumentViewer.style = lsDocumentViewerCss();
40227
40605
 
40228
- //# sourceMappingURL=ls-document-viewer.js.map
40606
+ export { LsDocumentViewer as ls_document_viewer };
40607
+ //# sourceMappingURL=ls-document-viewer.entry.esm.js.map