@tindtechnologies/pdfjs-viewer 5.4.624-tind.6 → 5.4.624-tind.8

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 (412) hide show
  1. package/.idea/modules.xml +8 -0
  2. package/.idea/pdfjs-viewer.iml +12 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/README.md +67 -0
  5. package/gulpfile.mjs +263 -0
  6. package/package.json +8 -2
  7. package/{web → src/web}/override-pdf-viewer-application-open.js +0 -16
  8. package/LICENSE +0 -177
  9. package/build/pdf.mjs +0 -26370
  10. package/build/pdf.mjs.map +0 -1
  11. package/build/pdf.sandbox.mjs +0 -241
  12. package/build/pdf.sandbox.mjs.map +0 -1
  13. package/build/pdf.worker.mjs +0 -61080
  14. package/build/pdf.worker.mjs.map +0 -1
  15. package/web/cmaps/78-EUC-H.bcmap +0 -0
  16. package/web/cmaps/78-EUC-V.bcmap +0 -0
  17. package/web/cmaps/78-H.bcmap +0 -0
  18. package/web/cmaps/78-RKSJ-H.bcmap +0 -0
  19. package/web/cmaps/78-RKSJ-V.bcmap +0 -0
  20. package/web/cmaps/78-V.bcmap +0 -0
  21. package/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  22. package/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  23. package/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  24. package/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  25. package/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  26. package/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  27. package/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  28. package/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  29. package/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  30. package/web/cmaps/Add-H.bcmap +0 -0
  31. package/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  32. package/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  33. package/web/cmaps/Add-V.bcmap +0 -0
  34. package/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  35. package/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  36. package/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  37. package/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  38. package/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  39. package/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  40. package/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  41. package/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  42. package/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  43. package/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  44. package/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  45. package/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  46. package/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  47. package/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  48. package/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  49. package/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  50. package/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  51. package/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  52. package/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  53. package/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  54. package/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  55. package/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  56. package/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  57. package/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  58. package/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  59. package/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  60. package/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  61. package/web/cmaps/B5-H.bcmap +0 -0
  62. package/web/cmaps/B5-V.bcmap +0 -0
  63. package/web/cmaps/B5pc-H.bcmap +0 -0
  64. package/web/cmaps/B5pc-V.bcmap +0 -0
  65. package/web/cmaps/CNS-EUC-H.bcmap +0 -0
  66. package/web/cmaps/CNS-EUC-V.bcmap +0 -0
  67. package/web/cmaps/CNS1-H.bcmap +0 -0
  68. package/web/cmaps/CNS1-V.bcmap +0 -0
  69. package/web/cmaps/CNS2-H.bcmap +0 -0
  70. package/web/cmaps/CNS2-V.bcmap +0 -3
  71. package/web/cmaps/ETHK-B5-H.bcmap +0 -0
  72. package/web/cmaps/ETHK-B5-V.bcmap +0 -0
  73. package/web/cmaps/ETen-B5-H.bcmap +0 -0
  74. package/web/cmaps/ETen-B5-V.bcmap +0 -0
  75. package/web/cmaps/ETenms-B5-H.bcmap +0 -3
  76. package/web/cmaps/ETenms-B5-V.bcmap +0 -0
  77. package/web/cmaps/EUC-H.bcmap +0 -0
  78. package/web/cmaps/EUC-V.bcmap +0 -0
  79. package/web/cmaps/Ext-H.bcmap +0 -0
  80. package/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  81. package/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  82. package/web/cmaps/Ext-V.bcmap +0 -0
  83. package/web/cmaps/GB-EUC-H.bcmap +0 -0
  84. package/web/cmaps/GB-EUC-V.bcmap +0 -0
  85. package/web/cmaps/GB-H.bcmap +0 -4
  86. package/web/cmaps/GB-V.bcmap +0 -0
  87. package/web/cmaps/GBK-EUC-H.bcmap +0 -0
  88. package/web/cmaps/GBK-EUC-V.bcmap +0 -0
  89. package/web/cmaps/GBK2K-H.bcmap +0 -0
  90. package/web/cmaps/GBK2K-V.bcmap +0 -0
  91. package/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  92. package/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  93. package/web/cmaps/GBT-EUC-H.bcmap +0 -0
  94. package/web/cmaps/GBT-EUC-V.bcmap +0 -0
  95. package/web/cmaps/GBT-H.bcmap +0 -0
  96. package/web/cmaps/GBT-V.bcmap +0 -0
  97. package/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  98. package/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  99. package/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  100. package/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  101. package/web/cmaps/H.bcmap +0 -0
  102. package/web/cmaps/HKdla-B5-H.bcmap +0 -0
  103. package/web/cmaps/HKdla-B5-V.bcmap +0 -0
  104. package/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  105. package/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  106. package/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  107. package/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  108. package/web/cmaps/HKm314-B5-H.bcmap +0 -0
  109. package/web/cmaps/HKm314-B5-V.bcmap +0 -0
  110. package/web/cmaps/HKm471-B5-H.bcmap +0 -0
  111. package/web/cmaps/HKm471-B5-V.bcmap +0 -0
  112. package/web/cmaps/HKscs-B5-H.bcmap +0 -0
  113. package/web/cmaps/HKscs-B5-V.bcmap +0 -0
  114. package/web/cmaps/Hankaku.bcmap +0 -0
  115. package/web/cmaps/Hiragana.bcmap +0 -0
  116. package/web/cmaps/KSC-EUC-H.bcmap +0 -0
  117. package/web/cmaps/KSC-EUC-V.bcmap +0 -0
  118. package/web/cmaps/KSC-H.bcmap +0 -0
  119. package/web/cmaps/KSC-Johab-H.bcmap +0 -0
  120. package/web/cmaps/KSC-Johab-V.bcmap +0 -0
  121. package/web/cmaps/KSC-V.bcmap +0 -0
  122. package/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  123. package/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  124. package/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  125. package/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  126. package/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  127. package/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  128. package/web/cmaps/Katakana.bcmap +0 -0
  129. package/web/cmaps/LICENSE +0 -36
  130. package/web/cmaps/NWP-H.bcmap +0 -0
  131. package/web/cmaps/NWP-V.bcmap +0 -0
  132. package/web/cmaps/RKSJ-H.bcmap +0 -0
  133. package/web/cmaps/RKSJ-V.bcmap +0 -0
  134. package/web/cmaps/Roman.bcmap +0 -0
  135. package/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  136. package/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  137. package/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  138. package/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  139. package/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  140. package/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  141. package/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  142. package/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  143. package/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  144. package/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  145. package/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  146. package/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  147. package/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  148. package/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  149. package/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  150. package/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  151. package/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  152. package/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  153. package/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  154. package/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  155. package/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  156. package/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  157. package/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  158. package/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  159. package/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  160. package/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  161. package/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  162. package/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  163. package/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  164. package/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  165. package/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  166. package/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  167. package/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  168. package/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  169. package/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  170. package/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  171. package/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  172. package/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  173. package/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  174. package/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  175. package/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  176. package/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  177. package/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  178. package/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  179. package/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  180. package/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  181. package/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  182. package/web/cmaps/V.bcmap +0 -0
  183. package/web/cmaps/WP-Symbol.bcmap +0 -0
  184. package/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  185. package/web/debugger.css +0 -145
  186. package/web/debugger.mjs +0 -848
  187. package/web/iccs/CGATS001Compat-v2-micro.icc +0 -0
  188. package/web/iccs/LICENSE +0 -116
  189. package/web/images/altText_add.svg +0 -3
  190. package/web/images/altText_disclaimer.svg +0 -3
  191. package/web/images/altText_done.svg +0 -3
  192. package/web/images/altText_spinner.svg +0 -30
  193. package/web/images/altText_warning.svg +0 -3
  194. package/web/images/annotation-check.svg +0 -11
  195. package/web/images/annotation-comment.svg +0 -16
  196. package/web/images/annotation-help.svg +0 -26
  197. package/web/images/annotation-insert.svg +0 -10
  198. package/web/images/annotation-key.svg +0 -11
  199. package/web/images/annotation-newparagraph.svg +0 -11
  200. package/web/images/annotation-noicon.svg +0 -7
  201. package/web/images/annotation-note.svg +0 -42
  202. package/web/images/annotation-paperclip.svg +0 -6
  203. package/web/images/annotation-paragraph.svg +0 -16
  204. package/web/images/annotation-pushpin.svg +0 -7
  205. package/web/images/checkmark.svg +0 -5
  206. package/web/images/comment-actionsButton.svg +0 -3
  207. package/web/images/comment-closeButton.svg +0 -3
  208. package/web/images/comment-editButton.svg +0 -8
  209. package/web/images/comment-popup-editButton.svg +0 -5
  210. package/web/images/cursor-editorFreeHighlight.svg +0 -6
  211. package/web/images/cursor-editorFreeText.svg +0 -3
  212. package/web/images/cursor-editorInk.svg +0 -4
  213. package/web/images/cursor-editorTextHighlight.svg +0 -8
  214. package/web/images/editor-toolbar-delete.svg +0 -5
  215. package/web/images/editor-toolbar-edit.svg +0 -3
  216. package/web/images/findbarButton-next.svg +0 -3
  217. package/web/images/findbarButton-previous.svg +0 -3
  218. package/web/images/gv-toolbarButton-download.svg +0 -3
  219. package/web/images/loading-icon.gif +0 -0
  220. package/web/images/loading.svg +0 -1
  221. package/web/images/messageBar_closingButton.svg +0 -3
  222. package/web/images/messageBar_info.svg +0 -3
  223. package/web/images/messageBar_warning.svg +0 -3
  224. package/web/images/pages_closeButton.svg +0 -3
  225. package/web/images/pages_selected.svg +0 -7
  226. package/web/images/pages_viewArrow.svg +0 -3
  227. package/web/images/pages_viewButton.svg +0 -3
  228. package/web/images/secondaryToolbarButton-documentProperties.svg +0 -3
  229. package/web/images/secondaryToolbarButton-firstPage.svg +0 -3
  230. package/web/images/secondaryToolbarButton-handTool.svg +0 -3
  231. package/web/images/secondaryToolbarButton-lastPage.svg +0 -3
  232. package/web/images/secondaryToolbarButton-rotateCcw.svg +0 -3
  233. package/web/images/secondaryToolbarButton-rotateCw.svg +0 -3
  234. package/web/images/secondaryToolbarButton-scrollHorizontal.svg +0 -3
  235. package/web/images/secondaryToolbarButton-scrollPage.svg +0 -3
  236. package/web/images/secondaryToolbarButton-scrollVertical.svg +0 -3
  237. package/web/images/secondaryToolbarButton-scrollWrapped.svg +0 -3
  238. package/web/images/secondaryToolbarButton-selectTool.svg +0 -3
  239. package/web/images/secondaryToolbarButton-spreadEven.svg +0 -3
  240. package/web/images/secondaryToolbarButton-spreadNone.svg +0 -3
  241. package/web/images/secondaryToolbarButton-spreadOdd.svg +0 -3
  242. package/web/images/toolbarButton-bookmark.svg +0 -3
  243. package/web/images/toolbarButton-currentOutlineItem.svg +0 -3
  244. package/web/images/toolbarButton-download.svg +0 -4
  245. package/web/images/toolbarButton-editorFreeText.svg +0 -5
  246. package/web/images/toolbarButton-editorHighlight.svg +0 -6
  247. package/web/images/toolbarButton-editorInk.svg +0 -4
  248. package/web/images/toolbarButton-editorSignature.svg +0 -6
  249. package/web/images/toolbarButton-editorStamp.svg +0 -8
  250. package/web/images/toolbarButton-menuArrow.svg +0 -3
  251. package/web/images/toolbarButton-openFile.svg +0 -3
  252. package/web/images/toolbarButton-pageDown.svg +0 -3
  253. package/web/images/toolbarButton-pageUp.svg +0 -3
  254. package/web/images/toolbarButton-presentationMode.svg +0 -3
  255. package/web/images/toolbarButton-print.svg +0 -3
  256. package/web/images/toolbarButton-search.svg +0 -3
  257. package/web/images/toolbarButton-secondaryToolbarToggle.svg +0 -3
  258. package/web/images/toolbarButton-viewAttachments.svg +0 -3
  259. package/web/images/toolbarButton-viewLayers.svg +0 -3
  260. package/web/images/toolbarButton-viewOutline.svg +0 -3
  261. package/web/images/toolbarButton-viewThumbnail.svg +0 -3
  262. package/web/images/toolbarButton-viewsManagerToggle.svg +0 -3
  263. package/web/images/toolbarButton-zoomIn.svg +0 -3
  264. package/web/images/toolbarButton-zoomOut.svg +0 -3
  265. package/web/images/treeitem-collapsed.svg +0 -1
  266. package/web/images/treeitem-expanded.svg +0 -1
  267. package/web/locale/ach/viewer.ftl +0 -200
  268. package/web/locale/af/viewer.ftl +0 -179
  269. package/web/locale/an/viewer.ftl +0 -228
  270. package/web/locale/ar/viewer.ftl +0 -595
  271. package/web/locale/ast/viewer.ftl +0 -172
  272. package/web/locale/az/viewer.ftl +0 -228
  273. package/web/locale/be/viewer.ftl +0 -652
  274. package/web/locale/bg/viewer.ftl +0 -388
  275. package/web/locale/bn/viewer.ftl +0 -218
  276. package/web/locale/bo/viewer.ftl +0 -222
  277. package/web/locale/br/viewer.ftl +0 -323
  278. package/web/locale/brx/viewer.ftl +0 -189
  279. package/web/locale/bs/viewer.ftl +0 -588
  280. package/web/locale/ca/viewer.ftl +0 -274
  281. package/web/locale/cak/viewer.ftl +0 -264
  282. package/web/locale/ckb/viewer.ftl +0 -213
  283. package/web/locale/cs/viewer.ftl +0 -656
  284. package/web/locale/cy/viewer.ftl +0 -664
  285. package/web/locale/da/viewer.ftl +0 -648
  286. package/web/locale/de/viewer.ftl +0 -648
  287. package/web/locale/dsb/viewer.ftl +0 -656
  288. package/web/locale/el/viewer.ftl +0 -648
  289. package/web/locale/en-CA/viewer.ftl +0 -648
  290. package/web/locale/en-GB/viewer.ftl +0 -648
  291. package/web/locale/en-US/viewer.ftl +0 -770
  292. package/web/locale/eo/viewer.ftl +0 -648
  293. package/web/locale/es-AR/viewer.ftl +0 -648
  294. package/web/locale/es-CL/viewer.ftl +0 -648
  295. package/web/locale/es-ES/viewer.ftl +0 -648
  296. package/web/locale/es-MX/viewer.ftl +0 -648
  297. package/web/locale/et/viewer.ftl +0 -246
  298. package/web/locale/eu/viewer.ftl +0 -652
  299. package/web/locale/fa/viewer.ftl +0 -322
  300. package/web/locale/ff/viewer.ftl +0 -222
  301. package/web/locale/fi/viewer.ftl +0 -648
  302. package/web/locale/fr/viewer.ftl +0 -644
  303. package/web/locale/fur/viewer.ftl +0 -648
  304. package/web/locale/fy-NL/viewer.ftl +0 -648
  305. package/web/locale/ga-IE/viewer.ftl +0 -180
  306. package/web/locale/gd/viewer.ftl +0 -266
  307. package/web/locale/gl/viewer.ftl +0 -591
  308. package/web/locale/gn/viewer.ftl +0 -647
  309. package/web/locale/gu-IN/viewer.ftl +0 -222
  310. package/web/locale/he/viewer.ftl +0 -648
  311. package/web/locale/hi-IN/viewer.ftl +0 -221
  312. package/web/locale/hr/viewer.ftl +0 -652
  313. package/web/locale/hsb/viewer.ftl +0 -656
  314. package/web/locale/hu/viewer.ftl +0 -648
  315. package/web/locale/hy-AM/viewer.ftl +0 -601
  316. package/web/locale/hye/viewer.ftl +0 -242
  317. package/web/locale/ia/viewer.ftl +0 -648
  318. package/web/locale/id/viewer.ftl +0 -589
  319. package/web/locale/is/viewer.ftl +0 -572
  320. package/web/locale/it/viewer.ftl +0 -648
  321. package/web/locale/ja/viewer.ftl +0 -632
  322. package/web/locale/ka/viewer.ftl +0 -648
  323. package/web/locale/kab/viewer.ftl +0 -624
  324. package/web/locale/kk/viewer.ftl +0 -648
  325. package/web/locale/km/viewer.ftl +0 -198
  326. package/web/locale/kn/viewer.ftl +0 -180
  327. package/web/locale/ko/viewer.ftl +0 -632
  328. package/web/locale/lij/viewer.ftl +0 -222
  329. package/web/locale/lo/viewer.ftl +0 -266
  330. package/web/locale/locale.json +0 -1
  331. package/web/locale/lt/viewer.ftl +0 -242
  332. package/web/locale/ltg/viewer.ftl +0 -221
  333. package/web/locale/lv/viewer.ftl +0 -222
  334. package/web/locale/meh/viewer.ftl +0 -48
  335. package/web/locale/mk/viewer.ftl +0 -183
  336. package/web/locale/ml/viewer.ftl +0 -494
  337. package/web/locale/mr/viewer.ftl +0 -210
  338. package/web/locale/ms/viewer.ftl +0 -222
  339. package/web/locale/my/viewer.ftl +0 -173
  340. package/web/locale/nb-NO/viewer.ftl +0 -648
  341. package/web/locale/ne-NP/viewer.ftl +0 -201
  342. package/web/locale/nl/viewer.ftl +0 -648
  343. package/web/locale/nn-NO/viewer.ftl +0 -648
  344. package/web/locale/oc/viewer.ftl +0 -381
  345. package/web/locale/pa-IN/viewer.ftl +0 -648
  346. package/web/locale/pl/viewer.ftl +0 -651
  347. package/web/locale/pt-BR/viewer.ftl +0 -648
  348. package/web/locale/pt-PT/viewer.ftl +0 -618
  349. package/web/locale/rm/viewer.ftl +0 -639
  350. package/web/locale/ro/viewer.ftl +0 -651
  351. package/web/locale/ru/viewer.ftl +0 -652
  352. package/web/locale/sat/viewer.ftl +0 -278
  353. package/web/locale/sc/viewer.ftl +0 -342
  354. package/web/locale/scn/viewer.ftl +0 -32
  355. package/web/locale/sco/viewer.ftl +0 -238
  356. package/web/locale/si/viewer.ftl +0 -228
  357. package/web/locale/sk/viewer.ftl +0 -656
  358. package/web/locale/skr/viewer.ftl +0 -465
  359. package/web/locale/sl/viewer.ftl +0 -656
  360. package/web/locale/son/viewer.ftl +0 -173
  361. package/web/locale/sq/viewer.ftl +0 -639
  362. package/web/locale/sr/viewer.ftl +0 -386
  363. package/web/locale/sv-SE/viewer.ftl +0 -648
  364. package/web/locale/szl/viewer.ftl +0 -228
  365. package/web/locale/ta/viewer.ftl +0 -198
  366. package/web/locale/te/viewer.ftl +0 -213
  367. package/web/locale/tg/viewer.ftl +0 -648
  368. package/web/locale/th/viewer.ftl +0 -632
  369. package/web/locale/tl/viewer.ftl +0 -228
  370. package/web/locale/tr/viewer.ftl +0 -648
  371. package/web/locale/trs/viewer.ftl +0 -163
  372. package/web/locale/uk/viewer.ftl +0 -586
  373. package/web/locale/ur/viewer.ftl +0 -222
  374. package/web/locale/uz/viewer.ftl +0 -154
  375. package/web/locale/vi/viewer.ftl +0 -632
  376. package/web/locale/wo/viewer.ftl +0 -100
  377. package/web/locale/xh/viewer.ftl +0 -179
  378. package/web/locale/zh-CN/viewer.ftl +0 -632
  379. package/web/locale/zh-TW/viewer.ftl +0 -632
  380. package/web/pdf_viewer.html +0 -854
  381. package/web/pdf_viewer_view_only.html +0 -854
  382. package/web/standard_fonts/FoxitDingbats.pfb +0 -0
  383. package/web/standard_fonts/FoxitFixed.pfb +0 -0
  384. package/web/standard_fonts/FoxitFixedBold.pfb +0 -0
  385. package/web/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  386. package/web/standard_fonts/FoxitFixedItalic.pfb +0 -0
  387. package/web/standard_fonts/FoxitSerif.pfb +0 -0
  388. package/web/standard_fonts/FoxitSerifBold.pfb +0 -0
  389. package/web/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  390. package/web/standard_fonts/FoxitSerifItalic.pfb +0 -0
  391. package/web/standard_fonts/FoxitSymbol.pfb +0 -0
  392. package/web/standard_fonts/LICENSE_FOXIT +0 -27
  393. package/web/standard_fonts/LICENSE_LIBERATION +0 -102
  394. package/web/standard_fonts/LiberationSans-Bold.ttf +0 -0
  395. package/web/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  396. package/web/standard_fonts/LiberationSans-Italic.ttf +0 -0
  397. package/web/standard_fonts/LiberationSans-Regular.ttf +0 -0
  398. package/web/viewer.css +0 -8572
  399. package/web/viewer.html +0 -1219
  400. package/web/viewer.mjs +0 -19380
  401. package/web/viewer.mjs.map +0 -1
  402. package/web/wasm/LICENSE_JBIG2 +0 -196
  403. package/web/wasm/LICENSE_OPENJPEG +0 -39
  404. package/web/wasm/LICENSE_PDFJS_JBIG2 +0 -13
  405. package/web/wasm/LICENSE_PDFJS_OPENJPEG +0 -22
  406. package/web/wasm/LICENSE_PDFJS_QCMS +0 -22
  407. package/web/wasm/LICENSE_QCMS +0 -21
  408. package/web/wasm/jbig2.wasm +0 -0
  409. package/web/wasm/openjpeg.wasm +0 -0
  410. package/web/wasm/openjpeg_nowasm_fallback.js +0 -17
  411. package/web/wasm/qcms_bg.wasm +0 -0
  412. /package/{web → src/web}/only-register-download.js +0 -0
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pdfjs-viewer.iml" filepath="$PROJECT_DIR$/.idea/pdfjs-viewer.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
1
  # TIND PDF.js viewer
