pul_uv_rails 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (588) hide show
  1. checksums.yaml +7 -0
  2. data/.bowerrc +3 -0
  3. data/.gitignore +9 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +5 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE +202 -0
  8. data/README.md +44 -0
  9. data/Rakefile +6 -0
  10. data/bower.json +27 -0
  11. data/lib/pul_uv_rails.rb +12 -0
  12. data/lib/pul_uv_rails/universal_viewer.rb +34 -0
  13. data/lib/pul_uv_rails/version.rb +3 -0
  14. data/public/universalviewer/.bower.json +32 -0
  15. data/public/universalviewer/.bowerrc +6 -0
  16. data/public/universalviewer/.gitattributes +4 -0
  17. data/public/universalviewer/.gitignore +88 -0
  18. data/public/universalviewer/.gitmodules +6 -0
  19. data/public/universalviewer/.npmignore +19 -0
  20. data/public/universalviewer/.travis.yml +21 -0
  21. data/public/universalviewer/.vscode/settings.json +13 -0
  22. data/public/universalviewer/.vscode/tasks.json +25 -0
  23. data/public/universalviewer/CHANGELOG.md +11 -0
  24. data/public/universalviewer/Gruntfile.js +490 -0
  25. data/public/universalviewer/LICENSE.txt +16 -0
  26. data/public/universalviewer/README.md +98 -0
  27. data/public/universalviewer/app.build.js +14 -0
  28. data/public/universalviewer/bower.json +23 -0
  29. data/public/universalviewer/config.js +56 -0
  30. data/public/universalviewer/dist/uv-2.0.1/app.html +61 -0
  31. data/public/universalviewer/dist/uv-2.0.1/html/uv-pdfcenterpanel-module/viewer.html +363 -0
  32. data/public/universalviewer/dist/uv-2.0.1/l10n/ach/chrome.properties +18 -0
  33. data/public/universalviewer/dist/uv-2.0.1/l10n/ach/viewer.properties +97 -0
  34. data/public/universalviewer/dist/uv-2.0.1/l10n/af/chrome.properties +18 -0
  35. data/public/universalviewer/dist/uv-2.0.1/l10n/af/viewer.properties +140 -0
  36. data/public/universalviewer/dist/uv-2.0.1/l10n/ak/chrome.properties +18 -0
  37. data/public/universalviewer/dist/uv-2.0.1/l10n/ak/viewer.properties +123 -0
  38. data/public/universalviewer/dist/uv-2.0.1/l10n/an/chrome.properties +19 -0
  39. data/public/universalviewer/dist/uv-2.0.1/l10n/an/viewer.properties +161 -0
  40. data/public/universalviewer/dist/uv-2.0.1/l10n/ar/chrome.properties +19 -0
  41. data/public/universalviewer/dist/uv-2.0.1/l10n/ar/viewer.properties +161 -0
  42. data/public/universalviewer/dist/uv-2.0.1/l10n/as/chrome.properties +19 -0
  43. data/public/universalviewer/dist/uv-2.0.1/l10n/as/viewer.properties +161 -0
  44. data/public/universalviewer/dist/uv-2.0.1/l10n/ast/chrome.properties +7 -0
  45. data/public/universalviewer/dist/uv-2.0.1/l10n/ast/viewer.properties +73 -0
  46. data/public/universalviewer/dist/uv-2.0.1/l10n/az/chrome.properties +18 -0
  47. data/public/universalviewer/dist/uv-2.0.1/l10n/az/viewer.properties +139 -0
  48. data/public/universalviewer/dist/uv-2.0.1/l10n/be/chrome.properties +4 -0
  49. data/public/universalviewer/dist/uv-2.0.1/l10n/be/viewer.properties +103 -0
  50. data/public/universalviewer/dist/uv-2.0.1/l10n/bg/chrome.properties +18 -0
  51. data/public/universalviewer/dist/uv-2.0.1/l10n/bg/viewer.properties +124 -0
  52. data/public/universalviewer/dist/uv-2.0.1/l10n/bn-BD/chrome.properties +18 -0
  53. data/public/universalviewer/dist/uv-2.0.1/l10n/bn-BD/viewer.properties +139 -0
  54. data/public/universalviewer/dist/uv-2.0.1/l10n/bn-IN/chrome.properties +18 -0
  55. data/public/universalviewer/dist/uv-2.0.1/l10n/bn-IN/viewer.properties +139 -0
  56. data/public/universalviewer/dist/uv-2.0.1/l10n/br/chrome.properties +19 -0
  57. data/public/universalviewer/dist/uv-2.0.1/l10n/br/viewer.properties +161 -0
  58. data/public/universalviewer/dist/uv-2.0.1/l10n/bs/chrome.properties +8 -0
  59. data/public/universalviewer/dist/uv-2.0.1/l10n/bs/viewer.properties +125 -0
  60. data/public/universalviewer/dist/uv-2.0.1/l10n/ca/chrome.properties +19 -0
  61. data/public/universalviewer/dist/uv-2.0.1/l10n/ca/viewer.properties +161 -0
  62. data/public/universalviewer/dist/uv-2.0.1/l10n/cs/chrome.properties +19 -0
  63. data/public/universalviewer/dist/uv-2.0.1/l10n/cs/viewer.properties +161 -0
  64. data/public/universalviewer/dist/uv-2.0.1/l10n/csb/chrome.properties +8 -0
  65. data/public/universalviewer/dist/uv-2.0.1/l10n/csb/viewer.properties +134 -0
  66. data/public/universalviewer/dist/uv-2.0.1/l10n/cy/chrome.properties +19 -0
  67. data/public/universalviewer/dist/uv-2.0.1/l10n/cy/viewer.properties +161 -0
  68. data/public/universalviewer/dist/uv-2.0.1/l10n/da/chrome.properties +9 -0
  69. data/public/universalviewer/dist/uv-2.0.1/l10n/da/viewer.properties +161 -0
  70. data/public/universalviewer/dist/uv-2.0.1/l10n/de/chrome.properties +19 -0
  71. data/public/universalviewer/dist/uv-2.0.1/l10n/de/viewer.properties +161 -0
  72. data/public/universalviewer/dist/uv-2.0.1/l10n/el/chrome.properties +9 -0
  73. data/public/universalviewer/dist/uv-2.0.1/l10n/el/viewer.properties +131 -0
  74. data/public/universalviewer/dist/uv-2.0.1/l10n/en-GB/chrome.properties +19 -0
  75. data/public/universalviewer/dist/uv-2.0.1/l10n/en-GB/viewer.properties +161 -0
  76. data/public/universalviewer/dist/uv-2.0.1/l10n/en-US/chrome.properties +19 -0
  77. data/public/universalviewer/dist/uv-2.0.1/l10n/en-US/viewer.properties +161 -0
  78. data/public/universalviewer/dist/uv-2.0.1/l10n/en-ZA/chrome.properties +19 -0
  79. data/public/universalviewer/dist/uv-2.0.1/l10n/en-ZA/viewer.properties +161 -0
  80. data/public/universalviewer/dist/uv-2.0.1/l10n/eo/chrome.properties +19 -0
  81. data/public/universalviewer/dist/uv-2.0.1/l10n/eo/viewer.properties +161 -0
  82. data/public/universalviewer/dist/uv-2.0.1/l10n/es-AR/chrome.properties +19 -0
  83. data/public/universalviewer/dist/uv-2.0.1/l10n/es-AR/viewer.properties +167 -0
  84. data/public/universalviewer/dist/uv-2.0.1/l10n/es-CL/chrome.properties +19 -0
  85. data/public/universalviewer/dist/uv-2.0.1/l10n/es-CL/viewer.properties +126 -0
  86. data/public/universalviewer/dist/uv-2.0.1/l10n/es-ES/chrome.properties +8 -0
  87. data/public/universalviewer/dist/uv-2.0.1/l10n/es-ES/viewer.properties +107 -0
  88. data/public/universalviewer/dist/uv-2.0.1/l10n/es-MX/chrome.properties +19 -0
  89. data/public/universalviewer/dist/uv-2.0.1/l10n/es-MX/viewer.properties +161 -0
  90. data/public/universalviewer/dist/uv-2.0.1/l10n/et/chrome.properties +19 -0
  91. data/public/universalviewer/dist/uv-2.0.1/l10n/et/viewer.properties +161 -0
  92. data/public/universalviewer/dist/uv-2.0.1/l10n/eu/chrome.properties +18 -0
  93. data/public/universalviewer/dist/uv-2.0.1/l10n/eu/viewer.properties +136 -0
  94. data/public/universalviewer/dist/uv-2.0.1/l10n/fa/chrome.properties +18 -0
  95. data/public/universalviewer/dist/uv-2.0.1/l10n/fa/viewer.properties +102 -0
  96. data/public/universalviewer/dist/uv-2.0.1/l10n/ff/chrome.properties +18 -0
  97. data/public/universalviewer/dist/uv-2.0.1/l10n/ff/viewer.properties +123 -0
  98. data/public/universalviewer/dist/uv-2.0.1/l10n/fi/chrome.properties +19 -0
  99. data/public/universalviewer/dist/uv-2.0.1/l10n/fi/viewer.properties +161 -0
  100. data/public/universalviewer/dist/uv-2.0.1/l10n/fr/chrome.properties +18 -0
  101. data/public/universalviewer/dist/uv-2.0.1/l10n/fr/viewer.properties +161 -0
  102. data/public/universalviewer/dist/uv-2.0.1/l10n/fy-NL/chrome.properties +9 -0
  103. data/public/universalviewer/dist/uv-2.0.1/l10n/fy-NL/viewer.properties +167 -0
  104. data/public/universalviewer/dist/uv-2.0.1/l10n/ga-IE/chrome.properties +19 -0
  105. data/public/universalviewer/dist/uv-2.0.1/l10n/ga-IE/viewer.properties +161 -0
  106. data/public/universalviewer/dist/uv-2.0.1/l10n/gd/chrome.properties +19 -0
  107. data/public/universalviewer/dist/uv-2.0.1/l10n/gd/viewer.properties +161 -0
  108. data/public/universalviewer/dist/uv-2.0.1/l10n/gl/chrome.properties +8 -0
  109. data/public/universalviewer/dist/uv-2.0.1/l10n/gl/viewer.properties +124 -0
  110. data/public/universalviewer/dist/uv-2.0.1/l10n/gu-IN/chrome.properties +10 -0
  111. data/public/universalviewer/dist/uv-2.0.1/l10n/gu-IN/viewer.properties +108 -0
  112. data/public/universalviewer/dist/uv-2.0.1/l10n/he/chrome.properties +20 -0
  113. data/public/universalviewer/dist/uv-2.0.1/l10n/he/viewer.properties +150 -0
  114. data/public/universalviewer/dist/uv-2.0.1/l10n/hi-IN/chrome.properties +18 -0
  115. data/public/universalviewer/dist/uv-2.0.1/l10n/hi-IN/viewer.properties +136 -0
  116. data/public/universalviewer/dist/uv-2.0.1/l10n/hr/chrome.properties +18 -0
  117. data/public/universalviewer/dist/uv-2.0.1/l10n/hr/viewer.properties +139 -0
  118. data/public/universalviewer/dist/uv-2.0.1/l10n/hu/chrome.properties +19 -0
  119. data/public/universalviewer/dist/uv-2.0.1/l10n/hu/viewer.properties +161 -0
  120. data/public/universalviewer/dist/uv-2.0.1/l10n/hy-AM/chrome.properties +19 -0
  121. data/public/universalviewer/dist/uv-2.0.1/l10n/hy-AM/viewer.properties +161 -0
  122. data/public/universalviewer/dist/uv-2.0.1/l10n/id/chrome.properties +19 -0
  123. data/public/universalviewer/dist/uv-2.0.1/l10n/id/viewer.properties +167 -0
  124. data/public/universalviewer/dist/uv-2.0.1/l10n/is/chrome.properties +19 -0
  125. data/public/universalviewer/dist/uv-2.0.1/l10n/is/viewer.properties +161 -0
  126. data/public/universalviewer/dist/uv-2.0.1/l10n/it/chrome.properties +8 -0
  127. data/public/universalviewer/dist/uv-2.0.1/l10n/it/viewer.properties +107 -0
  128. data/public/universalviewer/dist/uv-2.0.1/l10n/ja/chrome.properties +19 -0
  129. data/public/universalviewer/dist/uv-2.0.1/l10n/ja/viewer.properties +161 -0
  130. data/public/universalviewer/dist/uv-2.0.1/l10n/ka/chrome.properties +18 -0
  131. data/public/universalviewer/dist/uv-2.0.1/l10n/ka/viewer.properties +124 -0
  132. data/public/universalviewer/dist/uv-2.0.1/l10n/kk/chrome.properties +19 -0
  133. data/public/universalviewer/dist/uv-2.0.1/l10n/kk/viewer.properties +161 -0
  134. data/public/universalviewer/dist/uv-2.0.1/l10n/km/chrome.properties +19 -0
  135. data/public/universalviewer/dist/uv-2.0.1/l10n/km/viewer.properties +161 -0
  136. data/public/universalviewer/dist/uv-2.0.1/l10n/kn/chrome.properties +18 -0
  137. data/public/universalviewer/dist/uv-2.0.1/l10n/kn/viewer.properties +123 -0
  138. data/public/universalviewer/dist/uv-2.0.1/l10n/ko/chrome.properties +19 -0
  139. data/public/universalviewer/dist/uv-2.0.1/l10n/ko/viewer.properties +161 -0
  140. data/public/universalviewer/dist/uv-2.0.1/l10n/ku/chrome.properties +18 -0
  141. data/public/universalviewer/dist/uv-2.0.1/l10n/ku/viewer.properties +136 -0
  142. data/public/universalviewer/dist/uv-2.0.1/l10n/lg/chrome.properties +18 -0
  143. data/public/universalviewer/dist/uv-2.0.1/l10n/lg/viewer.properties +100 -0
  144. data/public/universalviewer/dist/uv-2.0.1/l10n/lij/chrome.properties +7 -0
  145. data/public/universalviewer/dist/uv-2.0.1/l10n/lij/viewer.properties +94 -0
  146. data/public/universalviewer/dist/uv-2.0.1/l10n/locale.properties +312 -0
  147. data/public/universalviewer/dist/uv-2.0.1/l10n/lt/chrome.properties +19 -0
  148. data/public/universalviewer/dist/uv-2.0.1/l10n/lt/viewer.properties +161 -0
  149. data/public/universalviewer/dist/uv-2.0.1/l10n/lv/chrome.properties +9 -0
  150. data/public/universalviewer/dist/uv-2.0.1/l10n/lv/viewer.properties +157 -0
  151. data/public/universalviewer/dist/uv-2.0.1/l10n/mai/chrome.properties +18 -0
  152. data/public/universalviewer/dist/uv-2.0.1/l10n/mai/viewer.properties +123 -0
  153. data/public/universalviewer/dist/uv-2.0.1/l10n/mk/chrome.properties +9 -0
  154. data/public/universalviewer/dist/uv-2.0.1/l10n/mk/viewer.properties +126 -0
  155. data/public/universalviewer/dist/uv-2.0.1/l10n/ml/chrome.properties +18 -0
  156. data/public/universalviewer/dist/uv-2.0.1/l10n/ml/viewer.properties +136 -0
  157. data/public/universalviewer/dist/uv-2.0.1/l10n/mn/chrome.properties +15 -0
  158. data/public/universalviewer/dist/uv-2.0.1/l10n/mn/viewer.properties +65 -0
  159. data/public/universalviewer/dist/uv-2.0.1/l10n/mr/chrome.properties +18 -0
  160. data/public/universalviewer/dist/uv-2.0.1/l10n/mr/viewer.properties +119 -0
  161. data/public/universalviewer/dist/uv-2.0.1/l10n/ms/chrome.properties +19 -0
  162. data/public/universalviewer/dist/uv-2.0.1/l10n/ms/viewer.properties +161 -0
  163. data/public/universalviewer/dist/uv-2.0.1/l10n/my/chrome.properties +18 -0
  164. data/public/universalviewer/dist/uv-2.0.1/l10n/my/viewer.properties +123 -0
  165. data/public/universalviewer/dist/uv-2.0.1/l10n/nb-NO/chrome.properties +19 -0
  166. data/public/universalviewer/dist/uv-2.0.1/l10n/nb-NO/viewer.properties +161 -0
  167. data/public/universalviewer/dist/uv-2.0.1/l10n/nl/chrome.properties +19 -0
  168. data/public/universalviewer/dist/uv-2.0.1/l10n/nl/viewer.properties +161 -0
  169. data/public/universalviewer/dist/uv-2.0.1/l10n/nn-NO/chrome.properties +8 -0
  170. data/public/universalviewer/dist/uv-2.0.1/l10n/nn-NO/viewer.properties +136 -0
  171. data/public/universalviewer/dist/uv-2.0.1/l10n/nso/chrome.properties +18 -0
  172. data/public/universalviewer/dist/uv-2.0.1/l10n/nso/viewer.properties +123 -0
  173. data/public/universalviewer/dist/uv-2.0.1/l10n/oc/chrome.properties +19 -0
  174. data/public/universalviewer/dist/uv-2.0.1/l10n/oc/viewer.properties +161 -0
  175. data/public/universalviewer/dist/uv-2.0.1/l10n/or/chrome.properties +18 -0
  176. data/public/universalviewer/dist/uv-2.0.1/l10n/or/viewer.properties +139 -0
  177. data/public/universalviewer/dist/uv-2.0.1/l10n/pa-IN/chrome.properties +10 -0
  178. data/public/universalviewer/dist/uv-2.0.1/l10n/pa-IN/viewer.properties +175 -0
  179. data/public/universalviewer/dist/uv-2.0.1/l10n/pl/chrome.properties +9 -0
  180. data/public/universalviewer/dist/uv-2.0.1/l10n/pl/viewer.properties +149 -0
  181. data/public/universalviewer/dist/uv-2.0.1/l10n/pt-BR/chrome.properties +19 -0
  182. data/public/universalviewer/dist/uv-2.0.1/l10n/pt-BR/viewer.properties +161 -0
  183. data/public/universalviewer/dist/uv-2.0.1/l10n/pt-PT/chrome.properties +19 -0
  184. data/public/universalviewer/dist/uv-2.0.1/l10n/pt-PT/viewer.properties +166 -0
  185. data/public/universalviewer/dist/uv-2.0.1/l10n/rm/chrome.properties +8 -0
  186. data/public/universalviewer/dist/uv-2.0.1/l10n/rm/viewer.properties +127 -0
  187. data/public/universalviewer/dist/uv-2.0.1/l10n/ro/chrome.properties +27 -0
  188. data/public/universalviewer/dist/uv-2.0.1/l10n/ro/viewer.properties +156 -0
  189. data/public/universalviewer/dist/uv-2.0.1/l10n/ru/chrome.properties +8 -0
  190. data/public/universalviewer/dist/uv-2.0.1/l10n/ru/viewer.properties +107 -0
  191. data/public/universalviewer/dist/uv-2.0.1/l10n/rw/chrome.properties +18 -0
  192. data/public/universalviewer/dist/uv-2.0.1/l10n/rw/viewer.properties +123 -0
  193. data/public/universalviewer/dist/uv-2.0.1/l10n/sah/chrome.properties +18 -0
  194. data/public/universalviewer/dist/uv-2.0.1/l10n/sah/viewer.properties +122 -0
  195. data/public/universalviewer/dist/uv-2.0.1/l10n/si/chrome.properties +17 -0
  196. data/public/universalviewer/dist/uv-2.0.1/l10n/si/viewer.properties +98 -0
  197. data/public/universalviewer/dist/uv-2.0.1/l10n/sk/chrome.properties +19 -0
  198. data/public/universalviewer/dist/uv-2.0.1/l10n/sk/viewer.properties +161 -0
  199. data/public/universalviewer/dist/uv-2.0.1/l10n/sl/chrome.properties +8 -0
  200. data/public/universalviewer/dist/uv-2.0.1/l10n/sl/viewer.properties +136 -0
  201. data/public/universalviewer/dist/uv-2.0.1/l10n/son/chrome.properties +18 -0
  202. data/public/universalviewer/dist/uv-2.0.1/l10n/son/viewer.properties +120 -0
  203. data/public/universalviewer/dist/uv-2.0.1/l10n/sq/chrome.properties +19 -0
  204. data/public/universalviewer/dist/uv-2.0.1/l10n/sq/viewer.properties +160 -0
  205. data/public/universalviewer/dist/uv-2.0.1/l10n/sr/chrome.properties +18 -0
  206. data/public/universalviewer/dist/uv-2.0.1/l10n/sr/viewer.properties +123 -0
  207. data/public/universalviewer/dist/uv-2.0.1/l10n/sv-SE/chrome.properties +19 -0
  208. data/public/universalviewer/dist/uv-2.0.1/l10n/sv-SE/viewer.properties +161 -0
  209. data/public/universalviewer/dist/uv-2.0.1/l10n/sw/chrome.properties +18 -0
  210. data/public/universalviewer/dist/uv-2.0.1/l10n/sw/viewer.properties +121 -0
  211. data/public/universalviewer/dist/uv-2.0.1/l10n/ta-LK/chrome.properties +3 -0
  212. data/public/universalviewer/dist/uv-2.0.1/l10n/ta-LK/viewer.properties +50 -0
  213. data/public/universalviewer/dist/uv-2.0.1/l10n/ta/chrome.properties +19 -0
  214. data/public/universalviewer/dist/uv-2.0.1/l10n/ta/viewer.properties +161 -0
  215. data/public/universalviewer/dist/uv-2.0.1/l10n/te/chrome.properties +18 -0
  216. data/public/universalviewer/dist/uv-2.0.1/l10n/te/viewer.properties +145 -0
  217. data/public/universalviewer/dist/uv-2.0.1/l10n/th/chrome.properties +19 -0
  218. data/public/universalviewer/dist/uv-2.0.1/l10n/th/viewer.properties +161 -0
  219. data/public/universalviewer/dist/uv-2.0.1/l10n/tl/chrome.properties +17 -0
  220. data/public/universalviewer/dist/uv-2.0.1/l10n/tl/viewer.properties +83 -0
  221. data/public/universalviewer/dist/uv-2.0.1/l10n/tn/chrome.properties +15 -0
  222. data/public/universalviewer/dist/uv-2.0.1/l10n/tn/viewer.properties +68 -0
  223. data/public/universalviewer/dist/uv-2.0.1/l10n/tr/chrome.properties +19 -0
  224. data/public/universalviewer/dist/uv-2.0.1/l10n/tr/viewer.properties +161 -0
  225. data/public/universalviewer/dist/uv-2.0.1/l10n/uk/chrome.properties +18 -0
  226. data/public/universalviewer/dist/uv-2.0.1/l10n/uk/viewer.properties +136 -0
  227. data/public/universalviewer/dist/uv-2.0.1/l10n/ur/chrome.properties +19 -0
  228. data/public/universalviewer/dist/uv-2.0.1/l10n/ur/viewer.properties +161 -0
  229. data/public/universalviewer/dist/uv-2.0.1/l10n/vi/chrome.properties +18 -0
  230. data/public/universalviewer/dist/uv-2.0.1/l10n/vi/viewer.properties +120 -0
  231. data/public/universalviewer/dist/uv-2.0.1/l10n/wo/chrome.properties +18 -0
  232. data/public/universalviewer/dist/uv-2.0.1/l10n/wo/viewer.properties +116 -0
  233. data/public/universalviewer/dist/uv-2.0.1/l10n/xh/chrome.properties +19 -0
  234. data/public/universalviewer/dist/uv-2.0.1/l10n/xh/viewer.properties +161 -0
  235. data/public/universalviewer/dist/uv-2.0.1/l10n/zh-CN/chrome.properties +19 -0
  236. data/public/universalviewer/dist/uv-2.0.1/l10n/zh-CN/viewer.properties +161 -0
  237. data/public/universalviewer/dist/uv-2.0.1/l10n/zh-TW/chrome.properties +20 -0
  238. data/public/universalviewer/dist/uv-2.0.1/l10n/zh-TW/viewer.properties +162 -0
  239. data/public/universalviewer/dist/uv-2.0.1/l10n/zu/chrome.properties +18 -0
  240. data/public/universalviewer/dist/uv-2.0.1/l10n/zu/viewer.properties +124 -0
  241. data/public/universalviewer/dist/uv-2.0.1/lib/Detector.js +67 -0
  242. data/public/universalviewer/dist/uv-2.0.1/lib/README.md +9 -0
  243. data/public/universalviewer/dist/uv-2.0.1/lib/app.js +9 -0
  244. data/public/universalviewer/dist/uv-2.0.1/lib/bundle.min.js +11 -0
  245. data/public/universalviewer/dist/uv-2.0.1/lib/compatibility.js +559 -0
  246. data/public/universalviewer/dist/uv-2.0.1/lib/embed.js +553 -0
  247. data/public/universalviewer/dist/uv-2.0.1/lib/flashmediaelement.swf +0 -0
  248. data/public/universalviewer/dist/uv-2.0.1/lib/iiif-gallery-component.js +475 -0
  249. data/public/universalviewer/dist/uv-2.0.1/lib/iiif-metadata-component.js +458 -0
  250. data/public/universalviewer/dist/uv-2.0.1/lib/iiif-tree-component.js +293 -0
  251. data/public/universalviewer/dist/uv-2.0.1/lib/l10n.js +1007 -0
  252. data/public/universalviewer/dist/uv-2.0.1/lib/mediaelement-and-player.js +4288 -0
  253. data/public/universalviewer/dist/uv-2.0.1/lib/openseadragon.min.js +15 -0
  254. data/public/universalviewer/dist/uv-2.0.1/lib/pdf.js +8568 -0
  255. data/public/universalviewer/dist/uv-2.0.1/lib/pdf.min.js +197 -0
  256. data/public/universalviewer/dist/uv-2.0.1/lib/pdf.worker.js +42400 -0
  257. data/public/universalviewer/dist/uv-2.0.1/lib/pdf.worker.min.js +891 -0
  258. data/public/universalviewer/dist/uv-2.0.1/lib/pdf_combined.js +937 -0
  259. data/public/universalviewer/dist/uv-2.0.1/lib/pdfobject.js +250 -0
  260. data/public/universalviewer/dist/uv-2.0.1/lib/stats.min.js +7 -0
  261. data/public/universalviewer/dist/uv-2.0.1/lib/three.min.js +870 -0
  262. data/public/universalviewer/dist/uv-2.0.1/lib/uv-mediaelement-extension-dependencies.js +5 -0
  263. data/public/universalviewer/dist/uv-2.0.1/lib/uv-mediaelement-extension.cy-GB.config.json +1 -0
  264. data/public/universalviewer/dist/uv-2.0.1/lib/uv-mediaelement-extension.en-GB.config.json +1 -0
  265. data/public/universalviewer/dist/uv-2.0.1/lib/uv-pdf-extension-dependencies.js +5 -0
  266. data/public/universalviewer/dist/uv-2.0.1/lib/uv-pdf-extension.cy-GB.config.json +1 -0
  267. data/public/universalviewer/dist/uv-2.0.1/lib/uv-pdf-extension.en-GB.config.json +1 -0
  268. data/public/universalviewer/dist/uv-2.0.1/lib/uv-seadragon-extension-dependencies.js +5 -0
  269. data/public/universalviewer/dist/uv-2.0.1/lib/uv-seadragon-extension.cy-GB.config.json +1 -0
  270. data/public/universalviewer/dist/uv-2.0.1/lib/uv-seadragon-extension.en-GB.config.json +1 -0
  271. data/public/universalviewer/dist/uv-2.0.1/lib/uv-virtex-extension-dependencies.js +5 -0
  272. data/public/universalviewer/dist/uv-2.0.1/lib/uv-virtex-extension.cy-GB.config.json +1 -0
  273. data/public/universalviewer/dist/uv-2.0.1/lib/uv-virtex-extension.en-GB.config.json +1 -0
  274. data/public/universalviewer/dist/uv-2.0.1/lib/viewer.js +5861 -0
  275. data/public/universalviewer/dist/uv-2.0.1/lib/viewer.min.js +178 -0
  276. data/public/universalviewer/dist/uv-2.0.1/lib/virtex.js +343 -0
  277. data/public/universalviewer/dist/uv-2.0.1/package.json +70 -0
  278. data/public/universalviewer/dist/uv-2.0.1/schema/uv-mediaelement-extension.cy-GB.schema.json +1 -0
  279. data/public/universalviewer/dist/uv-2.0.1/schema/uv-mediaelement-extension.en-GB.schema.json +1 -0
  280. data/public/universalviewer/dist/uv-2.0.1/schema/uv-pdf-extension.cy-GB.schema.json +1 -0
  281. data/public/universalviewer/dist/uv-2.0.1/schema/uv-pdf-extension.en-GB.schema.json +1 -0
  282. data/public/universalviewer/dist/uv-2.0.1/schema/uv-seadragon-extension.cy-GB.schema.json +1 -0
  283. data/public/universalviewer/dist/uv-2.0.1/schema/uv-seadragon-extension.en-GB.schema.json +1 -0
  284. data/public/universalviewer/dist/uv-2.0.1/schema/uv-virtex-extension.cy-GB.schema.json +1 -0
  285. data/public/universalviewer/dist/uv-2.0.1/schema/uv-virtex-extension.en-GB.schema.json +1 -0
  286. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css +3178 -0
  287. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css +4044 -0
  288. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css +3185 -0
  289. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css +2455 -0
  290. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/padlock.png +0 -0
  291. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png +0 -0
  292. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png +0 -0
  293. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png +0 -0
  294. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png +0 -0
  295. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif +0 -0
  296. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-moreinforightpanel-module/copy.png +0 -0
  297. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png +0 -0
  298. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png +0 -0
  299. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png +0 -0
  300. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/first.png +0 -0
  301. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/grid.png +0 -0
  302. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/last.png +0 -0
  303. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/next.png +0 -0
  304. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/one_up.png +0 -0
  305. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/prev.png +0 -0
  306. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/settings.png +0 -0
  307. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/two_up.png +0 -0
  308. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg +11 -0
  309. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg +16 -0
  310. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg +26 -0
  311. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg +10 -0
  312. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg +11 -0
  313. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg +11 -0
  314. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg +7 -0
  315. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg +42 -0
  316. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg +16 -0
  317. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png +0 -0
  318. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png +0 -0
  319. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png +0 -0
  320. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png +0 -0
  321. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png +0 -0
  322. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png +0 -0
  323. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png +0 -0
  324. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png +0 -0
  325. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grab.cur +0 -0
  326. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur +0 -0
  327. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif +0 -0
  328. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png +0 -0
  329. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png +0 -0
  330. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png +0 -0
  331. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png +0 -0
  332. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png +0 -0
  333. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png +0 -0
  334. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png +0 -0
  335. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png +0 -0
  336. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png +0 -0
  337. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png +0 -0
  338. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  339. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png +0 -0
  340. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png +0 -0
  341. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/shadow.png +0 -0
  342. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/texture.png +0 -0
  343. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png +0 -0
  344. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png +0 -0
  345. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png +0 -0
  346. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png +0 -0
  347. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png +0 -0
  348. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png +0 -0
  349. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png +0 -0
  350. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png +0 -0
  351. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png +0 -0
  352. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png +0 -0
  353. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png +0 -0
  354. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png +0 -0
  355. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png +0 -0
  356. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png +0 -0
  357. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png +0 -0
  358. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png +0 -0
  359. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png +0 -0
  360. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png +0 -0
  361. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png +0 -0
  362. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png +0 -0
  363. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png +0 -0
  364. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png +0 -0
  365. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  366. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  367. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png +0 -0
  368. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  369. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png +0 -0
  370. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  371. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png +0 -0
  372. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png +0 -0
  373. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png +0 -0
  374. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png +0 -0
  375. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png +0 -0
  376. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png +0 -0
  377. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png +0 -0
  378. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png +0 -0
  379. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png +0 -0
  380. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png +0 -0
  381. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png +0 -0
  382. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png +0 -0
  383. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png +0 -0
  384. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png +0 -0
  385. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png +0 -0
  386. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/home.png +0 -0
  387. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png +0 -0
  388. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png +0 -0
  389. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif +0 -0
  390. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png +0 -0
  391. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png +0 -0
  392. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png +0 -0
  393. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png +0 -0
  394. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png +0 -0
  395. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png +0 -0
  396. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png +0 -0
  397. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/next.png +0 -0
  398. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png +0 -0
  399. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png +0 -0
  400. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png +0 -0
  401. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/prev.png +0 -0
  402. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/search.png +0 -0
  403. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/spinner.gif +0 -0
  404. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_left.png +0 -0
  405. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_right.png +0 -0
  406. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/bookmark.png +0 -0
  407. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/close.png +0 -0
  408. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/close_attribution.png +0 -0
  409. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/close_information_box.png +0 -0
  410. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/close_message_box.png +0 -0
  411. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/copy.png +0 -0
  412. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/dialogue_arrow.png +0 -0
  413. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/download.png +0 -0
  414. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/embed.png +0 -0
  415. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/error.png +0 -0
  416. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/exit_fullscreen.png +0 -0
  417. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/feedback.png +0 -0
  418. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/fullscreen.png +0 -0
  419. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/hidden_thumb.png +0 -0
  420. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/iiif.png +0 -0
  421. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/minus.png +0 -0
  422. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/modal_bg.gif +0 -0
  423. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/moreinfo.png +0 -0
  424. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/open.png +0 -0
  425. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/plus.png +0 -0
  426. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/print.png +0 -0
  427. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/search_result.png +0 -0
  428. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/settings.png +0 -0
  429. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/share.png +0 -0
  430. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/sprite.png +0 -0
  431. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-shared-module/unavailable.png +0 -0
  432. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png +0 -0
  433. data/public/universalviewer/dist/uv-2.0.1/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png +0 -0
  434. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css +3172 -0
  435. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css +4035 -0
  436. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css +3178 -0
  437. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css +2448 -0
  438. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/hamburger.png +0 -0
  439. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/padlock.png +0 -0
  440. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png +0 -0
  441. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png +0 -0
  442. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png +0 -0
  443. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png +0 -0
  444. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif +0 -0
  445. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-moreinforightpanel-module/copy.png +0 -0
  446. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png +0 -0
  447. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png +0 -0
  448. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png +0 -0
  449. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/first.png +0 -0
  450. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/grid.png +0 -0
  451. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/last.png +0 -0
  452. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/next.png +0 -0
  453. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/one_up.png +0 -0
  454. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/prev.png +0 -0
  455. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/settings.png +0 -0
  456. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/two_up.png +0 -0
  457. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg +11 -0
  458. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg +16 -0
  459. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg +26 -0
  460. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg +10 -0
  461. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg +11 -0
  462. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg +11 -0
  463. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg +7 -0
  464. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg +42 -0
  465. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg +16 -0
  466. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png +0 -0
  467. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png +0 -0
  468. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png +0 -0
  469. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png +0 -0
  470. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png +0 -0
  471. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png +0 -0
  472. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png +0 -0
  473. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png +0 -0
  474. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grab.cur +0 -0
  475. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur +0 -0
  476. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif +0 -0
  477. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png +0 -0
  478. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png +0 -0
  479. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png +0 -0
  480. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png +0 -0
  481. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png +0 -0
  482. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png +0 -0
  483. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png +0 -0
  484. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png +0 -0
  485. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png +0 -0
  486. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png +0 -0
  487. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  488. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png +0 -0
  489. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png +0 -0
  490. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/shadow.png +0 -0
  491. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/texture.png +0 -0
  492. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png +0 -0
  493. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png +0 -0
  494. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png +0 -0
  495. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png +0 -0
  496. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png +0 -0
  497. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png +0 -0
  498. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png +0 -0
  499. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png +0 -0
  500. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png +0 -0
  501. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png +0 -0
  502. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png +0 -0
  503. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png +0 -0
  504. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png +0 -0
  505. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png +0 -0
  506. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png +0 -0
  507. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png +0 -0
  508. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png +0 -0
  509. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png +0 -0
  510. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png +0 -0
  511. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png +0 -0
  512. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png +0 -0
  513. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png +0 -0
  514. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  515. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  516. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png +0 -0
  517. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  518. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png +0 -0
  519. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  520. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png +0 -0
  521. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png +0 -0
  522. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png +0 -0
  523. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png +0 -0
  524. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png +0 -0
  525. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png +0 -0
  526. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png +0 -0
  527. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png +0 -0
  528. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png +0 -0
  529. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png +0 -0
  530. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png +0 -0
  531. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png +0 -0
  532. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png +0 -0
  533. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png +0 -0
  534. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png +0 -0
  535. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/home.png +0 -0
  536. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png +0 -0
  537. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png +0 -0
  538. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif +0 -0
  539. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png +0 -0
  540. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png +0 -0
  541. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png +0 -0
  542. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png +0 -0
  543. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png +0 -0
  544. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png +0 -0
  545. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png +0 -0
  546. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/next.png +0 -0
  547. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png +0 -0
  548. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png +0 -0
  549. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png +0 -0
  550. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/prev.png +0 -0
  551. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/search.png +0 -0
  552. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/spinner.gif +0 -0
  553. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/arrows_left.png +0 -0
  554. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/arrows_right.png +0 -0
  555. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/bookmark.png +0 -0
  556. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/close.png +0 -0
  557. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/close_attribution.png +0 -0
  558. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/close_information_box.png +0 -0
  559. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/close_message_box.png +0 -0
  560. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/copy.png +0 -0
  561. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/dialogue_arrow.png +0 -0
  562. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/download.png +0 -0
  563. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/embed.png +0 -0
  564. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/error.png +0 -0
  565. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/exit_fullscreen.png +0 -0
  566. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/feedback.png +0 -0
  567. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/fullscreen.png +0 -0
  568. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/hidden_thumb.png +0 -0
  569. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/iiif.png +0 -0
  570. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/minus.png +0 -0
  571. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/modal_bg.gif +0 -0
  572. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/moreinfo.png +0 -0
  573. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/open.png +0 -0
  574. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/plus.png +0 -0
  575. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/print.png +0 -0
  576. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/search_result.png +0 -0
  577. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/settings.png +0 -0
  578. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/share.png +0 -0
  579. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/sprite.png +0 -0
  580. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-shared-module/unavailable.png +0 -0
  581. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png +0 -0
  582. data/public/universalviewer/dist/uv-2.0.1/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png +0 -0
  583. data/public/universalviewer/favicon.ico +0 -0
  584. data/public/universalviewer/gulpfile.js +13 -0
  585. data/public/universalviewer/package.json +70 -0
  586. data/public/universalviewer/typings.json +20 -0
  587. data/pul_uv_rails.gemspec +26 -0
  588. metadata +687 -0
