@esri/solutions-components 1.2.0-next.36 → 1.2.0-next.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/dist/cdn/{XV2IGLBP.js → 257IN2Y7.js} +2 -2
  2. package/dist/cdn/{PWGMPJVE.js → 2C5FGXWX.js} +2 -2
  3. package/dist/cdn/{J3LRKRVW.js → 2CFCHSK4.js} +2 -2
  4. package/dist/cdn/{H4RPI5KH.js → 2FVNCWOA.js} +1 -1
  5. package/dist/cdn/{2O2W2NU3.js → 2G2ABE73.js} +2 -2
  6. package/dist/cdn/{RQPSEMA5.js → 2NNDBF2P.js} +2 -2
  7. package/dist/cdn/{W543I53E.js → 2S4CUMJ6.js} +2 -2
  8. package/dist/cdn/2URTN7IK.js +4 -0
  9. package/dist/cdn/{PMBL2YWY.js → 2V3UNNU7.js} +2 -2
  10. package/dist/cdn/{244RXEGA.js → 2VIWSK5N.js} +2 -2
  11. package/dist/cdn/{SV2GIM3O.js → 2WW2IBRS.js} +2 -2
  12. package/dist/cdn/{PZJ4WJCC.js → 2YFZHBS2.js} +2 -2
  13. package/dist/cdn/{6WUTCKUS.js → 2ZCD4CM4.js} +2 -2
  14. package/dist/cdn/{OMJUWUUB.js → 346L7JFF.js} +2 -2
  15. package/dist/cdn/{DCDQXCEW.js → 3AS7DRIH.js} +2 -2
  16. package/dist/cdn/3E3XNLNE.js +4 -0
  17. package/dist/cdn/{BOUPPLSK.js → 3G43FIE4.js} +2 -2
  18. package/dist/cdn/{OQ2RXIBK.js → 3GO45KNW.js} +2 -2
  19. package/dist/cdn/{RPSJTK5M.js → 3NUWB5RM.js} +1 -1
  20. package/dist/cdn/{42QDQ5VQ.js → 3SLRUFJF.js} +1 -1
  21. package/dist/cdn/{DF7YQZN7.js → 3THQWD5C.js} +2 -2
  22. package/dist/cdn/{IN2SUHMY.js → 3UVFR5IX.js} +2 -2
  23. package/dist/cdn/{HJBMLV5A.js → 3XFCRB5B.js} +2 -2
  24. package/dist/cdn/{S7KE2J5V.js → 42HD4LS6.js} +1 -1
  25. package/dist/cdn/4E2MMS3U.js +4 -0
  26. package/dist/cdn/{PQ4QWNFM.js → 4FLD2OM6.js} +2 -2
  27. package/dist/cdn/{N5KN67CA.js → 4GYMMLH6.js} +2 -2
  28. package/dist/cdn/{WPZK2AFI.js → 4I3JSUFW.js} +2 -2
  29. package/dist/cdn/{PJNRXEFB.js → 4QFRPNLX.js} +2 -2
  30. package/dist/cdn/{EOC2KGE5.js → 4RXQVCM4.js} +2 -2
  31. package/dist/cdn/{M5JXQYZX.js → 4SUQ4Y5C.js} +2 -2
  32. package/dist/cdn/{LK2PA4RA.js → 4TQAEHIB.js} +2 -2
  33. package/dist/cdn/{PXPFZYRT.js → 4VPZBQBA.js} +2 -2
  34. package/dist/cdn/{ONJKWBPH.js → 4XOMPXB5.js} +2 -2
  35. package/dist/cdn/{YS3R5BP6.js → 4ZIUJEHS.js} +2 -2
  36. package/dist/cdn/{YL6LABKD.js → 52BQUP6R.js} +2 -2
  37. package/dist/cdn/{34DMII7N.js → 54GRIGGQ.js} +2 -2
  38. package/dist/cdn/{SSW3VWLW.js → 5CWOJPPE.js} +2 -2
  39. package/dist/cdn/{SV4ECPNN.js → 5EIIYAAT.js} +2 -2
  40. package/dist/cdn/{AAPAHZUP.js → 5FV2XMJF.js} +2 -2
  41. package/dist/cdn/{RRYWTOU5.js → 5I6COHGY.js} +2 -2
  42. package/dist/cdn/{W5HT6A25.js → 5S76KEEY.js} +2 -2
  43. package/dist/cdn/{L27V47EG.js → 5VXJZOZ7.js} +1 -1
  44. package/dist/cdn/{WOU6FLTZ.js → 5ZKEC6XH.js} +2 -2
  45. package/dist/cdn/{NIRR6ZET.js → 5ZPJI3ZK.js} +2 -2
  46. package/dist/cdn/{HUQIJUI2.js → 63GW76E5.js} +2 -2
  47. package/dist/cdn/{UI24G3G4.js → 6AL3SUJ7.js} +1 -1
  48. package/dist/cdn/{CZA5RUSV.js → 6AVYFAZV.js} +2 -2
  49. package/dist/cdn/{BHJQJ6MW.js → 6BIOYD3L.js} +2 -2
  50. package/dist/cdn/{VXI42MJT.js → 6LN7UVH2.js} +2 -2
  51. package/dist/cdn/{JD4UQGGO.js → 6M262WHD.js} +2 -2
  52. package/dist/cdn/{UH3GA2FN.js → 6P5XL7WJ.js} +1 -1
  53. package/dist/cdn/{4TV6IRUY.js → 6R2SPDYG.js} +2 -2
  54. package/dist/cdn/{I4CGNHTP.js → 6UTJ3QVT.js} +2 -2
  55. package/dist/cdn/{2H2WB4KZ.js → 6XU3AT25.js} +2 -2
  56. package/dist/cdn/{23HTAE5I.js → 72Y7V4E2.js} +2 -2
  57. package/dist/cdn/{UJW6H6DL.js → 7F357E22.js} +2 -2
  58. package/dist/cdn/{OBPEH67H.js → 7FK4VFH2.js} +2 -2
  59. package/dist/cdn/{ENXK3HHH.js → 7FKJLGII.js} +1 -1
  60. package/dist/cdn/{MUJNB3F4.js → 7FMJ2FWK.js} +2 -2
  61. package/dist/cdn/{3QRNVWS2.js → 7GDAM2DS.js} +2 -2
  62. package/dist/cdn/{DDKIV7TV.js → 7HPHZT6D.js} +2 -2
  63. package/dist/cdn/{G6ZLQOSO.js → 7J273U2Z.js} +2 -2
  64. package/dist/cdn/{BKZR25KY.js → 7KDZOGN2.js} +2 -2
  65. package/dist/cdn/{TAWG2H7N.js → 7M2QY7IT.js} +2 -2
  66. package/dist/cdn/{F2TOWMD2.js → 7MPALAN6.js} +2 -2
  67. package/dist/cdn/{XF7HSJP2.js → 7RLXHVA4.js} +2 -2
  68. package/dist/cdn/{X5FRH7BP.js → 7RVECVHK.js} +1 -1
  69. package/dist/cdn/{TI3L62O2.js → 7UZHDBXH.js} +2 -2
  70. package/dist/cdn/{PLXLFLCZ.js → 7WCVPKVP.js} +2 -2
  71. package/dist/cdn/{LB4GDLVJ.js → A5QZXDV6.js} +2 -2
  72. package/dist/cdn/{CDOEMLLK.js → ADFQUVVN.js} +2 -2
  73. package/dist/cdn/{E4HPTQ7J.js → ADQP7YJE.js} +2 -2
  74. package/dist/cdn/{BWJOSUY4.js → AFOLBBYS.js} +1 -1
  75. package/dist/cdn/{5IED5QMU.js → ATG5EGOY.js} +2 -2
  76. package/dist/cdn/{5ZZN7PW2.js → ATKAVXFK.js} +2 -2
  77. package/dist/cdn/{GFLRHIDT.js → AU5ROKBM.js} +2 -2
  78. package/dist/cdn/{2HJZGEVZ.js → AVSW6FTW.js} +2 -2
  79. package/dist/cdn/{ZO54IOQ5.js → AXGUYSFJ.js} +1 -1
  80. package/dist/cdn/{FOYUAF64.js → B3NUH64R.js} +2 -2
  81. package/dist/cdn/B5ZLDAFW.js +4 -0
  82. package/dist/cdn/{VOXPIWX5.js → B7HIGUVX.js} +2 -2
  83. package/dist/cdn/{DWLQKH6C.js → BFSNJ2EB.js} +2 -2
  84. package/dist/cdn/{LCDI7T2O.js → BI2ROVDZ.js} +2 -2
  85. package/dist/cdn/{ZWKVOBYN.js → BK6RBWAX.js} +2 -2
  86. package/dist/cdn/{42LDZSMU.js → BNQZVMZV.js} +2 -2
  87. package/dist/cdn/{PYATSHXN.js → BO7ZX6VY.js} +2 -2
  88. package/dist/cdn/BQOV6FU7.js +4 -0
  89. package/dist/cdn/{C37WRO3P.js → BR6B4ITF.js} +2 -2
  90. package/dist/cdn/{DC7PV4XT.js → BRKXHNDD.js} +2 -2
  91. package/dist/cdn/{Z5UHD4GT.js → BS4IA6YE.js} +2 -2
  92. package/dist/cdn/{WG3VND53.js → BT7ZFQNB.js} +2 -2
  93. package/dist/cdn/{PQFMO22L.js → BUUMWQBX.js} +2 -2
  94. package/dist/cdn/{R2ZCVJPN.js → BVCCL4VB.js} +2 -2
  95. package/dist/cdn/{GCVLI24K.js → BWSH4VJG.js} +2 -2
  96. package/dist/cdn/{KQKQSHSX.js → C2KTBBG3.js} +2 -2
  97. package/dist/cdn/{P53BXD7Y.js → CB6PV55L.js} +1 -1
  98. package/dist/cdn/{LHIIJAKV.js → CBM5SVKV.js} +2 -2
  99. package/dist/cdn/{OUTED4C5.js → CHKPF4ST.js} +2 -2
  100. package/dist/cdn/{IFQ3P6AF.js → CHLMBFRA.js} +2 -2
  101. package/dist/cdn/{3EN4PKIM.js → CJ2U26E2.js} +2 -2
  102. package/dist/cdn/{G5TR6JMD.js → CR7TX2QF.js} +2 -2
  103. package/dist/cdn/{Y3CKBF7X.js → CS47PCEA.js} +2 -2
  104. package/dist/cdn/{G5CD7BTL.js → CSMA4TNL.js} +2 -2
  105. package/dist/cdn/{2KSD3UXO.js → CT65UGZZ.js} +2 -2
  106. package/dist/cdn/{DBP7IP6M.js → CU2DHBCR.js} +2 -2
  107. package/dist/cdn/{TJKI4GRU.js → CV4LFUGW.js} +2 -2
  108. package/dist/cdn/{I7S3B6H3.js → D3H7O3WT.js} +2 -2
  109. package/dist/cdn/{Y7VUJGXM.js → D3IGXOOQ.js} +2 -2
  110. package/dist/cdn/{AVPLP7ZI.js → D6UXUVO3.js} +2 -2
  111. package/dist/cdn/{4GUZKWVM.js → DDWZNUZS.js} +2 -2
  112. package/dist/cdn/DKNKBHHW.js +4 -0
  113. package/dist/cdn/{54M7NJOL.js → DLRWOKNV.js} +1 -1
  114. package/dist/cdn/{VNS3DUU4.js → DN274VMS.js} +2 -2
  115. package/dist/cdn/{RLB365JJ.js → DOEIBRNL.js} +2 -2
  116. package/dist/cdn/{VJE4JS66.js → DQBLQ47Q.js} +2 -2
  117. package/dist/cdn/{RSREUBNY.js → E3GIRPSF.js} +2 -2
  118. package/dist/cdn/{JL2MLSKL.js → E6B2EFTX.js} +2 -2
  119. package/dist/cdn/{D7LH4V3B.js → E6HHYNLI.js} +2 -2
  120. package/dist/cdn/{AIPVKNHS.js → EAOAVR6T.js} +1 -1
  121. package/dist/cdn/{ZLZMRYXX.js → EAYM2DXQ.js} +2 -2
  122. package/dist/cdn/{LJ74FE6N.js → EDPD3UVF.js} +2 -2
  123. package/dist/cdn/{44G3RHY4.js → EFP3DQ4F.js} +2 -2
  124. package/dist/cdn/{QU5ATLIB.js → EGCQTWVW.js} +2 -2
  125. package/dist/cdn/EITZ2CS3.js +4 -0
  126. package/dist/cdn/{7IFGU4MV.js → ELZIA2CM.js} +2 -2
  127. package/dist/cdn/{WBWJTPEP.js → ERLOTZSB.js} +2 -2
  128. package/dist/cdn/{LUL7DSAW.js → EYHCDLYW.js} +2 -2
  129. package/dist/cdn/{3YYAUNS4.js → EYVEIIH4.js} +2 -2
  130. package/dist/cdn/{KC4A24UN.js → F27UHK4B.js} +2 -2
  131. package/dist/cdn/F3BCCICK.js +4 -0
  132. package/dist/cdn/{34XGROFY.js → FE5VQVFH.js} +2 -2
  133. package/dist/cdn/{BDEDA3AX.js → FGDLOFSV.js} +2 -2
  134. package/dist/cdn/{D6PCIBOA.js → FHJNTOFV.js} +2 -2
  135. package/dist/cdn/{N77RMMDH.js → FRRL3VOX.js} +1 -1
  136. package/dist/cdn/{3XROL3RZ.js → FS7WUCPO.js} +2 -2
  137. package/dist/cdn/{TWLHPOMN.js → FT3RIOQX.js} +2 -2
  138. package/dist/cdn/{MO3V6PQG.js → FTUW735F.js} +2 -2
  139. package/dist/cdn/{3BETXZ7F.js → G3GLPOZS.js} +2 -2
  140. package/dist/cdn/G4FU3A4M.js +4 -0
  141. package/dist/cdn/{35FRLPS2.js → G7NP2JQ4.js} +2 -2
  142. package/dist/cdn/{F7USI4Y5.js → GEZUMFPM.js} +2 -2
  143. package/dist/cdn/{QV7XK3T3.js → GIVX5Y3H.js} +2 -2
  144. package/dist/cdn/{D5Y5TINJ.js → GJPI4XR6.js} +2 -2
  145. package/dist/cdn/{Q3TEJ3Z5.js → GSFEYQ47.js} +2 -2
  146. package/dist/cdn/GTIEVTDP.js +4 -0
  147. package/dist/cdn/{WOUE7GI2.js → GUJB6YZW.js} +2 -2
  148. package/dist/cdn/{X3LRUHMV.js → GUQWOX4S.js} +2 -2
  149. package/dist/cdn/{MSREPAOC.js → GXSPICDV.js} +2 -2
  150. package/dist/cdn/{6NDC3I27.js → HCZI2WKF.js} +2 -2
  151. package/dist/cdn/{GUYX3BPN.js → HFOMSGRE.js} +1 -1
  152. package/dist/cdn/{A3UJZB64.js → HL6K2YTH.js} +1 -1
  153. package/dist/cdn/{KDUY27LR.js → HNJAS7WK.js} +2 -2
  154. package/dist/cdn/{6TIDRICL.js → HODFZHIN.js} +2 -2
  155. package/dist/cdn/{R42S6CM3.js → HQKTE42T.js} +2 -2
  156. package/dist/cdn/{NLD5MEGC.js → HQRDNTWE.js} +2 -2
  157. package/dist/cdn/{WT2QZWOV.js → HUJMUYZW.js} +2 -2
  158. package/dist/cdn/{QSZGEST4.js → HXWIK2J4.js} +2 -2
  159. package/dist/cdn/{3S6QKHUP.js → HXZTDQXD.js} +2 -2
  160. package/dist/cdn/{NETWC5CZ.js → HZLKBLEE.js} +2 -2
  161. package/dist/cdn/{E65DNCQN.js → I35FFKSE.js} +2 -2
  162. package/dist/cdn/{GCIEVFL3.js → I37J6DPD.js} +2 -2
  163. package/dist/cdn/I5ZHI4XU.js +4 -0
  164. package/dist/cdn/{6WJOQL3Y.js → IABD5DDD.js} +1 -1
  165. package/dist/cdn/{TZKGHEXL.js → IAGMSUVF.js} +2 -2
  166. package/dist/cdn/{LCONUGGY.js → IDRZXFTP.js} +2 -2
  167. package/dist/cdn/{CS4XNBZY.js → IE2W2C7Q.js} +2 -2
  168. package/dist/cdn/{UVJJZHST.js → IIAM5HPA.js} +2 -2
  169. package/dist/cdn/{YBYMC56N.js → IKCC43KY.js} +2 -2
  170. package/dist/cdn/{JNIXNQYY.js → ISXAN7ZH.js} +2 -2
  171. package/dist/cdn/{IITC2O3I.js → J5O77MX2.js} +2 -2
  172. package/dist/cdn/{BGPXEHDN.js → J7FL27H5.js} +2 -2
  173. package/dist/cdn/{CDD2LMWU.js → JAWTCH7J.js} +2 -2
  174. package/dist/cdn/{RVPU3RIJ.js → JB5XMXNY.js} +2 -2
  175. package/dist/cdn/{CWDQ7WWY.js → JI5ONG3N.js} +2 -2
  176. package/dist/cdn/{3552LPSF.js → JK22HA3B.js} +2 -2
  177. package/dist/cdn/{IA5JJEV5.js → JKUVQVLV.js} +2 -2
  178. package/dist/cdn/{L2YPNZXW.js → JQWD63ZZ.js} +2 -2
  179. package/dist/cdn/{PVIREEJG.js → JRN4Y3DV.js} +2 -2
  180. package/dist/cdn/JRSTXHPR.js +4 -0
  181. package/dist/cdn/{7Y6VTZKG.js → JU6AXC47.js} +2 -2
  182. package/dist/cdn/{XYOKCAD4.js → JUPJVTUF.js} +2 -2
  183. package/dist/cdn/{5QJ3THQG.js → JVFEGKQM.js} +2 -2
  184. package/dist/cdn/JWKFCKTE.js +4 -0
  185. package/dist/cdn/{YJEGAHFT.js → K7FVHROV.js} +2 -2
  186. package/dist/cdn/{6VIJ4LBZ.js → KMHXK4ZM.js} +2 -2
  187. package/dist/cdn/{PVGXDFNL.js → KNAJV2HV.js} +1 -1
  188. package/dist/cdn/{5O3SEUDU.js → KP2FDI6M.js} +2 -2
  189. package/dist/cdn/{K43DBBW4.js → KQP3AJSX.js} +2 -2
  190. package/dist/cdn/{37V3FNO4.js → KTDUECNM.js} +2 -2
  191. package/dist/cdn/{LHA4PAES.js → KTF7FHOK.js} +2 -2
  192. package/dist/cdn/{TMVP7LNK.js → KTL5I4N7.js} +2 -2
  193. package/dist/cdn/{T3B6PKRU.js → KUVT55JS.js} +2 -2
  194. package/dist/cdn/{CKR4ILFQ.js → KWOEGN35.js} +1 -1
  195. package/dist/cdn/{UZKHHSTK.js → L2ALHN3Q.js} +2 -2
  196. package/dist/cdn/{A2Q2YORJ.js → L476FYEM.js} +2 -2
  197. package/dist/cdn/{K4ZTL2DK.js → L6WLCH4N.js} +2 -2
  198. package/dist/cdn/{ZJMJ23OX.js → LAY7ZOKS.js} +2 -2
  199. package/dist/cdn/{DTT35FQQ.js → LB2XKIGA.js} +2 -2
  200. package/dist/cdn/{MYK56AJS.js → LDIJEGEK.js} +2 -2
  201. package/dist/cdn/{WNKXBPPW.js → LFI2BBTH.js} +2 -2
  202. package/dist/cdn/{7Y3H7S5L.js → LFMHNEYC.js} +1 -1
  203. package/dist/cdn/{74O2VGQY.js → LKNLPOAI.js} +2 -2
  204. package/dist/cdn/{CDUB7TYI.js → LLCTMEH5.js} +2 -2
  205. package/dist/cdn/{EZMBY5KX.js → LS5JUMF2.js} +2 -2
  206. package/dist/cdn/{VRMTIZHH.js → LY5OQBIC.js} +2 -2
  207. package/dist/cdn/{HF4SVQ4Q.js → M3NGPH7I.js} +2 -2
  208. package/dist/cdn/{BHKAKENR.js → M432DZB4.js} +2 -2
  209. package/dist/cdn/{RGXDJ5BV.js → MABCGF2C.js} +2 -2
  210. package/dist/cdn/{SC5CW7PK.js → MMGVDNX3.js} +2 -2
  211. package/dist/cdn/MSCBFODL.js +4 -0
  212. package/dist/cdn/{WMNMRAKM.js → MT7UVLPM.js} +1 -1
  213. package/dist/cdn/{D35Z7IMN.js → MTGSCLQC.js} +2 -2
  214. package/dist/cdn/{FANO4JUP.js → MWG5ET2L.js} +2 -2
  215. package/dist/cdn/{YIO7KZ3P.js → NEW2IQIA.js} +2 -2
  216. package/dist/cdn/{DEXLO2RI.js → NOWWYKDM.js} +2 -2
  217. package/dist/cdn/{SVCX4I5O.js → NP6KZHON.js} +1 -1
  218. package/dist/cdn/{PAYT7DEM.js → NS7SRMXC.js} +2 -2
  219. package/dist/cdn/{EZYR4234.js → NT75NL4Z.js} +2 -2
  220. package/dist/cdn/{N77NT5AI.js → NYPKBBU6.js} +2 -2
  221. package/dist/cdn/{T6IB4I4Q.js → O2ICET7S.js} +2 -2
  222. package/dist/cdn/{WZOSPO7S.js → O5ZV3UHV.js} +2 -2
  223. package/dist/cdn/{GE4MSKXM.js → O6I27TPU.js} +2 -2
  224. package/dist/cdn/{O7WN7VAE.js → OBCSQFUM.js} +2 -2
  225. package/dist/cdn/{LGDPUOS3.js → OBV4IKG7.js} +2 -2
  226. package/dist/cdn/{G5B6ZH2N.js → OEKIR5CI.js} +2 -2
  227. package/dist/cdn/{UBOJ5JBB.js → OIQDGNWH.js} +2 -2
  228. package/dist/cdn/{6MA3AR2M.js → OKOUAIZU.js} +2 -2
  229. package/dist/cdn/{MA73XVFM.js → ONETA4IZ.js} +2 -2
  230. package/dist/cdn/{H2HLDEGZ.js → OQXK6IER.js} +2 -2
  231. package/dist/cdn/OS4RG5NL.js +4 -0
  232. package/dist/cdn/{UQI3SRDR.js → OSMJZYZ7.js} +1 -1
  233. package/dist/cdn/{2YRU3DLC.js → OXJR6CYO.js} +2 -2
  234. package/dist/cdn/{OSLXN3DY.js → OYTIM3XA.js} +2 -2
  235. package/dist/cdn/{LWHNDD5C.js → OZQZ44E4.js} +2 -2
  236. package/dist/cdn/{5VKI3QX7.js → P55VR6Q3.js} +2 -2
  237. package/dist/cdn/{F6BFXLRE.js → P6AMX4QY.js} +2 -2
  238. package/dist/cdn/{4LN5QMNX.js → P7CEQW6U.js} +2 -2
  239. package/dist/cdn/{X2FWC2KS.js → P7S5ARVM.js} +2 -2
  240. package/dist/cdn/{NGRGIKW6.js → PCHNZS5N.js} +2 -2
  241. package/dist/cdn/{XOPEBZUB.js → PDDHE2GA.js} +1 -1
  242. package/dist/cdn/{VGQPU2SO.js → PE4LAJPJ.js} +2 -2
  243. package/dist/cdn/{2GJMMFXR.js → PGYCKBKP.js} +2 -2
  244. package/dist/cdn/{SFIPH276.js → PLY5ZJ2G.js} +2 -2
  245. package/dist/cdn/{3FCAFAE5.js → PMHRJNJ4.js} +2 -2
  246. package/dist/cdn/{TEXI2YTW.js → PO62H53X.js} +2 -2
  247. package/dist/cdn/{NZEVRZPB.js → PT3L2R7W.js} +2 -2
  248. package/dist/cdn/{2EZ7DZUT.js → PYSKXKFD.js} +2 -2
  249. package/dist/cdn/{QUABCIVP.js → PZ4WDEBE.js} +2 -2
  250. package/dist/cdn/{VAZV5FA4.js → Q6TPFBCR.js} +2 -2
  251. package/dist/cdn/{I3WVEU6H.js → QM2GKBRK.js} +2 -2
  252. package/dist/cdn/{2DKI6M7P.js → QNKMSTXV.js} +2 -2
  253. package/dist/cdn/{7QL6VNX4.js → QOUDGHEQ.js} +2 -2
  254. package/dist/cdn/{OMY54HOU.js → QV57KIBB.js} +2 -2
  255. package/dist/cdn/{7W5WWYFS.js → QW6XVBWW.js} +2 -2
  256. package/dist/cdn/{J46BXWWB.js → QXETJSDH.js} +2 -2
  257. package/dist/cdn/{GR7OX4OI.js → R2AXNE5Z.js} +2 -2
  258. package/dist/cdn/{YTGSQNVN.js → R2HBEQY2.js} +2 -2
  259. package/dist/cdn/R5KCWF5H.js +4 -0
  260. package/dist/cdn/{LOQEU5DK.js → RBC7LZTC.js} +2 -2
  261. package/dist/cdn/{ZSDRAUIY.js → RBIWPS7B.js} +2 -2
  262. package/dist/cdn/{O35KKMIS.js → RL3QIEW2.js} +2 -2
  263. package/dist/cdn/{OYHPL75U.js → RQNFXST6.js} +2 -2
  264. package/dist/cdn/{XOASBL3N.js → RVDRIXX3.js} +1 -1
  265. package/dist/cdn/{37SDNF4S.js → RW6HUZEM.js} +2 -2
  266. package/dist/cdn/{HAAEFOHS.js → S2ABHEPA.js} +2 -2
  267. package/dist/cdn/{3PHPEP7P.js → S6KVE7T5.js} +2 -2
  268. package/dist/cdn/{BIYGRSHD.js → SC6DO2EX.js} +2 -2
  269. package/dist/cdn/{I5CXVTY4.js → SFOL7GYB.js} +2 -2
  270. package/dist/cdn/{5MR4JY5B.js → SGX3472W.js} +1 -1
  271. package/dist/cdn/{TQIKYULQ.js → SNGQJER3.js} +2 -2
  272. package/dist/cdn/{HAMS6EKH.js → SQUI6CTW.js} +2 -2
  273. package/dist/cdn/{LP2IWQMP.js → SUEANLGQ.js} +2 -2
  274. package/dist/cdn/{7ACBTKHJ.js → SUYX6UMX.js} +2 -2
  275. package/dist/cdn/SX45AEWP.js +4 -0
  276. package/dist/cdn/{GOJ7FK35.js → SXHVTYP6.js} +2 -2
  277. package/dist/cdn/{P3EAUNB5.js → T4JA6UEK.js} +2 -2
  278. package/dist/cdn/{SNKIPYKJ.js → T52O6LAG.js} +2 -2
  279. package/dist/cdn/{ORAX6YNO.js → T72P36C5.js} +1 -1
  280. package/dist/cdn/{EF523R2H.js → TEFQ3LAP.js} +3 -3
  281. package/dist/cdn/{EJLAJI4L.js → TEIQ4T2N.js} +2 -2
  282. package/dist/cdn/{42RKSNH3.js → TFG462JL.js} +2 -2
  283. package/dist/cdn/{6EKNTPEK.js → TFS5OJFO.js} +2 -2
  284. package/dist/cdn/{BZAC3QL4.js → TWBBIAHJ.js} +2 -2
  285. package/dist/cdn/{ACQA2N2E.js → TWTE6ANP.js} +2 -2
  286. package/dist/cdn/{XH64E5XC.js → TY7S3RXU.js} +2 -2
  287. package/dist/cdn/{NNN4HBSB.js → TYXANF4L.js} +2 -2
  288. package/dist/cdn/{FBRXTXUK.js → U2YRPNFE.js} +2 -2
  289. package/dist/cdn/{K5AMEHMK.js → U7LWEUY7.js} +2 -2
  290. package/dist/cdn/{N6ZWQ3VM.js → UGOKUTLP.js} +2 -2
  291. package/dist/cdn/{GDUUP3AM.js → UI6IX36Q.js} +2 -2
  292. package/dist/cdn/{IOS4WX4U.js → UP3SPGCQ.js} +2 -2
  293. package/dist/cdn/{H5PHKY2S.js → URUSIM7Q.js} +2 -2
  294. package/dist/cdn/{YUDHHDDQ.js → UX4CN3RL.js} +2 -2
  295. package/dist/cdn/{IEECPLIQ.js → UYOLR3HI.js} +2 -2
  296. package/dist/cdn/{ET7J46A7.js → UYOYS7RB.js} +2 -2
  297. package/dist/cdn/{IJSMJ6JO.js → V264QANZ.js} +2 -2
  298. package/dist/cdn/VCUU2HVI.js +4 -0
  299. package/dist/cdn/{NUYHIXO4.js → VJF3T5NM.js} +2 -2
  300. package/dist/cdn/{EHTFXJQH.js → VMXXHGDB.js} +2 -2
  301. package/dist/cdn/{IISUKB2S.js → VODVKUYT.js} +2 -2
  302. package/dist/cdn/{NNIFJNDZ.js → VXSYXI5Z.js} +2 -2
  303. package/dist/cdn/{46CVDZVC.js → W2ZX24VQ.js} +2 -2
  304. package/dist/cdn/{5RZUDTKW.js → W3QK4K7X.js} +2 -2
  305. package/dist/cdn/{LG727PMP.js → WJXQ2DPU.js} +2 -2
  306. package/dist/cdn/{66DRP7XG.js → WKCMJFBL.js} +2 -2
  307. package/dist/cdn/{XCDIZTHN.js → WKJ2R7JY.js} +2 -2
  308. package/dist/cdn/{D5QYYUBL.js → WLUBBOD4.js} +2 -2
  309. package/dist/cdn/{MGYTH6WZ.js → WMBQKDYZ.js} +2 -2
  310. package/dist/cdn/{CU7SNZ6P.js → WPAVKGWB.js} +2 -2
  311. package/dist/cdn/{UKIZKHK3.js → WQLBTX4S.js} +1 -1
  312. package/dist/cdn/{PE4WPX4Z.js → WTEWSJQM.js} +2 -2
  313. package/dist/cdn/{OCSUJBYR.js → WXEJPLIR.js} +2 -2
  314. package/dist/cdn/WZLBCOQS.js +18 -0
  315. package/dist/cdn/{2MFB7HRJ.js → X3DE2KFS.js} +2 -2
  316. package/dist/cdn/{LRBGWEEZ.js → X5D3D4IZ.js} +2 -2
  317. package/dist/cdn/XAV2PM3Y.js +4 -0
  318. package/dist/cdn/{OM7MPLLZ.js → XFASBCXW.js} +2 -2
  319. package/dist/cdn/{QPZ7GOMZ.js → XGRBMFRW.js} +2 -2
  320. package/dist/cdn/{FK7VGU7W.js → XJKIXAYN.js} +2 -2
  321. package/dist/cdn/XNNCHNUY.js +4 -0
  322. package/dist/cdn/{HD327S23.js → XRV4FLNJ.js} +1 -1
  323. package/dist/cdn/{WSLJJSIH.js → XSOYU3DF.js} +2 -2
  324. package/dist/cdn/{QIDLH4OA.js → XVUKIVR5.js} +4 -4
  325. package/dist/cdn/{N4OGCD7D.js → XWRFSW2T.js} +2 -2
  326. package/dist/cdn/{3JTBPXUO.js → XYR7D7OA.js} +2 -2
  327. package/dist/cdn/{MX7TP6OM.js → Y3O7XLID.js} +2 -2
  328. package/dist/cdn/{33G4ILFV.js → YAINND4R.js} +2 -2
  329. package/dist/cdn/{7HQEECGO.js → YOQVQHWA.js} +2 -2
  330. package/dist/cdn/{BGMDBYZ2.js → YPFWQTGP.js} +1 -1
  331. package/dist/cdn/{B3Q4K7JP.js → YPJK7AY7.js} +2 -2
  332. package/dist/cdn/{LJ426SCV.js → YUDPELTS.js} +2 -2
  333. package/dist/cdn/{ZQH5AMBZ.js → YVVBMJIZ.js} +2 -2
  334. package/dist/cdn/{PTQPH2SM.js → YWCCKYDU.js} +2 -2
  335. package/dist/cdn/{OEBGUHFJ.js → YX6PKVZ5.js} +2 -2
  336. package/dist/cdn/{ELHSEOC4.js → YXGWG4DE.js} +1 -1
  337. package/dist/cdn/{N5K3CJ5Y.js → YYHZ5MY3.js} +1 -1
  338. package/dist/cdn/{U3MYHA2M.js → Z3XVTJFU.js} +2 -2
  339. package/dist/cdn/Z4KL5JYW.js +4 -0
  340. package/dist/cdn/{34XSZUAP.js → ZEQOJPBZ.js} +1 -1
  341. package/dist/cdn/{HOPU7FO3.js → ZIBKF533.js} +2 -2
  342. package/dist/cdn/{OQLRL2OY.js → ZL3GBZXD.js} +1 -1
  343. package/dist/cdn/{KIABGHYP.js → ZSMTVBEM.js} +2 -2
  344. package/dist/cdn/{7ZH5OUZO.js → ZTJENKRZ.js} +2 -2
  345. package/dist/cdn/{KFAHTAXM.js → ZTSNO64A.js} +1 -1
  346. package/dist/cdn/{DQ47KDFE.js → ZUIPQQRM.js} +2 -2
  347. package/dist/cdn/{RF2OXLUG.js → ZUOW5NVL.js} +1 -1
  348. package/dist/cdn/{TUCEPW3V.js → ZW6W37OU.js} +2 -2
  349. package/dist/cdn/{DBCEWKB6.js → ZWKX3IFE.js} +1 -1
  350. package/dist/cdn/{RX7UJXSX.js → ZY72624Y.js} +2 -2
  351. package/dist/cdn/{GKXUY362.js → ZYTFJSHA.js} +2 -2
  352. package/dist/cdn/index.js +2 -2
  353. package/dist/chunks/Auth.js +1 -1
  354. package/dist/chunks/appConfig.js +1 -1
  355. package/dist/chunks/cardFetchingUtils.js +1 -1
  356. package/dist/chunks/cardsHelpers.js +1 -1
  357. package/dist/chunks/common.js +1 -1
  358. package/dist/chunks/deployAppContexts.js +1 -1
  359. package/dist/chunks/downloadUtils.js +1 -1
  360. package/dist/chunks/getItemIcon.js +1 -1
  361. package/dist/chunks/helpers.js +1 -1
  362. package/dist/chunks/interfaces.js +1 -1
  363. package/dist/chunks/mapViewUtils.js +1 -1
  364. package/dist/chunks/pciUtils.js +1 -1
  365. package/dist/chunks/popupUtils.js +1 -1
  366. package/dist/chunks/privilegeUtils.js +1 -1
  367. package/dist/chunks/publicNotificationContext.js +1 -1
  368. package/dist/chunks/queryUtils.js +1 -1
  369. package/dist/chunks/runtime.js +1 -1
  370. package/dist/chunks/solution-deployed-card.js +1 -1
  371. package/dist/chunks/solution-store.js +1 -1
  372. package/dist/chunks/templates.js +1 -1
  373. package/dist/chunks/useT9n.js +1 -1
  374. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  375. package/dist/components/buffer-tools/customElement.js +1 -1
  376. package/dist/components/card-manager/customElement.js +1 -1
  377. package/dist/components/consent-manager/customElement.js +1 -1
  378. package/dist/components/create-feature/customElement.js +1 -1
  379. package/dist/components/create-related-feature/customElement.js +1 -1
  380. package/dist/components/crowdsource-manager/customElement.js +1 -1
  381. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  382. package/dist/components/deduct-calculator/customElement.js +1 -1
  383. package/dist/components/delete-button/customElement.js +1 -1
  384. package/dist/components/delete-dialog/customElement.js +1 -1
  385. package/dist/components/edit-card/customElement.js +1 -1
  386. package/dist/components/feature-details/customElement.js +1 -1
  387. package/dist/components/feature-list/customElement.js +1 -1
  388. package/dist/components/field-selection/customElement.js +1 -1
  389. package/dist/components/info-card/customElement.js +1 -1
  390. package/dist/components/json-editor/customElement.js +1 -1
  391. package/dist/components/layer-list/customElement.js +1 -1
  392. package/dist/components/layer-table/customElement.js +1 -1
  393. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  394. package/dist/components/map-card/customElement.js +1 -1
  395. package/dist/components/map-draw-tools/customElement.js +1 -1
  396. package/dist/components/map-floor-filter/customElement.js +1 -1
  397. package/dist/components/map-fullscreen/customElement.js +1 -1
  398. package/dist/components/map-layer-picker/customElement.js +1 -1
  399. package/dist/components/map-legend/customElement.js +1 -1
  400. package/dist/components/map-picker/customElement.js +1 -1
  401. package/dist/components/map-search/customElement.js +1 -1
  402. package/dist/components/map-select-tools/customElement.js +1 -1
  403. package/dist/components/map-tools/customElement.js +1 -1
  404. package/dist/components/pci-calculator/customElement.js +1 -1
  405. package/dist/components/pdf-download/customElement.js +1 -1
  406. package/dist/components/public-notification/customElement.js +1 -1
  407. package/dist/components/refine-selection/customElement.js +1 -1
  408. package/dist/components/selection-tool/customElement.js +1 -1
  409. package/dist/components/solution-configuration/customElement.js +1 -1
  410. package/dist/components/solution-configure-titles/customElement.js +1 -1
  411. package/dist/components/solution-contents/customElement.js +1 -1
  412. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  413. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  414. package/dist/components/solution-deployed-card/customElement.js +1 -1
  415. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  416. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  417. package/dist/components/solution-details-card/customElement.js +1 -1
  418. package/dist/components/solution-details-panel/customElement.js +1 -1
  419. package/dist/components/solution-item/customElement.js +1 -1
  420. package/dist/components/solution-item-accordion/customElement.js +1 -1
  421. package/dist/components/solution-item-details/customElement.js +1 -1
  422. package/dist/components/solution-item-diagram/customElement.js +1 -1
  423. package/dist/components/solution-item-icon/customElement.js +1 -1
  424. package/dist/components/solution-item-sharing/customElement.js +1 -1
  425. package/dist/components/solution-organization-variables/customElement.js +1 -1
  426. package/dist/components/solution-resource-card/customElement.js +1 -1
  427. package/dist/components/solution-resource-item/customElement.js +1 -1
  428. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  429. package/dist/components/solution-social-share/customElement.js +1 -1
  430. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  431. package/dist/components/solution-template-data/customElement.js +1 -1
  432. package/dist/components/solution-variables/customElement.js +1 -1
  433. package/dist/components/solutions-all-panel/customElement.js +1 -1
  434. package/dist/components/solutions-all-shell/customElement.js +1 -1
  435. package/dist/components/solutions-deploy-app/customElement.js +24 -24
  436. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  437. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  438. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  439. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  440. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  441. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  442. package/dist/components/solutions-resources/customElement.js +1 -1
  443. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  444. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  445. package/dist/components/spatial-ref/customElement.js +1 -1
  446. package/dist/components/store-manager/customElement.js +1 -1
  447. package/dist/docs/api.json +1 -1
  448. package/dist/docs/docs.json +1 -1
  449. package/dist/docs/web-types.json +1 -1
  450. package/dist/index.js +1 -1
  451. package/dist/loader.js +1 -1
  452. package/package.json +1 -1
  453. package/dist/cdn/2EHFTD3A.js +0 -4
  454. package/dist/cdn/2QE2B3ZP.js +0 -4
  455. package/dist/cdn/5SJ5ZO2O.js +0 -4
  456. package/dist/cdn/AEVMJNSB.js +0 -4
  457. package/dist/cdn/AFYY5OFH.js +0 -4
  458. package/dist/cdn/BIPRK2LG.js +0 -4
  459. package/dist/cdn/CCJ5ENZG.js +0 -4
  460. package/dist/cdn/GHJ2QO66.js +0 -4
  461. package/dist/cdn/HHZOHYHZ.js +0 -4
  462. package/dist/cdn/HMOORY2C.js +0 -4
  463. package/dist/cdn/HY3LJR56.js +0 -4
  464. package/dist/cdn/J3X23Y55.js +0 -4
  465. package/dist/cdn/KROUE3IQ.js +0 -4
  466. package/dist/cdn/LHS7OYOP.js +0 -4
  467. package/dist/cdn/LJ35DQ6C.js +0 -4
  468. package/dist/cdn/MROZRE2M.js +0 -4
  469. package/dist/cdn/OXZJWRSW.js +0 -4
  470. package/dist/cdn/Q6RBNIDG.js +0 -4
  471. package/dist/cdn/WPPPNV6W.js +0 -4
  472. package/dist/cdn/YJLTASYL.js +0 -4
  473. package/dist/cdn/ZJFLRIIX.js +0 -4
  474. package/dist/cdn/ZMXPGT3H.js +0 -18
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.36 */
4
- import{a as Le}from"./34XSZUAP.js";import{a as Lf}from"./RF2OXLUG.js";import{b as xf}from"./AIPVKNHS.js";import{b as Af,xa as Nf}from"./SSW3VWLW.js";import{c as _f}from"./WT2QZWOV.js";export default $arcgis.t(([Th,n1])=>{var lr=Uint8Array,Bn=Uint16Array,Fl=Int32Array,El=new lr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Cl=new lr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Sf=new lr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ff=function(t,n){for(var e=new Bn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var i=new Fl(e[30]),r=1;r<30;++r)for(var a=e[r];a<e[r+1];++a)i[a]=a-e[r]<<5|r;return{b:e,r:i}},Ef=Ff(El,2),V1=Ef.b,kl=Ef.r;V1[28]=258,kl[258]=28;var Cf=Ff(Cl,0),rp=Cf.b,kf=Cf.r,Pl=new Bn(32768);for(be=0;be<32768;++be)Vr=(be&43690)>>1|(be&21845)<<1,Vr=(Vr&52428)>>2|(Vr&13107)<<2,Vr=(Vr&61680)>>4|(Vr&3855)<<4,Pl[be]=((Vr&65280)>>8|(Vr&255)<<8)>>1;var Vr,be,ao=(function(t,n,e){for(var r=t.length,i=0,a=new Bn(n);i<r;++i)t[i]&&++a[t[i]-1];var h=new Bn(n);for(i=1;i<n;++i)h[i]=h[i-1]+a[i-1]<<1;var l;if(e){l=new Bn(1<<n);var c=15-n;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],g=n-t[i],y=h[t[i]-1]++<<g,A=y|(1<<g)-1;y<=A;++y)l[Pl[y]>>c]=u}else for(l=new Bn(r),i=0;i<r;++i)t[i]&&(l[i]=Pl[h[t[i]-1]++]>>15-t[i]);return l}),Bi=new lr(288);for(be=0;be<144;++be)Bi[be]=8;var be;for(be=144;be<256;++be)Bi[be]=9;var be;for(be=256;be<280;++be)Bi[be]=7;var be;for(be=280;be<288;++be)Bi[be]=8;var be,us=new lr(32);for(be=0;be<32;++be)us[be]=5;var be,Z1=ao(Bi,9,0);var $1=ao(us,5,0);var Of=function(t){return(t+7)/8|0},Y1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new lr(t.subarray(n,e))};var Zr=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},ro=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Sl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var i=e.length,a=e.slice();if(!i)return{t:Df,l:0};if(i==1){var h=new lr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(rt,mt){return rt.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],u=0,g=1,y=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};g!=i-1;)l=e[e[u].f<e[y].f?u++:y++],c=e[u!=g&&e[u].f<e[y].f?u++:y++],e[g++]={s:-1,f:l.f+c.f,l,r:c};for(var A=a[0].s,r=1;r<i;++r)a[r].s>A&&(A=a[r].s);var p=new Bn(A+1),F=Il(e[g-1],p,0);if(F>n){var r=0,P=0,D=F-n,L=1<<D;for(a.sort(function(mt,ut){return p[ut.s]-p[mt.s]||mt.f-ut.f});r<i;++r){var H=a[r].s;if(p[H]>n)P+=L-(1<<F-p[H]),p[H]=n;else break}for(P>>=D;P>0;){var q=a[r].s;p[q]<n?P-=1<<n-p[q]++-1:++r}for(;r>=0&&P;--r){var j=a[r].s;p[j]==n&&(--p[j],++P)}F=n}return{t:new lr(p),l:F}},Il=function(t,n,e){return t.s==-1?Math.max(Il(t.l,n,e+1),Il(t.r,n,e+1)):n[t.s]=e},Pf=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new Bn(++n),r=0,i=t[0],a=1,h=function(c){e[r++]=c},l=1;l<=n;++l)if(t[l]==i&&l!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(i),--a;a>6;a-=6)h(8304);a>2&&(h(a-3<<5|8208),a=0)}for(;a--;)h(i);a=1,i=t[l]}return{c:e.subarray(0,r),n}},io=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},Tf=function(t,n,e){var r=e.length,i=Of(n+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var a=0;a<r;++a)t[i+a+4]=e[a];return(i+4+r)*8},If=function(t,n,e,r,i,a,h,l,c,u,g){Zr(n,g++,e),++i[256];for(var y=Sl(i,15),A=y.t,p=y.l,F=Sl(a,15),P=F.t,D=F.l,L=Pf(A),H=L.c,q=L.n,j=Pf(P),rt=j.c,mt=j.n,ut=new Bn(19),Y=0;Y<H.length;++Y)++ut[H[Y]&31];for(var Y=0;Y<rt.length;++Y)++ut[rt[Y]&31];for(var R=Sl(ut,7),tt=R.t,S=R.l,O=19;O>4&&!tt[Sf[O-1]];--O);var W=u+5<<3,U=io(i,Bi)+io(a,us)+h,it=io(i,A)+io(a,P)+h+14+3*O+io(ut,tt)+2*ut[16]+3*ut[17]+7*ut[18];if(c>=0&&W<=U&&W<=it)return Tf(n,g,t.subarray(c,c+u));var st,ht,nt,ct;if(Zr(n,g,1+(it<U)),g+=2,it<U){st=ao(A,p,0),ht=A,nt=ao(P,D,0),ct=P;var At=ao(tt,S,0);Zr(n,g,q-257),Zr(n,g+5,mt-1),Zr(n,g+10,O-4),g+=14;for(var Y=0;Y<O;++Y)Zr(n,g+3*Y,tt[Sf[Y]]);g+=3*O;for(var wt=[H,rt],x=0;x<2;++x)for(var M=wt[x],Y=0;Y<M.length;++Y){var B=M[Y]&31;Zr(n,g,At[B]),g+=tt[B],B>15&&(Zr(n,g,M[Y]>>5&127),g+=M[Y]>>12)}}else st=Z1,ht=Bi,nt=$1,ct=us;for(var Y=0;Y<l;++Y){var G=r[Y];if(G>255){var B=G>>18&31;ro(n,g,st[B+257]),g+=ht[B+257],B>7&&(Zr(n,g,G>>23&31),g+=El[B]);var $=G&31;ro(n,g,nt[$]),g+=ct[$],$>3&&(ro(n,g,G>>5&8191),g+=Cl[$])}else ro(n,g,st[G]),g+=ht[G]}return ro(n,g,st[256]),g+ht[256]},K1=new Fl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Df=new lr(0),X1=function(t,n,e,r,i,a){var h=a.z||t.length,l=new lr(r+h+5*(1+Math.ceil(h/7e3))+i),c=l.subarray(r,l.length-i),u=a.l,g=(a.r||0)&7;if(n){g&&(c[0]=a.r>>3);for(var y=K1[n-1],A=y>>13,p=y&8191,F=(1<<e)-1,P=a.p||new Bn(32768),D=a.h||new Bn(F+1),L=Math.ceil(e/3),H=2*L,q=function(Bt){return(t[Bt]^t[Bt+1]<<L^t[Bt+2]<<H)&F},j=new Fl(25e3),rt=new Bn(288),mt=new Bn(32),ut=0,Y=0,R=a.i||0,tt=0,S=a.w||0,O=0;R+2<h;++R){var W=q(R),U=R&32767,it=D[W];if(P[U]=it,D[W]=U,S<=R){var st=h-R;if((ut>7e3||tt>24576)&&(st>423||!u)){g=If(t,c,0,j,rt,mt,Y,tt,O,R-O,g),tt=ut=Y=0,O=R;for(var ht=0;ht<286;++ht)rt[ht]=0;for(var ht=0;ht<30;++ht)mt[ht]=0}var nt=2,ct=0,At=p,wt=U-it&32767;if(st>2&&W==q(R-wt))for(var x=Math.min(A,st)-1,M=Math.min(32767,R),B=Math.min(258,st);wt<=M&&--At&&U!=it;){if(t[R+nt]==t[R+nt-wt]){for(var G=0;G<B&&t[R+G]==t[R+G-wt];++G);if(G>nt){if(nt=G,ct=wt,G>x)break;for(var $=Math.min(wt,G-2),J=0,ht=0;ht<$;++ht){var at=R-wt+ht&32767,ot=P[at],gt=at-ot&32767;gt>J&&(J=gt,it=at)}}}U=it,it=P[U],wt+=U-it&32767}if(ct){j[tt++]=268435456|kl[nt]<<18|kf[ct];var xt=kl[nt]&31,kt=kf[ct]&31;Y+=El[xt]+Cl[kt],++rt[257+xt],++mt[kt],S=R+nt,++ut}else j[tt++]=t[R],++rt[t[R]]}}for(R=Math.max(R,S);R<h;++R)j[tt++]=t[R],++rt[t[R]];g=If(t,c,u,j,rt,mt,Y,tt,O,R-O,g),u||(a.r=g&7|c[g/8|0]<<3,g-=7,a.h=D,a.p=P,a.i=R,a.w=S)}else{for(var R=a.w||0;R<h+u;R+=65535){var St=R+65535;St>=h&&(c[g/8|0]=u,St=h),g=Tf(c,g+1,t.subarray(R,St))}a.i=h}return Y1(l,0,r+Of(g)+i)};var Mf=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,a=e.length|0,h=0;h!=a;){for(var l=Math.min(h+2655,a);h<l;++h)i+=r+=e[h];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,n=i},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},J1=function(t,n,e,r,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),h=new lr(a.length+t.length);h.set(a),h.set(t,a.length),t=h,i.w=a.length}return X1(t,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,i)};var Rf=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var Q1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Mf();i.p(n.dictionary),Rf(t,2,i.d())}};function ds(t,n){n||(n={});var e=Mf();e.p(t);var r=J1(t,n,n.dictionary?6:2,4);return Q1(r,n),Rf(r,r.length-4,e.d()),r}var t0=typeof TextDecoder<"u"&&new TextDecoder,e0=0;try{t0.decode(Df,{stream:!0}),e0=1}catch{}function jf(t){if(Array.isArray(t))return t}function Bf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,i,a,h,l=[],c=!0,u=!1;try{if(a=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(g){u=!0,i=g}finally{try{if(!c&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(u)throw i}}return l}}function Ol(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function zf(t,n){if(t){if(typeof t=="string")return Ol(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ol(t,n):void 0}}function Uf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ v1.2.0-next.38 */
4
+ import{a as Le}from"./ZEQOJPBZ.js";import{a as Lf}from"./ZUOW5NVL.js";import{b as xf}from"./EAOAVR6T.js";import{b as Af,xa as Nf}from"./5CWOJPPE.js";import{c as _f}from"./HUJMUYZW.js";export default $arcgis.t(([Th,n1])=>{var lr=Uint8Array,Bn=Uint16Array,Fl=Int32Array,El=new lr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Cl=new lr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Sf=new lr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ff=function(t,n){for(var e=new Bn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var i=new Fl(e[30]),r=1;r<30;++r)for(var a=e[r];a<e[r+1];++a)i[a]=a-e[r]<<5|r;return{b:e,r:i}},Ef=Ff(El,2),V1=Ef.b,kl=Ef.r;V1[28]=258,kl[258]=28;var Cf=Ff(Cl,0),rp=Cf.b,kf=Cf.r,Pl=new Bn(32768);for(be=0;be<32768;++be)Vr=(be&43690)>>1|(be&21845)<<1,Vr=(Vr&52428)>>2|(Vr&13107)<<2,Vr=(Vr&61680)>>4|(Vr&3855)<<4,Pl[be]=((Vr&65280)>>8|(Vr&255)<<8)>>1;var Vr,be,ao=(function(t,n,e){for(var r=t.length,i=0,a=new Bn(n);i<r;++i)t[i]&&++a[t[i]-1];var h=new Bn(n);for(i=1;i<n;++i)h[i]=h[i-1]+a[i-1]<<1;var l;if(e){l=new Bn(1<<n);var c=15-n;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],g=n-t[i],y=h[t[i]-1]++<<g,A=y|(1<<g)-1;y<=A;++y)l[Pl[y]>>c]=u}else for(l=new Bn(r),i=0;i<r;++i)t[i]&&(l[i]=Pl[h[t[i]-1]++]>>15-t[i]);return l}),Bi=new lr(288);for(be=0;be<144;++be)Bi[be]=8;var be;for(be=144;be<256;++be)Bi[be]=9;var be;for(be=256;be<280;++be)Bi[be]=7;var be;for(be=280;be<288;++be)Bi[be]=8;var be,us=new lr(32);for(be=0;be<32;++be)us[be]=5;var be,Z1=ao(Bi,9,0);var $1=ao(us,5,0);var Of=function(t){return(t+7)/8|0},Y1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new lr(t.subarray(n,e))};var Zr=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},ro=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Sl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var i=e.length,a=e.slice();if(!i)return{t:Df,l:0};if(i==1){var h=new lr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(rt,mt){return rt.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],u=0,g=1,y=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};g!=i-1;)l=e[e[u].f<e[y].f?u++:y++],c=e[u!=g&&e[u].f<e[y].f?u++:y++],e[g++]={s:-1,f:l.f+c.f,l,r:c};for(var A=a[0].s,r=1;r<i;++r)a[r].s>A&&(A=a[r].s);var p=new Bn(A+1),F=Il(e[g-1],p,0);if(F>n){var r=0,P=0,D=F-n,L=1<<D;for(a.sort(function(mt,ut){return p[ut.s]-p[mt.s]||mt.f-ut.f});r<i;++r){var H=a[r].s;if(p[H]>n)P+=L-(1<<F-p[H]),p[H]=n;else break}for(P>>=D;P>0;){var q=a[r].s;p[q]<n?P-=1<<n-p[q]++-1:++r}for(;r>=0&&P;--r){var j=a[r].s;p[j]==n&&(--p[j],++P)}F=n}return{t:new lr(p),l:F}},Il=function(t,n,e){return t.s==-1?Math.max(Il(t.l,n,e+1),Il(t.r,n,e+1)):n[t.s]=e},Pf=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new Bn(++n),r=0,i=t[0],a=1,h=function(c){e[r++]=c},l=1;l<=n;++l)if(t[l]==i&&l!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(i),--a;a>6;a-=6)h(8304);a>2&&(h(a-3<<5|8208),a=0)}for(;a--;)h(i);a=1,i=t[l]}return{c:e.subarray(0,r),n}},io=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},Tf=function(t,n,e){var r=e.length,i=Of(n+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var a=0;a<r;++a)t[i+a+4]=e[a];return(i+4+r)*8},If=function(t,n,e,r,i,a,h,l,c,u,g){Zr(n,g++,e),++i[256];for(var y=Sl(i,15),A=y.t,p=y.l,F=Sl(a,15),P=F.t,D=F.l,L=Pf(A),H=L.c,q=L.n,j=Pf(P),rt=j.c,mt=j.n,ut=new Bn(19),Y=0;Y<H.length;++Y)++ut[H[Y]&31];for(var Y=0;Y<rt.length;++Y)++ut[rt[Y]&31];for(var R=Sl(ut,7),tt=R.t,S=R.l,O=19;O>4&&!tt[Sf[O-1]];--O);var W=u+5<<3,U=io(i,Bi)+io(a,us)+h,it=io(i,A)+io(a,P)+h+14+3*O+io(ut,tt)+2*ut[16]+3*ut[17]+7*ut[18];if(c>=0&&W<=U&&W<=it)return Tf(n,g,t.subarray(c,c+u));var st,ht,nt,ct;if(Zr(n,g,1+(it<U)),g+=2,it<U){st=ao(A,p,0),ht=A,nt=ao(P,D,0),ct=P;var At=ao(tt,S,0);Zr(n,g,q-257),Zr(n,g+5,mt-1),Zr(n,g+10,O-4),g+=14;for(var Y=0;Y<O;++Y)Zr(n,g+3*Y,tt[Sf[Y]]);g+=3*O;for(var wt=[H,rt],x=0;x<2;++x)for(var M=wt[x],Y=0;Y<M.length;++Y){var B=M[Y]&31;Zr(n,g,At[B]),g+=tt[B],B>15&&(Zr(n,g,M[Y]>>5&127),g+=M[Y]>>12)}}else st=Z1,ht=Bi,nt=$1,ct=us;for(var Y=0;Y<l;++Y){var G=r[Y];if(G>255){var B=G>>18&31;ro(n,g,st[B+257]),g+=ht[B+257],B>7&&(Zr(n,g,G>>23&31),g+=El[B]);var $=G&31;ro(n,g,nt[$]),g+=ct[$],$>3&&(ro(n,g,G>>5&8191),g+=Cl[$])}else ro(n,g,st[G]),g+=ht[G]}return ro(n,g,st[256]),g+ht[256]},K1=new Fl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Df=new lr(0),X1=function(t,n,e,r,i,a){var h=a.z||t.length,l=new lr(r+h+5*(1+Math.ceil(h/7e3))+i),c=l.subarray(r,l.length-i),u=a.l,g=(a.r||0)&7;if(n){g&&(c[0]=a.r>>3);for(var y=K1[n-1],A=y>>13,p=y&8191,F=(1<<e)-1,P=a.p||new Bn(32768),D=a.h||new Bn(F+1),L=Math.ceil(e/3),H=2*L,q=function(Bt){return(t[Bt]^t[Bt+1]<<L^t[Bt+2]<<H)&F},j=new Fl(25e3),rt=new Bn(288),mt=new Bn(32),ut=0,Y=0,R=a.i||0,tt=0,S=a.w||0,O=0;R+2<h;++R){var W=q(R),U=R&32767,it=D[W];if(P[U]=it,D[W]=U,S<=R){var st=h-R;if((ut>7e3||tt>24576)&&(st>423||!u)){g=If(t,c,0,j,rt,mt,Y,tt,O,R-O,g),tt=ut=Y=0,O=R;for(var ht=0;ht<286;++ht)rt[ht]=0;for(var ht=0;ht<30;++ht)mt[ht]=0}var nt=2,ct=0,At=p,wt=U-it&32767;if(st>2&&W==q(R-wt))for(var x=Math.min(A,st)-1,M=Math.min(32767,R),B=Math.min(258,st);wt<=M&&--At&&U!=it;){if(t[R+nt]==t[R+nt-wt]){for(var G=0;G<B&&t[R+G]==t[R+G-wt];++G);if(G>nt){if(nt=G,ct=wt,G>x)break;for(var $=Math.min(wt,G-2),J=0,ht=0;ht<$;++ht){var at=R-wt+ht&32767,ot=P[at],gt=at-ot&32767;gt>J&&(J=gt,it=at)}}}U=it,it=P[U],wt+=U-it&32767}if(ct){j[tt++]=268435456|kl[nt]<<18|kf[ct];var xt=kl[nt]&31,kt=kf[ct]&31;Y+=El[xt]+Cl[kt],++rt[257+xt],++mt[kt],S=R+nt,++ut}else j[tt++]=t[R],++rt[t[R]]}}for(R=Math.max(R,S);R<h;++R)j[tt++]=t[R],++rt[t[R]];g=If(t,c,u,j,rt,mt,Y,tt,O,R-O,g),u||(a.r=g&7|c[g/8|0]<<3,g-=7,a.h=D,a.p=P,a.i=R,a.w=S)}else{for(var R=a.w||0;R<h+u;R+=65535){var St=R+65535;St>=h&&(c[g/8|0]=u,St=h),g=Tf(c,g+1,t.subarray(R,St))}a.i=h}return Y1(l,0,r+Of(g)+i)};var Mf=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,a=e.length|0,h=0;h!=a;){for(var l=Math.min(h+2655,a);h<l;++h)i+=r+=e[h];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,n=i},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},J1=function(t,n,e,r,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),h=new lr(a.length+t.length);h.set(a),h.set(t,a.length),t=h,i.w=a.length}return X1(t,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,i)};var Rf=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var Q1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Mf();i.p(n.dictionary),Rf(t,2,i.d())}};function ds(t,n){n||(n={});var e=Mf();e.p(t);var r=J1(t,n,n.dictionary?6:2,4);return Q1(r,n),Rf(r,r.length-4,e.d()),r}var t0=typeof TextDecoder<"u"&&new TextDecoder,e0=0;try{t0.decode(Df,{stream:!0}),e0=1}catch{}function jf(t){if(Array.isArray(t))return t}function Bf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,i,a,h,l=[],c=!0,u=!1;try{if(a=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(g){u=!0,i=g}finally{try{if(!c&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(u)throw i}}return l}}function Ol(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function zf(t,n){if(t){if(typeof t=="string")return Ol(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ol(t,n):void 0}}function Uf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tl(t,n){return jf(t)||Bf(t,n)||zf(t,n)||Uf()}function Dl(t,n="utf8"){return new TextDecoder(n).decode(t)}var n0=new TextEncoder;function qf(t){return n0.encode(t)}var r0=1024*8,i0=(()=>{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),Ml={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},oo=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=r0,e={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);let i=e.offset?e.offset>>>0:0,a=n.byteLength-i,h=i;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(h=n.byteOffset+i),n=n.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=n,this.length=a,this.byteLength=a,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,a),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let r=(this.offset+n)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let r=Ml[e].BYTES_PER_ELEMENT*n,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===i0&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(i,i+r));l.reverse();let c=new Ml[e](l.buffer);return this.offset+=r,c.reverse(),c}let h=new Ml[e](a);return this.offset+=r,h}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Dl(this.readBytes(n))}decodeText(n=1,e="utf8"){return Dl(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(qf(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ga(t){let n=t.length;for(;--n>=0;)t[n]=0}var a0=0,kc=1,o0=2,s0=3,l0=258,oh=29,xo=256,po=xo+1+oh,ua=30,sh=19,Pc=2*po+1,zi=15,Rl=16,h0=7,lh=256,Ic=16,Fc=17,Ec=18,Xl=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ws=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f0=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Cc=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c0=512,Yr=new Array((po+2)*2);ga(Yr);var fo=new Array(ua*2);ga(fo);var go=new Array(c0);ga(go);var mo=new Array(l0-s0+1);ga(mo);var hh=new Array(oh);ga(hh);var ys=new Array(ua);ga(ys);function jl(t,n,e,r,i){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}var Oc,Tc,Dc;function Bl(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Mc=t=>t<256?go[t]:go[256+(t>>>7)],vo=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},In=(t,n,e)=>{t.bi_valid>Rl-e?(t.bi_buf|=n<<t.bi_valid&65535,vo(t,t.bi_buf),t.bi_buf=n>>Rl-t.bi_valid,t.bi_valid+=e-Rl):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},xr=(t,n,e)=>{In(t,e[n*2],e[n*2+1])},Rc=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},u0=t=>{t.bi_valid===16?(vo(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},d0=(t,n)=>{let e=n.dyn_tree,r=n.max_code,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,h=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,c=n.stat_desc.max_length,u,g,y,A,p,F,P=0;for(A=0;A<=zi;A++)t.bl_count[A]=0;for(e[t.heap[t.heap_max]*2+1]=0,u=t.heap_max+1;u<Pc;u++)g=t.heap[u],A=e[e[g*2+1]*2+1]+1,A>c&&(A=c,P++),e[g*2+1]=A,!(g>r)&&(t.bl_count[A]++,p=0,g>=l&&(p=h[g-l]),F=e[g*2],t.opt_len+=F*(A+p),a&&(t.static_len+=F*(i[g*2+1]+p)));if(P!==0){do{for(A=c-1;t.bl_count[A]===0;)A--;t.bl_count[A]--,t.bl_count[A+1]+=2,t.bl_count[c]--,P-=2}while(P>0);for(A=c;A!==0;A--)for(g=t.bl_count[A];g!==0;)y=t.heap[--u],!(y>r)&&(e[y*2+1]!==A&&(t.opt_len+=(A-e[y*2+1])*e[y*2],e[y*2+1]=A),g--)}},jc=(t,n,e)=>{let r=new Array(zi+1),i=0,a,h;for(a=1;a<=zi;a++)i=i+e[a-1]<<1,r[a]=i;for(h=0;h<=n;h++){let l=t[h*2+1];l!==0&&(t[h*2]=Rc(r[l]++,l))}},p0=()=>{let t,n,e,r,i,a=new Array(zi+1);for(e=0,r=0;r<oh-1;r++)for(hh[r]=e,t=0;t<1<<Xl[r];t++)mo[e++]=r;for(mo[e-1]=r,i=0,r=0;r<16;r++)for(ys[r]=i,t=0;t<1<<ws[r];t++)go[i++]=r;for(i>>=7;r<ua;r++)for(ys[r]=i<<7,t=0;t<1<<ws[r]-7;t++)go[256+i++]=r;for(n=0;n<=zi;n++)a[n]=0;for(t=0;t<=143;)Yr[t*2+1]=8,t++,a[8]++;for(;t<=255;)Yr[t*2+1]=9,t++,a[9]++;for(;t<=279;)Yr[t*2+1]=7,t++,a[7]++;for(;t<=287;)Yr[t*2+1]=8,t++,a[8]++;for(jc(Yr,po+1,a),t=0;t<ua;t++)fo[t*2+1]=5,fo[t*2]=Rc(t,5);Oc=new jl(Yr,Xl,xo+1,po,zi),Tc=new jl(fo,ws,0,ua,zi),Dc=new jl(new Array(0),f0,0,sh,h0)},Bc=t=>{let n;for(n=0;n<po;n++)t.dyn_ltree[n*2]=0;for(n=0;n<ua;n++)t.dyn_dtree[n*2]=0;for(n=0;n<sh;n++)t.bl_tree[n*2]=0;t.dyn_ltree[lh*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},zc=t=>{t.bi_valid>8?vo(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Hf=(t,n,e,r)=>{let i=n*2,a=e*2;return t[i]<t[a]||t[i]===t[a]&&r[n]<=r[e]},zl=(t,n,e)=>{let r=t.heap[e],i=e<<1;for(;i<=t.heap_len&&(i<t.heap_len&&Hf(n,t.heap[i+1],t.heap[i],t.depth)&&i++,!Hf(n,r,t.heap[i],t.depth));)t.heap[e]=t.heap[i],e=i,i<<=1;t.heap[e]=r},Wf=(t,n,e)=>{let r,i,a=0,h,l;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+a++]&255,r+=(t.pending_buf[t.sym_buf+a++]&255)<<8,i=t.pending_buf[t.sym_buf+a++],r===0?xr(t,i,n):(h=mo[i],xr(t,h+xo+1,n),l=Xl[h],l!==0&&(i-=hh[h],In(t,i,l)),r--,h=Mc(r),xr(t,h,e),l=ws[h],l!==0&&(r-=ys[h],In(t,r,l)));while(a<t.sym_next);xr(t,lh,n)},Jl=(t,n)=>{let e=n.dyn_tree,r=n.stat_desc.static_tree,i=n.stat_desc.has_stree,a=n.stat_desc.elems,h,l,c=-1,u;for(t.heap_len=0,t.heap_max=Pc,h=0;h<a;h++)e[h*2]!==0?(t.heap[++t.heap_len]=c=h,t.depth[h]=0):e[h*2+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=c<2?++c:0,e[u*2]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=r[u*2+1]);for(n.max_code=c,h=t.heap_len>>1;h>=1;h--)zl(t,e,h);u=a;do h=t.heap[1],t.heap[1]=t.heap[t.heap_len--],zl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=h,t.heap[--t.heap_max]=l,e[u*2]=e[h*2]+e[l*2],t.depth[u]=(t.depth[h]>=t.depth[l]?t.depth[h]:t.depth[l])+1,e[h*2+1]=e[l*2+1]=u,t.heap[1]=u++,zl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],d0(t,n),jc(e,c,t.bl_count)},Gf=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,c=7,u=4;for(h===0&&(c=138,u=3),n[(e+1)*2+1]=65535,r=0;r<=e;r++)a=h,h=n[(r+1)*2+1],!(++l<c&&a===h)&&(l<u?t.bl_tree[a*2]+=l:a!==0?(a!==i&&t.bl_tree[a*2]++,t.bl_tree[Ic*2]++):l<=10?t.bl_tree[Fc*2]++:t.bl_tree[Ec*2]++,l=0,i=a,h===0?(c=138,u=3):a===h?(c=6,u=3):(c=7,u=4))},Vf=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,c=7,u=4;for(h===0&&(c=138,u=3),r=0;r<=e;r++)if(a=h,h=n[(r+1)*2+1],!(++l<c&&a===h)){if(l<u)do xr(t,a,t.bl_tree);while(--l!==0);else a!==0?(a!==i&&(xr(t,a,t.bl_tree),l--),xr(t,Ic,t.bl_tree),In(t,l-3,2)):l<=10?(xr(t,Fc,t.bl_tree),In(t,l-3,3)):(xr(t,Ec,t.bl_tree),In(t,l-11,7));l=0,i=a,h===0?(c=138,u=3):a===h?(c=6,u=3):(c=7,u=4)}},g0=t=>{let n;for(Gf(t,t.dyn_ltree,t.l_desc.max_code),Gf(t,t.dyn_dtree,t.d_desc.max_code),Jl(t,t.bl_desc),n=sh-1;n>=3&&t.bl_tree[Cc[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},m0=(t,n,e,r)=>{let i;for(In(t,n-257,5),In(t,e-1,5),In(t,r-4,4),i=0;i<r;i++)In(t,t.bl_tree[Cc[i]*2+1],3);Vf(t,t.dyn_ltree,n-1),Vf(t,t.dyn_dtree,e-1)},v0=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e<xo;e++)if(t.dyn_ltree[e*2]!==0)return 1;return 0},Zf=!1,b0=t=>{Zf||(p0(),Zf=!0),t.l_desc=new Bl(t.dyn_ltree,Oc),t.d_desc=new Bl(t.dyn_dtree,Tc),t.bl_desc=new Bl(t.bl_tree,Dc),t.bi_buf=0,t.bi_valid=0,Bc(t)},Uc=(t,n,e,r)=>{In(t,(a0<<1)+(r?1:0),3),zc(t),vo(t,e),vo(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},w0=t=>{In(t,kc<<1,3),xr(t,lh,Yr),u0(t)},y0=(t,n,e,r)=>{let i,a,h=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=v0(t)),Jl(t,t.l_desc),Jl(t,t.d_desc),h=g0(t),i=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=i&&(i=a)):i=a=e+5,e+4<=i&&n!==-1?Uc(t,n,e,r):t.strategy===4||a===i?(In(t,(kc<<1)+(r?1:0),3),Wf(t,Yr,fo)):(In(t,(o0<<1)+(r?1:0),3),m0(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),Wf(t,t.dyn_ltree,t.dyn_dtree)),Bc(t),r&&zc(t)},_0=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(mo[e]+xo+1)*2]++,t.dyn_dtree[Mc(n)*2]++),t.sym_next===t.sym_end),x0=b0,A0=Uc,N0=y0,L0=_0,S0=w0,k0={_tr_init:x0,_tr_stored_block:A0,_tr_flush_block:N0,_tr_tally:L0,_tr_align:S0},P0=(t,n,e,r)=>{let i=t&65535|0,a=t>>>16&65535|0,h=0;for(;e!==0;){h=e>2e3?2e3:e,e-=h;do i=i+n[r++]|0,a=a+i|0;while(--h);i%=65521,a%=65521}return i|a<<16|0},bo=P0,I0=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},F0=new Uint32Array(I0()),E0=(t,n,e,r)=>{let i=F0,a=r+e;t^=-1;for(let h=r;h<a;h++)t=t>>>8^i[(t^n[h])&255];return t^-1},on=E0,Hi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ma={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:C0,_tr_stored_block:Ql,_tr_flush_block:O0,_tr_tally:gi,_tr_align:T0}=k0,{Z_NO_FLUSH:mi,Z_PARTIAL_FLUSH:D0,Z_FULL_FLUSH:M0,Z_FINISH:Xn,Z_BLOCK:$f,Z_OK:pn,Z_STREAM_END:Yf,Z_STREAM_ERROR:Ar,Z_DATA_ERROR:R0,Z_BUF_ERROR:Ul,Z_DEFAULT_COMPRESSION:j0,Z_FILTERED:B0,Z_HUFFMAN_ONLY:ps,Z_RLE:z0,Z_FIXED:U0,Z_DEFAULT_STRATEGY:q0,Z_UNKNOWN:H0,Z_DEFLATED:As}=ma,W0=9,G0=15,V0=8,Z0=29,$0=256,th=$0+1+Z0,Y0=30,K0=19,X0=2*th+1,J0=15,de=3,pi=258,Nr=pi+de+1,Q0=32,da=42,fh=57,eh=69,nh=73,rh=91,ih=103,Ui=113,lo=666,Ln=1,va=2,Wi=3,ba=4,t2=3,qi=(t,n)=>(t.msg=Hi[n],n),Kf=t=>t*2-(t>4?9:0),di=t=>{let n=t.length;for(;--n>=0;)t[n]=0},e2=t=>{let n,e,r,i=t.w_size;n=t.hash_size,r=n;do e=t.head[--r],t.head[r]=e>=i?e-i:0;while(--n);n=i,r=n;do e=t.prev[--r],t.prev[r]=e>=i?e-i:0;while(--n)},n2=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask,vi=n2,zn=t=>{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},Un=(t,n)=>{O0(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,zn(t.strm)},we=(t,n)=>{t.pending_buf[t.pending++]=n},so=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},ah=(t,n,e,r)=>{let i=t.avail_in;return i>r&&(i=r),i===0?0:(t.avail_in-=i,n.set(t.input.subarray(t.next_in,t.next_in+i),e),t.state.wrap===1?t.adler=bo(t.adler,n,i,e):t.state.wrap===2&&(t.adler=on(t.adler,n,i,e)),t.next_in+=i,t.total_in+=i,i)},qc=(t,n)=>{let e=t.max_chain_length,r=t.strstart,i,a,h=t.prev_length,l=t.nice_match,c=t.strstart>t.w_size-Nr?t.strstart-(t.w_size-Nr):0,u=t.window,g=t.w_mask,y=t.prev,A=t.strstart+pi,p=u[r+h-1],F=u[r+h];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(i=n,!(u[i+h]!==F||u[i+h-1]!==p||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<A);if(a=pi-(A-r),r=A-pi,a>h){if(t.match_start=n,h=a,a>=l)break;p=u[r+h-1],F=u[r+h]}}while((n=y[n&g])>c&&--e!==0);return h<=t.lookahead?h:t.lookahead},pa=t=>{let n=t.w_size,e,r,i;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Nr)&&(t.window.set(t.window.subarray(n,n+n-r),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),e2(t),r+=n),t.strm.avail_in===0)break;if(e=ah(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=de)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=vi(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=vi(t,t.ins_h,t.window[i+de-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<de)););}while(t.lookahead<Nr&&t.strm.avail_in!==0)},Hc=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,i,a,h=0,l=t.strm.avail_in;do{if(r=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a||(a=t.strm.avail_out-a,i=t.strstart-t.block_start,r>i+t.strm.avail_in&&(r=i+t.strm.avail_in),r>a&&(r=a),r<e&&(r===0&&n!==Xn||n===mi||r!==i+t.strm.avail_in)))break;h=n===Xn&&r===i+t.strm.avail_in?1:0,Ql(t,0,0,h),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,zn(t.strm),i&&(i>r&&(i=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,r-=i),r&&(ah(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(h===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),h?ba:n!==mi&&n!==Xn&&t.strm.avail_in===0&&t.strstart===t.block_start?va:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(ah(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,e=a>t.w_size?t.w_size:a,i=t.strstart-t.block_start,(i>=e||(i||n===Xn)&&n!==mi&&t.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,h=n===Xn&&t.strm.avail_in===0&&r===i?1:0,Ql(t,t.block_start,r,h),t.block_start+=r,zn(t.strm)),h?Wi:Ln)},ql=(t,n)=>{let e,r;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===mi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-Nr&&(t.match_length=qc(t,e)),t.match_length>=de)if(r=gi(t,t.strstart-t.match_start,t.match_length-de),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=de){t.match_length--;do t.strstart++,t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vi(t,t.ins_h,t.window[t.strstart+1]);else r=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},fa=(t,n)=>{let e,r,i;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===mi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=de-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Nr&&(t.match_length=qc(t,e),t.match_length<=5&&(t.strategy===B0||t.match_length===de&&t.strstart-t.match_start>4096)&&(t.match_length=de-1)),t.prev_length>=de&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-de,r=gi(t,t.strstart-1-t.prev_match,t.prev_length-de),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=de-1,t.strstart++,r&&(Un(t,!1),t.strm.avail_out===0))return Ln}else if(t.match_available){if(r=gi(t,0,t.window[t.strstart-1]),r&&Un(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Ln}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=gi(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},r2=(t,n)=>{let e,r,i,a,h=t.window;for(;;){if(t.lookahead<=pi){if(pa(t),t.lookahead<=pi&&n===mi)return Ln;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=de&&t.strstart>0&&(i=t.strstart-1,r=h[i],r===h[++i]&&r===h[++i]&&r===h[++i])){a=t.strstart+pi;do;while(r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&i<a);t.match_length=pi-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=de?(e=gi(t,1,t.match_length-de),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},i2=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(pa(t),t.lookahead===0)){if(n===mi)return Ln;break}if(t.match_length=0,e=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va};function _r(t,n,e,r,i){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=r,this.func=i}var ho=[new _r(0,0,0,0,Hc),new _r(4,4,8,4,ql),new _r(4,5,16,8,ql),new _r(4,6,32,32,ql),new _r(4,4,16,16,fa),new _r(8,16,32,32,fa),new _r(8,16,128,128,fa),new _r(8,32,128,256,fa),new _r(32,128,258,1024,fa),new _r(32,258,258,4096,fa)],a2=t=>{t.window_size=2*t.w_size,di(t.head),t.max_lazy_match=ho[t.level].max_lazy,t.good_match=ho[t.level].good_length,t.nice_match=ho[t.level].nice_length,t.max_chain_length=ho[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=de-1,t.match_available=0,t.ins_h=0};function o2(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=As,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(X0*2),this.dyn_dtree=new Uint16Array((2*Y0+1)*2),this.bl_tree=new Uint16Array((2*K0+1)*2),di(this.dyn_ltree),di(this.dyn_dtree),di(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(J0+1),this.heap=new Uint16Array(2*th+1),di(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*th+1),di(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ao=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==da&&n.status!==fh&&n.status!==eh&&n.status!==nh&&n.status!==rh&&n.status!==ih&&n.status!==Ui&&n.status!==lo?1:0},Wc=t=>{if(Ao(t))return qi(t,Ar);t.total_in=t.total_out=0,t.data_type=H0;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?fh:n.wrap?da:Ui,t.adler=n.wrap===2?0:1,n.last_flush=-2,C0(n),pn},Gc=t=>{let n=Wc(t);return n===pn&&a2(t.state),n},s2=(t,n)=>Ao(t)||t.state.wrap!==2?Ar:(t.state.gzhead=n,pn),Vc=(t,n,e,r,i,a)=>{if(!t)return Ar;let h=1;if(n===j0&&(n=6),r<0?(h=0,r=-r):r>15&&(h=2,r-=16),i<1||i>W0||e!==As||r<8||r>15||n<0||n>9||a<0||a>U0||r===8&&h!==1)return qi(t,Ar);r===8&&(r=9);let l=new o2;return t.state=l,l.strm=t,l.status=da,l.wrap=h,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+de-1)/de),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=n,l.strategy=a,l.method=e,Gc(t)},l2=(t,n)=>Vc(t,n,As,G0,V0,q0),h2=(t,n)=>{if(Ao(t)||n>$f||n<0)return t?qi(t,Ar):Ar;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===lo&&n!==Xn)return qi(t,t.avail_out===0?Ul:Ar);let r=e.last_flush;if(e.last_flush=n,e.pending!==0){if(zn(t),t.avail_out===0)return e.last_flush=-1,pn}else if(t.avail_in===0&&Kf(n)<=Kf(r)&&n!==Xn)return qi(t,Ul);if(e.status===lo&&t.avail_in!==0)return qi(t,Ul);if(e.status===da&&e.wrap===0&&(e.status=Ui),e.status===da){let i=As+(e.w_bits-8<<4)<<8,a=-1;if(e.strategy>=ps||e.level<2?a=0:e.level<6?a=1:e.level===6?a=2:a=3,i|=a<<6,e.strstart!==0&&(i|=Q0),i+=31-i%31,so(e,i),e.strstart!==0&&(so(e,t.adler>>>16),so(e,t.adler&65535)),t.adler=1,e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===fh){if(t.adler=0,we(e,31),we(e,139),we(e,8),e.gzhead)we(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),we(e,e.gzhead.time&255),we(e,e.gzhead.time>>8&255),we(e,e.gzhead.time>>16&255),we(e,e.gzhead.time>>24&255),we(e,e.level===9?2:e.strategy>=ps||e.level<2?4:0),we(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(we(e,e.gzhead.extra.length&255),we(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=on(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=eh;else if(we(e,0),we(e,0),we(e,0),we(e,0),we(e,0),we(e,e.level===9?2:e.strategy>=ps||e.level<2?4:0),we(e,t2),e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===eh){if(e.gzhead.extra){let i=e.pending,a=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+a>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex+=l,zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0,a-=l}let h=new Uint8Array(e.gzhead.extra);e.pending_buf.set(h.subarray(e.gzindex,e.gzindex+a),e.pending),e.pending+=a,e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=nh}if(e.status===nh){if(e.gzhead.name){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.name.length?a=e.gzhead.name.charCodeAt(e.gzindex++)&255:a=0,we(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=rh}if(e.status===rh){if(e.gzhead.comment){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.comment.length?a=e.gzhead.comment.charCodeAt(e.gzindex++)&255:a=0,we(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i))}e.status=ih}if(e.status===ih){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(zn(t),e.pending!==0))return e.last_flush=-1,pn;we(e,t.adler&255),we(e,t.adler>>8&255),t.adler=0}if(e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(t.avail_in!==0||e.lookahead!==0||n!==mi&&e.status!==lo){let i=e.level===0?Hc(e,n):e.strategy===ps?i2(e,n):e.strategy===z0?r2(e,n):ho[e.level].func(e,n);if((i===Wi||i===ba)&&(e.status=lo),i===Ln||i===Wi)return t.avail_out===0&&(e.last_flush=-1),pn;if(i===va&&(n===D0?T0(e):n!==$f&&(Ql(e,0,0,!1),n===M0&&(di(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),zn(t),t.avail_out===0))return e.last_flush=-1,pn}return n!==Xn?pn:e.wrap<=0?Yf:(e.wrap===2?(we(e,t.adler&255),we(e,t.adler>>8&255),we(e,t.adler>>16&255),we(e,t.adler>>24&255),we(e,t.total_in&255),we(e,t.total_in>>8&255),we(e,t.total_in>>16&255),we(e,t.total_in>>24&255)):(so(e,t.adler>>>16),so(e,t.adler&65535)),zn(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?pn:Yf)},f2=t=>{if(Ao(t))return Ar;let n=t.state.status;return t.state=null,n===Ui?qi(t,R0):pn},c2=(t,n)=>{let e=n.length;if(Ao(t))return Ar;let r=t.state,i=r.wrap;if(i===2||i===1&&r.status!==da||r.lookahead)return Ar;if(i===1&&(t.adler=bo(t.adler,n,e,0)),r.wrap=0,e>=r.w_size){i===0&&(di(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(n.subarray(e-r.w_size,e),0),n=c,e=r.w_size}let a=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,pa(r);r.lookahead>=de;){let c=r.strstart,u=r.lookahead-(de-1);do r.ins_h=vi(r,r.ins_h,r.window[c+de-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=de-1,pa(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=de-1,r.match_available=0,t.next_in=h,t.input=l,t.avail_in=a,r.wrap=i,pn},u2=l2,d2=Vc,p2=Gc,g2=Wc,m2=s2,v2=h2,b2=f2,w2=c2,y2="pako deflate (from Nodeca project)",co={deflateInit:u2,deflateInit2:d2,deflateReset:p2,deflateResetKeep:g2,deflateSetHeader:m2,deflate:v2,deflateEnd:b2,deflateSetDictionary:w2,deflateInfo:y2},_2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),x2=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let r in e)_2(e,r)&&(t[r]=e[r])}}return t},A2=t=>{let n=0;for(let r=0,i=t.length;r<i;r++)n+=t[r].length;let e=new Uint8Array(n);for(let r=0,i=0,a=t.length;r<a;r++){let h=t[r];e.set(h,i),i+=h.length}return e},Ns={assign:x2,flattenChunks:A2},Zc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Zc=!1}var wo=new Uint8Array(256);for(let t=0;t<256;t++)wo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;wo[254]=wo[254]=1;var N2=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,i,a,h=t.length,l=0;for(i=0;i<h;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),a=0,i=0;a<l;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),e<128?n[a++]=e:e<2048?(n[a++]=192|e>>>6,n[a++]=128|e&63):e<65536?(n[a++]=224|e>>>12,n[a++]=128|e>>>6&63,n[a++]=128|e&63):(n[a++]=240|e>>>18,n[a++]=128|e>>>12&63,n[a++]=128|e>>>6&63,n[a++]=128|e&63);return n},L2=(t,n)=>{if(n<65534&&t.subarray&&Zc)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},S2=(t,n)=>{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,i,a=new Array(e*2);for(i=0,r=0;r<e;){let h=t[r++];if(h<128){a[i++]=h;continue}let l=wo[h];if(l>4){a[i++]=65533,r+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&r<e;)h=h<<6|t[r++]&63,l--;if(l>1){a[i++]=65533;continue}h<65536?a[i++]=h:(h-=65536,a[i++]=55296|h>>10&1023,a[i++]=56320|h&1023)}return L2(a,i)},k2=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+wo[t[e]]>n?e:n},yo={string2buf:N2,buf2string:S2,utf8border:k2};function P2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var $c=P2,Yc=Object.prototype.toString,{Z_NO_FLUSH:I2,Z_SYNC_FLUSH:F2,Z_FULL_FLUSH:E2,Z_FINISH:C2,Z_OK:_s,Z_STREAM_END:O2,Z_DEFAULT_COMPRESSION:T2,Z_DEFAULT_STRATEGY:D2,Z_DEFLATED:M2}=ma;function No(t){this.options=Ns.assign({level:T2,method:M2,chunkSize:16384,windowBits:15,memLevel:8,strategy:D2},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $c,this.strm.avail_out=0;let e=co.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==_s)throw new Error(Hi[e]);if(n.header&&co.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=yo.string2buf(n.dictionary):Yc.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,e=co.deflateSetDictionary(this.strm,r),e!==_s)throw new Error(Hi[e]);this._dict_set=!0}}No.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?C2:I2,typeof t=="string"?e.input=yo.string2buf(t):Yc.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(a===F2||a===E2)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(i=co.deflate(e,a),i===O2)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),i=co.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_s;if(e.avail_out===0){this.onData(e.output);continue}if(a>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};No.prototype.onData=function(t){this.chunks.push(t)};No.prototype.onEnd=function(t){t===_s&&(this.result=Ns.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function ch(t,n){let e=new No(n);if(e.push(t,!0),e.err)throw e.msg||Hi[e.err];return e.result}function R2(t,n){return n=n||{},n.raw=!0,ch(t,n)}function j2(t,n){return n=n||{},n.gzip=!0,ch(t,n)}var B2=No,z2=ch,U2=R2,q2=j2,H2=ma,W2={Deflate:B2,deflate:z2,deflateRaw:U2,gzip:q2,constants:H2},gs=16209,G2=16191,V2=function(n,e){let r,i,a,h,l,c,u,g,y,A,p,F,P,D,L,H,q,j,rt,mt,ut,Y,R,tt,S=n.state;r=n.next_in,R=n.input,i=r+(n.avail_in-5),a=n.next_out,tt=n.output,h=a-(e-n.avail_out),l=a+(n.avail_out-257),c=S.dmax,u=S.wsize,g=S.whave,y=S.wnext,A=S.window,p=S.hold,F=S.bits,P=S.lencode,D=S.distcode,L=(1<<S.lenbits)-1,H=(1<<S.distbits)-1;t:do{F<15&&(p+=R[r++]<<F,F+=8,p+=R[r++]<<F,F+=8),q=P[p&L];e:for(;;){if(j=q>>>24,p>>>=j,F-=j,j=q>>>16&255,j===0)tt[a++]=q&65535;else if(j&16){rt=q&65535,j&=15,j&&(F<j&&(p+=R[r++]<<F,F+=8),rt+=p&(1<<j)-1,p>>>=j,F-=j),F<15&&(p+=R[r++]<<F,F+=8,p+=R[r++]<<F,F+=8),q=D[p&H];n:for(;;){if(j=q>>>24,p>>>=j,F-=j,j=q>>>16&255,j&16){if(mt=q&65535,j&=15,F<j&&(p+=R[r++]<<F,F+=8,F<j&&(p+=R[r++]<<F,F+=8)),mt+=p&(1<<j)-1,mt>c){n.msg="invalid distance too far back",S.mode=gs;break t}if(p>>>=j,F-=j,j=a-h,mt>j){if(j=mt-j,j>g&&S.sane){n.msg="invalid distance too far back",S.mode=gs;break t}if(ut=0,Y=A,y===0){if(ut+=u-j,j<rt){rt-=j;do tt[a++]=A[ut++];while(--j);ut=a-mt,Y=tt}}else if(y<j){if(ut+=u+y-j,j-=y,j<rt){rt-=j;do tt[a++]=A[ut++];while(--j);if(ut=0,y<rt){j=y,rt-=j;do tt[a++]=A[ut++];while(--j);ut=a-mt,Y=tt}}}else if(ut+=y-j,j<rt){rt-=j;do tt[a++]=A[ut++];while(--j);ut=a-mt,Y=tt}for(;rt>2;)tt[a++]=Y[ut++],tt[a++]=Y[ut++],tt[a++]=Y[ut++],rt-=3;rt&&(tt[a++]=Y[ut++],rt>1&&(tt[a++]=Y[ut++]))}else{ut=a-mt;do tt[a++]=tt[ut++],tt[a++]=tt[ut++],tt[a++]=tt[ut++],rt-=3;while(rt>2);rt&&(tt[a++]=tt[ut++],rt>1&&(tt[a++]=tt[ut++]))}}else if((j&64)===0){q=D[(q&65535)+(p&(1<<j)-1)];continue n}else{n.msg="invalid distance code",S.mode=gs;break t}break}}else if((j&64)===0){q=P[(q&65535)+(p&(1<<j)-1)];continue e}else if(j&32){S.mode=G2;break t}else{n.msg="invalid literal/length code",S.mode=gs;break t}break}}while(r<i&&a<l);rt=F>>3,r-=rt,F-=rt<<3,p&=(1<<F)-1,n.next_in=r,n.next_out=a,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=a<l?257+(l-a):257-(a-l),S.hold=p,S.bits=F},ca=15,Xf=852,Jf=592,Qf=0,Hl=1,tc=2,Z2=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),$2=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Y2=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),K2=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),X2=(t,n,e,r,i,a,h,l)=>{let c=l.bits,u=0,g=0,y=0,A=0,p=0,F=0,P=0,D=0,L=0,H=0,q,j,rt,mt,ut,Y=null,R,tt=new Uint16Array(ca+1),S=new Uint16Array(ca+1),O=null,W,U,it;for(u=0;u<=ca;u++)tt[u]=0;for(g=0;g<r;g++)tt[n[e+g]]++;for(p=c,A=ca;A>=1&&tt[A]===0;A--);if(p>A&&(p=A),A===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,l.bits=1,0;for(y=1;y<A&&tt[y]===0;y++);for(p<y&&(p=y),D=1,u=1;u<=ca;u++)if(D<<=1,D-=tt[u],D<0)return-1;if(D>0&&(t===Qf||A!==1))return-1;for(S[1]=0,u=1;u<ca;u++)S[u+1]=S[u]+tt[u];for(g=0;g<r;g++)n[e+g]!==0&&(h[S[n[e+g]]++]=g);if(t===Qf?(Y=O=h,R=20):t===Hl?(Y=Z2,O=$2,R=257):(Y=Y2,O=K2,R=0),H=0,g=0,u=y,ut=a,F=p,P=0,rt=-1,L=1<<p,mt=L-1,t===Hl&&L>Xf||t===tc&&L>Jf)return 1;for(;;){W=u-P,h[g]+1<R?(U=0,it=h[g]):h[g]>=R?(U=O[h[g]-R],it=Y[h[g]-R]):(U=96,it=0),q=1<<u-P,j=1<<F,y=j;do j-=q,i[ut+(H>>P)+j]=W<<24|U<<16|it|0;while(j!==0);for(q=1<<u-1;H&q;)q>>=1;if(q!==0?(H&=q-1,H+=q):H=0,g++,--tt[u]===0){if(u===A)break;u=n[e+h[g]]}if(u>p&&(H&mt)!==rt){for(P===0&&(P=p),ut+=y,F=u-P,D=1<<F;F+P<A&&(D-=tt[F+P],!(D<=0));)F++,D<<=1;if(L+=1<<F,t===Hl&&L>Xf||t===tc&&L>Jf)return 1;rt=H&mt,i[rt]=p<<24|F<<16|ut-a|0}}return H!==0&&(i[ut+H]=u-P<<24|64<<16|0),l.bits=p,0},uo=X2,J2=0,Kc=1,Xc=2,{Z_FINISH:ec,Z_BLOCK:Q2,Z_TREES:ms,Z_OK:Gi,Z_STREAM_END:t5,Z_NEED_DICT:e5,Z_STREAM_ERROR:Jn,Z_DATA_ERROR:Jc,Z_MEM_ERROR:Qc,Z_BUF_ERROR:n5,Z_DEFLATED:nc}=ma,Ls=16180,rc=16181,ic=16182,ac=16183,oc=16184,sc=16185,lc=16186,hc=16187,fc=16188,cc=16189,xs=16190,$r=16191,Wl=16192,uc=16193,Gl=16194,dc=16195,pc=16196,gc=16197,mc=16198,vs=16199,bs=16200,vc=16201,bc=16202,wc=16203,yc=16204,_c=16205,Vl=16206,xc=16207,Ac=16208,De=16209,tu=16210,eu=16211,r5=852,i5=592,a5=15,o5=a5,Nc=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function s5(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Vi=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.mode<Ls||n.mode>eu?1:0},nu=t=>{if(Vi(t))return Jn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=Ls,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(r5),n.distcode=n.distdyn=new Int32Array(i5),n.sane=1,n.back=-1,Gi},ru=t=>{if(Vi(t))return Jn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,nu(t)},iu=(t,n)=>{let e;if(Vi(t))return Jn;let r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Jn:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,ru(t))},au=(t,n)=>{if(!t)return Jn;let e=new s5;t.state=e,e.strm=t,e.window=null,e.mode=Ls;let r=iu(t,n);return r!==Gi&&(t.state=null),r},l5=t=>au(t,o5),Lc=!0,Zl,$l,h5=t=>{if(Lc){Zl=new Int32Array(512),$l=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(uo(Kc,t.lens,0,288,Zl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;uo(Xc,t.lens,0,32,$l,0,t.work,{bits:5}),Lc=!1}t.lencode=Zl,t.lenbits=9,t.distcode=$l,t.distbits=5},ou=(t,n,e,r)=>{let i,a=t.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(n.subarray(e-a.wsize,e),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(n.subarray(e-r,e-r+i),a.wnext),r-=i,r?(a.window.set(n.subarray(e-r,e),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},f5=(t,n)=>{let e,r,i,a,h,l,c,u,g,y,A,p,F,P,D=0,L,H,q,j,rt,mt,ut,Y,R=new Uint8Array(4),tt,S,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vi(t)||!t.output||!t.input&&t.avail_in!==0)return Jn;e=t.state,e.mode===$r&&(e.mode=Wl),h=t.next_out,i=t.output,c=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,y=l,A=c,Y=Gi;t:for(;;)switch(e.mode){case Ls:if(e.wrap===0){e.mode=Wl;break}for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&2&&u===35615){e.wbits===0&&(e.wbits=15),e.check=0,R[0]=u&255,R[1]=u>>>8&255,e.check=on(e.check,R,2,0),u=0,g=0,e.mode=rc;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((u&255)<<8)+(u>>8))%31){t.msg="incorrect header check",e.mode=De;break}if((u&15)!==nc){t.msg="unknown compression method",e.mode=De;break}if(u>>>=4,g-=4,ut=(u&15)+8,e.wbits===0&&(e.wbits=ut),ut>15||ut>e.wbits){t.msg="invalid window size",e.mode=De;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=u&512?cc:$r,u=0,g=0;break;case rc:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.flags=u,(e.flags&255)!==nc){t.msg="unknown compression method",e.mode=De;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=De;break}e.head&&(e.head.text=u>>8&1),e.flags&512&&e.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,e.check=on(e.check,R,2,0)),u=0,g=0,e.mode=ic;case ic:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.time=u),e.flags&512&&e.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,R[2]=u>>>16&255,R[3]=u>>>24&255,e.check=on(e.check,R,4,0)),u=0,g=0,e.mode=ac;case ac:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.xflags=u&255,e.head.os=u>>8),e.flags&512&&e.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,e.check=on(e.check,R,2,0)),u=0,g=0,e.mode=oc;case oc:if(e.flags&1024){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length=u,e.head&&(e.head.extra_len=u),e.flags&512&&e.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,e.check=on(e.check,R,2,0)),u=0,g=0}else e.head&&(e.head.extra=null);e.mode=sc;case sc:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(ut=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(a,a+p),ut)),e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,e.length-=p),e.length))break t;e.length=0,e.mode=lc;case lc:if(e.flags&2048){if(l===0)break t;p=0;do ut=r[a+p++],e.head&&ut&&e.length<65536&&(e.head.name+=String.fromCharCode(ut));while(ut&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,ut)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=hc;case hc:if(e.flags&4096){if(l===0)break t;p=0;do ut=r[a+p++],e.head&&ut&&e.length<65536&&(e.head.comment+=String.fromCharCode(ut));while(ut&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,ut)break t}else e.head&&(e.head.comment=null);e.mode=fc;case fc:if(e.flags&512){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.check&65535)){t.msg="header crc mismatch",e.mode=De;break}u=0,g=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=$r;break;case cc:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}t.adler=e.check=Nc(u),u=0,g=0,e.mode=xs;case xs:if(e.havedict===0)return t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,e5;t.adler=e.check=1,e.mode=$r;case $r:if(n===Q2||n===ms)break t;case Wl:if(e.last){u>>>=g&7,g-=g&7,e.mode=Vl;break}for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}switch(e.last=u&1,u>>>=1,g-=1,u&3){case 0:e.mode=uc;break;case 1:if(h5(e),e.mode=vs,n===ms){u>>>=2,g-=2;break t}break;case 2:e.mode=pc;break;case 3:t.msg="invalid block type",e.mode=De}u>>>=2,g-=2;break;case uc:for(u>>>=g&7,g-=g&7;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((u&65535)!==(u>>>16^65535)){t.msg="invalid stored block lengths",e.mode=De;break}if(e.length=u&65535,u=0,g=0,e.mode=Gl,n===ms)break t;case Gl:e.mode=dc;case dc:if(p=e.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;i.set(r.subarray(a,a+p),h),l-=p,a+=p,c-=p,h+=p,e.length-=p;break}e.mode=$r;break;case pc:for(;g<14;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.nlen=(u&31)+257,u>>>=5,g-=5,e.ndist=(u&31)+1,u>>>=5,g-=5,e.ncode=(u&15)+4,u>>>=4,g-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=De;break}e.have=0,e.mode=gc;case gc:for(;e.have<e.ncode;){for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.lens[O[e.have++]]=u&7,u>>>=3,g-=3}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},Y=uo(J2,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid code lengths set",e.mode=De;break}e.have=0,e.mode=mc;case mc:for(;e.have<e.nlen+e.ndist;){for(;D=e.lencode[u&(1<<e.lenbits)-1],L=D>>>24,H=D>>>16&255,q=D&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(q<16)u>>>=L,g-=L,e.lens[e.have++]=q;else{if(q===16){for(S=L+2;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(u>>>=L,g-=L,e.have===0){t.msg="invalid bit length repeat",e.mode=De;break}ut=e.lens[e.have-1],p=3+(u&3),u>>>=2,g-=2}else if(q===17){for(S=L+3;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=L,g-=L,ut=0,p=3+(u&7),u>>>=3,g-=3}else{for(S=L+7;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=L,g-=L,ut=0,p=11+(u&127),u>>>=7,g-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=De;break}for(;p--;)e.lens[e.have++]=ut}}if(e.mode===De)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=De;break}if(e.lenbits=9,tt={bits:e.lenbits},Y=uo(Kc,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid literal/lengths set",e.mode=De;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},Y=uo(Xc,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,Y){t.msg="invalid distances set",e.mode=De;break}if(e.mode=vs,n===ms)break t;case vs:e.mode=bs;case bs:if(l>=6&&c>=258){t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,V2(t,A),h=t.next_out,i=t.output,c=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,e.mode===$r&&(e.back=-1);break}for(e.back=0;D=e.lencode[u&(1<<e.lenbits)-1],L=D>>>24,H=D>>>16&255,q=D&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(H&&(H&240)===0){for(j=L,rt=H,mt=q;D=e.lencode[mt+((u&(1<<j+rt)-1)>>j)],L=D>>>24,H=D>>>16&255,q=D&65535,!(j+L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=j,g-=j,e.back+=j}if(u>>>=L,g-=L,e.back+=L,e.length=q,H===0){e.mode=_c;break}if(H&32){e.back=-1,e.mode=$r;break}if(H&64){t.msg="invalid literal/length code",e.mode=De;break}e.extra=H&15,e.mode=vc;case vc:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=bc;case bc:for(;D=e.distcode[u&(1<<e.distbits)-1],L=D>>>24,H=D>>>16&255,q=D&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((H&240)===0){for(j=L,rt=H,mt=q;D=e.distcode[mt+((u&(1<<j+rt)-1)>>j)],L=D>>>24,H=D>>>16&255,q=D&65535,!(j+L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=j,g-=j,e.back+=j}if(u>>>=L,g-=L,e.back+=L,H&64){t.msg="invalid distance code",e.mode=De;break}e.offset=q,e.extra=H&15,e.mode=wc;case wc:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.offset+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=De;break}e.mode=yc;case yc:if(c===0)break t;if(p=A-c,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=De;break}p>e.wnext?(p-=e.wnext,F=e.wsize-p):F=e.wnext-p,p>e.length&&(p=e.length),P=e.window}else P=i,F=h-e.offset,p=e.length;p>c&&(p=c),c-=p,e.length-=p;do i[h++]=P[F++];while(--p);e.length===0&&(e.mode=bs);break;case _c:if(c===0)break t;i[h++]=e.length,c--,e.mode=bs;break;case Vl:if(e.wrap){for(;g<32;){if(l===0)break t;l--,u|=r[a++]<<g,g+=8}if(A-=c,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?on(e.check,i,A,h-A):bo(e.check,i,A,h-A)),A=c,e.wrap&4&&(e.flags?u:Nc(u))!==e.check){t.msg="incorrect data check",e.mode=De;break}u=0,g=0}e.mode=xc;case xc:if(e.wrap&&e.flags){for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=De;break}u=0,g=0}e.mode=Ac;case Ac:Y=t5;break t;case De:Y=Jc;break t;case tu:return Qc;case eu:default:return Jn}return t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,(e.wsize||A!==t.avail_out&&e.mode<De&&(e.mode<Vl||n!==ec))&&ou(t,t.output,t.next_out,A-t.avail_out),y-=t.avail_in,A-=t.avail_out,t.total_in+=y,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?on(e.check,i,A,t.next_out-A):bo(e.check,i,A,t.next_out-A)),t.data_type=e.bits+(e.last?64:0)+(e.mode===$r?128:0)+(e.mode===vs||e.mode===Gl?256:0),(y===0&&A===0||n===ec)&&Y===Gi&&(Y=n5),Y},c5=t=>{if(Vi(t))return Jn;let n=t.state;return n.window&&(n.window=null),t.state=null,Gi},u5=(t,n)=>{if(Vi(t))return Jn;let e=t.state;return(e.wrap&2)===0?Jn:(e.head=n,n.done=!1,Gi)},d5=(t,n)=>{let e=n.length,r,i,a;return Vi(t)||(r=t.state,r.wrap!==0&&r.mode!==xs)?Jn:r.mode===xs&&(i=1,i=bo(i,n,e,0),i!==r.check)?Jc:(a=ou(t,n,e,e),a?(r.mode=tu,Qc):(r.havedict=1,Gi))},p5=ru,g5=iu,m5=nu,v5=l5,b5=au,w5=f5,y5=c5,_5=u5,x5=d5,A5="pako inflate (from Nodeca project)",Kr={inflateReset:p5,inflateReset2:g5,inflateResetKeep:m5,inflateInit:v5,inflateInit2:b5,inflate:w5,inflateEnd:y5,inflateGetHeader:_5,inflateSetDictionary:x5,inflateInfo:A5};function N5(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var L5=N5,su=Object.prototype.toString,{Z_NO_FLUSH:S5,Z_FINISH:k5,Z_OK:_o,Z_STREAM_END:Yl,Z_NEED_DICT:Kl,Z_STREAM_ERROR:P5,Z_DATA_ERROR:Sc,Z_MEM_ERROR:I5}=ma;function Lo(t){this.options=Ns.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $c,this.strm.avail_out=0;let e=Kr.inflateInit2(this.strm,n.windowBits);if(e!==_o)throw new Error(Hi[e]);if(this.header=new L5,Kr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=yo.string2buf(n.dictionary):su.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Kr.inflateSetDictionary(this.strm,n.dictionary),e!==_o)))throw new Error(Hi[e])}Lo.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,h,l;if(this.ended)return!1;for(n===~~n?h=n:h=n===!0?k5:S5,su.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),a=Kr.inflate(e,h),a===Kl&&i&&(a=Kr.inflateSetDictionary(e,i),a===_o?a=Kr.inflate(e,h):a===Sc&&(a=Kl));e.avail_in>0&&a===Yl&&e.state.wrap>0&&t[e.next_in]!==0;)Kr.inflateReset(e),a=Kr.inflate(e,h);switch(a){case P5:case Sc:case Kl:case I5:return this.onEnd(a),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||a===Yl))if(this.options.to==="string"){let c=yo.utf8border(e.output,e.next_out),u=e.next_out-c,g=yo.buf2string(e.output,c);e.next_out=u,e.avail_out=r-u,u&&e.output.set(e.output.subarray(c,c+u),0),this.onData(g)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(a===_o&&l===0)){if(a===Yl)return a=Kr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Lo.prototype.onData=function(t){this.chunks.push(t)};Lo.prototype.onEnd=function(t){t===_o&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ns.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function uh(t,n){let e=new Lo(n);if(e.push(t),e.err)throw e.msg||Hi[e.err];return e.result}function F5(t,n){return n=n||{},n.raw=!0,uh(t,n)}var E5=Lo,C5=uh,O5=F5,T5=uh,D5=ma,M5={Inflate:E5,inflate:C5,inflateRaw:O5,ungzip:T5,constants:D5},{Deflate:wp,deflate:yp,deflateRaw:_p,gzip:xp}=W2,{Inflate:R5,inflate:j5,inflateRaw:Ap,ungzip:Np}=M5;var dh=R5,lu=j5;var fu=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;fu[t]=n}var hu=4294967295;function B5(t,n,e){let r=t;for(let i=0;i<e;i++)r=fu[(r^n[i])&255]^r>>>8;return r}function z5(t,n){return(B5(hu,t,n)^hu)>>>0}function ph(t,n,e){let r=t.readUint32(),i=z5(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(i!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${i}`)}function Ss(t,n,e){for(let r=0;r<e;r++)n[r]=t[r]}function ks(t,n,e,r){let i=0;for(;i<r;i++)n[i]=t[i];for(;i<e;i++)n[i]=t[i]+n[i-r]&255}function Ps(t,n,e,r){let i=0;if(e.length===0)for(;i<r;i++)n[i]=t[i];else for(;i<r;i++)n[i]=t[i]+e[i]&255}function Is(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+(n[a-i]>>1)&255}else{for(;a<i;a++)n[a]=t[a]+(e[a]>>1)&255;for(;a<r;a++)n[a]=t[a]+(n[a-i]+e[a]>>1)&255}}function Fs(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+n[a-i]&255}else{for(;a<i;a++)n[a]=t[a]+e[a]&255;for(;a<r;a++)n[a]=t[a]+U5(n[a-i],e[a],e[a-i])&255}}function U5(t,n,e){let r=t+n-e,i=Math.abs(r-t),a=Math.abs(r-n),h=Math.abs(r-e);return i<=a&&i<=h?t:a<=h?n:e}function cu(t,n,e,r,i,a){switch(t){case 0:Ss(n,e,i);break;case 1:ks(n,e,i,a);break;case 2:Ps(n,e,r,i);break;case 3:Is(n,e,r,i,a);break;case 4:Fs(n,e,r,i,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}var q5=new Uint16Array([255]),H5=new Uint8Array(q5.buffer),W5=H5[0]===255;function uu(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(a/8)*i,c=new Uint8Array(r*e*l),u=0;for(let g=0;g<7;g++){let y=h[g],A=Math.ceil((e-y.x)/y.xStep),p=Math.ceil((r-y.y)/y.yStep);if(A<=0||p<=0)continue;let F=A*l,P=new Uint8Array(F);for(let D=0;D<p;D++){let L=n[u++],H=n.subarray(u,u+F);u+=F;let q=new Uint8Array(F);cu(L,H,q,P,F,l),P.set(q);for(let j=0;j<A;j++){let rt=y.x+j*y.xStep,mt=y.y+D*y.yStep;if(!(rt>=e||mt>=r))for(let ut=0;ut<l;ut++)c[(mt*e+rt)*l+ut]=q[j*l+ut]}}}if(a===16){let g=new Uint16Array(c.buffer);if(W5)for(let y=0;y<g.length;y++)g[y]=G5(g[y]);return g}else return c}function G5(t){return(t&255)<<8|t>>8&255}var V5=new Uint16Array([255]),Z5=new Uint8Array(V5.buffer),$5=Z5[0]===255,Y5=new Uint8Array(0);function gh(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=Math.ceil(a/8)*i,l=Math.ceil(a/8*i*e),c=new Uint8Array(r*l),u=Y5,g=0,y,A;for(let p=0;p<r;p++){switch(y=n.subarray(g+1,g+1+l),A=c.subarray(p*l,(p+1)*l),n[g]){case 0:Ss(y,A,l);break;case 1:ks(y,A,l,h);break;case 2:Ps(y,A,u,l);break;case 3:Is(y,A,u,l,h);break;case 4:Fs(y,A,u,l,h);break;default:throw new Error(`Unsupported filter: ${n[g]}`)}u=A,g+=l+1}if(a===16){let p=new Uint16Array(c.buffer);if($5)for(let F=0;F<p.length;F++)p[F]=K5(p[F]);return p}else return c}function K5(t){return(t&255)<<8|t>>8&255}var Es=Uint8Array.of(137,80,78,71,13,10,26,10);function mh(t){if(!du(t.readBytes(Es.length)))throw new Error("wrong PNG signature")}function du(t){if(t.length<Es.length)return!1;for(let n=0;n<Es.length;n++)if(t[n]!==Es[n])return!1;return!0}var pu="tEXt",J5=0,gu=new TextDecoder("latin1");function Q5(t){if(ed(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var td=/^[\u0000-\u00FF]*$/;function ed(t){if(!td.test(t))throw new Error("invalid latin1 text")}function mu(t,n,e){let r=vh(n);t[r]=nd(n,e-r.length-1)}function vh(t){for(t.mark();t.readByte()!==J5;);let n=t.offset;t.reset();let e=gu.decode(t.readBytes(n-t.offset-1));return t.skip(1),Q5(e),e}function nd(t,n){return gu.decode(t.readBytes(n))}var Sn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},So={UNKNOWN:-1,DEFLATE:0},Cs={UNKNOWN:-1,ADAPTIVE:0},ko={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Po={NONE:0,BACKGROUND:1,PREVIOUS:2},Os={SOURCE:0,OVER:1};var Io=class extends oo{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new dh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=So.UNKNOWN,this._filterMethod=Cs.UNKNOWN,this._interlaceMethod=ko.UNKNOWN,this._colorType=Sn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(mh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(mh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case pu:mu(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ph(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ph(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=rd(this.readUint8());let e=this.readUint8();this._colorType=e;let r;switch(e){case Sn.GREYSCALE:r=1;break;case Sn.TRUECOLOUR:r=3;break;case Sn.INDEXED_COLOUR:r=1;break;case Sn.GREYSCALE_ALPHA:r=2;break;case Sn.TRUECOLOUR_ALPHA:r=4;break;case Sn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==So.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let r=[];this._palette=r;for(let i=0;i<e;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Sn.GREYSCALE:case Sn.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case Sn.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){let r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case Sn.UNKNOWN:case Sn.GREYSCALE_ALPHA:case Sn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){let e=vh(this),r=this.readUint8();if(r!==So.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let i=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:lu(i)}}decodepHYs(){let n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){let e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=gh({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{let i=this._apng.frames.at(n-1);this.disposeFrame(r,i,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case Po.NONE:break;case Po.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let a=0;a<this._png.width;a++){let h=(i*n.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[h+l]=0}break;case Po.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){let r=1<<this._png.depth,i=(a,h)=>{let l=((a+e.yOffset)*this._png.width+e.xOffset+h)*this._png.channels,c=(a*e.width+h)*this._png.channels;return{index:l,frameIndex:c}};switch(e.blendOp){case Os.SOURCE:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:c}=i(a,h);for(let u=0;u<this._png.channels;u++)n.data[l+u]=e.data[c+u]}break;case Os.OVER:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:c}=i(a,h);for(let u=0;u<this._png.channels;u++){let g=e.data[c+this._png.channels-1]/r,y=u%(this._png.channels-1)===0?1:e.data[c+u],A=Math.floor(g*y+(1-g)*n.data[l+u]);n.data[l+u]+=A}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Cs.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ko.NO_INTERLACE)this._png.data=gh({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ko.ADAM7)this._png.data=uu({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Po.NONE,blendOp:Os.SOURCE,data:n}),this._inflator=new dh,this._writingDataChunks=!1}};function rd(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var vu;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(vu||(vu={}));function bu(t,n){return new Io(t,n).decode()}var $t=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function bh(){$t.console&&typeof $t.console.log=="function"&&$t.console.log.apply($t.console,arguments)}var Pe={log:bh,warn:function(t){$t.console&&(typeof $t.console.warn=="function"?$t.console.warn.apply($t.console,arguments):bh.call(null,arguments))},error:function(t){$t.console&&(typeof $t.console.error=="function"?$t.console.error.apply($t.console,arguments):bh(t))}};function wh(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Zi(r.response,n,e)},r.onerror=function(){Pe.error("could not download file")},r.send()}function wu(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function Ts(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Zi=$t.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=$t.URL||$t.webkitURL,i=document.createElement("a");n=n||t.name||"download",i.download=n,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?wu(i.href)?wh(t,n,e):Ts(i,i.target="_blank"):Ts(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Ts(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(wu(t))wh(t,n,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ts(r)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Le(a)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(t,e),n)}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return wh(t,n,e);var i=t.type==="application/octet-stream",a=/constructor/i.test($t.HTMLElement)||$t.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||i&&a)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(t)}else{var c=$t.URL||$t.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){c.revokeObjectURL(u)},4e4)}});function Hu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var i=e[r].re,a=e[r].process,h=i.exec(t);h&&(n=a(h),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u}}var js=$t.atob.bind($t),yu=$t.btoa.bind($t);function yh(t,n){var e=t[0],r=t[1],i=t[2],a=t[3];e=vn(e,r,i,a,n[0],7,-680876936),a=vn(a,e,r,i,n[1],12,-389564586),i=vn(i,a,e,r,n[2],17,606105819),r=vn(r,i,a,e,n[3],22,-1044525330),e=vn(e,r,i,a,n[4],7,-176418897),a=vn(a,e,r,i,n[5],12,1200080426),i=vn(i,a,e,r,n[6],17,-1473231341),r=vn(r,i,a,e,n[7],22,-45705983),e=vn(e,r,i,a,n[8],7,1770035416),a=vn(a,e,r,i,n[9],12,-1958414417),i=vn(i,a,e,r,n[10],17,-42063),r=vn(r,i,a,e,n[11],22,-1990404162),e=vn(e,r,i,a,n[12],7,1804603682),a=vn(a,e,r,i,n[13],12,-40341101),i=vn(i,a,e,r,n[14],17,-1502002290),e=bn(e,r=vn(r,i,a,e,n[15],22,1236535329),i,a,n[1],5,-165796510),a=bn(a,e,r,i,n[6],9,-1069501632),i=bn(i,a,e,r,n[11],14,643717713),r=bn(r,i,a,e,n[0],20,-373897302),e=bn(e,r,i,a,n[5],5,-701558691),a=bn(a,e,r,i,n[10],9,38016083),i=bn(i,a,e,r,n[15],14,-660478335),r=bn(r,i,a,e,n[4],20,-405537848),e=bn(e,r,i,a,n[9],5,568446438),a=bn(a,e,r,i,n[14],9,-1019803690),i=bn(i,a,e,r,n[3],14,-187363961),r=bn(r,i,a,e,n[8],20,1163531501),e=bn(e,r,i,a,n[13],5,-1444681467),a=bn(a,e,r,i,n[2],9,-51403784),i=bn(i,a,e,r,n[7],14,1735328473),e=wn(e,r=bn(r,i,a,e,n[12],20,-1926607734),i,a,n[5],4,-378558),a=wn(a,e,r,i,n[8],11,-2022574463),i=wn(i,a,e,r,n[11],16,1839030562),r=wn(r,i,a,e,n[14],23,-35309556),e=wn(e,r,i,a,n[1],4,-1530992060),a=wn(a,e,r,i,n[4],11,1272893353),i=wn(i,a,e,r,n[7],16,-155497632),r=wn(r,i,a,e,n[10],23,-1094730640),e=wn(e,r,i,a,n[13],4,681279174),a=wn(a,e,r,i,n[0],11,-358537222),i=wn(i,a,e,r,n[3],16,-722521979),r=wn(r,i,a,e,n[6],23,76029189),e=wn(e,r,i,a,n[9],4,-640364487),a=wn(a,e,r,i,n[12],11,-421815835),i=wn(i,a,e,r,n[15],16,530742520),e=yn(e,r=wn(r,i,a,e,n[2],23,-995338651),i,a,n[0],6,-198630844),a=yn(a,e,r,i,n[7],10,1126891415),i=yn(i,a,e,r,n[14],15,-1416354905),r=yn(r,i,a,e,n[5],21,-57434055),e=yn(e,r,i,a,n[12],6,1700485571),a=yn(a,e,r,i,n[3],10,-1894986606),i=yn(i,a,e,r,n[10],15,-1051523),r=yn(r,i,a,e,n[1],21,-2054922799),e=yn(e,r,i,a,n[8],6,1873313359),a=yn(a,e,r,i,n[15],10,-30611744),i=yn(i,a,e,r,n[6],15,-1560198380),r=yn(r,i,a,e,n[13],21,1309151649),e=yn(e,r,i,a,n[4],6,-145523070),a=yn(a,e,r,i,n[11],10,-1120210379),i=yn(i,a,e,r,n[2],15,718787259),r=yn(r,i,a,e,n[9],21,-343485551),t[0]=wi(e,t[0]),t[1]=wi(r,t[1]),t[2]=wi(i,t[2]),t[3]=wi(a,t[3])}function Gs(t,n,e,r,i,a){return n=wi(wi(n,t),wi(r,a)),wi(n<<i|n>>>32-i,e)}function vn(t,n,e,r,i,a,h){return Gs(n&e|~n&r,t,n,i,a,h)}function bn(t,n,e,r,i,a,h){return Gs(n&r|e&~r,t,n,i,a,h)}function wn(t,n,e,r,i,a,h){return Gs(n^e^r,t,n,i,a,h)}function yn(t,n,e,r,i,a,h){return Gs(e^(n|~r),t,n,i,a,h)}function Wu(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)yh(r,id(t.substring(n-64,n)));t=t.substring(n-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)i[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(yh(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*e,yh(r,i),r}function id(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var _u="0123456789abcdef".split("");function ad(t){for(var n="",e=0;e<4;e++)n+=_u[t>>8*e+4&15]+_u[t>>8*e&15];return n}function od(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Sh(t){return Wu(t).map(od).join("")}var sd=(function(t){for(var n=0;n<t.length;n++)t[n]=ad(t[n]);return t.join("")})(Wu("hello"))!="5d41402abc4b2a76b9719d911017c592";function wi(t,n){if(sd){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function kh(t,n){var e,r,i,a;if(t!==e){for(var h=(i=t,a=1+(256/t.length|0),new Array(a+1).join(i)),l=[],c=0;c<256;c++)l[c]=c;var u=0;for(c=0;c<256;c++){var g=l[c];u=(u+g+h.charCodeAt(c))%256,l[c]=l[u],l[u]=g}e=t,r=l}else l=r;var y=n.length,A=0,p=0,F="";for(c=0;c<y;c++)p=(p+(g=l[A=(A+1)%256]))%256,l[A]=l[p],l[p]=g,h=l[(l[A]+l[p])%256],F+=String.fromCharCode(n.charCodeAt(c)^h);return F}var xu={print:4,modify:8,copy:16,"annot-forms":32};function _a(t,n,e,r){this.v=1,this.r=2;var i=192;t.forEach(function(l){if(xu.perm!==void 0)throw new Error("Invalid permission: "+l);i+=xu[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var a=(n+this.padding).substr(0,32),h=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,h),this.P=-(1+(255^i)),this.encryptionKey=Sh(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=kh(this.encryptionKey,this.padding)}function xa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var i=t.charCodeAt(r);n+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return n}function Au(t){if(Le(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,r,i){if(i=i||!1,typeof e!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var a=Math.random().toString(35);return n[e][a]=[r,!!i],a},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in n[e]){var h=n[e][a];try{h[0].apply(t,r)}catch(l){$t.console&&Pe.error("jsPDF PubSub Error",l.message,l)}h[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Hs(t){if(!(this instanceof Hs))return new Hs(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Gu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function $i(t,n,e,r,i){if(!(this instanceof $i))return new $i(t,n,e,r,i);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Gu.call(this,r,i)}function Aa(t,n,e,r,i){if(!(this instanceof Aa))return new Aa(t,n,e,r,i);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Gu.call(this,r,i)}function Mt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],h=[],l=1,c=16,u="S",g=null;Le(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,i=t.format||i,a=t.compress||t.compressPdf||a,(g=t.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),h=t.filters||(a===!0?["FlateEncode"]:h),r=r||"mm",e=(""+(e||"P")).toLowerCase();var y=t.putOnlyUsedFonts||!1,A={},p={internal:{},__private__:{}};p.__private__.PubSub=Au;var F="1.3",P=p.__private__.getPdfVersion=function(){return F};p.__private__.setPdfVersion=function(f){F=f};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return D};var L=p.__private__.getPageFormat=function(f){return D[f]};i=i||"a4";var H="compat",q="advanced",j=H;function rt(){this.saveGraphicsState(),I(new Vt(ee,0,0,-ee,0,Ii()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),u="n",j=q}function mt(){this.restoreGraphicsState(),u="S",j=H}var ut=p.__private__.combineFontStyleAndFontWeight=function(f,v){if(f=="bold"&&v=="normal"||f=="bold"&&v==400||f=="normal"&&v=="italic"||f=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(f=v==400||v==="normal"?f==="italic"?"italic":"normal":v!=700&&v!=="bold"||f!=="normal"?(v==700?"bold":v)+""+f:"bold"),f};p.advancedAPI=function(f){var v=j===H;return v&&rt.call(this),typeof f!="function"||(f(this),v&&mt.call(this)),this},p.compatAPI=function(f){var v=j===q;return v&&mt.call(this),typeof f!="function"||(f(this),v&&rt.call(this)),this},p.isAdvancedAPI=function(){return j===q};var Y,R=function(f){if(j!==q)throw new Error(f+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=p.roundToPrecision=p.__private__.roundToPrecision=function(f,v){var T=n||v;if(isNaN(f)||isNaN(T))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return f.toFixed(T).replace(/0+$/,"")};Y=p.hpf=p.__private__.hpf=typeof c=="number"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,c)}:c==="smart"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,f>-1&&f<1?16:5)}:function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,16)};var S=p.f2=p.__private__.f2=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f2");return tt(f,2)},O=p.__private__.f3=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f3");return tt(f,3)},W=p.scale=p.__private__.scale=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.scale");return j===H?f*ee:j===q?f:void 0},U=function(f){return W((function(v){return j===H?Ii()-v:j===q?v:void 0})(f))};p.__private__.setPrecision=p.setPrecision=function(f){typeof parseInt(f,10)=="number"&&(n=parseInt(f,10))};var it,st="00000000000000000000000000000000",ht=p.__private__.getFileId=function(){return st},nt=p.__private__.setFileId=function(f){return st=f!==void 0&&/^[a-fA-F0-9]{32}$/.test(f)?f.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(Je=new _a(g.userPermissions,g.userPassword,g.ownerPassword,st)),st};p.setFileId=function(f){return nt(f),this},p.getFileId=function(){return ht()};var ct=p.__private__.convertDateToPDFDate=function(f){var v=f.getTimezoneOffset(),T=v<0?"+":"-",z=Math.floor(Math.abs(v/60)),K=Math.abs(v%60),dt=[T,B(z),"'",B(K),"'"].join("");return["D:",f.getFullYear(),B(f.getMonth()+1),B(f.getDate()),B(f.getHours()),B(f.getMinutes()),B(f.getSeconds()),dt].join("")},At=p.__private__.convertPDFDateToDate=function(f){var v=parseInt(f.substr(2,4),10),T=parseInt(f.substr(6,2),10)-1,z=parseInt(f.substr(8,2),10),K=parseInt(f.substr(10,2),10),dt=parseInt(f.substr(12,2),10),vt=parseInt(f.substr(14,2),10);return new Date(v,T,z,K,dt,vt,0)},wt=p.__private__.setCreationDate=function(f){var v;if(f===void 0&&(f=new Date),f instanceof Date)v=ct(f);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(f))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=f}return it=v},x=p.__private__.getCreationDate=function(f){var v=it;return f==="jsDate"&&(v=At(it)),v};p.setCreationDate=function(f){return wt(f),this},p.getCreationDate=function(f){return x(f)};var M,B=p.__private__.padd2=function(f){return("0"+parseInt(f)).slice(-2)},G=p.__private__.padd2Hex=function(f){return("00"+(f=f.toString())).substr(f.length)},$=0,J=[],at=[],ot=0,gt=[],xt=[],kt=!1,St=at;p.__private__.setCustomOutputDestination=function(f){kt=!0,St=f};var Bt=function(f){kt||(St=f)};p.__private__.resetCustomOutputDestination=function(){kt=!1,St=at};var I=p.__private__.out=function(f){return f=f.toString(),ot+=f.length+1,St.push(f),St},Lt=p.__private__.write=function(f){return I(arguments.length===1?f.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(f){for(var v=f.length,T=new ArrayBuffer(v),z=new Uint8Array(T);v--;)z[v]=f.charCodeAt(v);return T},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Ht};var yt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(f){return yt=j===q?f/ee:f,this};var Wt,It=p.__private__.getFontSize=p.getFontSize=function(){return j===H?yt:yt*ee},qt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(f){return qt=f,this},p.__private__.getR2L=p.getR2L=function(){return qt};var zt,ye=p.__private__.setZoomMode=function(f){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(f))Wt=f;else if(isNaN(f)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(f)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+f+'" is not recognized.');Wt=f}else Wt=parseInt(f,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(f){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(f)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+f+'" is not recognized.');zt=f};p.__private__.getPageMode=function(){return zt};var ce=p.__private__.setLayoutMode=function(f){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(f)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+f+'" is not recognized.');he=f};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(f,v,T){return ye(f),ce(v),Jt(T),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(f){if(Object.keys(fe).indexOf(f)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[f]},p.__private__.getDocumentProperties=function(){return fe},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(f){for(var v in fe)fe.hasOwnProperty(v)&&f[v]&&(fe[v]=f[v]);return this},p.__private__.setDocumentProperty=function(f,v){if(Object.keys(fe).indexOf(f)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[f]=v};var Tt,ee,jt,Ue,ge,oe={},se={},Oe=[],Ut={},Ie={},Zt={},Qt={},Te=null,le=0,Gt=[],_e=new Au(p),_i=t.hotfixes||[],gn={},Pr={},ur=[],Vt=function f(v,T,z,K,dt,vt){if(!(this instanceof f))return new f(v,T,z,K,dt,vt);isNaN(v)&&(v=1),isNaN(T)&&(T=0),isNaN(z)&&(z=0),isNaN(K)&&(K=1),isNaN(dt)&&(dt=0),isNaN(vt)&&(vt=0),this._matrix=[v,T,z,K,dt,vt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(f){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Y).join(f)},Vt.prototype.multiply=function(f){var v=f.sx*this.sx+f.shy*this.shx,T=f.sx*this.shy+f.shy*this.sy,z=f.shx*this.sx+f.sy*this.shx,K=f.shx*this.shy+f.sy*this.sy,dt=f.tx*this.sx+f.ty*this.shx+this.tx,vt=f.tx*this.shy+f.ty*this.sy+this.ty;return new Vt(v,T,z,K,dt,vt)},Vt.prototype.decompose=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty,vt=Math.sqrt(f*f+v*v),Et=(f/=vt)*T+(v/=vt)*z;T-=f*Et,z-=v*Et;var Dt=Math.sqrt(T*T+z*z);return Et/=Dt,f*(z/=Dt)<v*(T/=Dt)&&(f=-f,v=-v,Et=-Et,vt=-vt),{scale:new Vt(vt,0,0,Dt,0,0),translate:new Vt(1,0,0,1,K,dt),rotate:new Vt(f,v,-v,f,0,0),skew:new Vt(1,0,Et,1,0,0)}},Vt.prototype.toString=function(f){return this.join(" ")},Vt.prototype.inversed=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty,vt=1/(f*z-v*T),Et=z*vt,Dt=-v*vt,Yt=-T*vt,ne=f*vt;return new Vt(Et,Dt,Yt,ne,-Et*K-Yt*dt,-Dt*K-ne*dt)},Vt.prototype.applyToPoint=function(f){var v=f.x*this.sx+f.y*this.shx+this.tx,T=f.x*this.shy+f.y*this.sy+this.ty;return new Dr(v,T)},Vt.prototype.applyToRectangle=function(f){var v=this.applyToPoint(f),T=this.applyToPoint(new Dr(f.x+f.w,f.y+f.h));return new Ra(v.x,v.y,T.x-v.x,T.y-v.y)},Vt.prototype.clone=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty;return new Vt(f,v,T,z,K,dt)},p.Matrix=Vt;var Ir=p.matrixMult=function(f,v){return v.multiply(f)},Fr=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Fr;var qn=function(f,v){if(!Ie[f]){var T=(v instanceof $i?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);v.id=T,Ie[f]=T,Ut[T]=v,_e.publish("addPattern",v)}};p.ShadingPattern=$i,p.TilingPattern=Aa,p.addShadingPattern=function(f,v){return R("addShadingPattern()"),qn(f,v),this},p.beginTilingPattern=function(f){R("beginTilingPattern()"),ja(f.boundingBox[0],f.boundingBox[1],f.boundingBox[2]-f.boundingBox[0],f.boundingBox[3]-f.boundingBox[1],f.matrix)},p.endTilingPattern=function(f,v){R("endTilingPattern()"),v.stream=xt[M].join(`
6
6
  `),qn(f,v),_e.publish("endTilingPattern",v),ur.pop().restore()};var Hn,Re=p.__private__.newObject=function(){var f=an();return ln(f,!0),f},an=p.__private__.newObjectDeferred=function(){return $++,J[$]=function(){return ot},$},ln=function(f,v){return v=typeof v=="boolean"&&v,J[f]=ot,v&&I(f+" 0 obj"),f},xi=p.__private__.newAdditionalObject=function(){var f={objId:an(),content:""};return gt.push(f),f},Xr=an(),tr=an(),dr=p.__private__.decodeColorString=function(f){var v=f.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var T=parseFloat(v[0]);v=[T,T,T,"r"]}for(var z="#",K=0;K<3;K++)z+=("0"+Math.floor(255*parseFloat(v[K])).toString(16)).slice(-2);return z},er=p.__private__.encodeColorString=function(f){var v;typeof f=="string"&&(f={ch1:f});var T=f.ch1,z=f.ch2,K=f.ch3,dt=f.ch4,vt=f.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof T=="string"&&T.charAt(0)!=="#"){var Et=new Hu(T);if(Et.ok)T=Et.toHex();else if(!/^\d*\.?\d*$/.test(T))throw new Error('Invalid color "'+T+'" passed to jsPDF.encodeColorString.')}if(typeof T=="string"&&/^#[0-9A-Fa-f]{3}$/.test(T)&&(T="#"+T[1]+T[1]+T[2]+T[2]+T[3]+T[3]),typeof T=="string"&&/^#[0-9A-Fa-f]{6}$/.test(T)){var Dt=parseInt(T.substr(1),16);T=Dt>>16&255,z=Dt>>8&255,K=255&Dt}if(z===void 0||dt===void 0&&T===z&&z===K)v=typeof T=="string"?T+" "+vt[0]:f.precision===2?S(T/255)+" "+vt[0]:O(T/255)+" "+vt[0];else if(dt===void 0||Le(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",vt[1]].join(" ");v=typeof T=="string"?[T,z,K,vt[1]].join(" "):f.precision===2?[S(T/255),S(z/255),S(K/255),vt[1]].join(" "):[O(T/255),O(z/255),O(K/255),vt[1]].join(" ")}else v=typeof T=="string"?[T,z,K,dt,vt[2]].join(" "):f.precision===2?[S(T),S(z),S(K),S(dt),vt[2]].join(" "):[O(T),O(z),O(K),O(dt),vt[2]].join(" ");return v},nr=p.__private__.getFilters=function(){return h},Wn=p.__private__.putStream=function(f){var v=(f=f||{}).data||"",T=f.filters||nr(),z=f.alreadyAppliedFilters||[],K=f.addLength1||!1,dt=v.length,vt=f.objectId,Et=function(Qe){return Qe};if(g!==null&&vt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Et=Je.encryptor(vt,0));var Dt={};T===!0&&(T=["FlateEncode"]);var Yt=f.additionalKeyValues||[],ne=(Dt=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(v,T):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(Dt.data.length!==0&&(Yt.push({key:"Length",value:Dt.data.length}),K===!0&&Yt.push({key:"Length1",value:dt})),ne.length!=0)if(ne.split("/").length-1==1)Yt.push({key:"Filter",value:ne});else{Yt.push({key:"Filter",value:"["+ne+"]"});for(var me=0;me<Yt.length;me+=1)if(Yt[me].key==="DecodeParms"){for(var Me=[],Ke=0;Ke<Dt.reverseChain.split("/").length-1;Ke+=1)Me.push("null");Me.push(Yt[me].value),Yt[me].value="["+Me.join(" ")+"]"}}I("<<");for(var Fe=0;Fe<Yt.length;Fe++)I("/"+Yt[Fe].key+" "+Yt[Fe].value);I(">>"),Dt.data.length!==0&&(I("stream"),I(Et(Dt.data)),I("endstream"))},Ai=p.__private__.putPage=function(f){var v=f.number,T=f.data,z=f.objId,K=f.contentsObjId;ln(z,!0),I("<</Type /Page"),I("/Parent "+f.rootDictionaryObjId+" 0 R"),I("/Resources "+f.resourceDictionaryObjId+" 0 R"),I("/MediaBox ["+parseFloat(Y(f.mediaBox.bottomLeftX))+" "+parseFloat(Y(f.mediaBox.bottomLeftY))+" "+Y(f.mediaBox.topRightX)+" "+Y(f.mediaBox.topRightY)+"]"),f.cropBox!==null&&I("/CropBox ["+Y(f.cropBox.bottomLeftX)+" "+Y(f.cropBox.bottomLeftY)+" "+Y(f.cropBox.topRightX)+" "+Y(f.cropBox.topRightY)+"]"),f.bleedBox!==null&&I("/BleedBox ["+Y(f.bleedBox.bottomLeftX)+" "+Y(f.bleedBox.bottomLeftY)+" "+Y(f.bleedBox.topRightX)+" "+Y(f.bleedBox.topRightY)+"]"),f.trimBox!==null&&I("/TrimBox ["+Y(f.trimBox.bottomLeftX)+" "+Y(f.trimBox.bottomLeftY)+" "+Y(f.trimBox.topRightX)+" "+Y(f.trimBox.topRightY)+"]"),f.artBox!==null&&I("/ArtBox ["+Y(f.artBox.bottomLeftX)+" "+Y(f.artBox.bottomLeftY)+" "+Y(f.artBox.topRightX)+" "+Y(f.artBox.topRightY)+"]"),typeof f.userUnit=="number"&&f.userUnit!==1&&I("/UserUnit "+f.userUnit),_e.publish("putPage",{objId:z,pageContext:Gt[v],pageNumber:v,page:T}),I("/Contents "+K+" 0 R"),I(">>"),I("endobj");var dt=T.join(`
7
7
  `);return j===q&&(dt+=`
@@ -41,7 +41,7 @@ T* `):f.join(` Tj
41
41
  `),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=Ft.RadioButton.Cross.YesNormal,n.D[t]=Ft.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=Ft.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(Ft.internal.getWidth(t)-2)+" "+Xt(Ft.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),e.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),e.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),e.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(`
42
42
  `),n},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=Ft.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Ft.internal.getWidth(t))+" "+Xt(Ft.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Xt(Ft.internal.getWidth(t)-2)+" "+Xt(Ft.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),r.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),r.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),r.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(`
43
43
  `),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(Ft.internal.getWidth(t))+" "+Xt(Ft.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
44
- `),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Ft.internal.getWidth(t),e=Ft.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},Ft.internal.getWidth=function(t){var n=0;return Le(t)==="object"&&(n=Nu(t.Rect[2])),n},Ft.internal.getHeight=function(t){var n=0;return Le(t)==="object"&&(n=Nu(t.Rect[3])),n};var md=ze.addField=function(t){if(gd(this,t),!(t instanceof fr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=Na,ze.AcroFormListBox=La,ze.AcroFormComboBox=Sa,ze.AcroFormEditBox=Bs,ze.AcroFormButton=sn,ze.AcroFormPushButton=zs,ze.AcroFormRadioButton=ka,ze.AcroFormCheckBox=Us,ze.AcroFormTextField=Yi,ze.AcroFormPasswordField=qs,ze.AcroFormAppearance=Ft,ze.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Bs,Button:sn,PushButton:zs,RadioButton:ka,CheckBox:Us,TextField:Yi,PasswordField:qs,Appearance:Ft},Mt.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Bs,Button:sn,PushButton:zs,RadioButton:ka,CheckBox:Us,TextField:Yi,PasswordField:qs,Appearance:Ft};var vg=Mt.AcroForm;function Yu(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(S,O){var W,U,it,st,ht,nt=e;if((O=O||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(mt(S))for(ht in r)for(it=r[ht],W=0;W<it.length;W+=1){for(st=!0,U=0;U<it[W].length;U+=1)if(it[W][U]!==void 0&&it[W][U]!==S[U]){st=!1;break}if(st===!0){nt=ht;break}}else for(ht in r)for(it=r[ht],W=0;W<it.length;W+=1){for(st=!0,U=0;U<it[W].length;U+=1)if(it[W][U]!==void 0&&it[W][U]!==S.charCodeAt(U)){st=!1;break}if(st===!0){nt=ht;break}}return nt===e&&O!==e&&(nt=O),nt},a=function S(O){for(var W=this.internal.write,U=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:O.width}),st.push({key:"Height",value:O.height}),O.colorSpace===L.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===L.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var ht="",nt=0,ct=O.transparency.length;nt<ct;nt++)ht+=O.transparency[nt]+" "+O.transparency[nt]+" ";st.push({key:"Mask",value:"["+ht+"]"})}O.sMask!==void 0&&st.push({key:"SMask",value:O.objectId+1+" 0 R"});var At=O.filter!==void 0?["/"+O.filter]:void 0;if(U({data:O.data,additionalKeyValues:st,alreadyAppliedFilters:At,objectId:O.objectId}),W("endobj"),"sMask"in O&&O.sMask!==void 0){var wt,x=(wt=O.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:O.bitsPerComponent,M={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:O.sMask};"filter"in O&&(M.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(O.width),M.filter=O.filter),S.call(this,M)}if(O.colorSpace===L.INDEXED){var B=this.internal.newObject();U({data:Y(new Uint8Array(O.palette)),objectId:B}),W("endobj")}},h=function(){var S=this.internal.collections[n+"images"];for(var O in S)a.call(this,S[O])},l=function(){var S,O=this.internal.collections[n+"images"],W=this.internal.write;for(var U in O)W("/I"+(S=O[U]).index,S.objectId,"0","R")},c=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var S=this.internal.collections[n+"images"];return c.call(this),S},g=function(){return Object.keys(this.internal.collections[n+"images"]).length},y=function(S){return typeof t["process"+S.toUpperCase()]=="function"},A=function(S){return Le(S)==="object"&&S.nodeType===1},p=function(S,O){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var W=""+S.getAttribute("src");if(W.indexOf("data:image/")===0)return js(unescape(W).split("base64,").pop());var U=t.loadFile(W,!0);if(U!==void 0)return U}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var it;switch(O){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return js(S.toDataURL(it,1).split("base64,").pop())}},F=function(S){var O=this.internal.collections[n+"images"];if(O){for(var W in O)if(S===O[W].alias)return O[W]}},P=function(S,O,W){return S||O||(S=-96,O=-96),S<0&&(S=-1*W.width*72/S/this.internal.scaleFactor),O<0&&(O=-1*W.height*72/O/this.internal.scaleFactor),S===0&&(S=O*W.width/W.height),O===0&&(O=S*W.height/W.width),[S,O]},D=function(S,O,W,U,it,st){var ht=P.call(this,W,U,it),nt=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,At=u.call(this);if(W=ht[0],U=ht[1],At[it.index]=it,st){st*=Math.PI/180;var wt=Math.cos(st),x=Math.sin(st),M=function(G){return G.toFixed(4)},B=[M(wt),M(x),M(-1*x),M(wt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(S),ct(O+U),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([nt(W),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(W),"0","0",nt(U),nt(S),ct(O+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},L=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var H=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},q=t.__addimage__.sHashCode=function(S){var O,W,U=0;if(typeof S=="string")for(W=S.length,O=0;O<W;O++)U=(U<<5)-U+S.charCodeAt(O),U|=0;else if(mt(S))for(W=S.byteLength/2,O=0;O<W;O++)U=(U<<5)-U+S[O],U|=0;return U},j=t.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var O=!0;return S.length===0&&(O=!1),S.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(O=!1),O},rt=t.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var O=S.indexOf(",");return O<0?null:S.substring(0,O).trim().endsWith("base64")?S.substring(O+1):null};t.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var mt=t.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},ut=t.__addimage__.binaryStringToUint8Array=function(S){for(var O=S.length,W=new Uint8Array(O),U=0;U<O;U++)W[U]=S.charCodeAt(U);return W},Y=t.__addimage__.arrayBufferToBinaryString=function(S){for(var O="",W=mt(S)?S:new Uint8Array(S),U=0;U<W.length;U+=8192)O+=String.fromCharCode.apply(null,W.subarray(U,U+8192));return O};t.addImage=function(){var S,O,W,U,it,st,ht,nt,ct;if(typeof arguments[1]=="number"?(O=e,W=arguments[1],U=arguments[2],it=arguments[3],st=arguments[4],ht=arguments[5],nt=arguments[6],ct=arguments[7]):(O=arguments[1],W=arguments[2],U=arguments[3],it=arguments[4],st=arguments[5],ht=arguments[6],nt=arguments[7],ct=arguments[8]),Le(S=arguments[0])==="object"&&!A(S)&&"imageData"in S){var At=S;S=At.imageData,O=At.format||O||e,W=At.x||W||0,U=At.y||U||0,it=At.w||At.width||it,st=At.h||At.height||st,ht=At.alias||ht,nt=At.compression||nt,ct=At.rotation||At.angle||ct}var wt=this.internal.getFilters();if(nt===void 0&&wt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(W)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var x=R.call(this,S,O,ht,nt);return D.call(this,W,U,it,st,x,ct),this};var R=function(S,O,W,U){var it,st,ht;if(typeof S=="string"&&i(S)===e){S=unescape(S);var nt=tt(S,!1);(nt!==""||(nt=t.loadFile(S,!0))!==void 0)&&(S=nt)}if(A(S)&&(S=p(S,O)),O=i(S,O),!y(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ht=W)==null||ht.length===0)&&(W=(function(ct){return typeof ct=="string"||mt(ct)?q(ct):mt(ct.data)?q(ct.data):null})(S)),(it=F.call(this,W))||(S instanceof Uint8Array||O==="RGBA"||(st=S,S=ut(S)),it=this["process"+O.toUpperCase()](S,g.call(this),W,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in t.image_compression?ct:H.NONE})(U),st)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},tt=t.__addimage__.convertBase64ToBinaryString=function(S,O){O=typeof O!="boolean"||O;var W,U="";if(typeof S=="string"){var it;W=(it=rt(S))!==null&&it!==void 0?it:S;try{U=js(W)}catch(st){if(O)throw j(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(S){var O,W,U="";if(A(S)&&(S=p(S)),typeof S=="string"&&i(S)===e&&((U=tt(S,!1))===""&&(U=t.loadFile(S)||""),S=U),W=i(S),!y(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(S instanceof Uint8Array||(S=ut(S)),!(O=this["process"+W.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=W,O}})(Mt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Mt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,i,a,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,g=!1,y=0;y<u.length&&!g;y++)switch((r=u[y]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var A=0;A<u.length;A++){r=u[A];var p=this.internal.pdfEscape,F=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var P=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(P.objId),H=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(L(r.contents))+")",a+=" /Popup "+D.objId+" 0 R",a+=" /P "+c.objId+" 0 R",a+=" /T ("+p(L(H))+") >>",P.content=a;var q=P.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+q,r.open&&(a+=" /Open true"),a+=" >>",D.content=a,this.internal.write(P.objId,"0 R",D.objId,"0 R");break;case"freetext":i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var j=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(F(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+j+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var rt=this.annotations._nameMap[r.options.name];r.options.pageNumber=rt.page,r.options.top=rt.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(F(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var mt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+mt+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,i,a,h){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:u(r),w:c(e+i),h:u(r+a)},options:h,type:"link"})},t.textWithLink=function(e,r,i,a){var h,l,c=this.getTextWidth(e),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var g=this.splitTextToSize(e,l).length;h=Math.ceil(u*g)}else l=c,h=u;return this.text(e,r,i,a),i+=.2*u,a.align==="center"&&(r-=c/2),a.align==="right"&&(r-=c),this.link(r,i-u,l,h,a),c},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Mt.API),(function(t){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(P){return n[P.charCodeAt(0)]!==void 0},h=t.__arabicParser__.isArabicLetter=function(P){return typeof P=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P)},l=t.__arabicParser__.isArabicEndLetter=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(P){return h(P)&&i.indexOf(P.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length==4},y=t.__arabicParser__.resolveLigatures=function(P){var D=0,L=e,H="",q=0;for(D=0;D<P.length;D+=1)L[P.charCodeAt(D)]!==void 0?(q++,typeof(L=L[P.charCodeAt(D)])=="number"&&(H+=String.fromCharCode(L),L=e,q=0),D===P.length-1&&(L=e,H+=P.charAt(D-(q-1)),D-=q-1,q=0)):(L=e,H+=P.charAt(D-q),D-=q,q=0);return H};t.__arabicParser__.isArabicDiacritic=function(P){return P!==void 0&&r[P.charCodeAt(0)]!==void 0};var A=t.__arabicParser__.getCorrectForm=function(P,D,L){return h(P)?a(P)===!1?-1:!u(P)||!h(D)&&!h(L)||!h(L)&&l(D)||l(P)&&!h(D)||l(P)&&c(D)||l(P)&&l(D)?0:g(P)&&h(D)&&!l(D)&&h(L)&&u(L)?3:l(P)||!h(L)?1:2:-1},p=function(P){var D=0,L=0,H=0,q="",j="",rt="",mt=(P=P||"").split("\\s+"),ut=[];for(D=0;D<mt.length;D+=1){for(ut.push(""),L=0;L<mt[D].length;L+=1)q=mt[D][L],j=mt[D][L-1],rt=mt[D][L+1],h(q)?(H=A(q,j,rt),ut[D]+=H!==-1?String.fromCharCode(n[q.charCodeAt(0)][H]):q):ut[D]+=q;ut[D]=y(ut[D])}return ut.join(" ")},F=t.__arabicParser__.processArabic=t.processArabic=function(){var P,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(D)){var H=0;for(L=[],H=0;H<D.length;H+=1)Array.isArray(D[H])?L.push([p(D[H][0]),D[H][1],D[H][2]]):L.push([p(D[H])]);P=L}else P=p(D);return typeof arguments[0]=="string"?P:(arguments[0].text=P,arguments[0])};t.events.push(["preProcessText",F])})(Mt.API),Mt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,r){var i;if((e=e||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Mt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(P){c=P}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(P){u=P}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(P){g=P}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(P){y=P}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(P){A=P}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(P){p=P}});var F=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return F},set:function(P){F=P}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},t.getTextDimensions=function(c,u){r.call(this);var g=(u=u||{}).fontSize||this.getFontSize(),y=u.font||this.getFont(),A=u.scaleFactor||this.internal.scaleFactor,p=0,F=0,P=0,D=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var L=u.maxWidth;L>0?typeof c=="string"?c=this.splitTextToSize(c,L):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(q,j){return q.concat(D.splitTextToSize(j,L))},[])):c=Array.isArray(c)?c:[c];for(var H=0;H<c.length;H++)p<(P=this.getStringUnitWidth(c[H],{font:y})*g)&&(p=P);return p!==0&&(F=c.length),{w:p/=A,h:Math.max((F*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new a(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=t.cell=function(){var c;c=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var u=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,y=this.internal.__cell__.margins||n,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===c.lineNumber?(c.x=(u.x||0)+(u.width||0),c.y=u.y||0):u.y+u.height+c.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=y.top,p&&A&&(this.printHeaderRow(c.lineNumber,!0),c.y+=A[0].height)):c.y=u.y+u.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-g,c.y+g,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+g,{align:"center",baseline:"top",maxWidth:c.width-g-g}):this.text(c.text,c.x+g,c.y+g,{align:"left",baseline:"top",maxWidth:c.width-g-g})),this.internal.__cell__.lastCell=c,this};t.table=function(c,u,g,y,A){if(r.call(this),!g)throw new Error("No data for PDF table.");var p,F,P,D,L=[],H=[],q=[],j={},rt={},mt=[],ut=[],Y=(A=A||{}).autoSize||!1,R=A.printHeaders!==!1,tt=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,S=A.margins||Object.assign({width:this.getPageWidth()},n),O=typeof A.padding=="number"?A.padding:3,W=A.headerBackgroundColor||"#c8c8c8",U=A.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=U,this.setFontSize(tt),y==null)H=L=Object.keys(g[0]),q=L.map(function(){return"left"});else if(Array.isArray(y)&&Le(y[0])==="object")for(L=y.map(function(At){return At.name}),H=y.map(function(At){return At.prompt||At.name||""}),q=y.map(function(At){return At.align||"left"}),p=0;p<y.length;p+=1)rt[y[p].name]=.7499990551181103*y[p].width;else Array.isArray(y)&&typeof y[0]=="string"&&(H=L=y,q=L.map(function(){return"left"}));if(Y||Array.isArray(y)&&typeof y[0]=="string")for(p=0;p<L.length;p+=1){for(j[D=L[p]]=g.map(function(At){return At[D]}),this.setFont(void 0,"bold"),mt.push(this.getTextDimensions(H[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),F=j[D],this.setFont(void 0,"normal"),P=0;P<F.length;P+=1)mt.push(this.getTextDimensions(F[P],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);rt[D]=Math.max.apply(null,mt)+O+O,mt=[]}if(R){var it={};for(p=0;p<L.length;p+=1)it[L[p]]={},it[L[p]].text=H[p],it[L[p]].align=q[p];var st=l.call(this,it,rt);ut=L.map(function(At){return new a(c,u,rt[At],st,it[At].text,void 0,it[At].align)}),this.setTableHeaderRow(ut),this.printHeaderRow(1,!1)}var ht=y.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(p=0;p<g.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:g[p]},this);var nt=l.call(this,g[p],rt);for(P=0;P<L.length;P+=1){var ct=g[p][L[P]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:P,data:ct},this),h.call(this,new a(c,u,rt[L[P]],nt,ct,p+2,ht[L[P]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=u,this};var l=function(c,u){var g=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(c).map(function(p){var F=c[p];return this.splitTextToSize(F.hasOwnProperty("text")?F.text:F,u[p]-g-g)},this).map(function(p){return this.getLineHeightFactor()*p.length*y/A+g+g},this).reduce(function(p,F){return Math.max(p,F)},0)};t.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},t.printHeaderRow=function(c,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){g=this.internal.__cell__.tableHeaderRow[p].clone(),u&&(g.y=this.internal.__cell__.margins.top||0,A.push(g)),g.lineNumber=c;var F=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(F)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),e=!1}})(Mt.API);var Ku={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ih=Yu(Xu),Ju=[100,200,300,400,500,600,700,800,900],vd=Yu(Ju);function xh(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Ku[a=a||"normal"]?a:"normal"})(t.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(t.weight),i=(function(a){return typeof Ih[a=a||"normal"]=="number"?a:"normal"})(t.stretch);return{family:n,style:e,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:n,style:[i,e,r].join(" ")}}}function Lu(t,n,e,r){var i;for(i=e;i>=0&&i<n.length;i+=r)if(t[n[i]])return t[n[i]];for(i=e;i>=0&&i<n.length;i-=r)if(t[n[i]])return t[n[i]]}var bd={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Su={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ku(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Pu(t){return t.trimLeft()}function wd(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function yd(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Ms,Iu,Fu,ya,Rs,Eu,Cu,Ou,Ah=["times"];function Tu(t,n,e,r,i){var a=4,h=Mu;switch(i){case Mt.API.image_compression.FAST:a=1,h=Du;break;case Mt.API.image_compression.MEDIUM:a=6,h=Ru;break;case Mt.API.image_compression.SLOW:a=9,h=ju}t=(function(c,u,g,y){for(var A,p=c.length/u,F=new Uint8Array(c.length+p),P=[_d,Du,Mu,Ru,ju],D=0;D<p;D+=1){var L=D*u,H=c.subarray(L,L+u);if(y)F.set(y(H,g,A),L+D);else{for(var q=P.length,j=[],rt=0;rt<q;rt+=1)j[rt]=P[rt](H,g,A);var mt=Ad(j.concat());F.set(j[mt],L+D)}A=H}return F})(t,n,Math.ceil(e*r/8),h);var l=ds(t,{level:a});return Mt.API.__addimage__.arrayBufferToBinaryString(l)}function _d(t){var n=Array.apply([],t);return n.unshift(0),n}function Du(t,n){var e=t.length,r=[];r[0]=1;for(var i=0;i<e;i+=1){var a=t[i-n]||0;r[i+1]=t[i]-a+256&255}return r}function Mu(t,n,e){var r=t.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var h=e&&e[a]||0;i[a+1]=t[a]-h+256&255}return i}function Ru(t,n,e){var r=t.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var h=t[a-n]||0,l=e&&e[a]||0;i[a+1]=t[a]+256-(h+l>>>1)&255}return i}function ju(t,n,e){var r=t.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var h=xd(t[a-n]||0,e&&e[a]||0,e&&e[a-n]||0);i[a+1]=t[a]-h+256&255}return i}function xd(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),i=Math.abs(t-e),a=Math.abs(t+n-e-e);return r<=i&&r<=a?t:i<=a?n:e}function Ad(t){var n=t.map(function(e){return e.reduce(function(r,i){return r+Math.abs(i)},0)});return n.indexOf(Math.min.apply(null,n))}function Nh(t,n,e){var r=n*e,i=Math.floor(r/8),a=16-(r-8*i+e),h=(1<<e)-1;return Qu(t,i)>>a&h}function Bu(t,n,e,r){var i=e*r,a=Math.floor(i/8),h=16-(i-8*a+r),l=(1<<r)-1,c=(n&l)<<h;(function(u,g,y){if(g+1<u.byteLength)u.setUint16(g,y,!1);else{var A=y>>8&255;u.setUint8(g,A)}})(t,a,Qu(t,a)&~(l<<h)&65535|c)}function Qu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function Nd(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,i=t[n++],a=i>>7,h=1<<1+(7&i);t[n++],t[n++];var l=null,c=null;a&&(l=n,c=h,n+=3*h);var u=!0,g=[],y=0,A=null,p=0,F=null;for(this.width=e,this.height=r;u&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,F=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var P=t[n++];y=t[n++]|t[n++]<<8,A=t[n++],1&P||(A=null),p=P>>2&7,n++;break;case 254:for(;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var D=t[n++]|t[n++]<<8,L=t[n++]|t[n++]<<8,H=t[n++]|t[n++]<<8,q=t[n++]|t[n++]<<8,j=t[n++],rt=j>>6&1,mt=1<<1+(7&j),ut=l,Y=c,R=!1;j>>7&&(R=!0,ut=n,Y=mt,n+=3*mt);var tt=n;for(n++;;){var S;if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}g.push({x:D,y:L,width:H,height:q,has_local_palette:R,palette_offset:ut,palette_size:Y,data_offset:tt,data_length:n-tt,transparent_index:A,interlaced:!!rt,delay:y,disposal:p});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return F},this.frameInfo=function(O){if(O<0||O>=g.length)throw new Error("Frame index out of range.");return g[O]},this.decodeAndBlitFrameBGRA=function(O,W){var U=this.frameInfo(O),it=U.width*U.height,st=new Uint8Array(it);zu(t,U.data_offset,st,it);var ht=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),M=4*((U.y+U.height)*e+U.x),B=x,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(B+=G)>=M&&(G=4*At+4*e*($-1),B=x+(ct+At)*($<<1),$>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];W[B++]=kt,W[B++]=xt,W[B++]=gt,W[B++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(O,W){var U=this.frameInfo(O),it=U.width*U.height,st=new Uint8Array(it);zu(t,U.data_offset,st,it);var ht=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),M=4*((U.y+U.height)*e+U.x),B=x,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(B+=G)>=M&&(G=4*At+4*e*($-1),B=x+(ct+At)*($<<1),$>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];W[B++]=gt,W[B++]=xt,W[B++]=kt,W[B++]=255}--wt}}}function zu(t,n,e,r){for(var i=t[n++],a=1<<i,h=a+1,l=h+1,c=i+1,u=(1<<c)-1,g=0,y=0,A=0,p=t[n++],F=new Int32Array(4096),P=null;;){for(;g<16&&p!==0;)y|=t[n++]<<g,g+=8,p===1?p=t[n++]:--p;if(g<c)break;var D=y&u;if(y>>=c,g-=c,D!==a){if(D===h)break;for(var L=D<l?D:P,H=0,q=L;q>a;)q=F[q]>>8,++H;var j=q;if(A+H+(L!==D?1:0)>r)return void Pe.log("Warning, gif stream longer than expected.");e[A++]=j;var rt=A+=H;for(L!==D&&(e[A++]=j),q=L;H--;)q=F[q],e[--rt]=255&q,q>>=8;P!==null&&l<4096&&(F[l++]=P<<8|j,l>=u+1&&c<12&&(++c,u=u<<1|1)),P=D}else l=h+1,u=(1<<(c=i+1))-1,P=null}return A!==r&&Pe.log("Warning, gif stream shorter than expected."),e}function Lh(t){var n,e,r,i,a,h=Math.floor,l=new Array(64),c=new Array(64),u=new Array(64),g=new Array(64),y=new Array(65535),A=new Array(65535),p=new Array(64),F=new Array(64),P=[],D=0,L=7,H=new Array(64),q=new Array(64),j=new Array(64),rt=new Array(256),mt=new Array(2048),ut=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function st(x,M){for(var B=0,G=0,$=new Array,J=1;J<=16;J++){for(var at=1;at<=x[J];at++)$[M[G]]=[],$[M[G]][0]=B,$[M[G]][1]=J,G++,B++;B*=2}return $}function ht(x){for(var M=x[0],B=x[1]-1;B>=0;)M&1<<B&&(D|=1<<L),B--,--L<0&&(D==255?(nt(255),nt(0)):nt(D),L=7,D=0)}function nt(x){P.push(x)}function ct(x){nt(x>>8&255),nt(255&x)}function At(x,M,B,G,$){for(var J,at=$[0],ot=$[240],gt=(function(yt,Wt){var It,qt,zt,ye,he,Jt,ce,fe,Tt,ee,jt=0;for(Tt=0;Tt<8;++Tt){It=yt[jt],qt=yt[jt+1],zt=yt[jt+2],ye=yt[jt+3],he=yt[jt+4],Jt=yt[jt+5],ce=yt[jt+6];var Ue=It+(fe=yt[jt+7]),ge=It-fe,oe=qt+ce,se=qt-ce,Oe=zt+Jt,Ut=zt-Jt,Ie=ye+he,Zt=ye-he,Qt=Ue+Ie,Te=Ue-Ie,le=oe+Oe,Gt=oe-Oe;yt[jt]=Qt+le,yt[jt+4]=Qt-le;var _e=.707106781*(Gt+Te);yt[jt+2]=Te+_e,yt[jt+6]=Te-_e;var _i=.382683433*((Qt=Zt+Ut)-(Gt=se+ge)),gn=.5411961*Qt+_i,Pr=1.306562965*Gt+_i,ur=.707106781*(le=Ut+se),Vt=ge+ur,Ir=ge-ur;yt[jt+5]=Ir+gn,yt[jt+3]=Ir-gn,yt[jt+1]=Vt+Pr,yt[jt+7]=Vt-Pr,jt+=8}for(jt=0,Tt=0;Tt<8;++Tt){It=yt[jt],qt=yt[jt+8],zt=yt[jt+16],ye=yt[jt+24],he=yt[jt+32],Jt=yt[jt+40],ce=yt[jt+48];var Fr=It+(fe=yt[jt+56]),qn=It-fe,Hn=qt+ce,Re=qt-ce,an=zt+Jt,ln=zt-Jt,xi=ye+he,Xr=ye-he,tr=Fr+xi,dr=Fr-xi,er=Hn+an,nr=Hn-an;yt[jt]=tr+er,yt[jt+32]=tr-er;var Wn=.707106781*(nr+dr);yt[jt+16]=dr+Wn,yt[jt+48]=dr-Wn;var Ai=.382683433*((tr=Xr+ln)-(nr=Re+qn)),pr=.5411961*tr+Ai,Ni=1.306562965*nr+Ai,Xi=.707106781*(er=ln+Re),Ji=qn+Xi,Qi=qn-Xi;yt[jt+40]=Qi+pr,yt[jt+24]=Qi-pr,yt[jt+8]=Ji+Ni,yt[jt+56]=Ji-Ni,jt++}for(Tt=0;Tt<64;++Tt)ee=yt[Tt]*Wt[Tt],p[Tt]=ee>0?ee+.5|0:ee-.5|0;return p})(x,M),xt=0;xt<64;++xt)F[ut[xt]]=gt[xt];var kt=F[0]-B;B=F[0],kt==0?ht(G[0]):(ht(G[A[J=32767+kt]]),ht(y[J]));for(var St=63;St>0&&F[St]==0;)St--;if(St==0)return ht(at),B;for(var Bt,I=1;I<=St;){for(var Lt=I;F[I]==0&&I<=St;)++I;var ae=I-Lt;if(ae>=16){Bt=ae>>4;for(var Ht=1;Ht<=Bt;++Ht)ht(ot);ae&=15}J=32767+F[I],ht($[(ae<<4)+A[J]]),ht(y[J]),I++}return St!=63&&ht(at),B}function wt(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(M){for(var B=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],G=0;G<64;G++){var $=h((B[G]*M+50)/100);$=Math.min(Math.max($,1),255),l[ut[G]]=$}for(var J=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],at=0;at<64;at++){var ot=h((J[at]*M+50)/100);ot=Math.min(Math.max(ot,1),255),c[ut[at]]=ot}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)u[xt]=1/(l[ut[xt]]*gt[kt]*gt[St]*8),g[xt]=1/(c[ut[xt]]*gt[kt]*gt[St]*8),xt++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,M){M&&wt(M),P=new Array,D=0,L=7,ct(65496),ct(65504),ct(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ct(1),ct(1),nt(0),nt(0),(function(){ct(65499),ct(132),nt(0);for(var qt=0;qt<64;qt++)nt(l[qt]);nt(1);for(var zt=0;zt<64;zt++)nt(c[zt])})(),(function(qt,zt){ct(65472),ct(17),nt(8),ct(zt),ct(qt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(x.width,x.height),(function(){ct(65476),ct(418),nt(0);for(var qt=0;qt<16;qt++)nt(Y[qt+1]);for(var zt=0;zt<=11;zt++)nt(R[zt]);nt(16);for(var ye=0;ye<16;ye++)nt(tt[ye+1]);for(var he=0;he<=161;he++)nt(S[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(O[Jt+1]);for(var ce=0;ce<=11;ce++)nt(W[ce]);nt(17);for(var fe=0;fe<16;fe++)nt(U[fe+1]);for(var Tt=0;Tt<=161;Tt++)nt(it[Tt])})(),ct(65498),ct(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var B=0,G=0,$=0;D=0,L=7,this.encode.displayName="_encode_";for(var J,at,ot,gt,xt,kt,St,Bt,I,Lt=x.data,ae=x.width,Ht=x.height,yt=4*ae,Wt=0;Wt<Ht;){for(J=0;J<yt;){for(xt=yt*Wt+J,St=-1,Bt=0,I=0;I<64;I++)kt=xt+(Bt=I>>3)*yt+(St=4*(7&I)),Wt+Bt>=Ht&&(kt-=yt*(Wt+1+Bt-Ht)),J+St>=yt&&(kt-=J+St-yt+4),at=Lt[kt++],ot=Lt[kt++],gt=Lt[kt++],H[I]=(mt[at]+mt[ot+256|0]+mt[gt+512|0]>>16)-128,q[I]=(mt[at+768|0]+mt[ot+1024|0]+mt[gt+1280|0]>>16)-128,j[I]=(mt[at+1280|0]+mt[ot+1536|0]+mt[gt+1792|0]>>16)-128;B=At(H,u,B,n,r),G=At(q,g,G,e,i),$=At(j,g,$,e,i),J+=32}Wt+=8}if(L>=0){var It=[];It[1]=L+1,It[0]=(1<<L+1)-1,ht(It)}return ct(65497),new Uint8Array(P)},t=t||50,(function(){for(var x=String.fromCharCode,M=0;M<256;M++)rt[M]=x(M)})(),n=st(Y,R),e=st(O,W),r=st(tt,S),i=st(U,it),(function(){for(var x=1,M=2,B=1;B<=15;B++){for(var G=x;G<M;G++)A[32767+G]=B,y[32767+G]=[],y[32767+G][1]=B,y[32767+G][0]=G;for(var $=-(M-1);$<=-x;$++)A[32767+$]=B,y[32767+$]=[],y[32767+$][1]=B,y[32767+$][0]=M-1+$;x<<=1,M<<=1}})(),(function(){for(var x=0;x<256;x++)mt[x]=19595*x,mt[x+256|0]=38470*x,mt[x+512|0]=7471*x+32768,mt[x+768|0]=-11059*x,mt[x+1024|0]=-21709*x,mt[x+1280|0]=32768*x+8421375,mt[x+1536|0]=-27439*x,mt[x+1792|0]=-5329*x})(),wt(t)}function hr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Uu(t){function n(R){if(!R)throw Error("assert :P")}function e(R,tt,S){for(var O=0;4>O;O++)if(R[tt+O]!=S.charCodeAt(O))return!0;return!1}function r(R,tt,S,O,W){for(var U=0;U<W;U++)R[tt+U]=S[O+U]}function i(R,tt,S,O){for(var W=0;W<O;W++)R[tt+W]=S}function a(R){return new Int32Array(R)}function h(R,tt){for(var S=[],O=0;O<R;O++)S.push(new tt);return S}function l(R,tt){var S=[];return(function O(W,U,it){for(var st=it[U],ht=0;ht<st&&(W.push(it.length>U+1?[]:new tt),!(it.length<U+1));ht++)O(W[ht],U+1,it)})(S,0,R),S}var c=function(){var R=this;function tt(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function S(o,s,d,m,b){n(!(m%d));do o[s+(m-=d)]=b;while(0<m)}function O(o,s,d,m,b){if(n(2328>=b),512>=b)var w=a(512);else if((w=a(b))==null)return 0;return(function(_,N,k,E,V,et){var C,Z,X=N,lt=1<<k,Q=a(16),ft=a(16);for(n(V!=0),n(E!=null),n(_!=null),n(0<k),Z=0;Z<V;++Z){if(15<E[Z])return 0;++Q[E[Z]]}if(Q[0]==V)return 0;for(ft[1]=0,C=1;15>C;++C){if(Q[C]>1<<C)return 0;ft[C+1]=ft[C]+Q[C]}for(Z=0;Z<V;++Z)C=E[Z],0<E[Z]&&(et[ft[C]++]=Z);if(ft[15]==1)return(E=new W).g=0,E.value=et[0],S(_,X,1,lt,E),lt;var pt,_t=-1,bt=lt-1,Rt=0,Pt=1,re=1,Ct=1<<k;for(Z=0,C=1,V=2;C<=k;++C,V<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C])(E=new W).g=C,E.value=et[Z++],S(_,X+Rt,V,Ct,E),Rt=tt(Rt,C)}for(C=k+1,V=2;15>=C;++C,V<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C]){if(E=new W,(Rt&bt)!=_t){for(X+=Ct,pt=1<<(_t=C)-k;15>_t&&!(0>=(pt-=Q[_t]));)++_t,pt<<=1;lt+=Ct=1<<(pt=_t-k),_[N+(_t=Rt&bt)].g=pt+k,_[N+_t].value=X-N-_t}E.g=C-k,E.value=et[Z++],S(_,X+(Rt>>k),V,Ct,E),Rt=tt(Rt,C)}}return Pt!=2*ft[15]-1?0:lt})(o,s,d,m,b,w)}function W(){this.value=this.g=0}function U(){this.value=this.g=0}function it(){this.G=h(5,W),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Di,U)}function st(o,s,d,m){n(o!=null),n(s!=null),n(2147483648>m),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+m,o.Zc=4<=m?d+m-4+1:d,at(o)}function ht(o,s){for(var d=0;0<s--;)d|=gt(o,128)<<s;return d}function nt(o,s){var d=ht(o,s);return ot(o)?-d:d}function ct(o,s,d,m){var b,w=0;for(n(o!=null),n(s!=null),n(4294967288>m),o.Sb=m,o.Ra=0,o.u=0,o.h=0,4<m&&(m=4),b=0;b<m;++b)w+=s[d+b]<<8*b;o.Ra=w,o.bb=m,o.oa=s,o.pa=d}function At(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<ei-8>>>0,++o.bb,o.u-=8;G(o)&&(o.h=1,o.u=0)}function wt(o,s){if(n(0<=s),!o.h&&s<=Cn){var d=B(o)&En[s];return o.u+=s,At(o),d}return o.h=1,o.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(o){return o.Ra>>>(o.u&ei-1)>>>0}function G(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>ei}function $(o,s){o.u=s,o.h=G(o)}function J(o){o.u>=Ur&&(n(o.u>=Ur),At(o))}function at(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ot(o){return ht(o,1)}function gt(o,s){var d=o.Ca;0>o.b&&at(o);var m=o.b,b=d*s>>>8,w=(o.I>>>m>b)+0;for(w?(d-=b,o.I-=b+1<<m>>>0):d=b+1,m=d,b=0;256<=m;)b+=8,m>>=8;return m=7^b+ni[m],o.b-=m,o.Ca=(d<<m)-1,w}function xt(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function St(o,s){return kt(o,s)|o[s+2]<<16}function Bt(o,s){return kt(o,s)|kt(o,s+2)<<16}function I(o,s){var d=1<<s;return n(o!=null),n(0<s),o.X=a(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function Lt(o,s){n(o!=null),n(s!=null),n(o.Xa==s.Xa),r(s.X,0,o.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(o,s,d,m){n(d!=null),n(m!=null);var b=d[0],w=m[0];return b==0&&(b=(o*w+s/2)/s),w==0&&(w=(s*b+o/2)/o),0>=b||0>=w?0:(d[0]=b,m[0]=w,1)}function yt(o,s){return o+(1<<s)-1>>>s}function Wt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function It(o,s){R[s]=function(d,m,b,w,_,N,k){var E;for(E=0;E<_;++E){var V=R[o](N[k+E-1],b,w+E);N[k+E]=Wt(d[m+E],V)}}}function qt(){this.ud=this.hd=this.jd=0}function zt(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function ye(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function he(o,s){return ye(o+(o-s+.5>>1))}function Jt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function ce(o,s,d,m,b,w,_){for(m=w[_-1],d=0;d<b;++d)w[_+d]=m=Wt(o[s+d],m)}function fe(o,s,d,m,b){var w;for(w=0;w<d;++w){var _=o[s+w],N=_>>8&255,k=16711935&(k=(k=16711935&_)+((N<<16)+N));m[b+w]=(4278255360&_)+k>>>0}}function Tt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function ee(o,s,d,m,b,w){var _;for(_=0;_<m;++_){var N=s[d+_],k=N>>>8,E=N,V=255&(V=(V=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));E=255&(E=(E+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(V<<24>>24)>>>5)),b[w+_]=(4278255360&N)+(V<<16)+E}}function jt(o,s,d,m,b){R[s]=function(w,_,N,k,E,V,et,C,Z){for(k=et;k<C;++k)for(et=0;et<Z;++et)E[V++]=b(N[m(w[_++])])},R[o]=function(w,_,N,k,E,V,et){var C=8>>w.b,Z=w.Ea,X=w.K[0],lt=w.w;if(8>C)for(w=(1<<w.b)-1,lt=(1<<C)-1;_<N;++_){var Q,ft=0;for(Q=0;Q<Z;++Q)Q&w||(ft=m(k[E++])),V[et++]=b(X[ft&lt]),ft>>=C}else R["VP8LMapColor"+d](k,E,X,lt,V,et,_,N,Z)}}function Ue(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=w>>16&255,m[b++]=w>>8&255,m[b++]=255&w}}function ge(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=w>>16&255,m[b++]=w>>8&255,m[b++]=255&w,m[b++]=w>>24&255}}function oe(o,s,d,m,b){for(d=s+d;s<d;){var w=(_=o[s++])>>16&240|_>>12&15,_=240&_|_>>28&15;m[b++]=w,m[b++]=_}}function se(o,s,d,m,b){for(d=s+d;s<d;){var w=(_=o[s++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;m[b++]=w,m[b++]=_}}function Oe(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=255&w,m[b++]=w>>8&255,m[b++]=w>>16&255}}function Ut(o,s,d,m,b,w){if(w==0)for(d=s+d;s<d;)xt(m,((w=o[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else r(m,b,o,s,d)}function Ie(o,s){R[s][0]=R[o+"0"],R[s][1]=R[o+"1"],R[s][2]=R[o+"2"],R[s][3]=R[o+"3"],R[s][4]=R[o+"4"],R[s][5]=R[o+"5"],R[s][6]=R[o+"6"],R[s][7]=R[o+"7"],R[s][8]=R[o+"8"],R[s][9]=R[o+"9"],R[s][10]=R[o+"10"],R[s][11]=R[o+"11"],R[s][12]=R[o+"12"],R[s][13]=R[o+"13"],R[s][14]=R[o+"0"],R[s][15]=R[o+"0"]}function Zt(o){return o==ul||o==dl||o==es||o==pl}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Te(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Te,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function _i(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function gn(o,s){var d=o.T,m=s.ba.f.RGBA,b=m.eb,w=m.fb+o.ka*m.A,_=Kn[s.ba.S],N=o.y,k=o.O,E=o.f,V=o.N,et=o.ea,C=o.W,Z=s.cc,X=s.dc,lt=s.Mc,Q=s.Nc,ft=o.ka,pt=o.ka+o.T,_t=o.U,bt=_t+1>>1;for(ft==0?_(N,k,null,null,E,V,et,C,E,V,et,C,b,w,null,null,_t):(_(s.ec,s.fc,N,k,Z,X,lt,Q,E,V,et,C,b,w-m.A,b,w,_t),++d);ft+2<pt;ft+=2)Z=E,X=V,lt=et,Q=C,V+=o.Rc,C+=o.Rc,w+=2*m.A,_(N,(k+=2*o.fa)-o.fa,N,k,Z,X,lt,Q,E,V,et,C,b,w-m.A,b,w,_t);return k+=o.fa,o.j+pt<o.o?(r(s.ec,s.fc,N,k,_t),r(s.cc,s.dc,E,V,bt),r(s.Mc,s.Nc,et,C,bt),d--):1&pt||_(N,k,null,null,E,V,et,C,E,V,et,C,b,w+m.A,null,null,_t),d}function Pr(o,s,d){var m=o.F,b=[o.J];if(m!=null){var w=o.U,_=s.ba.S,N=_==ts||_==es;s=s.ba.f.RGBA;var k=[0],E=o.ka;k[0]=o.T,o.Kb&&(E==0?--k[0]:(--E,b[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-E));var V=s.eb;E=s.fb+E*s.A,o=Hh(m,b[0],o.width,w,k,V,E+(N?0:3),s.A),n(d==k),o&&Zt(_)&&Xa(V,E,N,w,k,s.A)}return 0}function ur(o){var s=o.ma,d=s.ba.S,m=11>d,b=d==Jo||d==Qo||d==ts||d==cl||d==12||Zt(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Ha(s.Oa,o,b?11:12))return 0;if(b&&Zt(d)&&za(),o.da)alert("todo:use_scaling");else{if(m){if(s.Ib=_i,o.Kb){if(d=o.U+1>>1,s.memory=a(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=gn,za()}}else alert("todo:EmitYUV");b&&(s.Jb=Pr,m&&ir())}if(m&&!sf){for(o=0;256>o;++o)k1[o]=89858*(o-128)+rs>>ns,F1[o]=-22014*(o-128)+rs,I1[o]=-45773*(o-128),P1[o]=113618*(o-128)+rs>>ns;for(o=Qa;o<vl;++o)s=76283*(o-16)+rs>>ns,E1[o-Qa]=gr(s,255),C1[o-Qa]=gr(s+8>>4,15);sf=1}return 1}function Vt(o){var s=o.ma,d=o.U,m=o.T;return n(!(1&o.ka)),0>=d||0>=m?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function Ir(o){o.ma.memory=null}function Fr(o,s,d,m){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,m[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function qn(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Hn(o,s){return 120<s?s-120:1<=(d=((d=d1[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function Re(o,s,d){var m=B(d),b=o[s+=255&m].g-8;return 0<b&&($(d,d.u+8),m=B(d),s+=o[s].value,s+=m&(1<<b)-1),$(d,d.u+o[s].g),o[s].value}function an(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,n(8>=d.g),o.g}function ln(o,s,d){var m=o.xc;return n((s=m==0?0:o.vc[o.md*(d>>m)+(s>>m)])<o.Wb),o.Ya[s]}function xi(o,s,d,m){var b=o.ab,w=o.c*s,_=o.C;s=_+s;var N=d,k=m;for(m=o.Ta,d=o.Ua;0<b--;){var E=o.gc[b],V=_,et=s,C=N,Z=k,X=(k=m,N=d,E.Ea);switch(n(V<et),n(et<=E.nc),E.hc){case 2:qe(C,Z,(et-V)*X,k,N);break;case 0:var lt=V,Q=et,ft=k,pt=N,_t=(Ct=E).Ea;lt==0&&(Ga(C,Z,null,null,1,ft,pt),ce(C,Z+1,0,0,_t-1,ft,pt+1),Z+=_t,pt+=_t,++lt);for(var bt=1<<Ct.b,Rt=bt-1,Pt=yt(_t,Ct.b),re=Ct.K,Ct=Ct.w+(lt>>Ct.b)*Pt;lt<Q;){var ue=re,en=Ct,ie=1;for(sa(C,Z,ft,pt-_t,1,ft,pt);ie<_t;){var Ot=(ie&~Rt)+bt;Ot>_t&&(Ot=_t),(0,Za[ue[en++]>>8&15])(C,Z+ +ie,ft,pt+ie-_t,Ot-ie,ft,pt+ie),ie=Ot}Z+=_t,pt+=_t,++lt&Rt||(Ct+=Pt)}et!=E.nc&&r(k,N-X,k,N+(et-V-1)*X,X);break;case 1:for(X=C,Q=Z,_t=(C=E.Ea)-(pt=C&~(ft=(Z=1<<E.b)-1)),lt=yt(C,E.b),bt=E.K,E=E.w+(V>>E.b)*lt;V<et;){for(Rt=bt,Pt=E,re=new qt,Ct=Q+pt,ue=Q+C;Q<Ct;)Tt(Rt[Pt++],re),$a(re,X,Q,Z,k,N),Q+=Z,N+=Z;Q<ue&&(Tt(Rt[Pt++],re),$a(re,X,Q,_t,k,N),Q+=_t,N+=_t),++V&ft||(E+=lt)}break;case 3:if(C==k&&Z==N&&0<E.b){for(Q=k,C=X=N+(et-V)*X-(pt=(et-V)*yt(E.Ea,E.b)),Z=k,ft=N,lt=[],pt=(_t=pt)-1;0<=pt;--pt)lt[pt]=Z[ft+pt];for(pt=_t-1;0<=pt;--pt)Q[C+pt]=lt[pt];$o(E,V,et,k,X,k,N)}else $o(E,V,et,C,Z,k,N)}N=m,k=d}k!=d&&r(m,d,N,k,w)}function Xr(o,s){var d=o.V,m=o.Ba+o.c*o.C,b=s-o.C;if(n(s<=o.l.o),n(16>=b),0<b){var w=o.l,_=o.Ta,N=o.Ua,k=w.width;if(xi(o,b,d,m),b=N=[N],n((d=o.C)<(m=s)),n(w.v<w.va),m>w.o&&(m=w.o),d<w.j){var E=w.j-d;d=w.j,b[0]+=E*k}if(d>=m?d=0:(b[0]+=4*w.v,w.ka=d-w.j,w.U=w.va-w.v,w.T=m-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var V=d.f.RGBA,et=(m=d.S,b=w.U,w=w.T,E=V.eb,V.A),C=w;for(V=V.fb+o.Ma*V.A;0<C--;){var Z=_,X=N,lt=b,Q=E,ft=V;switch(m){case Xo:Ya(Z,X,lt,Q,ft);break;case Jo:ri(Z,X,lt,Q,ft);break;case ul:ri(Z,X,lt,Q,ft),Xa(Q,ft,0,lt,1,0);break;case Kh:Mi(Z,X,lt,Q,ft);break;case Qo:Ut(Z,X,lt,Q,ft,1);break;case dl:Ut(Z,X,lt,Q,ft,1),Xa(Q,ft,0,lt,1,0);break;case ts:Ut(Z,X,lt,Q,ft,0);break;case es:Ut(Z,X,lt,Q,ft,0),Xa(Q,ft,1,lt,1,0);break;case cl:ii(Z,X,lt,Q,ft);break;case pl:ii(Z,X,lt,Q,ft),qh(Q,ft,lt,1,0);break;case Xh:ai(Z,X,lt,Q,ft);break;default:n(0)}N+=k,V+=et}o.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=d.height)}}o.C=s,n(o.C<=o.i)}function tr(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,m=o.Ya[s].H;if(0<d[1][m[1]+0].g||0<d[2][m[2]+0].g||0<d[3][m[3]+0].g)return 0}return 1}function dr(o,s,d,m,b,w){if(o.Z!=0){var _=o.qd,N=o.rd;for(n(li[o.Z]!=null);s<d;++s)li[o.Z](_,N,m,b,m,b,w),_=m,N=b,b+=w;o.qd=_,o.rd=N}}function er(o,s){var d=o.l.ma,m=d.Z==0||d.Z==1?o.l.j:o.C;if(m=o.C<m?m:o.C,n(s<=o.l.o),s>m){var b=o.l.width,w=d.ca,_=d.tb+b*m,N=o.V,k=o.Ba+o.c*m,E=o.gc;n(o.ab==1),n(E[0].hc==3),wr(E[0],m,s,N,k,w,_),dr(d,m,s,w,_,b)}o.C=o.Ma=s}function nr(o,s,d,m,b,w,_){var N=o.$/m,k=o.$%m,E=o.m,V=o.s,et=d+o.$,C=et;b=d+m*b;var Z=d+m*w,X=280+V.ua,lt=o.Pb?N:16777216,Q=0<V.ua?V.Wa:null,ft=V.wc,pt=et<Z?ln(V,k,N):null;n(o.C<w),n(Z<=b);var _t=!1;t:for(;;){for(;_t||et<Z;){var bt=0;if(N>=lt){var Rt=et-d;n((lt=o).Pb),lt.wd=lt.m,lt.xd=Rt,0<lt.s.ua&&Lt(lt.s.Wa,lt.s.vb),lt=N+g1}if(k&ft||(pt=ln(V,k,N)),n(pt!=null),pt.Qb&&(s[et]=pt.qb,_t=!0),!_t)if(J(E),pt.jc){bt=E,Rt=s;var Pt=et,re=pt.pd[B(bt)&Di-1];n(pt.jc),256>re.g?($(bt,bt.u+re.g),Rt[Pt]=re.value,bt=0):($(bt,bt.u+re.g-256),n(256<=re.value),bt=re.value),bt==0&&(_t=!0)}else bt=Re(pt.G[0],pt.H[0],E);if(E.h)break;if(_t||256>bt){if(!_t)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else{if(J(E),_t=Re(pt.G[1],pt.H[1],E),J(E),Rt=Re(pt.G[2],pt.H[2],E),Pt=Re(pt.G[3],pt.H[3],E),E.h)break;s[et]=(Pt<<24|_t<<16|bt<<8|Rt)>>>0}if(_t=!1,++et,++k>=m&&(k=0,++N,_!=null&&N<=w&&!(N%16)&&_(o,N),Q!=null))for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=qn(bt-256,E),Rt=Re(pt.G[4],pt.H[4],E),J(E),Rt=Hn(m,Rt=qn(Rt,E)),E.h)break;if(et-d<Rt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Rt];for(et+=bt,k+=bt;k>=m;)k-=m,++N,_!=null&&N<=w&&!(N%16)&&_(o,N);if(n(et<=b),k&ft&&(pt=ln(V,k,N)),Q!=null)for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<X))break t;for(_t=bt-280,n(Q!=null);C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,n(!(_t>>>(Rt=Q).Xa)),s[bt]=Rt.X[_t],_t=!0}_t||n(E.h==G(E))}if(o.Pb&&E.h&&et<b)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Lt(o.s.vb,o.s.Wa);else{if(E.h)break t;_?.(o,N>w?w:N),o.a=0,o.$=et-d}return 1}return o.a=3,0}function Wn(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,n(o!=null)}function Ai(){var o=new Yt;return o==null?null:(o.a=0,o.xb=tf,Ie("Predictor","VP8LPredictors"),Ie("Predictor","VP8LPredictors_C"),Ie("PredictorAdd","VP8LPredictorsAdd"),Ie("PredictorAdd","VP8LPredictorsAdd_C"),qe=fe,$a=ee,Ya=Ue,ri=ge,ii=oe,ai=se,Mi=Oe,R.VP8LMapColor32b=br,R.VP8LMapColor8b=Va,o)}function pr(o,s,d,m,b){var w=1,_=[o],N=[s],k=m.m,E=m.s,V=null,et=0;t:for(;;){if(d)for(;w&&wt(k,1);){var C=_,Z=N,X=m,lt=1,Q=X.m,ft=X.gc[X.ab],pt=wt(Q,2);if(X.Oc&1<<pt)w=0;else{switch(X.Oc|=1<<pt,ft.hc=pt,ft.Ea=C[0],ft.nc=Z[0],ft.K=[null],++X.ab,n(4>=X.ab),pt){case 0:case 1:ft.b=wt(Q,3)+2,lt=pr(yt(ft.Ea,ft.b),yt(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(Q,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(C[0]=yt(ft.Ea,Rt),ft.b=Rt,_t=lt=pr(bt,1,0,X,ft.K)){var Pt,re=bt,Ct=ft,ue=1<<(8>>Ct.b),en=a(ue);if(en==null)_t=0;else{var ie=Ct.K[0],Ot=Ct.w;for(en[0]=Ct.K[0][0],Pt=1;Pt<1*re;++Pt)en[Pt]=Wt(ie[Ot+Pt],en[Pt-1]);for(;Pt<4*ue;++Pt)en[Pt]=0;Ct.K[0]=null,Ct.K[0]=en,_t=1}}lt=_t;break;case 2:break;default:n(0)}w=lt}}if(_=_[0],N=N[0],w&&wt(k,1)&&!(w=1<=(et=wt(k,4))&&11>=et)){m.a=3;break t}var Nt;if(Nt=w)e:{var We,te,pe,Ce=m,cn=_,xn=N,je=et,mn=d,An=Ce.m,nn=Ce.s,ve=[null],Ae=1,Be=0,Ne=p1[je];n:for(;;){if(mn&&wt(An,1)){var un=wt(An,3)+2,or=yt(cn,un),Ge=yt(xn,un),kn=or*Ge;if(!pr(or,Ge,0,Ce,ve))break n;for(ve=ve[0],nn.xc=un,We=0;We<kn;++We){var ke=ve[We]>>8&65535;ve[We]=ke,ke>=Ae&&(Ae=ke+1)}}if(An.h)break n;for(te=0;5>te;++te){var rn=Jh[te];!te&&0<je&&(rn+=1<<je),Be<rn&&(Be=rn)}var Tn=h(Ae*Ne,W),Nn=Ae,Dn=h(Nn,it);if(Dn==null)var Mn=null;else n(65536>=Nn),Mn=Dn;var Pn=a(Be);if(Mn==null||Pn==null||Tn==null){Ce.a=1;break n}var Rn=Tn;for(We=pe=0;We<Ae;++We){var Ee=Mn[We],jn=Ee.G,sr=Ee.H,ji=0,Wr=1,dn=0;for(te=0;5>te;++te){rn=Jh[te],jn[te]=Rn,sr[te]=pe,!te&&0<je&&(rn+=1<<je);i:{var as,bl=rn,os=Ce,to=Pn,D1=Rn,M1=pe,wl=0,hi=os.m,R1=wt(hi,1);if(i(to,0,0,bl),R1){var j1=wt(hi,1)+1,B1=wt(hi,1),ff=wt(hi,B1==0?1:8);to[ff]=1,j1==2&&(to[ff=wt(hi,8)]=1);var ss=1}else{var cf=a(19),uf=wt(hi,4)+4;if(19<uf){os.a=3;var ls=0;break i}for(as=0;as<uf;++as)cf[u1[as]]=wt(hi,3);var yl=void 0,eo=void 0,df=os,z1=cf,hs=bl,pf=to,_l=0,fi=df.m,gf=8,mf=h(128,W);r:for(;O(mf,0,7,z1,19);){if(wt(fi,1)){var U1=2+2*wt(fi,3);if((yl=2+wt(fi,U1))>hs)break r}else yl=hs;for(eo=0;eo<hs&&yl--;){J(fi);var vf=mf[0+(127&B(fi))];$(fi,fi.u+vf.g);var ha=vf.value;if(16>ha)pf[eo++]=ha,ha!=0&&(gf=ha);else{var q1=ha==16,bf=ha-16,H1=f1[bf],wf=wt(fi,h1[bf])+H1;if(eo+wf>hs)break r;for(var W1=q1?gf:0;0<wf--;)pf[eo++]=W1}}_l=1;break r}_l||(df.a=3),ss=_l}(ss=ss&&!hi.h)&&(wl=O(D1,M1,8,to,bl)),ss&&wl!=0?ls=wl:(os.a=3,ls=0)}if(ls==0)break n;if(Wr&&c1[te]==1&&(Wr=Rn[pe].g==0),ji+=Rn[pe].g,pe+=ls,3>=te){var no,xl=Pn[0];for(no=1;no<rn;++no)Pn[no]>xl&&(xl=Pn[no]);dn+=xl}}if(Ee.nd=Wr,Ee.Qb=0,Wr&&(Ee.qb=(jn[3][sr[3]+0].value<<24|jn[1][sr[1]+0].value<<16|jn[2][sr[2]+0].value)>>>0,ji==0&&256>jn[0][sr[0]+0].value&&(Ee.Qb=1,Ee.qb+=jn[0][sr[0]+0].value<<8)),Ee.jc=!Ee.Qb&&6>dn,Ee.jc){var fs,Gr=Ee;for(fs=0;fs<Di;++fs){var ci=fs,ui=Gr.pd[ci],cs=Gr.G[0][Gr.H[0]+ci];256<=cs.value?(ui.g=cs.g+256,ui.value=cs.value):(ui.g=0,ui.value=0,ci>>=an(cs,8,ui),ci>>=an(Gr.G[1][Gr.H[1]+ci],16,ui),ci>>=an(Gr.G[2][Gr.H[2]+ci],0,ui),an(Gr.G[3][Gr.H[3]+ci],24,ui))}}}nn.vc=ve,nn.Wb=Ae,nn.Ya=Mn,nn.yc=Tn,Nt=1;break e}Nt=0}if(!(w=Nt)){m.a=3;break t}if(0<et){if(E.ua=1<<et,!I(E.Wa,et)){m.a=1,w=0;break t}}else E.ua=0;var Al=m,yf=_,G1=N,Nl=Al.s,Ll=Nl.xc;if(Al.c=yf,Al.i=G1,Nl.md=yt(yf,Ll),Nl.wc=Ll==0?-1:(1<<Ll)-1,d){m.xb=x1;break t}if((V=a(_*N))==null){m.a=1,w=0;break t}w=(w=nr(m,V,0,_,N,N,null))&&!k.h;break t}return w?(b!=null?b[0]=V:(n(V==null),n(d)),m.$=0,d||Wn(E)):Wn(E),w}function Ni(o,s){var d=o.c*o.i,m=d+s+16*s;return n(o.c<=s),o.V=a(m),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Xi(o,s){var d=o.C,m=s-d,b=o.V,w=o.Ba+o.c*d;for(n(s<=o.l.o);0<m;){var _=16<m?16:m,N=o.l.ma,k=o.l.width,E=k*_,V=N.ca,et=N.tb+k*d,C=o.Ta,Z=o.Ua;xi(o,_,b,w),Wh(C,Z,V,et,E),dr(N,d,d+_,V,et,k),m-=_,b+=_*o.c,d+=_}n(d==s),o.C=o.Ma=s}function Ji(){this.ub=this.yd=this.td=this.Rb=0}function Qi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $s(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ia(){this.Yb=(function(){var o=[];return(function s(d,m,b){for(var w=b[m],_=0;_<w&&(d.push(b.length>m+1?[]:0),!(b.length<m+1));_++)s(d[_],m+1,b)})(o,0,[3,11]),o})()}function Fo(){this.jb=a(3),this.Wc=l([4,8],Ia),this.Xc=l([4,17],Ia)}function Eo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function Fa(){this.Na=this.la=0}function Co(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ea(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Oo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Ea),this.aa=0,this.l=new ta}function To(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Do(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Ji,this.Kc=new Qi,this.ed=new Eo,this.Qa=new $s,this.Ic=this.$c=this.Aa=0,this.D=new Oo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,x),this.ia=0,this.pb=h(4,Co),this.Pa=new Fo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new To),this.Hd=0,this.rb=Array(new Fa),this.sb=0,this.wa=Array(new Gn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ea),this.L=this.aa=0,this.gd=l([4,2],Gn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function gr(o,s){return 0>o?0:o>s?s:o}function ta(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ys(){var o=new Do;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Ja||(Ja=ea)),o}function Ye(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function Mo(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function mr(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Ye(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,m=s.w,b=s.ha;if(4>b)return Ye(o,7,"Truncated header.");var w=d[m+0]|d[m+1]<<8|d[m+2]<<16,_=o.Od;if(_.Rb=!(1&w),_.td=w>>1&7,_.yd=w>>4&1,_.ub=w>>5,3<_.td)return Ye(o,3,"Incorrect keyframe parameters.");if(!_.yd)return Ye(o,4,"Frame not displayable.");m+=3,b-=3;var N=o.Kc;if(_.Rb){if(7>b)return Ye(o,7,"cannot parse picture header");if(!Mo(d,m,b))return Ye(o,3,"Bad code word");N.c=16383&(d[m+4]<<8|d[m+3]),N.Td=d[m+4]>>6,N.i=16383&(d[m+6]<<8|d[m+5]),N.Ud=d[m+6]>>6,m+=7,b-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,i((w=o.Pa).jb,0,255,w.jb.length),n((w=o.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,i(w.Zb,0,0,w.Zb.length),i(w.Lb,0,0,w.Lb)}if(_.ub>b)return Ye(o,7,"bad partition length");st(w=o.m,d,m,_.ub),m+=_.ub,b-=_.ub,_.Rb&&(N.Ld=ot(w),N.Kd=ot(w)),N=o.Qa;var k,E=o.Pa;if(n(w!=null),n(N!=null),N.Cb=ot(w),N.Cb){if(N.Bb=ot(w),ot(w)){for(N.Fb=ot(w),k=0;4>k;++k)N.Zb[k]=ot(w)?nt(w,7):0;for(k=0;4>k;++k)N.Lb[k]=ot(w)?nt(w,6):0}if(N.Bb)for(k=0;3>k;++k)E.jb[k]=ot(w)?ht(w,8):255}else N.Bb=0;if(w.Ka)return Ye(o,3,"cannot parse segment header");if((N=o.ed).zd=ot(w),N.Tb=ht(w,6),N.wb=ht(w,3),N.Pc=ot(w),N.Pc&&ot(w)){for(E=0;4>E;++E)ot(w)&&(N.vd[E]=nt(w,6));for(E=0;4>E;++E)ot(w)&&(N.od[E]=nt(w,6))}if(o.L=N.Tb==0?0:N.zd?1:2,w.Ka)return Ye(o,3,"cannot parse filter header");var V=b;if(b=k=m,m=k+V,N=V,o.Xb=(1<<ht(o.m,2))-1,V<3*(E=o.Xb))d=7;else{for(k+=3*E,N-=3*E,V=0;V<E;++V){var et=d[b+0]|d[b+1]<<8|d[b+2]<<16;et>N&&(et=N),st(o.Jc[+V],d,k,et),k+=et,N-=et,b+=3}st(o.Jc[+E],d,k,N),d=k<m?0:5}if(d!=0)return Ye(o,d,"cannot parse partitions");for(d=ht(k=o.m,7),b=ot(k)?nt(k,4):0,m=ot(k)?nt(k,4):0,N=ot(k)?nt(k,4):0,E=ot(k)?nt(k,4):0,k=ot(k)?nt(k,4):0,V=o.Qa,et=0;4>et;++et){if(V.Cb){var C=V.Zb[et];V.Fb||(C+=d)}else{if(0<et){o.pb[et]=o.pb[0];continue}C=d}var Z=o.pb[et];Z.Sc[0]=gl[gr(C+b,127)],Z.Sc[1]=ml[gr(C+0,127)],Z.Eb[0]=2*gl[gr(C+m,127)],Z.Eb[1]=101581*ml[gr(C+N,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=gl[gr(C+E,117)],Z.Qc[1]=ml[gr(C+k,127)],Z.lc=C+k}if(!_.Rb)return Ye(o,4,"Not a key frame.");for(ot(w),_=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(m=0;3>m;++m)for(N=0;11>N;++N)E=gt(w,y1[d][b][m][N])?ht(w,8):b1[d][b][m][N],_.Wc[d][b].Yb[m][N]=E;for(b=0;17>b;++b)_.Xc[d][b]=_.Wc[d][_1[b]]}return o.kc=ot(w),o.kc&&(o.Bd=ht(w,8)),o.cb=1}function ea(o,s,d,m,b,w,_){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!gt(o,N[d+0]))return b;for(;!gt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+1].Yb;if(gt(o,N[d+2])){var E=o,V=0;if(gt(E,(C=N)[(et=d)+3]))if(gt(E,C[et+6])){for(N=0,et=2*(V=gt(E,C[et+8]))+(C=gt(E,C[et+9+V])),V=0,C=m1[et];C[N];++N)V+=V+gt(E,C[N]);V+=3+(8<<et)}else gt(E,C[et+7])?(V=7+2*gt(E,165),V+=gt(E,145)):V=5+gt(E,159);else V=gt(E,C[et+4])?3+gt(E,C[et+5]):2;N=k[2]}else V=1,N=k[1];k=_+v1[b],0>(E=o).b&&at(E);var et,C=E.b,Z=(et=E.Ca>>1)-(E.I>>C)>>31;--E.b,E.Ca+=Z,E.Ca|=1,E.I-=(et+1&Z)<<C,w[k]=((V^Z)-Z)*m[(0<b)+0]}return 16}function Ro(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function Vn(o,s,d,m,b){b=o[s+d+32*m]+(b>>3),o[s+d+32*m]=-256&b?0>b?0:255:b}function Je(o,s,d,m,b,w){Vn(o,s,0,d,m+b),Vn(o,s,1,d,m+w),Vn(o,s,2,d,m-w),Vn(o,s,3,d,m-b)}function Er(o){return(20091*o>>16)+o}function jo(o,s,d,m){var b,w=0,_=a(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],E=(35468*o[s+4]>>16)-Er(o[s+12]),V=Er(o[s+4])+(35468*o[s+12]>>16);_[w+0]=N+V,_[w+1]=k+E,_[w+2]=k-E,_[w+3]=N-V,w+=4,s++}for(b=w=0;4>b;++b)N=(o=_[w+0]+4)+_[w+8],k=o-_[w+8],E=(35468*_[w+4]>>16)-Er(_[w+12]),Vn(d,m,0,0,N+(V=Er(_[w+4])+(35468*_[w+12]>>16))),Vn(d,m,1,0,k+E),Vn(d,m,2,0,k-E),Vn(d,m,3,0,N-V),w++,m+=32}function Ks(o,s,d,m){var b=o[s+0]+4,w=35468*o[s+4]>>16,_=Er(o[s+4]),N=35468*o[s+1]>>16;Je(d,m,0,b+_,o=Er(o[s+1]),N),Je(d,m,1,b+w,o,N),Je(d,m,2,b-w,o,N),Je(d,m,3,b-_,o,N)}function Xs(o,s,d,m,b){jo(o,s,d,m),b&&jo(o,s+16,d,m+4)}function vr(o,s,d,m){Ri(o,s+0,d,m,1),Ri(o,s+32,d,m+128,1)}function Bo(o,s,d,m){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Vn(d,m,s,b,o)}function zo(o,s,d,m){o[s+0]&&xe(o,s+0,d,m),o[s+16]&&xe(o,s+16,d,m+4),o[s+32]&&xe(o,s+32,d,m+128),o[s+48]&&xe(o,s+48,d,m+128+4)}function na(o,s,d,m){var b,w=a(16);for(b=0;4>b;++b){var _=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],E=o[s+0+b]-o[s+12+b];w[0+b]=_+N,w[8+b]=_-N,w[4+b]=E+k,w[12+b]=E-k}for(b=0;4>b;++b)_=(o=w[0+4*b]+3)+w[3+4*b],N=w[1+4*b]+w[2+4*b],k=w[1+4*b]-w[2+4*b],E=o-w[3+4*b],d[m+0]=_+N>>3,d[m+16]=E+k>>3,d[m+32]=_-N>>3,d[m+48]=E-k>>3,m+=64}function Li(o,s,d){var m,b=s-32,w=On,_=255-o[b-1];for(m=0;m<d;++m){var N,k=w,E=_+o[s-1];for(N=0;N<d;++N)o[s+N]=k[E+o[b+N]];s+=32}}function Js(o,s){Li(o,s,4)}function Qs(o,s){Li(o,s,8)}function tl(o,s){Li(o,s,16)}function Ca(o,s){var d;for(d=0;16>d;++d)r(o,s+32*d,o,s-32,16)}function Uo(o,s){var d;for(d=16;0<d;--d)i(o,s,o[s-1],16),s+=32}function rr(o,s,d){var m;for(m=0;16>m;++m)i(s,d+32*m,o,16)}function el(o,s){var d,m=16;for(d=0;16>d;++d)m+=o[s-1+32*d]+o[s+d-32];rr(m>>5,o,s)}function Si(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s-1+32*d];rr(m>>4,o,s)}function Oa(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s+d-32];rr(m>>4,o,s)}function nl(o,s){rr(128,o,s)}function Kt(o,s,d){return o+2*s+d+2>>2}function rl(o,s){var d,m=s-32;for(m=new Uint8Array([Kt(o[m-1],o[m+0],o[m+1]),Kt(o[m+0],o[m+1],o[m+2]),Kt(o[m+1],o[m+2],o[m+3]),Kt(o[m+2],o[m+3],o[m+4])]),d=0;4>d;++d)r(o,s+32*d,m,0,m.length)}function il(o,s){var d=o[s-1],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96];xt(o,s+0,16843009*Kt(o[s-1-32],d,m)),xt(o,s+32,16843009*Kt(d,m,b)),xt(o,s+64,16843009*Kt(m,b,w)),xt(o,s+96,16843009*Kt(b,w,w))}function al(o,s){var d,m=4;for(d=0;4>d;++d)m+=o[s+d-32]+o[s-1+32*d];for(m>>=3,d=0;4>d;++d)i(o,s+32*d,m,4)}function Cr(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],E=o[s+3-32];o[s+0+96]=Kt(m,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Kt(d,m,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Kt(w,d,m),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Kt(_,w,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Kt(N,_,w),o[s+3+32]=o[s+2+0]=Kt(k,N,_),o[s+3+0]=Kt(E,k,N)}function Or(o,s){var d=o[s+1-32],m=o[s+2-32],b=o[s+3-32],w=o[s+4-32],_=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Kt(o[s+0-32],d,m),o[s+1+0]=o[s+0+32]=Kt(d,m,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Kt(m,b,w),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Kt(b,w,_),o[s+3+32]=o[s+2+64]=o[s+1+96]=Kt(w,_,N),o[s+3+64]=o[s+2+96]=Kt(_,N,k),o[s+3+96]=Kt(N,k,k)}function ol(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],E=o[s+3-32];o[s+0+0]=o[s+1+64]=w+_+1>>1,o[s+1+0]=o[s+2+64]=_+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+E+1>>1,o[s+0+96]=Kt(b,m,d),o[s+0+64]=Kt(m,d,w),o[s+0+32]=o[s+1+96]=Kt(d,w,_),o[s+1+32]=o[s+2+96]=Kt(w,_,N),o[s+2+32]=o[s+3+96]=Kt(_,N,k),o[s+3+32]=Kt(N,k,E)}function sl(o,s){var d=o[s+0-32],m=o[s+1-32],b=o[s+2-32],w=o[s+3-32],_=o[s+4-32],N=o[s+5-32],k=o[s+6-32],E=o[s+7-32];o[s+0+0]=d+m+1>>1,o[s+1+0]=o[s+0+64]=m+b+1>>1,o[s+2+0]=o[s+1+64]=b+w+1>>1,o[s+3+0]=o[s+2+64]=w+_+1>>1,o[s+0+32]=Kt(d,m,b),o[s+1+32]=o[s+0+96]=Kt(m,b,w),o[s+2+32]=o[s+1+96]=Kt(b,w,_),o[s+3+32]=o[s+2+96]=Kt(w,_,N),o[s+3+64]=Kt(_,N,k),o[s+3+96]=Kt(N,k,E)}function ra(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96];o[s+0+0]=d+m+1>>1,o[s+2+0]=o[s+0+32]=m+b+1>>1,o[s+2+32]=o[s+0+64]=b+w+1>>1,o[s+1+0]=Kt(d,m,b),o[s+3+0]=o[s+1+32]=Kt(m,b,w),o[s+3+32]=o[s+1+64]=Kt(b,w,w),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=w}function Ta(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96],_=o[s-1-32],N=o[s+0-32],k=o[s+1-32],E=o[s+2-32];o[s+0+0]=o[s+2+32]=d+_+1>>1,o[s+0+32]=o[s+2+64]=m+d+1>>1,o[s+0+64]=o[s+2+96]=b+m+1>>1,o[s+0+96]=w+b+1>>1,o[s+3+0]=Kt(N,k,E),o[s+2+0]=Kt(_,N,k),o[s+1+0]=o[s+3+32]=Kt(d,_,N),o[s+1+32]=o[s+3+64]=Kt(m,d,_),o[s+1+64]=o[s+3+96]=Kt(b,m,d),o[s+1+96]=Kt(w,b,m)}function ki(o,s){var d;for(d=0;8>d;++d)r(o,s+32*d,o,s-32,8)}function ll(o,s){var d;for(d=0;8>d;++d)i(o,s,o[s-1],8),s+=32}function Tr(o,s,d){var m;for(m=0;8>m;++m)i(s,d+32*m,o,8)}function hl(o,s){var d,m=8;for(d=0;8>d;++d)m+=o[s+d-32]+o[s-1+32*d];Tr(m>>4,o,s)}function Da(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s+d-32];Tr(m>>3,o,s)}function Ma(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s-1+32*d];Tr(m>>3,o,s)}function qo(o,s){Tr(128,o,s)}function Dr(o,s,d){var m=o[s-d],b=o[s+0],w=3*(b-m)+fl[1020+o[s-2*d]-o[s+d]],_=Ko[112+(w+4>>3)];o[s-d]=On[255+m+Ko[112+(w+3>>3)]],o[s+0]=On[255+b-_]}function Ra(o,s,d,m){var b=o[s+0],w=o[s+d];return Yn[255+o[s-2*d]-o[s-d]]>m||Yn[255+w-b]>m}function ia(o,s,d,m){return 4*Yn[255+o[s-d]-o[s+0]]+Yn[255+o[s-2*d]-o[s+d]]<=m}function ja(o,s,d,m,b){var w=o[s-3*d],_=o[s-2*d],N=o[s-d],k=o[s+0],E=o[s+d],V=o[s+2*d],et=o[s+3*d];return 4*Yn[255+N-k]+Yn[255+_-E]>m?0:Yn[255+o[s-4*d]-w]<=b&&Yn[255+w-_]<=b&&Yn[255+_-N]<=b&&Yn[255+et-V]<=b&&Yn[255+V-E]<=b&&Yn[255+E-k]<=b}function Pi(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)ia(o,s+m,d,b)&&Dr(o,s+m,d)}function Ba(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)ia(o,s+m*d,1,b)&&Dr(o,s+m*d,1)}function Ho(o,s,d,m){var b;for(b=3;0<b;--b)Pi(o,s+=4*d,d,m)}function Wo(o,s,d,m){var b;for(b=3;0<b;--b)Ba(o,s+=4,d,m)}function Mr(o,s,d,m,b,w,_,N){for(w=2*w+1;0<b--;){if(ja(o,s,d,w,_))if(Ra(o,s,d,N))Dr(o,s,d);else{var k=o,E=s,V=d,et=k[E-2*V],C=k[E-V],Z=k[E+0],X=k[E+V],lt=k[E+2*V],Q=27*(pt=fl[1020+3*(Z-C)+fl[1020+et-X]])+63>>7,ft=18*pt+63>>7,pt=9*pt+63>>7;k[E-3*V]=On[255+k[E-3*V]+pt],k[E-2*V]=On[255+et+ft],k[E-V]=On[255+C+Q],k[E+0]=On[255+Z-Q],k[E+V]=On[255+X-ft],k[E+2*V]=On[255+lt-pt]}s+=m}}function Rr(o,s,d,m,b,w,_,N){for(w=2*w+1;0<b--;){if(ja(o,s,d,w,_))if(Ra(o,s,d,N))Dr(o,s,d);else{var k=o,E=s,V=d,et=k[E-V],C=k[E+0],Z=k[E+V],X=Ko[112+(4+(lt=3*(C-et))>>3)],lt=Ko[112+(lt+3>>3)],Q=X+1>>1;k[E-2*V]=On[255+k[E-2*V]+Q],k[E-V]=On[255+et+lt],k[E+0]=On[255+C-X],k[E+V]=On[255+Z-Q]}s+=m}}function Go(o,s,d,m,b,w){Mr(o,s,d,1,16,m,b,w)}function Ii(o,s,d,m,b,w){Mr(o,s,1,d,16,m,b,w)}function Vo(o,s,d,m,b,w){var _;for(_=3;0<_;--_)Rr(o,s+=4*d,d,1,16,m,b,w)}function f(o,s,d,m,b,w){var _;for(_=3;0<_;--_)Rr(o,s+=4,1,d,16,m,b,w)}function v(o,s,d,m,b,w,_,N){Mr(o,s,b,1,8,w,_,N),Mr(d,m,b,1,8,w,_,N)}function T(o,s,d,m,b,w,_,N){Mr(o,s,1,b,8,w,_,N),Mr(d,m,1,b,8,w,_,N)}function z(o,s,d,m,b,w,_,N){Rr(o,s+4*b,b,1,8,w,_,N),Rr(d,m+4*b,b,1,8,w,_,N)}function K(o,s,d,m,b,w,_,N){Rr(o,s+4,1,b,8,w,_,N),Rr(d,m+4,1,b,8,w,_,N)}function dt(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function vt(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Et(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Dt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new W}function Yt(){this.xb=this.a=0,this.l=new ta,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Dt,this.ab=0,this.gc=h(4,Et),this.Oc=0}function ne(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ta,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function me(o,s,d,m,b,w,_){for(o=o==null?0:o[s+0],s=0;s<_;++s)b[w+s]=o+d[m+s]&255,o=b[w+s]}function Me(o,s,d,m,b,w,_){var N;if(o==null)me(null,null,d,m,b,w,_);else for(N=0;N<_;++N)b[w+N]=o[s+N]+d[m+N]&255}function Ke(o,s,d,m,b,w,_){if(o==null)me(null,null,d,m,b,w,_);else{var N,k=o[s+0],E=k,V=k;for(N=0;N<_;++N)E=V+(k=o[s+N])-E,V=d[m+N]+(-256&E?0>E?0:255:E)&255,E=k,b[w+N]=V}}function Fe(o,s,d,m){var b=s.width,w=s.o;if(n(o!=null&&s!=null),0>d||0>=m||d+m>w)return null;if(!o.Cc){if(o.ga==null){var _;if(o.ga=new ne,(_=o.ga==null)||(_=s.width*s.o,n(o.Gb.length==0),o.Gb=a(_),o.Uc=0,o.Gb==null?_=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,_=1),_=!_),!_){_=o.ga;var N=o.Fa,k=o.P,E=o.qc,V=o.mb,et=o.nb,C=k+1,Z=E-1,X=_.l;if(n(N!=null&&V!=null&&s!=null),li[0]=null,li[1]=me,li[2]=Me,li[3]=Ke,_.ca=V,_.tb=et,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=E)s=0;else if(_.$a=3&N[k+0],_.Z=N[k+0]>>2&3,_.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||k)s=0;else if(X.put=Vt,X.ac=ur,X.bc=Ir,X.ma=_,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,_.$a)t:{n(_.$a==1),s=Ai();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ct(s.m,N,C,Z),!pr(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&tr(s.s)?(_.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=Ni(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=Z>=_.c*_.i;_=!s}if(_)return null;o.ga.Lc!=1?o.Ga=0:m=w-d}n(o.ga!=null),n(d+m<=w);t:{if(s=(N=o.ga).c,w=N.l.o,N.$a==0){if(C=o.rc,Z=o.Vc,X=o.Fa,k=o.P+1+d*s,E=o.mb,V=o.nb+d*s,n(k<=o.P+o.qc),N.Z!=0)for(n(li[N.Z]!=null),_=0;_<m;++_)li[N.Z](C,Z,X,k,E,V,s),C=E,Z=V,V+=s,k+=s;else for(_=0;_<m;++_)r(E,V,X,k,s),C=E,Z=V,V+=s,k+=s;o.rc=C,o.Vc=Z}else{if(n(N.mc!=null),s=d+m,n((_=N.mc)!=null),n(s<=_.i),_.C>=s)s=1;else if(N.ic||ir(),N.ic){N=_.V,C=_.Ba,Z=_.c;var lt=_.i,Q=(X=1,k=_.$/Z,E=_.$%Z,V=_.m,et=_.s,_.$),ft=Z*lt,pt=Z*s,_t=et.wc,bt=Q<pt?ln(et,E,k):null;n(Q<=ft),n(s<=lt),n(tr(et));e:for(;;){for(;!V.h&&Q<pt;){if(E&_t||(bt=ln(et,E,k)),n(bt!=null),J(V),256>(lt=Re(bt.G[0],bt.H[0],V)))N[C+Q]=lt,++Q,++E>=Z&&(E=0,++k<=s&&!(k%16)&&er(_,k));else{if(!(280>lt)){X=0;break e}lt=qn(lt-256,V);var Rt,Pt=Re(bt.G[4],bt.H[4],V);if(J(V),!(Q>=(Pt=Hn(Z,Pt=qn(Pt,V)))&&ft-Q>=lt)){X=0;break e}for(Rt=0;Rt<lt;++Rt)N[C+Q+Rt]=N[C+Q+Rt-Pt];for(Q+=lt,E+=lt;E>=Z;)E-=Z,++k<=s&&!(k%16)&&er(_,k);Q<pt&&E&_t&&(bt=ln(et,E,k))}n(V.h==G(V))}er(_,k>s?s:k);break e}!X||V.h&&Q<ft?(X=0,_.a=V.h?5:3):_.$=Q,s=X}else s=nr(_,_.V,_.Ba,_.c,_.i,s,Xi);if(!s){m=0;break t}}d+m>=w&&(o.Cc=1),m=1}if(!m)return null;if(o.Cc&&((m=o.ga)!=null&&(m.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*b}function Qe(o,s,d,m,b,w){for(;0<b--;){var _,N=o,k=s+(d?1:0),E=o,V=s+(d?0:3);for(_=0;_<m;++_){var et=E[V+4*_];et!=255&&(et*=32897,N[k+4*_+0]=N[k+4*_+0]*et>>23,N[k+4*_+1]=N[k+4*_+1]*et>>23,N[k+4*_+2]=N[k+4*_+2]*et>>23)}s+=w}}function Xe(o,s,d,m,b){for(;0<m--;){var w;for(w=0;w<d;++w){var _=o[s+2*w+0],N=15&(E=o[s+2*w+1]),k=4369*N,E=(240&E|E>>4)*k>>16;o[s+2*w+0]=(240&_|_>>4)*k>>16&240|(15&_|_<<4)*k>>16>>4&15,o[s+2*w+1]=240&E|N}s+=b}}function hn(o,s,d,m,b,w,_,N){var k,E,V=255;for(E=0;E<b;++E){for(k=0;k<m;++k){var et=o[s+k];w[_+4*k]=et,V&=et}s+=d,_+=N}return V!=255}function jr(o,s,d,m,b){var w;for(w=0;w<b;++w)d[m+w]=o[s+w]>>8}function ir(){Xa=Qe,qh=Xe,Hh=hn,Wh=jr}function Br(o,s,d){R[o]=function(m,b,w,_,N,k,E,V,et,C,Z,X,lt,Q,ft,pt,_t){var bt,Rt=_t-1>>1,Pt=N[k+0]|E[V+0]<<16,re=et[C+0]|Z[X+0]<<16;n(m!=null);var Ct=3*Pt+re+131074>>2;for(s(m[b+0],255&Ct,Ct>>16,lt,Q),w!=null&&(Ct=3*re+Pt+131074>>2,s(w[_+0],255&Ct,Ct>>16,ft,pt)),bt=1;bt<=Rt;++bt){var ue=N[k+bt]|E[V+bt]<<16,en=et[C+bt]|Z[X+bt]<<16,ie=Pt+ue+re+en+524296,Ot=ie+2*(ue+re)>>3;Ct=Ot+Pt>>1,Pt=(ie=ie+2*(Pt+en)>>3)+ue>>1,s(m[b+2*bt-1],255&Ct,Ct>>16,lt,Q+(2*bt-1)*d),s(m[b+2*bt-0],255&Pt,Pt>>16,lt,Q+(2*bt-0)*d),w!=null&&(Ct=ie+re>>1,Pt=Ot+en>>1,s(w[_+2*bt-1],255&Ct,Ct>>16,ft,pt+(2*bt-1)*d),s(w[_+2*bt+0],255&Pt,Pt>>16,ft,pt+(2*bt+0)*d)),Pt=ue,re=en}1&_t||(Ct=3*Pt+re+131074>>2,s(m[b+_t-1],255&Ct,Ct>>16,lt,Q+(_t-1)*d),w!=null&&(Ct=3*re+Pt+131074>>2,s(w[_+_t-1],255&Ct,Ct>>16,ft,pt+(_t-1)*d)))}}function za(){Kn[Xo]=A1,Kn[Jo]=ef,Kn[Kh]=N1,Kn[Qo]=nf,Kn[ts]=rf,Kn[cl]=af,Kn[Xh]=L1,Kn[ul]=ef,Kn[dl]=nf,Kn[es]=rf,Kn[pl]=af}function aa(o){return o&~S1?0>o?0:255:o>>of}function Jr(o,s){return aa((19077*o>>8)+(26149*s>>8)-14234)}function Fi(o,s,d){return aa((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function Ei(o,s){return aa((19077*o>>8)+(33050*s>>8)-17685)}function Qr(o,s,d,m,b){m[b+0]=Jr(o,d),m[b+1]=Fi(o,s,d),m[b+2]=Ei(o,s)}function fn(o,s,d,m,b){m[b+0]=Ei(o,s),m[b+1]=Fi(o,s,d),m[b+2]=Jr(o,d)}function Ci(o,s,d,m,b){var w=Fi(o,s,d);s=w<<3&224|Ei(o,s)>>3,m[b+0]=248&Jr(o,d)|w>>5,m[b+1]=s}function Oi(o,s,d,m,b){var w=240&Ei(o,s)|15;m[b+0]=240&Jr(o,d)|Fi(o,s,d)>>4,m[b+1]=w}function Ua(o,s,d,m,b){m[b+0]=255,Qr(o,s,d,m,b+1)}function qa(o,s,d,m,b){fn(o,s,d,m,b),m[b+3]=255}function _n(o,s,d,m,b){Qr(o,s,d,m,b),m[b+3]=255}function zr(o,s,d){R[o]=function(m,b,w,_,N,k,E,V,et){for(var C=V+(-2&et)*d;V!=C;)s(m[b+0],w[_+0],N[k+0],E,V),s(m[b+1],w[_+0],N[k+0],E,V+d),b+=2,++_,++k,V+=2*d;1&et&&s(m[b+0],w[_+0],N[k+0],E,V)}}function oa(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function Zo(o,s,d,m,b){switch(o>>>30){case 3:Ri(s,d,m,b,0);break;case 2:$n(s,d,m,b);break;case 1:xe(s,d,m,b)}}function Zn(o,s){var d,m,b=s.M,w=s.Nb,_=o.oc,N=o.pc+40,k=o.oc,E=o.pc+584,V=o.oc,et=o.pc+600;for(d=0;16>d;++d)_[N+32*d-1]=129;for(d=0;8>d;++d)k[E+32*d-1]=129,V[et+32*d-1]=129;for(0<b?_[N-1-32]=k[E-1-32]=V[et-1-32]=129:(i(_,N-32-1,127,21),i(k,E-32-1,127,9),i(V,et-32-1,127,9)),m=0;m<o.za;++m){var C=s.ya[s.aa+m];if(0<m){for(d=-1;16>d;++d)r(_,N+32*d-4,_,N+32*d+12,4);for(d=-1;8>d;++d)r(k,E+32*d-4,k,E+32*d+4,4),r(V,et+32*d-4,V,et+32*d+4,4)}var Z=o.Gd,X=o.Hd+m,lt=C.ad,Q=C.Hc;if(0<b&&(r(_,N-32,Z[X].y,0,16),r(k,E-32,Z[X].f,0,8),r(V,et-32,Z[X].ea,0,8)),C.Za){var ft=_,pt=N-32+16;for(0<b&&(m>=o.za-1?i(ft,pt,Z[X].y[15],4):r(ft,pt,Z[X+1].y,0,4)),d=0;4>d;d++)ft[pt+128+d]=ft[pt+256+d]=ft[pt+384+d]=ft[pt+0+d];for(d=0;16>d;++d,Q<<=2)ft=_,pt=N+lf[d],ar[C.Ob[d]](ft,pt),Zo(Q,lt,16*+d,ft,pt)}else if(ft=oa(m,b,C.Ob[0]),si[ft](_,N),Q!=0)for(d=0;16>d;++d,Q<<=2)Zo(Q,lt,16*+d,_,N+lf[d]);for(d=C.Gc,ft=oa(m,b,C.Dd),Hr[ft](k,E),Hr[ft](V,et),Q=lt,ft=k,pt=E,255&(C=0|d)&&(170&C?yr(Q,256,ft,pt):Se(Q,256,ft,pt)),C=V,Q=et,255&(d>>=8)&&(170&d?yr(lt,320,C,Q):Se(lt,320,C,Q)),b<o.Ub-1&&(r(Z[X].y,0,_,N+480,16),r(Z[X].f,0,k,E+224,8),r(Z[X].ea,0,V,et+224,8)),d=8*w*o.B,Z=o.sa,X=o.ta+16*m+16*w*o.R,lt=o.qa,C=o.ra+8*m+d,Q=o.Ha,ft=o.Ia+8*m+d,d=0;16>d;++d)r(Z,X+d*o.R,_,N+32*d,16);for(d=0;8>d;++d)r(lt,C+d*o.B,k,E+32*d,8),r(Q,ft+d*o.B,V,et+32*d,8)}}function Ti(o,s,d,m,b,w,_,N,k){var E=[0],V=[0],et=0,C=k!=null?k.kd:0,Z=k??new vt;if(o==null||12>d)return 7;Z.data=o,Z.w=s,Z.ha=d,s=[s],d=[d],Z.gb=[Z.gb];t:{var X=s,lt=d,Q=Z.gb;if(n(o!=null),n(lt!=null),n(Q!=null),Q[0]=0,12<=lt[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){Q=3;break t}var ft=Bt(o,X[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(C&&ft>lt[0]-8){Q=7;break t}Q[0]=ft,X[0]+=12,lt[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<Z.gb[0],d=d[0];;){t:{var pt=o;lt=s,Q=d;var _t=E,bt=V,Rt=X=[0];if((Ct=et=[et])[0]=0,8>Q[0])Q=7;else{if(!e(pt,lt[0],"VP8X")){if(Bt(pt,lt[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Bt(pt,lt[0]+8),re=1+St(pt,lt[0]+12);if(2147483648<=re*(pt=1+St(pt,lt[0]+15))){Q=3;break t}Rt!=null&&(Rt[0]=Pt),_t!=null&&(_t[0]=re),bt!=null&&(bt[0]=pt),lt[0]+=18,Q[0]-=18,Ct[0]=1}Q=0}}if(et=et[0],X=X[0],Q!=0)return Q;if(lt=!!(2&X),!ft&&et)return 3;if(w!=null&&(w[0]=!!(16&X)),_!=null&&(_[0]=lt),N!=null&&(N[0]=0),_=E[0],X=V[0],et&&lt&&k==null){Q=0;break}if(4>d){Q=7;break}if(ft&&et||!ft&&!et&&!e(o,s[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Pt=o,Q=s,ft=d;var Ct=Z.gb;_t=Z.na,bt=Z.P,Rt=Z.Sa,re=22,n(Pt!=null),n(ft!=null),pt=Q[0];var ue=ft[0];for(n(_t!=null),n(Rt!=null),_t[0]=null,bt[0]=null,Rt[0]=0;;){if(Q[0]=pt,ft[0]=ue,8>ue){Q=7;break t}var en=Bt(Pt,pt+4);if(4294967286<en){Q=3;break t}var ie=8+en+1&-2;if(re+=ie,0<Ct&&re>Ct){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ue[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(_t[0]=Pt,bt[0]=pt+8,Rt[0]=en),pt+=ie,ue-=ie}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],Q!=0)break}d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ct=o,Q=s,ft=d,_t=Z.gb[0],bt=Z.Ja,Rt=Z.xa,Pt=Q[0],pt=!e(Ct,Pt,"VP8 "),re=!e(Ct,Pt,"VP8L"),n(Ct!=null),n(ft!=null),n(bt!=null),n(Rt!=null),8>ft[0])Q=7;else{if(pt||re){if(Ct=Bt(Ct,Pt+4),12<=_t&&Ct>_t-12){Q=3;break t}if(C&&Ct>ft[0]-8){Q=7;break t}bt[0]=Ct,Q[0]+=8,ft[0]-=8,Rt[0]=re}else Rt[0]=5<=ft[0]&&Ct[Pt+0]==47&&!(Ct[Pt+4]>>5),bt[0]=ft[0];Q=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],Q!=0)break;if(4294967286<Z.Ja)return 3;if(N==null||lt||(N[0]=Z.xa?2:1),_=[_],X=[X],Z.xa){if(5>d){Q=7;break}N=_,C=X,lt=w,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Ct=[0],_t=[0],ct(bt=new M,o,s,d),Fr(bt,ft,Ct,_t)?(N!=null&&(N[0]=ft[0]),C!=null&&(C[0]=Ct[0]),lt!=null&&(lt[0]=_t[0]),o=1):o=0):o=0}else{if(10>d){Q=7;break}N=X,o==null||10>d||!Mo(o,s+3,d-3)?o=0:(C=o[s+0]|o[s+1]<<8|o[s+2]<<16,lt=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&C||3<(C>>1&7)||!(C>>4&1)||C>>5>=Z.Ja||!lt||!o?o=0:(_&&(_[0]=lt),N&&(N[0]=o),o=1))}if(!o||(_=_[0],X=X[0],et&&(E[0]!=_||V[0]!=X)))return 3;k!=null&&(k[0]=Z,k.offset=s-k.w,n(4294967286>s-k.w),n(k.offset==k.ha-d));break}return Q==0||Q==7&&et&&k==null?(w!=null&&(w[0]|=Z.na!=null&&0<Z.na.length),m!=null&&(m[0]=_),b!=null&&(b[0]=X),0):Q}function Ha(o,s,d){var m=s.width,b=s.height,w=0,_=0,N=m,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,w=o.v,_=o.j,11>d||(w&=-2,_&=-2),0>w||0>_||0>=N||0>=k||w+N>m||_+k>b))return 0;if(s.v=w,s.j=_,s.va=w+N,s.o=_+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!Ht(N,k,d=[o.ib],w=[o.hb]))return 0;s.ib=d[0],s.hb=w[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*b/4,s.Kb=0),1}function Wa(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function ti(o,s,d,m){if(m==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,w=d.bd,_=-2&d.v,N=-2&d.j;if(0>_||0>N||0>=b||0>=w||_+b>o||N+w>s)return 2;o=b,s=w}if(d.da){if(!Ht(o,s,b=[d.ib],w=[d.hb]))return 2;o=b[0],s=w[0]}}m.width=o,m.height=s;t:{var k=m.width,E=m.height;if(o=m.S,0>=k||0>=E||!(o>=Xo&&13>o))o=2;else{if(0>=m.Rd&&m.sd==null){_=w=b=s=0;var V=(N=k*hf[o])*E;if(11>o||(w=(E+1)/2*(s=(k+1)/2),o==12&&(_=(b=k)*E)),(E=a(V+2*w+_))==null){o=1;break t}m.sd=E,11>o?((k=m.f.RGBA).eb=E,k.fb=0,k.A=N,k.size=V):((k=m.f.kb).y=E,k.O=0,k.fa=N,k.Fd=V,k.f=E,k.N=0+V,k.Ab=s,k.Cd=w,k.ea=E,k.W=0+V+w,k.Db=s,k.Ed=w,o==12&&(k.F=E,k.J=0+V+2*w),k.Tc=_,k.lb=b)}if(s=1,b=m.S,w=m.width,_=m.height,b>=Xo&&13>b)if(11>b)o=m.f.RGBA,s&=(N=Math.abs(o.A))*(_-1)+w<=o.size,s&=N>=w*hf[b],s&=o.eb!=null;else{o=m.f.kb,N=(w+1)/2,V=(_+1)/2,k=Math.abs(o.fa),E=Math.abs(o.Ab);var et=Math.abs(o.Db),C=Math.abs(o.lb),Z=C*(_-1)+w;s&=k*(_-1)+w<=o.Fd,s&=E*(V-1)+N<=o.Cd,s=(s&=et*(V-1)+N<=o.Ed)&k>=w&E>=N&et>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=C>=w,s&=Z<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=Wa(m)),o}var Di=64,En=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Cn=24,ei=32,Ur=8,ni=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];It("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(o){return o},R.Predictor2=function(o,s,d){return s[d+0]},R.Predictor3=function(o,s,d){return s[d+1]},R.Predictor4=function(o,s,d){return s[d-1]},R.Predictor5=function(o,s,d){return zt(zt(o,s[d+1]),s[d+0])},R.Predictor6=function(o,s,d){return zt(o,s[d-1])},R.Predictor7=function(o,s,d){return zt(o,s[d+0])},R.Predictor8=function(o,s,d){return zt(s[d-1],s[d+0])},R.Predictor9=function(o,s,d){return zt(s[d+0],s[d+1])},R.Predictor10=function(o,s,d){return zt(zt(o,s[d-1]),zt(s[d+0],s[d+1]))},R.Predictor11=function(o,s,d){var m=s[d+0];return 0>=Jt(m>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Jt(m>>16&255,o>>16&255,s>>16&255)+Jt(m>>8&255,o>>8&255,s>>8&255)+Jt(255&m,255&o,255&s)?m:o},R.Predictor12=function(o,s,d){var m=s[d+0];return(ye((o>>24&255)+(m>>24&255)-((s=s[d-1])>>24&255))<<24|ye((o>>16&255)+(m>>16&255)-(s>>16&255))<<16|ye((o>>8&255)+(m>>8&255)-(s>>8&255))<<8|ye((255&o)+(255&m)-(255&s)))>>>0},R.Predictor13=function(o,s,d){var m=s[d-1];return(he((o=zt(o,s[d+0]))>>24&255,m>>24&255)<<24|he(o>>16&255,m>>16&255)<<16|he(o>>8&255,m>>8&255)<<8|he(255&o,255&m))>>>0};var Ga=R.PredictorAdd0;R.PredictorAdd1=ce,It("Predictor2","PredictorAdd2"),It("Predictor3","PredictorAdd3"),It("Predictor4","PredictorAdd4"),It("Predictor5","PredictorAdd5"),It("Predictor6","PredictorAdd6"),It("Predictor7","PredictorAdd7"),It("Predictor8","PredictorAdd8"),It("Predictor9","PredictorAdd9"),It("Predictor10","PredictorAdd10"),It("Predictor11","PredictorAdd11"),It("Predictor12","PredictorAdd12"),It("Predictor13","PredictorAdd13");var sa=R.PredictorAdd2;jt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),jt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var qe,$o=R.ColorIndexInverseTransform,br=R.MapARGB,wr=R.VP8LColorIndexInverseTransformAlpha,Va=R.MapAlpha,Za=R.VP8LPredictorsAdd=[];Za.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var $a,Ya,ri,ii,ai,Mi,oi,Ri,$n,yr,xe,Se,He,tn,qr,Ka,la,Yo,Mh,Rh,jh,Bh,zh,Uh,Xa,qh,Hh,Wh,Gh=a(511),Vh=a(2041),Zh=a(225),$h=a(767),Yh=0,fl=Vh,Ko=Zh,On=$h,Yn=Gh,Xo=0,Jo=1,Kh=2,Qo=3,ts=4,cl=5,Xh=6,ul=7,dl=8,es=9,pl=10,h1=[2,3,7],f1=[3,3,11],Jh=[280,256,256,256,40],c1=[0,1,1,1,0],u1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],d1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],p1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],g1=8,gl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ml=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ja=null,m1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],v1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Qh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],b1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],w1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],y1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],_1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],si=[],ar=[],Hr=[],x1=1,tf=2,li=[],Kn=[];Br("UpsampleRgbLinePair",Qr,3),Br("UpsampleBgrLinePair",fn,3),Br("UpsampleRgbaLinePair",_n,4),Br("UpsampleBgraLinePair",qa,4),Br("UpsampleArgbLinePair",Ua,4),Br("UpsampleRgba4444LinePair",Oi,2),Br("UpsampleRgb565LinePair",Ci,2);var A1=R.UpsampleRgbLinePair,N1=R.UpsampleBgrLinePair,ef=R.UpsampleRgbaLinePair,nf=R.UpsampleBgraLinePair,rf=R.UpsampleArgbLinePair,af=R.UpsampleRgba4444LinePair,L1=R.UpsampleRgb565LinePair,ns=16,rs=1<<ns-1,Qa=-227,vl=482,of=6,S1=(256<<of)-1,sf=0,k1=a(256),P1=a(256),I1=a(256),F1=a(256),E1=a(vl-Qa),C1=a(vl-Qa);zr("YuvToRgbRow",Qr,3),zr("YuvToBgrRow",fn,3),zr("YuvToRgbaRow",_n,4),zr("YuvToBgraRow",qa,4),zr("YuvToArgbRow",Ua,4),zr("YuvToRgba4444Row",Oi,2),zr("YuvToRgb565Row",Ci,2);var lf=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],is=[0,2,8],O1=[8,7,6,4,4,2,2,2,1,1,1,1],T1=1;this.WebPDecodeRGBA=function(o,s,d,m,b){var w=Jo,_=new dt,N=new le;_.ba=N,N.S=w,N.width=[N.width],N.height=[N.height];var k=N.width,E=N.height,V=new Gt;if(V==null||o==null)var et=2;else n(V!=null),et=Ti(o,s,d,V.width,V.height,V.Pd,V.Qd,V.format,null);if(et!=0?k=0:(k!=null&&(k[0]=V.width[0]),E!=null&&(E[0]=V.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],m!=null&&(m[0]=N.width),b!=null&&(b[0]=N.height);t:{if(m=new ta,(b=new vt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],n(b!=null),((o=Ti(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(n(_!=null),m.data=b.data,m.w=b.w+b.offset,m.ha=b.ha-b.offset,m.put=Vt,m.ac=ur,m.bc=Ir,m.ma=_,b.xa){if((o=Ai())==null){_=1;break t}if((function(C,Z){var X=[0],lt=[0],Q=[0];e:for(;;){if(C==null)return 0;if(Z==null)return C.a=2,0;if(C.l=Z,C.a=0,ct(C.m,Z.data,Z.w,Z.ha),!Fr(C.m,X,lt,Q)){C.a=3;break e}if(C.xb=tf,Z.width=X[0],Z.height=lt[0],!pr(X[0],lt[0],1,C,null))break e;return 1}return n(C.a!=0),0})(o,m)){if(m=(s=ti(m.width,m.height,_.Oa,_.ba))==0){e:{m=o;n:for(;;){if(m==null){m=0;break e}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((d=m.l)!=null),n((b=d.ma)!=null),m.xb!=0){if(m.ca=b.ba,m.tb=b.tb,n(m.ca!=null),!Ha(b.Oa,d,Qo)){m.a=2;break n}if(!Ni(m,d.width)||d.da)break n;if((d.da||Zt(m.ca.S))&&ir(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&ir()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!I(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!nr(m,m.V,m.Ba,m.c,m.i,d.o,Xr))break n;b.Dc=m.Ma,m=1;break e}n(m.a!=0),m=0}m=!m}m&&(s=o.a)}else s=o.a}else{if((o=new Ys)==null){_=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,mr(o,m)){if((s=ti(m.width,m.height,_.Oa,_.ba))==0){if(o.Aa=0,d=_.Oa,n((b=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(E=V=0;4>E;++E)12>(et=b.pb[E]).lc&&(et.ia=k*O1[0>et.lc?0:et.lc]>>3),V|=et.ia;V&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(C,Z){if(C==null)return 0;if(Z==null)return Ye(C,2,"NULL VP8Io parameter in VP8Decode().");if(!C.cb&&!mr(C,Z))return 0;if(n(C.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(C.L=0);var X=is[C.L];if(C.L==2?(C.yb=0,C.zb=0):(C.yb=Z.v-X>>4,C.zb=Z.j-X>>4,0>C.yb&&(C.yb=0),0>C.zb&&(C.zb=0)),C.Va=Z.o+15+X>>4,C.Hb=Z.va+15+X>>4,C.Hb>C.za&&(C.Hb=C.za),C.Va>C.Ub&&(C.Va=C.Ub),0<C.L){var lt=C.ed;for(X=0;4>X;++X){var Q;if(C.Qa.Cb){var ft=C.Qa.Lb[X];C.Qa.Fb||(ft+=lt.Tb)}else ft=lt.Tb;for(Q=0;1>=Q;++Q){var pt=C.gd[X][Q],_t=ft;if(lt.Pc&&(_t+=lt.vd[0],Q&&(_t+=lt.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<lt.wb&&(bt=4<lt.wb?bt>>2:bt>>1)>9-lt.wb&&(bt=9-lt.wb),1>bt&&(bt=1),pt.dd=bt,pt.tc=2*_t+bt,pt.ld=40<=_t?2:15<=_t?1:0}else pt.tc=0;pt.La=Q}}}X=0}else Ye(C,6,"Frame setup failed"),X=C.a;if(X=X==0){if(X){C.$c=0,0<C.Aa||(C.Ic=T1);e:{X=C.Ic,lt=4*(bt=C.za);var Rt=32*bt,Pt=bt+1,re=0<C.L?bt*(0<C.Aa?2:1):0,Ct=(C.Aa==2?2:1)*bt;if((pt=lt+832+(Q=3*(16*X+is[C.L])/2*Rt)+(ft=C.Fa!=null&&0<C.Fa.length?C.Kc.c*C.Kc.i:0))!=pt)X=0;else{if(pt>C.Vb){if(C.Vb=0,C.Ec=a(pt),C.Fc=0,C.Ec==null){X=Ye(C,1,"no memory during frame initialization.");break e}C.Vb=pt}pt=C.Ec,_t=C.Fc,C.Ac=pt,C.Bc=_t,_t+=lt,C.Gd=h(Rt,To),C.Hd=0,C.rb=h(Pt+1,Fa),C.sb=1,C.wa=re?h(re,Gn):null,C.Y=0,C.D.Nb=0,C.D.wa=C.wa,C.D.Y=C.Y,0<C.Aa&&(C.D.Y+=bt),n(!0),C.oc=pt,C.pc=_t,_t+=832,C.ya=h(Ct,Ea),C.aa=0,C.D.ya=C.ya,C.D.aa=C.aa,C.Aa==2&&(C.D.aa+=bt),C.R=16*bt,C.B=8*bt,bt=(Rt=is[C.L])*C.R,Rt=Rt/2*C.B,C.sa=pt,C.ta=_t+bt,C.qa=C.sa,C.ra=C.ta+16*X*C.R+Rt,C.Ha=C.qa,C.Ia=C.ra+8*X*C.B+Rt,C.$c=0,_t+=Q,C.mb=ft?pt:null,C.nb=ft?_t:null,n(_t+ft<=C.Fc+C.Vb),Ro(C),i(C.Ac,C.Bc,0,lt),X=1}}if(X){if(Z.ka=0,Z.y=C.sa,Z.O=C.ta,Z.f=C.qa,Z.N=C.ra,Z.ea=C.Ha,Z.Vd=C.Ia,Z.fa=C.R,Z.Rc=C.B,Z.F=null,Z.J=0,!Yh){for(X=-255;255>=X;++X)Gh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Vh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Zh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)$h[255+X]=0>X?0:255<X?255:X;Yh=1}oi=na,Ri=Xs,yr=vr,xe=Bo,Se=zo,$n=Ks,He=Go,tn=Ii,qr=v,Ka=T,la=Vo,Yo=f,Mh=z,Rh=K,jh=Pi,Bh=Ba,zh=Ho,Uh=Wo,ar[0]=al,ar[1]=Js,ar[2]=rl,ar[3]=il,ar[4]=Cr,ar[5]=ol,ar[6]=Or,ar[7]=sl,ar[8]=Ta,ar[9]=ra,si[0]=el,si[1]=tl,si[2]=Ca,si[3]=Uo,si[4]=Si,si[5]=Oa,si[6]=nl,Hr[0]=hl,Hr[1]=Qs,Hr[2]=ki,Hr[3]=ll,Hr[4]=Ma,Hr[5]=Da,Hr[6]=qo,X=1}else X=0}X&&(X=(function(ue,en){for(ue.M=0;ue.M<ue.Va;++ue.M){var ie,Ot=ue.Jc[ue.M&ue.Xb],Nt=ue.m,We=ue;for(ie=0;ie<We.za;++ie){var te=Nt,pe=We,Ce=pe.Ac,cn=pe.Bc+4*ie,xn=pe.zc,je=pe.ya[pe.aa+ie];if(pe.Qa.Bb?je.$b=gt(te,pe.Pa.jb[0])?2+gt(te,pe.Pa.jb[2]):gt(te,pe.Pa.jb[1]):je.$b=0,pe.kc&&(je.Ad=gt(te,pe.Bd)),je.Za=!gt(te,145)+0,je.Za){var mn=je.Ob,An=0;for(pe=0;4>pe;++pe){var nn,ve=xn[0+pe];for(nn=0;4>nn;++nn){ve=w1[Ce[cn+nn]][ve];for(var Ae=Qh[gt(te,ve[0])];0<Ae;)Ae=Qh[2*Ae+gt(te,ve[Ae])];ve=-Ae,Ce[cn+nn]=ve}r(mn,An,Ce,cn,4),An+=4,xn[0+pe]=ve}}else ve=gt(te,156)?gt(te,128)?1:3:gt(te,163)?2:0,je.Ob[0]=ve,i(Ce,cn,ve,4),i(xn,0,ve,4);je.Dd=gt(te,142)?gt(te,114)?gt(te,183)?1:3:2:0}if(We.m.Ka)return Ye(ue,7,"Premature end-of-partition0 encountered.");for(;ue.ja<ue.za;++ue.ja){if(We=Ot,te=(Nt=ue).rb[Nt.sb-1],Ce=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],cn=Nt.kc?ie.Ad:0)te.la=Ce.la=0,ie.Za||(te.Na=Ce.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var Be,Ne;if(te=Ce,Ce=We,cn=Nt.Pa.Xc,xn=Nt.ya[Nt.aa+Nt.ja],je=Nt.pb[xn.$b],pe=xn.ad,mn=0,An=Nt.rb[Nt.sb-1],ve=nn=0,i(pe,mn,0,384),xn.Za)var un=0,or=cn[3];else{Ae=a(16);var Ge=te.Na+An.Na;if(Ge=Ja(Ce,cn[1],Ge,je.Eb,0,Ae,0),te.Na=An.Na=(0<Ge)+0,1<Ge)oi(Ae,0,pe,mn);else{var kn=Ae[0]+3>>3;for(Ae=0;256>Ae;Ae+=16)pe[mn+Ae]=kn}un=1,or=cn[0]}var ke=15&te.la,rn=15&An.la;for(Ae=0;4>Ae;++Ae){var Tn=1&rn;for(kn=Ne=0;4>kn;++kn)ke=ke>>1|(Tn=(Ge=Ja(Ce,or,Ge=Tn+(1&ke),je.Sc,un,pe,mn))>un)<<7,Ne=Ne<<2|(3<Ge?3:1<Ge?2:pe[mn+0]!=0),mn+=16;ke>>=4,rn=rn>>1|Tn<<7,nn=(nn<<8|Ne)>>>0}for(or=ke,un=rn>>4,Be=0;4>Be;Be+=2){for(Ne=0,ke=te.la>>4+Be,rn=An.la>>4+Be,Ae=0;2>Ae;++Ae){for(Tn=1&rn,kn=0;2>kn;++kn)Ge=Tn+(1&ke),ke=ke>>1|(Tn=0<(Ge=Ja(Ce,cn[2],Ge,je.Qc,0,pe,mn)))<<3,Ne=Ne<<2|(3<Ge?3:1<Ge?2:pe[mn+0]!=0),mn+=16;ke>>=2,rn=rn>>1|Tn<<5}ve|=Ne<<4*Be,or|=ke<<4<<Be,un|=(240&rn)<<Be}te.la=or,An.la=un,xn.Hc=nn,xn.Gc=ve,xn.ia=43690&ve?0:je.ia,cn=!(nn|ve)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!cn),We.Ka)return Ye(ue,7,"Premature end-of-file encountered.")}if(Ro(ue),Nt=en,We=1,ie=(Ot=ue).D,te=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(ie.M=Ot.M,ie.uc=te,Zn(Ot,ie),We=1,ie=(Ne=Ot.D).Nb,te=(ve=is[Ot.L])*Ot.R,Ce=ve/2*Ot.B,Ae=16*ie*Ot.R,kn=8*ie*Ot.B,cn=Ot.sa,xn=Ot.ta-te+Ae,je=Ot.qa,pe=Ot.ra-Ce+kn,mn=Ot.Ha,An=Ot.Ia-Ce+kn,rn=(ke=Ne.M)==0,nn=ke>=Ot.Va-1,Ot.Aa==2&&Zn(Ot,Ne),Ne.uc)for(Tn=(Ge=Ot).D.M,n(Ge.D.uc),Ne=Ge.yb;Ne<Ge.Hb;++Ne){un=Ne,or=Tn;var Nn=(Dn=(dn=Ge).D).Nb;Be=dn.R;var Dn=Dn.wa[Dn.Y+un],Mn=dn.sa,Pn=dn.ta+16*Nn*Be+16*un,Rn=Dn.dd,Ee=Dn.tc;if(Ee!=0)if(n(3<=Ee),dn.L==1)0<un&&Bh(Mn,Pn,Be,Ee+4),Dn.La&&Uh(Mn,Pn,Be,Ee),0<or&&jh(Mn,Pn,Be,Ee+4),Dn.La&&zh(Mn,Pn,Be,Ee);else{var jn=dn.B,sr=dn.qa,ji=dn.ra+8*Nn*jn+8*un,Wr=dn.Ha,dn=dn.Ia+8*Nn*jn+8*un;Nn=Dn.ld,0<un&&(tn(Mn,Pn,Be,Ee+4,Rn,Nn),Ka(sr,ji,Wr,dn,jn,Ee+4,Rn,Nn)),Dn.La&&(Yo(Mn,Pn,Be,Ee,Rn,Nn),Rh(sr,ji,Wr,dn,jn,Ee,Rn,Nn)),0<or&&(He(Mn,Pn,Be,Ee+4,Rn,Nn),qr(sr,ji,Wr,dn,jn,Ee+4,Rn,Nn)),Dn.La&&(la(Mn,Pn,Be,Ee,Rn,Nn),Mh(sr,ji,Wr,dn,jn,Ee,Rn,Nn))}}if(Ot.ia&&alert("todo:DitherRow"),Nt.put!=null){if(Ne=16*ke,ke=16*(ke+1),rn?(Nt.y=Ot.sa,Nt.O=Ot.ta+Ae,Nt.f=Ot.qa,Nt.N=Ot.ra+kn,Nt.ea=Ot.Ha,Nt.W=Ot.Ia+kn):(Ne-=ve,Nt.y=cn,Nt.O=xn,Nt.f=je,Nt.N=pe,Nt.ea=mn,Nt.W=An),nn||(ke-=ve),ke>Nt.o&&(ke=Nt.o),Nt.F=null,Nt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&Ne<ke&&(Nt.J=Fe(Ot,Nt,Ne,ke-Ne),Nt.F=Ot.mb,Nt.F==null&&Nt.F.length==0)){We=Ye(Ot,3,"Could not decode alpha data.");break e}Ne<Nt.j&&(ve=Nt.j-Ne,Ne=Nt.j,n(!(1&ve)),Nt.O+=Ot.R*ve,Nt.N+=Ot.B*(ve>>1),Nt.W+=Ot.B*(ve>>1),Nt.F!=null&&(Nt.J+=Nt.width*ve)),Ne<ke&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=Ne-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=ke-Ne,We=Nt.put(Nt))}ie+1!=Ot.Ic||nn||(r(Ot.sa,Ot.ta-te,cn,xn+16*Ot.R,te),r(Ot.qa,Ot.ra-Ce,je,pe+8*Ot.B,Ce),r(Ot.Ha,Ot.Ia-Ce,mn,An+8*Ot.B,Ce))}if(!We)return Ye(ue,6,"Output aborted.")}return 1})(C,Z)),Z.bc!=null&&Z.bc(Z),X&=1}return X?(C.cb=0,X):0})(o,m)||(s=o.a)}}else s=o.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=Wa(_.ba))}_=s}w=_!=0?null:11>w?N.f.RGBA.eb:N.f.kb.y}else w=null;return w};var hf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(R,tt){for(var S="",O=0;O<4;O++)S+=String.fromCharCode(R[tt++]);return S}function g(R,tt){return R[tt+0]|R[tt+1]<<8}function y(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16)>>>0}function A(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16|R[tt+3]<<24)>>>0}new c;var p=[0],F=[0],P=[],D=new c,L=t,H=(function(R,tt){var S={},O=0,W=!1,U=0,it=0;if(S.frames=[],!(function(x,M){for(var B=0;B<4;B++)if(x[M+B]!="RIFF".charCodeAt(B))return!0;return!1})(R,tt)){for(A(R,tt+=4),tt+=8;tt<R.length;){var st=u(R,tt),ht=A(R,tt+=4);tt+=4;var nt=ht+(1&ht);switch(st){case"VP8 ":case"VP8L":S.frames[O]===void 0&&(S.frames[O]={}),(wt=S.frames[O]).src_off=W?it:tt-8,wt.src_size=U+ht+8,O++,W&&(W=!1,U=0,it=0);break;case"VP8X":(wt=S.header={}).feature_flags=R[tt];var ct=tt+4;wt.canvas_width=1+y(R,ct),ct+=3,wt.canvas_height=1+y(R,ct),ct+=3;break;case"ALPH":W=!0,U=nt+8,it=tt-8;break;case"ANIM":(wt=S.header).bgcolor=A(R,tt),ct=tt+4,wt.loop_count=g(R,ct),ct+=2;break;case"ANMF":var At,wt;(wt=S.frames[O]={}).offset_x=2*y(R,tt),tt+=3,wt.offset_y=2*y(R,tt),tt+=3,wt.width=1+y(R,tt),tt+=3,wt.height=1+y(R,tt),tt+=3,wt.duration=y(R,tt),tt+=3,At=R[tt++],wt.dispose=1&At,wt.blend=At>>1&1}st!="ANMF"&&(tt+=nt)}return S}})(L,0);H.response=L,H.rgbaoutput=!0,H.dataurl=!1;var q=H.header?H.header:null,j=H.frames?H.frames:null;if(q){q.loop_counter=q.loop_count,p=[q.canvas_height],F=[q.canvas_width];for(var rt=0;rt<j.length&&j[rt].blend!=0;rt++);}var mt=j[0],ut=D.WebPDecodeRGBA(L,mt.src_off,mt.src_size,F,p);mt.rgba=ut,mt.imgwidth=F[0],mt.imgheight=p[0];for(var Y=0;Y<F[0]*p[0]*4;Y++)P[Y]=ut[Y];return this.width=F,this.height=p,this.data=P,this}(function(t){var n,e,r,i,a,h,l,c,u,g=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new h,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new h,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new y(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new g}]);var y=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var M=x;Object.defineProperty(this,"pdf",{get:function(){return M}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(I){B=!!I}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(I){G=!!I}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(I){isNaN(I)||($=I)}});var J=0;Object.defineProperty(this,"posY",{get:function(){return J},set:function(I){isNaN(I)||(J=I)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(I){var Lt;typeof I=="number"?Lt=[I,I,I,I]:((Lt=new Array(4))[0]=I[0],Lt[1]=I.length>=2?I[1]:Lt[0],Lt[2]=I.length>=3?I[2]:Lt[0],Lt[3]=I.length>=4?I[3]:Lt[1]),u.margin=Lt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(I){at=I}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(I){ot=I}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(I){gt=I}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(I){I instanceof g&&(u=I)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(I){u.path=I}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(I){xt=I}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(I){var Lt;Lt=A(I),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(I){var Lt=A(I);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(I){["butt","round","square"].indexOf(I)!==-1&&(this.ctx.lineCap=I,this.pdf.setLineCap(I))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(I){isNaN(I)||(this.ctx.lineWidth=I,this.pdf.setLineWidth(I))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(I){["bevel","round","miter"].indexOf(I)!==-1&&(this.ctx.lineJoin=I,this.pdf.setLineJoin(I))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(I){isNaN(I)||(this.ctx.miterLimit=I,this.pdf.setMiterLimit(I))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(I){this.ctx.textBaseline=I}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(I){["right","end","center","left","start"].indexOf(I)!==-1&&(this.ctx.textAlign=I)}});var kt=null,St=null,Bt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Bt},set:function(I){kt=null,St=null,Bt=I}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(I){var Lt;if(this.ctx.font=I,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(I))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(It==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var qt=(function(jt){var Ue,ge,oe=[],se=jt.trim();if(se==="")return Ah;if(se in Su)return[Su[se]];for(;se!=="";){switch(ge=null,Ue=(se=Pu(se)).charAt(0)){case'"':case"'":ge=wd(se.substring(1),Ue);break;default:ge=yd(se)}if(ge===null||(oe.push(ge[0]),(se=Pu(ge[1]))!==""&&se.charAt(0)!==","))return Ah;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var zt=(function(jt,Ue){var ge=jt.getFontList(),oe=JSON.stringify(ge);if(kt===null||St!==oe){var se=(function(Oe){var Ut=[];return Object.keys(Oe).forEach(function(Ie){Oe[Ie].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Ie,weight:"bold"};break;case"italic":Qt={family:Ie,style:"italic"};break;case"bolditalic":Qt={family:Ie,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Ie}}Qt!==null&&(Qt.ref={name:Ie,style:Zt},Ut.push(Qt))})}),Ut})(ge);kt=(function(Oe){for(var Ut={},Ie=0;Ie<Oe.length;++Ie){var Zt=xh(Oe[Ie]),Qt=Zt.family,Te=Zt.stretch,le=Zt.style,Gt=Zt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][Te]=Ut[Qt][Te]||{},Ut[Qt][Te][le]=Ut[Qt][Te][le]||{},Ut[Qt][Te][le][Gt]=Zt}return Ut})(se.concat(Ue)),St=oe}return kt})(this.pdf,this.fontFaces),ye=qt.map(function(jt){return{family:jt,stretch:"normal",weight:Ht,style:ae}}),he=(function(jt,Ue,ge){for(var oe=(ge=ge||{}).defaultFontFamily||"times",se=Object.assign({},bd,ge.genericFontFamilies||{}),Oe=null,Ut=null,Ie=0;Ie<Ue.length;++Ie)if(se[(Oe=xh(Ue[Ie])).family]&&(Oe.family=se[Oe.family]),jt.hasOwnProperty(Oe.family)){Ut=jt[Oe.family];break}if(!(Ut=Ut||jt[oe]))throw new Error("Could not find a font-family for the rule '"+ku(Oe)+"' and default family '"+oe+"'.");if(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Te=Ih[Zt],le=Te<=Ih.normal?-1:1,Gt=Lu(Qt,Xu,Te,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt})(Oe.stretch,Ut),Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Te=Ku[Zt],le=0;le<Te.length;++le)if(Qt[Te[le]])return Qt[Te[le]];throw new Error("Could not find a matching font-style for "+Zt)})(Oe.style,Ut),!(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];if(Zt===400&&Qt[500])return Qt[500];if(Zt===500&&Qt[400])return Qt[400];var Te=vd[Zt],le=Lu(Qt,Ju,Te,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le})(Oe.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+ku(Oe)+"'.");return Ut})(zt,ye);this.pdf.setFont(he.ref.name,he.ref.style)}else{var Jt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ce="",fe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Tt=0;Tt<qt.length;Tt++){if(this.pdf.internal.getFont(qt[Tt],Jt,{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(qt[Tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ce=qt[Tt],Jt="bold";else if(this.pdf.internal.getFont(qt[Tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt],Jt="normal";break}}if(ce===""){for(var ee=0;ee<qt.length;ee++)if(fe[qt[ee]]){ce=fe[qt[ee]];break}}ce=ce===""?"Times":ce,this.pdf.setFont(ce,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(I){this.ctx.globalCompositeOperation=I}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(I){this.ctx.globalAlpha=I}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(I){this.ctx.lineDashOffset=I,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(I){this.ctx.lineDash=I,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(I){this.ctx.ignoreClearRect=!!I}})};y.prototype.setLineDash=function(x){this.lineDash=x},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){j.call(this,"fill",!1)},y.prototype.stroke=function(){j.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(x,M)},y.prototype.closePath=function(){var x=new h(0,0),M=0;for(M=this.path.length-1;M!==-1;M--)if(this.path[M].type==="begin"&&Le(this.path[M+1])==="object"&&typeof this.path[M+1].x=="number"){x=new h(this.path[M+1].x,this.path[M+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(x.x,x.y)},y.prototype.lineTo=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),j.call(this,null,!0)},y.prototype.quadraticCurveTo=function(x,M,B,G){if(isNaN(B)||isNaN(G)||isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new h(B,G)),J=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"qct",x1:J.x,y1:J.y,x:$.x,y:$.y}),this.ctx.lastPoint=new h($.x,$.y)},y.prototype.bezierCurveTo=function(x,M,B,G,$,J){if(isNaN($)||isNaN(J)||isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new h($,J)),ot=this.ctx.transform.applyToPoint(new h(x,M)),gt=this.ctx.transform.applyToPoint(new h(B,G));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new h(at.x,at.y)},y.prototype.arc=function(x,M,B,G,$,J){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G)||isNaN($))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(J=!!J,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new h(x,M));x=at.x,M=at.y;var ot=this.ctx.transform.applyToPoint(new h(0,B)),gt=this.ctx.transform.applyToPoint(new h(0,0));B=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2))}Math.abs($-G)>=2*Math.PI&&(G=0,$=2*Math.PI),this.path.push({type:"arc",x,y:M,radius:B,startAngle:G,endAngle:$,counterclockwise:J})},y.prototype.arcTo=function(x,M,B,G,$){throw new Error("arcTo not implemented.")},y.prototype.rect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,M),this.lineTo(x+B,M),this.lineTo(x+B,M+G),this.lineTo(x,M+G),this.lineTo(x,M),this.lineTo(x+B,M),this.lineTo(x,M)},y.prototype.fillRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,M,B,G),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},y.prototype.strokeRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");F.call(this)||(this.beginPath(),this.rect(x,M,B,G),this.stroke())},y.prototype.clearRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,M,B,G))},y.prototype.save=function(x){x=typeof x!="boolean"||x;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(M),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var G=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=G}},y.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(M),x&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(x){var M,B,G,$;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))M=0,B=0,G=0,$=0;else{var J=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(J!==null)M=parseInt(J[1]),B=parseInt(J[2]),G=parseInt(J[3]),$=1;else if((J=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)M=parseInt(J[1]),B=parseInt(J[2]),G=parseInt(J[3]),$=parseFloat(J[4]);else{if($=1,typeof x=="string"&&x.charAt(0)!=="#"){var at=new Hu(x);x=at.ok?at.toHex():"#000000"}x.length===4?(M=x.substring(1,2),M+=M,B=x.substring(2,3),B+=B,G=x.substring(3,4),G+=G):(M=x.substring(1,3),B=x.substring(3,5),G=x.substring(5,7)),M=parseInt(M,16),B=parseInt(B,16),G=parseInt(G,16)}}return{r:M,g:B,b:G,a:$,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},F=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(x,M,B,G){if(isNaN(M)||isNaN(B)||typeof x!="string")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(G=isNaN(G)?void 0:G,!p.call(this)){var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:x,x:M,y:B,scale:J,angle:$,align:this.textAlign,maxWidth:G})}},y.prototype.strokeText=function(x,M,B,G){if(isNaN(M)||isNaN(B)||typeof x!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!F.call(this)){G=isNaN(G)?void 0:G;var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:x,x:M,y:B,scale:J,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:G})}},y.prototype.measureText=function(x){if(typeof x!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var M=this.pdf,B=this.pdf.internal.scaleFactor,G=M.internal.getFontSize(),$=M.getStringUnitWidth(x)*G/M.internal.scaleFactor;return new function(J){var at=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:$*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new c(x,0,0,M,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(x){if(isNaN(x))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var M=new c(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(M)},y.prototype.translate=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new c(1,0,0,1,x,M);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(x,M,B,G,$,J){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G)||isNaN($)||isNaN(J))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new c(x,M,B,G,$,J);this.ctx.transform=this.ctx.transform.multiply(at)},y.prototype.setTransform=function(x,M,B,G,$,J){x=isNaN(x)?1:x,M=isNaN(M)?0:M,B=isNaN(B)?0:B,G=isNaN(G)?1:G,$=isNaN($)?0:$,J=isNaN(J)?0:J,this.ctx.transform=new c(x,M,B,G,$,J)};var P=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(x,M,B,G,$,J,at,ot,gt){var xt=this.pdf.getImageProperties(x),kt=1,St=1,Bt=1,I=1;G!==void 0&&ot!==void 0&&(Bt=ot/G,I=gt/$,kt=xt.width/G*ot/G,St=xt.height/$*gt/$),J===void 0&&(J=M,at=B,M=0,B=0),G!==void 0&&ot===void 0&&(ot=G,gt=$),G===void 0&&ot===void 0&&(ot=xt.width,gt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(J-M*Bt,at-B*I,G*kt,$*St));if(this.autoPaging){for(var Wt,It=D.call(this,yt),qt=[],zt=0;zt<It.length;zt+=1)qt.indexOf(It[zt])===-1&&qt.push(It[zt]);q(qt);for(var ye=qt[0],he=qt[qt.length-1],Jt=ye;Jt<he+1;Jt++){this.pdf.setPage(Jt);var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Jt===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],jt=Jt===1?0:Tt+(Jt-2)*ee;if(this.ctx.clip_path.length!==0){var Ue=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(Wt,this.posX+this.margin[3],-jt+fe+this.ctx.prevPageLastElemOffset),rt.call(this,"fill",!0),this.path=Ue}var ge=JSON.parse(JSON.stringify(yt));ge=H([ge],this.posX+this.margin[3],-jt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Jt>ye||Jt<he)&&P.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,ee,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(x,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var D=function(x,M,B){var G=[];M=M||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":G.push(Math.floor((x.y+$)/B)+1);break;case"arc":G.push(Math.floor((x.y+$-x.radius)/B)+1),G.push(Math.floor((x.y+$+x.radius)/B)+1);break;case"qct":var J=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);G.push(Math.floor((J.y+$)/B)+1),G.push(Math.floor((J.y+J.h+$)/B)+1);break;case"bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);G.push(Math.floor((at.y+$)/B)+1),G.push(Math.floor((at.y+at.h+$)/B)+1);break;case"rect":G.push(Math.floor((x.y+$)/B)+1),G.push(Math.floor((x.y+x.h+$)/B)+1)}for(var ot=0;ot<G.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<G[ot];)L.call(this);return G},L=function(){var x=this.fillStyle,M=this.strokeStyle,B=this.font,G=this.lineCap,$=this.lineWidth,J=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=M,this.font=B,this.lineCap=G,this.lineWidth=$,this.lineJoin=J},H=function(x,M,B){for(var G=0;G<x.length;G++)switch(x[G].type){case"bct":x[G].x2+=M,x[G].y2+=B;case"qct":x[G].x1+=M,x[G].y1+=B;default:x[G].x+=M,x[G].y+=B}return x},q=function(x){return x.sort(function(M,B){return M-B})},j=function(x,M){var B=this.fillStyle,G=this.strokeStyle,$=this.lineCap,J=this.lineWidth,at=Math.abs(J*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,xt,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Bt=[],I=0;I<St.length;I++)if(St[I].x!==void 0)for(var Lt=D.call(this,St[I]),ae=0;ae<Lt.length;ae+=1)Bt.indexOf(Lt[ae])===-1&&Bt.push(Lt[ae]);for(var Ht=0;Ht<Bt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Bt[Ht];)L.call(this);q(Bt);for(var yt=Bt[0],Wt=Bt[Bt.length-1],It=yt;It<Wt+1;It++){this.pdf.setPage(It),this.fillStyle=B,this.strokeStyle=G,this.lineCap=$,this.lineWidth=at,this.lineJoin=ot;var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=It===1?this.posY+this.margin[0]:this.margin[0],ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],he=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=It===1?0:ye+(It-2)*he;if(this.ctx.clip_path.length!==0){var ce=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(gt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),rt.call(this,x,!0),this.path=ce}if(xt=JSON.parse(JSON.stringify(kt)),this.path=H(xt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),M===!1||It===0){var fe=(It>yt||It<Wt)&&P.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,he,null).clip().discardPath()),rt.call(this,x,M),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=J}this.path=kt}else this.lineWidth=at,rt.call(this,x,M),this.lineWidth=J},rt=function(x,M){if((x!=="stroke"||M||!F.call(this))&&(x==="stroke"||M||!p.call(this))){for(var B,G,$=[],J=this.path,at=0;at<J.length;at++){var ot=J[at];switch(ot.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:ot,deltas:[],abs:[]});break;case"lt":var gt=$.length;if(J[at-1]&&!isNaN(J[at-1].x)&&(B=[ot.x-J[at-1].x,ot.y-J[at-1].y],gt>0)){for(;gt>=0;gt--)if($[gt-1].close!==!0&&$[gt-1].begin!==!0){$[gt-1].deltas.push(B),$[gt-1].abs.push(ot);break}}break;case"bct":B=[ot.x1-J[at-1].x,ot.y1-J[at-1].y,ot.x2-J[at-1].x,ot.y2-J[at-1].y,ot.x-J[at-1].x,ot.y-J[at-1].y],$[$.length-1].deltas.push(B);break;case"qct":var xt=J[at-1].x+2/3*(ot.x1-J[at-1].x),kt=J[at-1].y+2/3*(ot.y1-J[at-1].y),St=ot.x+2/3*(ot.x1-ot.x),Bt=ot.y+2/3*(ot.y1-ot.y),I=ot.x,Lt=ot.y;B=[xt-J[at-1].x,kt-J[at-1].y,St-J[at-1].x,Bt-J[at-1].y,I-J[at-1].x,Lt-J[at-1].y],$[$.length-1].deltas.push(B);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(ot)}}G=M?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var yt=$[Ht].abs,Wt=0;Wt<yt.length;Wt++){var It=yt[Wt];It.type==="arc"?Y.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,M,!ae):W.call(this,It.x,It.y),ae=!0}else if($[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if($[Ht].begin!==!0){var qt=$[Ht].start.x,zt=$[Ht].start.y;U.call(this,$[Ht].deltas,qt,zt),ae=!0}G&&R.call(this,G),M&&tt.call(this)}},mt=function(x){var M=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=M*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-B;case"top":return x+M-B;case"hanging":return x+M-2*B;case"middle":return x+M/2-B;default:return x}},ut=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(M,B){this.colorStops.push([M,B])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(x,M,B,G,$,J,at,ot,gt){for(var xt=st.call(this,B,G,$,J),kt=0;kt<xt.length;kt++){var St=xt[kt];kt===0&&(gt?S.call(this,St.x1+x,St.y1+M):W.call(this,St.x1+x,St.y1+M)),it.call(this,x,M,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}ot?tt.call(this):R.call(this,at)},R=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,M){this.pdf.internal.out(e(x)+" "+r(M)+" m")},O=function(x){var M;switch(x.align){case"right":case"end":M="right";break;case"center":M="center";break;default:M="left"}var B,G,$,J=this.pdf.getTextDimensions(x.text),at=mt.call(this,x.y),ot=ut.call(this,at)-J.h,gt=this.ctx.transform.applyToPoint(new h(x.x,at));if(this.autoPaging){var xt=this.ctx.transform.decompose(),kt=new c;kt=(kt=(kt=kt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var St=this.ctx.transform.applyToRectangle(new l(x.x,at,J.w,J.h)),Bt=kt.applyToRectangle(new l(x.x,ot,J.w,J.h)),I=D.call(this,Bt),Lt=[],ae=0;ae<I.length;ae+=1)Lt.indexOf(I[ae])===-1&&Lt.push(I[ae]);q(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var It=Wt===1?this.posY+this.margin[0]:this.margin[0],qt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zt=this.pdf.internal.pageSize.height-this.margin[2],ye=zt-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Jt=he-this.margin[3],ce=Wt===1?0:qt+(Wt-2)*ye;if(this.ctx.clip_path.length!==0){var fe=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(B,this.posX+this.margin[3],-1*ce+It),rt.call(this,"fill",!0),this.path=fe}var Tt=H([JSON.parse(JSON.stringify(Bt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale);var ee=this.autoPaging!=="text";if(ee||Tt.y+Tt.h<=zt){if(ee||Tt.y>=It&&Tt.x<=he){var jt=ee?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||he-Tt.x)[0],Ue=H([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],ge=ee&&(Wt>Ht||Wt<yt)&&P.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,ye,null).clip().discardPath()),this.pdf.text(jt,Ue.x,Ue.y,{angle:x.angle,align:M,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Tt.y<zt&&(this.ctx.prevPageLastElemOffset+=zt-Tt.y);x.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)}}else x.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale),this.pdf.text(x.text,gt.x+this.posX,gt.y+this.posY,{angle:x.angle,align:M,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)},W=function(x,M,B,G){B=B||0,G=G||0,this.pdf.internal.out(e(x+B)+" "+r(M+G)+" l")},U=function(x,M,B){return this.pdf.lines(x,M,B,null,null)},it=function(x,M,B,G,$,J,at,ot){this.pdf.internal.out([n(i(B+x)),n(a(G+M)),n(i($+x)),n(a(J+M)),n(i(at+x)),n(a(ot+M)),"c"].join(" "))},st=function(x,M,B,G){for(var $=2*Math.PI,J=Math.PI/2;M>B;)M-=$;var at=Math.abs(B-M);at<$&&G&&(at=$-at);for(var ot=[],gt=G?-1:1,xt=M;at>1e-5;){var kt=xt+gt*Math.min(at,J);ot.push(ht.call(this,x,xt,kt)),at-=Math.abs(kt-xt),xt=kt}return ot},ht=function(x,M,B){var G=(B-M)/2,$=x*Math.cos(G),J=x*Math.sin(G),at=$,ot=-J,gt=at*at+ot*ot,xt=gt+at*$+ot*J,kt=4/3*(Math.sqrt(2*gt*xt)-xt)/(at*J-ot*$),St=at-kt*ot,Bt=ot+kt*at,I=St,Lt=-Bt,ae=G+M,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:x*Math.cos(M),y1:x*Math.sin(M),x2:St*Ht-Bt*yt,y2:St*yt+Bt*Ht,x3:I*Ht-Lt*yt,y3:I*yt+Lt*Ht,x4:x*Math.cos(B),y4:x*Math.sin(B)}},nt=function(x){return 180*x/Math.PI},ct=function(x,M,B,G,$,J){var at=x+.5*(B-x),ot=M+.5*(G-M),gt=$+.5*(B-$),xt=J+.5*(G-J),kt=Math.min(x,$,at,gt),St=Math.max(x,$,at,gt),Bt=Math.min(M,J,ot,xt),I=Math.max(M,J,ot,xt);return new l(kt,Bt,St-kt,I-Bt)},At=function(x,M,B,G,$,J,at,ot){var gt,xt,kt,St,Bt,I,Lt,ae,Ht,yt,Wt,It,qt,zt,ye=B-x,he=G-M,Jt=$-B,ce=J-G,fe=at-$,Tt=ot-J;for(xt=0;xt<41;xt++)Ht=(Lt=(kt=x+(gt=xt/40)*ye)+gt*((Bt=B+gt*Jt)-kt))+gt*(Bt+gt*($+gt*fe-Bt)-Lt),yt=(ae=(St=M+gt*he)+gt*((I=G+gt*ce)-St))+gt*(I+gt*(J+gt*Tt-I)-ae),xt==0?(Wt=Ht,It=yt,qt=Ht,zt=yt):(Wt=Math.min(Wt,Ht),It=Math.min(It,yt),qt=Math.max(qt,Ht),zt=Math.max(zt,yt));return new l(Math.round(Wt),Math.round(It),Math.round(qt-Wt),Math.round(zt-It))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,M,B=(x=this.ctx.lineDash,M=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:M}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Mt.API),(function(t){var n=function(h){var l,c,u,g,y,A,p,F,P,D;for(/[^\x00-\xFF]/.test(h),c=[],u=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>u;u+=4)(y=(h.charCodeAt(u)<<24)+(h.charCodeAt(u+1)<<16)+(h.charCodeAt(u+2)<<8)+h.charCodeAt(u+3))!==0?(A=(y=((y=((y=((y=(y-(D=y%85))/85)-(P=y%85))/85)-(F=y%85))/85)-(p=y%85))/85)%85,c.push(A+33,p+33,F+33,P+33,D+33)):c.push(122);return(function(L,H){for(var q=H;q>0;q--)L.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(h){var l,c,u,g,y,A=String,p="length",F=255,P="charCodeAt",D="slice",L="replace";for(h[D](-2),h=h[D](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),u=[],g=0,y=(h+=l="uuuuu"[D](h[p]%5||5))[p];y>g;g+=5)c=52200625*(h[P](g)-33)+614125*(h[P](g+1)-33)+7225*(h[P](g+2)-33)+85*(h[P](g+3)-33)+(h[P](g+4)-33),u.push(F&c>>24,F&c>>16,F&c>>8,F&c);return(function(H,q){for(var j=q;j>0;j--)H.pop()})(u,l[p]),A.fromCharCode.apply(A,u)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var c="",u=0;u<h.length;u+=2)c+=String.fromCharCode("0x"+(h[u]+h[u+1]));return c},a=function(h){for(var l=new Uint8Array(h.length),c=h.length;c--;)l[c]=h.charCodeAt(c);return(l=ds(l)).reduce(function(u,g){return u+String.fromCharCode(g)},"")};t.processDataByFilters=function(h,l){var c=0,u=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=n(u),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:u,reverseChain:g.reverse().join(" ")}}})(Mt.API),(function(t){t.loadFile=function(n,e,r){return(function(i,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(c,u,g){var y=new XMLHttpRequest,A=0,p=function(F){var P=F.length,D=[],L=String.fromCharCode;for(A=0;A<P;A+=1)D.push(L(255&F.charCodeAt(A)));return D.join("")};if(y.open("GET",c,!u),y.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(y.onload=function(){y.status===200?g(p(this.responseText)):g(void 0)}),y.send(null),u&&y.status===200)return p(y.responseText)})(i,a,h)}catch{}return l})(n,e,r)},t.loadImageFile=t.loadFile})(Mt.API),(function(t){function n(){return($t.html2canvas?Promise.resolve($t.html2canvas):import("./K43DBBW4.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):import("./XCDIZTHN.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=Le(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},i=function(l,c){var u=document.createElement(l);for(var g in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[g]=c.style[g];return u},a=function l(c,u){for(var g=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),y=c.firstChild;y;y=y.nextSibling)u!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||g.appendChild(l(y,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(g.width=c.width,g.height=c.height,g.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(g.value=c.value),g.addEventListener("load",function(){g.scrollTop=c.scrollTop,g.scrollLeft=c.scrollLeft},!0)),g},h=function l(c){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),u);return(g=g.setProgress(1,l,1,[l])).set(c)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,c){return l.__proto__=c||h.prototype,l},h.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},h.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(e).then(function(u){return this.set({src:i("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},h.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var u=this.opt.jsPDF,g=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,A=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete A.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=g,g)for(var p=0;p<g.length;++p){var F=g[p],P=F.src.find(function(D){return D.format==="truetype"});P&&u.addFont(P.url,F.ref.name,F.ref.style)}return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,u.context2d.save(!0),c(this.prop.container,A)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},h.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(u){if(u in h.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(c)})},h.prototype.get=function(l,c){return this.then(function(){var u=l in h.template.prop?this.prop[l]:this.opt[l];return c?c(u):u})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function c(u,g){return Math.floor(u*g/72*96)}return this.then(function(){(l=l||Mt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,c,u,g){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,c,u,g){return this.setProgress(l?this.progress.val+l:null,c||null,u?this.progress.n+u:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,c){var u=this;return this.thenCore(l,c,function(g,y){return u.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(A){return u.updateProgress(null,g),A}).then(g,y).then(function(A){return u.updateProgress(1),A})})},h.prototype.thenCore=function(l,c,u){u=u||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),c&&(c=c.bind(g));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),A=u.call(y,l,c);return h.convert(A,g.__proto__)},h.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},h.prototype.thenList=function(l){var c=this;return l.forEach(function(u){c=c.thenCore(u)}),c},h.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return h.convert(c,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Mt.getPageSize=function(l,c,u){if(Le(l)==="object"){var g=l;l=g.orientation,c=g.unit||c,u=g.format||u}c=c||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var y,A=(""+u).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+c}var F,P=0,D=0;if(p.hasOwnProperty(A))P=p[A][1]/y,D=p[A][0]/y;else try{P=u[1],D=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",D>P&&(F=D,D=P,P=F);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",P>D&&(F=D,D=P,P=F)}return{width:D,height:P,unit:c,k:y,orientation:l}},t.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(xh):null;var u=new h(c);return c.worker?u:u.from(l).doCallback()}})(Mt.API),Mt.API.addJS=function(t){return Fu=t,this.internal.events.subscribe("postPutResources",function(){Ms=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ms+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Iu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ms!==void 0&&Iu!==void 0&&this.internal.out("/Names <</JavaScript "+Ms+" 0 R>>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var h=i[a],l=r.exec(h);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,g=[];for(a=0;a<u;a++){var y=e.internal.newObject();g.push(y);var A=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<g.length;a++)e.internal.write("(page_"+(a+1)+")"+g[a]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,i,a){var h={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(h),h},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var h=r.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var c=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
44
+ `),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Ft.internal.getWidth(t),e=Ft.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},Ft.internal.getWidth=function(t){var n=0;return Le(t)==="object"&&(n=Nu(t.Rect[2])),n},Ft.internal.getHeight=function(t){var n=0;return Le(t)==="object"&&(n=Nu(t.Rect[3])),n};var md=ze.addField=function(t){if(gd(this,t),!(t instanceof fr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=Na,ze.AcroFormListBox=La,ze.AcroFormComboBox=Sa,ze.AcroFormEditBox=Bs,ze.AcroFormButton=sn,ze.AcroFormPushButton=zs,ze.AcroFormRadioButton=ka,ze.AcroFormCheckBox=Us,ze.AcroFormTextField=Yi,ze.AcroFormPasswordField=qs,ze.AcroFormAppearance=Ft,ze.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Bs,Button:sn,PushButton:zs,RadioButton:ka,CheckBox:Us,TextField:Yi,PasswordField:qs,Appearance:Ft},Mt.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Bs,Button:sn,PushButton:zs,RadioButton:ka,CheckBox:Us,TextField:Yi,PasswordField:qs,Appearance:Ft};var vg=Mt.AcroForm;function Yu(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(S,O){var W,U,it,st,ht,nt=e;if((O=O||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(mt(S))for(ht in r)for(it=r[ht],W=0;W<it.length;W+=1){for(st=!0,U=0;U<it[W].length;U+=1)if(it[W][U]!==void 0&&it[W][U]!==S[U]){st=!1;break}if(st===!0){nt=ht;break}}else for(ht in r)for(it=r[ht],W=0;W<it.length;W+=1){for(st=!0,U=0;U<it[W].length;U+=1)if(it[W][U]!==void 0&&it[W][U]!==S.charCodeAt(U)){st=!1;break}if(st===!0){nt=ht;break}}return nt===e&&O!==e&&(nt=O),nt},a=function S(O){for(var W=this.internal.write,U=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:O.width}),st.push({key:"Height",value:O.height}),O.colorSpace===L.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===L.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var ht="",nt=0,ct=O.transparency.length;nt<ct;nt++)ht+=O.transparency[nt]+" "+O.transparency[nt]+" ";st.push({key:"Mask",value:"["+ht+"]"})}O.sMask!==void 0&&st.push({key:"SMask",value:O.objectId+1+" 0 R"});var At=O.filter!==void 0?["/"+O.filter]:void 0;if(U({data:O.data,additionalKeyValues:st,alreadyAppliedFilters:At,objectId:O.objectId}),W("endobj"),"sMask"in O&&O.sMask!==void 0){var wt,x=(wt=O.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:O.bitsPerComponent,M={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:O.sMask};"filter"in O&&(M.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(O.width),M.filter=O.filter),S.call(this,M)}if(O.colorSpace===L.INDEXED){var B=this.internal.newObject();U({data:Y(new Uint8Array(O.palette)),objectId:B}),W("endobj")}},h=function(){var S=this.internal.collections[n+"images"];for(var O in S)a.call(this,S[O])},l=function(){var S,O=this.internal.collections[n+"images"],W=this.internal.write;for(var U in O)W("/I"+(S=O[U]).index,S.objectId,"0","R")},c=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var S=this.internal.collections[n+"images"];return c.call(this),S},g=function(){return Object.keys(this.internal.collections[n+"images"]).length},y=function(S){return typeof t["process"+S.toUpperCase()]=="function"},A=function(S){return Le(S)==="object"&&S.nodeType===1},p=function(S,O){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var W=""+S.getAttribute("src");if(W.indexOf("data:image/")===0)return js(unescape(W).split("base64,").pop());var U=t.loadFile(W,!0);if(U!==void 0)return U}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var it;switch(O){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return js(S.toDataURL(it,1).split("base64,").pop())}},F=function(S){var O=this.internal.collections[n+"images"];if(O){for(var W in O)if(S===O[W].alias)return O[W]}},P=function(S,O,W){return S||O||(S=-96,O=-96),S<0&&(S=-1*W.width*72/S/this.internal.scaleFactor),O<0&&(O=-1*W.height*72/O/this.internal.scaleFactor),S===0&&(S=O*W.width/W.height),O===0&&(O=S*W.height/W.width),[S,O]},D=function(S,O,W,U,it,st){var ht=P.call(this,W,U,it),nt=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,At=u.call(this);if(W=ht[0],U=ht[1],At[it.index]=it,st){st*=Math.PI/180;var wt=Math.cos(st),x=Math.sin(st),M=function(G){return G.toFixed(4)},B=[M(wt),M(x),M(-1*x),M(wt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(S),ct(O+U),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([nt(W),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(W),"0","0",nt(U),nt(S),ct(O+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},L=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var H=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},q=t.__addimage__.sHashCode=function(S){var O,W,U=0;if(typeof S=="string")for(W=S.length,O=0;O<W;O++)U=(U<<5)-U+S.charCodeAt(O),U|=0;else if(mt(S))for(W=S.byteLength/2,O=0;O<W;O++)U=(U<<5)-U+S[O],U|=0;return U},j=t.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var O=!0;return S.length===0&&(O=!1),S.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(O=!1),O},rt=t.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var O=S.indexOf(",");return O<0?null:S.substring(0,O).trim().endsWith("base64")?S.substring(O+1):null};t.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var mt=t.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},ut=t.__addimage__.binaryStringToUint8Array=function(S){for(var O=S.length,W=new Uint8Array(O),U=0;U<O;U++)W[U]=S.charCodeAt(U);return W},Y=t.__addimage__.arrayBufferToBinaryString=function(S){for(var O="",W=mt(S)?S:new Uint8Array(S),U=0;U<W.length;U+=8192)O+=String.fromCharCode.apply(null,W.subarray(U,U+8192));return O};t.addImage=function(){var S,O,W,U,it,st,ht,nt,ct;if(typeof arguments[1]=="number"?(O=e,W=arguments[1],U=arguments[2],it=arguments[3],st=arguments[4],ht=arguments[5],nt=arguments[6],ct=arguments[7]):(O=arguments[1],W=arguments[2],U=arguments[3],it=arguments[4],st=arguments[5],ht=arguments[6],nt=arguments[7],ct=arguments[8]),Le(S=arguments[0])==="object"&&!A(S)&&"imageData"in S){var At=S;S=At.imageData,O=At.format||O||e,W=At.x||W||0,U=At.y||U||0,it=At.w||At.width||it,st=At.h||At.height||st,ht=At.alias||ht,nt=At.compression||nt,ct=At.rotation||At.angle||ct}var wt=this.internal.getFilters();if(nt===void 0&&wt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(W)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var x=R.call(this,S,O,ht,nt);return D.call(this,W,U,it,st,x,ct),this};var R=function(S,O,W,U){var it,st,ht;if(typeof S=="string"&&i(S)===e){S=unescape(S);var nt=tt(S,!1);(nt!==""||(nt=t.loadFile(S,!0))!==void 0)&&(S=nt)}if(A(S)&&(S=p(S,O)),O=i(S,O),!y(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ht=W)==null||ht.length===0)&&(W=(function(ct){return typeof ct=="string"||mt(ct)?q(ct):mt(ct.data)?q(ct.data):null})(S)),(it=F.call(this,W))||(S instanceof Uint8Array||O==="RGBA"||(st=S,S=ut(S)),it=this["process"+O.toUpperCase()](S,g.call(this),W,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in t.image_compression?ct:H.NONE})(U),st)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},tt=t.__addimage__.convertBase64ToBinaryString=function(S,O){O=typeof O!="boolean"||O;var W,U="";if(typeof S=="string"){var it;W=(it=rt(S))!==null&&it!==void 0?it:S;try{U=js(W)}catch(st){if(O)throw j(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(S){var O,W,U="";if(A(S)&&(S=p(S)),typeof S=="string"&&i(S)===e&&((U=tt(S,!1))===""&&(U=t.loadFile(S)||""),S=U),W=i(S),!y(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(S instanceof Uint8Array||(S=ut(S)),!(O=this["process"+W.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=W,O}})(Mt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Mt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,i,a,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,g=!1,y=0;y<u.length&&!g;y++)switch((r=u[y]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var A=0;A<u.length;A++){r=u[A];var p=this.internal.pdfEscape,F=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var P=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(P.objId),H=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(L(r.contents))+")",a+=" /Popup "+D.objId+" 0 R",a+=" /P "+c.objId+" 0 R",a+=" /T ("+p(L(H))+") >>",P.content=a;var q=P.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+q,r.open&&(a+=" /Open true"),a+=" >>",D.content=a,this.internal.write(P.objId,"0 R",D.objId,"0 R");break;case"freetext":i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var j=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(F(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+j+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var rt=this.annotations._nameMap[r.options.name];r.options.pageNumber=rt.page,r.options.top=rt.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(F(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var mt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+mt+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,i,a,h){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:u(r),w:c(e+i),h:u(r+a)},options:h,type:"link"})},t.textWithLink=function(e,r,i,a){var h,l,c=this.getTextWidth(e),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var g=this.splitTextToSize(e,l).length;h=Math.ceil(u*g)}else l=c,h=u;return this.text(e,r,i,a),i+=.2*u,a.align==="center"&&(r-=c/2),a.align==="right"&&(r-=c),this.link(r,i-u,l,h,a),c},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Mt.API),(function(t){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(P){return n[P.charCodeAt(0)]!==void 0},h=t.__arabicParser__.isArabicLetter=function(P){return typeof P=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P)},l=t.__arabicParser__.isArabicEndLetter=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(P){return h(P)&&i.indexOf(P.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length==4},y=t.__arabicParser__.resolveLigatures=function(P){var D=0,L=e,H="",q=0;for(D=0;D<P.length;D+=1)L[P.charCodeAt(D)]!==void 0?(q++,typeof(L=L[P.charCodeAt(D)])=="number"&&(H+=String.fromCharCode(L),L=e,q=0),D===P.length-1&&(L=e,H+=P.charAt(D-(q-1)),D-=q-1,q=0)):(L=e,H+=P.charAt(D-q),D-=q,q=0);return H};t.__arabicParser__.isArabicDiacritic=function(P){return P!==void 0&&r[P.charCodeAt(0)]!==void 0};var A=t.__arabicParser__.getCorrectForm=function(P,D,L){return h(P)?a(P)===!1?-1:!u(P)||!h(D)&&!h(L)||!h(L)&&l(D)||l(P)&&!h(D)||l(P)&&c(D)||l(P)&&l(D)?0:g(P)&&h(D)&&!l(D)&&h(L)&&u(L)?3:l(P)||!h(L)?1:2:-1},p=function(P){var D=0,L=0,H=0,q="",j="",rt="",mt=(P=P||"").split("\\s+"),ut=[];for(D=0;D<mt.length;D+=1){for(ut.push(""),L=0;L<mt[D].length;L+=1)q=mt[D][L],j=mt[D][L-1],rt=mt[D][L+1],h(q)?(H=A(q,j,rt),ut[D]+=H!==-1?String.fromCharCode(n[q.charCodeAt(0)][H]):q):ut[D]+=q;ut[D]=y(ut[D])}return ut.join(" ")},F=t.__arabicParser__.processArabic=t.processArabic=function(){var P,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(D)){var H=0;for(L=[],H=0;H<D.length;H+=1)Array.isArray(D[H])?L.push([p(D[H][0]),D[H][1],D[H][2]]):L.push([p(D[H])]);P=L}else P=p(D);return typeof arguments[0]=="string"?P:(arguments[0].text=P,arguments[0])};t.events.push(["preProcessText",F])})(Mt.API),Mt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,r){var i;if((e=e||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Mt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(P){c=P}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(P){u=P}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(P){g=P}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(P){y=P}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(P){A=P}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(P){p=P}});var F=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return F},set:function(P){F=P}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},t.getTextDimensions=function(c,u){r.call(this);var g=(u=u||{}).fontSize||this.getFontSize(),y=u.font||this.getFont(),A=u.scaleFactor||this.internal.scaleFactor,p=0,F=0,P=0,D=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var L=u.maxWidth;L>0?typeof c=="string"?c=this.splitTextToSize(c,L):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(q,j){return q.concat(D.splitTextToSize(j,L))},[])):c=Array.isArray(c)?c:[c];for(var H=0;H<c.length;H++)p<(P=this.getStringUnitWidth(c[H],{font:y})*g)&&(p=P);return p!==0&&(F=c.length),{w:p/=A,h:Math.max((F*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new a(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=t.cell=function(){var c;c=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var u=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,y=this.internal.__cell__.margins||n,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===c.lineNumber?(c.x=(u.x||0)+(u.width||0),c.y=u.y||0):u.y+u.height+c.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=y.top,p&&A&&(this.printHeaderRow(c.lineNumber,!0),c.y+=A[0].height)):c.y=u.y+u.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-g,c.y+g,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+g,{align:"center",baseline:"top",maxWidth:c.width-g-g}):this.text(c.text,c.x+g,c.y+g,{align:"left",baseline:"top",maxWidth:c.width-g-g})),this.internal.__cell__.lastCell=c,this};t.table=function(c,u,g,y,A){if(r.call(this),!g)throw new Error("No data for PDF table.");var p,F,P,D,L=[],H=[],q=[],j={},rt={},mt=[],ut=[],Y=(A=A||{}).autoSize||!1,R=A.printHeaders!==!1,tt=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,S=A.margins||Object.assign({width:this.getPageWidth()},n),O=typeof A.padding=="number"?A.padding:3,W=A.headerBackgroundColor||"#c8c8c8",U=A.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=U,this.setFontSize(tt),y==null)H=L=Object.keys(g[0]),q=L.map(function(){return"left"});else if(Array.isArray(y)&&Le(y[0])==="object")for(L=y.map(function(At){return At.name}),H=y.map(function(At){return At.prompt||At.name||""}),q=y.map(function(At){return At.align||"left"}),p=0;p<y.length;p+=1)rt[y[p].name]=.7499990551181103*y[p].width;else Array.isArray(y)&&typeof y[0]=="string"&&(H=L=y,q=L.map(function(){return"left"}));if(Y||Array.isArray(y)&&typeof y[0]=="string")for(p=0;p<L.length;p+=1){for(j[D=L[p]]=g.map(function(At){return At[D]}),this.setFont(void 0,"bold"),mt.push(this.getTextDimensions(H[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),F=j[D],this.setFont(void 0,"normal"),P=0;P<F.length;P+=1)mt.push(this.getTextDimensions(F[P],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);rt[D]=Math.max.apply(null,mt)+O+O,mt=[]}if(R){var it={};for(p=0;p<L.length;p+=1)it[L[p]]={},it[L[p]].text=H[p],it[L[p]].align=q[p];var st=l.call(this,it,rt);ut=L.map(function(At){return new a(c,u,rt[At],st,it[At].text,void 0,it[At].align)}),this.setTableHeaderRow(ut),this.printHeaderRow(1,!1)}var ht=y.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(p=0;p<g.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:g[p]},this);var nt=l.call(this,g[p],rt);for(P=0;P<L.length;P+=1){var ct=g[p][L[P]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:P,data:ct},this),h.call(this,new a(c,u,rt[L[P]],nt,ct,p+2,ht[L[P]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=u,this};var l=function(c,u){var g=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(c).map(function(p){var F=c[p];return this.splitTextToSize(F.hasOwnProperty("text")?F.text:F,u[p]-g-g)},this).map(function(p){return this.getLineHeightFactor()*p.length*y/A+g+g},this).reduce(function(p,F){return Math.max(p,F)},0)};t.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},t.printHeaderRow=function(c,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){g=this.internal.__cell__.tableHeaderRow[p].clone(),u&&(g.y=this.internal.__cell__.margins.top||0,A.push(g)),g.lineNumber=c;var F=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(F)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),e=!1}})(Mt.API);var Ku={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ih=Yu(Xu),Ju=[100,200,300,400,500,600,700,800,900],vd=Yu(Ju);function xh(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Ku[a=a||"normal"]?a:"normal"})(t.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(t.weight),i=(function(a){return typeof Ih[a=a||"normal"]=="number"?a:"normal"})(t.stretch);return{family:n,style:e,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:n,style:[i,e,r].join(" ")}}}function Lu(t,n,e,r){var i;for(i=e;i>=0&&i<n.length;i+=r)if(t[n[i]])return t[n[i]];for(i=e;i>=0&&i<n.length;i-=r)if(t[n[i]])return t[n[i]]}var bd={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Su={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ku(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Pu(t){return t.trimLeft()}function wd(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function yd(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Ms,Iu,Fu,ya,Rs,Eu,Cu,Ou,Ah=["times"];function Tu(t,n,e,r,i){var a=4,h=Mu;switch(i){case Mt.API.image_compression.FAST:a=1,h=Du;break;case Mt.API.image_compression.MEDIUM:a=6,h=Ru;break;case Mt.API.image_compression.SLOW:a=9,h=ju}t=(function(c,u,g,y){for(var A,p=c.length/u,F=new Uint8Array(c.length+p),P=[_d,Du,Mu,Ru,ju],D=0;D<p;D+=1){var L=D*u,H=c.subarray(L,L+u);if(y)F.set(y(H,g,A),L+D);else{for(var q=P.length,j=[],rt=0;rt<q;rt+=1)j[rt]=P[rt](H,g,A);var mt=Ad(j.concat());F.set(j[mt],L+D)}A=H}return F})(t,n,Math.ceil(e*r/8),h);var l=ds(t,{level:a});return Mt.API.__addimage__.arrayBufferToBinaryString(l)}function _d(t){var n=Array.apply([],t);return n.unshift(0),n}function Du(t,n){var e=t.length,r=[];r[0]=1;for(var i=0;i<e;i+=1){var a=t[i-n]||0;r[i+1]=t[i]-a+256&255}return r}function Mu(t,n,e){var r=t.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var h=e&&e[a]||0;i[a+1]=t[a]-h+256&255}return i}function Ru(t,n,e){var r=t.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var h=t[a-n]||0,l=e&&e[a]||0;i[a+1]=t[a]+256-(h+l>>>1)&255}return i}function ju(t,n,e){var r=t.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var h=xd(t[a-n]||0,e&&e[a]||0,e&&e[a-n]||0);i[a+1]=t[a]-h+256&255}return i}function xd(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),i=Math.abs(t-e),a=Math.abs(t+n-e-e);return r<=i&&r<=a?t:i<=a?n:e}function Ad(t){var n=t.map(function(e){return e.reduce(function(r,i){return r+Math.abs(i)},0)});return n.indexOf(Math.min.apply(null,n))}function Nh(t,n,e){var r=n*e,i=Math.floor(r/8),a=16-(r-8*i+e),h=(1<<e)-1;return Qu(t,i)>>a&h}function Bu(t,n,e,r){var i=e*r,a=Math.floor(i/8),h=16-(i-8*a+r),l=(1<<r)-1,c=(n&l)<<h;(function(u,g,y){if(g+1<u.byteLength)u.setUint16(g,y,!1);else{var A=y>>8&255;u.setUint8(g,A)}})(t,a,Qu(t,a)&~(l<<h)&65535|c)}function Qu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function Nd(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,i=t[n++],a=i>>7,h=1<<1+(7&i);t[n++],t[n++];var l=null,c=null;a&&(l=n,c=h,n+=3*h);var u=!0,g=[],y=0,A=null,p=0,F=null;for(this.width=e,this.height=r;u&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,F=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var P=t[n++];y=t[n++]|t[n++]<<8,A=t[n++],1&P||(A=null),p=P>>2&7,n++;break;case 254:for(;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var D=t[n++]|t[n++]<<8,L=t[n++]|t[n++]<<8,H=t[n++]|t[n++]<<8,q=t[n++]|t[n++]<<8,j=t[n++],rt=j>>6&1,mt=1<<1+(7&j),ut=l,Y=c,R=!1;j>>7&&(R=!0,ut=n,Y=mt,n+=3*mt);var tt=n;for(n++;;){var S;if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}g.push({x:D,y:L,width:H,height:q,has_local_palette:R,palette_offset:ut,palette_size:Y,data_offset:tt,data_length:n-tt,transparent_index:A,interlaced:!!rt,delay:y,disposal:p});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return F},this.frameInfo=function(O){if(O<0||O>=g.length)throw new Error("Frame index out of range.");return g[O]},this.decodeAndBlitFrameBGRA=function(O,W){var U=this.frameInfo(O),it=U.width*U.height,st=new Uint8Array(it);zu(t,U.data_offset,st,it);var ht=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),M=4*((U.y+U.height)*e+U.x),B=x,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(B+=G)>=M&&(G=4*At+4*e*($-1),B=x+(ct+At)*($<<1),$>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];W[B++]=kt,W[B++]=xt,W[B++]=gt,W[B++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(O,W){var U=this.frameInfo(O),it=U.width*U.height,st=new Uint8Array(it);zu(t,U.data_offset,st,it);var ht=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),M=4*((U.y+U.height)*e+U.x),B=x,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(B+=G)>=M&&(G=4*At+4*e*($-1),B=x+(ct+At)*($<<1),$>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];W[B++]=gt,W[B++]=xt,W[B++]=kt,W[B++]=255}--wt}}}function zu(t,n,e,r){for(var i=t[n++],a=1<<i,h=a+1,l=h+1,c=i+1,u=(1<<c)-1,g=0,y=0,A=0,p=t[n++],F=new Int32Array(4096),P=null;;){for(;g<16&&p!==0;)y|=t[n++]<<g,g+=8,p===1?p=t[n++]:--p;if(g<c)break;var D=y&u;if(y>>=c,g-=c,D!==a){if(D===h)break;for(var L=D<l?D:P,H=0,q=L;q>a;)q=F[q]>>8,++H;var j=q;if(A+H+(L!==D?1:0)>r)return void Pe.log("Warning, gif stream longer than expected.");e[A++]=j;var rt=A+=H;for(L!==D&&(e[A++]=j),q=L;H--;)q=F[q],e[--rt]=255&q,q>>=8;P!==null&&l<4096&&(F[l++]=P<<8|j,l>=u+1&&c<12&&(++c,u=u<<1|1)),P=D}else l=h+1,u=(1<<(c=i+1))-1,P=null}return A!==r&&Pe.log("Warning, gif stream shorter than expected."),e}function Lh(t){var n,e,r,i,a,h=Math.floor,l=new Array(64),c=new Array(64),u=new Array(64),g=new Array(64),y=new Array(65535),A=new Array(65535),p=new Array(64),F=new Array(64),P=[],D=0,L=7,H=new Array(64),q=new Array(64),j=new Array(64),rt=new Array(256),mt=new Array(2048),ut=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function st(x,M){for(var B=0,G=0,$=new Array,J=1;J<=16;J++){for(var at=1;at<=x[J];at++)$[M[G]]=[],$[M[G]][0]=B,$[M[G]][1]=J,G++,B++;B*=2}return $}function ht(x){for(var M=x[0],B=x[1]-1;B>=0;)M&1<<B&&(D|=1<<L),B--,--L<0&&(D==255?(nt(255),nt(0)):nt(D),L=7,D=0)}function nt(x){P.push(x)}function ct(x){nt(x>>8&255),nt(255&x)}function At(x,M,B,G,$){for(var J,at=$[0],ot=$[240],gt=(function(yt,Wt){var It,qt,zt,ye,he,Jt,ce,fe,Tt,ee,jt=0;for(Tt=0;Tt<8;++Tt){It=yt[jt],qt=yt[jt+1],zt=yt[jt+2],ye=yt[jt+3],he=yt[jt+4],Jt=yt[jt+5],ce=yt[jt+6];var Ue=It+(fe=yt[jt+7]),ge=It-fe,oe=qt+ce,se=qt-ce,Oe=zt+Jt,Ut=zt-Jt,Ie=ye+he,Zt=ye-he,Qt=Ue+Ie,Te=Ue-Ie,le=oe+Oe,Gt=oe-Oe;yt[jt]=Qt+le,yt[jt+4]=Qt-le;var _e=.707106781*(Gt+Te);yt[jt+2]=Te+_e,yt[jt+6]=Te-_e;var _i=.382683433*((Qt=Zt+Ut)-(Gt=se+ge)),gn=.5411961*Qt+_i,Pr=1.306562965*Gt+_i,ur=.707106781*(le=Ut+se),Vt=ge+ur,Ir=ge-ur;yt[jt+5]=Ir+gn,yt[jt+3]=Ir-gn,yt[jt+1]=Vt+Pr,yt[jt+7]=Vt-Pr,jt+=8}for(jt=0,Tt=0;Tt<8;++Tt){It=yt[jt],qt=yt[jt+8],zt=yt[jt+16],ye=yt[jt+24],he=yt[jt+32],Jt=yt[jt+40],ce=yt[jt+48];var Fr=It+(fe=yt[jt+56]),qn=It-fe,Hn=qt+ce,Re=qt-ce,an=zt+Jt,ln=zt-Jt,xi=ye+he,Xr=ye-he,tr=Fr+xi,dr=Fr-xi,er=Hn+an,nr=Hn-an;yt[jt]=tr+er,yt[jt+32]=tr-er;var Wn=.707106781*(nr+dr);yt[jt+16]=dr+Wn,yt[jt+48]=dr-Wn;var Ai=.382683433*((tr=Xr+ln)-(nr=Re+qn)),pr=.5411961*tr+Ai,Ni=1.306562965*nr+Ai,Xi=.707106781*(er=ln+Re),Ji=qn+Xi,Qi=qn-Xi;yt[jt+40]=Qi+pr,yt[jt+24]=Qi-pr,yt[jt+8]=Ji+Ni,yt[jt+56]=Ji-Ni,jt++}for(Tt=0;Tt<64;++Tt)ee=yt[Tt]*Wt[Tt],p[Tt]=ee>0?ee+.5|0:ee-.5|0;return p})(x,M),xt=0;xt<64;++xt)F[ut[xt]]=gt[xt];var kt=F[0]-B;B=F[0],kt==0?ht(G[0]):(ht(G[A[J=32767+kt]]),ht(y[J]));for(var St=63;St>0&&F[St]==0;)St--;if(St==0)return ht(at),B;for(var Bt,I=1;I<=St;){for(var Lt=I;F[I]==0&&I<=St;)++I;var ae=I-Lt;if(ae>=16){Bt=ae>>4;for(var Ht=1;Ht<=Bt;++Ht)ht(ot);ae&=15}J=32767+F[I],ht($[(ae<<4)+A[J]]),ht(y[J]),I++}return St!=63&&ht(at),B}function wt(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(M){for(var B=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],G=0;G<64;G++){var $=h((B[G]*M+50)/100);$=Math.min(Math.max($,1),255),l[ut[G]]=$}for(var J=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],at=0;at<64;at++){var ot=h((J[at]*M+50)/100);ot=Math.min(Math.max(ot,1),255),c[ut[at]]=ot}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)u[xt]=1/(l[ut[xt]]*gt[kt]*gt[St]*8),g[xt]=1/(c[ut[xt]]*gt[kt]*gt[St]*8),xt++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,M){M&&wt(M),P=new Array,D=0,L=7,ct(65496),ct(65504),ct(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ct(1),ct(1),nt(0),nt(0),(function(){ct(65499),ct(132),nt(0);for(var qt=0;qt<64;qt++)nt(l[qt]);nt(1);for(var zt=0;zt<64;zt++)nt(c[zt])})(),(function(qt,zt){ct(65472),ct(17),nt(8),ct(zt),ct(qt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(x.width,x.height),(function(){ct(65476),ct(418),nt(0);for(var qt=0;qt<16;qt++)nt(Y[qt+1]);for(var zt=0;zt<=11;zt++)nt(R[zt]);nt(16);for(var ye=0;ye<16;ye++)nt(tt[ye+1]);for(var he=0;he<=161;he++)nt(S[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(O[Jt+1]);for(var ce=0;ce<=11;ce++)nt(W[ce]);nt(17);for(var fe=0;fe<16;fe++)nt(U[fe+1]);for(var Tt=0;Tt<=161;Tt++)nt(it[Tt])})(),ct(65498),ct(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var B=0,G=0,$=0;D=0,L=7,this.encode.displayName="_encode_";for(var J,at,ot,gt,xt,kt,St,Bt,I,Lt=x.data,ae=x.width,Ht=x.height,yt=4*ae,Wt=0;Wt<Ht;){for(J=0;J<yt;){for(xt=yt*Wt+J,St=-1,Bt=0,I=0;I<64;I++)kt=xt+(Bt=I>>3)*yt+(St=4*(7&I)),Wt+Bt>=Ht&&(kt-=yt*(Wt+1+Bt-Ht)),J+St>=yt&&(kt-=J+St-yt+4),at=Lt[kt++],ot=Lt[kt++],gt=Lt[kt++],H[I]=(mt[at]+mt[ot+256|0]+mt[gt+512|0]>>16)-128,q[I]=(mt[at+768|0]+mt[ot+1024|0]+mt[gt+1280|0]>>16)-128,j[I]=(mt[at+1280|0]+mt[ot+1536|0]+mt[gt+1792|0]>>16)-128;B=At(H,u,B,n,r),G=At(q,g,G,e,i),$=At(j,g,$,e,i),J+=32}Wt+=8}if(L>=0){var It=[];It[1]=L+1,It[0]=(1<<L+1)-1,ht(It)}return ct(65497),new Uint8Array(P)},t=t||50,(function(){for(var x=String.fromCharCode,M=0;M<256;M++)rt[M]=x(M)})(),n=st(Y,R),e=st(O,W),r=st(tt,S),i=st(U,it),(function(){for(var x=1,M=2,B=1;B<=15;B++){for(var G=x;G<M;G++)A[32767+G]=B,y[32767+G]=[],y[32767+G][1]=B,y[32767+G][0]=G;for(var $=-(M-1);$<=-x;$++)A[32767+$]=B,y[32767+$]=[],y[32767+$][1]=B,y[32767+$][0]=M-1+$;x<<=1,M<<=1}})(),(function(){for(var x=0;x<256;x++)mt[x]=19595*x,mt[x+256|0]=38470*x,mt[x+512|0]=7471*x+32768,mt[x+768|0]=-11059*x,mt[x+1024|0]=-21709*x,mt[x+1280|0]=32768*x+8421375,mt[x+1536|0]=-27439*x,mt[x+1792|0]=-5329*x})(),wt(t)}function hr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Uu(t){function n(R){if(!R)throw Error("assert :P")}function e(R,tt,S){for(var O=0;4>O;O++)if(R[tt+O]!=S.charCodeAt(O))return!0;return!1}function r(R,tt,S,O,W){for(var U=0;U<W;U++)R[tt+U]=S[O+U]}function i(R,tt,S,O){for(var W=0;W<O;W++)R[tt+W]=S}function a(R){return new Int32Array(R)}function h(R,tt){for(var S=[],O=0;O<R;O++)S.push(new tt);return S}function l(R,tt){var S=[];return(function O(W,U,it){for(var st=it[U],ht=0;ht<st&&(W.push(it.length>U+1?[]:new tt),!(it.length<U+1));ht++)O(W[ht],U+1,it)})(S,0,R),S}var c=function(){var R=this;function tt(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function S(o,s,d,m,b){n(!(m%d));do o[s+(m-=d)]=b;while(0<m)}function O(o,s,d,m,b){if(n(2328>=b),512>=b)var w=a(512);else if((w=a(b))==null)return 0;return(function(_,N,k,E,V,et){var C,Z,X=N,lt=1<<k,Q=a(16),ft=a(16);for(n(V!=0),n(E!=null),n(_!=null),n(0<k),Z=0;Z<V;++Z){if(15<E[Z])return 0;++Q[E[Z]]}if(Q[0]==V)return 0;for(ft[1]=0,C=1;15>C;++C){if(Q[C]>1<<C)return 0;ft[C+1]=ft[C]+Q[C]}for(Z=0;Z<V;++Z)C=E[Z],0<E[Z]&&(et[ft[C]++]=Z);if(ft[15]==1)return(E=new W).g=0,E.value=et[0],S(_,X,1,lt,E),lt;var pt,_t=-1,bt=lt-1,Rt=0,Pt=1,re=1,Ct=1<<k;for(Z=0,C=1,V=2;C<=k;++C,V<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C])(E=new W).g=C,E.value=et[Z++],S(_,X+Rt,V,Ct,E),Rt=tt(Rt,C)}for(C=k+1,V=2;15>=C;++C,V<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C]){if(E=new W,(Rt&bt)!=_t){for(X+=Ct,pt=1<<(_t=C)-k;15>_t&&!(0>=(pt-=Q[_t]));)++_t,pt<<=1;lt+=Ct=1<<(pt=_t-k),_[N+(_t=Rt&bt)].g=pt+k,_[N+_t].value=X-N-_t}E.g=C-k,E.value=et[Z++],S(_,X+(Rt>>k),V,Ct,E),Rt=tt(Rt,C)}}return Pt!=2*ft[15]-1?0:lt})(o,s,d,m,b,w)}function W(){this.value=this.g=0}function U(){this.value=this.g=0}function it(){this.G=h(5,W),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Di,U)}function st(o,s,d,m){n(o!=null),n(s!=null),n(2147483648>m),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+m,o.Zc=4<=m?d+m-4+1:d,at(o)}function ht(o,s){for(var d=0;0<s--;)d|=gt(o,128)<<s;return d}function nt(o,s){var d=ht(o,s);return ot(o)?-d:d}function ct(o,s,d,m){var b,w=0;for(n(o!=null),n(s!=null),n(4294967288>m),o.Sb=m,o.Ra=0,o.u=0,o.h=0,4<m&&(m=4),b=0;b<m;++b)w+=s[d+b]<<8*b;o.Ra=w,o.bb=m,o.oa=s,o.pa=d}function At(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<ei-8>>>0,++o.bb,o.u-=8;G(o)&&(o.h=1,o.u=0)}function wt(o,s){if(n(0<=s),!o.h&&s<=Cn){var d=B(o)&En[s];return o.u+=s,At(o),d}return o.h=1,o.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(o){return o.Ra>>>(o.u&ei-1)>>>0}function G(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>ei}function $(o,s){o.u=s,o.h=G(o)}function J(o){o.u>=Ur&&(n(o.u>=Ur),At(o))}function at(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ot(o){return ht(o,1)}function gt(o,s){var d=o.Ca;0>o.b&&at(o);var m=o.b,b=d*s>>>8,w=(o.I>>>m>b)+0;for(w?(d-=b,o.I-=b+1<<m>>>0):d=b+1,m=d,b=0;256<=m;)b+=8,m>>=8;return m=7^b+ni[m],o.b-=m,o.Ca=(d<<m)-1,w}function xt(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function St(o,s){return kt(o,s)|o[s+2]<<16}function Bt(o,s){return kt(o,s)|kt(o,s+2)<<16}function I(o,s){var d=1<<s;return n(o!=null),n(0<s),o.X=a(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function Lt(o,s){n(o!=null),n(s!=null),n(o.Xa==s.Xa),r(s.X,0,o.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(o,s,d,m){n(d!=null),n(m!=null);var b=d[0],w=m[0];return b==0&&(b=(o*w+s/2)/s),w==0&&(w=(s*b+o/2)/o),0>=b||0>=w?0:(d[0]=b,m[0]=w,1)}function yt(o,s){return o+(1<<s)-1>>>s}function Wt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function It(o,s){R[s]=function(d,m,b,w,_,N,k){var E;for(E=0;E<_;++E){var V=R[o](N[k+E-1],b,w+E);N[k+E]=Wt(d[m+E],V)}}}function qt(){this.ud=this.hd=this.jd=0}function zt(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function ye(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function he(o,s){return ye(o+(o-s+.5>>1))}function Jt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function ce(o,s,d,m,b,w,_){for(m=w[_-1],d=0;d<b;++d)w[_+d]=m=Wt(o[s+d],m)}function fe(o,s,d,m,b){var w;for(w=0;w<d;++w){var _=o[s+w],N=_>>8&255,k=16711935&(k=(k=16711935&_)+((N<<16)+N));m[b+w]=(4278255360&_)+k>>>0}}function Tt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function ee(o,s,d,m,b,w){var _;for(_=0;_<m;++_){var N=s[d+_],k=N>>>8,E=N,V=255&(V=(V=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));E=255&(E=(E+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(V<<24>>24)>>>5)),b[w+_]=(4278255360&N)+(V<<16)+E}}function jt(o,s,d,m,b){R[s]=function(w,_,N,k,E,V,et,C,Z){for(k=et;k<C;++k)for(et=0;et<Z;++et)E[V++]=b(N[m(w[_++])])},R[o]=function(w,_,N,k,E,V,et){var C=8>>w.b,Z=w.Ea,X=w.K[0],lt=w.w;if(8>C)for(w=(1<<w.b)-1,lt=(1<<C)-1;_<N;++_){var Q,ft=0;for(Q=0;Q<Z;++Q)Q&w||(ft=m(k[E++])),V[et++]=b(X[ft&lt]),ft>>=C}else R["VP8LMapColor"+d](k,E,X,lt,V,et,_,N,Z)}}function Ue(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=w>>16&255,m[b++]=w>>8&255,m[b++]=255&w}}function ge(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=w>>16&255,m[b++]=w>>8&255,m[b++]=255&w,m[b++]=w>>24&255}}function oe(o,s,d,m,b){for(d=s+d;s<d;){var w=(_=o[s++])>>16&240|_>>12&15,_=240&_|_>>28&15;m[b++]=w,m[b++]=_}}function se(o,s,d,m,b){for(d=s+d;s<d;){var w=(_=o[s++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;m[b++]=w,m[b++]=_}}function Oe(o,s,d,m,b){for(d=s+d;s<d;){var w=o[s++];m[b++]=255&w,m[b++]=w>>8&255,m[b++]=w>>16&255}}function Ut(o,s,d,m,b,w){if(w==0)for(d=s+d;s<d;)xt(m,((w=o[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else r(m,b,o,s,d)}function Ie(o,s){R[s][0]=R[o+"0"],R[s][1]=R[o+"1"],R[s][2]=R[o+"2"],R[s][3]=R[o+"3"],R[s][4]=R[o+"4"],R[s][5]=R[o+"5"],R[s][6]=R[o+"6"],R[s][7]=R[o+"7"],R[s][8]=R[o+"8"],R[s][9]=R[o+"9"],R[s][10]=R[o+"10"],R[s][11]=R[o+"11"],R[s][12]=R[o+"12"],R[s][13]=R[o+"13"],R[s][14]=R[o+"0"],R[s][15]=R[o+"0"]}function Zt(o){return o==ul||o==dl||o==es||o==pl}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Te(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Te,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function _i(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function gn(o,s){var d=o.T,m=s.ba.f.RGBA,b=m.eb,w=m.fb+o.ka*m.A,_=Kn[s.ba.S],N=o.y,k=o.O,E=o.f,V=o.N,et=o.ea,C=o.W,Z=s.cc,X=s.dc,lt=s.Mc,Q=s.Nc,ft=o.ka,pt=o.ka+o.T,_t=o.U,bt=_t+1>>1;for(ft==0?_(N,k,null,null,E,V,et,C,E,V,et,C,b,w,null,null,_t):(_(s.ec,s.fc,N,k,Z,X,lt,Q,E,V,et,C,b,w-m.A,b,w,_t),++d);ft+2<pt;ft+=2)Z=E,X=V,lt=et,Q=C,V+=o.Rc,C+=o.Rc,w+=2*m.A,_(N,(k+=2*o.fa)-o.fa,N,k,Z,X,lt,Q,E,V,et,C,b,w-m.A,b,w,_t);return k+=o.fa,o.j+pt<o.o?(r(s.ec,s.fc,N,k,_t),r(s.cc,s.dc,E,V,bt),r(s.Mc,s.Nc,et,C,bt),d--):1&pt||_(N,k,null,null,E,V,et,C,E,V,et,C,b,w+m.A,null,null,_t),d}function Pr(o,s,d){var m=o.F,b=[o.J];if(m!=null){var w=o.U,_=s.ba.S,N=_==ts||_==es;s=s.ba.f.RGBA;var k=[0],E=o.ka;k[0]=o.T,o.Kb&&(E==0?--k[0]:(--E,b[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-E));var V=s.eb;E=s.fb+E*s.A,o=Hh(m,b[0],o.width,w,k,V,E+(N?0:3),s.A),n(d==k),o&&Zt(_)&&Xa(V,E,N,w,k,s.A)}return 0}function ur(o){var s=o.ma,d=s.ba.S,m=11>d,b=d==Jo||d==Qo||d==ts||d==cl||d==12||Zt(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Ha(s.Oa,o,b?11:12))return 0;if(b&&Zt(d)&&za(),o.da)alert("todo:use_scaling");else{if(m){if(s.Ib=_i,o.Kb){if(d=o.U+1>>1,s.memory=a(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=gn,za()}}else alert("todo:EmitYUV");b&&(s.Jb=Pr,m&&ir())}if(m&&!sf){for(o=0;256>o;++o)k1[o]=89858*(o-128)+rs>>ns,F1[o]=-22014*(o-128)+rs,I1[o]=-45773*(o-128),P1[o]=113618*(o-128)+rs>>ns;for(o=Qa;o<vl;++o)s=76283*(o-16)+rs>>ns,E1[o-Qa]=gr(s,255),C1[o-Qa]=gr(s+8>>4,15);sf=1}return 1}function Vt(o){var s=o.ma,d=o.U,m=o.T;return n(!(1&o.ka)),0>=d||0>=m?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function Ir(o){o.ma.memory=null}function Fr(o,s,d,m){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,m[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function qn(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Hn(o,s){return 120<s?s-120:1<=(d=((d=d1[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function Re(o,s,d){var m=B(d),b=o[s+=255&m].g-8;return 0<b&&($(d,d.u+8),m=B(d),s+=o[s].value,s+=m&(1<<b)-1),$(d,d.u+o[s].g),o[s].value}function an(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,n(8>=d.g),o.g}function ln(o,s,d){var m=o.xc;return n((s=m==0?0:o.vc[o.md*(d>>m)+(s>>m)])<o.Wb),o.Ya[s]}function xi(o,s,d,m){var b=o.ab,w=o.c*s,_=o.C;s=_+s;var N=d,k=m;for(m=o.Ta,d=o.Ua;0<b--;){var E=o.gc[b],V=_,et=s,C=N,Z=k,X=(k=m,N=d,E.Ea);switch(n(V<et),n(et<=E.nc),E.hc){case 2:qe(C,Z,(et-V)*X,k,N);break;case 0:var lt=V,Q=et,ft=k,pt=N,_t=(Ct=E).Ea;lt==0&&(Ga(C,Z,null,null,1,ft,pt),ce(C,Z+1,0,0,_t-1,ft,pt+1),Z+=_t,pt+=_t,++lt);for(var bt=1<<Ct.b,Rt=bt-1,Pt=yt(_t,Ct.b),re=Ct.K,Ct=Ct.w+(lt>>Ct.b)*Pt;lt<Q;){var ue=re,en=Ct,ie=1;for(sa(C,Z,ft,pt-_t,1,ft,pt);ie<_t;){var Ot=(ie&~Rt)+bt;Ot>_t&&(Ot=_t),(0,Za[ue[en++]>>8&15])(C,Z+ +ie,ft,pt+ie-_t,Ot-ie,ft,pt+ie),ie=Ot}Z+=_t,pt+=_t,++lt&Rt||(Ct+=Pt)}et!=E.nc&&r(k,N-X,k,N+(et-V-1)*X,X);break;case 1:for(X=C,Q=Z,_t=(C=E.Ea)-(pt=C&~(ft=(Z=1<<E.b)-1)),lt=yt(C,E.b),bt=E.K,E=E.w+(V>>E.b)*lt;V<et;){for(Rt=bt,Pt=E,re=new qt,Ct=Q+pt,ue=Q+C;Q<Ct;)Tt(Rt[Pt++],re),$a(re,X,Q,Z,k,N),Q+=Z,N+=Z;Q<ue&&(Tt(Rt[Pt++],re),$a(re,X,Q,_t,k,N),Q+=_t,N+=_t),++V&ft||(E+=lt)}break;case 3:if(C==k&&Z==N&&0<E.b){for(Q=k,C=X=N+(et-V)*X-(pt=(et-V)*yt(E.Ea,E.b)),Z=k,ft=N,lt=[],pt=(_t=pt)-1;0<=pt;--pt)lt[pt]=Z[ft+pt];for(pt=_t-1;0<=pt;--pt)Q[C+pt]=lt[pt];$o(E,V,et,k,X,k,N)}else $o(E,V,et,C,Z,k,N)}N=m,k=d}k!=d&&r(m,d,N,k,w)}function Xr(o,s){var d=o.V,m=o.Ba+o.c*o.C,b=s-o.C;if(n(s<=o.l.o),n(16>=b),0<b){var w=o.l,_=o.Ta,N=o.Ua,k=w.width;if(xi(o,b,d,m),b=N=[N],n((d=o.C)<(m=s)),n(w.v<w.va),m>w.o&&(m=w.o),d<w.j){var E=w.j-d;d=w.j,b[0]+=E*k}if(d>=m?d=0:(b[0]+=4*w.v,w.ka=d-w.j,w.U=w.va-w.v,w.T=m-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var V=d.f.RGBA,et=(m=d.S,b=w.U,w=w.T,E=V.eb,V.A),C=w;for(V=V.fb+o.Ma*V.A;0<C--;){var Z=_,X=N,lt=b,Q=E,ft=V;switch(m){case Xo:Ya(Z,X,lt,Q,ft);break;case Jo:ri(Z,X,lt,Q,ft);break;case ul:ri(Z,X,lt,Q,ft),Xa(Q,ft,0,lt,1,0);break;case Kh:Mi(Z,X,lt,Q,ft);break;case Qo:Ut(Z,X,lt,Q,ft,1);break;case dl:Ut(Z,X,lt,Q,ft,1),Xa(Q,ft,0,lt,1,0);break;case ts:Ut(Z,X,lt,Q,ft,0);break;case es:Ut(Z,X,lt,Q,ft,0),Xa(Q,ft,1,lt,1,0);break;case cl:ii(Z,X,lt,Q,ft);break;case pl:ii(Z,X,lt,Q,ft),qh(Q,ft,lt,1,0);break;case Xh:ai(Z,X,lt,Q,ft);break;default:n(0)}N+=k,V+=et}o.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=d.height)}}o.C=s,n(o.C<=o.i)}function tr(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,m=o.Ya[s].H;if(0<d[1][m[1]+0].g||0<d[2][m[2]+0].g||0<d[3][m[3]+0].g)return 0}return 1}function dr(o,s,d,m,b,w){if(o.Z!=0){var _=o.qd,N=o.rd;for(n(li[o.Z]!=null);s<d;++s)li[o.Z](_,N,m,b,m,b,w),_=m,N=b,b+=w;o.qd=_,o.rd=N}}function er(o,s){var d=o.l.ma,m=d.Z==0||d.Z==1?o.l.j:o.C;if(m=o.C<m?m:o.C,n(s<=o.l.o),s>m){var b=o.l.width,w=d.ca,_=d.tb+b*m,N=o.V,k=o.Ba+o.c*m,E=o.gc;n(o.ab==1),n(E[0].hc==3),wr(E[0],m,s,N,k,w,_),dr(d,m,s,w,_,b)}o.C=o.Ma=s}function nr(o,s,d,m,b,w,_){var N=o.$/m,k=o.$%m,E=o.m,V=o.s,et=d+o.$,C=et;b=d+m*b;var Z=d+m*w,X=280+V.ua,lt=o.Pb?N:16777216,Q=0<V.ua?V.Wa:null,ft=V.wc,pt=et<Z?ln(V,k,N):null;n(o.C<w),n(Z<=b);var _t=!1;t:for(;;){for(;_t||et<Z;){var bt=0;if(N>=lt){var Rt=et-d;n((lt=o).Pb),lt.wd=lt.m,lt.xd=Rt,0<lt.s.ua&&Lt(lt.s.Wa,lt.s.vb),lt=N+g1}if(k&ft||(pt=ln(V,k,N)),n(pt!=null),pt.Qb&&(s[et]=pt.qb,_t=!0),!_t)if(J(E),pt.jc){bt=E,Rt=s;var Pt=et,re=pt.pd[B(bt)&Di-1];n(pt.jc),256>re.g?($(bt,bt.u+re.g),Rt[Pt]=re.value,bt=0):($(bt,bt.u+re.g-256),n(256<=re.value),bt=re.value),bt==0&&(_t=!0)}else bt=Re(pt.G[0],pt.H[0],E);if(E.h)break;if(_t||256>bt){if(!_t)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else{if(J(E),_t=Re(pt.G[1],pt.H[1],E),J(E),Rt=Re(pt.G[2],pt.H[2],E),Pt=Re(pt.G[3],pt.H[3],E),E.h)break;s[et]=(Pt<<24|_t<<16|bt<<8|Rt)>>>0}if(_t=!1,++et,++k>=m&&(k=0,++N,_!=null&&N<=w&&!(N%16)&&_(o,N),Q!=null))for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=qn(bt-256,E),Rt=Re(pt.G[4],pt.H[4],E),J(E),Rt=Hn(m,Rt=qn(Rt,E)),E.h)break;if(et-d<Rt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Rt];for(et+=bt,k+=bt;k>=m;)k-=m,++N,_!=null&&N<=w&&!(N%16)&&_(o,N);if(n(et<=b),k&ft&&(pt=ln(V,k,N)),Q!=null)for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<X))break t;for(_t=bt-280,n(Q!=null);C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,n(!(_t>>>(Rt=Q).Xa)),s[bt]=Rt.X[_t],_t=!0}_t||n(E.h==G(E))}if(o.Pb&&E.h&&et<b)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Lt(o.s.vb,o.s.Wa);else{if(E.h)break t;_?.(o,N>w?w:N),o.a=0,o.$=et-d}return 1}return o.a=3,0}function Wn(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,n(o!=null)}function Ai(){var o=new Yt;return o==null?null:(o.a=0,o.xb=tf,Ie("Predictor","VP8LPredictors"),Ie("Predictor","VP8LPredictors_C"),Ie("PredictorAdd","VP8LPredictorsAdd"),Ie("PredictorAdd","VP8LPredictorsAdd_C"),qe=fe,$a=ee,Ya=Ue,ri=ge,ii=oe,ai=se,Mi=Oe,R.VP8LMapColor32b=br,R.VP8LMapColor8b=Va,o)}function pr(o,s,d,m,b){var w=1,_=[o],N=[s],k=m.m,E=m.s,V=null,et=0;t:for(;;){if(d)for(;w&&wt(k,1);){var C=_,Z=N,X=m,lt=1,Q=X.m,ft=X.gc[X.ab],pt=wt(Q,2);if(X.Oc&1<<pt)w=0;else{switch(X.Oc|=1<<pt,ft.hc=pt,ft.Ea=C[0],ft.nc=Z[0],ft.K=[null],++X.ab,n(4>=X.ab),pt){case 0:case 1:ft.b=wt(Q,3)+2,lt=pr(yt(ft.Ea,ft.b),yt(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(Q,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(C[0]=yt(ft.Ea,Rt),ft.b=Rt,_t=lt=pr(bt,1,0,X,ft.K)){var Pt,re=bt,Ct=ft,ue=1<<(8>>Ct.b),en=a(ue);if(en==null)_t=0;else{var ie=Ct.K[0],Ot=Ct.w;for(en[0]=Ct.K[0][0],Pt=1;Pt<1*re;++Pt)en[Pt]=Wt(ie[Ot+Pt],en[Pt-1]);for(;Pt<4*ue;++Pt)en[Pt]=0;Ct.K[0]=null,Ct.K[0]=en,_t=1}}lt=_t;break;case 2:break;default:n(0)}w=lt}}if(_=_[0],N=N[0],w&&wt(k,1)&&!(w=1<=(et=wt(k,4))&&11>=et)){m.a=3;break t}var Nt;if(Nt=w)e:{var We,te,pe,Ce=m,cn=_,xn=N,je=et,mn=d,An=Ce.m,nn=Ce.s,ve=[null],Ae=1,Be=0,Ne=p1[je];n:for(;;){if(mn&&wt(An,1)){var un=wt(An,3)+2,or=yt(cn,un),Ge=yt(xn,un),kn=or*Ge;if(!pr(or,Ge,0,Ce,ve))break n;for(ve=ve[0],nn.xc=un,We=0;We<kn;++We){var ke=ve[We]>>8&65535;ve[We]=ke,ke>=Ae&&(Ae=ke+1)}}if(An.h)break n;for(te=0;5>te;++te){var rn=Jh[te];!te&&0<je&&(rn+=1<<je),Be<rn&&(Be=rn)}var Tn=h(Ae*Ne,W),Nn=Ae,Dn=h(Nn,it);if(Dn==null)var Mn=null;else n(65536>=Nn),Mn=Dn;var Pn=a(Be);if(Mn==null||Pn==null||Tn==null){Ce.a=1;break n}var Rn=Tn;for(We=pe=0;We<Ae;++We){var Ee=Mn[We],jn=Ee.G,sr=Ee.H,ji=0,Wr=1,dn=0;for(te=0;5>te;++te){rn=Jh[te],jn[te]=Rn,sr[te]=pe,!te&&0<je&&(rn+=1<<je);i:{var as,bl=rn,os=Ce,to=Pn,D1=Rn,M1=pe,wl=0,hi=os.m,R1=wt(hi,1);if(i(to,0,0,bl),R1){var j1=wt(hi,1)+1,B1=wt(hi,1),ff=wt(hi,B1==0?1:8);to[ff]=1,j1==2&&(to[ff=wt(hi,8)]=1);var ss=1}else{var cf=a(19),uf=wt(hi,4)+4;if(19<uf){os.a=3;var ls=0;break i}for(as=0;as<uf;++as)cf[u1[as]]=wt(hi,3);var yl=void 0,eo=void 0,df=os,z1=cf,hs=bl,pf=to,_l=0,fi=df.m,gf=8,mf=h(128,W);r:for(;O(mf,0,7,z1,19);){if(wt(fi,1)){var U1=2+2*wt(fi,3);if((yl=2+wt(fi,U1))>hs)break r}else yl=hs;for(eo=0;eo<hs&&yl--;){J(fi);var vf=mf[0+(127&B(fi))];$(fi,fi.u+vf.g);var ha=vf.value;if(16>ha)pf[eo++]=ha,ha!=0&&(gf=ha);else{var q1=ha==16,bf=ha-16,H1=f1[bf],wf=wt(fi,h1[bf])+H1;if(eo+wf>hs)break r;for(var W1=q1?gf:0;0<wf--;)pf[eo++]=W1}}_l=1;break r}_l||(df.a=3),ss=_l}(ss=ss&&!hi.h)&&(wl=O(D1,M1,8,to,bl)),ss&&wl!=0?ls=wl:(os.a=3,ls=0)}if(ls==0)break n;if(Wr&&c1[te]==1&&(Wr=Rn[pe].g==0),ji+=Rn[pe].g,pe+=ls,3>=te){var no,xl=Pn[0];for(no=1;no<rn;++no)Pn[no]>xl&&(xl=Pn[no]);dn+=xl}}if(Ee.nd=Wr,Ee.Qb=0,Wr&&(Ee.qb=(jn[3][sr[3]+0].value<<24|jn[1][sr[1]+0].value<<16|jn[2][sr[2]+0].value)>>>0,ji==0&&256>jn[0][sr[0]+0].value&&(Ee.Qb=1,Ee.qb+=jn[0][sr[0]+0].value<<8)),Ee.jc=!Ee.Qb&&6>dn,Ee.jc){var fs,Gr=Ee;for(fs=0;fs<Di;++fs){var ci=fs,ui=Gr.pd[ci],cs=Gr.G[0][Gr.H[0]+ci];256<=cs.value?(ui.g=cs.g+256,ui.value=cs.value):(ui.g=0,ui.value=0,ci>>=an(cs,8,ui),ci>>=an(Gr.G[1][Gr.H[1]+ci],16,ui),ci>>=an(Gr.G[2][Gr.H[2]+ci],0,ui),an(Gr.G[3][Gr.H[3]+ci],24,ui))}}}nn.vc=ve,nn.Wb=Ae,nn.Ya=Mn,nn.yc=Tn,Nt=1;break e}Nt=0}if(!(w=Nt)){m.a=3;break t}if(0<et){if(E.ua=1<<et,!I(E.Wa,et)){m.a=1,w=0;break t}}else E.ua=0;var Al=m,yf=_,G1=N,Nl=Al.s,Ll=Nl.xc;if(Al.c=yf,Al.i=G1,Nl.md=yt(yf,Ll),Nl.wc=Ll==0?-1:(1<<Ll)-1,d){m.xb=x1;break t}if((V=a(_*N))==null){m.a=1,w=0;break t}w=(w=nr(m,V,0,_,N,N,null))&&!k.h;break t}return w?(b!=null?b[0]=V:(n(V==null),n(d)),m.$=0,d||Wn(E)):Wn(E),w}function Ni(o,s){var d=o.c*o.i,m=d+s+16*s;return n(o.c<=s),o.V=a(m),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Xi(o,s){var d=o.C,m=s-d,b=o.V,w=o.Ba+o.c*d;for(n(s<=o.l.o);0<m;){var _=16<m?16:m,N=o.l.ma,k=o.l.width,E=k*_,V=N.ca,et=N.tb+k*d,C=o.Ta,Z=o.Ua;xi(o,_,b,w),Wh(C,Z,V,et,E),dr(N,d,d+_,V,et,k),m-=_,b+=_*o.c,d+=_}n(d==s),o.C=o.Ma=s}function Ji(){this.ub=this.yd=this.td=this.Rb=0}function Qi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $s(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ia(){this.Yb=(function(){var o=[];return(function s(d,m,b){for(var w=b[m],_=0;_<w&&(d.push(b.length>m+1?[]:0),!(b.length<m+1));_++)s(d[_],m+1,b)})(o,0,[3,11]),o})()}function Fo(){this.jb=a(3),this.Wc=l([4,8],Ia),this.Xc=l([4,17],Ia)}function Eo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function Fa(){this.Na=this.la=0}function Co(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ea(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Oo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Ea),this.aa=0,this.l=new ta}function To(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Do(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Ji,this.Kc=new Qi,this.ed=new Eo,this.Qa=new $s,this.Ic=this.$c=this.Aa=0,this.D=new Oo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,x),this.ia=0,this.pb=h(4,Co),this.Pa=new Fo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new To),this.Hd=0,this.rb=Array(new Fa),this.sb=0,this.wa=Array(new Gn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ea),this.L=this.aa=0,this.gd=l([4,2],Gn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function gr(o,s){return 0>o?0:o>s?s:o}function ta(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ys(){var o=new Do;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Ja||(Ja=ea)),o}function Ye(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function Mo(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function mr(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Ye(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,m=s.w,b=s.ha;if(4>b)return Ye(o,7,"Truncated header.");var w=d[m+0]|d[m+1]<<8|d[m+2]<<16,_=o.Od;if(_.Rb=!(1&w),_.td=w>>1&7,_.yd=w>>4&1,_.ub=w>>5,3<_.td)return Ye(o,3,"Incorrect keyframe parameters.");if(!_.yd)return Ye(o,4,"Frame not displayable.");m+=3,b-=3;var N=o.Kc;if(_.Rb){if(7>b)return Ye(o,7,"cannot parse picture header");if(!Mo(d,m,b))return Ye(o,3,"Bad code word");N.c=16383&(d[m+4]<<8|d[m+3]),N.Td=d[m+4]>>6,N.i=16383&(d[m+6]<<8|d[m+5]),N.Ud=d[m+6]>>6,m+=7,b-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,i((w=o.Pa).jb,0,255,w.jb.length),n((w=o.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,i(w.Zb,0,0,w.Zb.length),i(w.Lb,0,0,w.Lb)}if(_.ub>b)return Ye(o,7,"bad partition length");st(w=o.m,d,m,_.ub),m+=_.ub,b-=_.ub,_.Rb&&(N.Ld=ot(w),N.Kd=ot(w)),N=o.Qa;var k,E=o.Pa;if(n(w!=null),n(N!=null),N.Cb=ot(w),N.Cb){if(N.Bb=ot(w),ot(w)){for(N.Fb=ot(w),k=0;4>k;++k)N.Zb[k]=ot(w)?nt(w,7):0;for(k=0;4>k;++k)N.Lb[k]=ot(w)?nt(w,6):0}if(N.Bb)for(k=0;3>k;++k)E.jb[k]=ot(w)?ht(w,8):255}else N.Bb=0;if(w.Ka)return Ye(o,3,"cannot parse segment header");if((N=o.ed).zd=ot(w),N.Tb=ht(w,6),N.wb=ht(w,3),N.Pc=ot(w),N.Pc&&ot(w)){for(E=0;4>E;++E)ot(w)&&(N.vd[E]=nt(w,6));for(E=0;4>E;++E)ot(w)&&(N.od[E]=nt(w,6))}if(o.L=N.Tb==0?0:N.zd?1:2,w.Ka)return Ye(o,3,"cannot parse filter header");var V=b;if(b=k=m,m=k+V,N=V,o.Xb=(1<<ht(o.m,2))-1,V<3*(E=o.Xb))d=7;else{for(k+=3*E,N-=3*E,V=0;V<E;++V){var et=d[b+0]|d[b+1]<<8|d[b+2]<<16;et>N&&(et=N),st(o.Jc[+V],d,k,et),k+=et,N-=et,b+=3}st(o.Jc[+E],d,k,N),d=k<m?0:5}if(d!=0)return Ye(o,d,"cannot parse partitions");for(d=ht(k=o.m,7),b=ot(k)?nt(k,4):0,m=ot(k)?nt(k,4):0,N=ot(k)?nt(k,4):0,E=ot(k)?nt(k,4):0,k=ot(k)?nt(k,4):0,V=o.Qa,et=0;4>et;++et){if(V.Cb){var C=V.Zb[et];V.Fb||(C+=d)}else{if(0<et){o.pb[et]=o.pb[0];continue}C=d}var Z=o.pb[et];Z.Sc[0]=gl[gr(C+b,127)],Z.Sc[1]=ml[gr(C+0,127)],Z.Eb[0]=2*gl[gr(C+m,127)],Z.Eb[1]=101581*ml[gr(C+N,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=gl[gr(C+E,117)],Z.Qc[1]=ml[gr(C+k,127)],Z.lc=C+k}if(!_.Rb)return Ye(o,4,"Not a key frame.");for(ot(w),_=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(m=0;3>m;++m)for(N=0;11>N;++N)E=gt(w,y1[d][b][m][N])?ht(w,8):b1[d][b][m][N],_.Wc[d][b].Yb[m][N]=E;for(b=0;17>b;++b)_.Xc[d][b]=_.Wc[d][_1[b]]}return o.kc=ot(w),o.kc&&(o.Bd=ht(w,8)),o.cb=1}function ea(o,s,d,m,b,w,_){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!gt(o,N[d+0]))return b;for(;!gt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+1].Yb;if(gt(o,N[d+2])){var E=o,V=0;if(gt(E,(C=N)[(et=d)+3]))if(gt(E,C[et+6])){for(N=0,et=2*(V=gt(E,C[et+8]))+(C=gt(E,C[et+9+V])),V=0,C=m1[et];C[N];++N)V+=V+gt(E,C[N]);V+=3+(8<<et)}else gt(E,C[et+7])?(V=7+2*gt(E,165),V+=gt(E,145)):V=5+gt(E,159);else V=gt(E,C[et+4])?3+gt(E,C[et+5]):2;N=k[2]}else V=1,N=k[1];k=_+v1[b],0>(E=o).b&&at(E);var et,C=E.b,Z=(et=E.Ca>>1)-(E.I>>C)>>31;--E.b,E.Ca+=Z,E.Ca|=1,E.I-=(et+1&Z)<<C,w[k]=((V^Z)-Z)*m[(0<b)+0]}return 16}function Ro(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function Vn(o,s,d,m,b){b=o[s+d+32*m]+(b>>3),o[s+d+32*m]=-256&b?0>b?0:255:b}function Je(o,s,d,m,b,w){Vn(o,s,0,d,m+b),Vn(o,s,1,d,m+w),Vn(o,s,2,d,m-w),Vn(o,s,3,d,m-b)}function Er(o){return(20091*o>>16)+o}function jo(o,s,d,m){var b,w=0,_=a(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],E=(35468*o[s+4]>>16)-Er(o[s+12]),V=Er(o[s+4])+(35468*o[s+12]>>16);_[w+0]=N+V,_[w+1]=k+E,_[w+2]=k-E,_[w+3]=N-V,w+=4,s++}for(b=w=0;4>b;++b)N=(o=_[w+0]+4)+_[w+8],k=o-_[w+8],E=(35468*_[w+4]>>16)-Er(_[w+12]),Vn(d,m,0,0,N+(V=Er(_[w+4])+(35468*_[w+12]>>16))),Vn(d,m,1,0,k+E),Vn(d,m,2,0,k-E),Vn(d,m,3,0,N-V),w++,m+=32}function Ks(o,s,d,m){var b=o[s+0]+4,w=35468*o[s+4]>>16,_=Er(o[s+4]),N=35468*o[s+1]>>16;Je(d,m,0,b+_,o=Er(o[s+1]),N),Je(d,m,1,b+w,o,N),Je(d,m,2,b-w,o,N),Je(d,m,3,b-_,o,N)}function Xs(o,s,d,m,b){jo(o,s,d,m),b&&jo(o,s+16,d,m+4)}function vr(o,s,d,m){Ri(o,s+0,d,m,1),Ri(o,s+32,d,m+128,1)}function Bo(o,s,d,m){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Vn(d,m,s,b,o)}function zo(o,s,d,m){o[s+0]&&xe(o,s+0,d,m),o[s+16]&&xe(o,s+16,d,m+4),o[s+32]&&xe(o,s+32,d,m+128),o[s+48]&&xe(o,s+48,d,m+128+4)}function na(o,s,d,m){var b,w=a(16);for(b=0;4>b;++b){var _=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],E=o[s+0+b]-o[s+12+b];w[0+b]=_+N,w[8+b]=_-N,w[4+b]=E+k,w[12+b]=E-k}for(b=0;4>b;++b)_=(o=w[0+4*b]+3)+w[3+4*b],N=w[1+4*b]+w[2+4*b],k=w[1+4*b]-w[2+4*b],E=o-w[3+4*b],d[m+0]=_+N>>3,d[m+16]=E+k>>3,d[m+32]=_-N>>3,d[m+48]=E-k>>3,m+=64}function Li(o,s,d){var m,b=s-32,w=On,_=255-o[b-1];for(m=0;m<d;++m){var N,k=w,E=_+o[s-1];for(N=0;N<d;++N)o[s+N]=k[E+o[b+N]];s+=32}}function Js(o,s){Li(o,s,4)}function Qs(o,s){Li(o,s,8)}function tl(o,s){Li(o,s,16)}function Ca(o,s){var d;for(d=0;16>d;++d)r(o,s+32*d,o,s-32,16)}function Uo(o,s){var d;for(d=16;0<d;--d)i(o,s,o[s-1],16),s+=32}function rr(o,s,d){var m;for(m=0;16>m;++m)i(s,d+32*m,o,16)}function el(o,s){var d,m=16;for(d=0;16>d;++d)m+=o[s-1+32*d]+o[s+d-32];rr(m>>5,o,s)}function Si(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s-1+32*d];rr(m>>4,o,s)}function Oa(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s+d-32];rr(m>>4,o,s)}function nl(o,s){rr(128,o,s)}function Kt(o,s,d){return o+2*s+d+2>>2}function rl(o,s){var d,m=s-32;for(m=new Uint8Array([Kt(o[m-1],o[m+0],o[m+1]),Kt(o[m+0],o[m+1],o[m+2]),Kt(o[m+1],o[m+2],o[m+3]),Kt(o[m+2],o[m+3],o[m+4])]),d=0;4>d;++d)r(o,s+32*d,m,0,m.length)}function il(o,s){var d=o[s-1],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96];xt(o,s+0,16843009*Kt(o[s-1-32],d,m)),xt(o,s+32,16843009*Kt(d,m,b)),xt(o,s+64,16843009*Kt(m,b,w)),xt(o,s+96,16843009*Kt(b,w,w))}function al(o,s){var d,m=4;for(d=0;4>d;++d)m+=o[s+d-32]+o[s-1+32*d];for(m>>=3,d=0;4>d;++d)i(o,s+32*d,m,4)}function Cr(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],E=o[s+3-32];o[s+0+96]=Kt(m,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Kt(d,m,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Kt(w,d,m),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Kt(_,w,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Kt(N,_,w),o[s+3+32]=o[s+2+0]=Kt(k,N,_),o[s+3+0]=Kt(E,k,N)}function Or(o,s){var d=o[s+1-32],m=o[s+2-32],b=o[s+3-32],w=o[s+4-32],_=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Kt(o[s+0-32],d,m),o[s+1+0]=o[s+0+32]=Kt(d,m,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Kt(m,b,w),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Kt(b,w,_),o[s+3+32]=o[s+2+64]=o[s+1+96]=Kt(w,_,N),o[s+3+64]=o[s+2+96]=Kt(_,N,k),o[s+3+96]=Kt(N,k,k)}function ol(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],E=o[s+3-32];o[s+0+0]=o[s+1+64]=w+_+1>>1,o[s+1+0]=o[s+2+64]=_+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+E+1>>1,o[s+0+96]=Kt(b,m,d),o[s+0+64]=Kt(m,d,w),o[s+0+32]=o[s+1+96]=Kt(d,w,_),o[s+1+32]=o[s+2+96]=Kt(w,_,N),o[s+2+32]=o[s+3+96]=Kt(_,N,k),o[s+3+32]=Kt(N,k,E)}function sl(o,s){var d=o[s+0-32],m=o[s+1-32],b=o[s+2-32],w=o[s+3-32],_=o[s+4-32],N=o[s+5-32],k=o[s+6-32],E=o[s+7-32];o[s+0+0]=d+m+1>>1,o[s+1+0]=o[s+0+64]=m+b+1>>1,o[s+2+0]=o[s+1+64]=b+w+1>>1,o[s+3+0]=o[s+2+64]=w+_+1>>1,o[s+0+32]=Kt(d,m,b),o[s+1+32]=o[s+0+96]=Kt(m,b,w),o[s+2+32]=o[s+1+96]=Kt(b,w,_),o[s+3+32]=o[s+2+96]=Kt(w,_,N),o[s+3+64]=Kt(_,N,k),o[s+3+96]=Kt(N,k,E)}function ra(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96];o[s+0+0]=d+m+1>>1,o[s+2+0]=o[s+0+32]=m+b+1>>1,o[s+2+32]=o[s+0+64]=b+w+1>>1,o[s+1+0]=Kt(d,m,b),o[s+3+0]=o[s+1+32]=Kt(m,b,w),o[s+3+32]=o[s+1+64]=Kt(b,w,w),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=w}function Ta(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],w=o[s-1+96],_=o[s-1-32],N=o[s+0-32],k=o[s+1-32],E=o[s+2-32];o[s+0+0]=o[s+2+32]=d+_+1>>1,o[s+0+32]=o[s+2+64]=m+d+1>>1,o[s+0+64]=o[s+2+96]=b+m+1>>1,o[s+0+96]=w+b+1>>1,o[s+3+0]=Kt(N,k,E),o[s+2+0]=Kt(_,N,k),o[s+1+0]=o[s+3+32]=Kt(d,_,N),o[s+1+32]=o[s+3+64]=Kt(m,d,_),o[s+1+64]=o[s+3+96]=Kt(b,m,d),o[s+1+96]=Kt(w,b,m)}function ki(o,s){var d;for(d=0;8>d;++d)r(o,s+32*d,o,s-32,8)}function ll(o,s){var d;for(d=0;8>d;++d)i(o,s,o[s-1],8),s+=32}function Tr(o,s,d){var m;for(m=0;8>m;++m)i(s,d+32*m,o,8)}function hl(o,s){var d,m=8;for(d=0;8>d;++d)m+=o[s+d-32]+o[s-1+32*d];Tr(m>>4,o,s)}function Da(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s+d-32];Tr(m>>3,o,s)}function Ma(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s-1+32*d];Tr(m>>3,o,s)}function qo(o,s){Tr(128,o,s)}function Dr(o,s,d){var m=o[s-d],b=o[s+0],w=3*(b-m)+fl[1020+o[s-2*d]-o[s+d]],_=Ko[112+(w+4>>3)];o[s-d]=On[255+m+Ko[112+(w+3>>3)]],o[s+0]=On[255+b-_]}function Ra(o,s,d,m){var b=o[s+0],w=o[s+d];return Yn[255+o[s-2*d]-o[s-d]]>m||Yn[255+w-b]>m}function ia(o,s,d,m){return 4*Yn[255+o[s-d]-o[s+0]]+Yn[255+o[s-2*d]-o[s+d]]<=m}function ja(o,s,d,m,b){var w=o[s-3*d],_=o[s-2*d],N=o[s-d],k=o[s+0],E=o[s+d],V=o[s+2*d],et=o[s+3*d];return 4*Yn[255+N-k]+Yn[255+_-E]>m?0:Yn[255+o[s-4*d]-w]<=b&&Yn[255+w-_]<=b&&Yn[255+_-N]<=b&&Yn[255+et-V]<=b&&Yn[255+V-E]<=b&&Yn[255+E-k]<=b}function Pi(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)ia(o,s+m,d,b)&&Dr(o,s+m,d)}function Ba(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)ia(o,s+m*d,1,b)&&Dr(o,s+m*d,1)}function Ho(o,s,d,m){var b;for(b=3;0<b;--b)Pi(o,s+=4*d,d,m)}function Wo(o,s,d,m){var b;for(b=3;0<b;--b)Ba(o,s+=4,d,m)}function Mr(o,s,d,m,b,w,_,N){for(w=2*w+1;0<b--;){if(ja(o,s,d,w,_))if(Ra(o,s,d,N))Dr(o,s,d);else{var k=o,E=s,V=d,et=k[E-2*V],C=k[E-V],Z=k[E+0],X=k[E+V],lt=k[E+2*V],Q=27*(pt=fl[1020+3*(Z-C)+fl[1020+et-X]])+63>>7,ft=18*pt+63>>7,pt=9*pt+63>>7;k[E-3*V]=On[255+k[E-3*V]+pt],k[E-2*V]=On[255+et+ft],k[E-V]=On[255+C+Q],k[E+0]=On[255+Z-Q],k[E+V]=On[255+X-ft],k[E+2*V]=On[255+lt-pt]}s+=m}}function Rr(o,s,d,m,b,w,_,N){for(w=2*w+1;0<b--;){if(ja(o,s,d,w,_))if(Ra(o,s,d,N))Dr(o,s,d);else{var k=o,E=s,V=d,et=k[E-V],C=k[E+0],Z=k[E+V],X=Ko[112+(4+(lt=3*(C-et))>>3)],lt=Ko[112+(lt+3>>3)],Q=X+1>>1;k[E-2*V]=On[255+k[E-2*V]+Q],k[E-V]=On[255+et+lt],k[E+0]=On[255+C-X],k[E+V]=On[255+Z-Q]}s+=m}}function Go(o,s,d,m,b,w){Mr(o,s,d,1,16,m,b,w)}function Ii(o,s,d,m,b,w){Mr(o,s,1,d,16,m,b,w)}function Vo(o,s,d,m,b,w){var _;for(_=3;0<_;--_)Rr(o,s+=4*d,d,1,16,m,b,w)}function f(o,s,d,m,b,w){var _;for(_=3;0<_;--_)Rr(o,s+=4,1,d,16,m,b,w)}function v(o,s,d,m,b,w,_,N){Mr(o,s,b,1,8,w,_,N),Mr(d,m,b,1,8,w,_,N)}function T(o,s,d,m,b,w,_,N){Mr(o,s,1,b,8,w,_,N),Mr(d,m,1,b,8,w,_,N)}function z(o,s,d,m,b,w,_,N){Rr(o,s+4*b,b,1,8,w,_,N),Rr(d,m+4*b,b,1,8,w,_,N)}function K(o,s,d,m,b,w,_,N){Rr(o,s+4,1,b,8,w,_,N),Rr(d,m+4,1,b,8,w,_,N)}function dt(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function vt(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Et(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Dt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new W}function Yt(){this.xb=this.a=0,this.l=new ta,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Dt,this.ab=0,this.gc=h(4,Et),this.Oc=0}function ne(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ta,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function me(o,s,d,m,b,w,_){for(o=o==null?0:o[s+0],s=0;s<_;++s)b[w+s]=o+d[m+s]&255,o=b[w+s]}function Me(o,s,d,m,b,w,_){var N;if(o==null)me(null,null,d,m,b,w,_);else for(N=0;N<_;++N)b[w+N]=o[s+N]+d[m+N]&255}function Ke(o,s,d,m,b,w,_){if(o==null)me(null,null,d,m,b,w,_);else{var N,k=o[s+0],E=k,V=k;for(N=0;N<_;++N)E=V+(k=o[s+N])-E,V=d[m+N]+(-256&E?0>E?0:255:E)&255,E=k,b[w+N]=V}}function Fe(o,s,d,m){var b=s.width,w=s.o;if(n(o!=null&&s!=null),0>d||0>=m||d+m>w)return null;if(!o.Cc){if(o.ga==null){var _;if(o.ga=new ne,(_=o.ga==null)||(_=s.width*s.o,n(o.Gb.length==0),o.Gb=a(_),o.Uc=0,o.Gb==null?_=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,_=1),_=!_),!_){_=o.ga;var N=o.Fa,k=o.P,E=o.qc,V=o.mb,et=o.nb,C=k+1,Z=E-1,X=_.l;if(n(N!=null&&V!=null&&s!=null),li[0]=null,li[1]=me,li[2]=Me,li[3]=Ke,_.ca=V,_.tb=et,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=E)s=0;else if(_.$a=3&N[k+0],_.Z=N[k+0]>>2&3,_.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||k)s=0;else if(X.put=Vt,X.ac=ur,X.bc=Ir,X.ma=_,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,_.$a)t:{n(_.$a==1),s=Ai();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ct(s.m,N,C,Z),!pr(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&tr(s.s)?(_.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=Ni(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=Z>=_.c*_.i;_=!s}if(_)return null;o.ga.Lc!=1?o.Ga=0:m=w-d}n(o.ga!=null),n(d+m<=w);t:{if(s=(N=o.ga).c,w=N.l.o,N.$a==0){if(C=o.rc,Z=o.Vc,X=o.Fa,k=o.P+1+d*s,E=o.mb,V=o.nb+d*s,n(k<=o.P+o.qc),N.Z!=0)for(n(li[N.Z]!=null),_=0;_<m;++_)li[N.Z](C,Z,X,k,E,V,s),C=E,Z=V,V+=s,k+=s;else for(_=0;_<m;++_)r(E,V,X,k,s),C=E,Z=V,V+=s,k+=s;o.rc=C,o.Vc=Z}else{if(n(N.mc!=null),s=d+m,n((_=N.mc)!=null),n(s<=_.i),_.C>=s)s=1;else if(N.ic||ir(),N.ic){N=_.V,C=_.Ba,Z=_.c;var lt=_.i,Q=(X=1,k=_.$/Z,E=_.$%Z,V=_.m,et=_.s,_.$),ft=Z*lt,pt=Z*s,_t=et.wc,bt=Q<pt?ln(et,E,k):null;n(Q<=ft),n(s<=lt),n(tr(et));e:for(;;){for(;!V.h&&Q<pt;){if(E&_t||(bt=ln(et,E,k)),n(bt!=null),J(V),256>(lt=Re(bt.G[0],bt.H[0],V)))N[C+Q]=lt,++Q,++E>=Z&&(E=0,++k<=s&&!(k%16)&&er(_,k));else{if(!(280>lt)){X=0;break e}lt=qn(lt-256,V);var Rt,Pt=Re(bt.G[4],bt.H[4],V);if(J(V),!(Q>=(Pt=Hn(Z,Pt=qn(Pt,V)))&&ft-Q>=lt)){X=0;break e}for(Rt=0;Rt<lt;++Rt)N[C+Q+Rt]=N[C+Q+Rt-Pt];for(Q+=lt,E+=lt;E>=Z;)E-=Z,++k<=s&&!(k%16)&&er(_,k);Q<pt&&E&_t&&(bt=ln(et,E,k))}n(V.h==G(V))}er(_,k>s?s:k);break e}!X||V.h&&Q<ft?(X=0,_.a=V.h?5:3):_.$=Q,s=X}else s=nr(_,_.V,_.Ba,_.c,_.i,s,Xi);if(!s){m=0;break t}}d+m>=w&&(o.Cc=1),m=1}if(!m)return null;if(o.Cc&&((m=o.ga)!=null&&(m.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*b}function Qe(o,s,d,m,b,w){for(;0<b--;){var _,N=o,k=s+(d?1:0),E=o,V=s+(d?0:3);for(_=0;_<m;++_){var et=E[V+4*_];et!=255&&(et*=32897,N[k+4*_+0]=N[k+4*_+0]*et>>23,N[k+4*_+1]=N[k+4*_+1]*et>>23,N[k+4*_+2]=N[k+4*_+2]*et>>23)}s+=w}}function Xe(o,s,d,m,b){for(;0<m--;){var w;for(w=0;w<d;++w){var _=o[s+2*w+0],N=15&(E=o[s+2*w+1]),k=4369*N,E=(240&E|E>>4)*k>>16;o[s+2*w+0]=(240&_|_>>4)*k>>16&240|(15&_|_<<4)*k>>16>>4&15,o[s+2*w+1]=240&E|N}s+=b}}function hn(o,s,d,m,b,w,_,N){var k,E,V=255;for(E=0;E<b;++E){for(k=0;k<m;++k){var et=o[s+k];w[_+4*k]=et,V&=et}s+=d,_+=N}return V!=255}function jr(o,s,d,m,b){var w;for(w=0;w<b;++w)d[m+w]=o[s+w]>>8}function ir(){Xa=Qe,qh=Xe,Hh=hn,Wh=jr}function Br(o,s,d){R[o]=function(m,b,w,_,N,k,E,V,et,C,Z,X,lt,Q,ft,pt,_t){var bt,Rt=_t-1>>1,Pt=N[k+0]|E[V+0]<<16,re=et[C+0]|Z[X+0]<<16;n(m!=null);var Ct=3*Pt+re+131074>>2;for(s(m[b+0],255&Ct,Ct>>16,lt,Q),w!=null&&(Ct=3*re+Pt+131074>>2,s(w[_+0],255&Ct,Ct>>16,ft,pt)),bt=1;bt<=Rt;++bt){var ue=N[k+bt]|E[V+bt]<<16,en=et[C+bt]|Z[X+bt]<<16,ie=Pt+ue+re+en+524296,Ot=ie+2*(ue+re)>>3;Ct=Ot+Pt>>1,Pt=(ie=ie+2*(Pt+en)>>3)+ue>>1,s(m[b+2*bt-1],255&Ct,Ct>>16,lt,Q+(2*bt-1)*d),s(m[b+2*bt-0],255&Pt,Pt>>16,lt,Q+(2*bt-0)*d),w!=null&&(Ct=ie+re>>1,Pt=Ot+en>>1,s(w[_+2*bt-1],255&Ct,Ct>>16,ft,pt+(2*bt-1)*d),s(w[_+2*bt+0],255&Pt,Pt>>16,ft,pt+(2*bt+0)*d)),Pt=ue,re=en}1&_t||(Ct=3*Pt+re+131074>>2,s(m[b+_t-1],255&Ct,Ct>>16,lt,Q+(_t-1)*d),w!=null&&(Ct=3*re+Pt+131074>>2,s(w[_+_t-1],255&Ct,Ct>>16,ft,pt+(_t-1)*d)))}}function za(){Kn[Xo]=A1,Kn[Jo]=ef,Kn[Kh]=N1,Kn[Qo]=nf,Kn[ts]=rf,Kn[cl]=af,Kn[Xh]=L1,Kn[ul]=ef,Kn[dl]=nf,Kn[es]=rf,Kn[pl]=af}function aa(o){return o&~S1?0>o?0:255:o>>of}function Jr(o,s){return aa((19077*o>>8)+(26149*s>>8)-14234)}function Fi(o,s,d){return aa((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function Ei(o,s){return aa((19077*o>>8)+(33050*s>>8)-17685)}function Qr(o,s,d,m,b){m[b+0]=Jr(o,d),m[b+1]=Fi(o,s,d),m[b+2]=Ei(o,s)}function fn(o,s,d,m,b){m[b+0]=Ei(o,s),m[b+1]=Fi(o,s,d),m[b+2]=Jr(o,d)}function Ci(o,s,d,m,b){var w=Fi(o,s,d);s=w<<3&224|Ei(o,s)>>3,m[b+0]=248&Jr(o,d)|w>>5,m[b+1]=s}function Oi(o,s,d,m,b){var w=240&Ei(o,s)|15;m[b+0]=240&Jr(o,d)|Fi(o,s,d)>>4,m[b+1]=w}function Ua(o,s,d,m,b){m[b+0]=255,Qr(o,s,d,m,b+1)}function qa(o,s,d,m,b){fn(o,s,d,m,b),m[b+3]=255}function _n(o,s,d,m,b){Qr(o,s,d,m,b),m[b+3]=255}function zr(o,s,d){R[o]=function(m,b,w,_,N,k,E,V,et){for(var C=V+(-2&et)*d;V!=C;)s(m[b+0],w[_+0],N[k+0],E,V),s(m[b+1],w[_+0],N[k+0],E,V+d),b+=2,++_,++k,V+=2*d;1&et&&s(m[b+0],w[_+0],N[k+0],E,V)}}function oa(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function Zo(o,s,d,m,b){switch(o>>>30){case 3:Ri(s,d,m,b,0);break;case 2:$n(s,d,m,b);break;case 1:xe(s,d,m,b)}}function Zn(o,s){var d,m,b=s.M,w=s.Nb,_=o.oc,N=o.pc+40,k=o.oc,E=o.pc+584,V=o.oc,et=o.pc+600;for(d=0;16>d;++d)_[N+32*d-1]=129;for(d=0;8>d;++d)k[E+32*d-1]=129,V[et+32*d-1]=129;for(0<b?_[N-1-32]=k[E-1-32]=V[et-1-32]=129:(i(_,N-32-1,127,21),i(k,E-32-1,127,9),i(V,et-32-1,127,9)),m=0;m<o.za;++m){var C=s.ya[s.aa+m];if(0<m){for(d=-1;16>d;++d)r(_,N+32*d-4,_,N+32*d+12,4);for(d=-1;8>d;++d)r(k,E+32*d-4,k,E+32*d+4,4),r(V,et+32*d-4,V,et+32*d+4,4)}var Z=o.Gd,X=o.Hd+m,lt=C.ad,Q=C.Hc;if(0<b&&(r(_,N-32,Z[X].y,0,16),r(k,E-32,Z[X].f,0,8),r(V,et-32,Z[X].ea,0,8)),C.Za){var ft=_,pt=N-32+16;for(0<b&&(m>=o.za-1?i(ft,pt,Z[X].y[15],4):r(ft,pt,Z[X+1].y,0,4)),d=0;4>d;d++)ft[pt+128+d]=ft[pt+256+d]=ft[pt+384+d]=ft[pt+0+d];for(d=0;16>d;++d,Q<<=2)ft=_,pt=N+lf[d],ar[C.Ob[d]](ft,pt),Zo(Q,lt,16*+d,ft,pt)}else if(ft=oa(m,b,C.Ob[0]),si[ft](_,N),Q!=0)for(d=0;16>d;++d,Q<<=2)Zo(Q,lt,16*+d,_,N+lf[d]);for(d=C.Gc,ft=oa(m,b,C.Dd),Hr[ft](k,E),Hr[ft](V,et),Q=lt,ft=k,pt=E,255&(C=0|d)&&(170&C?yr(Q,256,ft,pt):Se(Q,256,ft,pt)),C=V,Q=et,255&(d>>=8)&&(170&d?yr(lt,320,C,Q):Se(lt,320,C,Q)),b<o.Ub-1&&(r(Z[X].y,0,_,N+480,16),r(Z[X].f,0,k,E+224,8),r(Z[X].ea,0,V,et+224,8)),d=8*w*o.B,Z=o.sa,X=o.ta+16*m+16*w*o.R,lt=o.qa,C=o.ra+8*m+d,Q=o.Ha,ft=o.Ia+8*m+d,d=0;16>d;++d)r(Z,X+d*o.R,_,N+32*d,16);for(d=0;8>d;++d)r(lt,C+d*o.B,k,E+32*d,8),r(Q,ft+d*o.B,V,et+32*d,8)}}function Ti(o,s,d,m,b,w,_,N,k){var E=[0],V=[0],et=0,C=k!=null?k.kd:0,Z=k??new vt;if(o==null||12>d)return 7;Z.data=o,Z.w=s,Z.ha=d,s=[s],d=[d],Z.gb=[Z.gb];t:{var X=s,lt=d,Q=Z.gb;if(n(o!=null),n(lt!=null),n(Q!=null),Q[0]=0,12<=lt[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){Q=3;break t}var ft=Bt(o,X[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(C&&ft>lt[0]-8){Q=7;break t}Q[0]=ft,X[0]+=12,lt[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<Z.gb[0],d=d[0];;){t:{var pt=o;lt=s,Q=d;var _t=E,bt=V,Rt=X=[0];if((Ct=et=[et])[0]=0,8>Q[0])Q=7;else{if(!e(pt,lt[0],"VP8X")){if(Bt(pt,lt[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Bt(pt,lt[0]+8),re=1+St(pt,lt[0]+12);if(2147483648<=re*(pt=1+St(pt,lt[0]+15))){Q=3;break t}Rt!=null&&(Rt[0]=Pt),_t!=null&&(_t[0]=re),bt!=null&&(bt[0]=pt),lt[0]+=18,Q[0]-=18,Ct[0]=1}Q=0}}if(et=et[0],X=X[0],Q!=0)return Q;if(lt=!!(2&X),!ft&&et)return 3;if(w!=null&&(w[0]=!!(16&X)),_!=null&&(_[0]=lt),N!=null&&(N[0]=0),_=E[0],X=V[0],et&&lt&&k==null){Q=0;break}if(4>d){Q=7;break}if(ft&&et||!ft&&!et&&!e(o,s[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Pt=o,Q=s,ft=d;var Ct=Z.gb;_t=Z.na,bt=Z.P,Rt=Z.Sa,re=22,n(Pt!=null),n(ft!=null),pt=Q[0];var ue=ft[0];for(n(_t!=null),n(Rt!=null),_t[0]=null,bt[0]=null,Rt[0]=0;;){if(Q[0]=pt,ft[0]=ue,8>ue){Q=7;break t}var en=Bt(Pt,pt+4);if(4294967286<en){Q=3;break t}var ie=8+en+1&-2;if(re+=ie,0<Ct&&re>Ct){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ue[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(_t[0]=Pt,bt[0]=pt+8,Rt[0]=en),pt+=ie,ue-=ie}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],Q!=0)break}d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ct=o,Q=s,ft=d,_t=Z.gb[0],bt=Z.Ja,Rt=Z.xa,Pt=Q[0],pt=!e(Ct,Pt,"VP8 "),re=!e(Ct,Pt,"VP8L"),n(Ct!=null),n(ft!=null),n(bt!=null),n(Rt!=null),8>ft[0])Q=7;else{if(pt||re){if(Ct=Bt(Ct,Pt+4),12<=_t&&Ct>_t-12){Q=3;break t}if(C&&Ct>ft[0]-8){Q=7;break t}bt[0]=Ct,Q[0]+=8,ft[0]-=8,Rt[0]=re}else Rt[0]=5<=ft[0]&&Ct[Pt+0]==47&&!(Ct[Pt+4]>>5),bt[0]=ft[0];Q=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],Q!=0)break;if(4294967286<Z.Ja)return 3;if(N==null||lt||(N[0]=Z.xa?2:1),_=[_],X=[X],Z.xa){if(5>d){Q=7;break}N=_,C=X,lt=w,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Ct=[0],_t=[0],ct(bt=new M,o,s,d),Fr(bt,ft,Ct,_t)?(N!=null&&(N[0]=ft[0]),C!=null&&(C[0]=Ct[0]),lt!=null&&(lt[0]=_t[0]),o=1):o=0):o=0}else{if(10>d){Q=7;break}N=X,o==null||10>d||!Mo(o,s+3,d-3)?o=0:(C=o[s+0]|o[s+1]<<8|o[s+2]<<16,lt=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&C||3<(C>>1&7)||!(C>>4&1)||C>>5>=Z.Ja||!lt||!o?o=0:(_&&(_[0]=lt),N&&(N[0]=o),o=1))}if(!o||(_=_[0],X=X[0],et&&(E[0]!=_||V[0]!=X)))return 3;k!=null&&(k[0]=Z,k.offset=s-k.w,n(4294967286>s-k.w),n(k.offset==k.ha-d));break}return Q==0||Q==7&&et&&k==null?(w!=null&&(w[0]|=Z.na!=null&&0<Z.na.length),m!=null&&(m[0]=_),b!=null&&(b[0]=X),0):Q}function Ha(o,s,d){var m=s.width,b=s.height,w=0,_=0,N=m,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,w=o.v,_=o.j,11>d||(w&=-2,_&=-2),0>w||0>_||0>=N||0>=k||w+N>m||_+k>b))return 0;if(s.v=w,s.j=_,s.va=w+N,s.o=_+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!Ht(N,k,d=[o.ib],w=[o.hb]))return 0;s.ib=d[0],s.hb=w[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*b/4,s.Kb=0),1}function Wa(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function ti(o,s,d,m){if(m==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,w=d.bd,_=-2&d.v,N=-2&d.j;if(0>_||0>N||0>=b||0>=w||_+b>o||N+w>s)return 2;o=b,s=w}if(d.da){if(!Ht(o,s,b=[d.ib],w=[d.hb]))return 2;o=b[0],s=w[0]}}m.width=o,m.height=s;t:{var k=m.width,E=m.height;if(o=m.S,0>=k||0>=E||!(o>=Xo&&13>o))o=2;else{if(0>=m.Rd&&m.sd==null){_=w=b=s=0;var V=(N=k*hf[o])*E;if(11>o||(w=(E+1)/2*(s=(k+1)/2),o==12&&(_=(b=k)*E)),(E=a(V+2*w+_))==null){o=1;break t}m.sd=E,11>o?((k=m.f.RGBA).eb=E,k.fb=0,k.A=N,k.size=V):((k=m.f.kb).y=E,k.O=0,k.fa=N,k.Fd=V,k.f=E,k.N=0+V,k.Ab=s,k.Cd=w,k.ea=E,k.W=0+V+w,k.Db=s,k.Ed=w,o==12&&(k.F=E,k.J=0+V+2*w),k.Tc=_,k.lb=b)}if(s=1,b=m.S,w=m.width,_=m.height,b>=Xo&&13>b)if(11>b)o=m.f.RGBA,s&=(N=Math.abs(o.A))*(_-1)+w<=o.size,s&=N>=w*hf[b],s&=o.eb!=null;else{o=m.f.kb,N=(w+1)/2,V=(_+1)/2,k=Math.abs(o.fa),E=Math.abs(o.Ab);var et=Math.abs(o.Db),C=Math.abs(o.lb),Z=C*(_-1)+w;s&=k*(_-1)+w<=o.Fd,s&=E*(V-1)+N<=o.Cd,s=(s&=et*(V-1)+N<=o.Ed)&k>=w&E>=N&et>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=C>=w,s&=Z<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=Wa(m)),o}var Di=64,En=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Cn=24,ei=32,Ur=8,ni=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];It("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(o){return o},R.Predictor2=function(o,s,d){return s[d+0]},R.Predictor3=function(o,s,d){return s[d+1]},R.Predictor4=function(o,s,d){return s[d-1]},R.Predictor5=function(o,s,d){return zt(zt(o,s[d+1]),s[d+0])},R.Predictor6=function(o,s,d){return zt(o,s[d-1])},R.Predictor7=function(o,s,d){return zt(o,s[d+0])},R.Predictor8=function(o,s,d){return zt(s[d-1],s[d+0])},R.Predictor9=function(o,s,d){return zt(s[d+0],s[d+1])},R.Predictor10=function(o,s,d){return zt(zt(o,s[d-1]),zt(s[d+0],s[d+1]))},R.Predictor11=function(o,s,d){var m=s[d+0];return 0>=Jt(m>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Jt(m>>16&255,o>>16&255,s>>16&255)+Jt(m>>8&255,o>>8&255,s>>8&255)+Jt(255&m,255&o,255&s)?m:o},R.Predictor12=function(o,s,d){var m=s[d+0];return(ye((o>>24&255)+(m>>24&255)-((s=s[d-1])>>24&255))<<24|ye((o>>16&255)+(m>>16&255)-(s>>16&255))<<16|ye((o>>8&255)+(m>>8&255)-(s>>8&255))<<8|ye((255&o)+(255&m)-(255&s)))>>>0},R.Predictor13=function(o,s,d){var m=s[d-1];return(he((o=zt(o,s[d+0]))>>24&255,m>>24&255)<<24|he(o>>16&255,m>>16&255)<<16|he(o>>8&255,m>>8&255)<<8|he(255&o,255&m))>>>0};var Ga=R.PredictorAdd0;R.PredictorAdd1=ce,It("Predictor2","PredictorAdd2"),It("Predictor3","PredictorAdd3"),It("Predictor4","PredictorAdd4"),It("Predictor5","PredictorAdd5"),It("Predictor6","PredictorAdd6"),It("Predictor7","PredictorAdd7"),It("Predictor8","PredictorAdd8"),It("Predictor9","PredictorAdd9"),It("Predictor10","PredictorAdd10"),It("Predictor11","PredictorAdd11"),It("Predictor12","PredictorAdd12"),It("Predictor13","PredictorAdd13");var sa=R.PredictorAdd2;jt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),jt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var qe,$o=R.ColorIndexInverseTransform,br=R.MapARGB,wr=R.VP8LColorIndexInverseTransformAlpha,Va=R.MapAlpha,Za=R.VP8LPredictorsAdd=[];Za.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var $a,Ya,ri,ii,ai,Mi,oi,Ri,$n,yr,xe,Se,He,tn,qr,Ka,la,Yo,Mh,Rh,jh,Bh,zh,Uh,Xa,qh,Hh,Wh,Gh=a(511),Vh=a(2041),Zh=a(225),$h=a(767),Yh=0,fl=Vh,Ko=Zh,On=$h,Yn=Gh,Xo=0,Jo=1,Kh=2,Qo=3,ts=4,cl=5,Xh=6,ul=7,dl=8,es=9,pl=10,h1=[2,3,7],f1=[3,3,11],Jh=[280,256,256,256,40],c1=[0,1,1,1,0],u1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],d1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],p1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],g1=8,gl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ml=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ja=null,m1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],v1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Qh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],b1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],w1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],y1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],_1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],si=[],ar=[],Hr=[],x1=1,tf=2,li=[],Kn=[];Br("UpsampleRgbLinePair",Qr,3),Br("UpsampleBgrLinePair",fn,3),Br("UpsampleRgbaLinePair",_n,4),Br("UpsampleBgraLinePair",qa,4),Br("UpsampleArgbLinePair",Ua,4),Br("UpsampleRgba4444LinePair",Oi,2),Br("UpsampleRgb565LinePair",Ci,2);var A1=R.UpsampleRgbLinePair,N1=R.UpsampleBgrLinePair,ef=R.UpsampleRgbaLinePair,nf=R.UpsampleBgraLinePair,rf=R.UpsampleArgbLinePair,af=R.UpsampleRgba4444LinePair,L1=R.UpsampleRgb565LinePair,ns=16,rs=1<<ns-1,Qa=-227,vl=482,of=6,S1=(256<<of)-1,sf=0,k1=a(256),P1=a(256),I1=a(256),F1=a(256),E1=a(vl-Qa),C1=a(vl-Qa);zr("YuvToRgbRow",Qr,3),zr("YuvToBgrRow",fn,3),zr("YuvToRgbaRow",_n,4),zr("YuvToBgraRow",qa,4),zr("YuvToArgbRow",Ua,4),zr("YuvToRgba4444Row",Oi,2),zr("YuvToRgb565Row",Ci,2);var lf=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],is=[0,2,8],O1=[8,7,6,4,4,2,2,2,1,1,1,1],T1=1;this.WebPDecodeRGBA=function(o,s,d,m,b){var w=Jo,_=new dt,N=new le;_.ba=N,N.S=w,N.width=[N.width],N.height=[N.height];var k=N.width,E=N.height,V=new Gt;if(V==null||o==null)var et=2;else n(V!=null),et=Ti(o,s,d,V.width,V.height,V.Pd,V.Qd,V.format,null);if(et!=0?k=0:(k!=null&&(k[0]=V.width[0]),E!=null&&(E[0]=V.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],m!=null&&(m[0]=N.width),b!=null&&(b[0]=N.height);t:{if(m=new ta,(b=new vt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],n(b!=null),((o=Ti(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(n(_!=null),m.data=b.data,m.w=b.w+b.offset,m.ha=b.ha-b.offset,m.put=Vt,m.ac=ur,m.bc=Ir,m.ma=_,b.xa){if((o=Ai())==null){_=1;break t}if((function(C,Z){var X=[0],lt=[0],Q=[0];e:for(;;){if(C==null)return 0;if(Z==null)return C.a=2,0;if(C.l=Z,C.a=0,ct(C.m,Z.data,Z.w,Z.ha),!Fr(C.m,X,lt,Q)){C.a=3;break e}if(C.xb=tf,Z.width=X[0],Z.height=lt[0],!pr(X[0],lt[0],1,C,null))break e;return 1}return n(C.a!=0),0})(o,m)){if(m=(s=ti(m.width,m.height,_.Oa,_.ba))==0){e:{m=o;n:for(;;){if(m==null){m=0;break e}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((d=m.l)!=null),n((b=d.ma)!=null),m.xb!=0){if(m.ca=b.ba,m.tb=b.tb,n(m.ca!=null),!Ha(b.Oa,d,Qo)){m.a=2;break n}if(!Ni(m,d.width)||d.da)break n;if((d.da||Zt(m.ca.S))&&ir(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&ir()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!I(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!nr(m,m.V,m.Ba,m.c,m.i,d.o,Xr))break n;b.Dc=m.Ma,m=1;break e}n(m.a!=0),m=0}m=!m}m&&(s=o.a)}else s=o.a}else{if((o=new Ys)==null){_=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,mr(o,m)){if((s=ti(m.width,m.height,_.Oa,_.ba))==0){if(o.Aa=0,d=_.Oa,n((b=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(E=V=0;4>E;++E)12>(et=b.pb[E]).lc&&(et.ia=k*O1[0>et.lc?0:et.lc]>>3),V|=et.ia;V&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(C,Z){if(C==null)return 0;if(Z==null)return Ye(C,2,"NULL VP8Io parameter in VP8Decode().");if(!C.cb&&!mr(C,Z))return 0;if(n(C.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(C.L=0);var X=is[C.L];if(C.L==2?(C.yb=0,C.zb=0):(C.yb=Z.v-X>>4,C.zb=Z.j-X>>4,0>C.yb&&(C.yb=0),0>C.zb&&(C.zb=0)),C.Va=Z.o+15+X>>4,C.Hb=Z.va+15+X>>4,C.Hb>C.za&&(C.Hb=C.za),C.Va>C.Ub&&(C.Va=C.Ub),0<C.L){var lt=C.ed;for(X=0;4>X;++X){var Q;if(C.Qa.Cb){var ft=C.Qa.Lb[X];C.Qa.Fb||(ft+=lt.Tb)}else ft=lt.Tb;for(Q=0;1>=Q;++Q){var pt=C.gd[X][Q],_t=ft;if(lt.Pc&&(_t+=lt.vd[0],Q&&(_t+=lt.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<lt.wb&&(bt=4<lt.wb?bt>>2:bt>>1)>9-lt.wb&&(bt=9-lt.wb),1>bt&&(bt=1),pt.dd=bt,pt.tc=2*_t+bt,pt.ld=40<=_t?2:15<=_t?1:0}else pt.tc=0;pt.La=Q}}}X=0}else Ye(C,6,"Frame setup failed"),X=C.a;if(X=X==0){if(X){C.$c=0,0<C.Aa||(C.Ic=T1);e:{X=C.Ic,lt=4*(bt=C.za);var Rt=32*bt,Pt=bt+1,re=0<C.L?bt*(0<C.Aa?2:1):0,Ct=(C.Aa==2?2:1)*bt;if((pt=lt+832+(Q=3*(16*X+is[C.L])/2*Rt)+(ft=C.Fa!=null&&0<C.Fa.length?C.Kc.c*C.Kc.i:0))!=pt)X=0;else{if(pt>C.Vb){if(C.Vb=0,C.Ec=a(pt),C.Fc=0,C.Ec==null){X=Ye(C,1,"no memory during frame initialization.");break e}C.Vb=pt}pt=C.Ec,_t=C.Fc,C.Ac=pt,C.Bc=_t,_t+=lt,C.Gd=h(Rt,To),C.Hd=0,C.rb=h(Pt+1,Fa),C.sb=1,C.wa=re?h(re,Gn):null,C.Y=0,C.D.Nb=0,C.D.wa=C.wa,C.D.Y=C.Y,0<C.Aa&&(C.D.Y+=bt),n(!0),C.oc=pt,C.pc=_t,_t+=832,C.ya=h(Ct,Ea),C.aa=0,C.D.ya=C.ya,C.D.aa=C.aa,C.Aa==2&&(C.D.aa+=bt),C.R=16*bt,C.B=8*bt,bt=(Rt=is[C.L])*C.R,Rt=Rt/2*C.B,C.sa=pt,C.ta=_t+bt,C.qa=C.sa,C.ra=C.ta+16*X*C.R+Rt,C.Ha=C.qa,C.Ia=C.ra+8*X*C.B+Rt,C.$c=0,_t+=Q,C.mb=ft?pt:null,C.nb=ft?_t:null,n(_t+ft<=C.Fc+C.Vb),Ro(C),i(C.Ac,C.Bc,0,lt),X=1}}if(X){if(Z.ka=0,Z.y=C.sa,Z.O=C.ta,Z.f=C.qa,Z.N=C.ra,Z.ea=C.Ha,Z.Vd=C.Ia,Z.fa=C.R,Z.Rc=C.B,Z.F=null,Z.J=0,!Yh){for(X=-255;255>=X;++X)Gh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Vh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Zh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)$h[255+X]=0>X?0:255<X?255:X;Yh=1}oi=na,Ri=Xs,yr=vr,xe=Bo,Se=zo,$n=Ks,He=Go,tn=Ii,qr=v,Ka=T,la=Vo,Yo=f,Mh=z,Rh=K,jh=Pi,Bh=Ba,zh=Ho,Uh=Wo,ar[0]=al,ar[1]=Js,ar[2]=rl,ar[3]=il,ar[4]=Cr,ar[5]=ol,ar[6]=Or,ar[7]=sl,ar[8]=Ta,ar[9]=ra,si[0]=el,si[1]=tl,si[2]=Ca,si[3]=Uo,si[4]=Si,si[5]=Oa,si[6]=nl,Hr[0]=hl,Hr[1]=Qs,Hr[2]=ki,Hr[3]=ll,Hr[4]=Ma,Hr[5]=Da,Hr[6]=qo,X=1}else X=0}X&&(X=(function(ue,en){for(ue.M=0;ue.M<ue.Va;++ue.M){var ie,Ot=ue.Jc[ue.M&ue.Xb],Nt=ue.m,We=ue;for(ie=0;ie<We.za;++ie){var te=Nt,pe=We,Ce=pe.Ac,cn=pe.Bc+4*ie,xn=pe.zc,je=pe.ya[pe.aa+ie];if(pe.Qa.Bb?je.$b=gt(te,pe.Pa.jb[0])?2+gt(te,pe.Pa.jb[2]):gt(te,pe.Pa.jb[1]):je.$b=0,pe.kc&&(je.Ad=gt(te,pe.Bd)),je.Za=!gt(te,145)+0,je.Za){var mn=je.Ob,An=0;for(pe=0;4>pe;++pe){var nn,ve=xn[0+pe];for(nn=0;4>nn;++nn){ve=w1[Ce[cn+nn]][ve];for(var Ae=Qh[gt(te,ve[0])];0<Ae;)Ae=Qh[2*Ae+gt(te,ve[Ae])];ve=-Ae,Ce[cn+nn]=ve}r(mn,An,Ce,cn,4),An+=4,xn[0+pe]=ve}}else ve=gt(te,156)?gt(te,128)?1:3:gt(te,163)?2:0,je.Ob[0]=ve,i(Ce,cn,ve,4),i(xn,0,ve,4);je.Dd=gt(te,142)?gt(te,114)?gt(te,183)?1:3:2:0}if(We.m.Ka)return Ye(ue,7,"Premature end-of-partition0 encountered.");for(;ue.ja<ue.za;++ue.ja){if(We=Ot,te=(Nt=ue).rb[Nt.sb-1],Ce=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],cn=Nt.kc?ie.Ad:0)te.la=Ce.la=0,ie.Za||(te.Na=Ce.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var Be,Ne;if(te=Ce,Ce=We,cn=Nt.Pa.Xc,xn=Nt.ya[Nt.aa+Nt.ja],je=Nt.pb[xn.$b],pe=xn.ad,mn=0,An=Nt.rb[Nt.sb-1],ve=nn=0,i(pe,mn,0,384),xn.Za)var un=0,or=cn[3];else{Ae=a(16);var Ge=te.Na+An.Na;if(Ge=Ja(Ce,cn[1],Ge,je.Eb,0,Ae,0),te.Na=An.Na=(0<Ge)+0,1<Ge)oi(Ae,0,pe,mn);else{var kn=Ae[0]+3>>3;for(Ae=0;256>Ae;Ae+=16)pe[mn+Ae]=kn}un=1,or=cn[0]}var ke=15&te.la,rn=15&An.la;for(Ae=0;4>Ae;++Ae){var Tn=1&rn;for(kn=Ne=0;4>kn;++kn)ke=ke>>1|(Tn=(Ge=Ja(Ce,or,Ge=Tn+(1&ke),je.Sc,un,pe,mn))>un)<<7,Ne=Ne<<2|(3<Ge?3:1<Ge?2:pe[mn+0]!=0),mn+=16;ke>>=4,rn=rn>>1|Tn<<7,nn=(nn<<8|Ne)>>>0}for(or=ke,un=rn>>4,Be=0;4>Be;Be+=2){for(Ne=0,ke=te.la>>4+Be,rn=An.la>>4+Be,Ae=0;2>Ae;++Ae){for(Tn=1&rn,kn=0;2>kn;++kn)Ge=Tn+(1&ke),ke=ke>>1|(Tn=0<(Ge=Ja(Ce,cn[2],Ge,je.Qc,0,pe,mn)))<<3,Ne=Ne<<2|(3<Ge?3:1<Ge?2:pe[mn+0]!=0),mn+=16;ke>>=2,rn=rn>>1|Tn<<5}ve|=Ne<<4*Be,or|=ke<<4<<Be,un|=(240&rn)<<Be}te.la=or,An.la=un,xn.Hc=nn,xn.Gc=ve,xn.ia=43690&ve?0:je.ia,cn=!(nn|ve)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!cn),We.Ka)return Ye(ue,7,"Premature end-of-file encountered.")}if(Ro(ue),Nt=en,We=1,ie=(Ot=ue).D,te=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(ie.M=Ot.M,ie.uc=te,Zn(Ot,ie),We=1,ie=(Ne=Ot.D).Nb,te=(ve=is[Ot.L])*Ot.R,Ce=ve/2*Ot.B,Ae=16*ie*Ot.R,kn=8*ie*Ot.B,cn=Ot.sa,xn=Ot.ta-te+Ae,je=Ot.qa,pe=Ot.ra-Ce+kn,mn=Ot.Ha,An=Ot.Ia-Ce+kn,rn=(ke=Ne.M)==0,nn=ke>=Ot.Va-1,Ot.Aa==2&&Zn(Ot,Ne),Ne.uc)for(Tn=(Ge=Ot).D.M,n(Ge.D.uc),Ne=Ge.yb;Ne<Ge.Hb;++Ne){un=Ne,or=Tn;var Nn=(Dn=(dn=Ge).D).Nb;Be=dn.R;var Dn=Dn.wa[Dn.Y+un],Mn=dn.sa,Pn=dn.ta+16*Nn*Be+16*un,Rn=Dn.dd,Ee=Dn.tc;if(Ee!=0)if(n(3<=Ee),dn.L==1)0<un&&Bh(Mn,Pn,Be,Ee+4),Dn.La&&Uh(Mn,Pn,Be,Ee),0<or&&jh(Mn,Pn,Be,Ee+4),Dn.La&&zh(Mn,Pn,Be,Ee);else{var jn=dn.B,sr=dn.qa,ji=dn.ra+8*Nn*jn+8*un,Wr=dn.Ha,dn=dn.Ia+8*Nn*jn+8*un;Nn=Dn.ld,0<un&&(tn(Mn,Pn,Be,Ee+4,Rn,Nn),Ka(sr,ji,Wr,dn,jn,Ee+4,Rn,Nn)),Dn.La&&(Yo(Mn,Pn,Be,Ee,Rn,Nn),Rh(sr,ji,Wr,dn,jn,Ee,Rn,Nn)),0<or&&(He(Mn,Pn,Be,Ee+4,Rn,Nn),qr(sr,ji,Wr,dn,jn,Ee+4,Rn,Nn)),Dn.La&&(la(Mn,Pn,Be,Ee,Rn,Nn),Mh(sr,ji,Wr,dn,jn,Ee,Rn,Nn))}}if(Ot.ia&&alert("todo:DitherRow"),Nt.put!=null){if(Ne=16*ke,ke=16*(ke+1),rn?(Nt.y=Ot.sa,Nt.O=Ot.ta+Ae,Nt.f=Ot.qa,Nt.N=Ot.ra+kn,Nt.ea=Ot.Ha,Nt.W=Ot.Ia+kn):(Ne-=ve,Nt.y=cn,Nt.O=xn,Nt.f=je,Nt.N=pe,Nt.ea=mn,Nt.W=An),nn||(ke-=ve),ke>Nt.o&&(ke=Nt.o),Nt.F=null,Nt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&Ne<ke&&(Nt.J=Fe(Ot,Nt,Ne,ke-Ne),Nt.F=Ot.mb,Nt.F==null&&Nt.F.length==0)){We=Ye(Ot,3,"Could not decode alpha data.");break e}Ne<Nt.j&&(ve=Nt.j-Ne,Ne=Nt.j,n(!(1&ve)),Nt.O+=Ot.R*ve,Nt.N+=Ot.B*(ve>>1),Nt.W+=Ot.B*(ve>>1),Nt.F!=null&&(Nt.J+=Nt.width*ve)),Ne<ke&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=Ne-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=ke-Ne,We=Nt.put(Nt))}ie+1!=Ot.Ic||nn||(r(Ot.sa,Ot.ta-te,cn,xn+16*Ot.R,te),r(Ot.qa,Ot.ra-Ce,je,pe+8*Ot.B,Ce),r(Ot.Ha,Ot.Ia-Ce,mn,An+8*Ot.B,Ce))}if(!We)return Ye(ue,6,"Output aborted.")}return 1})(C,Z)),Z.bc!=null&&Z.bc(Z),X&=1}return X?(C.cb=0,X):0})(o,m)||(s=o.a)}}else s=o.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=Wa(_.ba))}_=s}w=_!=0?null:11>w?N.f.RGBA.eb:N.f.kb.y}else w=null;return w};var hf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(R,tt){for(var S="",O=0;O<4;O++)S+=String.fromCharCode(R[tt++]);return S}function g(R,tt){return R[tt+0]|R[tt+1]<<8}function y(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16)>>>0}function A(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16|R[tt+3]<<24)>>>0}new c;var p=[0],F=[0],P=[],D=new c,L=t,H=(function(R,tt){var S={},O=0,W=!1,U=0,it=0;if(S.frames=[],!(function(x,M){for(var B=0;B<4;B++)if(x[M+B]!="RIFF".charCodeAt(B))return!0;return!1})(R,tt)){for(A(R,tt+=4),tt+=8;tt<R.length;){var st=u(R,tt),ht=A(R,tt+=4);tt+=4;var nt=ht+(1&ht);switch(st){case"VP8 ":case"VP8L":S.frames[O]===void 0&&(S.frames[O]={}),(wt=S.frames[O]).src_off=W?it:tt-8,wt.src_size=U+ht+8,O++,W&&(W=!1,U=0,it=0);break;case"VP8X":(wt=S.header={}).feature_flags=R[tt];var ct=tt+4;wt.canvas_width=1+y(R,ct),ct+=3,wt.canvas_height=1+y(R,ct),ct+=3;break;case"ALPH":W=!0,U=nt+8,it=tt-8;break;case"ANIM":(wt=S.header).bgcolor=A(R,tt),ct=tt+4,wt.loop_count=g(R,ct),ct+=2;break;case"ANMF":var At,wt;(wt=S.frames[O]={}).offset_x=2*y(R,tt),tt+=3,wt.offset_y=2*y(R,tt),tt+=3,wt.width=1+y(R,tt),tt+=3,wt.height=1+y(R,tt),tt+=3,wt.duration=y(R,tt),tt+=3,At=R[tt++],wt.dispose=1&At,wt.blend=At>>1&1}st!="ANMF"&&(tt+=nt)}return S}})(L,0);H.response=L,H.rgbaoutput=!0,H.dataurl=!1;var q=H.header?H.header:null,j=H.frames?H.frames:null;if(q){q.loop_counter=q.loop_count,p=[q.canvas_height],F=[q.canvas_width];for(var rt=0;rt<j.length&&j[rt].blend!=0;rt++);}var mt=j[0],ut=D.WebPDecodeRGBA(L,mt.src_off,mt.src_size,F,p);mt.rgba=ut,mt.imgwidth=F[0],mt.imgheight=p[0];for(var Y=0;Y<F[0]*p[0]*4;Y++)P[Y]=ut[Y];return this.width=F,this.height=p,this.data=P,this}(function(t){var n,e,r,i,a,h,l,c,u,g=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new h,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new h,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new y(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new g}]);var y=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var M=x;Object.defineProperty(this,"pdf",{get:function(){return M}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(I){B=!!I}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(I){G=!!I}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(I){isNaN(I)||($=I)}});var J=0;Object.defineProperty(this,"posY",{get:function(){return J},set:function(I){isNaN(I)||(J=I)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(I){var Lt;typeof I=="number"?Lt=[I,I,I,I]:((Lt=new Array(4))[0]=I[0],Lt[1]=I.length>=2?I[1]:Lt[0],Lt[2]=I.length>=3?I[2]:Lt[0],Lt[3]=I.length>=4?I[3]:Lt[1]),u.margin=Lt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(I){at=I}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(I){ot=I}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(I){gt=I}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(I){I instanceof g&&(u=I)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(I){u.path=I}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(I){xt=I}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(I){var Lt;Lt=A(I),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(I){var Lt=A(I);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(I){["butt","round","square"].indexOf(I)!==-1&&(this.ctx.lineCap=I,this.pdf.setLineCap(I))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(I){isNaN(I)||(this.ctx.lineWidth=I,this.pdf.setLineWidth(I))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(I){["bevel","round","miter"].indexOf(I)!==-1&&(this.ctx.lineJoin=I,this.pdf.setLineJoin(I))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(I){isNaN(I)||(this.ctx.miterLimit=I,this.pdf.setMiterLimit(I))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(I){this.ctx.textBaseline=I}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(I){["right","end","center","left","start"].indexOf(I)!==-1&&(this.ctx.textAlign=I)}});var kt=null,St=null,Bt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Bt},set:function(I){kt=null,St=null,Bt=I}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(I){var Lt;if(this.ctx.font=I,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(I))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(It==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var qt=(function(jt){var Ue,ge,oe=[],se=jt.trim();if(se==="")return Ah;if(se in Su)return[Su[se]];for(;se!=="";){switch(ge=null,Ue=(se=Pu(se)).charAt(0)){case'"':case"'":ge=wd(se.substring(1),Ue);break;default:ge=yd(se)}if(ge===null||(oe.push(ge[0]),(se=Pu(ge[1]))!==""&&se.charAt(0)!==","))return Ah;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var zt=(function(jt,Ue){var ge=jt.getFontList(),oe=JSON.stringify(ge);if(kt===null||St!==oe){var se=(function(Oe){var Ut=[];return Object.keys(Oe).forEach(function(Ie){Oe[Ie].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Ie,weight:"bold"};break;case"italic":Qt={family:Ie,style:"italic"};break;case"bolditalic":Qt={family:Ie,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Ie}}Qt!==null&&(Qt.ref={name:Ie,style:Zt},Ut.push(Qt))})}),Ut})(ge);kt=(function(Oe){for(var Ut={},Ie=0;Ie<Oe.length;++Ie){var Zt=xh(Oe[Ie]),Qt=Zt.family,Te=Zt.stretch,le=Zt.style,Gt=Zt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][Te]=Ut[Qt][Te]||{},Ut[Qt][Te][le]=Ut[Qt][Te][le]||{},Ut[Qt][Te][le][Gt]=Zt}return Ut})(se.concat(Ue)),St=oe}return kt})(this.pdf,this.fontFaces),ye=qt.map(function(jt){return{family:jt,stretch:"normal",weight:Ht,style:ae}}),he=(function(jt,Ue,ge){for(var oe=(ge=ge||{}).defaultFontFamily||"times",se=Object.assign({},bd,ge.genericFontFamilies||{}),Oe=null,Ut=null,Ie=0;Ie<Ue.length;++Ie)if(se[(Oe=xh(Ue[Ie])).family]&&(Oe.family=se[Oe.family]),jt.hasOwnProperty(Oe.family)){Ut=jt[Oe.family];break}if(!(Ut=Ut||jt[oe]))throw new Error("Could not find a font-family for the rule '"+ku(Oe)+"' and default family '"+oe+"'.");if(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Te=Ih[Zt],le=Te<=Ih.normal?-1:1,Gt=Lu(Qt,Xu,Te,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt})(Oe.stretch,Ut),Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Te=Ku[Zt],le=0;le<Te.length;++le)if(Qt[Te[le]])return Qt[Te[le]];throw new Error("Could not find a matching font-style for "+Zt)})(Oe.style,Ut),!(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];if(Zt===400&&Qt[500])return Qt[500];if(Zt===500&&Qt[400])return Qt[400];var Te=vd[Zt],le=Lu(Qt,Ju,Te,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le})(Oe.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+ku(Oe)+"'.");return Ut})(zt,ye);this.pdf.setFont(he.ref.name,he.ref.style)}else{var Jt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ce="",fe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Tt=0;Tt<qt.length;Tt++){if(this.pdf.internal.getFont(qt[Tt],Jt,{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(qt[Tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ce=qt[Tt],Jt="bold";else if(this.pdf.internal.getFont(qt[Tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt],Jt="normal";break}}if(ce===""){for(var ee=0;ee<qt.length;ee++)if(fe[qt[ee]]){ce=fe[qt[ee]];break}}ce=ce===""?"Times":ce,this.pdf.setFont(ce,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(I){this.ctx.globalCompositeOperation=I}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(I){this.ctx.globalAlpha=I}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(I){this.ctx.lineDashOffset=I,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(I){this.ctx.lineDash=I,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(I){this.ctx.ignoreClearRect=!!I}})};y.prototype.setLineDash=function(x){this.lineDash=x},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){j.call(this,"fill",!1)},y.prototype.stroke=function(){j.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(x,M)},y.prototype.closePath=function(){var x=new h(0,0),M=0;for(M=this.path.length-1;M!==-1;M--)if(this.path[M].type==="begin"&&Le(this.path[M+1])==="object"&&typeof this.path[M+1].x=="number"){x=new h(this.path[M+1].x,this.path[M+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(x.x,x.y)},y.prototype.lineTo=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),j.call(this,null,!0)},y.prototype.quadraticCurveTo=function(x,M,B,G){if(isNaN(B)||isNaN(G)||isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new h(B,G)),J=this.ctx.transform.applyToPoint(new h(x,M));this.path.push({type:"qct",x1:J.x,y1:J.y,x:$.x,y:$.y}),this.ctx.lastPoint=new h($.x,$.y)},y.prototype.bezierCurveTo=function(x,M,B,G,$,J){if(isNaN($)||isNaN(J)||isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new h($,J)),ot=this.ctx.transform.applyToPoint(new h(x,M)),gt=this.ctx.transform.applyToPoint(new h(B,G));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new h(at.x,at.y)},y.prototype.arc=function(x,M,B,G,$,J){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G)||isNaN($))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(J=!!J,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new h(x,M));x=at.x,M=at.y;var ot=this.ctx.transform.applyToPoint(new h(0,B)),gt=this.ctx.transform.applyToPoint(new h(0,0));B=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2))}Math.abs($-G)>=2*Math.PI&&(G=0,$=2*Math.PI),this.path.push({type:"arc",x,y:M,radius:B,startAngle:G,endAngle:$,counterclockwise:J})},y.prototype.arcTo=function(x,M,B,G,$){throw new Error("arcTo not implemented.")},y.prototype.rect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,M),this.lineTo(x+B,M),this.lineTo(x+B,M+G),this.lineTo(x,M+G),this.lineTo(x,M),this.lineTo(x+B,M),this.lineTo(x,M)},y.prototype.fillRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,M,B,G),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},y.prototype.strokeRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");F.call(this)||(this.beginPath(),this.rect(x,M,B,G),this.stroke())},y.prototype.clearRect=function(x,M,B,G){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,M,B,G))},y.prototype.save=function(x){x=typeof x!="boolean"||x;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(M),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var G=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=G}},y.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(M),x&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(x){var M,B,G,$;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))M=0,B=0,G=0,$=0;else{var J=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(J!==null)M=parseInt(J[1]),B=parseInt(J[2]),G=parseInt(J[3]),$=1;else if((J=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)M=parseInt(J[1]),B=parseInt(J[2]),G=parseInt(J[3]),$=parseFloat(J[4]);else{if($=1,typeof x=="string"&&x.charAt(0)!=="#"){var at=new Hu(x);x=at.ok?at.toHex():"#000000"}x.length===4?(M=x.substring(1,2),M+=M,B=x.substring(2,3),B+=B,G=x.substring(3,4),G+=G):(M=x.substring(1,3),B=x.substring(3,5),G=x.substring(5,7)),M=parseInt(M,16),B=parseInt(B,16),G=parseInt(G,16)}}return{r:M,g:B,b:G,a:$,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},F=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(x,M,B,G){if(isNaN(M)||isNaN(B)||typeof x!="string")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(G=isNaN(G)?void 0:G,!p.call(this)){var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:x,x:M,y:B,scale:J,angle:$,align:this.textAlign,maxWidth:G})}},y.prototype.strokeText=function(x,M,B,G){if(isNaN(M)||isNaN(B)||typeof x!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!F.call(this)){G=isNaN(G)?void 0:G;var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:x,x:M,y:B,scale:J,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:G})}},y.prototype.measureText=function(x){if(typeof x!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var M=this.pdf,B=this.pdf.internal.scaleFactor,G=M.internal.getFontSize(),$=M.getStringUnitWidth(x)*G/M.internal.scaleFactor;return new function(J){var at=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:$*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new c(x,0,0,M,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(x){if(isNaN(x))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var M=new c(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(M)},y.prototype.translate=function(x,M){if(isNaN(x)||isNaN(M))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new c(1,0,0,1,x,M);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(x,M,B,G,$,J){if(isNaN(x)||isNaN(M)||isNaN(B)||isNaN(G)||isNaN($)||isNaN(J))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new c(x,M,B,G,$,J);this.ctx.transform=this.ctx.transform.multiply(at)},y.prototype.setTransform=function(x,M,B,G,$,J){x=isNaN(x)?1:x,M=isNaN(M)?0:M,B=isNaN(B)?0:B,G=isNaN(G)?1:G,$=isNaN($)?0:$,J=isNaN(J)?0:J,this.ctx.transform=new c(x,M,B,G,$,J)};var P=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(x,M,B,G,$,J,at,ot,gt){var xt=this.pdf.getImageProperties(x),kt=1,St=1,Bt=1,I=1;G!==void 0&&ot!==void 0&&(Bt=ot/G,I=gt/$,kt=xt.width/G*ot/G,St=xt.height/$*gt/$),J===void 0&&(J=M,at=B,M=0,B=0),G!==void 0&&ot===void 0&&(ot=G,gt=$),G===void 0&&ot===void 0&&(ot=xt.width,gt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(J-M*Bt,at-B*I,G*kt,$*St));if(this.autoPaging){for(var Wt,It=D.call(this,yt),qt=[],zt=0;zt<It.length;zt+=1)qt.indexOf(It[zt])===-1&&qt.push(It[zt]);q(qt);for(var ye=qt[0],he=qt[qt.length-1],Jt=ye;Jt<he+1;Jt++){this.pdf.setPage(Jt);var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Jt===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],jt=Jt===1?0:Tt+(Jt-2)*ee;if(this.ctx.clip_path.length!==0){var Ue=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(Wt,this.posX+this.margin[3],-jt+fe+this.ctx.prevPageLastElemOffset),rt.call(this,"fill",!0),this.path=Ue}var ge=JSON.parse(JSON.stringify(yt));ge=H([ge],this.posX+this.margin[3],-jt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Jt>ye||Jt<he)&&P.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,ee,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(x,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var D=function(x,M,B){var G=[];M=M||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":G.push(Math.floor((x.y+$)/B)+1);break;case"arc":G.push(Math.floor((x.y+$-x.radius)/B)+1),G.push(Math.floor((x.y+$+x.radius)/B)+1);break;case"qct":var J=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);G.push(Math.floor((J.y+$)/B)+1),G.push(Math.floor((J.y+J.h+$)/B)+1);break;case"bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);G.push(Math.floor((at.y+$)/B)+1),G.push(Math.floor((at.y+at.h+$)/B)+1);break;case"rect":G.push(Math.floor((x.y+$)/B)+1),G.push(Math.floor((x.y+x.h+$)/B)+1)}for(var ot=0;ot<G.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<G[ot];)L.call(this);return G},L=function(){var x=this.fillStyle,M=this.strokeStyle,B=this.font,G=this.lineCap,$=this.lineWidth,J=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=M,this.font=B,this.lineCap=G,this.lineWidth=$,this.lineJoin=J},H=function(x,M,B){for(var G=0;G<x.length;G++)switch(x[G].type){case"bct":x[G].x2+=M,x[G].y2+=B;case"qct":x[G].x1+=M,x[G].y1+=B;default:x[G].x+=M,x[G].y+=B}return x},q=function(x){return x.sort(function(M,B){return M-B})},j=function(x,M){var B=this.fillStyle,G=this.strokeStyle,$=this.lineCap,J=this.lineWidth,at=Math.abs(J*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,xt,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Bt=[],I=0;I<St.length;I++)if(St[I].x!==void 0)for(var Lt=D.call(this,St[I]),ae=0;ae<Lt.length;ae+=1)Bt.indexOf(Lt[ae])===-1&&Bt.push(Lt[ae]);for(var Ht=0;Ht<Bt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Bt[Ht];)L.call(this);q(Bt);for(var yt=Bt[0],Wt=Bt[Bt.length-1],It=yt;It<Wt+1;It++){this.pdf.setPage(It),this.fillStyle=B,this.strokeStyle=G,this.lineCap=$,this.lineWidth=at,this.lineJoin=ot;var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=It===1?this.posY+this.margin[0]:this.margin[0],ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],he=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=It===1?0:ye+(It-2)*he;if(this.ctx.clip_path.length!==0){var ce=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(gt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),rt.call(this,x,!0),this.path=ce}if(xt=JSON.parse(JSON.stringify(kt)),this.path=H(xt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),M===!1||It===0){var fe=(It>yt||It<Wt)&&P.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,he,null).clip().discardPath()),rt.call(this,x,M),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=J}this.path=kt}else this.lineWidth=at,rt.call(this,x,M),this.lineWidth=J},rt=function(x,M){if((x!=="stroke"||M||!F.call(this))&&(x==="stroke"||M||!p.call(this))){for(var B,G,$=[],J=this.path,at=0;at<J.length;at++){var ot=J[at];switch(ot.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:ot,deltas:[],abs:[]});break;case"lt":var gt=$.length;if(J[at-1]&&!isNaN(J[at-1].x)&&(B=[ot.x-J[at-1].x,ot.y-J[at-1].y],gt>0)){for(;gt>=0;gt--)if($[gt-1].close!==!0&&$[gt-1].begin!==!0){$[gt-1].deltas.push(B),$[gt-1].abs.push(ot);break}}break;case"bct":B=[ot.x1-J[at-1].x,ot.y1-J[at-1].y,ot.x2-J[at-1].x,ot.y2-J[at-1].y,ot.x-J[at-1].x,ot.y-J[at-1].y],$[$.length-1].deltas.push(B);break;case"qct":var xt=J[at-1].x+2/3*(ot.x1-J[at-1].x),kt=J[at-1].y+2/3*(ot.y1-J[at-1].y),St=ot.x+2/3*(ot.x1-ot.x),Bt=ot.y+2/3*(ot.y1-ot.y),I=ot.x,Lt=ot.y;B=[xt-J[at-1].x,kt-J[at-1].y,St-J[at-1].x,Bt-J[at-1].y,I-J[at-1].x,Lt-J[at-1].y],$[$.length-1].deltas.push(B);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(ot)}}G=M?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var yt=$[Ht].abs,Wt=0;Wt<yt.length;Wt++){var It=yt[Wt];It.type==="arc"?Y.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,M,!ae):W.call(this,It.x,It.y),ae=!0}else if($[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if($[Ht].begin!==!0){var qt=$[Ht].start.x,zt=$[Ht].start.y;U.call(this,$[Ht].deltas,qt,zt),ae=!0}G&&R.call(this,G),M&&tt.call(this)}},mt=function(x){var M=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=M*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-B;case"top":return x+M-B;case"hanging":return x+M-2*B;case"middle":return x+M/2-B;default:return x}},ut=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(M,B){this.colorStops.push([M,B])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(x,M,B,G,$,J,at,ot,gt){for(var xt=st.call(this,B,G,$,J),kt=0;kt<xt.length;kt++){var St=xt[kt];kt===0&&(gt?S.call(this,St.x1+x,St.y1+M):W.call(this,St.x1+x,St.y1+M)),it.call(this,x,M,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}ot?tt.call(this):R.call(this,at)},R=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,M){this.pdf.internal.out(e(x)+" "+r(M)+" m")},O=function(x){var M;switch(x.align){case"right":case"end":M="right";break;case"center":M="center";break;default:M="left"}var B,G,$,J=this.pdf.getTextDimensions(x.text),at=mt.call(this,x.y),ot=ut.call(this,at)-J.h,gt=this.ctx.transform.applyToPoint(new h(x.x,at));if(this.autoPaging){var xt=this.ctx.transform.decompose(),kt=new c;kt=(kt=(kt=kt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var St=this.ctx.transform.applyToRectangle(new l(x.x,at,J.w,J.h)),Bt=kt.applyToRectangle(new l(x.x,ot,J.w,J.h)),I=D.call(this,Bt),Lt=[],ae=0;ae<I.length;ae+=1)Lt.indexOf(I[ae])===-1&&Lt.push(I[ae]);q(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var It=Wt===1?this.posY+this.margin[0]:this.margin[0],qt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zt=this.pdf.internal.pageSize.height-this.margin[2],ye=zt-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Jt=he-this.margin[3],ce=Wt===1?0:qt+(Wt-2)*ye;if(this.ctx.clip_path.length!==0){var fe=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(B,this.posX+this.margin[3],-1*ce+It),rt.call(this,"fill",!0),this.path=fe}var Tt=H([JSON.parse(JSON.stringify(Bt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale);var ee=this.autoPaging!=="text";if(ee||Tt.y+Tt.h<=zt){if(ee||Tt.y>=It&&Tt.x<=he){var jt=ee?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||he-Tt.x)[0],Ue=H([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],ge=ee&&(Wt>Ht||Wt<yt)&&P.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,ye,null).clip().discardPath()),this.pdf.text(jt,Ue.x,Ue.y,{angle:x.angle,align:M,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Tt.y<zt&&(this.ctx.prevPageLastElemOffset+=zt-Tt.y);x.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)}}else x.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale),this.pdf.text(x.text,gt.x+this.posX,gt.y+this.posY,{angle:x.angle,align:M,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)},W=function(x,M,B,G){B=B||0,G=G||0,this.pdf.internal.out(e(x+B)+" "+r(M+G)+" l")},U=function(x,M,B){return this.pdf.lines(x,M,B,null,null)},it=function(x,M,B,G,$,J,at,ot){this.pdf.internal.out([n(i(B+x)),n(a(G+M)),n(i($+x)),n(a(J+M)),n(i(at+x)),n(a(ot+M)),"c"].join(" "))},st=function(x,M,B,G){for(var $=2*Math.PI,J=Math.PI/2;M>B;)M-=$;var at=Math.abs(B-M);at<$&&G&&(at=$-at);for(var ot=[],gt=G?-1:1,xt=M;at>1e-5;){var kt=xt+gt*Math.min(at,J);ot.push(ht.call(this,x,xt,kt)),at-=Math.abs(kt-xt),xt=kt}return ot},ht=function(x,M,B){var G=(B-M)/2,$=x*Math.cos(G),J=x*Math.sin(G),at=$,ot=-J,gt=at*at+ot*ot,xt=gt+at*$+ot*J,kt=4/3*(Math.sqrt(2*gt*xt)-xt)/(at*J-ot*$),St=at-kt*ot,Bt=ot+kt*at,I=St,Lt=-Bt,ae=G+M,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:x*Math.cos(M),y1:x*Math.sin(M),x2:St*Ht-Bt*yt,y2:St*yt+Bt*Ht,x3:I*Ht-Lt*yt,y3:I*yt+Lt*Ht,x4:x*Math.cos(B),y4:x*Math.sin(B)}},nt=function(x){return 180*x/Math.PI},ct=function(x,M,B,G,$,J){var at=x+.5*(B-x),ot=M+.5*(G-M),gt=$+.5*(B-$),xt=J+.5*(G-J),kt=Math.min(x,$,at,gt),St=Math.max(x,$,at,gt),Bt=Math.min(M,J,ot,xt),I=Math.max(M,J,ot,xt);return new l(kt,Bt,St-kt,I-Bt)},At=function(x,M,B,G,$,J,at,ot){var gt,xt,kt,St,Bt,I,Lt,ae,Ht,yt,Wt,It,qt,zt,ye=B-x,he=G-M,Jt=$-B,ce=J-G,fe=at-$,Tt=ot-J;for(xt=0;xt<41;xt++)Ht=(Lt=(kt=x+(gt=xt/40)*ye)+gt*((Bt=B+gt*Jt)-kt))+gt*(Bt+gt*($+gt*fe-Bt)-Lt),yt=(ae=(St=M+gt*he)+gt*((I=G+gt*ce)-St))+gt*(I+gt*(J+gt*Tt-I)-ae),xt==0?(Wt=Ht,It=yt,qt=Ht,zt=yt):(Wt=Math.min(Wt,Ht),It=Math.min(It,yt),qt=Math.max(qt,Ht),zt=Math.max(zt,yt));return new l(Math.round(Wt),Math.round(It),Math.round(qt-Wt),Math.round(zt-It))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,M,B=(x=this.ctx.lineDash,M=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:M}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Mt.API),(function(t){var n=function(h){var l,c,u,g,y,A,p,F,P,D;for(/[^\x00-\xFF]/.test(h),c=[],u=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>u;u+=4)(y=(h.charCodeAt(u)<<24)+(h.charCodeAt(u+1)<<16)+(h.charCodeAt(u+2)<<8)+h.charCodeAt(u+3))!==0?(A=(y=((y=((y=((y=(y-(D=y%85))/85)-(P=y%85))/85)-(F=y%85))/85)-(p=y%85))/85)%85,c.push(A+33,p+33,F+33,P+33,D+33)):c.push(122);return(function(L,H){for(var q=H;q>0;q--)L.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(h){var l,c,u,g,y,A=String,p="length",F=255,P="charCodeAt",D="slice",L="replace";for(h[D](-2),h=h[D](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),u=[],g=0,y=(h+=l="uuuuu"[D](h[p]%5||5))[p];y>g;g+=5)c=52200625*(h[P](g)-33)+614125*(h[P](g+1)-33)+7225*(h[P](g+2)-33)+85*(h[P](g+3)-33)+(h[P](g+4)-33),u.push(F&c>>24,F&c>>16,F&c>>8,F&c);return(function(H,q){for(var j=q;j>0;j--)H.pop()})(u,l[p]),A.fromCharCode.apply(A,u)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var c="",u=0;u<h.length;u+=2)c+=String.fromCharCode("0x"+(h[u]+h[u+1]));return c},a=function(h){for(var l=new Uint8Array(h.length),c=h.length;c--;)l[c]=h.charCodeAt(c);return(l=ds(l)).reduce(function(u,g){return u+String.fromCharCode(g)},"")};t.processDataByFilters=function(h,l){var c=0,u=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=n(u),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:u,reverseChain:g.reverse().join(" ")}}})(Mt.API),(function(t){t.loadFile=function(n,e,r){return(function(i,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(c,u,g){var y=new XMLHttpRequest,A=0,p=function(F){var P=F.length,D=[],L=String.fromCharCode;for(A=0;A<P;A+=1)D.push(L(255&F.charCodeAt(A)));return D.join("")};if(y.open("GET",c,!u),y.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(y.onload=function(){y.status===200?g(p(this.responseText)):g(void 0)}),y.send(null),u&&y.status===200)return p(y.responseText)})(i,a,h)}catch{}return l})(n,e,r)},t.loadImageFile=t.loadFile})(Mt.API),(function(t){function n(){return($t.html2canvas?Promise.resolve($t.html2canvas):import("./KQP3AJSX.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):import("./WKJ2R7JY.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=Le(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},i=function(l,c){var u=document.createElement(l);for(var g in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[g]=c.style[g];return u},a=function l(c,u){for(var g=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),y=c.firstChild;y;y=y.nextSibling)u!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||g.appendChild(l(y,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(g.width=c.width,g.height=c.height,g.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(g.value=c.value),g.addEventListener("load",function(){g.scrollTop=c.scrollTop,g.scrollLeft=c.scrollLeft},!0)),g},h=function l(c){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),u);return(g=g.setProgress(1,l,1,[l])).set(c)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,c){return l.__proto__=c||h.prototype,l},h.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},h.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(e).then(function(u){return this.set({src:i("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},h.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var u=this.opt.jsPDF,g=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,A=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete A.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=g,g)for(var p=0;p<g.length;++p){var F=g[p],P=F.src.find(function(D){return D.format==="truetype"});P&&u.addFont(P.url,F.ref.name,F.ref.style)}return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,u.context2d.save(!0),c(this.prop.container,A)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},h.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(u){if(u in h.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(c)})},h.prototype.get=function(l,c){return this.then(function(){var u=l in h.template.prop?this.prop[l]:this.opt[l];return c?c(u):u})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function c(u,g){return Math.floor(u*g/72*96)}return this.then(function(){(l=l||Mt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,c,u,g){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,c,u,g){return this.setProgress(l?this.progress.val+l:null,c||null,u?this.progress.n+u:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,c){var u=this;return this.thenCore(l,c,function(g,y){return u.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(A){return u.updateProgress(null,g),A}).then(g,y).then(function(A){return u.updateProgress(1),A})})},h.prototype.thenCore=function(l,c,u){u=u||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),c&&(c=c.bind(g));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),A=u.call(y,l,c);return h.convert(A,g.__proto__)},h.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},h.prototype.thenList=function(l){var c=this;return l.forEach(function(u){c=c.thenCore(u)}),c},h.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return h.convert(c,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Mt.getPageSize=function(l,c,u){if(Le(l)==="object"){var g=l;l=g.orientation,c=g.unit||c,u=g.format||u}c=c||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var y,A=(""+u).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+c}var F,P=0,D=0;if(p.hasOwnProperty(A))P=p[A][1]/y,D=p[A][0]/y;else try{P=u[1],D=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",D>P&&(F=D,D=P,P=F);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",P>D&&(F=D,D=P,P=F)}return{width:D,height:P,unit:c,k:y,orientation:l}},t.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(xh):null;var u=new h(c);return c.worker?u:u.from(l).doCallback()}})(Mt.API),Mt.API.addJS=function(t){return Fu=t,this.internal.events.subscribe("postPutResources",function(){Ms=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ms+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Iu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ms!==void 0&&Iu!==void 0&&this.internal.out("/Names <</JavaScript "+Ms+" 0 R>>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var h=i[a],l=r.exec(h);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,g=[];for(a=0;a<u;a++){var y=e.internal.newObject();g.push(y);var A=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<g.length;a++)e.internal.write("(page_"+(a+1)+")"+g[a]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,i,a){var h={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(h),h},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var h=r.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var c=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
45
45
  `},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
46
46
  `+r.id+` 0 obj\r
47
47
  <<\r
@@ -49,7 +49,7 @@ T* `):f.join(` Tj
49
49
  endobj\r
50
50
  `},e.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(Mt.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,i,a,h,l){var c,u=this.decode.DCT_DECODE,g=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=h||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,c=(function(y){for(var A,p=256*y.charCodeAt(4)+y.charCodeAt(5),F=y.length,P={width:0,height:0,numcomponents:1},D=4;D<F;D+=2){if(D+=p,n.indexOf(y.charCodeAt(D+1))!==-1){A=256*y.charCodeAt(D+5)+y.charCodeAt(D+6),P={width:256*y.charCodeAt(D+7)+y.charCodeAt(D+8),height:A,numcomponents:y.charCodeAt(D+9)};break}p=256*y.charCodeAt(D+2)+y.charCodeAt(D+3)}return P})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}g={data:e,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:u,index:r,alias:i}}return g}})(Mt.API),Mt.API.processPNG=function(t,n,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var i,a=bu(t,{checkCrc:!0}),h=a.width,l=a.height,c=a.channels,u=a.palette,g=a.depth;i=u&&c===1?(function(Y){for(var R=Y.width,tt=Y.height,S=Y.data,O=Y.palette,W=Y.depth,U=!1,it=[],st=[],ht=void 0,nt=!1,ct=0,At=0;At<O.length;At++){var wt=Tl(O[At],4),x=wt[0],M=wt[1],B=wt[2],G=wt[3];it.push(x,M,B),G!=null&&(G===0?(ct++,st.length<1&&st.push(At)):G<255&&(nt=!0))}if(nt||ct>1){U=!0,st=void 0;var $=R*tt;ht=new Uint8Array($);for(var J=new DataView(S.buffer),at=0;at<$;at++){var ot=Nh(J,at,W),gt=Tl(O[ot],4)[3];ht[at]=gt}}else ct===0&&(st=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:S,alphaBytes:ht,needSMask:U,palette:it,mask:st}})(a):c===2||c===4?(function(Y){for(var R=Y.data,tt=Y.width,S=Y.height,O=Y.channels,W=Y.depth,U=O===2?"DeviceGray":"DeviceRGB",it=O-1,st=tt*S,ht=it,nt=st*ht,ct=1*st,At=Math.ceil(nt*W/8),wt=Math.ceil(ct*W/8),x=new Uint8Array(At),M=new Uint8Array(wt),B=new DataView(R.buffer),G=new DataView(x.buffer),$=new DataView(M.buffer),J=!1,at=0;at<st;at++){for(var ot=at*O,gt=0;gt<ht;gt++)Bu(G,Nh(B,ot+gt,W),at*ht+gt,W);var xt=Nh(B,ot+ht,W);xt<(1<<W)-1&&(J=!0),Bu($,xt,1*at,W)}return{colorSpace:U,colorsPerPixel:it,sMaskBitsPerComponent:J?W:void 0,colorBytes:x,alphaBytes:M,needSMask:J}})(a):(function(Y){var R=Y.data,tt=Y.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?(function(S){for(var O=S.length,W=new Uint8Array(2*O),U=new DataView(W.buffer,W.byteOffset,W.byteLength),it=0;it<O;it++)U.setUint16(2*it,S[it],!1);return W})(R):R,needSMask:!1}})(a);var y,A,p,F=i,P=F.colorSpace,D=F.colorsPerPixel,L=F.sMaskBitsPerComponent,H=F.colorBytes,q=F.alphaBytes,j=F.needSMask,rt=F.palette,mt=F.mask,ut=null;return r!==Mt.API.image_compression.NONE&&typeof ds=="function"?(ut=(function(Y){var R;switch(Y){case Mt.API.image_compression.FAST:R=11;break;case Mt.API.image_compression.MEDIUM:R=13;break;case Mt.API.image_compression.SLOW:R=14;break;default:R=12}return R})(r),y=this.decode.FLATE_DECODE,A="/Predictor ".concat(ut," /Colors ").concat(D," /BitsPerComponent ").concat(g," /Columns ").concat(h),t=Tu(H,Math.ceil(h*D*g/8),D,g,r),j&&(p=Tu(q,Math.ceil(h*L/8),1,L,r))):(y=void 0,A=void 0,t=H,j&&(p=q)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:y,decodeParameters:A,transparency:mt,palette:rt,sMask:p,predictor:ut,width:h,height:l,bitsPerComponent:g,sMaskBitsPerComponent:L,colorSpace:P}}},(function(t){t.processGIF89A=function(n,e,r,i){var a=new Nd(n),h=a.width,l=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:h,height:l},g=new Lh(100).encode(u,100);return t.processJPEG.call(this,g,e,r,i)},t.processGIF87A=t.processGIF89A})(Mt.API),hr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:i,green:r,blue:e,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},hr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,n=this.width*this.height*4;this.data=new Uint8Array(n),this[t]()}catch(e){Pe.log("bit decode error:"+e)}},hr.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<n;i++)for(var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+8*i*4,l=0;l<8&&8*i+l<this.width;l++){var c=this.palette[a>>7-l&1];this.data[h+4*l]=c.blue,this.data[h+4*l+1]=c.green,this.data[h+4*l+2]=c.red,this.data[h+4*l+3]=255}e!==0&&(this.pos+=4-e)}},hr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+2*i*4,l=a>>4,c=15&a,u=this.palette[l];if(this.data[h]=u.blue,this.data[h+1]=u.green,this.data[h+2]=u.red,this.data[h+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[h+4]=u.blue,this.data[h+4+1]=u.green,this.data[h+4+2]=u.red,this.data[h+4+3]=255}n!==0&&(this.pos+=4-n)}},hr.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;if(i<this.palette.length){var h=this.palette[i];this.data[a]=h.red,this.data[a+1]=h.green,this.data[a+2]=h.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}t!==0&&(this.pos+=4-t)}},hr.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(a&n)/n*255|0,l=(a>>5&n)/n*255|0,c=(a>>10&n)/n*255|0,u=a>>15?255:0,g=r*this.width*4+4*i;this.data[g]=c,this.data[g+1]=l,this.data[g+2]=h,this.data[g+3]=u}this.pos+=t}},hr.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&n)/n*255|0,c=(h>>5&e)/e*255|0,u=(h>>11)/n*255|0,g=i*this.width*4+4*a;this.data[g]=u,this.data[g+1]=c,this.data[g+2]=l,this.data[g+3]=255}this.pos+=t}},hr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=n*this.width*4+4*e;this.data[h]=a,this.data[h+1]=i,this.data[h+2]=r,this.data[h+3]=255}this.pos+=this.width%4}},hr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=a,this.data[l+1]=i,this.data[l+2]=r,this.data[l+3]=h}},hr.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(n,e,r,i){var a=new hr(n,!1),h=a.width,l=a.height,c={data:a.getData(),width:h,height:l},u=new Lh(100).encode(c,100);return t.processJPEG.call(this,u,e,r,i)}})(Mt.API),Uu.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(n,e,r,i){var a=new Uu(n),h=a.width,l=a.height,c={data:a.getData(),width:h,height:l},u=new Lh(100).encode(c,100);return t.processJPEG.call(this,u,e,r,i)}})(Mt.API),Mt.API.processRGBA=function(t,n,e){for(var r=t.data,i=r.length,a=new Uint8Array(i/4*3),h=new Uint8Array(i/4),l=0,c=0,u=0;u<i;u+=4){var g=r[u],y=r[u+1],A=r[u+2],p=r[u+3];a[l++]=g,a[l++]=y,a[l++]=A,h[c++]=p}var F=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:F,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Mt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ya=Mt.API,Rs=ya.getCharWidthsArray=function(t,n){var e,r,i=(n=n||{}).font||this.internal.getFont(),a=n.fontSize||this.internal.getFontSize(),h=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=n.kerning?n.kerning:i.metadata.Unicode.kerning,g=u.fof?u.fof:1,y=n.doKerning!==!1,A=0,p=t.length,F=0,P=l[0]||c,D=[];for(e=0;e<p;e++)r=t.charCodeAt(e),typeof i.metadata.widthOfString=="function"?D.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+h*(1e3/a)||0)/1e3):(A=y&&Le(u[r])==="object"&&!isNaN(parseInt(u[r][F],10))?u[r][F]/g:0,D.push((l[r]||P)/c+A)),F=r;return D},Eu=ya.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),i=n.charSpace||this.internal.getCharSpace();return ya.processArabic&&(t=ya.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,i)/e:Rs.apply(this,arguments).reduce(function(a,h){return a+h},0)},Cu=function(t,n,e,r){for(var i=[],a=0,h=t.length,l=0;a!==h&&l+n[a]<e;)l+=n[a],a++;i.push(t.slice(0,a));var c=a;for(l=0;a!==h;)l+n[a]>r&&(i.push(t.slice(c,a)),l=0,c=a),l+=n[a],a++;return c!==a&&i.push(t.slice(c,a)),i},Ou=function(t,n,e){e||(e={});var r,i,a,h,l,c,u,g=[],y=[g],A=e.textIndent||0,p=0,F=0,P=t.split(" "),D=Rs.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?P[0].length+2:e.lineIndent||0){var L=Array(c).join(" "),H=[];P.map(function(j){(j=j.split(/\s*\n/)).length>1?H=H.concat(j.map(function(rt,mt){return(mt&&rt.length?`
51
51
  `:"")+rt})):H.push(j[0])}),P=H,c=Eu.apply(this,[L,e])}for(a=0,h=P.length;a<h;a++){var q=0;if(r=P[a],c&&r[0]==`
52
- `&&(r=r.substr(1),q=1),A+p+(F=(i=Rs.apply(this,[r,e])).reduce(function(j,rt){return j+rt},0))>n||q){if(F>n){for(l=Cu.apply(this,[r,i,n-(A+p),n]),g.push(l.shift()),g=[l.pop()];l.length;)y.push([l.shift()]);F=i.slice(r.length-(g[0]?g[0].length:0)).reduce(function(j,rt){return j+rt},0)}else g=[r];y.push(g),A=F+c,p=D}else g.push(r),A+=p+F,p=D}return u=c?function(j,rt){return(rt?L:"")+j.join(" ")}:function(j){return j.join(" ")},y.map(u)},ya.splitTextToSize=function(t,n,e){var r,i=(e=e||{}).fontSize||this.internal.getFontSize(),a=function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var y=this.internal.getFont(g.fontName,g.fontStyle),A="Unicode";return y.metadata[A]?{widths:y.metadata[A].widths||{0:1},kerning:y.metadata[A].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var h=1*this.internal.scaleFactor*n/i;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=e.lineIndent;var l,c,u=[];for(l=0,c=r.length;l<c;l++)u=u.concat(Ou.apply(this,[r[l],h,a]));return u},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[e[a]]=n[a],i[n[a]]=e[a];var h=function(A){return"0x"+parseInt(A,10).toString(16)},l=t.__fontmetrics__.compress=function(A){var p,F,P,D,L=["{"];for(var H in A){if(p=A[H],isNaN(parseInt(H,10))?F="'"+H+"'":(H=parseInt(H,10),F=(F=h(H).slice(2)).slice(0,-1)+i[F.slice(-1)]),typeof p=="number")p<0?(P=h(p).slice(3),D="-"):(P=h(p).slice(2),D=""),P=D+P.slice(0,-1)+i[P.slice(-1)];else{if(Le(p)!=="object")throw new Error("Don't know what to do with value type "+Le(p)+".");P=l(p)}L.push(F+P)}return L.push("}"),L.join("")},c=t.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,F,P,D,L={},H=1,q=L,j=[],rt="",mt="",ut=A.length-1,Y=1;Y<ut;Y+=1)(D=A[Y])=="'"?p?(P=p.join(""),p=void 0):p=[]:p?p.push(D):D=="{"?(j.push([q,P]),q={},P=void 0):D=="}"?((F=j.pop())[0][F[1]]=q,P=void 0,q=F[0]):D=="-"?H=-1:P===void 0?r.hasOwnProperty(D)?(rt+=r[D],P=parseInt(rt,16)*H,H=1,rt=""):rt+=D:r.hasOwnProperty(D)?(mt+=r[D],q[P]=parseInt(mt,16)*H,H=1,P=void 0,mt=""):mt+=D;return L},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},y={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(A){var p=A.font,F=y.Unicode[p.postScriptName];F&&(p.metadata.Unicode={},p.metadata.Unicode.widths=F.widths,p.metadata.Unicode.kerning=F.kerning);var P=g.Unicode[p.postScriptName];P&&(p.metadata.Unicode.encoding=P,p.encoding=P.codePages[0])}])})(Mt.API),(function(t){var n=function(e){for(var r=e.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=e.charCodeAt(a);return i};t.API.events.push(["addFont",function(e){var r=void 0,i=e.font,a=e.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(js(l)),h.metadata=t.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(i,r)}}])})(Mt),Mt.API.addSvgAsImage=function(t,n,e,r,i,a,h,l){if(isNaN(n)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Pe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return($t.canvg?Promise.resolve($t.canvg):import("./OQ2RXIBK.js")).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(u,t,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(g)}).then(function(){y.addImage(c.toDataURL("image/jpeg",1),n,e,r,i,h,l)})},Mt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(n,e);return this},Mt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,i,a,h={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(h),c=[],u=0,g=0,y=0;function A(F,P){var D,L=!1;for(D=0;D<F.length;D+=1)F[D]===P&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(y=0;y<p;y+=1)e[l[y]].value=e[l[y]].defaultValue,e[l[y]].explicitSet=!1}if(Le(t)==="object"){for(i in t)if(a=t[i],A(l,i)&&a!==void 0){if(e[i].type==="boolean"&&typeof a=="boolean")e[i].value=a;else if(e[i].type==="name"&&A(e[i].valueSet,a))e[i].value=a;else if(e[i].type==="integer"&&Number.isInteger(a))e[i].value=a;else if(e[i].type==="array"){for(u=0;u<a.length;u+=1)if(r=!0,a[u].length===1&&typeof a[u][0]=="number")c.push(String(a[u]-1));else if(a[u].length>1){for(g=0;g<a[u].length;g+=1)typeof a[u][g]!="number"&&(r=!1);r===!0&&c.push([a[u][0]-1,a[u][1]-1].join(" "))}e[i].value="["+c.join(" ")+"]"}else e[i].value=e[i].defaultValue;e[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var F,P=[];for(F in e)e[F].explicitSet===!0&&(e[F].type==="name"?P.push("/"+F+" /"+e[F].value):P.push("/"+F+" "+e[F].value));P.length!==0&&this.internal.write(`/ViewerPreferences
52
+ `&&(r=r.substr(1),q=1),A+p+(F=(i=Rs.apply(this,[r,e])).reduce(function(j,rt){return j+rt},0))>n||q){if(F>n){for(l=Cu.apply(this,[r,i,n-(A+p),n]),g.push(l.shift()),g=[l.pop()];l.length;)y.push([l.shift()]);F=i.slice(r.length-(g[0]?g[0].length:0)).reduce(function(j,rt){return j+rt},0)}else g=[r];y.push(g),A=F+c,p=D}else g.push(r),A+=p+F,p=D}return u=c?function(j,rt){return(rt?L:"")+j.join(" ")}:function(j){return j.join(" ")},y.map(u)},ya.splitTextToSize=function(t,n,e){var r,i=(e=e||{}).fontSize||this.internal.getFontSize(),a=function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var y=this.internal.getFont(g.fontName,g.fontStyle),A="Unicode";return y.metadata[A]?{widths:y.metadata[A].widths||{0:1},kerning:y.metadata[A].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var h=1*this.internal.scaleFactor*n/i;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=e.lineIndent;var l,c,u=[];for(l=0,c=r.length;l<c;l++)u=u.concat(Ou.apply(this,[r[l],h,a]));return u},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[e[a]]=n[a],i[n[a]]=e[a];var h=function(A){return"0x"+parseInt(A,10).toString(16)},l=t.__fontmetrics__.compress=function(A){var p,F,P,D,L=["{"];for(var H in A){if(p=A[H],isNaN(parseInt(H,10))?F="'"+H+"'":(H=parseInt(H,10),F=(F=h(H).slice(2)).slice(0,-1)+i[F.slice(-1)]),typeof p=="number")p<0?(P=h(p).slice(3),D="-"):(P=h(p).slice(2),D=""),P=D+P.slice(0,-1)+i[P.slice(-1)];else{if(Le(p)!=="object")throw new Error("Don't know what to do with value type "+Le(p)+".");P=l(p)}L.push(F+P)}return L.push("}"),L.join("")},c=t.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,F,P,D,L={},H=1,q=L,j=[],rt="",mt="",ut=A.length-1,Y=1;Y<ut;Y+=1)(D=A[Y])=="'"?p?(P=p.join(""),p=void 0):p=[]:p?p.push(D):D=="{"?(j.push([q,P]),q={},P=void 0):D=="}"?((F=j.pop())[0][F[1]]=q,P=void 0,q=F[0]):D=="-"?H=-1:P===void 0?r.hasOwnProperty(D)?(rt+=r[D],P=parseInt(rt,16)*H,H=1,rt=""):rt+=D:r.hasOwnProperty(D)?(mt+=r[D],q[P]=parseInt(mt,16)*H,H=1,P=void 0,mt=""):mt+=D;return L},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},y={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(A){var p=A.font,F=y.Unicode[p.postScriptName];F&&(p.metadata.Unicode={},p.metadata.Unicode.widths=F.widths,p.metadata.Unicode.kerning=F.kerning);var P=g.Unicode[p.postScriptName];P&&(p.metadata.Unicode.encoding=P,p.encoding=P.codePages[0])}])})(Mt.API),(function(t){var n=function(e){for(var r=e.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=e.charCodeAt(a);return i};t.API.events.push(["addFont",function(e){var r=void 0,i=e.font,a=e.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(js(l)),h.metadata=t.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(i,r)}}])})(Mt),Mt.API.addSvgAsImage=function(t,n,e,r,i,a,h,l){if(isNaN(n)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Pe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return($t.canvg?Promise.resolve($t.canvg):import("./3GO45KNW.js")).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(u,t,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(g)}).then(function(){y.addImage(c.toDataURL("image/jpeg",1),n,e,r,i,h,l)})},Mt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(n,e);return this},Mt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,i,a,h={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(h),c=[],u=0,g=0,y=0;function A(F,P){var D,L=!1;for(D=0;D<F.length;D+=1)F[D]===P&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(y=0;y<p;y+=1)e[l[y]].value=e[l[y]].defaultValue,e[l[y]].explicitSet=!1}if(Le(t)==="object"){for(i in t)if(a=t[i],A(l,i)&&a!==void 0){if(e[i].type==="boolean"&&typeof a=="boolean")e[i].value=a;else if(e[i].type==="name"&&A(e[i].valueSet,a))e[i].value=a;else if(e[i].type==="integer"&&Number.isInteger(a))e[i].value=a;else if(e[i].type==="array"){for(u=0;u<a.length;u+=1)if(r=!0,a[u].length===1&&typeof a[u][0]=="number")c.push(String(a[u]-1));else if(a[u].length>1){for(g=0;g<a[u].length;g+=1)typeof a[u][g]!="number"&&(r=!1);r===!0&&c.push([a[u][0]-1,a[u][1]-1].join(" "))}e[i].value="["+c.join(" ")+"]"}else e[i].value=e[i].defaultValue;e[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var F,P=[];for(F in e)e[F].explicitSet===!0&&(e[F].type==="name"?P.push("/"+F+" /"+e[F].value):P.push("/"+F+" "+e[F].value));P.length!==0&&this.internal.write(`/ViewerPreferences
53
53
  <<
54
54
  `+P.join(`
55
55
  `)+`