2
2
 
3
3
  This is a PDF.js viewer for TIND. It is based on the PDF.js viewer provided by Mozilla, but it has been modified to work with TIND.
4
+
5
+ ## Local PDF viewer changes
6
+
7
+ - Registering download stats by intercepting the download button click and sending a `register_download=1` request before file retrieval (`src/web/only-register-download.js`).
8
+ - Configurable chunk size by reading `rangeChunkSize` from the viewer URL and injecting it into `PDFViewerApplication.open` (`src/web/override-pdf-viewer-application-open.js`).
9
+ - View-only HTML variant by generating `pdf_viewer_view_only.html` and hiding print/download controls during the viewer transform step (`gulpfile.mjs`).
10
+
11
+ ## Building
12
+
13
+ 1. Install the dependencies
14
+
15
+ ```shell
16
+ npm clean-install
17
+ ```
18
+
19
+ 2. Download PDF.js source code
20
+
21
+ ```shell
22
+ npx gulp pdfJsDownload
23
+ ```
24
+
25
+ 3. Install the PDF.js dependencies
26
+
27
+ ```shell
28
+ npx gulp pdfJsInstall
29
+ ```
30
+
31
+ 4. Run the complete build task
32
+
33
+ ```shell
34
+ npx gulp completeBuild
35
+ ```
36
+
37
+ 5. (Optional) Clean up built assets
38
+
39
+ ```shell
40
+ npx gulp clean
41
+ ```
42
+
43
+ The output is available in the `build` directory with this structure:
44
+
45
+ - `build/pdf.js` (downloaded PDF.js source, including `build/` artifacts)
46
+ - `build/dist` (distribution assets from PDF.js `generic`, plus override and `package.json`)
47
+
48
+ ## Versioning
49
+
50
+ Keep the upstream PDF.js version as the base and use a `-tind.N` suffix for publish increments.
51
+
52
+ - First publish for upstream `5.4.624`: `5.4.624-tind.0`
53
+ - Next publish: `5.4.624-tind.1`
54
+ - After upgrading upstream to `5.4.625`: `5.4.625-tind.0`
55
+
56
+ Examples:
57
+
58
+ ```shell
59
+ # set explicit version
60
+ npm version 5.4.624-tind.0 --no-git-tag-version
61
+
62
+ # bump the tind prerelease number (tind.0 -> tind.1)
63
+ npm version prerelease --preid=tind --no-git-tag-version
64
+ ```
65
+
66
+ When publishing a prerelease version (`-tind.N`), npm requires an explicit dist-tag:
67
+
68
+ ```shell
69
+ npm publish --tag tind
70
+ ```
package/gulpfile.mjs ADDED
@@ -0,0 +1,263 @@
1
+ import { join } from "node:path";
2
+ import { spawn } from "node:child_process";
3
+ import { PassThrough, Readable, Transform } from "node:stream";
4
+ import { finished, pipeline } from "node:stream/promises";
5
+ import { dest, parallel, series, src } from "gulp";
6
+ import { rimraf } from "rimraf";
7
+ import { JSDOM } from "jsdom";
8
+ import * as tar from "tar";
9
+ import Vinyl from "vinyl";
10
+
11
+ const pdfJsDownloadUrl =
12
+ "https://github.com/mozilla/pdf.js/archive/refs/tags/v5.4.624.tar.gz";
13
+ const buildDirectory = join(import.meta.dirname, "build");
14
+ const pdfJsModuleDirectory = join(buildDirectory, "pdf.js");
15
+ const distDirectory = join(buildDirectory, "dist");
16
+
17
+ /**
18
+ * @param {readonly string[]} args
19
+ * @param {NodeJS.ProcessEnv} [env]
20
+ */
21
+ function pdfJsNpmTask(args, env) {
22
+ return spawn("npm", args, {
23
+ cwd: pdfJsModuleDirectory,
24
+ env: {
25
+ ...process.env,
26
+ ...env,
27
+ },
28
+ stdio: "inherit",
29
+ });
30
+ }
31
+
32
+ /**
33
+ * @param {readonly string[]} args
34
+ */
35
+ function pdfJsNpxTask(args) {
36
+ return spawn("npx", args, {
37
+ cwd: pdfJsModuleDirectory,
38
+ stdio: "inherit",
39
+ });
40
+ }
41
+
42
+ function pathFromArchiveRoot(path) {
43
+ const segments = path.split("/").filter(Boolean);
44
+ return segments.slice(1).join("/");
45
+ }
46
+
47
+ export async function pdfJsDownload() {
48
+ await rimraf(pdfJsModuleDirectory);
49
+
50
+ const response = await fetch(pdfJsDownloadUrl);
51
+ if (!response.ok) {
52
+ throw new Error(
53
+ `Failed to download PDF.js archive (${response.status} ${response.statusText}).`,
54
+ );
55
+ }
56
+ if (!response.body) {
57
+ throw new Error("PDF.js download returned an empty response body.");
58
+ }
59
+
60
+ const vinylStream = new PassThrough({ objectMode: true });
61
+ const output = vinylStream.pipe(dest(pdfJsModuleDirectory));
62
+ const parser = tar.t({
63
+ noResume: true,
64
+ onReadEntry(entry) {
65
+ if (entry.type !== "File") {
66
+ entry.resume();
67
+ return;
68
+ }
69
+
70
+ const relativePath = pathFromArchiveRoot(entry.path);
71
+ if (!relativePath) {
72
+ entry.resume();
73
+ return;
74
+ }
75
+
76
+ vinylStream.write(
77
+ new Vinyl({
78
+ base: pdfJsModuleDirectory,
79
+ cwd: import.meta.dirname,
80
+ contents: entry,
81
+ path: join(pdfJsModuleDirectory, relativePath),
82
+ }),
83
+ );
84
+ },
85
+ });
86
+
87
+ parser.once("error", (error) => {
88
+ vinylStream.destroy(error);
89
+ });
90
+ parser.once("end", () => {
91
+ vinylStream.end();
92
+ });
93
+
94
+ await Promise.all([
95
+ pipeline(Readable.fromWeb(response.body), parser),
96
+ finished(output),
97
+ ]);
98
+ }
99
+
100
+ export function pdfJsInstall() {
101
+ return pdfJsNpmTask(["clean-install", "--include", "dev"], {
102
+ PUPPETEER_SKIP_DOWNLOAD: "1",
103
+ });
104
+ }
105
+
106
+ export function pdfJsGeneric() {
107
+ return pdfJsNpxTask(["gulp", "generic"]);
108
+ }
109
+
110
+ export function clean() {
111
+ return rimraf(buildDirectory);
112
+ }
113
+
114
+ function distClean() {
115
+ return rimraf(distDirectory);
116
+ }
117
+
118
+ function copyPdfJsGenericAssets() {
119
+ return src(join(pdfJsModuleDirectory, "build/generic/**/*")).pipe(
120
+ dest(distDirectory),
121
+ );
122
+ }
123
+
124
+ const collectAssets = copyPdfJsGenericAssets;
125
+
126
+ export const build = series(pdfJsGeneric, distClean, collectAssets);
127
+
128
+ export function transformViewer() {
129
+ return src(join(distDirectory, "web/viewer.html"), {
130
+ base: join(distDirectory, "web"),
131
+ })
132
+ .pipe(
133
+ new Transform({
134
+ objectMode: true,
135
+ transform(file, _encoding, callback) {
136
+ if (file.isDirectory()) {
137
+ callback();
138
+ return;
139
+ }
140
+ if (file.isNull()) {
141
+ callback(null, file);
142
+ return;
143
+ }
144
+ if (file.isStream()) {
145
+ callback(new Error("Streaming Vinyl files are not supported."));
146
+ return;
147
+ }
148
+
149
+ const { window } = new JSDOM(file.contents.toString("utf8"));
150
+ const overrideScriptElement = window.document.createElement("script");
151
+ overrideScriptElement.src = "override-pdf-viewer-application-open.js";
152
+ const registerDownloadScriptElement =
153
+ window.document.createElement("script");
154
+ registerDownloadScriptElement.src = "only-register-download.js";
155
+
156
+ const title = window.document.head.querySelector("title");
157
+ if (title) {
158
+ title.after(overrideScriptElement);
159
+ title.after(registerDownloadScriptElement);
160
+ } else {
161
+ window.document.head.append(overrideScriptElement);
162
+ }
163
+
164
+ this.push(
165
+ Object.assign(file.clone({ contents: false }), {
166
+ path: join(file.base, "pdf_viewer.html"),
167
+ contents: Buffer.from(
168
+ window.document.documentElement.outerHTML,
169
+ "utf8",
170
+ ),
171
+ }),
172
+ );
173
+
174
+ const secondaryPrint =
175
+ window.document.getElementById("secondaryPrint");
176
+
177
+ if (secondaryPrint) {
178
+ secondaryPrint.style = "display:none !important";
179
+ }
180
+
181
+ const secondaryDownload =
182
+ window.document.getElementById("secondaryDownload");
183
+
184
+ if (secondaryDownload) {
185
+ secondaryDownload.style = "display:none !important";
186
+ }
187
+
188
+ const print = window.document.getElementById("printButton");
189
+
190
+ if (print) {
191
+ print.style = "display:none !important";
192
+ }
193
+
194
+ const download = window.document.getElementById("downloadButton");
195
+
196
+ if (download) {
197
+ download.style = "display:none !important";
198
+ }
199
+
200
+ this.push(
201
+ Object.assign(file.clone({ contents: false }), {
202
+ path: join(file.base, "pdf_viewer_view_only.html"),
203
+ contents: Buffer.from(
204
+ window.document.documentElement.outerHTML,
205
+ "utf8",
206
+ ),
207
+ }),
208
+ );
209
+
210
+ callback();
211
+ },
212
+ }),
213
+ )
214
+ .pipe(dest(join(distDirectory, "web")));
215
+ }
216
+
217
+ export function copySrcFilesIntoDist() {
218
+ return src(["**/*", "**/.*"], {
219
+ cwd: join(import.meta.dirname, "src"),
220
+ base: join(import.meta.dirname, "src"),
221
+ dot: true,
222
+ nodir: true,
223
+ }).pipe(dest(distDirectory));
224
+ }
225
+
226
+ export function copyPackageJsonIntoDist() {
227
+ return src(join(import.meta.dirname, "package.json"), {
228
+ base: import.meta.dirname,
229
+ }).pipe(dest(distDirectory));
230
+ }
231
+
232
+ function removeDevDependenciesFromDistPackageJson() {
233
+ return spawn("npm", ["pkg", "delete", "devDependencies"], {
234
+ cwd: distDirectory,
235
+ stdio: "inherit",
236
+ });
237
+ }
238
+
239
+ export function packageAsset() {
240
+ return spawn("npm", ["pack"], {
241
+ cwd: distDirectory,
242
+ stdio: "inherit",
243
+ });
244
+ }
245
+
246
+ export function createPackageLockInDist() {
247
+ return spawn("npm", ["install", "--package-lock-only"], {
248
+ cwd: distDirectory,
249
+ stdio: "inherit",
250
+ });
251
+ }
252
+
253
+ export const completeBuild = series(
254
+ build,
255
+ parallel(
256
+ transformViewer,
257
+ series(
258
+ parallel(copySrcFilesIntoDist, copyPackageJsonIntoDist),
259
+ removeDevDependenciesFromDistPackageJson,
260
+ createPackageLockInDist,
261
+ ),
262
+ ),
263
+ );
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@tindtechnologies/pdfjs-viewer",
3
- "version": "5.4.624-tind.6",
3
+ "version": "5.4.624-tind.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/tind/pdfjs-viewer"
7
7
  },