@@ -0,0 +1,937 @@
1
+ "undefined"===typeof PDFJS&&(("undefined"!==typeof window?window:this).PDFJS={});PDFJS.version="1.0.83";PDFJS.build="0045325";
2
+ (function(){function G(a){PDFJS.verbosity>=PDFJS.VERBOSITY_LEVELS.infos&&console.log("Info: "+a)}function z(a){PDFJS.verbosity>=PDFJS.VERBOSITY_LEVELS.warnings&&console.log("Warning: "+a)}function v(a){if(1<arguments.length){var b=["Error:"];b.push.apply(b,arguments);console.log.apply(console,b);a=[].join.call(arguments," ")}else console.log("Error: "+a);console.log(Eb());wa.notify(Fb.unknown);throw Error(a);}function Eb(){try{throw Error();}catch(a){return a.stack?a.stack.split("\n").slice(2).join("\n"):
3
+ ""}}function Gb(a,b){if(!b)return a;if(/^[a-z][a-z0-9+\-.]*:/i.test(b))return b;var c;if("/"==b.charAt(0))return c=a.indexOf("://"),"/"===b.charAt(1)?++c:c=a.indexOf("/",c+3),a.substring(0,c)+b;var d=a.length;c=a.lastIndexOf("#");d=0<=c?c:d;c=a.lastIndexOf("?",d);c=a.lastIndexOf("/",0<=c?c:d);return a.substring(0,c+1)+b}function ea(a,b){if(!a)return!1;var c=/^[a-z][a-z0-9+\-.]*(?=:)/i.exec(a);if(!c)return b;c=c[0].toLowerCase();switch(c){case "http":case "https":case "ftp":case "mailto":return!0;
4
+ default:return!1}}function K(a,b,c){Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!1});return c}function T(a){var b,c=a.length,d=[];if("\u00fe"===a[0]&&"\u00ff"===a[1])for(b=2;b<c;b+=2)d.push(String.fromCharCode(a.charCodeAt(b)<<8|a.charCodeAt(b+1)));else for(b=0;b<c;++b){var e=Hb[a.charCodeAt(b)];d.push(e?String.fromCharCode(e):a.charAt(b))}return d.join("")}function L(a){return"boolean"==typeof a}function I(a){return a instanceof Name}function U(a,b){if(!(a instanceof
5
+ Dict))return!1;if(!b)return!0;var c=a.get("Type");return I(c)&&c.name==b}function B(a){return a instanceof Array}function xa(a){return"object"==typeof a&&null!==a&&void 0!==a&&"getBytes"in a}function fa(a,b){this.name=a;this.comObj=b;this.callbackIndex=1;this.postMessageTransfers=!0;var c=this.callbacks={},d=this.actionHandler={};d.console_log=[function(a){console.log.apply(console,a)}];d.console_error=[function(a){console.error.apply(console,a)}];d._unsupported_feature=[function(a){wa.notify(a)}];
6
+ b.onmessage=function(a){var f=a.data;if(f.isReply)if(a=f.callbackId,f.callbackId in c){var g=c[a];delete c[a];g(f.data)}else v("Cannot resolve callback "+a);else if(f.action in d)if(a=d[f.action],f.callbackId){var h={},g=new Promise(function(a,b){h.resolve=a;h.reject=b});h.promise=g;g.then(function(a){b.postMessage({isReply:!0,callbackId:f.callbackId,data:a})});a[0].call(a[1],f.data,h)}else a[0].call(a[1],f.data);else v("Unkown action from worker: "+f.action)}}function ya(a,b){var c=document.createElement("canvas");
7
+ c.width=a;c.height=b;return c}function za(a){a.mozCurrentTransform||(a._scaleX=a._scaleX||1,a._scaleY=a._scaleY||1,a._originalSave=a.save,a._originalRestore=a.restore,a._originalRotate=a.rotate,a._originalScale=a.scale,a._originalTranslate=a.translate,a._originalTransform=a.transform,a._originalSetTransform=a.setTransform,a._transformMatrix=[a._scaleX,0,0,a._scaleY,0,0],a._transformStack=[],Object.defineProperty(a,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(a,
8
+ "mozCurrentTransformInverse",{get:function(){var a=this._transformMatrix,c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],a=a[5],h=c*f-d*e,j=d*e-c*f;return[f/h,d/j,e/j,c/h,(f*g-e*a)/j,(d*g-c*a)/h]}}),a.save=function(){var a=this._transformMatrix;this._transformStack.push(a);this._transformMatrix=a.slice(0,6);this._originalSave()},a.restore=function(){var a=this._transformStack.pop();a&&(this._transformMatrix=a,this._originalRestore())},a.translate=function(a,c){var d=this._transformMatrix;d[4]=d[0]*a+d[2]*c+d[4];
9
+ d[5]=d[1]*a+d[3]*c+d[5];this._originalTranslate(a,c)},a.scale=function(a,c){var d=this._transformMatrix;d[0]*=a;d[1]*=a;d[2]*=c;d[3]*=c;this._originalScale(a,c)},a.transform=function(b,c,d,e,f,g){var h=this._transformMatrix;this._transformMatrix=[h[0]*b+h[2]*c,h[1]*b+h[3]*c,h[0]*d+h[2]*e,h[1]*d+h[3]*e,h[0]*f+h[2]*g+h[4],h[1]*f+h[3]*g+h[5]];a._originalTransform(b,c,d,e,f,g)},a.setTransform=function(b,c,d,e,f,g){this._transformMatrix=[b,c,d,e,f,g];a._originalSetTransform(b,c,d,e,f,g)},a.rotate=function(a){var c=
10
+ Math.cos(a),d=Math.sin(a),e=this._transformMatrix;this._transformMatrix=[e[0]*c+e[2]*d,e[1]*c+e[3]*d,e[0]*-d+e[2]*c,e[1]*-d+e[3]*c,e[4],e[5]];this._originalRotate(a)})}function Aa(a){var b=ga[a[0]];b||v("Unknown IR type: "+a[0]);return b.fromIR(a)}var y="undefined"===typeof window?this:window,V="undefined"==typeof window,ha=[0.001,0,0,0.001,0,0];y.PDFJS||(y.PDFJS={});y.PDFJS.pdfBug=!1;PDFJS.VERBOSITY_LEVELS={errors:0,warnings:1,infos:5};var J=PDFJS.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,
11
+ setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,
12
+ nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,
13
+ beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90},Fb=PDFJS.UNSUPPORTED_FEATURES={unknown:"unknown",
14
+ forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},ia=[],wa=PDFJS.UnsupportedManager={listen:function(a){ia.push(a)},notify:function(a){z('Unsupported feature "'+a+'"');for(var b=0,c=ia.length;b<c;b++)ia[b](a)}};PDFJS.isValidUrl=ea;var Ba=PDFJS.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},W=function(a){this.message=a};W.prototype=Error();W.prototype.name="NotImplementedException";W.constructor=W;Object.defineProperty(PDFJS,"isLittleEndian",
15
+ {configurable:!0,get:function(){var a=PDFJS,b=new Uint8Array(2);b[0]=1;b=new Uint16Array(b.buffer);return K(a,"isLittleEndian",1===b[0])}});Object.defineProperty(PDFJS,"hasCanvasTypedArrays",{configurable:!0,get:function(){var a=PDFJS,b=document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d").createImageData(1,1);return K(a,"hasCanvasTypedArrays","undefined"!==typeof b.data.buffer)}});var ja=function(a,b){this.buffer=a;this.byteLength=a.length;for(var c=this.length=void 0===b?this.byteLength>>
16
+ 2:b;Y<c;)Object.defineProperty(ja.prototype,Y,Ib(Y)),Y++},Ib=function(a){return{get:function(){var b=this.buffer,c=a<<2;return(b[c]|b[c+1]<<8|b[c+2]<<16|b[c+3]<<24)>>>0},set:function(b){var c=this.buffer,d=a<<2;c[d]=b&255;c[d+1]=b>>8&255;c[d+2]=b>>16&255;c[d+3]=b>>>24&255}}};ja.prototype=Object.create(null);var Y=0,Ca=[1,0,0,1,0,0],Jb=PDFJS,u=function(){};u.makeCssRgb=function(a){return"rgb("+a[0]+","+a[1]+","+a[2]+")"};u.makeCssCmyk=function(a){a=s.singletons.cmyk.getRgb(a,0);return u.makeCssRgb(a)};
17
+ u.transform=function(a,b){return[a[0]*b[0]+a[2]*b[1],a[1]*b[0]+a[3]*b[1],a[0]*b[2]+a[2]*b[3],a[1]*b[2]+a[3]*b[3],a[0]*b[4]+a[2]*b[5]+a[4],a[1]*b[4]+a[3]*b[5]+a[5]]};u.applyTransform=function(a,b){return[a[0]*b[0]+a[1]*b[2]+b[4],a[0]*b[1]+a[1]*b[3]+b[5]]};u.applyInverseTransform=function(a,b){var c=b[0]*b[3]-b[1]*b[2];return[(a[0]*b[3]-a[1]*b[2]+b[2]*b[5]-b[4]*b[3])/c,(-a[0]*b[1]+a[1]*b[0]+b[4]*b[1]-b[5]*b[0])/c]};u.getAxialAlignedBoundingBox=function(a,b){var c=u.applyTransform(a,b),d=u.applyTransform(a.slice(2,
18
+ 4),b),e=u.applyTransform([a[0],a[3]],b),f=u.applyTransform([a[2],a[1]],b);return[Math.min(c[0],d[0],e[0],f[0]),Math.min(c[1],d[1],e[1],f[1]),Math.max(c[0],d[0],e[0],f[0]),Math.max(c[1],d[1],e[1],f[1])]};u.inverseTransform=function(a){var b=a[0]*a[3]-a[1]*a[2];return[a[3]/b,-a[1]/b,-a[2]/b,a[0]/b,(a[2]*a[5]-a[4]*a[3])/b,(a[4]*a[1]-a[5]*a[0])/b]};u.apply3dTransform=function(a,b){return[a[0]*b[0]+a[1]*b[1]+a[2]*b[2],a[3]*b[0]+a[4]*b[1]+a[5]*b[2],a[6]*b[0]+a[7]*b[1]+a[8]*b[2]]};u.singularValueDecompose2dScale=
19
+ function(a){var b=[a[0],a[2],a[1],a[3]],c=a[0]*b[0]+a[1]*b[2],d=a[2]*b[1]+a[3]*b[3],e=(c+d)/2;a=Math.sqrt((c+d)*(c+d)-4*(c*d-(a[2]*b[0]+a[3]*b[2])*(a[0]*b[1]+a[1]*b[3])))/2;b=e-a||1;return[Math.sqrt(e+a||1),Math.sqrt(b)]};u.normalizeRect=function(a){var b=a.slice(0);a[0]>a[2]&&(b[0]=a[2],b[2]=a[0]);a[1]>a[3]&&(b[1]=a[3],b[3]=a[1]);return b};u.intersect=function(a,b){function c(a,b){return a-b}var d=[a[0],a[2],b[0],b[2]].sort(c),e=[a[1],a[3],b[1],b[3]].sort(c),f=[];a=u.normalizeRect(a);b=u.normalizeRect(b);
20
+ if(d[0]===a[0]&&d[1]===b[0]||d[0]===b[0]&&d[1]===a[0])f[0]=d[1],f[2]=d[2];else return!1;if(e[0]===a[1]&&e[1]===b[1]||e[0]===b[1]&&e[1]===a[1])f[1]=e[1],f[3]=e[2];else return!1;return f};u.sign=function(a){return 0>a?-1:1};u.concatenateToArray=function(a,b){Array.prototype.push.apply(a,b)};u.prependToArray=function(a,b){Array.prototype.unshift.apply(a,b)};u.extendObj=function(a,b){for(var c in b)a[c]=b[c]};u.getInheritableProperty=function(a,b){for(;a&&!a.has(b);)a=a.get("Parent");return!a?null:a.get(b)};
21
+ u.inherit=function(a,b,c){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;for(var d in c)a.prototype[d]=c[d]};u.loadScript=function(a,b){var c=document.createElement("script"),d=!1;c.setAttribute("src",a);b&&(c.onload=function(){d||b();d=!0});document.getElementsByTagName("head")[0].appendChild(c)};var t=Jb.Util=u,Kb=PDFJS,ka=function(a,b,c,d,e,f){this.viewBox=a;this.scale=b;this.rotation=c;this.offsetX=d;this.offsetY=e;var g=(a[2]+a[0])/2,h=(a[3]+a[1])/2,j,k,l;c%=360;switch(0>c?
22
+ c+360:c){case 180:c=-1;k=j=0;l=1;break;case 90:c=0;k=j=1;l=0;break;case 270:c=0;k=j=-1;l=0;break;default:c=1,k=j=0,l=-1}f&&(k=-k,l=-l);0===c?(d=Math.abs(h-a[1])*b+d,e=Math.abs(g-a[0])*b+e,f=Math.abs(a[3]-a[1])*b,a=Math.abs(a[2]-a[0])*b):(d=Math.abs(g-a[0])*b+d,e=Math.abs(h-a[1])*b+e,f=Math.abs(a[2]-a[0])*b,a=Math.abs(a[3]-a[1])*b);this.transform=[c*b,j*b,k*b,l*b,d-c*b*g-k*b*h,e-j*b*g-l*b*h];this.width=f;this.height=a;this.fontScale=b};ka.prototype={clone:function(a){a=a||{};var b="scale"in a?a.scale:
23
+ this.scale,c="rotation"in a?a.rotation:this.rotation;return new ka(this.viewBox.slice(),b,c,this.offsetX,this.offsetY,a.dontFlip)},convertToViewportPoint:function(a,b){return t.applyTransform([a,b],this.transform)},convertToViewportRectangle:function(a){var b=t.applyTransform([a[0],a[1]],this.transform);a=t.applyTransform([a[2],a[3]],this.transform);return[b[0],b[1],a[0],a[1]]},convertToPdfPoint:function(a,b){return t.applyInverseTransform([a,b],this.transform)}};Kb.PageViewport=ka;var Hb=[0,0,0,
24
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,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,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],N=PDFJS.LegacyPromise=function(){var a,b,c=new Promise(function(c,e){a=c;b=e});c.resolve=
25
+ a;c.reject=b;return c};var H=function(a){this._status=Da;this._handlers=[];a.call(this,this._resolve.bind(this),this._reject.bind(this))};if(y.Promise)"function"!==typeof y.Promise.all&&(y.Promise.all=function(a){var b=0,c=[],d,e,f=new y.Promise(function(a,b){d=a;e=b});a.forEach(function(a,f){b++;a.then(function(a){c[f]=a;b--;0===b&&d(c)},e)});0===b&&d(c);return f}),"function"!==typeof y.Promise.resolve&&(y.Promise.resolve=function(a){return new y.Promise(function(b){b(a)})});else{var Da=0,O=2,la=
26
+ {handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(a){a._status!=Da&&(this.handlers=this.handlers.concat(a._handlers),a._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(var a=Date.now()+1;0<this.handlers.length;){var b=this.handlers.shift(),c=b.thisPromise._status,d=b.thisPromise._value;try{1===c?"function"==typeof b.onResolve&&(d=b.onResolve(d)):"function"===typeof b.onReject&&(d=b.onReject(d),
27
+ c=1,b.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(b.thisPromise))}catch(e){c=O,d=e}b.nextPromise._updateStatus(c,d);if(Date.now()>=a)break}0<this.handlers.length?setTimeout(this.runHandlers.bind(this),0):this.running=!1},addUnhandledRejection:function(a){this.unhandledRejections.push({promise:a,time:Date.now()});this.scheduleRejectionCheck()},removeUnhandeledRejection:function(a){a._unhandledRejection=!1;for(var b=0;b<this.unhandledRejections.length;b++)this.unhandledRejections[b].promise===
28
+ a&&(this.unhandledRejections.splice(b),b--)},scheduleRejectionCheck:function(){this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){this.pendingRejectionCheck=!1;for(var a=Date.now(),b=0;b<this.unhandledRejections.length;b++)if(500<a-this.unhandledRejections[b].time){var c=this.unhandledRejections[b].promise._value,d="Unhandled rejection: "+c;c.stack&&(d+="\n"+c.stack);z(d);this.unhandledRejections.splice(b);b--}this.unhandledRejections.length&&this.scheduleRejectionCheck()}.bind(this),
29
+ 500))}};H.all=function(a){function b(a){e._status!==O&&(g=[],d(a))}var c,d,e=new H(function(a,b){c=a;d=b}),f=a.length,g=[];if(0===f)return c(g),e;for(var h=0,j=a.length;h<j;++h){var k=a[h],l=function(a){return function(b){e._status!==O&&(g[a]=b,f--,0===f&&c(g))}}(h);H.isPromise(k)?k.then(l,b):l(k)}return e};H.isPromise=function(a){return a&&"function"===typeof a.then};H.resolve=function(a){return new H(function(b){b(a)})};H.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,
30
+ _updateStatus:function(a,b){1===this._status||this._status===O||(1==a&&H.isPromise(b)?b.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,O)):(this._status=a,this._value=b,a===O&&0===this._handlers.length&&(this._unhandledRejection=!0,la.addUnhandledRejection(this)),la.scheduleHandlers(this)))},_resolve:function(a){this._updateStatus(1,a)},_reject:function(a){this._updateStatus(O,a)},then:function(a,b){var c=new H(function(a,b){this.reject=this.resolve=b});this._handlers.push({thisPromise:this,
31
+ onResolve:a,onReject:b,nextPromise:c});la.scheduleHandlers(this);return c}};y.Promise=H}var Ea=function(){this.started={};this.times=[];this.enabled=!0};Ea.prototype={time:function(a){this.enabled&&(a in this.started&&z("Timer is already running for "+a),this.started[a]=Date.now())},timeEnd:function(a){this.enabled&&(a in this.started||z("Timer has not been started for "+a),this.times.push({name:a,start:this.started[a],end:Date.now()}),delete this.started[a])},toString:function(){var a,b,c=this.times,
32
+ d="",e=0;a=0;for(b=c.length;a<b;++a){var f=c[a].name;f.length>e&&(e=f.length)}a=0;for(b=c.length;a<b;++a){for(var g=c[a],f=g.end-g.start,g=g.name;g.length<e;)g+=" ";d+=g+" "+f+"ms\n"}return d}};PDFJS.createBlob=function(a,b){if("undefined"!==typeof Blob)return new Blob([a],{type:b});var c=new MozBlobBuilder;c.append(a);return c.getBlob(b)};PDFJS.createObjectURL=function(a,b){if(!PDFJS.disableCreateObjectURL&&"undefined"!==typeof URL&&URL.createObjectURL){var c=PDFJS.createBlob(a,b);return URL.createObjectURL(c)}for(var c=
33
+ "data:"+b+";base64,",d=0,e=a.length;d<e;d+=3)var f=a[d]&255,g=a[d+1]&255,h=a[d+2]&255,c=c+("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[f>>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[(f&3)<<4|g>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[d+1<e?(g&15)<<2|h>>6:64]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[d+2<e?h&63:64]);return c};fa.prototype={on:function(a,b,c){var d=this.actionHandler;d[a]&&v('There is already an actionName called "'+
34
+ a+'"');d[a]=[b,c]},send:function(a,b,c,d){a={action:a,data:b};c&&(b=this.callbackIndex++,this.callbacks[b]=c,a.callbackId=b);d&&this.postMessageTransfers?this.comObj.postMessage(a,d):this.comObj.postMessage(a)}};var s,E=function(){v("should not call ColorSpace constructor")};E.prototype={getRgb:function(a,b){var c=new Uint8Array(3);this.getRgbItem(a,b,c,0);return c},getRgbItem:function(){v("Should not call ColorSpace.getRgbItem")},getRgbBuffer:function(){v("Should not call ColorSpace.getRgbBuffer")},
35
+ getOutputLength:function(){v("Should not call ColorSpace.getOutputLength")},isPassthrough:function(){return!1},fillRgb:function(a,b,c,d,e,f,g,h,j){var k=b*c,l=null,p=1<<g,q=c!=e||b!=d,n;if(this.isPassthrough(g))l=h;else if(1===this.numComps&&k>p&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){var m=8>=g?new Uint8Array(p):new Uint16Array(p),r;for(n=0;n<p;n++)m[n]=n;var x=new Uint8Array(3*p);this.getRgbBuffer(m,0,p,x,0,g,0);if(q){l=new Uint8Array(3*k);for(n=m=0;n<k;++n)r=3*h[n],l[m++]=x[r],l[m++]=
36
+ x[r+1],l[m++]=x[r+2]}else for(n=p=0;n<k;++n)r=3*h[n],a[p++]=x[r],a[p++]=x[r+1],a[p++]=x[r+2],p+=j}else q?(l=new Uint8Array(3*k),this.getRgbBuffer(h,0,k,l,0,g,0)):this.getRgbBuffer(h,0,d*f,a,0,g,j);if(l)if(q)PDFImage.resize(l,g,3,b,c,d,e,a,j);else{n=p=m=0;for(b=d*f;n<b;n++)a[p++]=l[m++],a[p++]=l[m++],a[p++]=l[m++],p+=j}},usesZeroToOneRange:!0};E.parse=function(a,b,c){a=E.parseToIR(a,b,c);return a instanceof ma?a:E.fromIR(a)};E.fromIR=function(a){var b=B(a)?a[0]:a,c;switch(b){case "DeviceGrayCS":return this.singletons.gray;
37
+ case "DeviceRgbCS":return this.singletons.rgb;case "DeviceCmykCS":return this.singletons.cmyk;case "CalGrayCS":return b=a[1].WhitePoint,c=a[1].BlackPoint,new Fa(b,c,a[1].Gamma);case "PatternCS":return(a=a[1])&&(a=E.fromIR(a)),new Ga(a);case "IndexedCS":return b=a[2],c=a[3],new Ha(E.fromIR(a[1]),b,c);case "AlternateCS":return b=a[3],new ma(a[1],E.fromIR(a[2]),X.fromIR(b));case "LabCS":return b=a[1].WhitePoint,c=a[1].BlackPoint,new Ia(b,c,a[1].Range);default:v("Unkown name "+b)}return null};E.parseToIR=
38
+ function(a,b,c){if(I(a)){var d=c.get("ColorSpace");U(d)&&(d=d.get(a.name))&&(a=d)}a=b.fetchIfRef(a);if(I(a))switch(this.mode=d=a.name,d){case "DeviceGray":case "G":return"DeviceGrayCS";case "DeviceRGB":case "RGB":return"DeviceRgbCS";case "DeviceCMYK":case "CMYK":return"DeviceCmykCS";case "Pattern":return["PatternCS",null];default:v("unrecognized colorspace "+d)}else if(B(a))switch(this.mode=d=a[0].name,d){case "DeviceGray":case "G":return"DeviceGrayCS";case "DeviceRGB":case "RGB":return"DeviceRgbCS";
39
+ case "DeviceCMYK":case "CMYK":return"DeviceCmykCS";case "CalGray":return b=a[1].getAll(),["CalGrayCS",b];case "CalRGB":return"DeviceRgbCS";case "ICCBased":d=b.fetchIfRef(a[1]).dict.get("N");if(1==d)return"DeviceGrayCS";if(3==d)return"DeviceRgbCS";if(4==d)return"DeviceCmykCS";break;case "Pattern":return(a=a[1])&&(a=E.parseToIR(a,b,c)),["PatternCS",a];case "Indexed":case "I":return c=E.parseToIR(a[1],b,c),d=a[2]+1,b=b.fetchIfRef(a[3]),xa(b)&&(b=b.getBytes()),["IndexedCS",c,d,b];case "Separation":case "DeviceN":var e=
40
+ a[1],d=1;I(e)?d=1:B(e)&&(d=e.length);c=E.parseToIR(a[2],b,c);b=X.getIR(b,b.fetchIfRef(a[3]));return["AlternateCS",d,c,b];case "Lab":return b=a[1].getAll(),["LabCS",b];default:v('unimplemented color space object "'+d+'"')}else v('unrecognized color space object: "'+a+'"');return null};E.isDefaultDecode=function(a,b){if(!a)return!0;if(2*b!==a.length)return z("The decode map is not the correct length"),!0;for(var c=0,d=a.length;c<d;c+=2)if(0!==a[c]||1!=a[c+1])return!1;return!0};E.singletons={get gray(){return K(this,
41
+ "gray",new Ja)},get rgb(){return K(this,"rgb",new Ka)},get cmyk(){return K(this,"cmyk",new La)}};s=E;var ma,Ma=function(a,b,c){this.name="Alternate";this.numComps=a;this.defaultColor=new Float32Array(a);for(var d=0;d<a;++d)this.defaultColor[d]=1;this.base=b;this.tintFn=c};Ma.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,b,c,d){a="subarray"in a?a.subarray(b,b+this.numComps):Array.prototype.slice.call(a,b,b+this.numComps);a=this.tintFn(a);this.base.getRgbItem(a,0,c,d)},getRgbBuffer:function(a,
42
+ b,c,d,e,f,g){var h=this.tintFn,j=this.base;f=1/((1<<f)-1);var k=j.numComps,l=j.usesZeroToOneRange,p=(j.isPassthrough(8)||!l)&&0===g,q=p?e:0,n=p?d:new Uint8Array(k*c),m=this.numComps,r=new Float32Array(m),x,w;for(x=0;x<c;x++){for(w=0;w<m;w++)r[w]=a[b++]*f;var D=h(r);if(l)for(w=0;w<k;w++)n[q++]=255*D[w];else j.getRgbItem(D,0,n,q),q+=k}p||j.getRgbBuffer(n,0,c,d,e,8,g)},getOutputLength:function(a,b){return this.base.getOutputLength(a*this.base.numComps/this.numComps,b)},isPassthrough:s.prototype.isPassthrough,
43
+ fillRgb:s.prototype.fillRgb,isDefaultDecode:function(a){return s.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};ma=Ma;var Ga,Na=function(a){this.name="Pattern";this.base=a};Na.prototype={};Ga=Na;var Ha,Oa=function(a,b,c){this.name="Indexed";this.numComps=1;this.defaultColor=new Uint8Array([0]);this.base=a;this.highVal=b;a=a.numComps*b;var d;if(xa(c))d=new Uint8Array(a),c=c.getBytes(a),d.set(c);else if("string"==typeof c){d=new Uint8Array(a);for(b=0;b<a;++b)d[b]=c.charCodeAt(b)}else c instanceof
44
+ Uint8Array||c instanceof Array?d=c:v("Unrecognized lookup table: "+c);this.lookup=d};Oa.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,b,c,d){this.base.getRgbItem(this.lookup,a[b]*this.base.numComps,c,d)},getRgbBuffer:function(a,b,c,d,e,f,g){f=this.base;for(var h=f.numComps,j=f.getOutputLength(h,g),k=this.lookup,l=0;l<c;++l){var p=a[b++]*h;f.getRgbBuffer(k,p,1,d,e,8,g);e+=j}},getOutputLength:function(a,b){return this.base.getOutputLength(a*this.base.numComps,b)},isPassthrough:s.prototype.isPassthrough,
45
+ fillRgb:s.prototype.fillRgb,isDefaultDecode:function(){return!0},usesZeroToOneRange:!0};Ha=Oa;var Ja,Pa=function(){this.name="DeviceGray";this.numComps=1;this.defaultColor=new Float32Array([0])};Pa.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,b,c,d){a=255*a[b]|0;c[d]=c[d+1]=c[d+2]=0>a?0:255<a?255:a},getRgbBuffer:function(a,b,c,d,e,f,g){f=255/((1<<f)-1);for(var h=0;h<c;++h){var j=f*a[b++]|0;d[e++]=j;d[e++]=j;d[e++]=j;e+=g}},getOutputLength:function(a,b){return a*(3+b)},isPassthrough:s.prototype.isPassthrough,
46
+ fillRgb:s.prototype.fillRgb,isDefaultDecode:function(a){return s.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};Ja=Pa;var Ka,Qa=function(){this.name="DeviceRGB";this.numComps=3;this.defaultColor=new Float32Array([0,0,0])};Qa.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,b,c,d){var e=255*a[b]|0,f=255*a[b+1]|0;a=255*a[b+2]|0;c[d]=0>e?0:255<e?255:e;c[d+1]=0>f?0:255<f?255:f;c[d+2]=0>a?0:255<a?255:a},getRgbBuffer:function(a,b,c,d,e,f,g){if(8===f&&0===g)d.set(a.subarray(b,b+3*c),
47
+ e);else{f=255/((1<<f)-1);for(var h=0;h<c;++h)d[e++]=f*a[b++]|0,d[e++]=f*a[b++]|0,d[e++]=f*a[b++]|0,e+=g}},getOutputLength:function(a,b){return a*(3+b)/3|0},isPassthrough:function(a){return 8==a},fillRgb:s.prototype.fillRgb,isDefaultDecode:function(a){return s.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};Ka=Qa;var La,Ra=function(a,b,c,d,e){var f=a[b+0]*c,g=a[b+1]*c,h=a[b+2]*c;c*=a[b+3];a=f*(-4.387332384609988*f+54.48615194189176*g+18.82290502165302*h+212.25662451639585*c+-285.2331026137004)+
48
+ g*(1.7149763477362134*g-5.6096736904047315*h+-17.873870861415444*c-5.497006427196366)+h*(-2.5217340131683033*h-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747)+255|0;b=f*(8.841041422036149*f+60.118027045597366*g+6.871425592049007*h+31.159100130055922*c+-79.2970844816548)+g*(-15.310361306967817*g+17.575251261109482*h+131.35250912493976*c-190.9453302588951)+h*(4.444339102852739*h+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578)+255|
49
+ 0;f=f*(0.8842522430003296*f+8.078677503112928*g+30.89978309703729*h-0.23883238689178934*c+-14.183576799673286)+g*(10.49593273432072*g+63.02378494754052*h+50.606957656360734*c-112.23884253719248)+h*(0.03296041114873217*h+115.60384449646641*c+-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)+255|0;d[e]=255<a?255:0>a?0:a;d[e+1]=255<b?255:0>b?0:b;d[e+2]=255<f?255:0>f?0:f},Sa=function(){this.name="DeviceCMYK";this.numComps=4;this.defaultColor=new Float32Array([0,0,0,1])};Sa.prototype={getRgb:s.prototype.getRgb,
50
+ getRgbItem:function(a,b,c,d){Ra(a,b,1,c,d)},getRgbBuffer:function(a,b,c,d,e,f,g){f=1/((1<<f)-1);for(var h=0;h<c;h++)Ra(a,b,f,d,e),b+=4,e+=3+g},getOutputLength:function(a,b){return a/4*(3+b)|0},isPassthrough:s.prototype.isPassthrough,fillRgb:s.prototype.fillRgb,isDefaultDecode:function(a){return s.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};La=Sa;var Fa,Ta=function(a,b,c){this.name="CalGray";this.numComps=1;this.defaultColor=new Float32Array([0]);a||v("WhitePoint missing - required for color space CalGray");
51
+ b=b||[0,0,0];this.XW=a[0];this.YW=a[1];this.ZW=a[2];this.XB=b[0];this.YB=b[1];this.ZB=b[2];this.G=c||1;(0>this.XW||0>this.ZW||1!==this.YW)&&v("Invalid WhitePoint components for "+this.name+", no fallback available");if(0>this.XB||0>this.YB||0>this.ZB)G("Invalid BlackPoint for "+this.name+", falling back to default"),this.XB=this.YB=this.ZB=0;(0!==this.XB||0!==this.YB||0!==this.ZB)&&z(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported.");1>
52
+ this.G&&(G("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default"),this.G=1)},Ua=function(a,b,c,d,e,f){b=Math.pow(b[c]*f,a.G);a=Math.max(116*Math.pow(a.YW*b,1/3)-16,0);d[e]=255*a/100;d[e+1]=255*a/100;d[e+2]=255*a/100};Ta.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,b,c,d){Ua(this,a,b,c,d,1)},getRgbBuffer:function(a,b,c,d,e,f,g){f=1/((1<<f)-1);for(var h=0;h<c;++h)Ua(this,a,b,d,e,f),b+=1,e+=3+g},getOutputLength:function(a,b){return a*(3+b)},isPassthrough:s.prototype.isPassthrough,
53
+ fillRgb:s.prototype.fillRgb,isDefaultDecode:function(a){return s.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};Fa=Ta;var Ia,Va=function(a,b,c){this.name="Lab";this.numComps=3;this.defaultColor=new Float32Array([0,0,0]);a||v("WhitePoint missing - required for color space Lab");b=b||[0,0,0];c=c||[-100,100,-100,100];this.XW=a[0];this.YW=a[1];this.ZW=a[2];this.amin=c[0];this.amax=c[1];this.bmin=c[2];this.bmax=c[3];this.XB=b[0];this.YB=b[1];this.ZB=b[2];(0>this.XW||0>this.ZW||1!==this.YW)&&
54
+ v("Invalid WhitePoint components, no fallback available");if(0>this.XB||0>this.YB||0>this.ZB)G("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0;if(this.amin>this.amax||this.bmin>this.bmax)G("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100},na=function(a){return a>=6/29?a*a*a:108/841*(a-4/29)},Wa=function(a,b,c,d,e,f){var g=b[c],h=b[c+1];b=b[c+2];!1!==d&&(g=0+100*g/d,h=a.amin+h*(a.amax-a.amin)/d,b=a.bmin+b*(a.bmax-a.bmin)/
55
+ d);h=h>a.amax?a.amax:h<a.amin?a.amin:h;b=b>a.bmax?a.bmax:b<a.bmin?a.bmin:b;d=(g+16)/116;g=d-b/200;h=a.XW*na(d+h/500);d=a.YW*na(d);g=a.ZW*na(g);1>a.ZW?(a=3.1339*h+-1.617*d+-0.4906*g,b=-0.9785*h+1.916*d+0.0333*g,h=0.072*h+-0.229*d+1.4057*g):(a=3.2406*h+-1.5372*d+-0.4986*g,b=-0.9689*h+1.8758*d+0.0415*g,h=0.0557*h+-0.204*d+1.057*g);e[f]=0>=a?0:1<=a?255:255*Math.sqrt(a)|0;e[f+1]=0>=b?0:1<=b?255:255*Math.sqrt(b)|0;e[f+2]=0>=h?0:1<=h?255:255*Math.sqrt(h)|0};Va.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(a,
56
+ b,c,d){Wa(this,a,b,!1,c,d)},getRgbBuffer:function(a,b,c,d,e,f,g){f=(1<<f)-1;for(var h=0;h<c;h++)Wa(this,a,b,f,d,e),b+=3,e+=3+g},getOutputLength:function(a,b){return a*(3+b)/3|0},isPassthrough:s.prototype.isPassthrough,isDefaultDecode:function(){return!0},usesZeroToOneRange:!1};Ia=Va;var X;X={getSampleArray:function(a,b,c,d){var e,f,g=1;e=0;for(f=a.length;e<f;e++)g*=a[e];g*=b;a=[];f=b=0;var h=1/(Math.pow(2,c)-1);d=d.getBytes((g*c+7)/8);var j=0;for(e=0;e<g;e++){for(;b<c;)f<<=8,f|=d[j++],b+=8;b-=c;a.push((f>>
57
+ b)*h);f&=(1<<b)-1}return a},getIR:function(a,b){var c=b.dict;c||(c=b);var d=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],e=c.get("FunctionType");(d=d[e])||v("Unknown type of function");return d.call(this,b,c,a)},fromIR:function(a){switch(a[0]){case 0:return this.constructSampledFromIR(a);case 2:return this.constructInterpolatedFromIR(a);case 3:return this.constructStichedFromIR(a);default:return this.constructPostScriptFromIR(a)}},parse:function(a,
58
+ b){var c=this.getIR(a,b);return this.fromIR(c)},constructSampled:function(a,b){function c(a){for(var b=a.length,c=[],d=0,e=0;e<b;e+=2)c[d]=[a[e],a[e+1]],++d;return c}var d=b.get("Domain"),e=b.get("Range");(!d||!e)&&v("No domain or range");var f=d.length/2,g=e.length/2,d=c(d),e=c(e),h=b.get("Size"),j=b.get("BitsPerSample"),k=b.get("Order")||1;1!==k&&G("No support for cubic spline interpolation: "+k);k=b.get("Encode");if(!k)for(var k=[],l=0;l<f;++l)k.push(0),k.push(h[l]-1);var k=c(k),l=(l=b.get("Decode"))?
59
+ c(l):e,p=this.getSampleArray(h,g,j,a);return[0,f,d,k,l,p,h,g,Math.pow(2,j)-1,e]},constructSampledFromIR:function(a){return function(b){var c=a[1],d=a[2],e=a[3],f=a[4],g=a[5],h=a[6],j=a[7],k=a[9];c!=b.length&&v("Incorrect number of arguments: "+c+" != "+b.length);var l=1<<c,p=new Float64Array(l),q=new Uint32Array(l),n,m;for(m=0;m<l;m++)p[m]=1;var r=j,x=1;for(n=0;n<c;++n){m=d[n][0];var w=d[n][1],D=Math.min(Math.max(b[n],m),w),t=e[n][0]+(D-m)*((e[n][1]-e[n][0])/(w-m)),w=h[n],t=Math.min(Math.max(t,0),
60
+ w-1);m=t<w-1?Math.floor(t):t-1;var D=m+1-t,t=t-m,s=m*r,P=s+r;for(m=0;m<l;m++)m&x?(p[m]*=t,q[m]+=P):(p[m]*=D,q[m]+=s);r*=w;x<<=1}b=new Float64Array(j);for(m=0;m<j;++m){for(n=c=0;n<l;n++)c+=g[q[n]+m]*p[n];c=f[m][0]+(c-0)*((f[m][1]-f[m][0])/1);b[m]=Math.min(Math.max(c,k[m][0]),k[m][1])}return b}},constructInterpolated:function(a,b){var c=b.get("C0")||[0],d=b.get("C1")||[1],e=b.get("N");(!B(c)||!B(d))&&v("Illegal dictionary for interpolated function");for(var f=c.length,g=[],h=0;h<f;++h)g.push(d[h]-c[h]);
61
+ return[2,c,g,e]},constructInterpolatedFromIR:function(a){var b=a[1],c=a[2],d=a[3],e=c.length;return function(a){a=1==d?a[0]:Math.pow(a[0],d);for(var g=[],h=0;h<e;++h)g.push(b[h]+a*c[h]);return g}},constructStiched:function(a,b,c){(a=b.get("Domain"))||v("No domain");1!=a.length/2&&v("Bad domain for stiched function");for(var d=b.get("Functions"),e=[],f=0,g=d.length;f<g;++f)e.push(X.getIR(c,c.fetchIfRef(d[f])));c=b.get("Bounds");b=b.get("Encode");return[3,a,c,b,e]},constructStichedFromIR:function(a){var b=
62
+ a[1],c=a[2],d=a[3];a=a[4];for(var e=[],f=0,g=a.length;f<g;f++)e.push(X.fromIR(a[f]));return function(a){a=a[0];var f=b[0],g=b[1];a>g?a=g:a<f&&(a=f);f=0;for(g=c.length;f<g&&!(a<c[f]);++f);g=b[0];0<f&&(g=c[f-1]);var l=b[1];f<c.length&&(l=c[f]);var p=d[2*f];return e[f]([p+(a-g)*(d[2*f+1]-p)/(l-g)])}},constructPostScript:function(a,b){var c=b.get("Domain"),d=b.get("Range");c||v("No domain.");d||v("No range.");var e=new PostScriptLexer(a),e=(new PostScriptParser(e)).parse();return[4,c,d,e]},constructPostScriptFromIR:function(a){var b=
63
+ a[1],c=a[2],d=c.length/2,e=new Xa(a[3]),f=new Ya;return function(a){for(var h=[],j=0,k=b.length/2;j<k;++j)h.push(a[j]);a=h.join("_");if(f.has(a))return f.get(a);h=e.execute(h);k=[];for(j=d-1;0<=j;--j){var l=h.pop(),p=2*j;l<c[p]?l=c[p]:l>c[p+1]&&(l=c[p+1]);k[j]=l}f.set(a,k);return k}}};var Ya,Za=function(){this.cache={};this.total=0};Za.prototype={has:function(a){return a in this.cache},get:function(a){return this.cache[a]},set:function(a,b){1024>this.total&&(this.cache[a]=b,this.total++)}};Ya=Za;
64
+ var $a=function(a){this.stack=a||[]};$a.prototype={push:function(a){100<=this.stack.length&&v("PostScript function stack overflow.");this.stack.push(a)},pop:function(){0>=this.stack.length&&v("PostScript function stack underflow.");return this.stack.pop()},copy:function(a){100<=this.stack.length+a&&v("PostScript function stack overflow.");var b=this.stack,c=b.length-a;for(a-=1;0<=a;a--,c++)b.push(b[c])},index:function(a){this.push(this.stack[this.stack.length-a-1])},roll:function(a,b){var c=this.stack,
65
+ d=c.length-a,e=c.length-1,f=d+(b-Math.floor(b/a)*a),g,h,j;g=d;for(h=e;g<h;g++,h--)j=c[g],c[g]=c[h],c[h]=j;g=d;for(h=f-1;g<h;g++,h--)j=c[g],c[g]=c[h],c[h]=j;g=f;for(h=e;g<h;g++,h--)j=c[g],c[g]=c[h],c[h]=j}};var Xa,ab=function(a){this.operators=a};ab.prototype={execute:function(a){a=new $a(a);for(var b=0,c=this.operators,d=c.length,e,f;b<d;)if(e=c[b++],"number"==typeof e)a.push(e);else switch(e){case "jz":f=a.pop();(e=a.pop())||(b=f);break;case "j":b=e=a.pop();break;case "abs":e=a.pop();a.push(Math.abs(e));
66
+ break;case "add":f=a.pop();e=a.pop();a.push(e+f);break;case "and":f=a.pop();e=a.pop();L(e)&&L(f)?a.push(e&&f):a.push(e&f);break;case "atan":e=a.pop();a.push(Math.atan(e));break;case "bitshift":f=a.pop();e=a.pop();0<e?a.push(e<<f):a.push(e>>f);break;case "ceiling":e=a.pop();a.push(Math.ceil(e));break;case "copy":e=a.pop();a.copy(e);break;case "cos":e=a.pop();a.push(Math.cos(e));break;case "cvi":e=a.pop()|0;a.push(e);break;case "cvr":break;case "div":f=a.pop();e=a.pop();a.push(e/f);break;case "dup":a.copy(1);
67
+ break;case "eq":f=a.pop();e=a.pop();a.push(e==f);break;case "exch":a.roll(2,1);break;case "exp":f=a.pop();e=a.pop();a.push(Math.pow(e,f));break;case "false":a.push(!1);break;case "floor":e=a.pop();a.push(Math.floor(e));break;case "ge":f=a.pop();e=a.pop();a.push(e>=f);break;case "gt":f=a.pop();e=a.pop();a.push(e>f);break;case "idiv":f=a.pop();e=a.pop();a.push(e/f|0);break;case "index":e=a.pop();a.index(e);break;case "le":f=a.pop();e=a.pop();a.push(e<=f);break;case "ln":e=a.pop();a.push(Math.log(e));
68
+ break;case "log":e=a.pop();a.push(Math.log(e)/Math.LN10);break;case "lt":f=a.pop();e=a.pop();a.push(e<f);break;case "mod":f=a.pop();e=a.pop();a.push(e%f);break;case "mul":f=a.pop();e=a.pop();a.push(e*f);break;case "ne":f=a.pop();e=a.pop();a.push(e!=f);break;case "neg":a.pop();a.push(-f);break;case "not":e=a.pop();L(e)&&L(f)?a.push(e&&f):a.push(e&f);break;case "or":f=a.pop();e=a.pop();L(e)&&L(f)?a.push(e||f):a.push(e|f);break;case "pop":a.pop();break;case "roll":f=a.pop();e=a.pop();a.roll(e,f);break;
69
+ case "round":e=a.pop();a.push(Math.round(e));break;case "sin":e=a.pop();a.push(Math.sin(e));break;case "sqrt":e=a.pop();a.push(Math.sqrt(e));break;case "sub":f=a.pop();e=a.pop();a.push(e-f);break;case "true":a.push(!0);break;case "truncate":e=a.pop();e=0>e?Math.ceil(e):Math.floor(e);a.push(e);break;case "xor":f=a.pop();e=a.pop();L(e)&&L(f)?a.push(e!=f):a.push(e^f);break;default:v("Unknown operator "+e)}return a.stack}};Xa=ab;var Lb=["Link","Text","Widget"],C=function(a){if(a.data)this.data=a.data;
70
+ else{var b=a.dict,c=this.data={};c.subtype=b.get("Subtype").name;var d=b.get("Rect")||[0,0,0,0];c.rect=t.normalizeRect(d);c.annotationFlags=b.get("F");d=b.get("C");c.color=B(d)&&3===d.length?d:[0,0,0];if(b.has("BS"))d=b.get("BS"),c.borderWidth=d.has("W")?d.get("W"):1;else if(d=b.get("Border")||[0,0,1],c.borderWidth=d[2]||0,d=d[3],0<c.borderWidth&&d&&B(d)){var e=d.length;if(0<e){for(var f=!1,g=0,h=0;h<e;h++)if(0<=+d[h])0<d[h]&&g++;else{f=!0;break}if(f||0===g)c.borderWidth=0}}var j;d=b.get("AP");U(d)?
71
+ (d=d.get("N"),U(d)?(b=b.get("AS"))&&d.has(b.name)&&(j=d.get(b.name)):j=d):j=void 0;this.appearance=j;c.hasAppearance=!!this.appearance;c.id=a.ref.num}};C.prototype={getData:function(){return this.data},hasHtml:function(){return!1},getHtmlElement:function(){throw new W("getHtmlElement() should be implemented in subclass");},getEmptyContainer:function(a,b,c){!V||v("getEmptyContainer() should be called from main thread");c=c||0;b=b||this.data.rect;a=document.createElement(a);a.style.borderWidth=c+"px";
72
+ var d=b[3]-b[1]-2*c;a.style.width=b[2]-b[0]-2*c+"px";a.style.height=d+"px";return a},isInvisible:function(){var a=this.data;return a&&-1!==Lb.indexOf(a.subtype)?!1:!(!a||!(a.annotationFlags&&a.annotationFlags&1))},isViewable:function(){var a=this.data;return!(this.isInvisible()||!a||a.annotationFlags&&a.annotationFlags&34||!a.rect)},isPrintable:function(){var a=this.data;return!(this.isInvisible()||!a||!a.annotationFlags||!(a.annotationFlags&4&&a.rect))},loadResources:function(a){var b=new N;this.appearance.dict.getAsync("Resources").then(function(c){c?
73
+ (new ObjectLoader(c.map,a,c.xref)).load().then(function(){b.resolve(c)}):b.resolve()}.bind(this));return b},getOperatorList:function(a){var b=new N;if(!this.appearance)return b.resolve(new OperatorList),b;var c=this.data,d=this.appearance.dict,e=this.loadResources("ExtGState ColorSpace Pattern Shading XObject Font".split(" ")),f=d.get("BBox")||[0,0,1,1],g=d.get("Matrix")||[1,0,0,1,0,0],h;var d=c.rect,j=t.getAxialAlignedBoundingBox(f,g),f=j[0],k=j[1],l=j[2],j=j[3];f===l||k===j?h=[1,0,0,1,d[0],d[1]]:
74
+ (l=(d[2]-d[0])/(l-f),j=(d[3]-d[1])/(j-k),h=[l,0,0,j,d[0]-f*l,d[1]-k*j]);e.then(function(d){var e=new OperatorList;e.addOp(J.beginAnnotation,[c.rect,h,g]);a.getOperatorList(this.appearance,d,e);e.addOp(J.endAnnotation,[]);b.resolve(e);this.appearance.reset()}.bind(this));return b}};C.getConstructor=function(a,b){if(a){if("Link"===a)return bb;if("Text"===a)return cb;if("Widget"===a){if(b)return"Tx"===b?db:Z}else return C}};C.fromData=function(a){var b=C.getConstructor(a.subtype,a.fieldType);if(b)return new b({data:a})};
75
+ C.fromRef=function(a,b){var c=a.fetchIfRef(b);if(U(c)){var d=c.get("Subtype");if(d=I(d)?d.name:""){var e=t.getInheritableProperty(c,"FT"),e=I(e)?e.name:"";if(e=C.getConstructor(d,e)){c=new e({dict:c,ref:b});if(c.isViewable()||c.isPrintable())return c;z("unimplemented annotation type: "+d)}}}};C.appendToOperatorList=function(a,b,c,d,e){var f=new N;c=[];for(var g=0,h=a.length;g<h;++g)("display"===e&&a[g].isViewable()||"print"===e&&a[g].isPrintable())&&c.push(a[g].getOperatorList(d));Promise.all(c).then(function(a){b.addOp(J.beginAnnotations,
76
+ []);for(var c=0,d=a.length;c<d;++c)b.addOpList(a[c]);b.addOp(J.endAnnotations,[]);f.resolve()},function(a){f.reject(a)});return f};PDFJS.Annotation=C;var Z,eb=function(a){C.call(this,a);if(!a.data){var b=a.dict,c=this.data;c.fieldValue=T(t.getInheritableProperty(b,"V")||"");c.alternativeText=T(b.get("TU")||"");c.defaultAppearance=t.getInheritableProperty(b,"DA")||"";var d=t.getInheritableProperty(b,"FT");c.fieldType=I(d)?d.name:"";c.fieldFlags=t.getInheritableProperty(b,"Ff")||0;this.fieldResources=
77
+ t.getInheritableProperty(b,"DR")||Dict.empty;var d=[],e=b;for(a=a.ref;e;){var b=e.get("Parent"),f=e.getRaw("Parent");if(e=e.get("T"))d.unshift(T(e));else{var e=b.get("Kids"),g,h;g=0;for(h=e.length;g<h;g++){var j=e[g];if(j.num==a.num&&j.gen==a.gen)break}d.unshift("`"+g)}e=b;a=f}c.fullName=d.join(".")}},Mb=C.prototype;t.inherit(eb,C,{isViewable:function(){return"Sig"===this.data.fieldType?(z("unimplemented annotation type: Widget signature"),!1):Mb.isViewable.call(this)}});Z=eb;var db,fb=function(a){Z.call(this,
78
+ a);a.data||(this.data.textAlignment=t.getInheritableProperty(a.dict,"Q"))};t.inherit(fb,Z,{hasHtml:function(){return!this.data.hasAppearance&&!!this.data.fieldValue},getHtmlElement:function(a){!V||v("getHtmlElement() shall be called from main thread");var b=this.data,c=this.getEmptyContainer("div");c.style.display="table";var d=document.createElement("div");d.textContent=b.fieldValue;d.style.textAlign=["left","center","right"][b.textAlignment];d.style.verticalAlign="middle";d.style.display="table-cell";
79
+ a=b.fontRefName?a.getData(b.fontRefName):null;var e=d.style;e.fontSize=b.fontSize+"px";e.direction=0>b.fontDirection?"rtl":"ltr";a&&(e.fontWeight=a.black?a.bold?"bolder":"bold":a.bold?"bold":"normal",e.fontStyle=a.italic?"italic":"normal",b=a.loadedName,e.fontFamily=(b?'"'+b+'", ':"")+(a.fallbackName||"Helvetica, sans-serif"));c.appendChild(d);return c},getOperatorList:function(a){if(this.appearance)return C.prototype.getOperatorList.call(this,a);var b=new N,c=new OperatorList,d=this.data,e=d.defaultAppearance;
80
+ if(!e)return b.resolve(c),b;for(var f=Stream,g=e.length,h=new Uint8Array(g),j=0;j<g;++j)h[j]=e.charCodeAt(j)&255;e=new f(h);a.getOperatorList(e,this.fieldResources,c);a=c.fnArray;e=c.argsArray;d.rgb=[0,0,0];for(f=0;0>f;++f)g=a[f],h=e[f],g===J.setFont?(d.fontRefName=h[0],g=h[1],0>g?(d.fontDirection=-1,d.fontSize=-g):(d.fontDirection=1,d.fontSize=g)):g===J.setFillRGBColor?d.rgb=h:g===J.setFillGray&&(g=255*h[0],d.rgb=[g,g,g]);b.resolve(c);return b}});db=fb;var oa=function(a){C.call(this,a)};t.inherit(oa,
81
+ C,{hasHtml:function(){return!0},highlight:function(){this.highlightElement&&this.highlightElement.hasAttribute("hidden")&&this.highlightElement.removeAttribute("hidden")},unhighlight:function(){this.highlightElement&&!this.highlightElement.hasAttribute("hidden")&&this.highlightElement.setAttribute("hidden",!0)},initContainer:function(){for(var a=this.data,b=this.getEmptyContainer("section",a.rect,a.borderWidth),c=b.style.backgroundColor=a.color,d=[],e=0;3>e;++e)d[e]=Math.round(255*c[e]);a.colorCssRgb=
82
+ t.makeCssRgb(d);a=document.createElement("div");a.className="annotationHighlight";a.style.left=a.style.top="-4px";a.style.right=a.style.bottom="-4px";a.setAttribute("hidden",!0);this.highlightElement=a;b.appendChild(this.highlightElement);return b}});var cb,gb=function(a){C.call(this,a);if(!a.data){a=a.dict;var b=this.data,c=a.get("Contents"),d=a.get("T");b.content=T(c||"");b.title=T(d||"");b.hasAppearance?b.name="NoIcon":(b.rect[1]=b.rect[3]-22,b.rect[2]=b.rect[0]+22,b.name=a.has("Name")?a.get("Name").name:
83
+ "Note");a.has("C")&&(b.hasBgColor=!0)}};t.inherit(gb,oa,{getHtmlElement:function(){!V||v("getHtmlElement() shall be called from main thread");var a=this.data,b=a.rect;10>b[3]-b[1]&&(b[3]=b[1]+10);10>b[2]-b[0]&&(b[2]=b[0]+(b[3]-b[1]));var c=this.initContainer();c.className="annotText";var d=document.createElement("img");d.style.height=c.style.height;d.style.width=c.style.width;var e=a.name;d.src=PDFJS.imageResourcesPath+"annotation-"+e.toLowerCase()+".svg";d.alt="[{{type}} Annotation]";d.dataset.l10nId=
84
+ "text_annotation_type";d.dataset.l10nArgs=JSON.stringify({type:e});e=document.createElement("div");e.className="annotTextContentWrapper";e.style.left=Math.floor(b[2]-b[0]+5)+"px";e.style.top="-10px";var f=document.createElement("div");f.className="annotTextContent";f.setAttribute("hidden",!0);if(a.hasBgColor){for(var g=a.color,h=[],b=0;3>b;++b){var j=Math.round(255*g[b]);h[b]=Math.round(0.7*(255-j))+j}f.style.backgroundColor=t.makeCssRgb(h)}g=document.createElement("h1");h=document.createElement("p");
85
+ g.textContent=a.title;if(!a.content&&!a.title)f.setAttribute("hidden",!0);else{for(var j=document.createElement("span"),k=a.content.split(/(?:\r\n?|\n)/),b=0,a=k.length;b<a;++b)j.appendChild(document.createTextNode(k[b])),b<a-1&&j.appendChild(document.createElement("br"));h.appendChild(j);var l=!1,p=function(a){a&&(l=!0);f.hasAttribute("hidden")&&(c.style.zIndex+=1,f.removeAttribute("hidden"))},q=function(a){a&&(l=!1);!f.hasAttribute("hidden")&&!l&&(c.style.zIndex-=1,f.setAttribute("hidden",!0))};
86
+ d.addEventListener("click",function(){l?q(!0):p(!0)},!1);d.addEventListener("mouseover",function(){p()},!1);d.addEventListener("mouseout",function(){q()},!1);f.addEventListener("click",function(){q(!0)},!1)}f.appendChild(g);f.appendChild(h);e.appendChild(f);c.appendChild(d);c.appendChild(e);return c}});cb=gb;var bb,hb=function(a){C.call(this,a);if(!a.data){var b=a.dict;a=this.data;var c=b.get("A");if(c)if(b=c.get("S").name,"URI"===b){var d=c.get("URI");I(d)?d="/"+d.name:d&&(d=d&&0===d.indexOf("www.")?
87
+ "http://"+d:d);ea(d,!1)||(d="");a.url=d}else"GoTo"===b?a.dest=c.get("D"):"GoToR"===b?(b=c.get("F"),U(b)&&(d=b.get("F")||""),ea(d,!1)||(d=""),a.url=d,a.dest=c.get("D")):"Named"===b?a.action=c.get("N").name:z("unrecognized link type: "+b);else b.has("Dest")&&(d=b.get("Dest"),a.dest=I(d)?d.name:d)}};t.inherit(hb,oa,{hasOperatorList:function(){return!1},getHtmlElement:function(){var a=this.initContainer();a.className="annotLink";a.style.borderColor=this.data.colorCssRgb;a.style.borderStyle="solid";var b=
88
+ document.createElement("a");b.href=b.title=this.data.url||"";a.appendChild(b);return a}});bb=hb;PDFJS.maxImageSize=void 0===PDFJS.maxImageSize?-1:PDFJS.maxImageSize;PDFJS.cMapUrl=void 0===PDFJS.cMapUrl?null:PDFJS.cMapUrl;PDFJS.cMapPacked=void 0===PDFJS.cMapPacked?!1:PDFJS.cMapPacked;PDFJS.disableFontFace=void 0===PDFJS.disableFontFace?!1:PDFJS.disableFontFace;PDFJS.imageResourcesPath=void 0===PDFJS.imageResourcesPath?"":PDFJS.imageResourcesPath;PDFJS.disableWorker=void 0===PDFJS.disableWorker?!1:
89
+ PDFJS.disableWorker;PDFJS.workerSrc=void 0===PDFJS.workerSrc?null:PDFJS.workerSrc;PDFJS.disableRange=void 0===PDFJS.disableRange?!1:PDFJS.disableRange;PDFJS.disableAutoFetch=void 0===PDFJS.disableAutoFetch?!1:PDFJS.disableAutoFetch;PDFJS.pdfBug=void 0===PDFJS.pdfBug?!1:PDFJS.pdfBug;PDFJS.postMessageTransfers=void 0===PDFJS.postMessageTransfers?!0:PDFJS.postMessageTransfers;PDFJS.disableCreateObjectURL=void 0===PDFJS.disableCreateObjectURL?!1:PDFJS.disableCreateObjectURL;PDFJS.disableWebGL=void 0===
90
+ PDFJS.disableWebGL?!0:PDFJS.disableWebGL;PDFJS.verbosity=void 0===PDFJS.verbosity?PDFJS.VERBOSITY_LEVELS.warnings:PDFJS.verbosity;PDFJS.getDocument=function(a,b,c,d){var e,f;"string"===typeof a?a={url:a}:"object"==typeof a&&null!==a&&void 0!==a&&"byteLength"in a?a={data:a}:"object"!==typeof a&&v("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");!a.url&&!a.data&&v("Invalid parameter array, need either .data or .url");var g={};for(e in a)g[e]="url"===e&&"undefined"!==
91
+ typeof window?Gb(window.location.href,a[e]):a[e];a=new PDFJS.LegacyPromise;e=new PDFJS.LegacyPromise;f=new ib(a,e,b,d);a.then(function(){f.passwordCallback=c;f.fetchDocument(g)});return e};var jb=function(a,b){this.pdfInfo=a;this.transport=b};jb.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},getPage:function(a){return this.transport.getPage(a)},getPageIndex:function(a){return this.transport.getPageIndex(a)},getDestinations:function(){return this.transport.getDestinations()},
92
+ getAttachments:function(){return this.transport.getAttachments()},getJavaScript:function(){var a=new PDFJS.LegacyPromise;a.resolve(this.pdfInfo.javaScript);return a},getOutline:function(){var a=new PDFJS.LegacyPromise;a.resolve(this.pdfInfo.outline);return a},getMetadata:function(){var a=new PDFJS.LegacyPromise,b=this.pdfInfo.metadata;a.resolve({info:this.pdfInfo.info,metadata:b?new PDFJS.Metadata(b):null});return a},getData:function(){var a=new PDFJS.LegacyPromise;this.transport.getData(a);return a},
93
+ getDownloadInfo:function(){return this.transport.downloadInfoPromise},cleanup:function(){this.transport.startCleanup()},destroy:function(){this.transport.destroy()}};var kb=function(a,b){this.pageInfo=a;this.transport=b;this.stats=new Ea;this.stats.enabled=!!y.PDFJS.enableStats;this.commonObjs=b.commonObjs;this.objs=new pa;this.pendingDestroy=this.cleanupAfterRender=!1;this.intentStates={}};kb.prototype={get pageNumber(){return this.pageInfo.pageIndex+1},get rotate(){return this.pageInfo.rotate},
94
+ get ref(){return this.pageInfo.ref},get view(){return this.pageInfo.view},getViewport:function(a,b){2>arguments.length&&(b=this.rotate);return new PDFJS.PageViewport(this.view,a,b,0,0)},getAnnotations:function(){if(this.annotationsPromise)return this.annotationsPromise;var a=new PDFJS.LegacyPromise;this.annotationsPromise=a;this.transport.getAnnotations(this.pageInfo.pageIndex);return a},render:function(a){function b(a){var b=e.renderTasks.indexOf(f);0<=b&&e.renderTasks.splice(b,1);h.cleanupAfterRender&&
95
+ (h.pendingDestroy=!0);h._tryDestroy();a?g.promise.reject(a):g.promise.resolve();c.timeEnd("Rendering");c.timeEnd("Overall")}var c=this.stats;c.time("Overall");this.pendingDestroy=!1;var d="intent"in a?"print"==a.intent?"print":"display":"display";this.intentStates[d]||(this.intentStates[d]={});var e=this.intentStates[d];e.displayReadyPromise||(e.receivingOperatorList=!0,e.displayReadyPromise=new N,e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",
96
+ {pageIndex:this.pageNumber-1,intent:d}));var f=new lb(b,a,this.objs,this.commonObjs,e.operatorList,this.pageNumber);e.renderTasks||(e.renderTasks=[]);e.renderTasks.push(f);var g=new mb(f),h=this;e.displayReadyPromise.then(function(a){h.pendingDestroy?b():(c.time("Rendering"),f.initalizeGraphics(a),f.operatorListChanged())},function(a){b(a)});return g},getTextContent:function(){var a=new PDFJS.LegacyPromise;this.transport.messageHandler.send("GetTextContent",{pageIndex:this.pageNumber-1},function(b){a.resolve(b)});
97
+ return a},destroy:function(){this.pendingDestroy=!0;this._tryDestroy()},_tryDestroy:function(){this.pendingDestroy&&!Object.keys(this.intentStates).some(function(a){a=this.intentStates[a];return 0!==a.renderTasks.length||a.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(a){delete this.intentStates[a]},this),this.objs.clear(),this.pendingDestroy=!1)},_startRenderPage:function(a,b){this.intentStates[b].displayReadyPromise.resolve(a)},_renderPageChunk:function(a,b){var c=
98
+ this.intentStates[b],d,e;d=0;for(e=a.length;d<e;d++)c.operatorList.fnArray.push(a.fnArray[d]),c.operatorList.argsArray.push(a.argsArray[d]);c.operatorList.lastChunk=a.lastChunk;for(d=0;d<c.renderTasks.length;d++)c.renderTasks[d].operatorListChanged();a.lastChunk&&(c.receivingOperatorList=!1,this._tryDestroy())}};var ib,nb=function(a,b,c,d){this.pdfDataRangeTransport=c;this.workerReadyPromise=b;this.progressCallback=d;this.commonObjs=new pa;this.pageCache=[];this.pagePromises=[];this.downloadInfoPromise=
99
+ new PDFJS.LegacyPromise;this.passwordCallback=null;if(!y.PDFJS.disableWorker&&"undefined"!==typeof Worker){(b=PDFJS.workerSrc)||v("No PDFJS.workerSrc specified");try{var e=new Worker(b),f=new fa("main",e);this.messageHandler=f;f.on("test",function(b){b&&b.supportTypedArray?(this.worker=e,b.supportTransfers||(PDFJS.postMessageTransfers=!1),this.setupMessageHandler(f),a.resolve()):(y.PDFJS.disableWorker=!0,this.loadFakeWorkerFiles().then(function(){this.setupFakeWorker();a.resolve()}.bind(this)))}.bind(this));
100
+ var g=new Uint8Array([PDFJS.postMessageTransfers?255:0]);try{f.send("test",g,null,[g.buffer])}catch(h){G("Cannot use postMessage transfers"),g[0]=0,f.send("test",g)}return}catch(j){G("The worker has been disabled.")}}y.PDFJS.disableWorker=!0;this.loadFakeWorkerFiles().then(function(){this.setupFakeWorker();a.resolve()}.bind(this))};nb.prototype={destroy:function(){this.pageCache=[];this.pagePromises=[];var a=this;this.messageHandler.send("Terminate",null,function(){M.clear();a.worker&&a.worker.terminate()})},
101
+ loadFakeWorkerFiles:function(){PDFJS.fakeWorkerFilesLoadedPromise||(PDFJS.fakeWorkerFilesLoadedPromise=new N,t.loadScript(PDFJS.workerSrc,function(){PDFJS.fakeWorkerFilesLoadedPromise.resolve()}));return PDFJS.fakeWorkerFilesLoadedPromise},setupFakeWorker:function(){z("Setting up fake worker.");var a={postMessage:function(b){a.onmessage({data:b})},terminate:function(){}},b=new fa("main",a);this.setupMessageHandler(b);PDFJS.WorkerMessageHandler.setup(b)},setupMessageHandler:function(a){function b(b){a.send("UpdatePassword",
102
+ b)}this.messageHandler=a;var c=this.pdfDataRangeTransport;c&&(c.addRangeListener(function(b,c){a.send("OnDataRange",{begin:b,chunk:c})}),c.addProgressListener(function(b){a.send("OnDataProgress",{loaded:b})}),a.on("RequestDataRange",function(a){c.requestDataRange(a.begin,a.end)},this));a.on("GetDoc",function(a){var b=a.pdfInfo;this.numPages=a.pdfInfo.numPages;this.pdfDocument=a=new jb(b,this);this.workerReadyPromise.resolve(a)},this);a.on("NeedPassword",function(a){if(this.passwordCallback)return this.passwordCallback(b,
103
+ Ba.NEED_PASSWORD);this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("IncorrectPassword",function(a){if(this.passwordCallback)return this.passwordCallback(b,Ba.INCORRECT_PASSWORD);this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("InvalidPDF",function(a){this.workerReadyPromise.reject(a.exception.name,a.exception)},this);a.on("MissingPDF",function(a){this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("UnknownError",function(a){this.workerReadyPromise.reject(a.exception.message,
104
+ a.exception)},this);a.on("DataLoaded",function(a){this.downloadInfoPromise.resolve(a)},this);a.on("GetPage",function(a){a=a.pageInfo;var b=new kb(a,this);this.pageCache[a.pageIndex]=b;this.pagePromises[a.pageIndex].resolve(b)},this);a.on("GetAnnotations",function(a){this.pageCache[a.pageIndex].annotationsPromise.resolve(a.annotations)},this);a.on("StartRenderPage",function(a){var b=this.pageCache[a.pageIndex];b.stats.timeEnd("Page Request");b._startRenderPage(a.transparency,a.intent)},this);a.on("RenderPageChunk",
105
+ function(a){this.pageCache[a.pageIndex]._renderPageChunk(a.operatorList,a.intent)},this);a.on("commonobj",function(a){var b=a[0],c=a[1];if(!this.commonObjs.hasData(b))switch(c){case "Font":a=a[2];var g;if("error"in a){var h=a.error;z("Error during font loading: "+h);this.commonObjs.resolve(b,h);break}else g=new ob(a);M.bind([g],function(){this.commonObjs.resolve(b,g)}.bind(this));break;case "FontPath":this.commonObjs.resolve(b,a[2]);break;default:h("Got unknown common object type "+c)}},this);a.on("obj",
106
+ function(a){var b=a[0],c=a[2],g=this.pageCache[a[1]];if(!g.objs.hasData(b))switch(c){case "JpegStream":a=a[3];var h=g.objs,j=new Image;j.onload=function(){h.resolve(b,j)};j.src=a;break;case "Image":a=a[3];g.objs.resolve(b,a);a&&("data"in a&&8E6<a.data.length)&&(g.cleanupAfterRender=!0);break;default:v("Got unknown object type "+c)}},this);a.on("DocProgress",function(a){this.progressCallback&&this.progressCallback({loaded:a.loaded,total:a.total})},this);a.on("DocError",function(a){this.workerReadyPromise.reject(a)},
107
+ this);a.on("PageError",function(a,b){var c=this.pageCache[a.pageNum-1].intentStates[b];c.displayReadyPromise?c.displayReadyPromise.reject(a.error):v(a.error)},this);a.on("JpegDecode",function(a,b){var c=a[0],g=a[1];3!=g&&1!=g&&v("Only 3 component or 1 component can be returned");var h=new Image;h.onload=function(){var a=h.width,c=h.height,d=a*c,f=4*d,d=new Uint8Array(d*g),q=ya(a,c).getContext("2d");q.drawImage(h,0,0);var q=q.getImageData(0,0,a,c).data,n,m;if(3==g)for(m=n=0;n<f;n+=4,m+=3)d[m]=q[n],
108
+ d[m+1]=q[n+1],d[m+2]=q[n+2];else if(1==g)for(m=n=0;n<f;n+=4,m++)d[m]=q[n];b.resolve({data:d,width:a,height:c})}.bind(this);h.src=c})},fetchDocument:function(a){a.disableAutoFetch=PDFJS.disableAutoFetch;a.chunkedViewerLoading=!!this.pdfDataRangeTransport;this.messageHandler.send("GetDocRequest",{source:a,disableRange:PDFJS.disableRange,maxImageSize:PDFJS.maxImageSize,cMapUrl:PDFJS.cMapUrl,cMapPacked:PDFJS.cMapPacked,disableFontFace:PDFJS.disableFontFace,disableCreateObjectURL:PDFJS.disableCreateObjectURL,
109
+ verbosity:PDFJS.verbosity})},getData:function(a){this.messageHandler.send("GetData",null,function(b){a.resolve(b)})},getPage:function(a,b){if(0>=a||a>this.numPages||(a|0)!==a){var c=new PDFJS.LegacyPromise;c.reject(Error("Invalid page request"));return c}c=a-1;if(c in this.pagePromises)return this.pagePromises[c];b=new PDFJS.LegacyPromise;this.pagePromises[c]=b;this.messageHandler.send("GetPageRequest",{pageIndex:c});return b},getPageIndex:function(a){var b=new PDFJS.LegacyPromise;this.messageHandler.send("GetPageIndex",
110
+ {ref:a},function(a){b.resolve(a)});return b},getAnnotations:function(a){this.messageHandler.send("GetAnnotationsRequest",{pageIndex:a})},getDestinations:function(){var a=new PDFJS.LegacyPromise;this.messageHandler.send("GetDestinations",null,function(b){a.resolve(b)});return a},getAttachments:function(){var a=new PDFJS.LegacyPromise;this.messageHandler.send("GetAttachments",null,function(b){a.resolve(b)});return a},startCleanup:function(){this.messageHandler.send("Cleanup",null,function(){for(var a=
111
+ 0,b=this.pageCache.length;a<b;a++){var c=this.pageCache[a];c&&c.destroy()}this.commonObjs.clear();M.clear()}.bind(this))}};ib=nb;var pa,pb=function(){this.objs={}};pb.prototype={ensureObj:function(a){if(this.objs[a])return this.objs[a];var b={promise:new N,data:null,resolved:!1};return this.objs[a]=b},get:function(a,b){if(b)return this.ensureObj(a).promise.then(b),null;var c=this.objs[a];(!c||!c.resolved)&&v("Requesting object that isn't resolved yet "+a);return c.data},resolve:function(a,b){var c=
112
+ this.ensureObj(a);c.resolved=!0;c.data=b;c.promise.resolve(b)},isResolved:function(a){var b=this.objs;return b[a]?b[a].resolved:!1},hasData:function(a){return this.isResolved(a)},getData:function(a){var b=this.objs;return!b[a]||!b[a].resolved?null:b[a].data},clear:function(){this.objs={}}};pa=pb;var mb,qb=function(a){this.internalRenderTask=a;this.promise=new PDFJS.LegacyPromise};qb.prototype={cancel:function(){this.internalRenderTask.cancel();this.promise.reject(Error("Rendering is cancelled"))},
113
+ then:function(a,b){return this.promise.then(a,b)}};mb=qb;var lb,rb=function(a,b,c,d,e,f){this.callback=a;this.params=b;this.objs=c;this.commonObjs=d;this.operatorListIdx=null;this.operatorList=e;this.pageNumber=f;this.running=!1;this.graphicsReadyCallback=null;this.cancelled=this.graphicsReady=!1};rb.prototype={initalizeGraphics:function(a){if(!this.cancelled){PDFJS.pdfBug&&("StepperManager"in y&&y.StepperManager.enabled)&&(this.stepper=y.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),
114
+ this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var b=this.params;this.gfx=new qa(b.canvasContext,this.commonObjs,this.objs,b.imageLayer);this.gfx.beginDrawing(b.viewport,a);this.operatorListIdx=0;this.graphicsReady=!0;this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1;this.cancelled=!0;this.callback("cancelled")},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||
115
+ this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continue.bind(this))},_continue:function(){this.running=!0;this.cancelled||(this.params.continueCallback?this.params.continueCallback(this._next.bind(this)):this._next())},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continue.bind(this),this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&
116
+ (this.gfx.endDrawing(),this.callback())))}};lb=rb;var Nb=PDFJS,sb=function(a){"string"===typeof a?(a=a.replace(/>\\376\\377([^<]+)/g,function(a,c){for(var d=c.replace(/\\([0-3])([0-7])([0-7])/g,function(a,b,c,d){return String.fromCharCode(64*b+8*c+1*d)}),e="",f=0;f<d.length;f+=2)var g=256*d.charCodeAt(f)+d.charCodeAt(f+1),e=e+("&#x"+(65536+g).toString(16).substring(1)+";");return">"+e}),a=(new DOMParser).parseFromString(a,"application/xml")):a instanceof Document||v("Metadata: Invalid metadata object");
117
+ this.metaDocument=a;this.metadata={};this.parse()};sb.prototype={parse:function(){var a=this.metaDocument.documentElement;if("rdf:rdf"!==a.nodeName.toLowerCase())for(a=a.firstChild;a&&"rdf:rdf"!==a.nodeName.toLowerCase();)a=a.nextSibling;var b=a?a.nodeName.toLowerCase():null;if(a&&"rdf:rdf"===b&&a.hasChildNodes()){var a=a.childNodes,c,d,e,f,g,h;e=0;for(g=a.length;e<g;e++)if(b=a[e],"rdf:description"===b.nodeName.toLowerCase()){f=0;for(h=b.childNodes.length;f<h;f++)"#text"!==b.childNodes[f].nodeName.toLowerCase()&&
118
+ (c=b.childNodes[f],d=c.nodeName.toLowerCase(),this.metadata[d]=c.textContent.trim())}}},get:function(a){return this.metadata[a]||null},has:function(a){return"undefined"!==typeof this.metadata[a]}};Nb.Metadata=sb;var F,$={};F={getCanvas:function(a,b,c,d){a in $?(a=$[a],a.canvas.width=b,a.canvas.height=c,a.context.setTransform(1,0,0,1,0,0)):(b=ya(b,c),c=b.getContext("2d"),d&&za(c),$[a]=a={canvas:b,context:c});return a},clear:function(){$={}}};var ra=function(a){this.alphaIsShape=!1;this.fontSize=0;
119
+ this.fontSizeScale=1;this.textMatrix=Ca;this.fontMatrix=ha;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=0;this.textHScale=1;this.textRise=this.textRenderingMode=0;this.fillColorSpace=s.singletons.gray;this.fillColorSpaceObj=null;this.strokeColorSpace=s.singletons.gray;this.strokeColorObj=this.fillColorObj=this.strokeColorSpaceObj=null;this.strokeColor=this.fillColor="#000000";this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.activeSMask=null;this.old=a};ra.prototype=
120
+ {clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a;this.y=b}};var qa,aa=function(a,b,c,d){this.ctx=a;this.current=new ra;this.stateStack=[];this.pendingClip=null;this.pendingEOFill=!1;this.xobjs=this.res=null;this.commonObjs=b;this.objs=c;this.imageLayer=d;this.groupStack=[];this.baseTransform=this.processingType3=null;this.baseTransformStack=[];this.groupLevel=0;this.smaskStack=[];this.smaskCounter=0;this.tempSMask=null;a&&za(a)},tb=function(a,b){if("undefined"!==
121
+ typeof ImageData&&b instanceof ImageData)a.putImageData(b,0,0);else{var c=b.height,d=b.width,e=c/16,f=Math.floor(e),e=Math.ceil(e),c=c-16*f,g=a.createImageData(d,16),h=0,j,k=b.data,l=g.data,p,q,n;if(1===b.kind){var m=k.byteLength,l=PDFJS.hasCanvasTypedArrays?new Uint32Array(l.buffer):new ja(l),r=l.length,x=d+7>>3,w=PDFJS.isLittleEndian||!PDFJS.hasCanvasTypedArrays?4278190080:255;for(p=0;p<e;p++){n=p<f?16:c;for(q=j=0;q<n;q++){for(var D=m-h,t=0,D=D>x?d:8*D-7,s=D&-8,P=0,u=0;t<s;t+=8)u=k[h++],l[j++]=
122
+ u&128?4294967295:w,l[j++]=u&64?4294967295:w,l[j++]=u&32?4294967295:w,l[j++]=u&16?4294967295:w,l[j++]=u&8?4294967295:w,l[j++]=u&4?4294967295:w,l[j++]=u&2?4294967295:w,l[j++]=u&1?4294967295:w;for(;t<D;t++)0===P&&(u=k[h++],P=128),l[j++]=u&P?4294967295:w,P>>=1}for(;j<r;)l[j++]=0;a.putImageData(g,0,16*p)}}else if(3===b.kind)for(p=0;p<e;p++)n=p<f?16:c,d=4*b.width*n,l.set(k.subarray(h,h+d)),h+=d,a.putImageData(g,0,16*p);else if(2===b.kind)for(p=0;p<e;p++){n=p<f?16:c;d=3*b.width*n;for(q=j=0;q<d;q+=3)l[j++]=
123
+ k[h++],l[j++]=k[h++],l[j++]=k[h++],l[j++]=255;a.putImageData(g,0,16*p)}else v("bad image kind: "+b.kind)}},sa=function(a,b){for(var c=b.height,d=b.width,e=c/16,f=Math.floor(e),e=Math.ceil(e),c=c-16*f,g=a.createImageData(d,16),h=0,j=b.data,k=g.data,l=0;l<e;l++){for(var p=l<f?16:c,q=3,n=0;n<p;n++)for(var m=0,r=0;r<d;r++){if(!m)var x=j[h++],m=128;k[q]=x&m?0:255;q+=4;m>>=1}a.putImageData(g,0,16*l)}},ub=function(a,b){for(var c="strokeStyle fillStyle fillRule globalAlpha lineWidth lineCap lineJoin miterLimit globalCompositeOperation font".split(" "),
124
+ d=0,e=c.length;d<e;d++){var f=c[d];f in a&&(b[f]=a[f])}"setLineDash"in a?(b.setLineDash(a.getLineDash()),b.lineDashOffset=a.lineDashOffset):"mozDash"in a&&(b.mozDash=a.mozDash,b.mozDashOffset=a.mozDashOffset)},Ob=["butt","round","square"],Pb=["miter","round","bevel"],Qb={},vb={};aa.prototype={beginDrawing:function(a,b){var c=this.ctx.canvas.width,d=this.ctx.canvas.height;b?this.ctx.clearRect(0,0,c,d):(this.ctx.mozOpaque=!0,this.ctx.save(),this.ctx.fillStyle="rgb(255, 255, 255)",this.ctx.fillRect(0,
125
+ 0,c,d),this.ctx.restore());c=a.transform;this.ctx.save();this.ctx.transform.apply(this.ctx,c);this.baseTransform=this.ctx.mozCurrentTransform.slice();this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(a,b,c,d){var e=a.argsArray;a=a.fnArray;b=b||0;var f=e.length;if(f==b)return b;for(var g=Date.now()+15,h=this.commonObjs,j=this.objs,k,l=Promise.resolve();;){if(d&&b===d.nextBreakPoint)return d.breakIt(b,c),b;k=a[b];if(k!==J.dependency)this[k].apply(this,e[b]);else{k=e[b];for(var p=
126
+ 0,q=k.length;p<q;p++){var n=k[p],m="g_"==n.substring(0,2);if(!m&&!j.isResolved(n))return j.get(n,c),b;if(m&&!h.isResolved(n))return h.get(n,c),b}}b++;if(b==f)return b;if(c&&Date.now()>g)return l.then(c),b}},endDrawing:function(){this.ctx.restore();F.clear();R.clear();this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(a){this.current.lineWidth=a;this.ctx.lineWidth=a},setLineCap:function(a){this.ctx.lineCap=Ob[a]},setLineJoin:function(a){this.ctx.lineJoin=Pb[a]},setMiterLimit:function(a){this.ctx.miterLimit=
127
+ a},setDash:function(a,b){var c=this.ctx;"setLineDash"in c?(c.setLineDash(a),c.lineDashOffset=b):(c.mozDash=a,c.mozDashOffset=b)},setRenderingIntent:function(){},setFlatness:function(){},setGState:function(a){for(var b=0,c=a.length;b<c;b++){var d=a[b],e=d[1];switch(d[0]){case "LW":this.setLineWidth(e);break;case "LC":this.setLineCap(e);break;case "LJ":this.setLineJoin(e);break;case "ML":this.setMiterLimit(e);break;case "D":this.setDash(e[0],e[1]);break;case "RI":this.setRenderingIntent(e);break;case "FL":this.setFlatness(e);
128
+ break;case "Font":this.setFont(e[0],e[1]);break;case "CA":this.current.strokeAlpha=d[1];break;case "ca":this.current.fillAlpha=d[1];this.ctx.globalAlpha=d[1];break;case "BM":e&&e.name&&"Normal"!==e.name?(d=e.name.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}).substring(1),this.ctx.globalCompositeOperation=d,this.ctx.globalCompositeOperation!==d&&z('globalCompositeOperation "'+d+'" is not supported')):this.ctx.globalCompositeOperation="source-over";break;case "SMask":this.current.activeSMask&&
129
+ this.endSMaskGroup(),this.current.activeSMask=e?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var a=this.current.activeSMask,b=F.getCanvas("smaskGroupAt"+this.groupLevel,a.canvas.width,a.canvas.height,!0),c=this.ctx,d=c.mozCurrentTransform;this.ctx.save();b=b.context;b.scale(1/a.scaleX,1/a.scaleY);b.translate(-a.offsetX,-a.offsetY);b.transform.apply(b,d);ub(c,b);this.ctx=b;this.setGState([["BM","Normal"],["ca",1],["CA",1]]);
130
+ this.groupStack.push(c);this.groupLevel++},endSMaskGroup:function(){var a=this.ctx;this.groupLevel--;var b=this.ctx=this.groupStack.pop(),c=this.current.activeSMask,d=c.canvas,e=c.context;b.setTransform(c.scaleX,0,0,c.scaleY,c.offsetX,c.offsetY);var f;c.backdrop&&(f=(c.colorSpace||s.singletons.rgb).getRgb(c.backdrop,0));if(R.isEnabled)a=R.composeSMask(a.canvas,d,{subtype:c.subtype,backdrop:f}),b.setTransform(1,0,0,1,0,0),b.drawImage(a,c.offsetX,c.offsetY);else{var g=d.width,h=d.height,j=c.subtype,
131
+ c=(c=f)?function(a,b,c,d){for(var e=d.length,f=3;f<e;f+=4){var g=d[f]/255;if(0===g)d[f-3]=a,d[f-2]=b,d[f-1]=c;else if(1>g){var h=1-g;d[f-3]=d[f-3]*g+a*h|0;d[f-2]=d[f-2]*g+b*h|0;d[f-1]=d[f-1]*g+c*h|0}}}.bind(null,c[0],c[1],c[2]):function(){},j="Luminosity"===j?function(a,b){for(var c=a.length,d=3;d<c;d+=4)b[d]=b[d]*(77*a[d-3]+152*a[d-2]+28*a[d-1]|0)>>16}:function(a,b){for(var c=a.length,d=3;d<c;d+=4)b[d]=b[d]*a[d]/255|0};f=Math.min(h,Math.ceil(65536/g));for(var k=0;k<h;k+=f){var l=Math.min(f,h-k),
132
+ p=e.getImageData(0,k,g,l),l=a.getImageData(0,k,g,l);c(p.data);j(p.data,l.data);e.putImageData(l,0,k)}b.drawImage(d,0,0)}this.ctx.restore()},save:function(){this.ctx.save();var a=this.current;this.stateStack.push(a);this.current=a.clone();this.current.activeSMask&&(this.current.activeSMask=null)},restore:function(){var a=this.stateStack.pop();a&&(this.current.activeSMask&&this.endSMaskGroup(),this.current=a,this.ctx.restore())},transform:function(a,b,c,d,e,f){this.ctx.transform(a,b,c,d,e,f)},moveTo:function(a,
133
+ b){this.ctx.moveTo(a,b);this.current.setCurrentPoint(a,b)},lineTo:function(a,b){this.ctx.lineTo(a,b);this.current.setCurrentPoint(a,b)},curveTo:function(a,b,c,d,e,f){this.ctx.bezierCurveTo(a,b,c,d,e,f);this.current.setCurrentPoint(e,f)},curveTo2:function(a,b,c,d){var e=this.current;this.ctx.bezierCurveTo(e.x,e.y,a,b,c,d);e.setCurrentPoint(c,d)},curveTo3:function(a,b,c,d){this.curveTo(a,b,c,d,c,d);this.current.setCurrentPoint(c,d)},closePath:function(){this.ctx.closePath()},rectangle:function(a,b,
134
+ c,d){0===c&&(c=this.getSinglePixelWidth());0===d&&(d=this.getSinglePixelWidth());this.ctx.rect(a,b,c,d)},stroke:function(a){a="undefined"!==typeof a?a:!0;var b=this.ctx,c=this.current.strokeColor;0===this.current.lineWidth&&(b.lineWidth=this.getSinglePixelWidth());b.globalAlpha=this.current.strokeAlpha;c&&c.hasOwnProperty("type")&&"Pattern"===c.type?(b.save(),b.strokeStyle=c.getPattern(b,this),b.stroke(),b.restore()):b.stroke();a&&this.consumePath();b.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath();
135
+ this.stroke()},fill:function(a){a="undefined"!==typeof a?a:!0;var b=this.ctx,c=this.current.fillColor,d=!1;c&&(c.hasOwnProperty("type")&&"Pattern"===c.type)&&(b.save(),b.fillStyle=c.getPattern(b,this),d=!0);if(this.pendingEOFill){if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.fill(),this.ctx.mozFillRule="nonzero";else try{this.ctx.fill("evenodd")}catch(e){this.ctx.fill()}this.pendingEOFill=!1}else this.ctx.fill();d&&b.restore();a&&this.consumePath()},eoFill:function(){this.pendingEOFill=
136
+ !0;this.fill()},fillStroke:function(){this.fill(!1);this.stroke(!1);this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0;this.fillStroke()},closeFillStroke:function(){this.closePath();this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0;this.closePath();this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=Qb},eoClip:function(){this.pendingClip=vb},beginText:function(){this.current.textMatrix=Ca;this.current.x=this.current.lineX=0;
137
+ this.current.y=this.current.lineY=0},endText:function(){if("pendingTextPaths"in this){var a=this.pendingTextPaths,b=this.ctx;b.save();b.beginPath();for(var c=0;c<a.length;c++){var d=a[c];b.setTransform.apply(b,d.transform);b.translate(d.x,d.y);d.addToPath(b,d.fontSize)}b.restore();b.clip();b.beginPath();delete this.pendingTextPaths}else this.ctx.beginPath()},setCharSpacing:function(a){this.current.charSpacing=a},setWordSpacing:function(a){this.current.wordSpacing=a},setHScale:function(a){this.current.textHScale=
138
+ a/100},setLeading:function(a){this.current.leading=-a},setFont:function(a,b){var c=this.commonObjs.get(a),d=this.current;c||v("Can't find font for "+a);d.fontMatrix=c.fontMatrix?c.fontMatrix:ha;(0===d.fontMatrix[0]||0===d.fontMatrix[3])&&z("Invalid font matrix for font "+a);0>b?(b=-b,d.fontDirection=-1):d.fontDirection=1;this.current.font=c;this.current.fontSize=b;if(!c.coded){var d=c.black?c.bold?"bolder":"bold":c.bold?"bold":"normal",e=c.italic?"italic":"normal",c='"'+(c.loadedName||"sans-serif")+
139
+ '", '+c.fallbackName,f=16<=b?b:16;this.current.fontSizeScale=16!=f?1:b/16;this.ctx.font=e+" "+d+" "+f+"px "+c}},setTextRenderingMode:function(a){this.current.textRenderingMode=a},setTextRise:function(a){this.current.textRise=a},moveText:function(a,b){this.current.x=this.current.lineX+=a;this.current.y=this.current.lineY+=b},setLeadingMoveText:function(a,b){this.setLeading(-b);this.moveText(a,b)},setTextMatrix:function(a,b,c,d,e,f){this.current.textMatrix=[a,b,c,d,e,f];this.current.x=this.current.lineX=
140
+ 0;this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},applyTextTransforms:function(){var a=this.ctx,b=this.current;a.transform.apply(a,b.textMatrix);a.translate(b.x,b.y+b.textRise);0<b.fontDirection?a.scale(b.textHScale,-1):a.scale(-b.textHScale,1)},paintChar:function(a,b,c){var d=this.ctx,e=this.current,f=e.font,g=e.fontSize/e.fontSizeScale,h=e.textRenderingMode,e=h&3,h=!!(h&4),j;if(f.disableFontFace||h)j=f.getPathGenerator(this.commonObjs,a);f.disableFontFace?
141
+ (d.save(),d.translate(b,c),d.beginPath(),j(d,g),(0===e||2===e)&&d.fill(),(1===e||2===e)&&d.stroke(),d.restore()):((0===e||2===e)&&d.fillText(a,b,c),(1===e||2===e)&&d.strokeText(a,b,c));h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:d.mozCurrentTransform,x:b,y:c,fontSize:g,addToPath:j})},get isFontSubpixelAAEnabled(){var a=document.createElement("canvas").getContext("2d");a.scale(1.5,1);a.fillText("I",0,10);for(var a=a.getImageData(0,0,10,10).data,b=!1,c=3;c<a.length;c+=4)if(0<
142
+ a[c]&&255>a[c]){b=!0;break}return K(this,"isFontSubpixelAAEnabled",b)},showText:function(a){var b=this.ctx,c=this.current,d=c.font,e=c.fontSize,f=c.fontSizeScale,g=c.charSpacing,h=c.wordSpacing,j=c.textHScale*c.fontDirection,k=c.fontMatrix||ha,l=a.length,p=d.vertical,q=d.defaultVMetrics,n,m,r;if(0!==e)if(d.coded){b.save();b.transform.apply(b,c.textMatrix);b.translate(c.x,c.y);b.scale(j,1);for(n=0;n<l;++n)m=a[n],null===m?(this.ctx.translate(h,0),c.x+=h*j):(this.processingType3=m,this.save(),b.scale(e,
143
+ e),b.transform.apply(b,k),this.executeOperatorList(m.operatorList),this.restore(),r=(t.applyTransform([m.width,0],k)[0]*e+g)*c.fontDirection,b.translate(r,0),c.x+=r*j);b.restore();this.processingType3=null}else{b.save();this.applyTextTransforms();n=c.lineWidth;var k=c.textMatrix[0],x=c.textMatrix[1],k=Math.sqrt(k*k+x*x);n=0===k||0===n?this.getSinglePixelWidth():n/k;1!=f&&(b.scale(f,f),n/=f);b.lineWidth=n;for(n=k=0;n<l;++n)if(m=a[n],null===m)k+=c.fontDirection*h;else{var x=!1,w=m.fontChar,D=m.vmetric||
144
+ q;if(p)var v=m.vmetric?D[1]:0.5*m.width,v=-v*e*c.fontMatrix[0],s=D[2]*e*c.fontMatrix[0];r=D?-D[0]:m.width;D=r*e*c.fontMatrix[0]+g*c.fontDirection;m=m.accent;var u,y,z;p?(u=v/f,y=(k+s)/f):(u=k/f,y=0);d.remeasure&&(0<r&&this.isFontSubpixelAAEnabled)&&(x=1E3*b.measureText(w).width/c.fontSize*c.fontSizeScale,r/=x,x=!0,b.save(),b.scale(r,1),u/=r,m&&(z/=r));this.paintChar(w,u,y);m&&(z=u+m.offset.x/f,w=y-m.offset.y/f,this.paintChar(m.fontChar,z,w));k+=D;x&&b.restore()}p?c.y-=k*j:c.x+=k*j;b.restore()}},showSpacedText:function(a){for(var b=
145
+ this.current,c=b.fontSize,d=0.001*b.textHScale*b.fontDirection,e=a.length,f=b.font.vertical,g=0;g<e;++g){var h=a[g];"number"==typeof h?(h=-h*c*d,f?b.y+=h:b.x+=h):this.showText(h)}},nextLineShowText:function(a){this.nextLine();this.showText(a)},nextLineSetSpacingShowText:function(a,b,c){this.setWordSpacing(a);this.setCharSpacing(b);this.nextLineShowText(c)},setCharWidth:function(){},setCharWidthAndBounds:function(a,b,c,d,e,f){this.rectangle(c,d,e-c,f-d);this.clip();this.endPath()},setStrokeColorSpace:function(a){this.current.strokeColorSpace=
146
+ s.fromIR(a)},setFillColorSpace:function(a){this.current.fillColorSpace=s.fromIR(a)},setStrokeColor:function(){var a=this.current.strokeColorSpace.getRgb(arguments,0),a=t.makeCssRgb(a);this.ctx.strokeStyle=a;this.current.strokeColor=a},getColorN_Pattern:function(a,b){var c;if("TilingPattern"==a[0]){c=a[1];var d=b.base,e;d&&(e=d.getRgb(c,0));c=new wb(a,e,this.ctx,this.objs,this.commonObjs,this.baseTransform)}else c=Aa(a);return c},setStrokeColorN:function(){var a=this.current.strokeColorSpace;"Pattern"==
147
+ a.name?this.current.strokeColor=this.getColorN_Pattern(arguments,a):this.setStrokeColor.apply(this,arguments)},setFillColor:function(){var a=this.current.fillColorSpace.getRgb(arguments,0),a=t.makeCssRgb(a);this.ctx.fillStyle=a;this.current.fillColor=a},setFillColorN:function(){var a=this.current.fillColorSpace;"Pattern"==a.name?this.current.fillColor=this.getColorN_Pattern(arguments,a):this.setFillColor.apply(this,arguments)},setStrokeGray:function(a){this.current.strokeColorSpace=s.singletons.gray;
148
+ var b=this.current.strokeColorSpace.getRgb(arguments,0),b=t.makeCssRgb(b);this.ctx.strokeStyle=b;this.current.strokeColor=b},setFillGray:function(a){this.current.fillColorSpace=s.singletons.gray;var b=this.current.fillColorSpace.getRgb(arguments,0),b=t.makeCssRgb(b);this.ctx.fillStyle=b;this.current.fillColor=b},setStrokeRGBColor:function(a,b,c){this.current.strokeColorSpace=s.singletons.rgb;var d=this.current.strokeColorSpace.getRgb(arguments,0),d=t.makeCssRgb(d);this.ctx.strokeStyle=d;this.current.strokeColor=
149
+ d},setFillRGBColor:function(a,b,c){this.current.fillColorSpace=s.singletons.rgb;var d=this.current.fillColorSpace.getRgb(arguments,0),d=t.makeCssRgb(d);this.ctx.fillStyle=d;this.current.fillColor=d},setStrokeCMYKColor:function(a,b,c,d){this.current.strokeColorSpace=s.singletons.cmyk;var e=t.makeCssCmyk(arguments);this.ctx.strokeStyle=e;this.current.strokeColor=e},setFillCMYKColor:function(a,b,c,d){this.current.fillColorSpace=s.singletons.cmyk;var e=t.makeCssCmyk(arguments);this.ctx.fillStyle=e;this.current.fillColor=
150
+ e},shadingFill:function(a){var b=this.ctx;this.save();a=Aa(a);b.fillStyle=a.getPattern(b,this,!0);var c=b.mozCurrentTransformInverse;if(c){var b=b.canvas,d=b.width,e=b.height,b=t.applyTransform([0,0],c);a=t.applyTransform([0,e],c);var f=t.applyTransform([d,0],c),g=t.applyTransform([d,e],c),c=Math.min(b[0],a[0],f[0],g[0]),d=Math.min(b[1],a[1],f[1],g[1]),e=Math.max(b[0],a[0],f[0],g[0]),b=Math.max(b[1],a[1],f[1],g[1]);this.ctx.fillRect(c,d,e-c,b-d)}else this.ctx.fillRect(-1E10,-1E10,2E10,2E10);this.restore()},
151
+ beginInlineImage:function(){v("Should not call beginInlineImage")},beginImageData:function(){v("Should not call beginImageData")},paintFormXObjectBegin:function(a,b){this.save();this.baseTransformStack.push(this.baseTransform);a&&(B(a)&&6==a.length)&&this.transform.apply(this,a);this.baseTransform=this.ctx.mozCurrentTransform;b&&(B(b)&&4==b.length)&&(this.rectangle(b[0],b[1],b[2]-b[0],b[3]-b[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore();this.baseTransform=this.baseTransformStack.pop()},
152
+ beginGroup:function(a){this.save();var b=this.ctx;a.isolated||G("TODO: Support non-isolated groups.");a.knockout&&z("Knockout groups not supported.");var c=b.mozCurrentTransform;a.matrix&&b.transform.apply(b,a.matrix);a.bbox||v("Bounding box is required.");var d=t.getAxialAlignedBoundingBox(a.bbox,b.mozCurrentTransform),d=t.intersect(d,[0,0,b.canvas.width,b.canvas.height])||[0,0,0,0],e=Math.floor(d[0]),f=Math.floor(d[1]),g=Math.max(Math.ceil(d[2])-e,1),h=Math.max(Math.ceil(d[3])-f,1),j=d=1;4096<g&&
153
+ (d=g/4096,g=4096);4096<h&&(j=h/4096,h=4096);var k="groupAt"+this.groupLevel;a.smask&&(k+="_smask_"+this.smaskCounter++%2);g=F.getCanvas(k,g,h,!0);h=g.context;h.scale(1/d,1/j);h.translate(-e,-f);h.transform.apply(h,c);a.smask?this.smaskStack.push({canvas:g.canvas,context:h,offsetX:e,offsetY:f,scaleX:d,scaleY:j,subtype:a.smask.subtype,backdrop:a.smask.backdrop,colorSpace:a.colorSpace&&s.fromIR(a.colorSpace)}):(b.setTransform(1,0,0,1,0,0),b.translate(e,f),b.scale(d,j));ub(b,h);this.ctx=h;this.setGState([["BM",
154
+ "Normal"],["ca",1],["CA",1]]);this.groupStack.push(b);this.groupLevel++},endGroup:function(a){this.groupLevel--;var b=this.ctx;this.ctx=this.groupStack.pop();"imageSmoothingEnabled"in this.ctx?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1;a.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(b.canvas,0,0);this.restore()},beginAnnotations:function(){this.save();this.current=new ra},endAnnotations:function(){this.restore()},beginAnnotation:function(a,b,c){this.save();
155
+ a&&(B(a)&&4==a.length)&&(this.rectangle(a[0],a[1],a[2]-a[0],a[3]-a[1]),this.clip(),this.endPath());this.transform.apply(this,b);this.transform.apply(this,c)},endAnnotation:function(){this.restore()},paintJpegXObject:function(a,b,c){var d=this.objs.get(a);if(d){this.save();var e=this.ctx;e.scale(1/b,-1/c);e.drawImage(d,0,0,d.width,d.height,0,-c,b,c);this.imageLayer&&(d=e.mozCurrentTransformInverse,e=this.getCanvasPosition(0,0),this.imageLayer.appendImage({objId:a,left:e[0],top:e[1],width:b/d[0],height:c/
156
+ d[3]}));this.restore()}else z("Dependent image isn't ready yet")},paintImageMaskXObject:function(a){var b=this.ctx,c=a.width,d=a.height,e=this.processingType3;if(e&&!("compiled"in e)){var f;if(1E3>=c&&1E3>=d)a:{var g=a.data,h,j,k=c+1,l=new Uint8Array(k*(d+1)),p=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),q=c+7&-8,n=new Uint8Array(q*d),m=0;f=0;for(h=g.length;f<h;f++){j=128;for(var r=g[f];0<j;)n[m++]=r&j?0:255,j>>=1}m=g=0;0!==n[m]&&(l[0]=1,++g);for(h=1;h<c;h++)n[m]!==n[m+1]&&(l[h]=n[m]?2:1,++g),
157
+ m++;0!==n[m]&&(l[h]=2,++g);for(f=1;f<d;f++){m=f*q;j=f*k;n[m-q]!==n[m]&&(l[j]=n[m]?1:8,++g);r=(n[m]?4:0)+(n[m-q]?8:0);for(h=1;h<c;h++)r=(r>>2)+(n[m+1]?4:0)+(n[m-q+1]?8:0),p[r]&&(l[j+h]=p[r],++g),m++;n[m-q]!==n[m]&&(l[j+h]=n[m]?2:4,++g);if(1E3<g){f=null;break a}}m=q*(d-1);j=f*k;0!==n[m]&&(l[j]=8,++g);for(h=1;h<c;h++)n[m]!==n[m+1]&&(l[j+h]=n[m]?4:8,++g),m++;0!==n[m]&&(l[j+h]=4,++g);if(1E3<g)f=null;else{var p=new Int32Array([0,k,-1,0,-k,0,0,0,1]),x=[];for(f=0;g&&f<=d;f++){q=f*k;for(n=q+c;q<n&&!l[q];)q++;
158
+ if(q!==n){n=[q%k,f];m=l[q];h=q;do{j=p[m];do q+=j;while(!l[q]);j=l[q];5!==j&&10!==j?(m=j,l[q]=0):(m=j&51*m>>4,l[q]&=m>>2|m<<2);n.push(q%k);n.push(q/k|0);--g}while(h!==q);x.push(n);--f}}f=function(a){a.save();a.scale(1/c,-1/d);a.translate(0,-d);a.beginPath();for(var b=0,e=x.length;b<e;b++){var f=x[b];a.moveTo(f[0],f[1]);for(var g=2,h=f.length;g<h;g+=2)a.lineTo(f[g],f[g+1])}a.fill();a.beginPath();a.restore()}}}else f=null;e.compiled=f}e&&e.compiled?e.compiled(b):(b=F.getCanvas("maskCanvas",c,d),e=b.context,
159
+ e.save(),sa(e,a),e.globalCompositeOperation="source-in",a=this.current.fillColor,e.fillStyle=a&&a.hasOwnProperty("type")&&"Pattern"===a.type?a.getPattern(e,this):a,e.fillRect(0,0,c,d),e.restore(),this.paintInlineImageXObject(b.canvas))},paintImageMaskXObjectRepeat:function(a,b,c,d){var e=a.width,f=a.height,g=this.ctx,h=F.getCanvas("maskCanvas",e,f),j=h.context;j.save();sa(j,a);j.globalCompositeOperation="source-in";a=this.current.fillColor;j.fillStyle=a&&a.hasOwnProperty("type")&&"Pattern"===a.type?
160
+ a.getPattern(j,this):a;j.fillRect(0,0,e,f);j.restore();j=0;for(a=d.length;j<a;j+=2)g.save(),g.transform(b,0,0,c,d[j],d[j+1]),g.scale(1,-1),g.drawImage(h.canvas,0,0,e,f,0,-1,1,1),g.restore()},paintImageMaskXObjectGroup:function(a){for(var b=this.ctx,c=0,d=a.length;c<d;c++){var e=a[c],f=e.width,g=e.height,h=F.getCanvas("maskCanvas",f,g),j=h.context;j.save();sa(j,e);j.globalCompositeOperation="source-in";var k=this.current.fillColor;j.fillStyle=k&&k.hasOwnProperty("type")&&"Pattern"===k.type?k.getPattern(j,
161
+ this):k;j.fillRect(0,0,f,g);j.restore();b.save();b.transform.apply(b,e.transform);b.scale(1,-1);b.drawImage(h.canvas,0,0,f,g,0,-1,1,1);b.restore()}},paintImageXObject:function(a){(a=this.objs.get(a))?this.paintInlineImageXObject(a):z("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(a,b,c,d){if(a=this.objs.get(a)){for(var e=a.width,f=a.height,g=[],h=0,j=d.length;h<j;h+=2)g.push({transform:[b,0,0,c,d[h],d[h+1]],x:0,y:0,w:e,h:f});this.paintInlineImageXObjectGroup(a,g)}else z("Dependent image isn't ready yet")},
162
+ paintInlineImageXObject:function(a){var b=a.width,c=a.height,d=this.ctx;this.save();d.scale(1/b,-1/c);var e=d.mozCurrentTransformInverse,f=e[0],g=e[1],f=Math.max(Math.sqrt(f*f+g*g),1),g=e[2],h=e[3],g=Math.max(Math.sqrt(g*g+h*h),1),j;if(a instanceof HTMLElement||!a.data)h=a;else{j=F.getCanvas("inlineImage",b,c);var k=j.context;tb(k,a);h=j.canvas}for(var l=b,p=c,q="prescale1";2<f&&1<l||2<g&&1<p;){var n=l,m=p;2<f&&1<l&&(n=Math.ceil(l/2),f/=l/n);2<g&&1<p&&(m=Math.ceil(p/2),g/=p/m);j=F.getCanvas(q,n,m);
163
+ k=j.context;k.clearRect(0,0,n,m);k.drawImage(h,0,0,l,p,0,0,n,m);h=j.canvas;l=n;p=m;q="prescale1"===q?"prescale2":"prescale1"}d.drawImage(h,0,0,l,p,0,-c,b,c);this.imageLayer&&(d=this.getCanvasPosition(0,-c),this.imageLayer.appendImage({imgData:a,left:d[0],top:d[1],width:b/e[0],height:c/e[3]}));this.restore()},paintInlineImageXObjectGroup:function(a,b){var c=this.ctx,d=a.width,e=a.height,f=F.getCanvas("inlineImage",d,e);tb(f.context,a);for(var g=0,h=b.length;g<h;g++){var j=b[g];c.save();c.transform.apply(c,
164
+ j.transform);c.scale(1,-1);c.drawImage(f.canvas,j.x,j.y,j.w,j.h,0,-1,1,1);this.imageLayer&&(j=this.getCanvasPosition(j.x,j.y),this.imageLayer.appendImage({imgData:a,left:j[0],top:j[1],width:d,height:e}));c.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},markPoint:function(){},markPointProps:function(){},beginMarkedContent:function(){},beginMarkedContentProps:function(){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){if(this.pendingClip){if(this.pendingClip==
165
+ vb)if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.clip(),this.ctx.mozFillRule="nonzero";else try{this.ctx.clip("evenodd")}catch(a){this.ctx.clip()}else this.ctx.clip();this.pendingClip=null}this.ctx.beginPath()},getSinglePixelWidth:function(){var a=this.ctx.mozCurrentTransformInverse;return Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3]))},getCanvasPosition:function(a,b){var c=this.ctx.mozCurrentTransform;return[c[0]*a+c[2]*b+c[4],c[1]*a+c[3]*b+c[5]]}};for(var xb in J)aa.prototype[J[xb]]=
166
+ aa.prototype[xb];qa=aa;var R,ba=function(a,b,c){c=a.createShader(c);a.shaderSource(c,b);a.compileShader(c);if(!a.getShaderParameter(c,a.COMPILE_STATUS))throw a=a.getShaderInfoLog(c),Error("Error during shader compilation: "+a);return c},yb=function(a,b){for(var c=a.createProgram(),d=0,e=b.length;d<e;++d)a.attachShader(c,b[d]);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))throw c=a.getProgramInfoLog(c),Error("Error during program linking: "+c);return c},zb=function(a,b,c){a.activeTexture(c);
167
+ c=a.createTexture();a.bindTexture(a.TEXTURE_2D,c);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c},ta=function(){Q||(S=document.createElement("canvas"),Q=S.getContext("webgl",{premultipliedalpha:!1}))},Q,S,ca=null,da=null;R={get isEnabled(){if(PDFJS.disableWebGL)return!1;
168
+ var a=!1;try{ta(),a=!!Q}catch(b){}return K(this,"isEnabled",a)},composeSMask:function(a,b,c){var d=a.width,e=a.height;if(!ca){var f,g;ta();f=S;S=null;g=Q;Q=null;var h=ba(g," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",
169
+ g.VERTEX_SHADER),j=ba(g," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",
170
+ g.FRAGMENT_SHADER),k=yb(g,[h,j]);g.useProgram(k);h={};h.gl=g;h.canvas=f;h.resolutionLocation=g.getUniformLocation(k,"u_resolution");h.positionLocation=g.getAttribLocation(k,"a_position");h.backdropLocation=g.getUniformLocation(k,"u_backdrop");h.subtypeLocation=g.getUniformLocation(k,"u_subtype");f=g.getAttribLocation(k,"a_texCoord");var j=g.getUniformLocation(k,"u_image"),k=g.getUniformLocation(k,"u_mask"),l=g.createBuffer();g.bindBuffer(g.ARRAY_BUFFER,l);g.bufferData(g.ARRAY_BUFFER,new Float32Array([0,
171
+ 0,1,0,0,1,0,1,1,0,1,1]),g.STATIC_DRAW);g.enableVertexAttribArray(f);g.vertexAttribPointer(f,2,g.FLOAT,!1,0,0);g.uniform1i(j,0);g.uniform1i(k,1);ca=h}g=ca;h=g.canvas;f=g.gl;h.width=d;h.height=e;f.viewport(0,0,f.drawingBufferWidth,f.drawingBufferHeight);f.uniform2f(g.resolutionLocation,d,e);c.backdrop?f.uniform4f(g.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):f.uniform4f(g.resolutionLocation,0,0,0,0);f.uniform1i(g.subtypeLocation,"Luminosity"===c.subtype?1:0);a=zb(f,a,f.TEXTURE0);
172
+ b=zb(f,b,f.TEXTURE1);c=f.createBuffer();f.bindBuffer(f.ARRAY_BUFFER,c);f.bufferData(f.ARRAY_BUFFER,new Float32Array([0,0,d,0,0,e,0,e,d,0,d,e]),f.STATIC_DRAW);f.enableVertexAttribArray(g.positionLocation);f.vertexAttribPointer(g.positionLocation,2,f.FLOAT,!1,0,0);f.clearColor(0,0,0,0);f.enable(f.BLEND);f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.clear(f.COLOR_BUFFER_BIT);f.drawArrays(f.TRIANGLES,0,6);f.flush();f.deleteTexture(a);f.deleteTexture(b);f.deleteBuffer(c);return h},drawFigures:function(a,
173
+ b,c,d,e){if(!da){var f,g;ta();f=S;S=null;g=Q;Q=null;var h=ba(g," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",
174
+ g.VERTEX_SHADER),j=ba(g," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g.FRAGMENT_SHADER),h=yb(g,
175
+ [h,j]);g.useProgram(h);j={};j.gl=g;j.canvas=f;j.resolutionLocation=g.getUniformLocation(h,"u_resolution");j.scaleLocation=g.getUniformLocation(h,"u_scale");j.offsetLocation=g.getUniformLocation(h,"u_offset");j.positionLocation=g.getAttribLocation(h,"a_position");j.colorLocation=g.getAttribLocation(h,"a_color");da=j}f=da;g=f.canvas;h=f.gl;g.width=a;g.height=b;h.viewport(0,0,h.drawingBufferWidth,h.drawingBufferHeight);h.uniform2f(f.resolutionLocation,a,b);a=0;var k,l,p;k=0;for(l=d.length;k<l;k++)switch(d[k].type){case "lattice":p=
176
+ d[k].coords.length/d[k].verticesPerRow|0;a+=6*(p-1)*(d[k].verticesPerRow-1);break;case "triangles":a+=d[k].coords.length}j=new Float32Array(2*a);b=new Uint8Array(3*a);var q=e.coords,n=e.colors,m=0,r=0;k=0;for(l=d.length;k<l;k++){p=d[k];var x=p.coords,w=p.colors;switch(p.type){case "lattice":var t=p.verticesPerRow;p=x.length/t|0;for(var v=1;v<p;v++)for(var s=v*t+1,u=1;u<t;u++,s++)j[m]=q[x[s-t-1]],j[m+1]=q[x[s-t-1]+1],j[m+2]=q[x[s-t]],j[m+3]=q[x[s-t]+1],j[m+4]=q[x[s-1]],j[m+5]=q[x[s-1]+1],b[r]=n[w[s-
177
+ t-1]],b[r+1]=n[w[s-t-1]+1],b[r+2]=n[w[s-t-1]+2],b[r+3]=n[w[s-t]],b[r+4]=n[w[s-t]+1],b[r+5]=n[w[s-t]+2],b[r+6]=n[w[s-1]],b[r+7]=n[w[s-1]+1],b[r+8]=n[w[s-1]+2],j[m+6]=j[m+2],j[m+7]=j[m+3],j[m+8]=j[m+4],j[m+9]=j[m+5],j[m+10]=q[x[s]],j[m+11]=q[x[s]+1],b[r+9]=b[r+3],b[r+10]=b[r+4],b[r+11]=b[r+5],b[r+12]=b[r+6],b[r+13]=b[r+7],b[r+14]=b[r+8],b[r+15]=n[w[s]],b[r+16]=n[w[s]+1],b[r+17]=n[w[s]+2],m+=12,r+=18;break;case "triangles":p=0;for(t=x.length;p<t;p++)j[m]=q[x[p]],j[m+1]=q[x[p]+1],b[r]=n[w[k]],b[r+1]=
178
+ n[w[p]+1],b[r+2]=n[w[p]+2],m+=2,r+=3}}c?h.clearColor(c[0]/255,c[1]/255,c[2]/255,1):h.clearColor(0,0,0,0);h.clear(h.COLOR_BUFFER_BIT);c=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,c);h.bufferData(h.ARRAY_BUFFER,j,h.STATIC_DRAW);h.enableVertexAttribArray(f.positionLocation);h.vertexAttribPointer(f.positionLocation,2,h.FLOAT,!1,0,0);d=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,d);h.bufferData(h.ARRAY_BUFFER,b,h.STATIC_DRAW);h.enableVertexAttribArray(f.colorLocation);h.vertexAttribPointer(f.colorLocation,
179
+ 3,h.UNSIGNED_BYTE,!1,0,0);h.uniform2f(f.scaleLocation,e.scaleX,e.scaleY);h.uniform2f(f.offsetLocation,e.offsetX,e.offsetY);h.drawArrays(h.TRIANGLES,0,a);h.flush();h.deleteBuffer(c);h.deleteBuffer(d);return g},clear:function(){da=ca=null}};var ga={RadialAxial:{fromIR:function(a){var b=a[1],c=a[2],d=a[3],e=a[4],f=a[5],g=a[6];return{type:"Pattern",getPattern:function(a){var j;"axial"===b?j=a.createLinearGradient(d[0],d[1],e[0],e[1]):"radial"===b&&(j=a.createRadialGradient(d[0],d[1],f,e[0],e[1],g));a=
180
+ 0;for(var k=c.length;a<k;++a){var l=c[a];j.addColorStop(l[0],l[1])}return j}}}}},Ab,ua=function(a,b,c,d,e,f,g,h){var j=b.coords,k=b.colors,l=a.data;a=4*a.width;var p;j[c+1]>j[d+1]&&(p=c,c=d,d=p,p=f,f=g,g=p);j[d+1]>j[e+1]&&(p=d,d=e,e=p,p=g,g=h,h=p);j[c+1]>j[d+1]&&(p=c,c=d,d=p,p=f,f=g,g=p);p=(j[c]+b.offsetX)*b.scaleX;c=(j[c+1]+b.offsetY)*b.scaleY;var q=(j[d]+b.offsetX)*b.scaleX;d=(j[d+1]+b.offsetY)*b.scaleY;var n=(j[e]+b.offsetX)*b.scaleX;b=(j[e+1]+b.offsetY)*b.scaleY;if(!(c>=b)){e=k[f];j=k[f+1];f=
181
+ k[f+2];var m=k[g],r=k[g+1];g=k[g+2];var t=k[h],s=k[h+1];h=k[h+2];for(var v=Math.round(c),k=Math.round(b),u,y,z,C,E,F,G,A,B=v;B<=k;B++){B<d?(A=B<c?0:c===d?1:(c-B)/(c-d),v=p-(p-q)*A,u=e-(e-m)*A,y=j-(j-r)*A,z=f-(f-g)*A):(A=B>b?1:d===b?0:(d-B)/(d-b),v=q-(q-n)*A,u=m-(m-t)*A,y=r-(r-s)*A,z=g-(g-h)*A);A=B<c?0:B>b?1:(c-B)/(c-b);C=p-(p-n)*A;E=e-(e-t)*A;F=j-(j-s)*A;G=f-(f-h)*A;A=Math.round(Math.min(v,C));for(var J=Math.round(Math.max(v,C)),H=a*B+4*A,I=A;I<=J;I++)A=(v-I)/(v-C),A=0>A?0:1<A?1:A,l[H++]=u-(u-E)*
182
+ A|0,l[H++]=y-(y-F)*A|0,l[H++]=z-(z-G)*A|0,l[H++]=255}}};Ab=function(a,b,c,d,e,f){var g=Math.floor(a[0]),h=Math.floor(a[1]),j=Math.ceil(a[2])-g;a=Math.ceil(a[3])-h;var k=Math.min(Math.ceil(Math.abs(1.1*j*b[0])),3E3),l=Math.min(Math.ceil(Math.abs(1.1*a*b[1])),3E3),j=j/k;a/=l;d={coords:c,colors:d,offsetX:-g,offsetY:-h,scaleX:1/j,scaleY:1/a};var p;if(R.isEnabled)e=R.drawFigures(k,l,f,e,d),c=F.getCanvas("mesh",k,l,!1),c.context.drawImage(e,0,0);else{c=F.getCanvas("mesh",k,l,!1);b=c.context;l=b.createImageData(k,
183
+ l);if(f){var q=l.data,k=0;for(p=q.length;k<p;k+=4)q[k]=f[0],q[k+1]=f[1],q[k+2]=f[2],q[k+3]=255}for(k=0;k<e.length;k++){f=l;var n=e[k];p=d;var q=n.coords,m=n.colors,r=void 0,t=void 0;switch(n.type){case "lattice":for(var n=n.verticesPerRow,t=Math.floor(q.length/n)-1,s=n-1,r=0;r<t;r++)for(var u=r*n,y=0;y<s;y++,u++)ua(f,p,q[u],q[u+1],q[u+n],m[u],m[u+1],m[u+n]),ua(f,p,q[u+n+1],q[u+1],q[u+n],m[u+n+1],m[u+1],m[u+n]);break;case "triangles":r=0;for(t=q.length;r<t;r+=3)ua(f,p,q[r],q[r+1],q[r+2],m[r],m[r+1],
184
+ m[r+2]);break;default:v("illigal figure")}}b.putImageData(l,0,0)}e=c.canvas;return{canvas:e,offsetX:g,offsetY:h,scaleX:j,scaleY:a}};ga.Mesh={fromIR:function(a){var b=a[2],c=a[3],d=a[4],e=a[5],f=a[6],g=a[8];return{type:"Pattern",getPattern:function(a,j,k){var l;if(k)l=t.singularValueDecompose2dScale(a.mozCurrentTransform);else{l=t.singularValueDecompose2dScale(f);var p=t.singularValueDecompose2dScale(j.baseTransform);l=[l[0]*p[0],l[1]*p[1]]}l=Ab(e,l,b,c,d,k?null:g);k||(a.setTransform.apply(a,j.baseTransform),
185
+ f&&a.transform.apply(a,f));a.translate(l.offsetX,l.offsetY);a.scale(l.scaleX,l.scaleY);return a.createPattern(l.canvas,"no-repeat")}}}};ga.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var wb,Bb=function(a,b,c,d,e,f){this.name=a[1][0].name;this.operatorList=a[2];this.matrix=a[3]||[1,0,0,1,0,0];this.bbox=a[4];this.xstep=a[5];this.ystep=a[6];this.paintType=a[7];this.tilingType=a[8];this.color=b;this.objs=d;this.commonObjs=e;this.baseTransform=f;this.type="Pattern";
186
+ this.ctx=c};Bb.prototype={createPatternCanvas:function(a){var b=this.operatorList,c=this.bbox,d=this.xstep,e=this.ystep,f=this.paintType,g=this.color,h=this.objs,j=this.commonObjs;G("TilingType: "+this.tilingType);var k=c[0],l=c[1],p=c[2],q=c[3],n=[k,l],m=[k+d,l+e],r=m[0]-n[0],m=m[1]-n[1],s=t.singularValueDecompose2dScale(this.matrix),u=t.singularValueDecompose2dScale(this.baseTransform),s=[s[0]*u[0],s[1]*u[1]],r=Math.min(Math.ceil(Math.abs(r*s[0])),3E3),m=Math.min(Math.ceil(Math.abs(m*s[1])),3E3),
187
+ s=F.getCanvas("pattern",r,m,!0),u=s.context,h=new qa(u,j,h);h.groupLevel=a.groupLevel;this.setFillAndStrokeStyleToContext(u,f,g);this.setScale(r,m,d,e);this.transformToScale(h);h.transform.apply(h,[1,0,0,1,-n[0],-n[1]]);this.clipBbox(h,c,k,l,p,q);h.executeOperatorList(b);return s.canvas},setScale:function(a,b,c,d){this.scale=[a/c,b/d]},transformToScale:function(a){var b=this.scale;a.transform.apply(a,[b[0],0,0,b[1],0,0])},scaleToContext:function(){var a=this.scale;this.ctx.scale(1/a[0],1/a[1])},clipBbox:function(a,
188
+ b,c,d,e,f){b&&(B(b)&&4==b.length)&&(a.rectangle(c,d,e-c,f-d),a.clip(),a.endPath())},setFillAndStrokeStyleToContext:function(a,b,c){switch(b){case 1:b=this.ctx;a.fillStyle=b.fillStyle;a.strokeStyle=b.strokeStyle;break;case 2:b=s.singletons.rgb.getRgb(c,0);b=t.makeCssRgb(b);a.fillStyle=b;a.strokeStyle=b;break;default:v("Unsupported paint type: "+b)}},getPattern:function(a,b){var c=this.createPatternCanvas(b);a=this.ctx;a.setTransform.apply(a,this.baseTransform);a.transform.apply(a,this.matrix);this.scaleToContext();
189
+ return a.createPattern(c,"repeat")}};wb=Bb;PDFJS.disableFontFace=!1;var va;if(V)va=!1;else{var Cb=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(window.navigator.userAgent);va=Cb&&14<=Cb[1]?!0:!1}var M={insertRule:function(a){var b=document.getElementById("PDFJS_FONT_STYLE_TAG");b||(b=document.createElement("style"),b.id="PDFJS_FONT_STYLE_TAG",document.documentElement.getElementsByTagName("head")[0].appendChild(b));b=b.sheet;b.insertRule(a,b.cssRules.length)},clear:function(){var a=document.getElementById("PDFJS_FONT_STYLE_TAG");
190
+ a&&a.parentNode.removeChild(a)},get loadTestFont(){return K(this,"loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))},
191
+ loadTestFontId:0,loadingContext:{requests:[],nextRequestId:0},isSyncFontLoadingSupported:va,bind:function(a,b){!V||v("bind() shall be called from main thread");for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e];if(!(g.attached||!1===g.loading)){g.attached=!0;var h=g.bindDOM();h&&(c.push(h),d.push(g))}}e=M.queueLoadingCallback(b);0<c.length&&!this.isSyncFontLoadingSupported?M.prepareFontLoadEvent(c,d,e):e.complete()},queueLoadingCallback:function(a){var b=M.loadingContext,c={id:"pdfjs-font-loading-"+
192
+ b.nextRequestId++,complete:function(){!c.end||v("completeRequest() cannot be called twice");for(c.end=Date.now();0<b.requests.length&&b.requests[0].end;){var a=b.requests.shift();setTimeout(a.callback,0)}},callback:a,started:Date.now()};b.requests.push(c);return c},prepareFontLoadEvent:function(a,b,c){function d(a,b){return a.charCodeAt(b)<<24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|a.charCodeAt(b+3)&255}function e(a,b,c,d){var e=a.substr(0,b);a=a.substr(b+c);return e+d+a}function f(a,b){k++;30<
193
+ k?(z("Load test font never loaded."),b()):(j.font="30px "+a,j.fillText(".",0,20),0<j.getImageData(0,0,1,1).data[3]?b():setTimeout(f.bind(null,a,b)))}var g,h;a=document.createElement("canvas");a.width=1;a.height=1;var j=a.getContext("2d"),k=0;a="lt"+Date.now()+this.loadTestFontId++;var l=this.loadTestFont,l=e(l,976,a.length,a),p=d(l,16);g=0;for(h=a.length-3;g<h;g+=4)p=p-1482184792+d(a,g)|0;g<a.length&&(p=p-1482184792+d(a+"XXX",g)|0);l=e(l,16,4,String.fromCharCode(p>>24&255,p>>16&255,p>>8&255,p&255));
194
+ g="url(data:font/opentype;base64,"+btoa(l)+");";M.insertRule('@font-face { font-family:"'+a+'";src:'+g+"}");l=[];g=0;for(h=b.length;g<h;g++)l.push(b[g].loadedName);l.push(a);var q=document.createElement("div");q.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");g=0;for(h=l.length;g<h;++g)b=document.createElement("span"),b.textContent="Hi",b.style.fontFamily=l[g],q.appendChild(b);document.body.appendChild(q);f(a,function(){document.body.removeChild(q);
195
+ c.complete()})}},ob,Db=function(a,b,c){this.compiledGlyphs={};if(1===arguments.length){var d=arguments[0],e;for(e in d)this[e]=d[e]}};Db.prototype={bindDOM:function(){if(!this.data)return null;if(PDFJS.disableFontFace)return this.disableFontFace=!0,null;var a;var b=new Uint8Array(this.data);a=b.length;if(8192>a)a=String.fromCharCode.apply(null,b);else{for(var c=[],d=0;d<a;d+=8192){var e=Math.min(d+8192,a),e=b.subarray(d,e);c.push(String.fromCharCode.apply(null,e))}a=c.join("")}b=this.loadedName;a=
196
+ "url(data:"+this.mimetype+";base64,"+window.btoa(a)+");";b='@font-face { font-family:"'+b+'";src:'+a+"}";M.insertRule(b);PDFJS.pdfBug&&("FontInspector"in y&&y.FontInspector.enabled)&&y.FontInspector.fontAdded(this,a);return b},getPathGenerator:function(a,b){if(!(b in this.compiledGlyphs)){var c=a.get(this.loadedName+"_path_"+b);this.compiledGlyphs[b]=new Function("c","size",c)}return this.compiledGlyphs[b]}};ob=Db}).call("undefined"===typeof window?this:window);
197
+ !PDFJS.workerSrc&&"undefined"!==typeof document&&(PDFJS.workerSrc=function(){var G=(document.body||document.getElementsByTagName("head")[0]).lastChild.src;return G&&G.replace(/\.js$/i,".worker.js")}());
198
+
199
+
200
+ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
201
+ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
202
+ /* Copyright 2012 Mozilla Foundation
203
+ *
204
+ * Licensed under the Apache License, Version 2.0 (the "License");
205
+ * you may not use this file except in compliance with the License.
206
+ * You may obtain a copy of the License at
207
+ *
208
+ * http://www.apache.org/licenses/LICENSE-2.0
209
+ *
210
+ * Unless required by applicable law or agreed to in writing, software
211
+ * distributed under the License is distributed on an "AS IS" BASIS,
212
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
+ * See the License for the specific language governing permissions and
214
+ * limitations under the License.
215
+ */
216
+ /* globals VBArray, PDFJS */
217
+
218
+ 'use strict';
219
+
220
+ // Initializing PDFJS global object here, it case if we need to change/disable
221
+ // some PDF.js features, e.g. range requests
222
+ if (typeof PDFJS === 'undefined') {
223
+ (typeof window !== 'undefined' ? window : this).PDFJS = {};
224
+ }
225
+
226
+ // Checking if the typed arrays are supported
227
+ (function checkTypedArrayCompatibility() {
228
+ if (typeof Uint8Array !== 'undefined') {
229
+ // some mobile versions do not support subarray (e.g. safari 5 / iOS)
230
+ if (typeof Uint8Array.prototype.subarray === 'undefined') {
231
+ Uint8Array.prototype.subarray = function subarray(start, end) {
232
+ return new Uint8Array(this.slice(start, end));
233
+ };
234
+ Float32Array.prototype.subarray = function subarray(start, end) {
235
+ return new Float32Array(this.slice(start, end));
236
+ };
237
+ }
238
+
239
+ // some mobile version might not support Float64Array
240
+ if (typeof Float64Array === 'undefined') {
241
+ window.Float64Array = Float32Array;
242
+ }
243
+ return;
244
+ }
245
+
246
+ function subarray(start, end) {
247
+ return new TypedArray(this.slice(start, end));
248
+ }
249
+
250
+ function setArrayOffset(array, offset) {
251
+ if (arguments.length < 2) {
252
+ offset = 0;
253
+ }
254
+ for (var i = 0, n = array.length; i < n; ++i, ++offset) {
255
+ this[offset] = array[i] & 0xFF;
256
+ }
257
+ }
258
+
259
+ function TypedArray(arg1) {
260
+ var result, i, n;
261
+ if (typeof arg1 === 'number') {
262
+ result = [];
263
+ for (i = 0; i < arg1; ++i) {
264
+ result[i] = 0;
265
+ }
266
+ } else if ('slice' in arg1) {
267
+ result = arg1.slice(0);
268
+ } else {
269
+ result = [];
270
+ for (i = 0, n = arg1.length; i < n; ++i) {
271
+ result[i] = arg1[i];
272
+ }
273
+ }
274
+
275
+ result.subarray = subarray;
276
+ result.buffer = result;
277
+ result.byteLength = result.length;
278
+ result.set = setArrayOffset;
279
+
280
+ if (typeof arg1 === 'object' && arg1.buffer) {
281
+ result.buffer = arg1.buffer;
282
+ }
283
+ return result;
284
+ }
285
+
286
+ window.Uint8Array = TypedArray;
287
+ window.Int8Array = TypedArray;
288
+
289
+ // we don't need support for set, byteLength for 32-bit array
290
+ // so we can use the TypedArray as well
291
+ window.Uint32Array = TypedArray;
292
+ window.Int32Array = TypedArray;
293
+ window.Uint16Array = TypedArray;
294
+ window.Float32Array = TypedArray;
295
+ window.Float64Array = TypedArray;
296
+ })();
297
+
298
+ // URL = URL || webkitURL
299
+ (function normalizeURLObject() {
300
+ if (!window.URL) {
301
+ window.URL = window.webkitURL;
302
+ }
303
+ })();
304
+
305
+ // Object.create() ?
306
+ (function checkObjectCreateCompatibility() {
307
+ if (typeof Object.create !== 'undefined') {
308
+ return;
309
+ }
310
+
311
+ Object.create = function objectCreate(proto) {
312
+ function Constructor() {}
313
+ Constructor.prototype = proto;
314
+ return new Constructor();
315
+ };
316
+ })();
317
+
318
+ // Object.defineProperty() ?
319
+ (function checkObjectDefinePropertyCompatibility() {
320
+ if (typeof Object.defineProperty !== 'undefined') {
321
+ var definePropertyPossible = true;
322
+ try {
323
+ // some browsers (e.g. safari) cannot use defineProperty() on DOM objects
324
+ // and thus the native version is not sufficient
325
+ Object.defineProperty(new Image(), 'id', { value: 'test' });
326
+ // ... another test for android gb browser for non-DOM objects
327
+ var Test = function Test() {};
328
+ Test.prototype = { get id() { } };
329
+ Object.defineProperty(new Test(), 'id',
330
+ { value: '', configurable: true, enumerable: true, writable: false });
331
+ } catch (e) {
332
+ definePropertyPossible = false;
333
+ }
334
+ if (definePropertyPossible) {
335
+ return;
336
+ }
337
+ }
338
+
339
+ Object.defineProperty = function objectDefineProperty(obj, name, def) {
340
+ delete obj[name];
341
+ if ('get' in def) {
342
+ obj.__defineGetter__(name, def['get']);
343
+ }
344
+ if ('set' in def) {
345
+ obj.__defineSetter__(name, def['set']);
346
+ }
347
+ if ('value' in def) {
348
+ obj.__defineSetter__(name, function objectDefinePropertySetter(value) {
349
+ this.__defineGetter__(name, function objectDefinePropertyGetter() {
350
+ return value;
351
+ });
352
+ return value;
353
+ });
354
+ obj[name] = def.value;
355
+ }
356
+ };
357
+ })();
358
+
359
+ // Object.keys() ?
360
+ (function checkObjectKeysCompatibility() {
361
+ if (typeof Object.keys !== 'undefined') {
362
+ return;
363
+ }
364
+
365
+ Object.keys = function objectKeys(obj) {
366
+ var result = [];
367
+ for (var i in obj) {
368
+ if (obj.hasOwnProperty(i)) {
369
+ result.push(i);
370
+ }
371
+ }
372
+ return result;
373
+ };
374
+ })();
375
+
376
+ // No readAsArrayBuffer ?
377
+ (function checkFileReaderReadAsArrayBuffer() {
378
+ if (typeof FileReader === 'undefined') {
379
+ return; // FileReader is not implemented
380
+ }
381
+ var frPrototype = FileReader.prototype;
382
+ // Older versions of Firefox might not have readAsArrayBuffer
383
+ if ('readAsArrayBuffer' in frPrototype) {
384
+ return; // readAsArrayBuffer is implemented
385
+ }
386
+ Object.defineProperty(frPrototype, 'readAsArrayBuffer', {
387
+ value: function fileReaderReadAsArrayBuffer(blob) {
388
+ var fileReader = new FileReader();
389
+ var originalReader = this;
390
+ fileReader.onload = function fileReaderOnload(evt) {
391
+ var data = evt.target.result;
392
+ var buffer = new ArrayBuffer(data.length);
393
+ var uint8Array = new Uint8Array(buffer);
394
+
395
+ for (var i = 0, ii = data.length; i < ii; i++) {
396
+ uint8Array[i] = data.charCodeAt(i);
397
+ }
398
+
399
+ Object.defineProperty(originalReader, 'result', {
400
+ value: buffer,
401
+ enumerable: true,
402
+ writable: false,
403
+ configurable: true
404
+ });
405
+
406
+ var event = document.createEvent('HTMLEvents');
407
+ event.initEvent('load', false, false);
408
+ originalReader.dispatchEvent(event);
409
+ };
410
+ fileReader.readAsBinaryString(blob);
411
+ }
412
+ });
413
+ })();
414
+
415
+ // No XMLHttpRequest.response ?
416
+ (function checkXMLHttpRequestResponseCompatibility() {
417
+ var xhrPrototype = XMLHttpRequest.prototype;
418
+ if (!('overrideMimeType' in xhrPrototype)) {
419
+ // IE10 might have response, but not overrideMimeType
420
+ Object.defineProperty(xhrPrototype, 'overrideMimeType', {
421
+ value: function xmlHttpRequestOverrideMimeType(mimeType) {}
422
+ });
423
+ }
424
+ if ('response' in xhrPrototype ||
425
+ 'mozResponseArrayBuffer' in xhrPrototype ||
426
+ 'mozResponse' in xhrPrototype ||
427
+ 'responseArrayBuffer' in xhrPrototype) {
428
+ return;
429
+ }
430
+ // IE9 ?
431
+ if (typeof VBArray !== 'undefined') {
432
+ Object.defineProperty(xhrPrototype, 'response', {
433
+ get: function xmlHttpRequestResponseGet() {
434
+ return new Uint8Array(new VBArray(this.responseBody).toArray());
435
+ }
436
+ });
437
+ return;
438
+ }
439
+
440
+ // other browsers
441
+ function responseTypeSetter() {
442
+ // will be only called to set "arraybuffer"
443
+ this.overrideMimeType('text/plain; charset=x-user-defined');
444
+ }
445
+ if (typeof xhrPrototype.overrideMimeType === 'function') {
446
+ Object.defineProperty(xhrPrototype, 'responseType',
447
+ { set: responseTypeSetter });
448
+ }
449
+ function responseGetter() {
450
+ var text = this.responseText;
451
+ var i, n = text.length;
452
+ var result = new Uint8Array(n);
453
+ for (i = 0; i < n; ++i) {
454
+ result[i] = text.charCodeAt(i) & 0xFF;
455
+ }
456
+ return result;
457
+ }
458
+ Object.defineProperty(xhrPrototype, 'response', { get: responseGetter });
459
+ })();
460
+
461
+ // window.btoa (base64 encode function) ?
462
+ (function checkWindowBtoaCompatibility() {
463
+ if ('btoa' in window) {
464
+ return;
465
+ }
466
+
467
+ var digits =
468
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
469
+
470
+ window.btoa = function windowBtoa(chars) {
471
+ var buffer = '';
472
+ var i, n;
473
+ for (i = 0, n = chars.length; i < n; i += 3) {
474
+ var b1 = chars.charCodeAt(i) & 0xFF;
475
+ var b2 = chars.charCodeAt(i + 1) & 0xFF;
476
+ var b3 = chars.charCodeAt(i + 2) & 0xFF;
477
+ var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
478
+ var d3 = i + 1 < n ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
479
+ var d4 = i + 2 < n ? (b3 & 0x3F) : 64;
480
+ buffer += (digits.charAt(d1) + digits.charAt(d2) +
481
+ digits.charAt(d3) + digits.charAt(d4));
482
+ }
483
+ return buffer;
484
+ };
485
+ })();
486
+
487
+ // window.atob (base64 encode function) ?
488
+ (function checkWindowAtobCompatibility() {
489
+ if ('atob' in window) {
490
+ return;
491
+ }
492
+
493
+ // https://github.com/davidchambers/Base64.js
494
+ var digits =
495
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
496
+ window.atob = function (input) {
497
+ input = input.replace(/=+$/, '');
498
+ if (input.length % 4 == 1) {
499
+ throw new Error('bad atob input');
500
+ }
501
+ for (
502
+ // initialize result and counters
503
+ var bc = 0, bs, buffer, idx = 0, output = '';
504
+ // get next character
505
+ buffer = input.charAt(idx++);
506
+ // character found in table?
507
+ // initialize bit storage and add its ascii value
508
+ ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
509
+ // and if not first of each 4 characters,
510
+ // convert the first 8 bits to one ascii character
511
+ bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
512
+ ) {
513
+ // try to find character in table (0-63, not found => -1)
514
+ buffer = digits.indexOf(buffer);
515
+ }
516
+ return output;
517
+ };
518
+ })();
519
+
520
+ // Function.prototype.bind ?
521
+ (function checkFunctionPrototypeBindCompatibility() {
522
+ if (typeof Function.prototype.bind !== 'undefined') {
523
+ return;
524
+ }
525
+
526
+ Function.prototype.bind = function functionPrototypeBind(obj) {
527
+ var fn = this, headArgs = Array.prototype.slice.call(arguments, 1);
528
+ var bound = function functionPrototypeBindBound() {
529
+ var args = headArgs.concat(Array.prototype.slice.call(arguments));
530
+ return fn.apply(obj, args);
531
+ };
532
+ return bound;
533
+ };
534
+ })();
535
+
536
+ // HTMLElement dataset property
537
+ (function checkDatasetProperty() {
538
+ var div = document.createElement('div');
539
+ if ('dataset' in div) {
540
+ return; // dataset property exists
541
+ }
542
+
543
+ Object.defineProperty(HTMLElement.prototype, 'dataset', {
544
+ get: function() {
545
+ if (this._dataset) {
546
+ return this._dataset;
547
+ }
548
+
549
+ var dataset = {};
550
+ for (var j = 0, jj = this.attributes.length; j < jj; j++) {
551
+ var attribute = this.attributes[j];
552
+ if (attribute.name.substring(0, 5) != 'data-') {
553
+ continue;
554
+ }
555
+ var key = attribute.name.substring(5).replace(/\-([a-z])/g,
556
+ function(all, ch) {
557
+ return ch.toUpperCase();
558
+ });
559
+ dataset[key] = attribute.value;
560
+ }
561
+
562
+ Object.defineProperty(this, '_dataset', {
563
+ value: dataset,
564
+ writable: false,
565
+ enumerable: false
566
+ });
567
+ return dataset;
568
+ },
569
+ enumerable: true
570
+ });
571
+ })();
572
+
573
+ // HTMLElement classList property
574
+ (function checkClassListProperty() {
575
+ var div = document.createElement('div');
576
+ if ('classList' in div) {
577
+ return; // classList property exists
578
+ }
579
+
580
+ function changeList(element, itemName, add, remove) {
581
+ var s = element.className || '';
582
+ var list = s.split(/\s+/g);
583
+ if (list[0] === '') {
584
+ list.shift();
585
+ }
586
+ var index = list.indexOf(itemName);
587
+ if (index < 0 && add) {
588
+ list.push(itemName);
589
+ }
590
+ if (index >= 0 && remove) {
591
+ list.splice(index, 1);
592
+ }
593
+ element.className = list.join(' ');
594
+ return (index >= 0);
595
+ }
596
+
597
+ var classListPrototype = {
598
+ add: function(name) {
599
+ changeList(this.element, name, true, false);
600
+ },
601
+ contains: function(name) {
602
+ return changeList(this.element, name, false, false);
603
+ },
604
+ remove: function(name) {
605
+ changeList(this.element, name, false, true);
606
+ },
607
+ toggle: function(name) {
608
+ changeList(this.element, name, true, true);
609
+ }
610
+ };
611
+
612
+ Object.defineProperty(HTMLElement.prototype, 'classList', {
613
+ get: function() {
614
+ if (this._classList) {
615
+ return this._classList;
616
+ }
617
+
618
+ var classList = Object.create(classListPrototype, {
619
+ element: {
620
+ value: this,
621
+ writable: false,
622
+ enumerable: true
623
+ }
624
+ });
625
+ Object.defineProperty(this, '_classList', {
626
+ value: classList,
627
+ writable: false,
628
+ enumerable: false
629
+ });
630
+ return classList;
631
+ },
632
+ enumerable: true
633
+ });
634
+ })();
635
+
636
+ // Check console compatibility
637
+ (function checkConsoleCompatibility() {
638
+ if (!('console' in window)) {
639
+ window.console = {
640
+ log: function() {},
641
+ error: function() {},
642
+ warn: function() {}
643
+ };
644
+ } else if (!('bind' in console.log)) {
645
+ // native functions in IE9 might not have bind
646
+ console.log = (function(fn) {
647
+ return function(msg) { return fn(msg); };
648
+ })(console.log);
649
+ console.error = (function(fn) {
650
+ return function(msg) { return fn(msg); };
651
+ })(console.error);
652
+ console.warn = (function(fn) {
653
+ return function(msg) { return fn(msg); };
654
+ })(console.warn);
655
+ }
656
+ })();
657
+
658
+ // Check onclick compatibility in Opera
659
+ (function checkOnClickCompatibility() {
660
+ // workaround for reported Opera bug DSK-354448:
661
+ // onclick fires on disabled buttons with opaque content
662
+ function ignoreIfTargetDisabled(event) {
663
+ if (isDisabled(event.target)) {
664
+ event.stopPropagation();
665
+ }
666
+ }
667
+ function isDisabled(node) {
668
+ return node.disabled || (node.parentNode && isDisabled(node.parentNode));
669
+ }
670
+ if (navigator.userAgent.indexOf('Opera') != -1) {
671
+ // use browser detection since we cannot feature-check this bug
672
+ document.addEventListener('click', ignoreIfTargetDisabled, true);
673
+ }
674
+ })();
675
+
676
+ // Checks if possible to use URL.createObjectURL()
677
+ (function checkOnBlobSupport() {
678
+ // sometimes IE loosing the data created with createObjectURL(), see #3977
679
+ if (navigator.userAgent.indexOf('Trident') >= 0) {
680
+ PDFJS.disableCreateObjectURL = true;
681
+ }
682
+ })();
683
+
684
+ // Checks if navigator.language is supported
685
+ (function checkNavigatorLanguage() {
686
+ if ('language' in navigator &&
687
+ /^[a-z]+(-[A-Z]+)?$/.test(navigator.language)) {
688
+ return;
689
+ }
690
+ function formatLocale(locale) {
691
+ var split = locale.split(/[-_]/);
692
+ split[0] = split[0].toLowerCase();
693
+ if (split.length > 1) {
694
+ split[1] = split[1].toUpperCase();
695
+ }
696
+ return split.join('-');
697
+ }
698
+ var language = navigator.language || navigator.userLanguage || 'en-US';
699
+ PDFJS.locale = formatLocale(language);
700
+ })();
701
+
702
+ (function checkRangeRequests() {
703
+ // Safari has issues with cached range requests see:
704
+ // https://github.com/mozilla/pdf.js/issues/3260
705
+ // Last tested with version 6.0.4.
706
+ var isSafari = Object.prototype.toString.call(
707
+ window.HTMLElement).indexOf('Constructor') > 0;
708
+
709
+ // Older versions of Android (pre 3.0) has issues with range requests, see:
710
+ // https://github.com/mozilla/pdf.js/issues/3381.
711
+ // Make sure that we only match webkit-based Android browsers,
712
+ // since Firefox/Fennec works as expected.
713
+ var regex = /Android\s[0-2][^\d]/;
714
+ var isOldAndroid = regex.test(navigator.userAgent);
715
+
716
+ if (isSafari || isOldAndroid) {
717
+ PDFJS.disableRange = true;
718
+ }
719
+ })();
720
+
721
+ // Check if the browser supports manipulation of the history.
722
+ (function checkHistoryManipulation() {
723
+ if (!window.history.pushState) {
724
+ PDFJS.disableHistory = true;
725
+ }
726
+ })();
727
+
728
+ (function checkSetPresenceInImageData() {
729
+ if (window.CanvasPixelArray) {
730
+ if (typeof window.CanvasPixelArray.prototype.set !== 'function') {
731
+ window.CanvasPixelArray.prototype.set = function(arr) {
732
+ for (var i = 0, ii = this.length; i < ii; i++) {
733
+ this[i] = arr[i];
734
+ }
735
+ };
736
+ }
737
+ }
738
+ })();
739
+
740
+ (function checkStorages() {
741
+ // Feature test as per http://diveintohtml5.info/storage.html
742
+ // The additional localStorage call is to get around a FF quirk, see
743
+ // bug #495747 in bugzilla
744
+ try {
745
+ if ('localStorage' in window && window['localStorage'] !== null) {
746
+ return;
747
+ }
748
+ } catch (e) { }
749
+ window.localStorage = {
750
+ data: Object.create(null),
751
+ getItem: function (key) {
752
+ return this.data[key];
753
+ },
754
+ setItem: function (key, value) {
755
+ this.data[key] = value;
756
+ }
757
+ };
758
+ })();
759
+
760
+ var DEFAULT_SCALE="auto",DEFAULT_SCALE_DELTA=1.1,UNKNOWN_SCALE=0,CACHE_SIZE=20,CSS_UNITS=96/72,SCROLLBAR_PADDING=40,VERTICAL_PADDING=5,MAX_AUTO_SCALE=1.25,MIN_SCALE=0.25,MAX_SCALE=4,VIEW_HISTORY_MEMORY=20,SCALE_SELECT_CONTAINER_PADDING=8,SCALE_SELECT_PADDING=22,THUMBNAIL_SCROLL_MARGIN=-19,USE_ONLY_CSS_ZOOM=!1,CLEANUP_TIMEOUT=3E4,IGNORE_CURRENT_POSITION_ON_ZOOM=!1,RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},FindStates={FIND_FOUND:0,FIND_NOTFOUND:1,FIND_WRAPPED:2,FIND_PENDING:3},mozL10n=
761
+ document.mozL10n||document.webL10n,CustomStyle=function(){function a(){}var b=["ms","Moz","Webkit","O"],c={};a.getProp=function(a,d){if(1==arguments.length&&"string"==typeof c[a])return c[a];d=d||document.documentElement;var f=d.style,g,h;if("string"==typeof f[a])return c[a]=a;h=a.charAt(0).toUpperCase()+a.slice(1);for(var j=0,l=b.length;j<l;j++)if(g=b[j]+h,"string"==typeof f[g])return c[a]=g;return c[a]="undefined"};a.setProp=function(a,b,c){a=this.getProp(a);"undefined"!=a&&(b.style[a]=c)};return a}();
762
+ function getFileName(a){var b=a.indexOf("#"),c=a.indexOf("?"),b=Math.min(0<b?b:a.length,0<c?c:a.length);return a.substring(a.lastIndexOf("/",b)+1,b)}function getOutputScale(a){a=(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1);return{sx:a,sy:a,scaled:1!=a}}
763
+ function scrollIntoView(a,b){var c=a.offsetParent,e=a.offsetTop+a.clientTop,d=a.offsetLeft+a.clientLeft;if(c){for(;c.clientHeight===c.scrollHeight;)if(c.dataset._scaleY&&(e/=c.dataset._scaleY,d/=c.dataset._scaleX),e+=c.offsetTop,d+=c.offsetLeft,c=c.offsetParent,!c)return;b&&(void 0!==b.top&&(e+=b.top),void 0!==b.left&&(d+=b.left,c.scrollLeft=d));c.scrollTop=e}else console.error("offsetParent is not set -- cannot scroll")}function noContextMenuHandler(a){a.preventDefault()}
764
+ function getPDFFileNameFromURL(a){var b=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i;a=/^(?:([^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(a);if(a=b.exec(a[1])||b.exec(a[2])||b.exec(a[3]))if(a=a[0],-1!=a.indexOf("%"))try{a=b.exec(decodeURIComponent(a))[0]}catch(c){}return a||"document.pdf"}
765
+ var ProgressBar=function(){function a(a,c){this.div=document.querySelector(a+" .progress");this.bar=this.div.parentNode;this.height=c.height||100;this.width=c.width||100;this.units=c.units||"%";this.div.style.height=this.height+this.units;this.percent=0}a.prototype={updateBar:function(){this._indeterminate?(this.div.classList.add("indeterminate"),this.div.style.width=this.width+this.units):(this.div.classList.remove("indeterminate"),this.div.style.width=this.width*this._percent/100+this.units)},get percent(){return this._percent},
766
+ set percent(a){this._indeterminate=isNaN(a);this._percent=Math.min(Math.max(a,0),100);this.updateBar()},setWidth:function(a){a&&(a=a.parentNode.offsetWidth-a.offsetWidth,0<a&&this.bar.setAttribute("style","width: calc(100% - "+a+"px);"))},hide:function(){this.bar.classList.add("hidden");this.bar.removeAttribute("style")}};return a}(),Cache=function(a){var b=[];this.push=function(c){var e=b.indexOf(c);0<=e&&b.splice(e);b.push(c);b.length>a&&b.shift().destroy()}},DEFAULT_PREFERENCES={showPreviousViewOnLoad:!0,
767
+ defaultZoomValue:"",ifAvailableShowOutlineOnLoad:!1,enableHandToolOnLoad:!1,enableWebGL:!1},Preferences={prefs:Object.create(DEFAULT_PREFERENCES),isInitializedPromiseResolved:!1,initializedPromise:null,initialize:function(){return this.initializedPromise=this._readFromStorage(DEFAULT_PREFERENCES).then(function(a){this.isInitializedPromiseResolved=!0;a&&(this.prefs=a)}.bind(this))},_writeToStorage:function(){return Promise.resolve()},_readFromStorage:function(){return Promise.resolve()},reset:function(){return this.initializedPromise.then(function(){this.prefs=
768
+ Object.create(DEFAULT_PREFERENCES);return this._writeToStorage(DEFAULT_PREFERENCES)}.bind(this))},reload:function(){return this.initializedPromise.then(function(){this._readFromStorage(DEFAULT_PREFERENCES).then(function(a){a&&(this.prefs=a)}.bind(this))}.bind(this))},set:function(a,b){return this.initializedPromise.then(function(){if(void 0===DEFAULT_PREFERENCES[a])throw Error("preferencesSet: '"+a+"' is undefined.");if(void 0===b)throw Error("preferencesSet: no value is specified.");var c=typeof b,
769
+ e=typeof DEFAULT_PREFERENCES[a];if(c!==e)if("number"===c&&"string"===e)b=b.toString();else throw Error("Preferences_set: '"+b+"' is a \""+c+'", expected "'+e+'".');else if("number"===c&&(b|0)!==b)throw Error("Preferences_set: '"+b+'\' must be an "integer".');this.prefs[a]=b;return this._writeToStorage(this.prefs)}.bind(this))},get:function(a){return this.initializedPromise.then(function(){var b=DEFAULT_PREFERENCES[a];if(void 0===b)throw Error("preferencesGet: '"+a+"' is undefined.");var c=this.prefs[a];
770
+ return void 0!==c?c:b}.bind(this))},_writeToStorage:function(a){return new Promise(function(b){localStorage.setItem("pdfjs.preferences",JSON.stringify(a));b()})},_readFromStorage:function(){return new Promise(function(a){var b=JSON.parse(localStorage.getItem("pdfjs.preferences"));a(b)})}};
771
+ (function(){function a(a){var b=document.createEvent("CustomEvent");b.initCustomEvent(a,!1,!1,"custom");window.dispatchEvent(b)}function b(){if(d)if(e(),++f<d.length){var a=d[f];"function"===typeof a.mozPrintCallback?a.mozPrintCallback({context:a.getContext("2d"),abort:c,done:b}):b()}else e(),g.call(window),setTimeout(c,20)}function c(){d&&(d=null,e(),a("afterprint"))}function e(){var a=document.getElementById("mozPrintCallback-shim");if(d){var b=Math.round(100*f/d.length),e=a.querySelector("progress"),
772
+ g=a.querySelector(".relative-progress");e.value=b;g.textContent=b+"%";a.removeAttribute("hidden");a.onclick=c}else a.setAttribute("hidden","")}if(!("mozPrintCallback"in document.createElement("canvas"))){HTMLCanvasElement.prototype.mozPrintCallback=void 0;var d,f,g=window.print;window.print=function(){if(d)console.warn("Ignored window.print() because of a pending print job.");else try{a("beforeprint")}finally{d=document.querySelectorAll("canvas"),f=-1,b()}};var h=!!document.attachEvent;window.addEventListener("keydown",
773
+ function(a){80===a.keyCode&&(a.ctrlKey||a.metaKey)&&!a.altKey&&(!a.shiftKey||window.chrome||window.opera)?(window.print(),h||(a.preventDefault(),a.stopImmediatePropagation?a.stopImmediatePropagation():a.stopPropagation())):27===a.keyCode&&d&&c()},!0);h&&document.attachEvent("onkeydown",function(a){a=a||window.event;if(80===a.keyCode&&a.ctrlKey)return a.keyCode=0,!1});if("onbeforeprint"in window){var j=function(a){"custom"!==a.detail&&a.stopImmediatePropagation&&a.stopImmediatePropagation()};window.addEventListener("beforeprint",
774
+ j,!1);window.addEventListener("afterprint",j,!1)}}})();
775
+ var DownloadManager=function(){function a(a,b){var d=document.createElement("a");d.click?(d.href=a,d.target="_parent","download"in d&&(d.download=b),(document.body||document.documentElement).appendChild(d),d.click(),d.parentNode.removeChild(d)):(window.top===window&&a.split("#")[0]===window.location.href.split("#")[0]&&(d=-1===a.indexOf("?")?"?":"&",a=a.replace(/#|$/,d+"$&")),window.open(a,"_parent"))}function b(){}b.prototype={downloadUrl:function(b,e){PDFJS.isValidUrl(b,!0)&&a(b+"#pdfjs.action=download",
776
+ e)},downloadData:function(b,e,d){b=PDFJS.createObjectURL(b,d);a(b,e)},download:function(b,e,d){URL?navigator.msSaveBlob?navigator.msSaveBlob(b,d)||this.downloadUrl(e,d):(b=URL.createObjectURL(b),a(b,d)):this.downloadUrl(e,d)}};return b}(),cache=new Cache(CACHE_SIZE),currentPageNumber=1,ViewHistory=function(){function a(a){this.fingerprint=a;var c;this.isInitializedPromiseResolved=!1;this.initializedPromise=new Promise(function(a){c=a});a=localStorage.getItem("database");this.isInitializedPromiseResolved=
777
+ !0;this.initialize(a||"{}");c()}a.prototype={initialize:function(a){a=JSON.parse(a);"files"in a||(a.files=[]);a.files.length>=VIEW_HISTORY_MEMORY&&a.files.shift();for(var c,e=0,d=a.files.length;e<d;e++)if(a.files[e].fingerprint===this.fingerprint){c=e;break}"number"!==typeof c&&(c=a.files.push({fingerprint:this.fingerprint})-1);this.file=a.files[c];this.database=a},set:function(a,c){if(this.isInitializedPromiseResolved){this.file[a]=c;var e=JSON.stringify(this.database);localStorage.setItem("database",
778
+ e)}},get:function(a,c){return!this.isInitializedPromiseResolved?c:this.file[a]||c}};return a}(),PDFFindBar={opened:!1,bar:null,toggleButton:null,findField:null,highlightAll:null,caseSensitive:null,findMsg:null,findStatusIcon:null,findPreviousButton:null,findNextButton:null,initialize:function(a){if("undefined"===typeof PDFFindController||null===PDFFindController)throw"PDFFindBar cannot be initialized without a PDFFindController instance.";this.bar=a.bar;this.toggleButton=a.toggleButton;this.findField=
779
+ a.findField;this.highlightAll=a.highlightAllCheckbox;this.caseSensitive=a.caseSensitiveCheckbox;this.findMsg=a.findMsg;this.findStatusIcon=a.findStatusIcon;this.findPreviousButton=a.findPreviousButton;this.findNextButton=a.findNextButton;var b=this;this.toggleButton.addEventListener("click",function(){b.toggle()});this.findField.addEventListener("input",function(){b.dispatchEvent("")});this.bar.addEventListener("keydown",function(a){switch(a.keyCode){case 13:a.target===b.findField&&b.dispatchEvent("again",
780
+ a.shiftKey);break;case 27:b.close()}});this.findPreviousButton.addEventListener("click",function(){b.dispatchEvent("again",!0)});this.findNextButton.addEventListener("click",function(){b.dispatchEvent("again",!1)});this.highlightAll.addEventListener("click",function(){b.dispatchEvent("highlightallchange")});this.caseSensitive.addEventListener("click",function(){b.dispatchEvent("casesensitivitychange")})},dispatchEvent:function(a,b){var c=document.createEvent("CustomEvent");c.initCustomEvent("find"+
781
+ a,!0,!0,{query:this.findField.value,caseSensitive:this.caseSensitive.checked,highlightAll:this.highlightAll.checked,findPrevious:b});return window.dispatchEvent(c)},updateUIState:function(a,b){var c=!1,e="",d="";switch(a){case FindStates.FIND_PENDING:d="pending";break;case FindStates.FIND_NOTFOUND:e=mozL10n.get("find_not_found",null,"Phrase not found");c=!0;break;case FindStates.FIND_WRAPPED:e=b?mozL10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):mozL10n.get("find_reached_bottom",
782
+ null,"Reached end of document, continued from top")}c?this.findField.classList.add("notFound"):this.findField.classList.remove("notFound");this.findField.setAttribute("data-status",d);this.findMsg.textContent=e},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden"));this.findField.select();this.findField.focus()},close:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),
783
+ PDFFindController.active=!1)},toggle:function(){this.opened?this.close():this.open()}},PDFFindController={startedTextExtraction:!1,extractTextPromises:[],pendingFindMatches:{},active:!1,pageContents:[],pageMatches:[],selected:{pageIdx:-1,matchIdx:-1},offset:{pageIdx:null,matchIdx:null},resumePageIdx:null,state:null,dirtyMatch:!1,findTimeout:null,pdfPageSource:null,integratedFind:!1,initialize:function(a){if("undefined"===typeof PDFFindBar||null===PDFFindBar)throw"PDFFindController cannot be initialized without a PDFFindBar instance";
784
+ this.pdfPageSource=a.pdfPageSource;this.integratedFind=a.integratedFind;a=["find","findagain","findhighlightallchange","findcasesensitivitychange"];this.firstPagePromise=new Promise(function(a){this.resolveFirstPage=a}.bind(this));this.handleEvent=this.handleEvent.bind(this);for(var b=0;b<a.length;b++)window.addEventListener(a[b],this.handleEvent)},reset:function(){this.startedTextExtraction=!1;this.extractTextPromises=[];this.active=!1},calcFindMatch:function(a){var b=this.pageContents[a],c=this.state.query,
785
+ e=this.state.caseSensitive,d=c.length;if(0!==d){e||(b=b.toLowerCase(),c=c.toLowerCase());for(var e=[],f=-d;;){f=b.indexOf(c,f+d);if(-1===f)break;e.push(f)}this.pageMatches[a]=e;this.updatePage(a);this.resumePageIdx===a&&(this.resumePageIdx=null,this.nextPageMatch())}},extractText:function(){function a(c){d.pdfPageSource.pages[c].getTextContent().then(function(e){e=e.items;for(var h="",j=0;j<e.length;j++)h+=e[j].str;d.pageContents.push(h);b[c](c);c+1<d.pdfPageSource.pages.length&&a(c+1)})}if(!this.startedTextExtraction){this.startedTextExtraction=
786
+ !0;this.pageContents=[];for(var b=[],c=0,e=this.pdfPageSource.pdfDocument.numPages;c<e;c++)this.extractTextPromises.push(new Promise(function(a){b.push(a)}));var d=this;a(0)}},handleEvent:function(a){if(null===this.state||"findagain"!==a.type)this.dirtyMatch=!0;this.state=a.detail;this.updateUIState(FindStates.FIND_PENDING);this.firstPagePromise.then(function(){this.extractText();clearTimeout(this.findTimeout);"find"===a.type?this.findTimeout=setTimeout(this.nextMatch.bind(this),250):this.nextMatch()}.bind(this))},
787
+ updatePage:function(a){var b=this.pdfPageSource.pages[a];this.selected.pageIdx===a&&b.scrollIntoView();b.textLayer&&b.textLayer.updateMatches()},nextMatch:function(){var a=this.state.findPrevious,b=this.pdfPageSource.page-1,c=this.pdfPageSource.pages.length;this.active=!0;if(this.dirtyMatch){this.dirtyMatch=!1;this.selected.pageIdx=this.selected.matchIdx=-1;this.offset.pageIdx=b;this.offset.matchIdx=null;this.hadMatch=!1;this.resumePageIdx=null;this.pageMatches=[];for(var e=this,b=0;b<c;b++)this.updatePage(b),
788
+ b in this.pendingFindMatches||(this.pendingFindMatches[b]=!0,this.extractTextPromises[b].then(function(a){delete e.pendingFindMatches[a];e.calcFindMatch(a)}))}if(""===this.state.query)this.updateUIState(FindStates.FIND_FOUND);else if(!this.resumePageIdx){c=this.offset;if(null!==c.matchIdx){b=this.pageMatches[c.pageIdx].length;if(!a&&c.matchIdx+1<b||a&&0<c.matchIdx){this.hadMatch=!0;c.matchIdx=a?c.matchIdx-1:c.matchIdx+1;this.updateMatch(!0);return}this.advanceOffsetPage(a)}this.nextPageMatch()}},
789
+ matchesReady:function(a){var b=this.offset;a=a.length;var c=this.state.findPrevious;if(a)return this.hadMatch=!0,b.matchIdx=c?a-1:0,this.updateMatch(!0),!0;this.advanceOffsetPage(c);return b.wrapped&&(b.matchIdx=null,!this.hadMatch)?(this.updateMatch(!1),!0):!1},nextPageMatch:function(){null!==this.resumePageIdx&&console.error("There can only be one pending page.");do{var a=this.offset.pageIdx,b=this.pageMatches[a];if(!b){this.resumePageIdx=a;break}}while(!this.matchesReady(b))},advanceOffsetPage:function(a){var b=
790
+ this.offset,c=this.extractTextPromises.length;b.pageIdx=a?b.pageIdx-1:b.pageIdx+1;b.matchIdx=null;if(b.pageIdx>=c||0>b.pageIdx)b.pageIdx=a?c-1:0,b.wrapped=!0},updateMatch:function(a){var b=FindStates.FIND_NOTFOUND,c=this.offset.wrapped;this.offset.wrapped=!1;a&&(a=this.selected.pageIdx,this.selected.pageIdx=this.offset.pageIdx,this.selected.matchIdx=this.offset.matchIdx,b=c?FindStates.FIND_WRAPPED:FindStates.FIND_FOUND,-1!==a&&a!==this.selected.pageIdx&&this.updatePage(a));this.updateUIState(b,this.state.findPrevious);
791
+ -1!==this.selected.pageIdx&&this.updatePage(this.selected.pageIdx,!0)},updateUIState:function(a,b){this.integratedFind?FirefoxCom.request("updateFindControlState",{result:a,findPrevious:b}):PDFFindBar.updateUIState(a,b)}},PDFHistory={initialized:!1,initialDestination:null,initialize:function(a){function b(){var a=c._getPreviousParams(null,!0);a&&(c._pushToHistory(a,!1,!c.current.dest&&c.current.hash!==c.previousHash),c._updatePreviousBookmark());window.removeEventListener("beforeunload",b,!1)}if(!PDFJS.disableHistory&&
792
+ !PDFView.isViewerEmbedded){this.initialized=!0;this.reInitialized=!1;this.historyUnlocked=this.allowHashChange=!0;this.previousHash=window.location.hash.substring(1);this.currentBookmark="";this.currentPage=0;this.updatePreviousBookmark=!1;this.previousBookmark="";this.previousPage=0;this.nextHashParam="";this.fingerprint=a;this.currentUid=this.uid=0;this.current={};a=window.history.state;this._isStateObjectDefined(a)?(a.target.dest?this.initialDestination=a.target.dest:PDFView.initialBookmark=a.target.hash,
793
+ this.currentUid=a.uid,this.uid=a.uid+1,this.current=a.target):(a&&(a.fingerprint&&this.fingerprint!==a.fingerprint)&&(this.reInitialized=!0),this._pushOrReplaceState({fingerprint:this.fingerprint},!0));var c=this;window.addEventListener("popstate",function(a){a.preventDefault();a.stopPropagation();c.historyUnlocked&&(a.state?c._goTo(a.state):(c.previousHash=window.location.hash.substring(1),0===c.uid&&(a=c.previousHash&&c.currentBookmark&&c.previousHash!==c.currentBookmark?{hash:c.currentBookmark,
794
+ page:c.currentPage}:{page:1},c.historyUnlocked=!1,c.allowHashChange=!1,window.history.back(),c._pushToHistory(a,!1,!0),window.history.forward(),c.historyUnlocked=!0),c._pushToHistory({hash:c.previousHash},!1,!0),c._updatePreviousBookmark()))},!1);window.addEventListener("beforeunload",b,!1);window.addEventListener("pageshow",function(){window.addEventListener("beforeunload",b,!1)},!1)}},_isStateObjectDefined:function(a){return a&&0<=a.uid&&a.fingerprint&&this.fingerprint===a.fingerprint&&a.target&&
795
+ a.target.hash?!0:!1},_pushOrReplaceState:function(a,b){b?window.history.replaceState(a,"",document.URL):window.history.pushState(a,"",document.URL)},get isHashChangeUnlocked(){if(!this.initialized)return!0;var a=this.allowHashChange;this.allowHashChange=!0;return a},_updatePreviousBookmark:function(){this.updatePreviousBookmark&&(this.currentBookmark&&this.currentPage)&&(this.previousBookmark=this.currentBookmark,this.previousPage=this.currentPage,this.updatePreviousBookmark=!1)},updateCurrentBookmark:function(a,
796
+ b){this.initialized&&(this.currentBookmark=a.substring(1),this.currentPage=b|0,this._updatePreviousBookmark())},updateNextHashParam:function(a){this.initialized&&(this.nextHashParam=a)},push:function(a,b){if(this.initialized&&this.historyUnlocked)if(a.dest&&!a.hash&&(a.hash=this.current.hash&&this.current.dest&&this.current.dest===a.dest?this.current.hash:PDFView.getDestinationHash(a.dest).split("#")[1]),a.page&&(a.page|=0),b){var c=window.history.state.target;c||(this._pushToHistory(a,!1),this.previousHash=
797
+ window.location.hash.substring(1));this.updatePreviousBookmark=this.nextHashParam?!1:!0;c&&this._updatePreviousBookmark()}else{if(this.nextHashParam){if(this.nextHashParam===a.hash){this.nextHashParam=null;this.updatePreviousBookmark=!0;return}this.nextHashParam=null}a.hash?this.current.hash?this.current.hash!==a.hash?this._pushToHistory(a,!0):(!this.current.page&&a.page&&this._pushToHistory(a,!1,!0),this.updatePreviousBookmark=!0):this._pushToHistory(a,!0):this.current.page&&(a.page&&this.current.page!==
798
+ a.page)&&this._pushToHistory(a,!0)}},_getPreviousParams:function(a,b){if(!this.currentBookmark||!this.currentPage)return null;this.updatePreviousBookmark&&(this.updatePreviousBookmark=!1);if(0<this.uid&&(!this.previousBookmark||!this.previousPage))return null;if(!this.current.dest&&!a||b){if(this.previousBookmark===this.currentBookmark)return null}else if(this.current.page||a){if(this.previousPage===this.currentPage)return null}else return null;var c={hash:this.currentBookmark,page:this.currentPage};
799
+ PresentationMode.active&&(c.hash=null);return c},_stateObj:function(a){return{fingerprint:this.fingerprint,uid:this.uid,target:a}},_pushToHistory:function(a,b,c){this.initialized&&(!a.hash&&a.page&&(a.hash="page="+a.page),b&&!c&&(b=this._getPreviousParams())&&this._pushToHistory(b,!1,!this.current.dest&&this.current.hash!==this.previousHash),this._pushOrReplaceState(this._stateObj(a),c||0===this.uid),this.currentUid=this.uid++,this.current=a,this.updatePreviousBookmark=!0)},_goTo:function(a){if(this.initialized&&
800
+ this.historyUnlocked&&this._isStateObjectDefined(a)){if(!this.reInitialized&&a.uid<this.currentUid){var b=this._getPreviousParams(!0);if(b){this._pushToHistory(this.current,!1);this._pushToHistory(b,!1);this.currentUid=a.uid;window.history.back();return}}this.historyUnlocked=!1;a.target.dest?PDFView.navigateTo(a.target.dest):PDFView.setHash(a.target.hash);this.currentUid=a.uid;a.uid>this.uid&&(this.uid=a.uid);this.current=a.target;this.updatePreviousBookmark=!0;a=window.location.hash.substring(1);
801
+ this.previousHash!==a&&(this.allowHashChange=!1);this.previousHash=a;this.historyUnlocked=!0}},back:function(){this.go(-1)},forward:function(){this.go(1)},go:function(a){if(this.initialized&&this.historyUnlocked){var b=window.history.state;-1===a&&b&&0<b.uid?window.history.back():1===a&&(b&&b.uid<this.uid-1)&&window.history.forward()}}},SecondaryToolbar={opened:!1,previousContainerHeight:null,newContainerHeight:null,initialize:function(a){this.toolbar=a.toolbar;this.presentationMode=a.presentationMode;
802
+ this.documentProperties=a.documentProperties;this.buttonContainer=this.toolbar.firstElementChild;this.toggleButton=a.toggleButton;this.presentationModeButton=a.presentationModeButton;this.openFile=a.openFile;this.print=a.print;this.download=a.download;this.viewBookmark=a.viewBookmark;this.firstPage=a.firstPage;this.lastPage=a.lastPage;this.pageRotateCw=a.pageRotateCw;this.pageRotateCcw=a.pageRotateCcw;this.documentPropertiesButton=a.documentPropertiesButton;a=[{element:this.toggleButton,handler:this.toggle},
803
+ {element:this.presentationModeButton,handler:this.presentationModeClick},{element:this.openFile,handler:this.openFileClick},{element:this.print,handler:this.printClick},{element:this.download,handler:this.downloadClick},{element:this.viewBookmark,handler:this.viewBookmarkClick},{element:this.firstPage,handler:this.firstPageClick},{element:this.lastPage,handler:this.lastPageClick},{element:this.pageRotateCw,handler:this.pageRotateCwClick},{element:this.pageRotateCcw,handler:this.pageRotateCcwClick},
804
+ {element:this.documentPropertiesButton,handler:this.documentPropertiesClick}];for(var b in a){var c=a[b].element;c&&c.addEventListener("click",a[b].handler.bind(this))}},presentationModeClick:function(){this.presentationMode.request();this.close()},openFileClick:function(){document.getElementById("fileInput").click();this.close()},printClick:function(){window.print();this.close()},downloadClick:function(){PDFView.download();this.close()},viewBookmarkClick:function(){this.close()},firstPageClick:function(){PDFView.page=
805
+ 1;this.close()},lastPageClick:function(){PDFView.page=PDFView.pdfDocument.numPages;this.close()},pageRotateCwClick:function(){PDFView.rotatePages(90)},pageRotateCcwClick:function(){PDFView.rotatePages(-90)},documentPropertiesClick:function(){this.documentProperties.show();this.close()},setMaxHeight:function(a){a&&this.buttonContainer&&(this.newContainerHeight=a.clientHeight,this.previousContainerHeight!==this.newContainerHeight&&(this.buttonContainer.setAttribute("style","max-height: "+(this.newContainerHeight-
806
+ SCROLLBAR_PADDING)+"px;"),this.previousContainerHeight=this.newContainerHeight))},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.toolbar.classList.remove("hidden"))},close:function(a){if(this.opened&&(!a||this.toolbar.contains(a)))this.opened=!1,this.toolbar.classList.add("hidden"),this.toggleButton.classList.remove("toggled")},toggle:function(){this.opened?this.close():this.open()}},PasswordPrompt={visible:!1,updatePassword:null,reason:null,overlayContainer:null,
807
+ passwordField:null,passwordText:null,passwordSubmit:null,passwordCancel:null,initialize:function(a){this.overlayContainer=a.overlayContainer;this.passwordField=a.passwordField;this.passwordText=a.passwordText;this.passwordSubmit=a.passwordSubmit;this.passwordCancel=a.passwordCancel;this.passwordSubmit.addEventListener("click",this.verifyPassword.bind(this));this.passwordCancel.addEventListener("click",this.hide.bind(this));this.passwordField.addEventListener("keydown",function(a){13===a.keyCode&&
808
+ this.verifyPassword()}.bind(this));window.addEventListener("keydown",function(a){27===a.keyCode&&this.hide()}.bind(this))},show:function(){if(!this.visible){this.visible=!0;this.overlayContainer.classList.remove("hidden");this.overlayContainer.firstElementChild.classList.remove("hidden");this.passwordField.focus();var a=mozL10n.get("password_label",null,"Enter the password to open this PDF file.");this.reason===PDFJS.PasswordResponses.INCORRECT_PASSWORD&&(a=mozL10n.get("password_invalid",null,"Invalid password. Please try again."));
809
+ this.passwordText.textContent=a}},hide:function(){this.visible&&(this.visible=!1,this.passwordField.value="",this.overlayContainer.classList.add("hidden"),this.overlayContainer.firstElementChild.classList.add("hidden"))},verifyPassword:function(){var a=this.passwordField.value;if(a&&0<a.length)return this.hide(),this.updatePassword(a)}},DELAY_BEFORE_HIDING_CONTROLS=3E3,SELECTOR="presentationControls",DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS=1E3,PresentationMode={active:!1,args:null,contextMenuOpen:!1,
810
+ prevCoords:{x:null,y:null},initialize:function(a){this.container=a.container;this.secondaryToolbar=a.secondaryToolbar;this.viewer=this.container.firstElementChild;this.firstPage=a.firstPage;this.lastPage=a.lastPage;this.pageRotateCw=a.pageRotateCw;this.pageRotateCcw=a.pageRotateCcw;this.firstPage.addEventListener("click",function(){this.contextMenuOpen=!1;this.secondaryToolbar.firstPageClick()}.bind(this));this.lastPage.addEventListener("click",function(){this.contextMenuOpen=!1;this.secondaryToolbar.lastPageClick()}.bind(this));
811
+ this.pageRotateCw.addEventListener("click",function(){this.contextMenuOpen=!1;this.secondaryToolbar.pageRotateCwClick()}.bind(this));this.pageRotateCcw.addEventListener("click",function(){this.contextMenuOpen=!1;this.secondaryToolbar.pageRotateCcwClick()}.bind(this))},get isFullscreen(){return document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement},_setSwitchInProgress:function(){this.switchInProgress&&clearTimeout(this.switchInProgress);this.switchInProgress=
812
+ setTimeout(function(){delete this.switchInProgress}.bind(this),DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS);PDFView.currentPosition=null},_resetSwitchInProgress:function(){this.switchInProgress&&(clearTimeout(this.switchInProgress),delete this.switchInProgress)},request:function(){if(!PDFView.supportsFullscreen||this.isFullscreen||!this.viewer.hasChildNodes())return!1;this._setSwitchInProgress();if(this.container.requestFullscreen)this.container.requestFullscreen();else if(this.container.mozRequestFullScreen)this.container.mozRequestFullScreen();
813
+ else if(this.container.webkitRequestFullScreen)this.container.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);else if(this.container.msRequestFullscreen)this.container.msRequestFullscreen();else return!1;this.args={page:PDFView.page,previousScale:PDFView.currentScaleValue};return!0},enter:function(){this.active=!0;this._resetSwitchInProgress();setTimeout(function(){PDFView.page=this.args.page;PDFView.setScale("page-fit",!0)}.bind(this),0);window.addEventListener("mousemove",this.mouseMove,!1);
814
+ window.addEventListener("mousedown",this.mouseDown,!1);window.addEventListener("contextmenu",this.contextMenu,!1);this.showControls();HandTool.enterPresentationMode();this.contextMenuOpen=!1;this.container.setAttribute("contextmenu","viewerContextMenu")},exit:function(){var a=PDFView.page;setTimeout(function(){this.active=!1;PDFView.setScale(this.args.previousScale);PDFView.page=a;this.args=null}.bind(this),0);window.removeEventListener("mousemove",this.mouseMove,!1);window.removeEventListener("mousedown",
815
+ this.mouseDown,!1);window.removeEventListener("contextmenu",this.contextMenu,!1);this.hideControls();PDFView.clearMouseScrollState();HandTool.exitPresentationMode();this.container.removeAttribute("contextmenu");this.contextMenuOpen=!1;scrollIntoView(document.getElementById("thumbnailContainer"+a))},showControls:function(){this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(SELECTOR);this.controlsTimeout=setTimeout(function(){this.container.classList.remove(SELECTOR);
816
+ delete this.controlsTimeout}.bind(this),DELAY_BEFORE_HIDING_CONTROLS)},hideControls:function(){this.controlsTimeout&&(this.container.classList.remove(SELECTOR),clearTimeout(this.controlsTimeout),delete this.controlsTimeout)},mouseMove:function(a){a={x:a.clientX,y:a.clientY};var b=PresentationMode.prevCoords;PresentationMode.prevCoords=a;a.x===b.x&&a.y===b.y||PresentationMode.showControls()},mouseDown:function(a){var b=PresentationMode;if(b.contextMenuOpen)b.contextMenuOpen=!1,a.preventDefault();else if(0===
817
+ a.button&&(!a.target.href||!a.target.classList.contains("internalLink")))a.preventDefault(),PDFView.page+=a.shiftKey?-1:1},contextMenu:function(){PresentationMode.contextMenuOpen=!0}};(function(){function a(){PresentationMode.isFullscreen?PresentationMode.enter():PresentationMode.exit()}window.addEventListener("fullscreenchange",a,!1);window.addEventListener("mozfullscreenchange",a,!1);window.addEventListener("webkitfullscreenchange",a,!1);window.addEventListener("MSFullscreenChange",a,!1)})();"use strict";
818
+ var GrabToPan=function(){function a(a){this.element=a.element;this.document=a.element.ownerDocument;"function"===typeof a.ignoreTarget&&(this.ignoreTarget=a.ignoreTarget);this.onActiveChanged=a.onActiveChanged;this.activate=this.activate.bind(this);this.deactivate=this.deactivate.bind(this);this.toggle=this.toggle.bind(this);this._onmousedown=this._onmousedown.bind(this);this._onmousemove=this._onmousemove.bind(this);this._endPan=this._endPan.bind(this);(this.overlay=document.createElement("div")).className=
819
+ "grab-to-pan-grabbing"}a.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){if(!this.active&&(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!0)},deactivate:function(){if(this.active&&(this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged))this.onActiveChanged(!1)},
820
+ toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(a){return a[b]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(a){if(!(0!==a.button||this.ignoreTarget(a.target))){if(a.originalTarget)try{a.originalTarget.tagName}catch(b){return}this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=this.element.scrollTop;this.clientXStart=a.clientX;this.clientYStart=a.clientY;this.document.addEventListener("mousemove",
821
+ this._onmousemove,!0);this.document.addEventListener("mouseup",this._endPan,!0);this.element.addEventListener("scroll",this._endPan,!0);a.preventDefault();a.stopPropagation();this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING)}},_onmousemove:function(a){this.element.removeEventListener("scroll",this._endPan,!0);var b;b="buttons"in a&&c?!(a.buttons|1):d||f?0===a.which:void 0;b?this._endPan():(b=a.clientX-this.clientXStart,this.element.scrollTop=this.scrollTopStart-(a.clientY-this.clientYStart),
822
+ this.element.scrollLeft=this.scrollLeftStart-b,this.overlay.parentNode||document.body.appendChild(this.overlay))},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0);this.document.removeEventListener("mousemove",this._onmousemove,!0);this.document.removeEventListener("mouseup",this._endPan,!0);this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)}};var b;["webkitM","mozM","msM","oM","m"].some(function(a){a+="atches";a in document.documentElement&&(b=
823
+ a);a+="Selector";a in document.documentElement&&(b=a);return b});var c=!document.documentMode||9<document.documentMode,e=window.chrome,d=e&&(e.webstore||e.app),f=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);return a}(),HandTool={initialize:function(a){var b=a.toggleHandTool;this.handTool=new GrabToPan({element:a.container,onActiveChanged:function(a){b&&(a?(b.title=mozL10n.get("hand_tool_disable.title",null,"Disable hand tool"),b.firstElementChild.textContent=
824
+ mozL10n.get("hand_tool_disable_label",null,"Disable hand tool")):(b.title=mozL10n.get("hand_tool_enable.title",null,"Enable hand tool"),b.firstElementChild.textContent=mozL10n.get("hand_tool_enable_label",null,"Enable hand tool")))}});b&&(b.addEventListener("click",this.toggle.bind(this),!1),window.addEventListener("localized",function(){Preferences.get("enableHandToolOnLoad").then(function(a){a&&this.handTool.activate()}.bind(this))}.bind(this)))},toggle:function(){this.handTool.toggle();SecondaryToolbar.close()},
825
+ enterPresentationMode:function(){this.handTool.active&&(this.wasActive=!0,this.handTool.deactivate())},exitPresentationMode:function(){this.wasActive&&(this.wasActive=null,this.handTool.activate())}},DocumentProperties={overlayContainer:null,fileName:"",fileSize:"",visible:!1,fileNameField:null,fileSizeField:null,titleField:null,authorField:null,subjectField:null,keywordsField:null,creationDateField:null,modificationDateField:null,creatorField:null,producerField:null,versionField:null,pageCountField:null,
826
+ initialize:function(a){this.overlayContainer=a.overlayContainer;this.fileNameField=a.fileNameField;this.fileSizeField=a.fileSizeField;this.titleField=a.titleField;this.authorField=a.authorField;this.subjectField=a.subjectField;this.keywordsField=a.keywordsField;this.creationDateField=a.creationDateField;this.modificationDateField=a.modificationDateField;this.creatorField=a.creatorField;this.producerField=a.producerField;this.versionField=a.versionField;this.pageCountField=a.pageCountField;a.closeButton&&
827
+ a.closeButton.addEventListener("click",this.hide.bind(this));this.dataAvailablePromise=new Promise(function(a){this.resolveDataAvailable=a}.bind(this));window.addEventListener("keydown",function(a){27===a.keyCode&&this.hide()}.bind(this))},getProperties:function(){this.visible&&(this.fileName=getPDFFileNameFromURL(PDFView.url),PDFView.pdfDocument.getDownloadInfo().then(function(a){this.setFileSize(a.length);this.updateUI(this.fileSizeField,this.fileSize)}.bind(this)),PDFView.pdfDocument.getMetadata().then(function(a){a=
828
+ [{field:this.fileNameField,content:this.fileName},{field:this.titleField,content:a.info.Title},{field:this.authorField,content:a.info.Author},{field:this.subjectField,content:a.info.Subject},{field:this.keywordsField,content:a.info.Keywords},{field:this.creationDateField,content:this.parseDate(a.info.CreationDate)},{field:this.modificationDateField,content:this.parseDate(a.info.ModDate)},{field:this.creatorField,content:a.info.Creator},{field:this.producerField,content:a.info.Producer},{field:this.versionField,
829
+ content:a.info.PDFFormatVersion},{field:this.pageCountField,content:PDFView.pdfDocument.numPages}];for(var b in a){var c=a[b];this.updateUI(c.field,c.content)}}.bind(this)))},updateUI:function(a,b){a&&(void 0!==b&&""!==b)&&(a.textContent=b)},setFileSize:function(a){var b=a/1024;this.fileSize=1024>b?mozL10n.get("document_properties_kb",{size_kb:(+b.toPrecision(3)).toLocaleString(),size_b:a.toLocaleString()},"{{size_kb}} KB ({{size_b}} bytes)"):mozL10n.get("document_properties_mb",{size_mb:(+(b/1024).toPrecision(3)).toLocaleString(),
830
+ size_b:a.toLocaleString()},"{{size_mb}} MB ({{size_b}} bytes)")},show:function(){this.visible||(this.visible=!0,this.overlayContainer.classList.remove("hidden"),this.overlayContainer.lastElementChild.classList.remove("hidden"),this.dataAvailablePromise.then(function(){this.getProperties()}.bind(this)))},hide:function(){this.visible&&(this.visible=!1,this.overlayContainer.classList.add("hidden"),this.overlayContainer.lastElementChild.classList.add("hidden"))},parseDate:function(a){var b=a;if(void 0===
831
+ b)return"";"D:"===b.substring(0,2)&&(b=b.substring(2));a=parseInt(b.substring(0,4),10);var c=parseInt(b.substring(4,6),10)-1,e=parseInt(b.substring(6,8),10),d=parseInt(b.substring(8,10),10),f=parseInt(b.substring(10,12),10),g=parseInt(b.substring(12,14),10),h=b.substring(14,15),j=parseInt(b.substring(15,17),10),b=parseInt(b.substring(18,20),10);"-"==h?(d+=j,f+=b):"+"==h&&(d-=j,f+=b);c=new Date(Date.UTC(a,c,e,d,f,g));a=c.toLocaleDateString();c=c.toLocaleTimeString();return mozL10n.get("document_properties_date_string",
832
+ {date:a,time:c},"{{date}}, {{time}}")}},PDFView={pages:[],thumbnails:[],currentScale:UNKNOWN_SCALE,currentScaleValue:null,initialBookmark:document.location.hash.substring(1),container:null,thumbnailContainer:null,initialized:!1,fellback:!1,pdfDocument:null,sidebarOpen:!1,pageViewScroll:null,thumbnailViewScroll:null,pageRotation:0,mouseScrollTimeStamp:0,mouseScrollDelta:0,lastScroll:0,previousPageNumber:1,isViewerEmbedded:window.parent!==window,idleTimeout:null,currentPosition:null,initialize:function(){var a=
833
+ this,b=this.container=document.getElementById("viewerContainer");this.pageViewScroll={};this.watchScroll(b,this.pageViewScroll,updateViewarea);var c=this.thumbnailContainer=document.getElementById("thumbnailView");this.thumbnailViewScroll={};this.watchScroll(c,this.thumbnailViewScroll,this.renderHighestPriority.bind(this));Preferences.initialize();PDFFindBar.initialize({bar:document.getElementById("findbar"),toggleButton:document.getElementById("viewFind"),findField:document.getElementById("findInput"),
834
+ highlightAllCheckbox:document.getElementById("findHighlightAll"),caseSensitiveCheckbox:document.getElementById("findMatchCase"),findMsg:document.getElementById("findMsg"),findStatusIcon:document.getElementById("findStatusIcon"),findPreviousButton:document.getElementById("findPrevious"),findNextButton:document.getElementById("findNext")});PDFFindController.initialize({pdfPageSource:this,integratedFind:this.supportsIntegratedFind});HandTool.initialize({container:b,toggleHandTool:document.getElementById("toggleHandTool")});
835
+ SecondaryToolbar.initialize({toolbar:document.getElementById("secondaryToolbar"),presentationMode:PresentationMode,toggleButton:document.getElementById("secondaryToolbarToggle"),presentationModeButton:document.getElementById("secondaryPresentationMode"),openFile:document.getElementById("secondaryOpenFile"),print:document.getElementById("secondaryPrint"),download:document.getElementById("secondaryDownload"),viewBookmark:document.getElementById("secondaryViewBookmark"),firstPage:document.getElementById("firstPage"),
836
+ lastPage:document.getElementById("lastPage"),pageRotateCw:document.getElementById("pageRotateCw"),pageRotateCcw:document.getElementById("pageRotateCcw"),documentProperties:DocumentProperties,documentPropertiesButton:document.getElementById("documentProperties")});PasswordPrompt.initialize({overlayContainer:document.getElementById("overlayContainer"),passwordField:document.getElementById("password"),passwordText:document.getElementById("passwordText"),passwordSubmit:document.getElementById("passwordSubmit"),
837
+ passwordCancel:document.getElementById("passwordCancel")});PresentationMode.initialize({container:b,secondaryToolbar:SecondaryToolbar,firstPage:document.getElementById("contextFirstPage"),lastPage:document.getElementById("contextLastPage"),pageRotateCw:document.getElementById("contextPageRotateCw"),pageRotateCcw:document.getElementById("contextPageRotateCcw")});DocumentProperties.initialize({overlayContainer:document.getElementById("overlayContainer"),closeButton:document.getElementById("documentPropertiesClose"),
838
+ fileNameField:document.getElementById("fileNameField"),fileSizeField:document.getElementById("fileSizeField"),titleField:document.getElementById("titleField"),authorField:document.getElementById("authorField"),subjectField:document.getElementById("subjectField"),keywordsField:document.getElementById("keywordsField"),creationDateField:document.getElementById("creationDateField"),modificationDateField:document.getElementById("modificationDateField"),creatorField:document.getElementById("creatorField"),
839
+ producerField:document.getElementById("producerField"),versionField:document.getElementById("versionField"),pageCountField:document.getElementById("pageCountField")});b.addEventListener("scroll",function(){a.lastScroll=Date.now()},!1);return Promise.all([Preferences.get("enableWebGL").then(function(a){PDFJS.disableWebGL=!a})]).then(function(){PDFView.initialized=!0})},getPage:function(a){return this.pdfDocument.getPage(a)},watchScroll:function(a,b,c){b.down=!0;b.lastY=a.scrollTop;a.addEventListener("scroll",
840
+ function(){var e=a.scrollTop,d=b.lastY;e>d?b.down=!0:e<d&&(b.down=!1);b.lastY=e;c()},!0)},_setScaleUpdatePages:function(a,b,c,e){this.currentScaleValue=b;if(a!==this.currentScale){b=0;for(var d=this.pages.length;b<d;b++)this.pages[b].update(a);this.currentScale=a;if(!e){e=this.page;var f;this.currentPosition&&!IGNORE_CURRENT_POSITION_ON_ZOOM&&(e=this.currentPosition.page,f=[null,{name:"XYZ"},this.currentPosition.left,this.currentPosition.top,null]);this.pages[e-1].scrollIntoView(f)}f=document.createEvent("UIEvents");
841
+ f.initUIEvent("scalechange",!1,!1,window,0);f.scale=a;f.resetAutoSettings=c;window.dispatchEvent(f)}},setScale:function(a,b,c){if("custom"!==a){var e=parseFloat(a);if(0<e)this._setScaleUpdatePages(e,a,!0,c);else{var d=this.pages[this.page-1];if(d){e=(this.container.clientWidth-(PresentationMode.active?0:SCROLLBAR_PADDING))/d.width*d.scale;d=(this.container.clientHeight-(PresentationMode.active?0:VERTICAL_PADDING))/d.height*d.scale;switch(a){case "page-actual":e=1;break;case "page-width":break;case "page-height":e=
842
+ d;break;case "page-fit":e=Math.min(e,d);break;case "auto":e=Math.min(MAX_AUTO_SCALE,e);break;default:console.error("pdfViewSetScale: '"+a+"' is an unknown zoom value.");return}this._setScaleUpdatePages(e,a,b,c);selectScaleOption(a)}}}},zoomIn:function(a){var b=this.currentScale;do b=(b*DEFAULT_SCALE_DELTA).toFixed(2),b=Math.ceil(10*b)/10,b=Math.min(MAX_SCALE,b);while(--a&&b<MAX_SCALE);this.setScale(b,!0)},zoomOut:function(a){var b=this.currentScale;do b=(b/DEFAULT_SCALE_DELTA).toFixed(2),b=Math.floor(10*
843
+ b)/10,b=Math.max(MIN_SCALE,b);while(--a&&b>MIN_SCALE);this.setScale(b,!0)},set page(a){var b=this.pages,c=document.createEvent("UIEvents");c.initUIEvent("pagechange",!1,!1,window,0);0<a&&a<=b.length?(b[a-1].updateStats(),this.previousPageNumber=currentPageNumber,currentPageNumber=a,c.pageNumber=a,window.dispatchEvent(c),updateViewarea.inProgress||this.loading&&1===a||b[a-1].scrollIntoView()):(this.previousPageNumber=a,c.pageNumber=this.page,window.dispatchEvent(c))},get page(){return currentPageNumber},
844
+ get supportsPrinting(){var a="mozPrintCallback"in document.createElement("canvas");Object.defineProperty(this,"supportsPrinting",{value:a,enumerable:!0,configurable:!0,writable:!1});return a},get supportsFullscreen(){var a=document.documentElement,a=a.requestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullScreen||a.msRequestFullscreen;if(!1===document.fullscreenEnabled||!1===document.mozFullScreenEnabled||!1===document.webkitFullscreenEnabled||!1===document.msFullscreenEnabled)a=!1;Object.defineProperty(this,
845
+ "supportsFullscreen",{value:a,enumerable:!0,configurable:!0,writable:!1});return a},get supportsIntegratedFind(){Object.defineProperty(this,"supportsIntegratedFind",{value:!1,enumerable:!0,configurable:!0,writable:!1});return!1},get supportsDocumentFonts(){Object.defineProperty(this,"supportsDocumentFonts",{value:!0,enumerable:!0,configurable:!0,writable:!1});return!0},get supportsDocumentColors(){Object.defineProperty(this,"supportsDocumentColors",{value:!0,enumerable:!0,configurable:!0,writable:!1});
846
+ return!0},get loadingBar(){var a=new ProgressBar("#loadingBar",{});Object.defineProperty(this,"loadingBar",{value:a,enumerable:!0,configurable:!0,writable:!1});return a},get isHorizontalScrollbarEnabled(){return PresentationMode.active?!1:this.container.scrollWidth>this.container.clientWidth},setTitleUsingUrl:function(a){this.url=a;try{this.setTitle(decodeURIComponent(getFileName(a))||a)}catch(b){this.setTitle(a)}},setTitle:function(a){document.title=a},close:function(){document.getElementById("errorWrapper").setAttribute("hidden",
847
+ "true");if(this.pdfDocument){this.pdfDocument.destroy();this.pdfDocument=null;for(var a=document.getElementById("thumbnailView");a.hasChildNodes();)a.removeChild(a.lastChild);"_loadingInterval"in a&&clearInterval(a._loadingInterval);for(a=document.getElementById("viewer");a.hasChildNodes();)a.removeChild(a.lastChild);"undefined"!==typeof PDFBug&&PDFBug.cleanup()}},open:function(a,b,c,e,d){this.pdfDocument&&Preferences.reload();this.close();c={password:c};"string"===typeof a?(this.setTitleUsingUrl(a),
848
+ c.url=a):a&&"byteLength"in a&&(c.data=a);if(d)for(var f in d)c[f]=d[f];var g=this;g.loading=!0;g.downloadComplete=!1;PDFJS.getDocument(c,e,function(a,b){PasswordPrompt.updatePassword=a;PasswordPrompt.reason=b;PasswordPrompt.show()},function(a){g.progress(a.loaded/a.total)}).then(function(a){g.load(a,b);g.loading=!1},function(a,b){var c=mozL10n.get("loading_error",null,"An error occurred while loading the PDF.");b&&"InvalidPDFException"===b.name&&(c=mozL10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."));
849
+ b&&"MissingPDFException"===b.name&&(c=mozL10n.get("missing_file_error",null,"Missing PDF file."));g.error(c,{message:a});g.loading=!1})},download:function(){function a(){e.downloadUrl(b,c)}var b=this.url.split("#")[0],c=getPDFFileNameFromURL(b),e=new DownloadManager;e.onerror=function(){PDFView.error("PDF failed to download.")};this.pdfDocument?this.downloadComplete?this.pdfDocument.getData().then(function(a){a=PDFJS.createBlob(a,"application/pdf");e.download(a,b,c)},a).then(null,a):a():a()},fallback:function(){},
850
+ navigateTo:function(a){var b="",c=this,e=function(d){c.pendingRefStr=null;var f=d instanceof Object?c.pagesRefMap[d.num+" "+d.gen+" R"]:d+1;f?(f>c.pages.length&&(f=c.pages.length),c.pages[f-1].scrollIntoView(a),PDFHistory.push({dest:a,hash:b,page:f})):c.pdfDocument.getPageIndex(d).then(function(a){c.pagesRefMap[d.num+" "+d.gen+" R"]=a+1;e(d)})};this.destinationsPromise.then(function(){"string"===typeof a&&(b=a,a=c.destinations[a]);a instanceof Array&&e(a[0])})},getDestinationHash:function(a){if("string"===
851
+ typeof a)return PDFView.getAnchorUrl("#"+escape(a));if(a instanceof Array){var b=a[0];if(b=b instanceof Object?this.pagesRefMap[b.num+" "+b.gen+" R"]:b+1){var b=PDFView.getAnchorUrl("#page="+b),c=a[1];if("object"===typeof c&&"name"in c&&"XYZ"==c.name){var c=a[4]||this.currentScaleValue,e=parseFloat(c);e&&(c=100*e);b+="&zoom="+c;if(a[2]||a[3])b+=","+(a[2]||0)+","+(a[3]||0)}return b}}return""},getAnchorUrl:function(a){return a},error:function(a,b){var c=mozL10n.get("error_version_info",{version:PDFJS.version||
852
+ "?",build:PDFJS.build||"?"},"PDF.js v{{version}} (build: {{build}})")+"\n";b&&(c+=mozL10n.get("error_message",{message:b.message},"Message: {{message}}"),b.stack?c+="\n"+mozL10n.get("error_stack",{stack:b.stack},"Stack: {{stack}}"):(b.filename&&(c+="\n"+mozL10n.get("error_file",{file:b.filename},"File: {{file}}")),b.lineNumber&&(c+="\n"+mozL10n.get("error_line",{line:b.lineNumber},"Line: {{line}}"))));var e=document.getElementById("errorWrapper");e.removeAttribute("hidden");document.getElementById("errorMessage").textContent=
853
+ a;var d=document.getElementById("errorClose");d.onclick=function(){e.setAttribute("hidden","true")};var f=document.getElementById("errorMoreInfo"),g=document.getElementById("errorShowMore"),h=document.getElementById("errorShowLess");g.onclick=function(){f.removeAttribute("hidden");g.setAttribute("hidden","true");h.removeAttribute("hidden");f.style.height=f.scrollHeight+"px"};h.onclick=function(){f.setAttribute("hidden","true");g.removeAttribute("hidden");h.setAttribute("hidden","true")};g.oncontextmenu=
854
+ noContextMenuHandler;h.oncontextmenu=noContextMenuHandler;d.oncontextmenu=noContextMenuHandler;g.removeAttribute("hidden");h.setAttribute("hidden","true");f.value=c},progress:function(a){a=Math.round(100*a);a>PDFView.loadingBar.percent&&(PDFView.loadingBar.percent=a)},load:function(a,b){function c(a,b){a.onAfterDraw=function(){d||(d=!0,f());b.setImage(a.canvas)}}var e=this,d=!1,f=null,g=new Promise(function(a){f=a});PDFFindController.reset();this.pdfDocument=a;DocumentProperties.resolveDataAvailable();
855
+ var h=a.getDownloadInfo().then(function(){e.downloadComplete=!0;PDFView.loadingBar.hide();document.getElementById("outerContainer").classList.remove("loadingInProgress")}),j=a.numPages,l=a.fingerprint;document.getElementById("numPages").textContent=mozL10n.get("page_of",{pageCount:j},"of {{pageCount}}");document.getElementById("pageNumber").max=j;PDFView.documentFingerprint=l;var n=PDFView.store=new ViewHistory(l);this.pageRotation=0;var s=this.pages=[],t=this.pagesRefMap={},w=this.thumbnails=[],
856
+ p;this.pagesPromise=l=new Promise(function(a){p=a});var k=a.getPage(1),q=document.getElementById("viewer"),m=document.getElementById("thumbnailView");k.then(function(d){d=d.getViewport((b||1)*CSS_UNITS);for(var f=1;f<=j;++f){var l=d.clone(),n=new PageView(q,f,b,e.navigateTo.bind(e),l),l=new ThumbnailView(m,f,l);c(n,l);s.push(n);w.push(l)}g.then(function(){if(PDFJS.disableAutoFetch)p();else for(var b=j,c=1;c<=j;++c)a.getPage(c).then(function(a,c){var e=s[a-1];e.pdfPage||e.setPdfPage(c);t[c.ref.num+
857
+ " "+c.ref.gen+" R"]=a;b--;b||p()}.bind(null,c))});h.then(function(){var a=document.createEvent("CustomEvent");a.initCustomEvent("documentload",!0,!0,{});window.dispatchEvent(a)});PDFView.loadingBar.setWidth(q);PDFFindController.resolveFirstPage();PDFHistory.initialize(e.documentFingerprint)});var u,r=Preferences.get("showPreviousViewOnLoad").then(function(a){u=a}),v,x=Preferences.get("defaultZoomValue").then(function(a){v=a});Promise.all([k,n.initializedPromise,r,x]).then(function(){var a=null;if(u&&
858
+ n.get("exists",!1))var a=n.get("page","1"),c=v||n.get("zoom",PDFView.currentScale),d=n.get("scrollLeft","0"),g=n.get("scrollTop","0"),a="page="+a+"&zoom="+c+","+d+","+g;else v&&(a="page=1&zoom="+v);e.setInitialView(a,b);e.isViewerEmbedded||e.container.focus()},function(a){console.error(a);k.then(function(){e.setInitialView(null,b)})});l.then(function(){PDFView.supportsPrinting&&a.getJavaScript().then(function(a){a.length&&(console.warn("Warning: JavaScript is not supported"),PDFView.fallback(PDFJS.UNSUPPORTED_FEATURES.javaScript));
859
+ for(var b=/\bprint\s*\(/g,c=0,e=a.length;c<e;c++){var d=a[c];if(d&&b.test(d)){setTimeout(function(){window.print()});break}}})});r=this.destinationsPromise=a.getDestinations();r.then(function(a){e.destinations=a});Promise.all([l,r,PDFView.animationStartedPromise]).then(function(){a.getOutline().then(function(a){e.outline=new DocumentOutlineView(a);document.getElementById("viewOutline").disabled=!a;a&&Preferences.get("ifAvailableShowOutlineOnLoad").then(function(a){a&&(e.sidebarOpen||document.getElementById("sidebarToggle").click(),
860
+ e.switchSidebarView("outline"))})});a.getAttachments().then(function(a){e.attachments=new DocumentAttachmentsView(a);document.getElementById("viewAttachments").disabled=!a})});a.getMetadata().then(function(b){var c=b.info;b=b.metadata;e.documentInfo=c;e.metadata=b;console.log("PDF "+a.fingerprint+" ["+c.PDFFormatVersion+" "+(c.Producer||"-").trim()+" / "+(c.Creator||"-").trim()+"] (PDF.js: "+(PDFJS.version||"-")+(!PDFJS.disableWebGL?" [WebGL]":"")+")");var d;b&&b.has("dc:title")&&(d=b.get("dc:title"));
861
+ !d&&(c&&c.Title)&&(d=c.Title);d&&e.setTitle(d+" - "+document.title);c.IsAcroFormPresent&&(console.warn("Warning: AcroForm/XFA is not supported"),PDFView.fallback(PDFJS.UNSUPPORTED_FEATURES.forms))})},setInitialView:function(a,b){this.currentScale=0;this.currentScaleValue=null;document.getElementById("pageNumber").value=currentPageNumber=1;this.currentPosition=null;PDFHistory.initialDestination?(this.navigateTo(PDFHistory.initialDestination),PDFHistory.initialDestination=null):this.initialBookmark?
862
+ (this.setHash(this.initialBookmark),PDFHistory.push({hash:this.initialBookmark},!!this.initialBookmark),this.initialBookmark=null):a?this.setHash(a):b&&(this.setScale(b,!0),this.page=1);PDFView.currentScale===UNKNOWN_SCALE&&this.setScale(DEFAULT_SCALE,!0)},renderHighestPriority:function(){PDFView.idleTimeout&&(clearTimeout(PDFView.idleTimeout),PDFView.idleTimeout=null);var a=this.getVisiblePages();if(a=this.getHighestPriority(a,this.pages,this.pageViewScroll.down))this.renderView(a,"page");else{if(this.sidebarOpen&&
863
+ (a=this.getVisibleThumbs(),a=this.getHighestPriority(a,this.thumbnails,this.thumbnailViewScroll.down))){this.renderView(a,"thumbnail");return}PDFView.idleTimeout=setTimeout(function(){PDFView.cleanup()},CLEANUP_TIMEOUT)}},cleanup:function(){for(var a=0,b=this.pages.length;a<b;a++)this.pages[a]&&this.pages[a].renderingState!==RenderingStates.FINISHED&&this.pages[a].reset();this.pdfDocument.cleanup()},getHighestPriority:function(a,b,c){var e=a.views,d=e.length;if(0===d)return!1;for(var f=0;f<d;++f){var g=
864
+ e[f].view;if(!this.isViewFinished(g))return g}a=c?a.last.id:a.first.id-2;return b[a]&&!this.isViewFinished(b[a])?b[a]:!1},isViewFinished:function(a){return a.renderingState===RenderingStates.FINISHED},renderView:function(a,b){switch(a.renderingState){case RenderingStates.FINISHED:return!1;case RenderingStates.PAUSED:PDFView.highestPriorityPage=b+a.id;a.resume();break;case RenderingStates.RUNNING:PDFView.highestPriorityPage=b+a.id;break;case RenderingStates.INITIAL:PDFView.highestPriorityPage=b+a.id,
865
+ a.draw(this.renderHighestPriority.bind(this))}return!0},setHash:function(a){if(a)if(0<=a.indexOf("="))if(a=PDFView.parseQueryString(a),"nameddest"in a)PDFHistory.updateNextHashParam(a.nameddest),PDFView.navigateTo(a.nameddest);else{var b,c;"page"in a&&(b=a.page|0||1);if("zoom"in a){c=a.zoom.split(",");var e=c[0],d=parseFloat(e);d&&(e=d/100);c=[null,{name:"XYZ"},1<c.length?c[1]|0:null,2<c.length?c[2]|0:null,e]}c?this.pages[(b||this.page)-1].scrollIntoView(c):b&&(this.page=b);"pagemode"in a&&(b=document.getElementById("sidebarToggle"),
866
+ "thumbs"===a.pagemode||"bookmarks"===a.pagemode||"attachments"===a.pagemode?(this.sidebarOpen||b.click(),this.switchSidebarView("bookmarks"===a.pagemode?"outline":a.pagemode)):"none"===a.pagemode&&this.sidebarOpen&&b.click())}else/^\d+$/.test(a)?this.page=a:(PDFHistory.updateNextHashParam(unescape(a)),PDFView.navigateTo(unescape(a)))},switchSidebarView:function(a){var b=document.getElementById("thumbnailView"),c=document.getElementById("outlineView"),e=document.getElementById("attachmentsView"),d=
867
+ document.getElementById("viewThumbnail"),f=document.getElementById("viewOutline"),g=document.getElementById("viewAttachments");switch(a){case "thumbs":a=b.classList.contains("hidden");d.classList.add("toggled");f.classList.remove("toggled");g.classList.remove("toggled");b.classList.remove("hidden");c.classList.add("hidden");e.classList.add("hidden");PDFView.renderHighestPriority();a&&scrollIntoView(document.getElementById("thumbnailContainer"+this.page));break;case "outline":d.classList.remove("toggled");
868
+ f.classList.add("toggled");g.classList.remove("toggled");b.classList.add("hidden");c.classList.remove("hidden");e.classList.add("hidden");if(f.getAttribute("disabled"))break;break;case "attachments":d.classList.remove("toggled"),f.classList.remove("toggled"),g.classList.add("toggled"),b.classList.add("hidden"),c.classList.add("hidden"),e.classList.remove("hidden"),g.getAttribute("disabled")}},getVisiblePages:function(){if(PresentationMode.active){var a=[],b=this.pages[this.page-1];a.push({id:b.id,
869
+ view:b});return{first:b,last:b,views:a}}return this.getVisibleElements(this.container,this.pages,!0)},getVisibleThumbs:function(){return this.getVisibleElements(this.thumbnailContainer,this.thumbnails)},getVisibleElements:function(a,b,c){var e=a.scrollTop,d=e+a.clientHeight,f=a.scrollLeft,g=f+a.clientWidth;a=[];for(var h,j,l,n,s,t=0,w=b.length;t<w;++t)if(h=b[t],j=h.el.offsetTop+h.el.clientTop,l=h.el.clientHeight,!(j+l<e)){if(j>d)break;s=h.el.offsetLeft+h.el.clientLeft;n=h.el.clientWidth;s+n<f||s>
870
+ g||(n=Math.max(0,e-j)+Math.max(0,j+l-d),l=100*(l-n)/l|0,a.push({id:h.id,x:s,y:j,view:h,percent:l}))}b=a[0];e=a[a.length-1];c&&a.sort(function(a,b){var c=a.percent-b.percent;return 0.001<Math.abs(c)?-c:a.id-b.id});return{first:b,last:e,views:a}},parseQueryString:function(a){a=a.split("&");for(var b={},c=0,e=a.length;c<e;++c){var d=a[c].split("="),f=1<d.length?d[1]:null;b[decodeURIComponent(d[0])]=decodeURIComponent(f)}return b},beforePrint:function(){if(this.supportsPrinting){var a=!1,b,c;if(this.pages.length){b=
871
+ 0;for(c=this.pages.length;b<c;++b)if(!this.pages[b].pdfPage){a=!0;break}}else a=!0;if(a)a=mozL10n.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing."),window.alert(a);else{document.querySelector("body").setAttribute("data-mozPrintCallback",!0);b=0;for(c=this.pages.length;b<c;++b)this.pages[b].beforePrint()}}else a=mozL10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser."),this.error(a)},afterPrint:function(){for(var a=document.getElementById("printContainer");a.hasChildNodes();)a.removeChild(a.lastChild)},
872
+ rotatePages:function(a){var b=this.pages[this.page-1],c;this.pageRotation=(this.pageRotation+360+a)%360;a=0;for(c=this.pages.length;a<c;a++){var e=this.pages[a];e.update(e.scale,this.pageRotation)}a=0;for(c=this.thumbnails.length;a<c;a++)this.thumbnails[a].update(this.pageRotation);this.setScale(this.currentScaleValue,!0,!0);this.renderHighestPriority();b&&b.scrollIntoView()},mouseScroll:function(a){var b=(new Date).getTime(),c=this.mouseScrollTimeStamp;b>c&&50>b-c||((0<this.mouseScrollDelta&&0>a||
873
+ 0>this.mouseScrollDelta&&0<a)&&this.clearMouseScrollState(),this.mouseScrollDelta+=a,120<=Math.abs(this.mouseScrollDelta)&&(a=0<this.mouseScrollDelta?-1:1,this.clearMouseScrollState(),c=this.page,1==c&&-1==a||c==this.pages.length&&1==a||(this.page+=a,this.mouseScrollTimeStamp=b)))},clearMouseScrollState:function(){this.mouseScrollDelta=this.mouseScrollTimeStamp=0}},PageView=function(a,b,c,e,d){function f(a,b,c){function e(a,b){a.href=PDFView.getDestinationHash(b);a.onclick=function(){b&&PDFView.navigateTo(b);
874
+ return!1};b&&(a.className="internalLink")}function d(a,b){a.href=PDFView.getAnchorUrl("");a.onclick=function(){switch(b){case "GoToPage":document.getElementById("pageNumber").focus();break;case "GoBack":PDFHistory.back();break;case "GoForward":PDFHistory.forward();break;case "Find":PDFView.supportsIntegratedFind||PDFFindBar.toggle();break;case "NextPage":PDFView.page++;break;case "PrevPage":PDFView.page--;break;case "LastPage":PDFView.page=PDFView.pages.length;break;case "FirstPage":PDFView.page=
875
+ 1}return!1};a.className="internalLink"}b.getAnnotations().then(function(g){c=c.clone({dontFlip:!0});var f="matrix("+c.transform.join(",")+")",k,q,m,u;if(h.annotationLayer){m=0;for(u=g.length;m<u;m++)k=g[m],(q=h.annotationLayer.querySelector('[data-annotation-id="'+k.id+'"]'))&&CustomStyle.setProp("transform",q,f);h.annotationLayer.removeAttribute("hidden")}else{m=0;for(u=g.length;m<u;m++){k=g[m];var r=PDFJS.Annotation.fromData(k);if(r&&r.hasHtml()){q=r.getHtmlElement(b.commonObjs);q.setAttribute("data-annotation-id",
876
+ k.id);mozL10n.translate(q);k=r.getData();var r=k.rect,v=b.view,r=PDFJS.Util.normalizeRect([r[0],v[3]-r[1]+v[1],r[2],v[3]-r[3]+v[1]]);q.style.left=r[0]+"px";q.style.top=r[1]+"px";q.style.position="absolute";CustomStyle.setProp("transform",q,f);CustomStyle.setProp("transformOrigin",q,-r[0]+"px "+-r[1]+"px");"Link"===k.subtype&&!k.url&&(r=q.getElementsByTagName("a")[0])&&(k.action?d(r,k.action):e(r,"dest"in k?k.dest:null));h.annotationLayer||(k=document.createElement("div"),k.className="annotationLayer",
877
+ a.appendChild(k),h.annotationLayer=k);h.annotationLayer.appendChild(q)}}}})}this.id=b;this.rotation=0;this.scale=c||1;this.viewport=d;this.pdfPageRotate=d.rotation;this.renderingState=RenderingStates.INITIAL;this.annotationLayer=this.zoomLayer=this.textLayer=this.resume=null;b=document.createElement("a");b.name=""+this.id;var g=this.el=document.createElement("div");g.id="pageContainer"+this.id;g.className="page";g.style.width=Math.floor(this.viewport.width)+"px";g.style.height=Math.floor(this.viewport.height)+
878
+ "px";a.appendChild(b);a.appendChild(g);this.setPdfPage=function(a){this.pdfPage=a;this.pdfPageRotate=a.rotate;this.viewport=a.getViewport(this.scale*CSS_UNITS,(this.rotation+this.pdfPageRotate)%360);this.stats=a.stats;this.reset()};this.destroy=function(){this.zoomLayer=null;this.reset();this.pdfPage&&this.pdfPage.destroy()};this.reset=function(a){this.renderTask&&this.renderTask.cancel();this.resume=null;this.renderingState=RenderingStates.INITIAL;g.style.width=Math.floor(this.viewport.width)+"px";
879
+ g.style.height=Math.floor(this.viewport.height)+"px";for(var b=g.childNodes,c=g.childNodes.length-1;0<=c;c--){var e=b[c];this.zoomLayer&&this.zoomLayer===e||a&&this.annotationLayer===e||g.removeChild(e)}g.removeAttribute("data-loaded");a?this.annotationLayer&&this.annotationLayer.setAttribute("hidden","true"):this.annotationLayer=null;delete this.canvas;this.loadingIconDiv=document.createElement("div");this.loadingIconDiv.className="loadingIcon";g.appendChild(this.loadingIconDiv)};this.update=function(a,
880
+ b){this.scale=a||this.scale;"undefined"!==typeof b&&(this.rotation=b);this.viewport=this.viewport.clone({scale:this.scale*CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360});USE_ONLY_CSS_ZOOM&&this.canvas?this.cssTransform(this.canvas):(this.canvas&&!this.zoomLayer&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute"),this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0))};this.cssTransform=function(a){var b=this.viewport.width,c=this.viewport.height;
881
+ a.style.width=a.parentNode.style.width=g.style.width=Math.floor(b)+"px";a.style.height=a.parentNode.style.height=g.style.height=Math.floor(c)+"px";var e=this.viewport.rotation-a._viewport.rotation,d=Math.abs(e),h=1,p=1;if(90===d||270===d)h=c/b,p=b/c;CustomStyle.setProp("transform",a,"rotate("+e+"deg) scale("+h+","+p+")");if(this.textLayer){c=Math.abs(this.viewport.rotation-this.textLayer.viewport.rotation);e=b/a.width;if(90===c||270===c)e=b/a.height;a=this.textLayer.textLayerDiv;var k,q;switch(c){case 0:k=
882
+ q=0;break;case 90:k=0;q="-"+a.style.height;break;case 180:k="-"+a.style.width;q="-"+a.style.height;break;case 270:k="-"+a.style.width;q=0;break;default:console.error("Bad rotation value.")}CustomStyle.setProp("transform",a,"rotate("+c+"deg) scale("+e+", "+e+") translate("+k+", "+q+")");CustomStyle.setProp("transformOrigin",a,"0% 0%")}USE_ONLY_CSS_ZOOM&&this.annotationLayer&&f(g,this.pdfPage,this.viewport)};Object.defineProperty(this,"width",{get:function(){return this.viewport.width},enumerable:!0});
883
+ Object.defineProperty(this,"height",{get:function(){return this.viewport.height},enumerable:!0});var h=this;this.getPagePoint=function(a,b){return this.viewport.convertToPdfPoint(a,b)};this.scrollIntoView=function(a){if(PresentationMode.active){if(PDFView.page!==this.id){PDFView.page=this.id;return}a=null;PDFView.setScale(PDFView.currentScaleValue,!0,!0)}if(a){var b=0,c=0,e=0,d=0,f,h;h=0===this.rotation%180?!1:!0;f=(h?this.height:this.width)/this.scale/CSS_UNITS;h=(h?this.width:this.height)/this.scale/
884
+ CSS_UNITS;var k=0;switch(a[1].name){case "XYZ":b=a[2];c=a[3];k=a[4];b=null!==b?b:0;c=null!==c?c:h;break;case "Fit":case "FitB":k="page-fit";break;case "FitH":case "FitBH":c=a[2];k="page-width";break;case "FitV":case "FitBV":b=a[2];e=f;d=h;k="page-height";break;case "FitR":b=a[2];c=a[3];e=a[4]-b;d=a[5]-c;f=(PDFView.container.clientWidth-SCROLLBAR_PADDING)/e/CSS_UNITS;h=(PDFView.container.clientHeight-SCROLLBAR_PADDING)/d/CSS_UNITS;k=Math.min(Math.abs(f),Math.abs(h));break;default:return}k&&k!==PDFView.currentScale?
885
+ PDFView.setScale(k,!0,!0):PDFView.currentScale===UNKNOWN_SCALE&&PDFView.setScale(DEFAULT_SCALE,!0,!0);"page-fit"===k&&!a[4]?scrollIntoView(g):(b=[this.viewport.convertToViewportPoint(b,c),this.viewport.convertToViewportPoint(b+e,c+d)],a=Math.min(b[0][0],b[1][0]),b=Math.min(b[0][1],b[1][1]),scrollIntoView(g,{left:a,top:b}))}else scrollIntoView(g)};this.getTextContent=function(){return PDFView.getPage(this.id).then(function(a){return a.getTextContent()})};this.draw=function(a){function b(e){u===m.renderTask&&
886
+ (m.renderTask=null);if("cancelled"!==e){m.renderingState=RenderingStates.FINISHED;m.loadingIconDiv&&(g.removeChild(m.loadingIconDiv),delete m.loadingIconDiv);m.zoomLayer&&(g.removeChild(m.zoomLayer),m.zoomLayer=null);e&&PDFView.error(mozL10n.get("rendering_error",null,"An error occurred while rendering the page."),e);m.stats=c.stats;m.updateStats();if(m.onAfterDraw)m.onAfterDraw();cache.push(m);e=document.createEvent("CustomEvent");e.initCustomEvent("pagerender",!0,!0,{pageNumber:c.pageNumber});g.dispatchEvent(e);
887
+ a()}}var c=this.pdfPage;if(!this.pagePdfPromise)if(c){this.renderingState!==RenderingStates.INITIAL&&console.error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;var e=this.viewport,d=document.createElement("div");d.style.width=g.style.width;d.style.height=g.style.height;d.classList.add("canvasWrapper");var h=document.createElement("canvas");h.id="page"+this.id;d.appendChild(h);this.annotationLayer?g.insertBefore(d,this.annotationLayer):g.appendChild(d);this.canvas=
888
+ h;var d=h.getContext("2d"),p=getOutputScale(d);if(USE_ONLY_CSS_ZOOM){var k=e.clone({scale:CSS_UNITS});p.sx*=k.width/e.width;p.sy*=k.height/e.height;p.scaled=!0}h.width=Math.floor(e.width)*p.sx|0;h.height=Math.floor(e.height)*p.sy|0;h.style.width=Math.floor(e.width)+"px";h.style.height=Math.floor(e.height)+"px";h._viewport=e;e=null;PDFJS.disableTextLayer||(e=document.createElement("div"),e.className="textLayer",e.style.width=h.style.width,e.style.height=h.style.height,this.annotationLayer?g.insertBefore(e,
889
+ this.annotationLayer):g.appendChild(e));var q=this.textLayer=e?new TextLayerBuilder({textLayerDiv:e,pageIndex:this.id-1,lastScrollSource:PDFView,viewport:this.viewport,isViewerInPresentationMode:PresentationMode.active}):null;d._scaleX=p.sx;d._scaleY=p.sy;p.scaled&&d.scale(p.sx,p.sy);var m=this,u=this.renderTask=this.pdfPage.render({canvasContext:d,viewport:this.viewport,textLayer:q,continueCallback:function(a){PDFView.highestPriorityPage!=="page"+m.id?(m.renderingState=RenderingStates.PAUSED,m.resume=
890
+ function(){m.renderingState=RenderingStates.RUNNING;a()}):a()}});this.renderTask.promise.then(function(){b(null);q&&m.getTextContent().then(function(a){q.setTextContent(a)})},function(a){b(a)});f(g,c,this.viewport);g.setAttribute("data-loaded",!0)}else h=PDFView.getPage(this.id),h.then(function(b){delete this.pagePdfPromise;this.setPdfPage(b);this.draw(a)}.bind(this)),this.pagePdfPromise=h};this.beforePrint=function(){var a=this.pdfPage,b=a.getViewport(1),c=document.createElement("canvas");c.width=
891
+ 2*Math.floor(b.width);c.height=2*Math.floor(b.height);c.style.width=2*b.width+"pt";c.style.height=2*b.height+"pt";CustomStyle.setProp("transform",c,"scale(0.5, 0.5)");CustomStyle.setProp("transformOrigin",c,"0% 0%");var e=document.getElementById("printContainer"),d=document.createElement("div");d.style.width=b.width+"pt";d.style.height=b.height+"pt";d.appendChild(c);e.appendChild(d);c.mozPrintCallback=function(e){var d=e.context;d.save();d.fillStyle="rgb(255, 255, 255)";d.fillRect(0,0,c.width,c.height);
892
+ d.restore();d.scale(2,2);a.render({canvasContext:d,viewport:b,intent:"print"}).promise.then(function(){e.done()},function(a){console.error(a);"abort"in e?e.abort():e.done()})}};this.updateStats=function(){this.stats&&PDFJS.pdfBug&&Stats.enabled&&Stats.add(this.id,this.stats)}},ThumbnailView=function(a,b,c){var e=document.createElement("a");e.href=PDFView.getAnchorUrl("#page="+b);e.title=mozL10n.get("thumb_page_title",{page:b},"Page {{page}}");e.onclick=function(){PDFView.page=b;return!1};this.pdfPage=
893
+ void 0;this.viewport=c;this.pdfPageRotate=c.rotation;this.rotation=0;this.pageWidth=this.viewport.width;this.pageHeight=this.viewport.height;this.pageRatio=this.pageWidth/this.pageHeight;this.id=b;this.canvasWidth=98;this.canvasHeight=this.canvasWidth/this.pageWidth*this.pageHeight;this.scale=this.canvasWidth/this.pageWidth;var d=this.el=document.createElement("div");d.id="thumbnailContainer"+b;d.className="thumbnail";1===b&&d.classList.add("selected");var f=document.createElement("div");f.className=
894
+ "thumbnailSelectionRing";f.style.width=this.canvasWidth+"px";f.style.height=this.canvasHeight+"px";d.appendChild(f);e.appendChild(d);a.appendChild(e);this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;this.setPdfPage=function(a){this.pdfPage=a;this.pdfPageRotate=a.rotate;this.viewport=a.getViewport(1,(this.rotation+this.pdfPageRotate)%360);this.update()};this.update=function(a){void 0!==a&&(this.rotation=a);this.viewport=this.viewport.clone({scale:1,rotation:(this.rotation+this.pdfPageRotate)%
895
+ 360});this.pageWidth=this.viewport.width;this.pageHeight=this.viewport.height;this.pageRatio=this.pageWidth/this.pageHeight;this.canvasHeight=this.canvasWidth/this.pageWidth*this.pageHeight;this.scale=this.canvasWidth/this.pageWidth;d.removeAttribute("data-loaded");f.textContent="";f.style.width=this.canvasWidth+"px";f.style.height=this.canvasHeight+"px";this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;this.resume=null};this.getPageDrawContext=function(){var a=document.createElement("canvas");
896
+ a.id="thumbnail"+b;a.width=this.canvasWidth;a.height=this.canvasHeight;a.className="thumbnailImage";a.setAttribute("aria-label",mozL10n.get("thumb_page_canvas",{page:b},"Thumbnail of Page {{page}}"));d.setAttribute("data-loaded",!0);f.appendChild(a);a=a.getContext("2d");a.save();a.fillStyle="rgb(255, 255, 255)";a.fillRect(0,0,this.canvasWidth,this.canvasHeight);a.restore();return a};this.drawingRequired=function(){return!this.hasImage};this.draw=function(a){if(this.pdfPage)if(this.renderingState!==
897
+ RenderingStates.INITIAL&&console.error("Must be in new state before drawing"),this.renderingState=RenderingStates.RUNNING,this.hasImage)a();else{var b=this,c=this.getPageDrawContext(),e=this.viewport.clone({scale:this.scale});this.pdfPage.render({canvasContext:c,viewport:e,continueCallback:function(a){PDFView.highestPriorityPage!=="thumbnail"+b.id?(b.renderingState=RenderingStates.PAUSED,b.resume=function(){b.renderingState=RenderingStates.RUNNING;a()}):a()}}).promise.then(function(){b.renderingState=
898
+ RenderingStates.FINISHED;a()},function(){b.renderingState=RenderingStates.FINISHED;a()});this.hasImage=!0}else PDFView.getPage(this.id).then(function(b){this.setPdfPage(b);this.draw(a)}.bind(this))};this.setImage=function(a){if(this.pdfPage){if(!this.hasImage&&a){this.renderingState=RenderingStates.FINISHED;var b=this.getPageDrawContext();b.drawImage(a,0,0,a.width,a.height,0,0,b.canvas.width,b.canvas.height);this.hasImage=!0}}else PDFView.getPage(this.id).then(function(b){this.setPdfPage(b);this.setImage(a)}.bind(this))}},
899
+ FIND_SCROLL_OFFSET_TOP=-50,FIND_SCROLL_OFFSET_LEFT=-400,TextLayerBuilder=function(a){var b=document.createDocumentFragment();this.textLayerDiv=a.textLayerDiv;this.divContentDone=this.layoutDone=!1;this.pageIdx=a.pageIndex;this.matches=[];this.lastScrollSource=a.lastScrollSource;this.viewport=a.viewport;this.isViewerInPresentationMode=a.isViewerInPresentationMode;this.textDivs=[];"undefined"===typeof PDFFindController&&(window.PDFFindController=null);"undefined"===typeof this.lastScrollSource&&(this.lastScrollSource=
900
+ null);this.renderLayer=function(){var a=this.textDivs,e=document.createElement("canvas").getContext("2d");if(!(1E5<a.length)){for(var d=0,f=a.length;d<f;d++){var g=a[d];if(!("isWhitespace"in g.dataset)){e.font=g.style.fontSize+" "+g.style.fontFamily;var h=e.measureText(g.textContent).width;0<h&&(b.appendChild(g),h="scale("+g.dataset.canvasWidth/h+", 1)",h="rotate("+g.dataset.angle+"deg) "+h,CustomStyle.setProp("transform",g,h),CustomStyle.setProp("transformOrigin",g,"0% 0%"))}}this.textLayerDiv.appendChild(b);
901
+ this.renderingDone=!0;this.updateMatches()}};this.setupRenderLayoutTimer=function(){var a=this,b=null===this.lastScrollSource?0:this.lastScrollSource.lastScroll;200<Date.now()-b?this.renderLayer():(this.renderTimer&&clearTimeout(this.renderTimer),this.renderTimer=setTimeout(function(){a.setupRenderLayoutTimer()},200))};this.appendText=function(a,b){var d=b[a.fontName],f=document.createElement("div");this.textDivs.push(f);if(/\S/.test(a.str)){var g=PDFJS.Util.transform(this.viewport.transform,a.transform),
902
+ h=Math.atan2(g[1],g[0]);d.vertical&&(h+=Math.PI/2);var j=Math.sqrt(g[2]*g[2]+g[3]*g[3]),l=d.ascent?d.ascent*j:d.descent?(1+d.descent)*j:j;f.style.position="absolute";f.style.left=g[4]+l*Math.sin(h)+"px";f.style.top=g[5]-l*Math.cos(h)+"px";f.style.fontSize=j+"px";f.style.fontFamily=d.fontFamily;f.textContent=a.str;f.dataset.fontName=a.fontName;f.dataset.angle=h*(180/Math.PI);f.dataset.canvasWidth=d.vertical?a.height*this.viewport.scale:a.width*this.viewport.scale}else f.dataset.isWhitespace=!0};this.setTextContent=
903
+ function(a){this.textContent=a;for(var b=a.items,d=0;d<b.length;d++)this.appendText(b[d],a.styles);this.divContentDone=!0;this.setupRenderLayoutTimer()};this.convertMatches=function(a){for(var b=0,d=0,f=this.textContent.items,g=f.length-1,h=null===PDFFindController?0:PDFFindController.state.query.length,j=[],l=0;l<a.length;l++){for(var n=a[l];b!==g&&n>=d+f[b].str.length;)d+=f[b].str.length,b++;b==f.length&&console.error("Could not find matching mapping");for(var s={begin:{divIdx:b,offset:n-d}},n=
904
+ n+h;b!==g&&n>d+f[b].str.length;)d+=f[b].str.length,b++;s.end={divIdx:b,offset:n-d};j.push(s)}return j};this.renderMatches=function(a){function b(a,c){var d=a.divIdx;h[d].textContent="";f(d,0,a.offset,c)}function d(a,b,c){f(a.divIdx,a.offset,b.offset,c)}function f(a,b,c,d){var e=h[a];a=g[a].str.substring(b,c);a=document.createTextNode(a);d?(b=document.createElement("span"),b.className=d,b.appendChild(a),e.appendChild(b)):e.appendChild(a)}if(0!==a.length){var g=this.textContent.items,h=this.textDivs,
905
+ j=null,l=null===PDFFindController?!1:this.pageIdx===PDFFindController.selected.pageIdx,n=null===PDFFindController?-1:PDFFindController.selected.matchIdx,s={divIdx:-1,offset:void 0},t=n,w=t+1;if(null===PDFFindController?0:PDFFindController.state.highlightAll)t=0,w=a.length;else if(!l)return;for(;t<w;t++){var p=a[t],k=p.begin,p=p.end,q=l&&t===n,m=q?" selected":"";q&&!this.isViewerInPresentationMode&&scrollIntoView(h[k.divIdx],{top:FIND_SCROLL_OFFSET_TOP,left:FIND_SCROLL_OFFSET_LEFT});!j||k.divIdx!==
906
+ j.divIdx?(null!==j&&d(j,s),b(k)):d(j,k);if(k.divIdx===p.divIdx)d(k,p,"highlight"+m);else{d(k,s,"highlight begin"+m);for(j=k.divIdx+1;j<p.divIdx;j++)h[j].className="highlight middle"+m;b(p,"highlight end"+m)}j=p}j&&d(j,s)}};this.updateMatches=function(){if(this.renderingDone){for(var a=this.matches,b=this.textDivs,d=this.textContent.items,f=-1,g=0;g<a.length;g++){for(var h=a[g],f=Math.max(f,h.begin.divIdx);f<=h.end.divIdx;f++){var j=b[f];j.textContent=d[f].str;j.className=""}f=h.end.divIdx+1}null!==
907
+ PDFFindController&&PDFFindController.active&&(this.matches=this.convertMatches(null===PDFFindController?[]:PDFFindController.pageMatches[this.pageIdx]||[]),this.renderMatches(this.matches))}}},DocumentOutlineView=function(a){function b(a,b){a.href=PDFView.getDestinationHash(b.dest);a.onclick=function(){PDFView.navigateTo(b.dest);return!1}}for(var c=document.getElementById("outlineView");c.firstChild;)c.removeChild(c.firstChild);if(a)for(a=[{parent:c,items:a}];0<a.length;){var c=a.shift(),e,d=c.items.length;
908
+ for(e=0;e<d;e++){var f=c.items[e],g=document.createElement("div");g.className="outlineItem";var h=document.createElement("a");b(h,f);h.textContent=f.title;g.appendChild(h);0<f.items.length&&(h=document.createElement("div"),h.className="outlineItems",g.appendChild(h),a.push({parent:h,items:f.items}));c.parent.appendChild(g)}}else c.classList.contains("hidden")||PDFView.switchSidebarView("thumbs")},DocumentAttachmentsView=function(a){function b(a,b){a.href="#";a.onclick=function(){(new DownloadManager).downloadData(b.content,
909
+ getFileName(b.filename),"");return!1}}for(var c=document.getElementById("attachmentsView");c.firstChild;)c.removeChild(c.firstChild);if(a)for(var e=Object.keys(a).sort(function(a,b){return a.toLowerCase().localeCompare(b.toLowerCase())}),d=0,f=e.length;d<f;d++){var g=a[e[d]],h=document.createElement("div");h.className="attachmentsItem";var j=document.createElement("a");b(j,g);j.textContent=getFileName(g.filename);h.appendChild(j);c.appendChild(h)}else c.classList.contains("hidden")||PDFView.switchSidebarView("thumbs")};
910
+ function webViewerLoad(){PDFView.initialize().then(webViewerInitialized)}
911
+ function webViewerInitialized(){var a=PDFView.parseQueryString(document.location.search.substring(1)),a="file"in a?a.file:PDFJS.DEFAULT_URL,b=document.createElement("input");b.id="fileInput";b.className="fileInput";b.setAttribute("type","file");b.oncontextmenu=noContextMenuHandler;document.body.appendChild(b);!window.File||!window.FileReader||!window.FileList||!window.Blob?(document.getElementById("openFile").setAttribute("hidden","true"),document.getElementById("secondaryOpenFile").setAttribute("hidden",
912
+ "true")):document.getElementById("fileInput").value=null;b=document.location.hash.substring(1);b=PDFView.parseQueryString(b);"disableWorker"in b&&(PDFJS.disableWorker="true"===b.disableWorker);"disableRange"in b&&(PDFJS.disableRange="true"===b.disableRange);"disableAutoFetch"in b&&(PDFJS.disableAutoFetch="true"===b.disableAutoFetch);"disableFontFace"in b&&(PDFJS.disableFontFace="true"===b.disableFontFace);"disableHistory"in b&&(PDFJS.disableHistory="true"===b.disableHistory);"webgl"in b&&(PDFJS.disableWebGL=
913
+ "true"!==b.webgl);"useOnlyCssZoom"in b&&(USE_ONLY_CSS_ZOOM="true"===b.useOnlyCssZoom);"verbosity"in b&&(PDFJS.verbosity=b.verbosity|0);"ignoreCurrentPositionOnZoom"in b&&(IGNORE_CURRENT_POSITION_ON_ZOOM="true"===b.ignoreCurrentPositionOnZoom);var c=PDFJS.locale||navigator.language;"locale"in b&&(c=b.locale);mozL10n.setLanguage(c);if("textLayer"in b)switch(b.textLayer){case "off":PDFJS.disableTextLayer=!0;break;case "visible":case "shadow":case "hover":document.getElementById("viewer").classList.add("textLayer-"+
914
+ b.textLayer)}"pdfBug"in b&&(PDFJS.pdfBug=!0,b=b.pdfBug.split(","),PDFBug.enable(b),PDFBug.init());PDFView.supportsPrinting||(document.getElementById("print").classList.add("hidden"),document.getElementById("secondaryPrint").classList.add("hidden"));PDFView.supportsFullscreen||(document.getElementById("presentationMode").classList.add("hidden"),document.getElementById("secondaryPresentationMode").classList.add("hidden"));PDFView.supportsIntegratedFind&&document.getElementById("viewFind").classList.add("hidden");
915
+ PDFJS.UnsupportedManager.listen(PDFView.fallback.bind(PDFView));document.getElementById("scaleSelect").oncontextmenu=noContextMenuHandler;var e=document.getElementById("mainContainer"),d=document.getElementById("outerContainer");e.addEventListener("transitionend",function(a){a.target==e&&(a=document.createEvent("UIEvents"),a.initUIEvent("resize",!1,!1,window,0),window.dispatchEvent(a),d.classList.remove("sidebarMoving"))},!0);document.getElementById("sidebarToggle").addEventListener("click",function(){this.classList.toggle("toggled");
916
+ d.classList.add("sidebarMoving");d.classList.toggle("sidebarOpen");PDFView.sidebarOpen=d.classList.contains("sidebarOpen");PDFView.renderHighestPriority()});document.getElementById("viewThumbnail").addEventListener("click",function(){PDFView.switchSidebarView("thumbs")});document.getElementById("viewOutline").addEventListener("click",function(){PDFView.switchSidebarView("outline")});document.getElementById("viewAttachments").addEventListener("click",function(){PDFView.switchSidebarView("attachments")});
917
+ document.getElementById("previous").addEventListener("click",function(){PDFView.page--});document.getElementById("next").addEventListener("click",function(){PDFView.page++});document.getElementById("zoomIn").addEventListener("click",function(){PDFView.zoomIn()});document.getElementById("zoomOut").addEventListener("click",function(){PDFView.zoomOut()});document.getElementById("pageNumber").addEventListener("click",function(){this.select()});document.getElementById("pageNumber").addEventListener("change",
918
+ function(){PDFView.page=this.value|0;this.value!==(this.value|0).toString()&&(this.value=PDFView.page)});document.getElementById("scaleSelect").addEventListener("change",function(){PDFView.setScale(this.value)});document.getElementById("presentationMode").addEventListener("click",SecondaryToolbar.presentationModeClick.bind(SecondaryToolbar));document.getElementById("openFile").addEventListener("click",SecondaryToolbar.openFileClick.bind(SecondaryToolbar));document.getElementById("print").addEventListener("click",
919
+ SecondaryToolbar.printClick.bind(SecondaryToolbar));document.getElementById("download").addEventListener("click",SecondaryToolbar.downloadClick.bind(SecondaryToolbar));a&&PDFView.open(a,0)}document.addEventListener("DOMContentLoaded",webViewerLoad,!0);
920
+ function updateViewarea(){if(PDFView.initialized){var a=PDFView.getVisiblePages(),b=a.views;if(0!==b.length){PDFView.renderHighestPriority();for(var c=PDFView.page,a=a.first,e=0,d=b.length,f=!1;e<d;++e){var g=b[e];if(100>g.percent)break;if(g.id===PDFView.page){f=!0;break}}f||(c=b[0].id);PresentationMode.active||(updateViewarea.inProgress=!0,PDFView.page=c,updateViewarea.inProgress=!1);var b=PDFView.currentScale,c=PDFView.currentScaleValue,h=parseFloat(c)===b?Math.round(1E4*b)/100:c,j=a.id,b="#page="+
921
+ j+("&zoom="+h),c=PDFView.container,a=PDFView.pages[j-1].getPagePoint(c.scrollLeft-a.x,c.scrollTop-a.y),l=Math.round(a[0]),n=Math.round(a[1]),b=b+(","+l+","+n);PDFView.currentPosition=PresentationMode.active||PresentationMode.switchInProgress?null:{page:j,left:l,top:n};var s=PDFView.store;s.initializedPromise.then(function(){s.set("exists",!0);s.set("page",j);s.set("zoom",h);s.set("scrollLeft",l);s.set("scrollTop",n)});a=PDFView.getAnchorUrl(b);document.getElementById("viewBookmark").href=a;document.getElementById("secondaryViewBookmark").href=
922
+ a;PDFHistory.updateCurrentBookmark(b,j)}}}window.addEventListener("resize",function(){PDFView.initialized&&(document.getElementById("pageWidthOption").selected||document.getElementById("pageFitOption").selected||document.getElementById("pageAutoOption").selected)&&PDFView.setScale(document.getElementById("scaleSelect").value);updateViewarea();SecondaryToolbar.setMaxHeight(PDFView.container)});window.addEventListener("hashchange",function(){PDFHistory.isHashChangeUnlocked&&PDFView.setHash(document.location.hash.substring(1))});
923
+ window.addEventListener("change",function(a){if((a=a.target.files)&&0!==a.length){a=a[0];if(!PDFJS.disableCreateObjectURL&&"undefined"!==typeof URL&&URL.createObjectURL)PDFView.open(URL.createObjectURL(a),0);else{var b=new FileReader;b.onload=function(a){a=new Uint8Array(a.target.result);PDFView.open(a,0)};b.readAsArrayBuffer(a)}PDFView.setTitleUsingUrl(a.name);document.getElementById("viewBookmark").setAttribute("hidden","true");document.getElementById("secondaryViewBookmark").setAttribute("hidden",
924
+ "true");document.getElementById("download").setAttribute("hidden","true");document.getElementById("secondaryDownload").setAttribute("hidden","true")}},!0);function selectScaleOption(a){for(var b=document.getElementById("scaleSelect").options,c=!1,e=0;e<b.length;e++){var d=b[e];d.value!=a?d.selected=!1:c=d.selected=!0}return c}
925
+ window.addEventListener("localized",function(){document.getElementsByTagName("html")[0].dir=mozL10n.getDirection();PDFView.animationStartedPromise.then(function(){var a=document.getElementById("scaleSelectContainer");if(0<a.clientWidth){var b=document.getElementById("scaleSelect");b.setAttribute("style","min-width: inherit;");var c=b.clientWidth+SCALE_SELECT_CONTAINER_PADDING;b.setAttribute("style","min-width: "+(c+SCALE_SELECT_PADDING)+"px;");a.setAttribute("style","min-width: "+c+"px; max-width: "+
926
+ c+"px;")}SecondaryToolbar.setMaxHeight(PDFView.container)})},!0);
927
+ window.addEventListener("scalechange",function(a){document.getElementById("zoomOut").disabled=a.scale===MIN_SCALE;document.getElementById("zoomIn").disabled=a.scale===MAX_SCALE;var b=document.getElementById("customScaleOption");b.selected=!1;if((a.resetAutoSettings||!document.getElementById("pageWidthOption").selected&&!document.getElementById("pageFitOption").selected&&!document.getElementById("pageAutoOption").selected)&&!selectScaleOption(""+a.scale))b.textContent=Math.round(1E4*a.scale)/100+"%",
928
+ b.selected=!0;updateViewarea()},!0);
929
+ window.addEventListener("pagechange",function(a){a=a.pageNumber;if(PDFView.previousPageNumber!==a){document.getElementById("pageNumber").value=a;var b=document.querySelector(".thumbnail.selected");b&&b.classList.remove("selected");b=document.getElementById("thumbnailContainer"+a);b.classList.add("selected");var c=PDFView.getVisibleThumbs(),e=c.views.length;if(0<e){var d=c.first.id,c=1<e?c.last.id:d;(a<=d||a>=c)&&scrollIntoView(b,{top:THUMBNAIL_SCROLL_MARGIN})}}document.getElementById("previous").disabled=1>=
930
+ a;document.getElementById("next").disabled=a>=PDFView.pages.length},!0);function handleMouseWheel(a){var b="DOMMouseScroll"===a.type?-a.detail:a.wheelDelta/40,c=0>b?"zoomOut":"zoomIn";a.ctrlKey?(a.preventDefault(),PDFView[c](Math.abs(b))):PresentationMode.active&&PDFView.mouseScroll(40*b)}window.addEventListener("DOMMouseScroll",handleMouseWheel);window.addEventListener("mousewheel",handleMouseWheel);
931
+ window.addEventListener("click",function(a){PresentationMode.active?0===a.button&&a.preventDefault():SecondaryToolbar.opened&&PDFView.container.contains(a.target)&&SecondaryToolbar.close()},!1);
932
+ window.addEventListener("keydown",function(a){if(!PasswordPrompt.visible){var b=!1,c=(a.ctrlKey?1:0)|(a.altKey?2:0)|(a.shiftKey?4:0)|(a.metaKey?8:0);if(1===c||8===c||5===c||12===c)switch(a.keyCode){case 70:PDFView.supportsIntegratedFind||(PDFFindBar.open(),b=!0);break;case 71:PDFView.supportsIntegratedFind||(PDFFindBar.dispatchEvent("again",5===c||12===c),b=!0);break;case 61:case 107:case 187:case 171:PDFView.zoomIn();b=!0;break;case 173:case 109:case 189:PDFView.zoomOut();b=!0;break;case 48:case 96:setTimeout(function(){PDFView.setScale(DEFAULT_SCALE,
933
+ !0)}),b=!1}if(1===c||8===c)switch(a.keyCode){case 83:PDFView.download(),b=!0}if(3===c||10===c)switch(a.keyCode){case 80:SecondaryToolbar.presentationModeClick();b=!0;break;case 71:document.getElementById("pageNumber").select(),b=!0}if(b)a.preventDefault();else{var e=document.activeElement||document.querySelector(":focus"),d=e&&e.tagName.toUpperCase();if(!(("INPUT"===d||"TEXTAREA"===d||"SELECT"===d)&&27!==a.keyCode)){if(0===c)switch(a.keyCode){case 38:case 33:case 8:if(!PresentationMode.active&&"page-fit"!==
934
+ PDFView.currentScaleValue)break;case 37:if(PDFView.isHorizontalScrollbarEnabled)break;case 75:case 80:PDFView.page--;b=!0;break;case 27:SecondaryToolbar.opened&&(SecondaryToolbar.close(),b=!0);!PDFView.supportsIntegratedFind&&PDFFindBar.opened&&(PDFFindBar.close(),b=!0);break;case 40:case 34:case 32:if(!PresentationMode.active&&"page-fit"!==PDFView.currentScaleValue)break;case 39:if(PDFView.isHorizontalScrollbarEnabled)break;case 74:case 78:PDFView.page++;b=!0;break;case 36:PresentationMode.active&&
935
+ (PDFView.page=1,b=!0);break;case 35:PresentationMode.active&&(PDFView.page=PDFView.pdfDocument.numPages,b=!0);break;case 72:PresentationMode.active||HandTool.toggle();break;case 82:PDFView.rotatePages(90)}if(4===c)switch(a.keyCode){case 32:if(!PresentationMode.active&&"page-fit"!==PDFView.currentScaleValue)break;PDFView.page--;b=!0;break;case 82:PDFView.rotatePages(-90)}!b&&!PresentationMode.active&&(33<=a.keyCode&&(40>=a.keyCode&&!PDFView.container.contains(e))&&PDFView.container.focus(),32===a.keyCode&&
936
+ "BUTTON"!==d&&(PDFView.container.contains(e)||PDFView.container.focus()));if(2===c)switch(a.keyCode){case 37:PresentationMode.active&&(PDFHistory.back(),b=!0);break;case 39:PresentationMode.active&&(PDFHistory.forward(),b=!0)}b&&(a.preventDefault(),PDFView.clearMouseScrollState())}}}});window.addEventListener("beforeprint",function(){PDFView.beforePrint()});window.addEventListener("afterprint",function(){PDFView.afterPrint()});
937
+ (function(){var a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){a()};PDFView.animationStartedPromise=new Promise(function(b){a(function(){b()})})})();