8
- "license": "Apache-2.0"
8
+ "license": "Apache-2.0",
9
+ "devDependencies": {
10
+ "gulp": "^5.0.1",
11
+ "jsdom": "^28.0.0",
12
+ "rimraf": "^6.1.2",
13
+ "tar": "^7.5.7"
14
+ }
9
15
  }
@@ -1,6 +1,5 @@
1
1
  const OPEN_PATCHED_FLAG = Symbol("tindPdfViewerApplicationOpenPatched");
2
2
  const registeredDocuments = new WeakSet();
3
- const SIDEBAR_VIEW_NONE = 0;
4
3
 
5
4
  function patchPDFViewerApplicationOpen(evt) {
6
5
  const sourceWindow = evt?.detail?.source;
@@ -15,24 +14,9 @@ function patchPDFViewerApplicationOpen(evt) {
15
14
  return;
16
15
  }
17
16
 
18
- const originalSetInitialView = app.setInitialView?.bind(app);
19
- if (originalSetInitialView) {
20
- // Force the initial sidebar state to "closed" after all startup state
21
- // (preferences/history/document metadata) has been resolved.
22
- app.setInitialView = (storedHash, options = {}) =>
23
- originalSetInitialView(storedHash, {
24
- ...options,
25
- sidebarView: SIDEBAR_VIEW_NONE,
26
- });
27
- } else {
28
- // Fallback for unexpected viewer versions without `setInitialView`.
29
- win.PDFViewerApplicationOptions?.set("sidebarViewOnLoad", SIDEBAR_VIEW_NONE);
30
- }
31
-
32
17
  const params = new URLSearchParams(win.location.search);
33
18
  const rangeChunkSize = Number(params.get("chunksize"));
34
19
  if (!Number.isInteger(rangeChunkSize) || rangeChunkSize <= 0) {
35
- app[OPEN_PATCHED_FLAG] = true;
36
20
  return;
37
21
  }
38
22
 
package/LICENSE DELETED
@@ -1,177 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS