cronapp-lib-js 1.0.0

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 (440) hide show
  1. package/INTERNAL_README.md +2 -0
  2. package/LICENSE +21 -0
  3. package/README.md +17 -0
  4. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-001.min.js +26 -0
  5. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-029.min.js +26 -0
  6. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-150.min.js +26 -0
  7. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-AG.min.js +26 -0
  8. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-AI.min.js +26 -0
  9. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-AS.min.js +26 -0
  10. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-AT.min.js +26 -0
  11. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-AU.min.js +26 -0
  12. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BB.min.js +26 -0
  13. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BE.min.js +26 -0
  14. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BI.min.js +26 -0
  15. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BM.min.js +26 -0
  16. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BS.min.js +26 -0
  17. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BW.min.js +26 -0
  18. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-BZ.min.js +26 -0
  19. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CA.min.js +26 -0
  20. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CC.min.js +26 -0
  21. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CH.min.js +26 -0
  22. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CK.min.js +26 -0
  23. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CM.min.js +26 -0
  24. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CX.min.js +26 -0
  25. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-CY.min.js +26 -0
  26. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-DE.min.js +26 -0
  27. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-DK.min.js +26 -0
  28. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-DM.min.js +26 -0
  29. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-ER.min.js +26 -0
  30. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-FI.min.js +26 -0
  31. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-FJ.min.js +26 -0
  32. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-FK.min.js +26 -0
  33. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-FM.min.js +26 -0
  34. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GB.min.js +26 -0
  35. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GD.min.js +26 -0
  36. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GG.min.js +26 -0
  37. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GH.min.js +26 -0
  38. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GI.min.js +26 -0
  39. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GM.min.js +26 -0
  40. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GU.min.js +26 -0
  41. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-GY.min.js +26 -0
  42. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-HK.min.js +26 -0
  43. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-ID.min.js +26 -0
  44. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-IE.min.js +26 -0
  45. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-IL.min.js +26 -0
  46. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-IM.min.js +26 -0
  47. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-IN.min.js +26 -0
  48. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-IO.min.js +26 -0
  49. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-JE.min.js +26 -0
  50. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-JM.min.js +26 -0
  51. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-KE.min.js +26 -0
  52. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-KI.min.js +26 -0
  53. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-KN.min.js +26 -0
  54. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-KY.min.js +26 -0
  55. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-LC.min.js +26 -0
  56. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-LR.min.js +26 -0
  57. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-LS.min.js +26 -0
  58. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MG.min.js +26 -0
  59. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MH.min.js +26 -0
  60. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MO.min.js +26 -0
  61. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MP.min.js +26 -0
  62. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MS.min.js +26 -0
  63. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MT.min.js +26 -0
  64. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MU.min.js +26 -0
  65. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MW.min.js +26 -0
  66. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-MY.min.js +26 -0
  67. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NA.min.js +26 -0
  68. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NF.min.js +26 -0
  69. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NG.min.js +26 -0
  70. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NL.min.js +26 -0
  71. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NR.min.js +26 -0
  72. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NU.min.js +26 -0
  73. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-NZ.min.js +26 -0
  74. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PG.min.js +26 -0
  75. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PH.min.js +26 -0
  76. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PK.min.js +26 -0
  77. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PN.min.js +26 -0
  78. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PR.min.js +26 -0
  79. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-PW.min.js +26 -0
  80. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-RW.min.js +26 -0
  81. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SB.min.js +26 -0
  82. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SC.min.js +26 -0
  83. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SD.min.js +26 -0
  84. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SE.min.js +26 -0
  85. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SG.min.js +26 -0
  86. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SH.min.js +26 -0
  87. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SI.min.js +26 -0
  88. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SL.min.js +26 -0
  89. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SS.min.js +26 -0
  90. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SX.min.js +26 -0
  91. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-SZ.min.js +26 -0
  92. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TC.min.js +26 -0
  93. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TK.min.js +26 -0
  94. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TO.min.js +26 -0
  95. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TT.min.js +26 -0
  96. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TV.min.js +26 -0
  97. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-TZ.min.js +26 -0
  98. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-UG.min.js +26 -0
  99. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-UM.min.js +26 -0
  100. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-US.min.js +26 -0
  101. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-VC.min.js +26 -0
  102. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-VG.min.js +26 -0
  103. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-VI.min.js +26 -0
  104. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-VU.min.js +26 -0
  105. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-WS.min.js +26 -0
  106. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-ZA.min.js +26 -0
  107. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-ZM.min.js +26 -0
  108. package/dist/js/kendo-ui/js/cultures/kendo.culture.en-ZW.min.js +26 -0
  109. package/dist/js/kendo-ui/js/cultures/kendo.culture.en.min.js +26 -0
  110. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-419.min.js +26 -0
  111. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-AR.min.js +26 -0
  112. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-BO.min.js +26 -0
  113. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-CL.min.js +26 -0
  114. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-CO.min.js +26 -0
  115. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-CR.min.js +26 -0
  116. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-CU.min.js +26 -0
  117. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-DO.min.js +26 -0
  118. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-EC.min.js +26 -0
  119. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-ES.min.js +26 -0
  120. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-GQ.min.js +26 -0
  121. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-GT.min.js +26 -0
  122. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-HN.min.js +26 -0
  123. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-MX.min.js +26 -0
  124. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-NI.min.js +26 -0
  125. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-PA.min.js +26 -0
  126. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-PE.min.js +26 -0
  127. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-PH.min.js +26 -0
  128. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-PR.min.js +26 -0
  129. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-PY.min.js +26 -0
  130. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-SV.min.js +26 -0
  131. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-US.min.js +26 -0
  132. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-UY.min.js +26 -0
  133. package/dist/js/kendo-ui/js/cultures/kendo.culture.es-VE.min.js +26 -0
  134. package/dist/js/kendo-ui/js/cultures/kendo.culture.es.min.js +26 -0
  135. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-AO.min.js +26 -0
  136. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-BR.min.js +26 -0
  137. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-CV.min.js +26 -0
  138. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-GW.min.js +26 -0
  139. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-MO.min.js +26 -0
  140. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-MZ.min.js +26 -0
  141. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-PT.min.js +26 -0
  142. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-ST.min.js +26 -0
  143. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt-TL.min.js +26 -0
  144. package/dist/js/kendo-ui/js/cultures/kendo.culture.pt.min.js +26 -0
  145. package/dist/js/kendo-ui/js/jszip.min.js +14 -0
  146. package/dist/js/kendo-ui/js/kendo.all.fixed.js +1 -0
  147. package/dist/js/kendo-ui/js/kendo.all.fixed.src.js +208399 -0
  148. package/dist/js/kendo-ui/js/messages/kendo.messages.en-AU.min.js +26 -0
  149. package/dist/js/kendo-ui/js/messages/kendo.messages.en-CA.min.js +26 -0
  150. package/dist/js/kendo-ui/js/messages/kendo.messages.en-GB.min.js +26 -0
  151. package/dist/js/kendo-ui/js/messages/kendo.messages.en-US.min.js +26 -0
  152. package/dist/js/kendo-ui/js/messages/kendo.messages.es-AR.min.js +26 -0
  153. package/dist/js/kendo-ui/js/messages/kendo.messages.es-BO.min.js +26 -0
  154. package/dist/js/kendo-ui/js/messages/kendo.messages.es-CL.min.js +26 -0
  155. package/dist/js/kendo-ui/js/messages/kendo.messages.es-CO.min.js +26 -0
  156. package/dist/js/kendo-ui/js/messages/kendo.messages.es-CR.min.js +26 -0
  157. package/dist/js/kendo-ui/js/messages/kendo.messages.es-DO.min.js +26 -0
  158. package/dist/js/kendo-ui/js/messages/kendo.messages.es-EC.min.js +26 -0
  159. package/dist/js/kendo-ui/js/messages/kendo.messages.es-ES.min.js +26 -0
  160. package/dist/js/kendo-ui/js/messages/kendo.messages.es-GT.min.js +26 -0
  161. package/dist/js/kendo-ui/js/messages/kendo.messages.es-HN.min.js +26 -0
  162. package/dist/js/kendo-ui/js/messages/kendo.messages.es-MX.min.js +26 -0
  163. package/dist/js/kendo-ui/js/messages/kendo.messages.es-NI.min.js +26 -0
  164. package/dist/js/kendo-ui/js/messages/kendo.messages.es-PA.min.js +26 -0
  165. package/dist/js/kendo-ui/js/messages/kendo.messages.es-PE.min.js +26 -0
  166. package/dist/js/kendo-ui/js/messages/kendo.messages.es-PR.min.js +26 -0
  167. package/dist/js/kendo-ui/js/messages/kendo.messages.es-PY.min.js +26 -0
  168. package/dist/js/kendo-ui/js/messages/kendo.messages.es-US.min.js +26 -0
  169. package/dist/js/kendo-ui/js/messages/kendo.messages.es-UY.min.js +26 -0
  170. package/dist/js/kendo-ui/js/messages/kendo.messages.es-VE.min.js +26 -0
  171. package/dist/js/kendo-ui/js/messages/kendo.messages.pt-BR.min.js +1063 -0
  172. package/dist/js/kendo-ui/js/messages/kendo.messages.pt-PT.min.js +26 -0
  173. package/dist/js/kendo-ui/js/timezones/kendo.timezones.min.js +33 -0
  174. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSans-Bold.ttf +0 -0
  175. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSans-BoldOblique.ttf +0 -0
  176. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSans-ExtraLight.ttf +0 -0
  177. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf +0 -0
  178. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSans.ttf +0 -0
  179. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSansMono-Bold.ttf +0 -0
  180. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSansMono-BoldOblique.ttf +0 -0
  181. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSansMono-Oblique.ttf +0 -0
  182. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSansMono.ttf +0 -0
  183. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSerif-Bold.ttf +0 -0
  184. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSerif-BoldItalic.ttf +0 -0
  185. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSerif-Italic.ttf +0 -0
  186. package/dist/js/kendo-ui/styles/fonts/DejaVu/DejaVuSerif.ttf +0 -0
  187. package/dist/js/kendo-ui/styles/fonts/arial-report/arial-report.ttf +0 -0
  188. package/dist/js/kendo-ui/styles/fonts/glyphs/KendoUIGlyphs.eot +0 -0
  189. package/dist/js/kendo-ui/styles/fonts/glyphs/KendoUIGlyphs.svg +188 -0
  190. package/dist/js/kendo-ui/styles/fonts/glyphs/KendoUIGlyphs.ttf +0 -0
  191. package/dist/js/kendo-ui/styles/fonts/glyphs/KendoUIGlyphs.woff +0 -0
  192. package/dist/js/kendo-ui/styles/fonts/glyphs/WebComponentsIcons.eot +0 -0
  193. package/dist/js/kendo-ui/styles/fonts/glyphs/WebComponentsIcons.svg +1026 -0
  194. package/dist/js/kendo-ui/styles/fonts/glyphs/WebComponentsIcons.ttf +0 -0
  195. package/dist/js/kendo-ui/styles/fonts/glyphs/WebComponentsIcons.woff +0 -0
  196. package/dist/js/kendo-ui/styles/images/back.png +0 -0
  197. package/dist/js/kendo-ui/styles/images/kendoui.svg +361 -0
  198. package/dist/js/kendo-ui/styles/images/kendoui.ttf +0 -0
  199. package/dist/js/kendo-ui/styles/images/kendoui.woff +0 -0
  200. package/dist/js/kendo-ui/styles/images/wp8_icons.png +0 -0
  201. package/dist/js/kendo-ui/styles/images/wp8_inverseicons.png +0 -0
  202. package/dist/js/kendo-ui/styles/kendo-font-icons.css +4295 -0
  203. package/dist/js/kendo-ui/styles/kendo.bootstrap.min.css +25 -0
  204. package/dist/js/kendo-ui/styles/kendo.bootstrap.mobile.min.css +25 -0
  205. package/dist/js/kendo-ui/styles/kendo.common-bootstrap.min.css +25 -0
  206. package/dist/js/kendo-ui/styles/kendo.common.core.min.css +25 -0
  207. package/dist/js/kendo-ui/styles/kendo.common.min.css +25 -0
  208. package/dist/js/kendo-ui/styles/kendo.material-v2.min.css +80 -0
  209. package/dist/js/kendo-ui/styles/textures/brushed-metal.png +0 -0
  210. package/dist/js/kendo-ui/styles/textures/dots1.png +0 -0
  211. package/dist/js/kendo-ui/styles/textures/dots10.png +0 -0
  212. package/dist/js/kendo-ui/styles/textures/dots11.png +0 -0
  213. package/dist/js/kendo-ui/styles/textures/dots12.png +0 -0
  214. package/dist/js/kendo-ui/styles/textures/dots13.png +0 -0
  215. package/dist/js/kendo-ui/styles/textures/dots2.png +0 -0
  216. package/dist/js/kendo-ui/styles/textures/dots3.png +0 -0
  217. package/dist/js/kendo-ui/styles/textures/dots4.png +0 -0
  218. package/dist/js/kendo-ui/styles/textures/dots5.png +0 -0
  219. package/dist/js/kendo-ui/styles/textures/dots6.png +0 -0
  220. package/dist/js/kendo-ui/styles/textures/dots7.png +0 -0
  221. package/dist/js/kendo-ui/styles/textures/dots8.png +0 -0
  222. package/dist/js/kendo-ui/styles/textures/dots9.png +0 -0
  223. package/dist/js/kendo-ui/styles/textures/glass-lighter.png +0 -0
  224. package/dist/js/kendo-ui/styles/textures/glass.png +0 -0
  225. package/dist/js/kendo-ui/styles/textures/highlight.png +0 -0
  226. package/dist/js/kendo-ui/styles/textures/hsv-gradient.png +0 -0
  227. package/dist/js/kendo-ui/styles/textures/hue.png +0 -0
  228. package/dist/js/kendo-ui/styles/textures/leather1.png +0 -0
  229. package/dist/js/kendo-ui/styles/textures/leather2.png +0 -0
  230. package/dist/js/kendo-ui/styles/textures/noise.png +0 -0
  231. package/dist/js/kendo-ui/styles/textures/stripe1.png +0 -0
  232. package/dist/js/kendo-ui/styles/textures/stripe2.png +0 -0
  233. package/dist/js/kendo-ui/styles/textures/stripe3.png +0 -0
  234. package/dist/js/kendo-ui/styles/textures/stripe4.png +0 -0
  235. package/dist/js/kendo-ui/styles/textures/stripe5.png +0 -0
  236. package/dist/js/kendo-ui/styles/textures/stripe6.png +0 -0
  237. package/dist/js/kendo-ui/styles/textures/transparency.png +0 -0
  238. package/dist/js/kendo-ui/styles/textures/transtexture.png +0 -0
  239. package/dist/js/stimulsoft/stimulsoft-helper.js +557 -0
  240. package/dist/js/stimulsoft/stimulsoft.vendor.css +14 -0
  241. package/dist/js/stimulsoft/stimulsoft.vendor.js +50 -0
  242. package/dist/js/tinymce/plugins/angular-ui-tinymce/dist/tinymce.min.js +309 -0
  243. package/dist/js/tinymce/plugins/tinymce/jquery.tinymce.min.js +1 -0
  244. package/dist/js/tinymce/plugins/tinymce/langs/en_CA.js +260 -0
  245. package/dist/js/tinymce/plugins/tinymce/langs/pt_BR.js +261 -0
  246. package/dist/js/tinymce/plugins/tinymce/plugins/advlist/plugin.min.js +1 -0
  247. package/dist/js/tinymce/plugins/tinymce/plugins/anchor/plugin.min.js +1 -0
  248. package/dist/js/tinymce/plugins/tinymce/plugins/autolink/plugin.min.js +1 -0
  249. package/dist/js/tinymce/plugins/tinymce/plugins/autoresize/plugin.min.js +1 -0
  250. package/dist/js/tinymce/plugins/tinymce/plugins/autosave/plugin.min.js +1 -0
  251. package/dist/js/tinymce/plugins/tinymce/plugins/bbcode/plugin.min.js +1 -0
  252. package/dist/js/tinymce/plugins/tinymce/plugins/bdesk_photo/plugin.js +133 -0
  253. package/dist/js/tinymce/plugins/tinymce/plugins/bdesk_photo/plugin.min.js +133 -0
  254. package/dist/js/tinymce/plugins/tinymce/plugins/charmap/plugin.min.js +1 -0
  255. package/dist/js/tinymce/plugins/tinymce/plugins/code/plugin.min.js +1 -0
  256. package/dist/js/tinymce/plugins/tinymce/plugins/codesample/css/prism.css +138 -0
  257. package/dist/js/tinymce/plugins/tinymce/plugins/codesample/plugin.min.js +1 -0
  258. package/dist/js/tinymce/plugins/tinymce/plugins/colorpicker/plugin.min.js +1 -0
  259. package/dist/js/tinymce/plugins/tinymce/plugins/contextmenu/plugin.min.js +1 -0
  260. package/dist/js/tinymce/plugins/tinymce/plugins/directionality/plugin.min.js +1 -0
  261. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
  262. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
  263. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
  264. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
  265. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
  266. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
  267. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
  268. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
  269. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
  270. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
  271. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
  272. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
  273. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
  274. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
  275. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
  276. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
  277. package/dist/js/tinymce/plugins/tinymce/plugins/emoticons/plugin.min.js +1 -0
  278. package/dist/js/tinymce/plugins/tinymce/plugins/fullpage/plugin.min.js +1 -0
  279. package/dist/js/tinymce/plugins/tinymce/plugins/fullscreen/plugin.min.js +1 -0
  280. package/dist/js/tinymce/plugins/tinymce/plugins/help/img/logo.png +0 -0
  281. package/dist/js/tinymce/plugins/tinymce/plugins/help/plugin.min.js +1 -0
  282. package/dist/js/tinymce/plugins/tinymce/plugins/hr/plugin.min.js +1 -0
  283. package/dist/js/tinymce/plugins/tinymce/plugins/image/plugin.min.js +1 -0
  284. package/dist/js/tinymce/plugins/tinymce/plugins/imagetools/plugin.min.js +1 -0
  285. package/dist/js/tinymce/plugins/tinymce/plugins/importcss/plugin.min.js +1 -0
  286. package/dist/js/tinymce/plugins/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
  287. package/dist/js/tinymce/plugins/tinymce/plugins/legacyoutput/plugin.min.js +1 -0
  288. package/dist/js/tinymce/plugins/tinymce/plugins/link/plugin.min.js +1 -0
  289. package/dist/js/tinymce/plugins/tinymce/plugins/lists/plugin.min.js +1 -0
  290. package/dist/js/tinymce/plugins/tinymce/plugins/media/plugin.min.js +1 -0
  291. package/dist/js/tinymce/plugins/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
  292. package/dist/js/tinymce/plugins/tinymce/plugins/noneditable/plugin.min.js +1 -0
  293. package/dist/js/tinymce/plugins/tinymce/plugins/pagebreak/plugin.min.js +1 -0
  294. package/dist/js/tinymce/plugins/tinymce/plugins/paste/plugin.min.js +1 -0
  295. package/dist/js/tinymce/plugins/tinymce/plugins/preview/plugin.min.js +1 -0
  296. package/dist/js/tinymce/plugins/tinymce/plugins/print/plugin.min.js +1 -0
  297. package/dist/js/tinymce/plugins/tinymce/plugins/save/plugin.min.js +1 -0
  298. package/dist/js/tinymce/plugins/tinymce/plugins/searchreplace/plugin.min.js +1 -0
  299. package/dist/js/tinymce/plugins/tinymce/plugins/spellchecker/plugin.min.js +1 -0
  300. package/dist/js/tinymce/plugins/tinymce/plugins/tabfocus/plugin.min.js +1 -0
  301. package/dist/js/tinymce/plugins/tinymce/plugins/table/plugin.min.js +1 -0
  302. package/dist/js/tinymce/plugins/tinymce/plugins/template/plugin.min.js +1 -0
  303. package/dist/js/tinymce/plugins/tinymce/plugins/textcolor/plugin.min.js +1 -0
  304. package/dist/js/tinymce/plugins/tinymce/plugins/textpattern/plugin.min.js +1 -0
  305. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/VERSION +1 -0
  306. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/cache/info.txt +1 -0
  307. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/cas.js +253 -0
  308. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/cas.png +0 -0
  309. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/core.js +5414 -0
  310. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/display.js +28 -0
  311. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/editor.css +65 -0
  312. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/editor.html +84 -0
  313. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/editor.js +521 -0
  314. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/help.gif +0 -0
  315. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/cas.gif +0 -0
  316. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/chem.gif +0 -0
  317. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/formula.gif +0 -0
  318. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/general/close_icon.png +0 -0
  319. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/general/fulls_icon.png +0 -0
  320. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/general/max_icon.png +0 -0
  321. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/general/min_icon.png +0 -0
  322. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/general/mins_icon.png +0 -0
  323. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/hover/close_icon_h.png +0 -0
  324. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/hover/fulls_icon_h.png +0 -0
  325. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/hover/max_icon_h.png +0 -0
  326. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/hover/min_icon_h.png +0 -0
  327. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/hover/mins_icon_h.png +0 -0
  328. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/tiny_mce/cas.gif +0 -0
  329. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/tiny_mce/chem.gif +0 -0
  330. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/tiny_mce/formula.gif +0 -0
  331. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/xinha/cas.gif +0 -0
  332. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/icons/xinha/formula.gif +0 -0
  333. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/iframe.html +61 -0
  334. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/modal.css +293 -0
  335. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/popup.js +77 -0
  336. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/poweredbywiris.png +0 -0
  337. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/tutorials/listenerstutorial.md +26 -0
  338. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/core/tutorials/tutorials.json +5 -0
  339. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/core.js.html +5468 -0
  340. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
  341. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Bold-webfont.svg +1830 -0
  342. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
  343. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  344. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  345. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  346. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
  347. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Italic-webfont.svg +1830 -0
  348. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
  349. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Light-webfont.eot +0 -0
  350. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Light-webfont.svg +1831 -0
  351. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Light-webfont.woff +0 -0
  352. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  353. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  354. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  355. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
  356. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Regular-webfont.svg +1831 -0
  357. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
  358. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/global.html +656 -0
  359. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/index.html +65 -0
  360. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/scripts/linenumber.js +25 -0
  361. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/scripts/prettify/Apache-License-2.0.txt +202 -0
  362. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/scripts/prettify/lang-css.js +2 -0
  363. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/scripts/prettify/prettify.js +28 -0
  364. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/styles/jsdoc-default.css +358 -0
  365. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/styles/prettify-jsdoc.css +111 -0
  366. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/styles/prettify-tomorrow.css +132 -0
  367. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/doc/tutorial-listenerstutorial.html +69 -0
  368. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/editor_plugin.js +556 -0
  369. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/editor_plugin_src.js +556 -0
  370. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/formulas/info.txt +1 -0
  371. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/generic_wiris/generic_demo.js +255 -0
  372. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/cas.png +0 -0
  373. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/chem.png +0 -0
  374. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/formula.png +0 -0
  375. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/tinymce3/cas.png +0 -0
  376. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/tinymce3/chem.png +0 -0
  377. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/icons/tinymce3/formula.png +0 -0
  378. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/integration/WIRISplugins.js +3700 -0
  379. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/ar/strings.js +9 -0
  380. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/ca/strings.js +9 -0
  381. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/cs/strings.js +9 -0
  382. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/da/strings.js +9 -0
  383. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/de/strings.js +9 -0
  384. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/el/strings.js +9 -0
  385. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/en/strings.js +9 -0
  386. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/es/strings.js +9 -0
  387. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/et/strings.js +9 -0
  388. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/eu/strings.js +9 -0
  389. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/fi/strings.js +9 -0
  390. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/fr/strings.js +9 -0
  391. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/gl/strings.js +9 -0
  392. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/he/strings.js +9 -0
  393. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/hr/strings.js +9 -0
  394. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/hu/strings.js +9 -0
  395. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/it/strings.js +9 -0
  396. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/ja/strings.js +9 -0
  397. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/ko/strings.js +9 -0
  398. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/nl/strings.js +9 -0
  399. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/no/strings.js +9 -0
  400. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/pl/strings.js +9 -0
  401. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/pt/strings.js +9 -0
  402. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/ru/strings.js +9 -0
  403. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/sv/strings.js +9 -0
  404. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/tr/strings.js +9 -0
  405. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/lang/zh/strings.js +9 -0
  406. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/plugin.js +578 -0
  407. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/plugin.min.js +577 -0
  408. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/tech.txt +1 -0
  409. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/test.html +163 -0
  410. package/dist/js/tinymce/plugins/tinymce/plugins/tiny_mce_wiris/wirisplugin-generic.js +265 -0
  411. package/dist/js/tinymce/plugins/tinymce/plugins/toc/plugin.min.js +1 -0
  412. package/dist/js/tinymce/plugins/tinymce/plugins/visualblocks/css/visualblocks.css +154 -0
  413. package/dist/js/tinymce/plugins/tinymce/plugins/visualblocks/plugin.min.js +1 -0
  414. package/dist/js/tinymce/plugins/tinymce/plugins/visualchars/plugin.min.js +1 -0
  415. package/dist/js/tinymce/plugins/tinymce/plugins/wordcount/plugin.min.js +1 -0
  416. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/content.inline.min.css +1 -0
  417. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/content.min.css +1 -0
  418. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/content.mobile.min.css +1 -0
  419. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
  420. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
  421. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce-small.svg +63 -0
  422. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
  423. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
  424. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  425. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce.svg +131 -0
  426. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  427. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  428. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/img/anchor.gif +0 -0
  429. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/img/loader.gif +0 -0
  430. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/img/object.gif +0 -0
  431. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/img/trans.gif +0 -0
  432. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/skin.min.css +1 -0
  433. package/dist/js/tinymce/plugins/tinymce/skins/lightgray/skin.mobile.min.css +2 -0
  434. package/dist/js/tinymce/plugins/tinymce/themes/inlite/theme.min.js +1 -0
  435. package/dist/js/tinymce/plugins/tinymce/themes/mobile/theme.min.js +1 -0
  436. package/dist/js/tinymce/plugins/tinymce/themes/modern/theme.min.js +1 -0
  437. package/dist/js/tinymce/plugins/tinymce/tinymce.min.js +2 -0
  438. package/minify.js +7 -0
  439. package/package.json +23 -0
  440. package/postupdate.json +176 -0
@@ -0,0 +1,3700 @@
1
+ (function(){
2
+ var $hxClasses = $hxClasses || {},$estr = function() { return js.Boot.__string_rec(this,''); };
3
+ var EReg = $hxClasses["EReg"] = function(r,opt) {
4
+ opt = opt.split("u").join("");
5
+ this.r = new RegExp(r,opt);
6
+ };
7
+ EReg.__name__ = ["EReg"];
8
+ EReg.prototype = {
9
+ customReplace: function(s,f) {
10
+ var buf = new StringBuf();
11
+ while(true) {
12
+ if(!this.match(s)) break;
13
+ buf.b += Std.string(this.matchedLeft());
14
+ buf.b += Std.string(f(this));
15
+ s = this.matchedRight();
16
+ }
17
+ buf.b += Std.string(s);
18
+ return buf.b;
19
+ }
20
+ ,replace: function(s,by) {
21
+ return s.replace(this.r,by);
22
+ }
23
+ ,split: function(s) {
24
+ var d = "#__delim__#";
25
+ return s.replace(this.r,d).split(d);
26
+ }
27
+ ,matchedPos: function() {
28
+ if(this.r.m == null) throw "No string matched";
29
+ return { pos : this.r.m.index, len : this.r.m[0].length};
30
+ }
31
+ ,matchedRight: function() {
32
+ if(this.r.m == null) throw "No string matched";
33
+ var sz = this.r.m.index + this.r.m[0].length;
34
+ return this.r.s.substr(sz,this.r.s.length - sz);
35
+ }
36
+ ,matchedLeft: function() {
37
+ if(this.r.m == null) throw "No string matched";
38
+ return this.r.s.substr(0,this.r.m.index);
39
+ }
40
+ ,matched: function(n) {
41
+ return this.r.m != null && n >= 0 && n < this.r.m.length?this.r.m[n]:(function($this) {
42
+ var $r;
43
+ throw "EReg::matched";
44
+ return $r;
45
+ }(this));
46
+ }
47
+ ,match: function(s) {
48
+ if(this.r.global) this.r.lastIndex = 0;
49
+ this.r.m = this.r.exec(s);
50
+ this.r.s = s;
51
+ return this.r.m != null;
52
+ }
53
+ ,r: null
54
+ ,__class__: EReg
55
+ }
56
+ var Hash = $hxClasses["Hash"] = function() {
57
+ this.h = { };
58
+ };
59
+ Hash.__name__ = ["Hash"];
60
+ Hash.prototype = {
61
+ toString: function() {
62
+ var s = new StringBuf();
63
+ s.b += Std.string("{");
64
+ var it = this.keys();
65
+ while( it.hasNext() ) {
66
+ var i = it.next();
67
+ s.b += Std.string(i);
68
+ s.b += Std.string(" => ");
69
+ s.b += Std.string(Std.string(this.get(i)));
70
+ if(it.hasNext()) s.b += Std.string(", ");
71
+ }
72
+ s.b += Std.string("}");
73
+ return s.b;
74
+ }
75
+ ,iterator: function() {
76
+ return { ref : this.h, it : this.keys(), hasNext : function() {
77
+ return this.it.hasNext();
78
+ }, next : function() {
79
+ var i = this.it.next();
80
+ return this.ref["$" + i];
81
+ }};
82
+ }
83
+ ,keys: function() {
84
+ var a = [];
85
+ for( var key in this.h ) {
86
+ if(this.h.hasOwnProperty(key)) a.push(key.substr(1));
87
+ }
88
+ return HxOverrides.iter(a);
89
+ }
90
+ ,remove: function(key) {
91
+ key = "$" + key;
92
+ if(!this.h.hasOwnProperty(key)) return false;
93
+ delete(this.h[key]);
94
+ return true;
95
+ }
96
+ ,exists: function(key) {
97
+ return this.h.hasOwnProperty("$" + key);
98
+ }
99
+ ,get: function(key) {
100
+ return this.h["$" + key];
101
+ }
102
+ ,set: function(key,value) {
103
+ this.h["$" + key] = value;
104
+ }
105
+ ,h: null
106
+ ,__class__: Hash
107
+ }
108
+ var HxOverrides = $hxClasses["HxOverrides"] = function() { }
109
+ HxOverrides.__name__ = ["HxOverrides"];
110
+ HxOverrides.dateStr = function(date) {
111
+ var m = date.getMonth() + 1;
112
+ var d = date.getDate();
113
+ var h = date.getHours();
114
+ var mi = date.getMinutes();
115
+ var s = date.getSeconds();
116
+ return date.getFullYear() + "-" + (m < 10?"0" + m:"" + m) + "-" + (d < 10?"0" + d:"" + d) + " " + (h < 10?"0" + h:"" + h) + ":" + (mi < 10?"0" + mi:"" + mi) + ":" + (s < 10?"0" + s:"" + s);
117
+ }
118
+ HxOverrides.strDate = function(s) {
119
+ switch(s.length) {
120
+ case 8:
121
+ var k = s.split(":");
122
+ var d = new Date();
123
+ d.setTime(0);
124
+ d.setUTCHours(k[0]);
125
+ d.setUTCMinutes(k[1]);
126
+ d.setUTCSeconds(k[2]);
127
+ return d;
128
+ case 10:
129
+ var k = s.split("-");
130
+ return new Date(k[0],k[1] - 1,k[2],0,0,0);
131
+ case 19:
132
+ var k = s.split(" ");
133
+ var y = k[0].split("-");
134
+ var t = k[1].split(":");
135
+ return new Date(y[0],y[1] - 1,y[2],t[0],t[1],t[2]);
136
+ default:
137
+ throw "Invalid date format : " + s;
138
+ }
139
+ }
140
+ HxOverrides.cca = function(s,index) {
141
+ var x = s.charCodeAt(index);
142
+ if(x != x) return undefined;
143
+ return x;
144
+ }
145
+ HxOverrides.substr = function(s,pos,len) {
146
+ if(pos != null && pos != 0 && len != null && len < 0) return "";
147
+ if(len == null) len = s.length;
148
+ if(pos < 0) {
149
+ pos = s.length + pos;
150
+ if(pos < 0) pos = 0;
151
+ } else if(len < 0) len = s.length + len - pos;
152
+ return s.substr(pos,len);
153
+ }
154
+ HxOverrides.remove = function(a,obj) {
155
+ var i = 0;
156
+ var l = a.length;
157
+ while(i < l) {
158
+ if(a[i] == obj) {
159
+ a.splice(i,1);
160
+ return true;
161
+ }
162
+ i++;
163
+ }
164
+ return false;
165
+ }
166
+ HxOverrides.iter = function(a) {
167
+ return { cur : 0, arr : a, hasNext : function() {
168
+ return this.cur < this.arr.length;
169
+ }, next : function() {
170
+ return this.arr[this.cur++];
171
+ }};
172
+ }
173
+ var IntHash = $hxClasses["IntHash"] = function() {
174
+ this.h = { };
175
+ };
176
+ IntHash.__name__ = ["IntHash"];
177
+ IntHash.prototype = {
178
+ toString: function() {
179
+ var s = new StringBuf();
180
+ s.b += Std.string("{");
181
+ var it = this.keys();
182
+ while( it.hasNext() ) {
183
+ var i = it.next();
184
+ s.b += Std.string(i);
185
+ s.b += Std.string(" => ");
186
+ s.b += Std.string(Std.string(this.get(i)));
187
+ if(it.hasNext()) s.b += Std.string(", ");
188
+ }
189
+ s.b += Std.string("}");
190
+ return s.b;
191
+ }
192
+ ,iterator: function() {
193
+ return { ref : this.h, it : this.keys(), hasNext : function() {
194
+ return this.it.hasNext();
195
+ }, next : function() {
196
+ var i = this.it.next();
197
+ return this.ref[i];
198
+ }};
199
+ }
200
+ ,keys: function() {
201
+ var a = [];
202
+ for( var key in this.h ) {
203
+ if(this.h.hasOwnProperty(key)) a.push(key | 0);
204
+ }
205
+ return HxOverrides.iter(a);
206
+ }
207
+ ,remove: function(key) {
208
+ if(!this.h.hasOwnProperty(key)) return false;
209
+ delete(this.h[key]);
210
+ return true;
211
+ }
212
+ ,exists: function(key) {
213
+ return this.h.hasOwnProperty(key);
214
+ }
215
+ ,get: function(key) {
216
+ return this.h[key];
217
+ }
218
+ ,set: function(key,value) {
219
+ this.h[key] = value;
220
+ }
221
+ ,h: null
222
+ ,__class__: IntHash
223
+ }
224
+ var IntIter = $hxClasses["IntIter"] = function(min,max) {
225
+ this.min = min;
226
+ this.max = max;
227
+ };
228
+ IntIter.__name__ = ["IntIter"];
229
+ IntIter.prototype = {
230
+ next: function() {
231
+ return this.min++;
232
+ }
233
+ ,hasNext: function() {
234
+ return this.min < this.max;
235
+ }
236
+ ,max: null
237
+ ,min: null
238
+ ,__class__: IntIter
239
+ }
240
+ var List = $hxClasses["List"] = function() {
241
+ this.length = 0;
242
+ };
243
+ List.__name__ = ["List"];
244
+ List.prototype = {
245
+ map: function(f) {
246
+ var b = new List();
247
+ var l = this.h;
248
+ while(l != null) {
249
+ var v = l[0];
250
+ l = l[1];
251
+ b.add(f(v));
252
+ }
253
+ return b;
254
+ }
255
+ ,filter: function(f) {
256
+ var l2 = new List();
257
+ var l = this.h;
258
+ while(l != null) {
259
+ var v = l[0];
260
+ l = l[1];
261
+ if(f(v)) l2.add(v);
262
+ }
263
+ return l2;
264
+ }
265
+ ,join: function(sep) {
266
+ var s = new StringBuf();
267
+ var first = true;
268
+ var l = this.h;
269
+ while(l != null) {
270
+ if(first) first = false; else s.b += Std.string(sep);
271
+ s.b += Std.string(l[0]);
272
+ l = l[1];
273
+ }
274
+ return s.b;
275
+ }
276
+ ,toString: function() {
277
+ var s = new StringBuf();
278
+ var first = true;
279
+ var l = this.h;
280
+ s.b += Std.string("{");
281
+ while(l != null) {
282
+ if(first) first = false; else s.b += Std.string(", ");
283
+ s.b += Std.string(Std.string(l[0]));
284
+ l = l[1];
285
+ }
286
+ s.b += Std.string("}");
287
+ return s.b;
288
+ }
289
+ ,iterator: function() {
290
+ return { h : this.h, hasNext : function() {
291
+ return this.h != null;
292
+ }, next : function() {
293
+ if(this.h == null) return null;
294
+ var x = this.h[0];
295
+ this.h = this.h[1];
296
+ return x;
297
+ }};
298
+ }
299
+ ,remove: function(v) {
300
+ var prev = null;
301
+ var l = this.h;
302
+ while(l != null) {
303
+ if(l[0] == v) {
304
+ if(prev == null) this.h = l[1]; else prev[1] = l[1];
305
+ if(this.q == l) this.q = prev;
306
+ this.length--;
307
+ return true;
308
+ }
309
+ prev = l;
310
+ l = l[1];
311
+ }
312
+ return false;
313
+ }
314
+ ,clear: function() {
315
+ this.h = null;
316
+ this.q = null;
317
+ this.length = 0;
318
+ }
319
+ ,isEmpty: function() {
320
+ return this.h == null;
321
+ }
322
+ ,pop: function() {
323
+ if(this.h == null) return null;
324
+ var x = this.h[0];
325
+ this.h = this.h[1];
326
+ if(this.h == null) this.q = null;
327
+ this.length--;
328
+ return x;
329
+ }
330
+ ,last: function() {
331
+ return this.q == null?null:this.q[0];
332
+ }
333
+ ,first: function() {
334
+ return this.h == null?null:this.h[0];
335
+ }
336
+ ,push: function(item) {
337
+ var x = [item,this.h];
338
+ this.h = x;
339
+ if(this.q == null) this.q = x;
340
+ this.length++;
341
+ }
342
+ ,add: function(item) {
343
+ var x = [item];
344
+ if(this.h == null) this.h = x; else this.q[1] = x;
345
+ this.q = x;
346
+ this.length++;
347
+ }
348
+ ,length: null
349
+ ,q: null
350
+ ,h: null
351
+ ,__class__: List
352
+ }
353
+ var Reflect = $hxClasses["Reflect"] = function() { }
354
+ Reflect.__name__ = ["Reflect"];
355
+ Reflect.hasField = function(o,field) {
356
+ return Object.prototype.hasOwnProperty.call(o,field);
357
+ }
358
+ Reflect.field = function(o,field) {
359
+ var v = null;
360
+ try {
361
+ v = o[field];
362
+ } catch( e ) {
363
+ }
364
+ return v;
365
+ }
366
+ Reflect.setField = function(o,field,value) {
367
+ o[field] = value;
368
+ }
369
+ Reflect.getProperty = function(o,field) {
370
+ var tmp;
371
+ return o == null?null:o.__properties__ && (tmp = o.__properties__["get_" + field])?o[tmp]():o[field];
372
+ }
373
+ Reflect.setProperty = function(o,field,value) {
374
+ var tmp;
375
+ if(o.__properties__ && (tmp = o.__properties__["set_" + field])) o[tmp](value); else o[field] = value;
376
+ }
377
+ Reflect.callMethod = function(o,func,args) {
378
+ return func.apply(o,args);
379
+ }
380
+ Reflect.fields = function(o) {
381
+ var a = [];
382
+ if(o != null) {
383
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
384
+ for( var f in o ) {
385
+ if(hasOwnProperty.call(o,f)) a.push(f);
386
+ }
387
+ }
388
+ return a;
389
+ }
390
+ Reflect.isFunction = function(f) {
391
+ return typeof(f) == "function" && !(f.__name__ || f.__ename__);
392
+ }
393
+ Reflect.compare = function(a,b) {
394
+ return a == b?0:a > b?1:-1;
395
+ }
396
+ Reflect.compareMethods = function(f1,f2) {
397
+ if(f1 == f2) return true;
398
+ if(!Reflect.isFunction(f1) || !Reflect.isFunction(f2)) return false;
399
+ return f1.scope == f2.scope && f1.method == f2.method && f1.method != null;
400
+ }
401
+ Reflect.isObject = function(v) {
402
+ if(v == null) return false;
403
+ var t = typeof(v);
404
+ return t == "string" || t == "object" && !v.__enum__ || t == "function" && (v.__name__ || v.__ename__);
405
+ }
406
+ Reflect.deleteField = function(o,f) {
407
+ if(!Reflect.hasField(o,f)) return false;
408
+ delete(o[f]);
409
+ return true;
410
+ }
411
+ Reflect.copy = function(o) {
412
+ var o2 = { };
413
+ var _g = 0, _g1 = Reflect.fields(o);
414
+ while(_g < _g1.length) {
415
+ var f = _g1[_g];
416
+ ++_g;
417
+ o2[f] = Reflect.field(o,f);
418
+ }
419
+ return o2;
420
+ }
421
+ Reflect.makeVarArgs = function(f) {
422
+ return function() {
423
+ var a = Array.prototype.slice.call(arguments);
424
+ return f(a);
425
+ };
426
+ }
427
+ var Std = $hxClasses["Std"] = function() { }
428
+ Std.__name__ = ["Std"];
429
+ Std["is"] = function(v,t) {
430
+ return js.Boot.__instanceof(v,t);
431
+ }
432
+ Std.string = function(s) {
433
+ return js.Boot.__string_rec(s,"");
434
+ }
435
+ Std["int"] = function(x) {
436
+ return x | 0;
437
+ }
438
+ Std.parseInt = function(x) {
439
+ var v = parseInt(x,10);
440
+ if(v == 0 && (HxOverrides.cca(x,1) == 120 || HxOverrides.cca(x,1) == 88)) v = parseInt(x);
441
+ if(isNaN(v)) return null;
442
+ return v;
443
+ }
444
+ Std.parseFloat = function(x) {
445
+ return parseFloat(x);
446
+ }
447
+ Std.random = function(x) {
448
+ return Math.floor(Math.random() * x);
449
+ }
450
+ var StringBuf = $hxClasses["StringBuf"] = function() {
451
+ this.b = "";
452
+ };
453
+ StringBuf.__name__ = ["StringBuf"];
454
+ StringBuf.prototype = {
455
+ toString: function() {
456
+ return this.b;
457
+ }
458
+ ,addSub: function(s,pos,len) {
459
+ this.b += HxOverrides.substr(s,pos,len);
460
+ }
461
+ ,addChar: function(c) {
462
+ this.b += String.fromCharCode(c);
463
+ }
464
+ ,add: function(x) {
465
+ this.b += Std.string(x);
466
+ }
467
+ ,b: null
468
+ ,__class__: StringBuf
469
+ }
470
+ var StringTools = $hxClasses["StringTools"] = function() { }
471
+ StringTools.__name__ = ["StringTools"];
472
+ StringTools.urlEncode = function(s) {
473
+ return encodeURIComponent(s);
474
+ }
475
+ StringTools.urlDecode = function(s) {
476
+ return decodeURIComponent(s.split("+").join(" "));
477
+ }
478
+ StringTools.htmlEscape = function(s) {
479
+ return s.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
480
+ }
481
+ StringTools.htmlUnescape = function(s) {
482
+ return s.split("&gt;").join(">").split("&lt;").join("<").split("&amp;").join("&");
483
+ }
484
+ StringTools.startsWith = function(s,start) {
485
+ return s.length >= start.length && HxOverrides.substr(s,0,start.length) == start;
486
+ }
487
+ StringTools.endsWith = function(s,end) {
488
+ var elen = end.length;
489
+ var slen = s.length;
490
+ return slen >= elen && HxOverrides.substr(s,slen - elen,elen) == end;
491
+ }
492
+ StringTools.isSpace = function(s,pos) {
493
+ var c = HxOverrides.cca(s,pos);
494
+ return c >= 9 && c <= 13 || c == 32;
495
+ }
496
+ StringTools.ltrim = function(s) {
497
+ var l = s.length;
498
+ var r = 0;
499
+ while(r < l && StringTools.isSpace(s,r)) r++;
500
+ if(r > 0) return HxOverrides.substr(s,r,l - r); else return s;
501
+ }
502
+ StringTools.rtrim = function(s) {
503
+ var l = s.length;
504
+ var r = 0;
505
+ while(r < l && StringTools.isSpace(s,l - r - 1)) r++;
506
+ if(r > 0) return HxOverrides.substr(s,0,l - r); else return s;
507
+ }
508
+ StringTools.trim = function(s) {
509
+ return StringTools.ltrim(StringTools.rtrim(s));
510
+ }
511
+ StringTools.rpad = function(s,c,l) {
512
+ var sl = s.length;
513
+ var cl = c.length;
514
+ while(sl < l) if(l - sl < cl) {
515
+ s += HxOverrides.substr(c,0,l - sl);
516
+ sl = l;
517
+ } else {
518
+ s += c;
519
+ sl += cl;
520
+ }
521
+ return s;
522
+ }
523
+ StringTools.lpad = function(s,c,l) {
524
+ var ns = "";
525
+ var sl = s.length;
526
+ if(sl >= l) return s;
527
+ var cl = c.length;
528
+ while(sl < l) if(l - sl < cl) {
529
+ ns += HxOverrides.substr(c,0,l - sl);
530
+ sl = l;
531
+ } else {
532
+ ns += c;
533
+ sl += cl;
534
+ }
535
+ return ns + s;
536
+ }
537
+ StringTools.replace = function(s,sub,by) {
538
+ return s.split(sub).join(by);
539
+ }
540
+ StringTools.hex = function(n,digits) {
541
+ var s = "";
542
+ var hexChars = "0123456789ABCDEF";
543
+ do {
544
+ s = hexChars.charAt(n & 15) + s;
545
+ n >>>= 4;
546
+ } while(n > 0);
547
+ if(digits != null) while(s.length < digits) s = "0" + s;
548
+ return s;
549
+ }
550
+ StringTools.fastCodeAt = function(s,index) {
551
+ return s.charCodeAt(index);
552
+ }
553
+ StringTools.isEOF = function(c) {
554
+ return c != c;
555
+ }
556
+ var ValueType = $hxClasses["ValueType"] = { __ename__ : ["ValueType"], __constructs__ : ["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"] }
557
+ ValueType.TNull = ["TNull",0];
558
+ ValueType.TNull.toString = $estr;
559
+ ValueType.TNull.__enum__ = ValueType;
560
+ ValueType.TInt = ["TInt",1];
561
+ ValueType.TInt.toString = $estr;
562
+ ValueType.TInt.__enum__ = ValueType;
563
+ ValueType.TFloat = ["TFloat",2];
564
+ ValueType.TFloat.toString = $estr;
565
+ ValueType.TFloat.__enum__ = ValueType;
566
+ ValueType.TBool = ["TBool",3];
567
+ ValueType.TBool.toString = $estr;
568
+ ValueType.TBool.__enum__ = ValueType;
569
+ ValueType.TObject = ["TObject",4];
570
+ ValueType.TObject.toString = $estr;
571
+ ValueType.TObject.__enum__ = ValueType;
572
+ ValueType.TFunction = ["TFunction",5];
573
+ ValueType.TFunction.toString = $estr;
574
+ ValueType.TFunction.__enum__ = ValueType;
575
+ ValueType.TClass = function(c) { var $x = ["TClass",6,c]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
576
+ ValueType.TEnum = function(e) { var $x = ["TEnum",7,e]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
577
+ ValueType.TUnknown = ["TUnknown",8];
578
+ ValueType.TUnknown.toString = $estr;
579
+ ValueType.TUnknown.__enum__ = ValueType;
580
+ var Type = $hxClasses["Type"] = function() { }
581
+ Type.__name__ = ["Type"];
582
+ Type.getClass = function(o) {
583
+ if(o == null) return null;
584
+ return o.__class__;
585
+ }
586
+ Type.getEnum = function(o) {
587
+ if(o == null) return null;
588
+ return o.__enum__;
589
+ }
590
+ Type.getSuperClass = function(c) {
591
+ return c.__super__;
592
+ }
593
+ Type.getClassName = function(c) {
594
+ var a = c.__name__;
595
+ return a.join(".");
596
+ }
597
+ Type.getEnumName = function(e) {
598
+ var a = e.__ename__;
599
+ return a.join(".");
600
+ }
601
+ Type.resolveClass = function(name) {
602
+ var cl = $hxClasses[name];
603
+ if(cl == null || !cl.__name__) return null;
604
+ return cl;
605
+ }
606
+ Type.resolveEnum = function(name) {
607
+ var e = $hxClasses[name];
608
+ if(e == null || !e.__ename__) return null;
609
+ return e;
610
+ }
611
+ Type.createInstance = function(cl,args) {
612
+ switch(args.length) {
613
+ case 0:
614
+ return new cl();
615
+ case 1:
616
+ return new cl(args[0]);
617
+ case 2:
618
+ return new cl(args[0],args[1]);
619
+ case 3:
620
+ return new cl(args[0],args[1],args[2]);
621
+ case 4:
622
+ return new cl(args[0],args[1],args[2],args[3]);
623
+ case 5:
624
+ return new cl(args[0],args[1],args[2],args[3],args[4]);
625
+ case 6:
626
+ return new cl(args[0],args[1],args[2],args[3],args[4],args[5]);
627
+ case 7:
628
+ return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);
629
+ case 8:
630
+ return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]);
631
+ default:
632
+ throw "Too many arguments";
633
+ }
634
+ return null;
635
+ }
636
+ Type.createEmptyInstance = function(cl) {
637
+ function empty() {}; empty.prototype = cl.prototype;
638
+ return new empty();
639
+ }
640
+ Type.createEnum = function(e,constr,params) {
641
+ var f = Reflect.field(e,constr);
642
+ if(f == null) throw "No such constructor " + constr;
643
+ if(Reflect.isFunction(f)) {
644
+ if(params == null) throw "Constructor " + constr + " need parameters";
645
+ return f.apply(e,params);
646
+ }
647
+ if(params != null && params.length != 0) throw "Constructor " + constr + " does not need parameters";
648
+ return f;
649
+ }
650
+ Type.createEnumIndex = function(e,index,params) {
651
+ var c = e.__constructs__[index];
652
+ if(c == null) throw index + " is not a valid enum constructor index";
653
+ return Type.createEnum(e,c,params);
654
+ }
655
+ Type.getInstanceFields = function(c) {
656
+ var a = [];
657
+ for(var i in c.prototype) a.push(i);
658
+ HxOverrides.remove(a,"__class__");
659
+ HxOverrides.remove(a,"__properties__");
660
+ return a;
661
+ }
662
+ Type.getClassFields = function(c) {
663
+ var a = Reflect.fields(c);
664
+ HxOverrides.remove(a,"__name__");
665
+ HxOverrides.remove(a,"__interfaces__");
666
+ HxOverrides.remove(a,"__properties__");
667
+ HxOverrides.remove(a,"__super__");
668
+ HxOverrides.remove(a,"prototype");
669
+ return a;
670
+ }
671
+ Type.getEnumConstructs = function(e) {
672
+ var a = e.__constructs__;
673
+ return a.slice();
674
+ }
675
+ Type["typeof"] = function(v) {
676
+ switch(typeof(v)) {
677
+ case "boolean":
678
+ return ValueType.TBool;
679
+ case "string":
680
+ return ValueType.TClass(String);
681
+ case "number":
682
+ if(Math.ceil(v) == v % 2147483648.0) return ValueType.TInt;
683
+ return ValueType.TFloat;
684
+ case "object":
685
+ if(v == null) return ValueType.TNull;
686
+ var e = v.__enum__;
687
+ if(e != null) return ValueType.TEnum(e);
688
+ var c = v.__class__;
689
+ if(c != null) return ValueType.TClass(c);
690
+ return ValueType.TObject;
691
+ case "function":
692
+ if(v.__name__ || v.__ename__) return ValueType.TObject;
693
+ return ValueType.TFunction;
694
+ case "undefined":
695
+ return ValueType.TNull;
696
+ default:
697
+ return ValueType.TUnknown;
698
+ }
699
+ }
700
+ Type.enumEq = function(a,b) {
701
+ if(a == b) return true;
702
+ try {
703
+ if(a[0] != b[0]) return false;
704
+ var _g1 = 2, _g = a.length;
705
+ while(_g1 < _g) {
706
+ var i = _g1++;
707
+ if(!Type.enumEq(a[i],b[i])) return false;
708
+ }
709
+ var e = a.__enum__;
710
+ if(e != b.__enum__ || e == null) return false;
711
+ } catch( e ) {
712
+ return false;
713
+ }
714
+ return true;
715
+ }
716
+ Type.enumConstructor = function(e) {
717
+ return e[0];
718
+ }
719
+ Type.enumParameters = function(e) {
720
+ return e.slice(2);
721
+ }
722
+ Type.enumIndex = function(e) {
723
+ return e[1];
724
+ }
725
+ Type.allEnums = function(e) {
726
+ var all = [];
727
+ var cst = e.__constructs__;
728
+ var _g = 0;
729
+ while(_g < cst.length) {
730
+ var c = cst[_g];
731
+ ++_g;
732
+ var v = Reflect.field(e,c);
733
+ if(!Reflect.isFunction(v)) all.push(v);
734
+ }
735
+ return all;
736
+ }
737
+ var com = com || {}
738
+ if(!com.wiris) com.wiris = {}
739
+ if(!com.wiris.js) com.wiris.js = {}
740
+ com.wiris.js.JsBrowserData = $hxClasses["com.wiris.js.JsBrowserData"] = function() {
741
+ };
742
+ com.wiris.js.JsBrowserData.__name__ = ["com","wiris","js","JsBrowserData"];
743
+ com.wiris.js.JsBrowserData.prototype = {
744
+ identity: null
745
+ ,versionSearch: null
746
+ ,subString: null
747
+ ,prop: null
748
+ ,string: null
749
+ ,__class__: com.wiris.js.JsBrowserData
750
+ }
751
+ com.wiris.js.JsOSData = $hxClasses["com.wiris.js.JsOSData"] = function() {
752
+ };
753
+ com.wiris.js.JsOSData.__name__ = ["com","wiris","js","JsOSData"];
754
+ com.wiris.js.JsOSData.prototype = {
755
+ identity: null
756
+ ,subString: null
757
+ ,string: null
758
+ ,__class__: com.wiris.js.JsOSData
759
+ }
760
+ com.wiris.js.JsBrowser = $hxClasses["com.wiris.js.JsBrowser"] = function() {
761
+ this.dataBrowser = new Array();
762
+ this.addBrowser("navigator.userAgent",null,"Edge",null,"Edge");
763
+ this.addBrowser("navigator.userAgent",null,"Chrome",null,"Chrome");
764
+ this.addBrowser("navigator.userAgent",null,"OmniWeb",null,"OmniWeb");
765
+ this.addBrowser("navigator.vendor",null,"Apple","Version","Safari");
766
+ this.addBrowser(null,"window.opera",null,"Version","Opera");
767
+ this.addBrowser("navigator.vendor",null,"iCab",null,"iCab");
768
+ this.addBrowser("navigator.vendor",null,"KDE",null,"Konkeror");
769
+ this.addBrowser("navigator.userAgent",null,"Firefox",null,"Firefox");
770
+ this.addBrowser("navigator.vendor",null,"Camino",null,"Camino");
771
+ this.addBrowser("navigator.userAgent",null,"Netscape",null,"Netscape");
772
+ this.addBrowser("navigator.userAgent",null,"MSIE","MSIE","Explorer");
773
+ this.addBrowser("navigator.userAgent",null,"Trident","rv","Explorer");
774
+ this.addBrowser("navigator.userAgent",null,"Gecko","rv","Mozilla");
775
+ this.addBrowser("navigator.userAgent",null,"Mozilla","Mozilla","Netscape");
776
+ this.dataOS = new Array();
777
+ this.addOS("navigator.platform","Win","Windows");
778
+ this.addOS("navigator.platform","Mac","Mac");
779
+ this.addOS("navigator.userAgent","iPhone","iOS");
780
+ this.addOS("navigator.userAgent","iPad","iOS");
781
+ this.addOS("navigator.userAgent","Android","Android");
782
+ this.addOS("navigator.platform","Linux","Linux");
783
+ this.setBrowser();
784
+ this.setOS();
785
+ this.setTouchable();
786
+ };
787
+ com.wiris.js.JsBrowser.__name__ = ["com","wiris","js","JsBrowser"];
788
+ com.wiris.js.JsBrowser.prototype = {
789
+ isTouchable: function() {
790
+ return this.touchable;
791
+ }
792
+ ,isAndroid: function() {
793
+ return this.os == "Android";
794
+ }
795
+ ,isMac: function() {
796
+ return this.os == "Mac";
797
+ }
798
+ ,isIOS: function() {
799
+ return this.os == "iOS";
800
+ }
801
+ ,isFF: function() {
802
+ return this.browser == "Firefox";
803
+ }
804
+ ,isSafari: function() {
805
+ return this.browser == "Safari";
806
+ }
807
+ ,isChrome: function() {
808
+ return this.browser == "Chrome";
809
+ }
810
+ ,isEdge: function() {
811
+ return this.browser == "Edge";
812
+ }
813
+ ,isIE: function() {
814
+ return this.browser == "Explorer";
815
+ }
816
+ ,getVersion: function() {
817
+ return this.ver;
818
+ }
819
+ ,getOS: function() {
820
+ return this.os;
821
+ }
822
+ ,getBrowser: function() {
823
+ return this.browser;
824
+ }
825
+ ,searchVersion: function(prop,search) {
826
+ var str = js.Boot.__cast(eval(prop) , String);
827
+ var index = str.indexOf(search);
828
+ if(index == -1) return null;
829
+ return "" + Std.parseFloat(HxOverrides.substr(str,index + search.length + 1,null));
830
+ }
831
+ ,setTouchable: function() {
832
+ if(this.isIOS() || this.isAndroid()) {
833
+ this.touchable = true;
834
+ return;
835
+ }
836
+ this.touchable = false;
837
+ }
838
+ ,setOS: function() {
839
+ var i = HxOverrides.iter(this.dataOS);
840
+ while(i.hasNext()) {
841
+ var s = i.next();
842
+ var str = js.Boot.__cast(eval(s.string) , String);
843
+ if(str.indexOf(s.subString) != -1) {
844
+ this.os = s.identity;
845
+ return;
846
+ }
847
+ }
848
+ }
849
+ ,setBrowser: function() {
850
+ var i = HxOverrides.iter(this.dataBrowser);
851
+ while(i.hasNext()) {
852
+ var b = i.next();
853
+ if(b.string != null) {
854
+ var obj = eval(b.string);
855
+ if(obj != null) {
856
+ var str = js.Boot.__cast(obj , String);
857
+ if(str.indexOf(b.subString) != -1) {
858
+ this.browser = b.identity;
859
+ this.ver = this.searchVersion("navigator.userAgent",b.versionSearch);
860
+ if(this.ver == null) this.ver = this.searchVersion("navigator.appVersion",b.versionSearch);
861
+ return;
862
+ }
863
+ }
864
+ }
865
+ }
866
+ }
867
+ ,addOS: function(string,subString,identity) {
868
+ var s = new com.wiris.js.JsOSData();
869
+ s.string = string;
870
+ s.subString = subString;
871
+ s.identity = identity;
872
+ this.dataOS.push(s);
873
+ }
874
+ ,addBrowser: function(string,prop,subString,versionSearch,identity) {
875
+ var b = new com.wiris.js.JsBrowserData();
876
+ b.string = string;
877
+ b.prop = prop;
878
+ b.subString = subString;
879
+ b.versionSearch = versionSearch != null?versionSearch:identity;
880
+ b.identity = identity;
881
+ this.dataBrowser.push(b);
882
+ }
883
+ ,touchable: null
884
+ ,os: null
885
+ ,ver: null
886
+ ,browser: null
887
+ ,dataOS: null
888
+ ,dataBrowser: null
889
+ ,__class__: com.wiris.js.JsBrowser
890
+ }
891
+ com.wiris.js.JsPluginListener = $hxClasses["com.wiris.js.JsPluginListener"] = function() { }
892
+ com.wiris.js.JsPluginListener.__name__ = ["com","wiris","js","JsPluginListener"];
893
+ com.wiris.js.JsPluginListener.prototype = {
894
+ afterParseLatex: null
895
+ ,afterParse: null
896
+ ,__class__: com.wiris.js.JsPluginListener
897
+ }
898
+ com.wiris.js.JsPluginTools = $hxClasses["com.wiris.js.JsPluginTools"] = function() {
899
+ this.tryReady();
900
+ };
901
+ com.wiris.js.JsPluginTools.__name__ = ["com","wiris","js","JsPluginTools"];
902
+ com.wiris.js.JsPluginTools.instance = null;
903
+ com.wiris.js.JsPluginTools.main = function() {
904
+ var ev;
905
+ ev = com.wiris.js.JsPluginTools.getInstance();
906
+ haxe.Timer.delay($bind(ev,ev.tryReady),100);
907
+ }
908
+ com.wiris.js.JsPluginTools.getInstance = function() {
909
+ if(com.wiris.js.JsPluginTools.instance == null) com.wiris.js.JsPluginTools.instance = new com.wiris.js.JsPluginTools();
910
+ return com.wiris.js.JsPluginTools.instance;
911
+ }
912
+ com.wiris.js.JsPluginTools.bypassEncapsulation = function() {
913
+ if(window.com == null) window.com = { };
914
+ if(window.com.wiris == null) window.com.wiris = { };
915
+ if(window.com.wiris.js == null) window.com.wiris.js = { };
916
+ if(window.com.wiris.js.JsPluginTools == null) window.com.wiris.js.JsPluginTools = com.wiris.js.JsPluginTools.getInstance();
917
+ }
918
+ com.wiris.js.JsPluginTools.prototype = {
919
+ md5encode: function(content) {
920
+ return haxe.Md5.encode(content);
921
+ }
922
+ ,doLoad: function() {
923
+ this.ready = true;
924
+ com.wiris.js.JsPluginTools.instance = this;
925
+ com.wiris.js.JsPluginTools.bypassEncapsulation();
926
+ }
927
+ ,tryReady: function() {
928
+ this.ready = false;
929
+ if(js.Lib.document.readyState) {
930
+ this.doLoad();
931
+ this.ready = true;
932
+ }
933
+ if(!this.ready) haxe.Timer.delay($bind(this,this.tryReady),100);
934
+ }
935
+ ,ready: null
936
+ ,__class__: com.wiris.js.JsPluginTools
937
+ }
938
+ com.wiris.js.JsPluginViewer = $hxClasses["com.wiris.js.JsPluginViewer"] = function() {
939
+ this._wrs_conf_imageFormat = null;
940
+ this.javaServicePath = "/pluginwiris_engine/app";
941
+ this.wiriseditormathmlattribute = null;
942
+ this.performanceenabled = null;
943
+ this.eventListenersArray = [];
944
+ this.callsShowImageNumber = 0;
945
+ this.callsLatexToMathml = 0;
946
+ this.params = new Hash();
947
+ this.mode = com.wiris.js.JsPluginViewer.USE_CREATE_IMAGE;
948
+ this.zoom = 1;
949
+ this.viewer = "";
950
+ this.lang = "inherit";
951
+ this.ready = false;
952
+ this.extension = "@param.configuration.script.extension@";
953
+ this.localpath = "@param.configuration.script.local.path@";
954
+ this.absoluteURL = "@param.configuration.script.base.path@";
955
+ if(this.extension.indexOf("@") >= 0) this.extension = "";
956
+ if(this.localpath.indexOf("@") >= 0) this.localpath = "/app";
957
+ if(this.absoluteURL.indexOf("@") >= 0) this.absoluteURL = "/java-java-context-root";
958
+ };
959
+ com.wiris.js.JsPluginViewer.__name__ = ["com","wiris","js","JsPluginViewer"];
960
+ com.wiris.js.JsPluginViewer.instance = null;
961
+ com.wiris.js.JsPluginViewer.main = function() {
962
+ var ev;
963
+ ev = com.wiris.js.JsPluginViewer.getInstance();
964
+ haxe.Timer.delay($bind(ev,ev.tryReady),100);
965
+ }
966
+ com.wiris.js.JsPluginViewer.getInstance = function() {
967
+ if(com.wiris.js.JsPluginViewer.instance == null) com.wiris.js.JsPluginViewer.instance = new com.wiris.js.JsPluginViewer();
968
+ return com.wiris.js.JsPluginViewer.instance;
969
+ }
970
+ com.wiris.js.JsPluginViewer.bypassEncapsulation = function() {
971
+ if(window.com == null) window.com = { };
972
+ if(window.com.wiris == null) window.com.wiris = { };
973
+ if(window.com.wiris.js == null) window.com.wiris.js = { };
974
+ if(window.com.wiris.js.JsPluginViewer == null) window.com.wiris.js.JsPluginViewer = com.wiris.js.JsPluginViewer.getInstance();
975
+ }
976
+ com.wiris.js.JsPluginViewer.prototype = {
977
+ removeViewerListener: function(listener) {
978
+ while(HxOverrides.remove(this.eventListenersArray,listener)) {
979
+ }
980
+ }
981
+ ,addViewerListener: function(listener) {
982
+ this.eventListenersArray.push(listener);
983
+ }
984
+ ,getBaseURL: function() {
985
+ return this.baseURL;
986
+ }
987
+ ,queryToParams: function(query) {
988
+ var ss = query.split("&");
989
+ var h = new Hash();
990
+ var _g = 0;
991
+ while(_g < ss.length) {
992
+ var s = ss[_g];
993
+ ++_g;
994
+ var kv = s.split("=");
995
+ if(kv.length > 1) h.set(kv[0],StringTools.urlDecode(kv[1]));
996
+ }
997
+ return h;
998
+ }
999
+ ,isPerformanceEnabled: function() {
1000
+ var data;
1001
+ data = this.callGetVariableKeys("wirispluginperformance");
1002
+ if(haxe.Json.parse(data).status != "ok") return false; else return haxe.Json.parse(data).result.wirispluginperformance == "true"?true:false;
1003
+ }
1004
+ ,callGetVariableKeys: function(variableKeys) {
1005
+ var con;
1006
+ var data;
1007
+ var url;
1008
+ url = (this.absoluteURL.length > 0?this.absoluteURL:this.baseURL + this.localpath) + "/configurationjson" + this.extension;
1009
+ con = new js.XMLHttpRequest();
1010
+ data = "?variablekeys=" + variableKeys;
1011
+ con.open("GET",url + data,false);
1012
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1013
+ con.send(null);
1014
+ return con.responseText;
1015
+ }
1016
+ ,callService: function(mml,servicename) {
1017
+ var con;
1018
+ var height = 0;
1019
+ var width = 0;
1020
+ var baseline = 0;
1021
+ var text = null;
1022
+ var data;
1023
+ var url;
1024
+ con = new js.XMLHttpRequest();
1025
+ url = (this.absoluteURL.length > 0?this.absoluteURL:this.baseURL + this.localpath) + "/service" + this.extension;
1026
+ data = "service=" + servicename;
1027
+ data += "&metrics=true&centerbaseline=false&mml=" + StringTools.urlEncode(mml);
1028
+ data += "&lang=" + this.lang;
1029
+ if(this.zoom != 1) data += "&zoom=" + this.zoom;
1030
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Calling: " + url,{ fileName : "JsPluginViewer.hx", lineNumber : 794, className : "com.wiris.js.JsPluginViewer", methodName : "callService"});
1031
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("POST:" + data,{ fileName : "JsPluginViewer.hx", lineNumber : 796, className : "com.wiris.js.JsPluginViewer", methodName : "callService"});
1032
+ con.open("POST",url,false);
1033
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1034
+ con.send(data);
1035
+ return con.responseText;
1036
+ }
1037
+ ,latexToMathml: function(latex,nodeAfter,asynchronously,callbackFunc) {
1038
+ var _g = this;
1039
+ var con = new js.XMLHttpRequest();
1040
+ var url = (this.absoluteURL.length > 0?this.absoluteURL:this.baseURL + this.localpath) + "/service" + this.extension;
1041
+ var data = "service=latex2mathml";
1042
+ data += "&latex=" + StringTools.urlEncode(latex);
1043
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Calling: " + url,{ fileName : "JsPluginViewer.hx", lineNumber : 728, className : "com.wiris.js.JsPluginViewer", methodName : "latexToMathml"});
1044
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("POST:" + data,{ fileName : "JsPluginViewer.hx", lineNumber : 730, className : "com.wiris.js.JsPluginViewer", methodName : "latexToMathml"});
1045
+ var onloadFunc = function(e) {
1046
+ try {
1047
+ var mathml = haxe.Json.parse(con.responseText).result.text;
1048
+ var newMathml = js.Lib.document.createElement("math");
1049
+ var mathmlSpan = js.Lib.document.createElement("span");
1050
+ mathmlSpan.appendChild(newMathml);
1051
+ e.target.wiris.nodeAfter.parentElement.insertBefore(mathmlSpan,e.target.wiris.nodeAfter);
1052
+ newMathml.outerHTML = mathml;
1053
+ if(--_g.callsLatexToMathml == 0) {
1054
+ var _g2 = 0, _g1 = _g.eventListenersArray.length;
1055
+ while(_g2 < _g1) {
1056
+ var i = _g2++;
1057
+ try {
1058
+ _g.eventListenersArray[i].afterParseLatex();
1059
+ } catch( e1 ) {
1060
+ }
1061
+ }
1062
+ }
1063
+ e.target.wiris.callbackFunc(mathmlSpan);
1064
+ _g.parseElement(mathmlSpan,asynchronously);
1065
+ } catch( e1 ) {
1066
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("LatexToMathml call failed!",{ fileName : "JsPluginViewer.hx", lineNumber : 756, className : "com.wiris.js.JsPluginViewer", methodName : "latexToMathml"});
1067
+ }
1068
+ };
1069
+ con.open("POST",url,asynchronously);
1070
+ var newDynamic = { };
1071
+ con.wiris = newDynamic;
1072
+ con.wiris.nodeAfter = nodeAfter;
1073
+ con.wiris.callbackFunc = callbackFunc;
1074
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1075
+ con.onload = onloadFunc;
1076
+ con.onerror = function(e) {
1077
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("LatexToMathml call failed!",{ fileName : "JsPluginViewer.hx", lineNumber : 769, className : "com.wiris.js.JsPluginViewer", methodName : "latexToMathml"});
1078
+ };
1079
+ con.send(data);
1080
+ }
1081
+ ,callShowimage: function(container,mml,img,asynchronously,callbackFunc) {
1082
+ var _g = this;
1083
+ var con;
1084
+ var height = 0;
1085
+ var width = 0;
1086
+ var baseline = 0;
1087
+ var text = null;
1088
+ var data;
1089
+ var url;
1090
+ con = new js.XMLHttpRequest();
1091
+ var mmlEntities;
1092
+ mmlEntities = "";
1093
+ var _g1 = 0, _g2 = mml.length;
1094
+ while(_g1 < _g2) {
1095
+ var i = _g1++;
1096
+ var character;
1097
+ character = mml.charAt(i);
1098
+ if(HxOverrides.cca(mml,i) > 128) mmlEntities += "&#" + HxOverrides.cca(mml,i) + ";"; else mmlEntities += character;
1099
+ }
1100
+ var md5 = haxe.Md5.encode("centerbaseline=false\nmml=" + mmlEntities + "\n");
1101
+ url = (this.absoluteURL.length > 0?this.absoluteURL:this.baseURL + this.localpath) + "/showimage" + this.extension;
1102
+ if(new com.wiris.js.JsBrowser().isIE()) data = "?formula=" + md5 + "&lang=" + this.lang + "&useragent=IE"; else data = "?formula=" + md5 + "&lang=" + this.lang;
1103
+ data += "&version=" + com.wiris.js.JsPluginViewer.VERSION;
1104
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Calling: " + url,{ fileName : "JsPluginViewer.hx", lineNumber : 606, className : "com.wiris.js.JsPluginViewer", methodName : "callShowimage"});
1105
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("GET:" + data,{ fileName : "JsPluginViewer.hx", lineNumber : 608, className : "com.wiris.js.JsPluginViewer", methodName : "callShowimage"});
1106
+ con.open("GET",url + data,asynchronously);
1107
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1108
+ var onloadFunc = function(e) {
1109
+ var getResultFunc = function(e1) {
1110
+ var result = { };
1111
+ try {
1112
+ result = haxe.Json.parse(con.responseText).result;
1113
+ } catch( e2 ) {
1114
+ console.warn("Formula is malformed and it can't be rendered");
1115
+ return;
1116
+ }
1117
+ e1.target.wiris.img.src = result.format == "svg"?"data:image/svg+xml;charset=utf8,":"data:image/png;base64,";
1118
+ e1.target.wiris.img.src = e1.target.wiris.img.src + StringTools.urlEncode(result.content);
1119
+ var dpi = result.dpi == null?96:result.dpi;
1120
+ var scaleDpi = _g.zoom * (96 / dpi);
1121
+ var scaledHeight = result.height * scaleDpi | 0;
1122
+ var scaledWitdh = result.width * scaleDpi | 0;
1123
+ var scaledBaseLine = result.baseline * scaleDpi | 0;
1124
+ if(result.height > 0) {
1125
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(_g.calculateAlignment(height,baseline),{ fileName : "JsPluginViewer.hx", lineNumber : 632, className : "com.wiris.js.JsPluginViewer", methodName : "callShowimage"});
1126
+ e1.target.wiris.img.style.verticalAlign = "-" + _g.calculateAlignment(scaledHeight,scaledBaseLine) + "px";
1127
+ e1.target.wiris.img.style.height = "" + scaledHeight + "px";
1128
+ e1.target.wiris.img.style.width = "" + scaledWitdh + "px";
1129
+ }
1130
+ if(_g.wiriseditormathmlattribute == null) {
1131
+ var wirisEditorMathmlAttributeCall = haxe.Json.parse(_g.callGetVariableKeys("wiriseditormathmlattribute"));
1132
+ if(wirisEditorMathmlAttributeCall.status != "ok") _g.wiriseditormathmlattribute = "data-mathml"; else _g.wiriseditormathmlattribute = wirisEditorMathmlAttributeCall.result.wiriseditormathmlattribute;
1133
+ }
1134
+ e1.target.wiris.img.setAttribute(_g.wiriseditormathmlattribute,e1.target.wiris.mml);
1135
+ e1.target.wiris.img.setAttribute("class","Wirisformula");
1136
+ e1.target.wiris.img.setAttribute("role","math");
1137
+ if(result.alt != null) e1.target.wiris.img.alt = result.alt; else {
1138
+ var accessibilityResponse = _g.callService(e1.target.wiris.mml,"mathml2accessible");
1139
+ if(haxe.Json.parse(accessibilityResponse).status != "error") e1.target.wiris.img.alt = haxe.Json.parse(accessibilityResponse).result.text;
1140
+ }
1141
+ if(--_g.callsShowImageNumber == 0) {
1142
+ var _g2 = 0, _g1 = _g.eventListenersArray.length;
1143
+ while(_g2 < _g1) {
1144
+ var i = _g2++;
1145
+ try {
1146
+ _g.eventListenersArray[i].afterParse();
1147
+ } catch( e2 ) {
1148
+ }
1149
+ }
1150
+ }
1151
+ callbackFunc();
1152
+ };
1153
+ if(haxe.Json.parse(con.responseText).status == "warning") {
1154
+ con.open("POST",url,e.target.wiris.asynchronously);
1155
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1156
+ var onloadFunc1 = function(e1) {
1157
+ getResultFunc(e1);
1158
+ };
1159
+ if(new com.wiris.js.JsBrowser().isIE()) data = "centerbaseline=false&mml=" + StringTools.urlEncode(e.target.wiris.mml) + "&useragent=IE"; else data = "centerbaseline=false&mml=" + StringTools.urlEncode(e.target.wiris.mml);
1160
+ var newDynamic = { };
1161
+ con.wiris = newDynamic;
1162
+ con.wiris.callbackFunc = callbackFunc;
1163
+ con.wiris.getResultFunc = getResultFunc;
1164
+ con.wiris.mml = mml;
1165
+ con.wiris.img = img;
1166
+ con.wiris.container = container;
1167
+ con.onload = onloadFunc1;
1168
+ con.onerror = function(e1) {
1169
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("ShowImage call failed!",{ fileName : "JsPluginViewer.hx", lineNumber : 696, className : "com.wiris.js.JsPluginViewer", methodName : "callShowimage"});
1170
+ };
1171
+ con.send(data);
1172
+ } else getResultFunc(e);
1173
+ };
1174
+ var newDynamic = { };
1175
+ con.wiris = newDynamic;
1176
+ con.wiris.callbackFunc = callbackFunc;
1177
+ con.wiris.mml = mml;
1178
+ con.wiris.img = img;
1179
+ con.wiris.container = container;
1180
+ con.wiris.asynchronously = asynchronously;
1181
+ con.onload = onloadFunc;
1182
+ con.onerror = function(e) {
1183
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("ShowImage call failed!",{ fileName : "JsPluginViewer.hx", lineNumber : 716, className : "com.wiris.js.JsPluginViewer", methodName : "callShowimage"});
1184
+ };
1185
+ con.send(null);
1186
+ }
1187
+ ,callCreateImage: function(mml,img) {
1188
+ var con;
1189
+ var height = 0;
1190
+ var width = 0;
1191
+ var baseline = 0;
1192
+ var text = null;
1193
+ var data;
1194
+ var url;
1195
+ con = new js.XMLHttpRequest();
1196
+ url = (this.absoluteURL.length > 0?this.absoluteURL:this.baseURL + this.localpath) + "/createimage" + this.extension;
1197
+ data = "metrics=true&centerbaseline=false&mml=" + StringTools.urlEncode(mml);
1198
+ data += "&lang=" + this.lang;
1199
+ if(this.zoom != 1) data += "&zoom=" + this.zoom;
1200
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Calling: " + url,{ fileName : "JsPluginViewer.hx", lineNumber : 535, className : "com.wiris.js.JsPluginViewer", methodName : "callCreateImage"});
1201
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("POST:" + data,{ fileName : "JsPluginViewer.hx", lineNumber : 537, className : "com.wiris.js.JsPluginViewer", methodName : "callCreateImage"});
1202
+ con.open("POST",url,false);
1203
+ con.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
1204
+ con.send(data);
1205
+ var s = con.responseText;
1206
+ var i = s.indexOf("?");
1207
+ if(i >= 0) {
1208
+ var scaleDpi = 1;
1209
+ var h = this.queryToParams(HxOverrides.substr(s,i + 1,null));
1210
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(h.get("formula"),{ fileName : "JsPluginViewer.hx", lineNumber : 547, className : "com.wiris.js.JsPluginViewer", methodName : "callCreateImage"});
1211
+ if(h.exists("dpi")) scaleDpi = this.zoom * (Std.parseInt(h.get("dpi")) / 96);
1212
+ baseline = Std.parseInt(h.get("cb")) / scaleDpi | 0;
1213
+ height = Std.parseInt(h.get("ch")) / scaleDpi | 0;
1214
+ width = Std.parseInt(h.get("cw")) / scaleDpi | 0;
1215
+ text = h.get("text");
1216
+ }
1217
+ img.src = con.responseText;
1218
+ if(height > 0) {
1219
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(this.calculateAlignment(height,baseline),{ fileName : "JsPluginViewer.hx", lineNumber : 558, className : "com.wiris.js.JsPluginViewer", methodName : "callCreateImage"});
1220
+ img.style.verticalAlign = "-" + this.calculateAlignment(height,baseline) + "px";
1221
+ img.style.height = "" + height + "px";
1222
+ img.style.width = "" + width + "px";
1223
+ }
1224
+ img.setAttribute("data-mathml",mml);
1225
+ img.setAttribute("class","Wirisformula");
1226
+ img.setAttribute("role","math");
1227
+ var accessibility = this.callService(mml,"mathml2accessible");
1228
+ if(accessibility != null) img.alt = haxe.Json.parse(accessibility).result.text;
1229
+ }
1230
+ ,calculateAlignment: function(height,baseline) {
1231
+ var result;
1232
+ result = 0;
1233
+ result = height - baseline;
1234
+ return result;
1235
+ }
1236
+ ,getTechnology: function() {
1237
+ if(HxOverrides.substr(com.wiris.js.JsPluginViewer.TECH,1,null) == "param.js.tech.discover@") {
1238
+ var con;
1239
+ con = new js.XMLHttpRequest();
1240
+ con.open("GET",this.baseURL + "/../tech.txt",false);
1241
+ con.send(null);
1242
+ var s = con.responseText;
1243
+ return StringTools.trim(s.split("#")[0]);
1244
+ } else return com.wiris.js.JsPluginViewer.TECH;
1245
+ }
1246
+ ,processMathML: function(mml,container,asynchronously,callbackFunc) {
1247
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(mml,{ fileName : "JsPluginViewer.hx", lineNumber : 480, className : "com.wiris.js.JsPluginViewer", methodName : "processMathML"});
1248
+ var img = js.Lib.document.createElement("img");
1249
+ if(this.performanceenabled == null) this.performanceenabled = this.isPerformanceEnabled();
1250
+ if(this.mode == com.wiris.js.JsPluginViewer.USE_CREATE_IMAGE && this.performanceenabled) this.callShowimage(container,mml,img,asynchronously,callbackFunc); else if(this.mode == com.wiris.js.JsPluginViewer.USE_CREATE_IMAGE && !this.performanceenabled) this.callCreateImage(mml,img); else img.src = this.baseURL + this.localpath + "/showimage" + this.extension + "?mml=" + StringTools.urlEncode(mml);
1251
+ container.appendChild(img);
1252
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(img.src,{ fileName : "JsPluginViewer.hx", lineNumber : 494, className : "com.wiris.js.JsPluginViewer", methodName : "processMathML"});
1253
+ }
1254
+ ,getMathML_IE7: function(mathNode0) {
1255
+ var mathml = "";
1256
+ var mathNode = mathNode0;
1257
+ while(mathNode != null && mathNode.nodeName != "/MATH") {
1258
+ if(mathNode.nodeType == 3) mathml += mathNode.nodeValue; else {
1259
+ var nodeName = mathNode.nodeName.toLowerCase();
1260
+ if(nodeName.charAt(0) == "/") mathml += "</" + HxOverrides.substr(nodeName,1,null) + ">"; else {
1261
+ mathml += "<" + nodeName;
1262
+ var attributes = mathNode.attributes;
1263
+ var i = 0;
1264
+ while(i < attributes.length) {
1265
+ var attribute = attributes[i];
1266
+ if(attribute.nodeValue != "" && attribute.nodeValue != null && attribute.nodeValue != "inherit") mathml += " " + attribute.nodeName + "=\"" + attribute.nodeValue + "\"";
1267
+ ++i;
1268
+ }
1269
+ var counter = 1;
1270
+ var nextMathNode = mathNode.nextSibling;
1271
+ while(nextMathNode != null && counter > 0) {
1272
+ var nextNodeName = nextMathNode.nodeName.toLowerCase();
1273
+ if(nextNodeName == nodeName) ++counter; else if(nextNodeName == "/" + nodeName) --counter;
1274
+ nextMathNode = nextMathNode.nextSibling;
1275
+ }
1276
+ if(counter > 0) mathml += "/";
1277
+ mathml += ">";
1278
+ }
1279
+ }
1280
+ var nextMathNode = mathNode.nextSibling;
1281
+ if(mathNode != mathNode0) mathNode.parentNode.removeChild(mathNode);
1282
+ mathNode = nextMathNode;
1283
+ }
1284
+ if(mathNode.nodeName == "/MATH") mathNode.parentNode.removeChild(mathNode);
1285
+ mathml += "</math>";
1286
+ return mathml;
1287
+ }
1288
+ ,replaceNodes: function(mathNodes,n,asynchronously,callbackFunc) {
1289
+ if(n >= mathNodes.length) return;
1290
+ var mathNode = mathNodes[n];
1291
+ var mathml = null;
1292
+ var browser = new com.wiris.js.JsBrowser();
1293
+ if(browser.getBrowser() == "Explorer" && (browser.getVersion() == "6" || browser.getVersion() == "7") && navigator.appVersion.indexOf("Trident") == -1) {
1294
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Is ie7",{ fileName : "JsPluginViewer.hx", lineNumber : 370, className : "com.wiris.js.JsPluginViewer", methodName : "replaceNodes"});
1295
+ mathml = this.getMathML_IE7(mathNode);
1296
+ }
1297
+ var container = js.Lib.document.createElement("span");
1298
+ if(mathNode.parentNode != null) mathNode.parentNode.replaceChild(container,mathNode);
1299
+ if(mathml == null) {
1300
+ container.appendChild(mathNode);
1301
+ mathml = container.innerHTML;
1302
+ container.removeChild(mathNode);
1303
+ }
1304
+ var index = mathml.indexOf("<math");
1305
+ mathml = HxOverrides.substr(mathml,index,mathml.length - index);
1306
+ var containerMath = js.Lib.document.createElement("span");
1307
+ var containerMathElement = js.Lib.document.createElement("math");
1308
+ containerMath.appendChild(containerMathElement);
1309
+ containerMathElement.outerHTML = mathml;
1310
+ mathml = new XMLSerializer().serializeToString(containerMath.children[0]);
1311
+ this.processMathML(mathml,container,asynchronously,callbackFunc);
1312
+ var self = this;
1313
+ self.replaceNodes(mathNodes,n + 1,asynchronously,callbackFunc);
1314
+ }
1315
+ ,findLatex: function(node) {
1316
+ var dollarIndex = node.nodeValue.indexOf("$$");
1317
+ var stringLocation = 0;
1318
+ var foundLatex = false;
1319
+ var latexArray = [];
1320
+ while(dollarIndex != -1) {
1321
+ var firstDollars = dollarIndex;
1322
+ dollarIndex = node.nodeValue.indexOf("$$",dollarIndex + 2);
1323
+ if(dollarIndex != -1) {
1324
+ latexArray.push({ begin : firstDollars + 2, end : dollarIndex});
1325
+ dollarIndex = node.nodeValue.indexOf("$$",dollarIndex + 2);
1326
+ foundLatex = true;
1327
+ }
1328
+ }
1329
+ return foundLatex?latexArray:null;
1330
+ }
1331
+ ,parseLatexDocument: function(asynchronously,callbackFunc) {
1332
+ this.parseLatexElement(js.Lib.document,asynchronously,callbackFunc);
1333
+ }
1334
+ ,parseLatexElement: function(element,asynchronously,callbackFunc) {
1335
+ if(callbackFunc == null) callbackFunc = function() {
1336
+ };
1337
+ if(asynchronously == null) {
1338
+ if(this.asyncParam) asynchronously = this.asyncParam;
1339
+ }
1340
+ var domTextNodes = this.findTextNodes(element);
1341
+ var latexToProcess = [];
1342
+ var i = 0;
1343
+ while(i < domTextNodes.length) {
1344
+ var node = domTextNodes[i];
1345
+ var findLatexResult = this.findLatex(node);
1346
+ if(findLatexResult != null) latexToProcess.push({ node : node, indexes : findLatexResult});
1347
+ i++;
1348
+ }
1349
+ if(latexToProcess.length == 0) {
1350
+ var _g1 = 0, _g = this.eventListenersArray.length;
1351
+ while(_g1 < _g) {
1352
+ var i1 = _g1++;
1353
+ try {
1354
+ this.eventListenersArray[i1].afterParseLatex();
1355
+ } catch( e ) {
1356
+ }
1357
+ }
1358
+ } else {
1359
+ this.callsLatexToMathml = latexToProcess.length;
1360
+ var _g1 = 0, _g = latexToProcess.length;
1361
+ while(_g1 < _g) {
1362
+ var i1 = _g1++;
1363
+ var latex_index = latexToProcess[i1].indexes[0];
1364
+ var node = latexToProcess[i1].node;
1365
+ var latex = node.textContent.substring(latex_index.begin,latex_index.end);
1366
+ var splitedTextNode = node.splitText(latex_index.begin - 2);
1367
+ var finaltext = splitedTextNode.textContent;
1368
+ finaltext = finaltext.substring(finaltext.indexOf("$$",2) + 2);
1369
+ var newNode = node.cloneNode(true);
1370
+ newNode.textContent = finaltext;
1371
+ node.parentElement.insertBefore(newNode,node.nextSibling);
1372
+ this.latexToMathml(latex,newNode,asynchronously,callbackFunc);
1373
+ var finalIndex = splitedTextNode.textContent.lastIndexOf("$$",2);
1374
+ splitedTextNode.textContent = latex_index.begin == latex_index.end?splitedTextNode.nodeValue.substring(2,finalIndex):splitedTextNode.nodeValue.substring(0,finalIndex);
1375
+ }
1376
+ }
1377
+ }
1378
+ ,findTextNodes: function(el) {
1379
+ var textNodes = [];
1380
+ var walk = document.createTreeWalker(el,NodeFilter.SHOW_TEXT,null,false);
1381
+ var node;
1382
+ while(node = walk.nextNode()) if(!this.thereIsParentTextArea(node)) textNodes.push(node);
1383
+ return textNodes;
1384
+ }
1385
+ ,thereIsParentTextArea: function(el) {
1386
+ var thereIs = false;
1387
+ var parentNode = el.parentNode;
1388
+ while(!thereIs && parentNode != null) {
1389
+ if(parentNode.nodeName == "TEXTAREA") thereIs = true;
1390
+ parentNode = parentNode.parentNode;
1391
+ }
1392
+ return thereIs;
1393
+ }
1394
+ ,isEditable: function(element) {
1395
+ while(element != null) {
1396
+ if(element.contentEditable == "true") return true;
1397
+ element = element.parentNode;
1398
+ }
1399
+ return false;
1400
+ }
1401
+ ,parseElement: function(element,asynchronously,callbackFunc) {
1402
+ if(!this.ready) throw "Document is not loaded.";
1403
+ if(callbackFunc == null) callbackFunc = function() {
1404
+ };
1405
+ if(asynchronously == null) {
1406
+ if(this.asyncParam) asynchronously = this.asyncParam;
1407
+ }
1408
+ var mathNodes = element.getElementsByTagName("math");
1409
+ var arr = new Array();
1410
+ var _g1 = 0, _g = mathNodes.length;
1411
+ while(_g1 < _g) {
1412
+ var x = _g1++;
1413
+ if(!this.isEditable(mathNodes[x])) arr.push(mathNodes[x]);
1414
+ }
1415
+ this.callsShowImageNumber = arr.length;
1416
+ if(this.callsShowImageNumber == 0) {
1417
+ var _g1 = 0, _g = this.eventListenersArray.length;
1418
+ while(_g1 < _g) {
1419
+ var i = _g1++;
1420
+ try {
1421
+ this.eventListenersArray[i].afterParse();
1422
+ } catch( e ) {
1423
+ }
1424
+ }
1425
+ }
1426
+ this.replaceNodes(arr,0,asynchronously,callbackFunc);
1427
+ }
1428
+ ,parseDocument: function(asynchronously,callbackFunc) {
1429
+ this.parseElement(js.Lib.document,asynchronously,callbackFunc);
1430
+ }
1431
+ ,doLoad: function() {
1432
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("doLoad",{ fileName : "JsPluginViewer.hx", lineNumber : 118, className : "com.wiris.js.JsPluginViewer", methodName : "doLoad"});
1433
+ this.scriptName = "WIRISplugins.js";
1434
+ var col;
1435
+ col = js.Lib.document.getElementsByTagName("script");
1436
+ var _g1 = 0, _g = col.length;
1437
+ while(_g1 < _g) {
1438
+ var i = _g1++;
1439
+ var d;
1440
+ var src;
1441
+ d = col[i];
1442
+ src = d.src;
1443
+ var j = src.lastIndexOf(this.scriptName);
1444
+ if(j >= 0) {
1445
+ this.baseURL = HxOverrides.substr(src,0,j - 1);
1446
+ var k = src.indexOf("?",j);
1447
+ if(k >= 0) {
1448
+ var query = HxOverrides.substr(src,k + 1,null);
1449
+ this.params = this.queryToParams(query);
1450
+ }
1451
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace(this.baseURL,{ fileName : "JsPluginViewer.hx", lineNumber : 137, className : "com.wiris.js.JsPluginViewer", methodName : "doLoad"});
1452
+ }
1453
+ }
1454
+ this.tech = this.getTechnology();
1455
+ if(this.tech == "php") {
1456
+ this.extension = ".php";
1457
+ this.localpath = "";
1458
+ this.absoluteURL = "";
1459
+ } else if(this.tech == "aspx") {
1460
+ this.extension = ".aspx";
1461
+ this.localpath = "";
1462
+ this.absoluteURL = "";
1463
+ } else if(this.tech == "local-java") {
1464
+ this.extension = "";
1465
+ this.localpath = "/../app";
1466
+ this.absoluteURL = "";
1467
+ } else if(this.tech == "nodejs") {
1468
+ this.extension = "";
1469
+ this.localpath = "/../integration";
1470
+ this.absoluteURL = "";
1471
+ } else if(this.tech == "java") {
1472
+ this.extension = "";
1473
+ this.localpath = "";
1474
+ this.absoluteURL = "";
1475
+ } else if(this.tech == "ruby") {
1476
+ this.extension = "";
1477
+ this.absoluteURL = "/wirispluginengine/integration";
1478
+ }
1479
+ this.ready = true;
1480
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Tech:" + this.tech,{ fileName : "JsPluginViewer.hx", lineNumber : 168, className : "com.wiris.js.JsPluginViewer", methodName : "doLoad"});
1481
+ if(this.params.exists("viewer")) this.viewer = this.params.get("viewer");
1482
+ this.asyncParam = this.params.exists("async") && this.params.get("async") == "true"?true:false;
1483
+ if(this.params.exists("zoom")) this.zoom = Std.parseFloat(this.params.get("zoom"));
1484
+ if(this.params.exists("dpi")) this.zoom *= Std.parseFloat(this.params.get("dpi")) / 96;
1485
+ if(this.params.exists("lang")) this.lang = this.params.get("lang"); else this.lang = "en";
1486
+ if(this.lang == "inherit") this.lang = js.Lib.document.getElementsByTagName("html")[0].lang;
1487
+ if(this.viewer == "image") this.parseDocument(); else if(this.viewer == "latex") this.parseLatexDocument(this.asyncParam); else if(this.viewer == "all") {
1488
+ this.parseLatexDocument(this.asyncParam);
1489
+ this.parseDocument(this.asyncParam);
1490
+ }
1491
+ if(com.wiris.js.JsPluginViewer.DEBUG) haxe.Log.trace("Language:" + this.lang,{ fileName : "JsPluginViewer.hx", lineNumber : 198, className : "com.wiris.js.JsPluginViewer", methodName : "doLoad"});
1492
+ com.wiris.js.JsPluginViewer.instance = this;
1493
+ com.wiris.js.JsPluginViewer.bypassEncapsulation();
1494
+ }
1495
+ ,tryReady: function() {
1496
+ this.ready = false;
1497
+ if(js.Lib.document.readyState) {
1498
+ this.doLoad();
1499
+ this.ready = true;
1500
+ }
1501
+ if(!this.ready) haxe.Timer.delay($bind(this,this.tryReady),100);
1502
+ }
1503
+ ,eventListenersArray: null
1504
+ ,callsLatexToMathml: null
1505
+ ,callsShowImageNumber: null
1506
+ ,_wrs_conf_imageFormat: null
1507
+ ,ready: null
1508
+ ,javaServicePath: null
1509
+ ,tech: null
1510
+ ,lang: null
1511
+ ,wiriseditormathmlattribute: null
1512
+ ,performanceenabled: null
1513
+ ,asyncParam: null
1514
+ ,viewer: null
1515
+ ,zoom: null
1516
+ ,absoluteURL: null
1517
+ ,localpath: null
1518
+ ,extension: null
1519
+ ,mode: null
1520
+ ,params: null
1521
+ ,scriptName: null
1522
+ ,baseURL: null
1523
+ ,__class__: com.wiris.js.JsPluginViewer
1524
+ }
1525
+ if(!com.wiris.system) com.wiris.system = {}
1526
+ com.wiris.system.JsBrowserData = $hxClasses["com.wiris.system.JsBrowserData"] = function() {
1527
+ };
1528
+ com.wiris.system.JsBrowserData.__name__ = ["com","wiris","system","JsBrowserData"];
1529
+ com.wiris.system.JsBrowserData.prototype = {
1530
+ identity: null
1531
+ ,versionSearch: null
1532
+ ,subString: null
1533
+ ,prop: null
1534
+ ,string: null
1535
+ ,__class__: com.wiris.system.JsBrowserData
1536
+ }
1537
+ com.wiris.system.JsOSData = $hxClasses["com.wiris.system.JsOSData"] = function() {
1538
+ };
1539
+ com.wiris.system.JsOSData.__name__ = ["com","wiris","system","JsOSData"];
1540
+ com.wiris.system.JsOSData.prototype = {
1541
+ identity: null
1542
+ ,subString: null
1543
+ ,string: null
1544
+ ,__class__: com.wiris.system.JsOSData
1545
+ }
1546
+ com.wiris.system.JsBrowser = $hxClasses["com.wiris.system.JsBrowser"] = function() {
1547
+ this.dataBrowser = new Array();
1548
+ this.addBrowser("navigator.userAgent",null,"Edge",null,"Edge");
1549
+ this.addBrowser("navigator.userAgent",null,"Chrome",null,"Chrome");
1550
+ this.addBrowser("navigator.userAgent",null,"OmniWeb",null,"OmniWeb");
1551
+ this.addBrowser("navigator.vendor",null,"Apple","Version","Safari");
1552
+ this.addBrowser(null,"window.opera",null,"Version","Opera");
1553
+ this.addBrowser("navigator.vendor",null,"iCab",null,"iCab");
1554
+ this.addBrowser("navigator.vendor",null,"KDE",null,"Konkeror");
1555
+ this.addBrowser("navigator.userAgent",null,"Firefox",null,"Firefox");
1556
+ this.addBrowser("navigator.vendor",null,"Camino",null,"Camino");
1557
+ this.addBrowser("navigator.userAgent",null,"Netscape",null,"Netscape");
1558
+ this.addBrowser("navigator.userAgent",null,"MSIE","MSIE","Explorer");
1559
+ this.addBrowser("navigator.userAgent",null,"Trident","rv","Explorer");
1560
+ this.addBrowser("navigator.userAgent",null,"Gecko","rv","Mozilla");
1561
+ this.addBrowser("navigator.userAgent",null,"Mozilla","Mozilla","Netscape");
1562
+ this.dataOS = new Array();
1563
+ this.addOS("navigator.platform","Win","Windows");
1564
+ this.addOS("navigator.platform","Mac","Mac");
1565
+ this.addOS("navigator.userAgent","iPhone","iOS");
1566
+ this.addOS("navigator.userAgent","iPad","iOS");
1567
+ this.addOS("navigator.userAgent","Android","Android");
1568
+ this.addOS("navigator.platform","Linux","Linux");
1569
+ this.setBrowser();
1570
+ this.setOS();
1571
+ this.setTouchable();
1572
+ };
1573
+ com.wiris.system.JsBrowser.__name__ = ["com","wiris","system","JsBrowser"];
1574
+ com.wiris.system.JsBrowser.prototype = {
1575
+ isTouchable: function() {
1576
+ return this.touchable;
1577
+ }
1578
+ ,isAndroid: function() {
1579
+ return this.os == "Android";
1580
+ }
1581
+ ,isMac: function() {
1582
+ return this.os == "Mac";
1583
+ }
1584
+ ,isIOS: function() {
1585
+ return this.os == "iOS";
1586
+ }
1587
+ ,isFF: function() {
1588
+ return this.browser == "Firefox";
1589
+ }
1590
+ ,isSafari: function() {
1591
+ return this.browser == "Safari";
1592
+ }
1593
+ ,isChrome: function() {
1594
+ return this.browser == "Chrome";
1595
+ }
1596
+ ,isEdge: function() {
1597
+ return this.browser == "Edge";
1598
+ }
1599
+ ,isIE: function() {
1600
+ return this.browser == "Explorer";
1601
+ }
1602
+ ,getVersion: function() {
1603
+ return this.ver;
1604
+ }
1605
+ ,getOS: function() {
1606
+ return this.os;
1607
+ }
1608
+ ,getBrowser: function() {
1609
+ return this.browser;
1610
+ }
1611
+ ,searchVersion: function(prop,search) {
1612
+ var str = js.Boot.__cast(eval(prop) , String);
1613
+ var index = str.indexOf(search);
1614
+ if(index == -1) return null;
1615
+ return "" + Std.parseFloat(HxOverrides.substr(str,index + search.length + 1,null));
1616
+ }
1617
+ ,setTouchable: function() {
1618
+ if(this.isIOS() || this.isAndroid()) {
1619
+ this.touchable = true;
1620
+ return;
1621
+ }
1622
+ this.touchable = false;
1623
+ }
1624
+ ,setOS: function() {
1625
+ var i = HxOverrides.iter(this.dataOS);
1626
+ while(i.hasNext()) {
1627
+ var s = i.next();
1628
+ var str = js.Boot.__cast(eval(s.string) , String);
1629
+ if(str.indexOf(s.subString) != -1) {
1630
+ this.os = s.identity;
1631
+ return;
1632
+ }
1633
+ }
1634
+ }
1635
+ ,setBrowser: function() {
1636
+ var i = HxOverrides.iter(this.dataBrowser);
1637
+ while(i.hasNext()) {
1638
+ var b = i.next();
1639
+ if(b.string != null) {
1640
+ var obj = eval(b.string);
1641
+ if(obj != null) {
1642
+ var str = js.Boot.__cast(obj , String);
1643
+ if(str.indexOf(b.subString) != -1) {
1644
+ this.browser = b.identity;
1645
+ this.ver = this.searchVersion("navigator.userAgent",b.versionSearch);
1646
+ if(this.ver == null) this.ver = this.searchVersion("navigator.appVersion",b.versionSearch);
1647
+ return;
1648
+ }
1649
+ }
1650
+ }
1651
+ }
1652
+ }
1653
+ ,addOS: function(string,subString,identity) {
1654
+ var s = new com.wiris.system.JsOSData();
1655
+ s.string = string;
1656
+ s.subString = subString;
1657
+ s.identity = identity;
1658
+ this.dataOS.push(s);
1659
+ }
1660
+ ,addBrowser: function(string,prop,subString,versionSearch,identity) {
1661
+ var b = new com.wiris.system.JsBrowserData();
1662
+ b.string = string;
1663
+ b.prop = prop;
1664
+ b.subString = subString;
1665
+ b.versionSearch = versionSearch != null?versionSearch:identity;
1666
+ b.identity = identity;
1667
+ this.dataBrowser.push(b);
1668
+ }
1669
+ ,touchable: null
1670
+ ,os: null
1671
+ ,ver: null
1672
+ ,browser: null
1673
+ ,dataOS: null
1674
+ ,dataBrowser: null
1675
+ ,__class__: com.wiris.system.JsBrowser
1676
+ }
1677
+ com.wiris.system.JsDOMUtils = $hxClasses["com.wiris.system.JsDOMUtils"] = function() { }
1678
+ com.wiris.system.JsDOMUtils.__name__ = ["com","wiris","system","JsDOMUtils"];
1679
+ com.wiris.system.JsDOMUtils.ieTouchEvents = null;
1680
+ com.wiris.system.JsDOMUtils.init = function() {
1681
+ if(com.wiris.system.JsDOMUtils.initialized) return;
1682
+ com.wiris.system.JsDOMUtils.ieTouchEvents = new Hash();
1683
+ com.wiris.system.JsDOMUtils.ieTouchEvents.set("touchstart","MSPointerDown");
1684
+ com.wiris.system.JsDOMUtils.ieTouchEvents.set("touchmove","MSPointerMove");
1685
+ com.wiris.system.JsDOMUtils.ieTouchEvents.set("touchend","MSPointerUp");
1686
+ com.wiris.system.JsDOMUtils.initialized = true;
1687
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"MSPointerDown",function(e) {
1688
+ com.wiris.system.JsDOMUtils.internetExplorerPointers.set("" + e.pointerId,e);
1689
+ });
1690
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"MSPointerUp",function(e) {
1691
+ com.wiris.system.JsDOMUtils.internetExplorerPointers = new Hash();
1692
+ });
1693
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"scroll",function(e) {
1694
+ com.wiris.system.JsDOMUtils.internetExplorerPointers = new Hash();
1695
+ });
1696
+ var touched = false;
1697
+ var triggerEvents = function(listeners) {
1698
+ var i = HxOverrides.iter(listeners);
1699
+ while(i.hasNext()) {
1700
+ var callbackFunction = i.next();
1701
+ callbackFunction();
1702
+ }
1703
+ };
1704
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"touchstart",function(e) {
1705
+ if(!com.wiris.system.JsDOMUtils.browser.touchable) {
1706
+ com.wiris.system.JsDOMUtils.browser.touchable = true;
1707
+ triggerEvents(com.wiris.system.JsDOMUtils.touchDeviceListeners);
1708
+ }
1709
+ touched = true;
1710
+ });
1711
+ var onTouchEnd = function(e) {
1712
+ if(!com.wiris.system.JsDOMUtils.browser.touchable) {
1713
+ com.wiris.system.JsDOMUtils.browser.touchable = true;
1714
+ triggerEvents(com.wiris.system.JsDOMUtils.touchDeviceListeners);
1715
+ }
1716
+ touched = true;
1717
+ setTimeout(function() {
1718
+ touched = false;
1719
+ },500);
1720
+ };
1721
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"touchend",onTouchEnd);
1722
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"touchleave",onTouchEnd);
1723
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"touchcancel",onTouchEnd);
1724
+ com.wiris.system.JsDOMUtils.addEventListener(js.Lib.document,"mousemove",function(e) {
1725
+ if(!touched) {
1726
+ if(com.wiris.system.JsDOMUtils.browser.touchable) {
1727
+ com.wiris.system.JsDOMUtils.browser.touchable = false;
1728
+ triggerEvents(com.wiris.system.JsDOMUtils.mouseDeviceListeners);
1729
+ }
1730
+ }
1731
+ });
1732
+ }
1733
+ com.wiris.system.JsDOMUtils.addEventListener = function(element,eventName,handler) {
1734
+ return com.wiris.system.JsDOMUtils.addEventListenerImpl(element,eventName,handler,false);
1735
+ }
1736
+ com.wiris.system.JsDOMUtils.addEventListenerImpl = function(element,eventName,handler,useCapture) {
1737
+ if(navigator.msPointerEnabled && com.wiris.system.JsDOMUtils.ieTouchEvents.exists(eventName)) {
1738
+ eventName = com.wiris.system.JsDOMUtils.ieTouchEvents.get(eventName);
1739
+ return com.wiris.system.JsDOMUtils.addEventListenerImpl(element,eventName,function(e) {
1740
+ if(e.pointerType == "touch") {
1741
+ if(eventName == "MSPointerUp") com.wiris.system.JsDOMUtils.internetExplorerPointers.remove("" + e.pointerId); else com.wiris.system.JsDOMUtils.internetExplorerPointers.set("" + e.pointerId,e);
1742
+ e.touches = new Array();
1743
+ var i = com.wiris.system.JsDOMUtils.internetExplorerPointers.iterator();
1744
+ while(i.hasNext()) e.touches.push(i.next());
1745
+ handler(e);
1746
+ }
1747
+ },useCapture);
1748
+ }
1749
+ if(eventName == "touchhold" && com.wiris.system.JsDOMUtils.browser.isTouchable()) {
1750
+ var timeout = null;
1751
+ var startX = -1;
1752
+ var startY = -1;
1753
+ var descriptor = com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchstart",function(e) {
1754
+ touching = true;
1755
+ startX = e.touches[0].clientX;
1756
+ startY = e.touches[0].clientY;
1757
+ timeout = setTimeout(function() {
1758
+ timeout = null;
1759
+ handler(e);
1760
+ },500);
1761
+ },useCapture);
1762
+ descriptor.subDescriptors.push(com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchmove",function(e) {
1763
+ if(timeout != null) {
1764
+ if(Math.abs(e.touches[0].clientX - startX) > com.wiris.system.JsDOMUtils.TOUCHHOLD_MOVE_MARGIN || Math.abs(e.touches[0].clientY - startY) > com.wiris.system.JsDOMUtils.TOUCHHOLD_MOVE_MARGIN) {
1765
+ clearTimeout(timeout);
1766
+ timeout = null;
1767
+ } else com.wiris.system.JsDOMUtils.cancelEvent(e);
1768
+ }
1769
+ },useCapture));
1770
+ descriptor.subDescriptors.push(com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchend",function(e) {
1771
+ if(timeout != null) {
1772
+ clearTimeout(timeout);
1773
+ timeout = null;
1774
+ }
1775
+ },useCapture));
1776
+ return descriptor;
1777
+ }
1778
+ var descriptor = { };
1779
+ descriptor.element = element;
1780
+ descriptor.eventName = eventName;
1781
+ descriptor.handler = handler;
1782
+ descriptor.useCapture = useCapture;
1783
+ descriptor.subDescriptors = new Array();
1784
+ if(eventName == "dblclick") {
1785
+ var event = null;
1786
+ var touching = false;
1787
+ var firstClickTimestamp = null;
1788
+ descriptor.subDescriptors.push(com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchstart",function(e) {
1789
+ touching = true;
1790
+ event = e;
1791
+ },useCapture));
1792
+ descriptor.subDescriptors.push(com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchmove",function(e) {
1793
+ touching = false;
1794
+ },useCapture));
1795
+ descriptor.subDescriptors.push(com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"touchend",function(e) {
1796
+ if(touching) {
1797
+ touching = false;
1798
+ var currentTimestamp = new Date().getTime();
1799
+ if(firstClickTimestamp == null || currentTimestamp > firstClickTimestamp + 500) firstClickTimestamp = currentTimestamp; else {
1800
+ event._wrs_dealAsTouch = true;
1801
+ handler(e);
1802
+ }
1803
+ }
1804
+ },useCapture));
1805
+ }
1806
+ if(eventName == "fullscreenchange") {
1807
+ com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"webkitfullscreenchange",handler,useCapture);
1808
+ com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"mozfullscreenchange",handler,useCapture);
1809
+ com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"MSFullscreenChange",handler,useCapture);
1810
+ com.wiris.system.JsDOMUtils.addEventListenerImpl(element,"wrs_fullscreenchange",handler,useCapture);
1811
+ }
1812
+ if(element.attachEvent) element.attachEvent("on" + eventName,function() {
1813
+ handler(window.event);
1814
+ }); else element.addEventListener(eventName,handler,useCapture);
1815
+ return descriptor;
1816
+ }
1817
+ com.wiris.system.JsDOMUtils.removeEventListener = function(descriptor) {
1818
+ if(com.wiris.system.JsDOMUtils.browser.isIE() && descriptor.element.detachEvent) descriptor.element.detachEvent("on" + Std.string(descriptor.eventName),descriptor.handler); else descriptor.element.removeEventListener(descriptor.eventName,descriptor.handler,descriptor.useCapture);
1819
+ var i = $iterator(descriptor.subDescriptors)();
1820
+ while(i.hasNext()) com.wiris.system.JsDOMUtils.removeEventListener(i.next());
1821
+ }
1822
+ com.wiris.system.JsDOMUtils.cancelEvent = function(e) {
1823
+ if(e.preventDefault) e.preventDefault(); else e.returnValue = false;
1824
+ }
1825
+ com.wiris.system.JsDOMUtils.fireEvent = function(element,eventName) {
1826
+ var event;
1827
+ if(document.createEvent) {
1828
+ event = document.createEvent("HTMLEvents");
1829
+ event.initEvent(eventName,true,true);
1830
+ event.eventName = eventName;
1831
+ element.dispatchEvent(event);
1832
+ } else {
1833
+ event = document.createEventObject();
1834
+ event.eventType = eventName;
1835
+ event.eventName = eventName;
1836
+ element.fireEvent("on" + eventName,event);
1837
+ }
1838
+ }
1839
+ com.wiris.system.JsDOMUtils.getComputedStyle = function(element) {
1840
+ if(element.currentStyle) return element.currentStyle;
1841
+ return document.defaultView.getComputedStyle(element,null);
1842
+ }
1843
+ com.wiris.system.JsDOMUtils.getComputedStyleProperty = function(element,name) {
1844
+ var value;
1845
+ if(document.defaultView && document.defaultView.getComputedStyle) {
1846
+ var computedStyle = document.defaultView.getComputedStyle(element,null);
1847
+ value = computedStyle == null?null:computedStyle.getPropertyValue(name);
1848
+ } else if(com.wiris.system.JsDOMUtils.browser.isIE() && element.currentStyle) {
1849
+ var camelName = com.wiris.system.JsDOMUtils.camelize(name);
1850
+ value = element.currentStyle[camelName];
1851
+ if(value != null && value.length > 0 && camelName != "zoom") {
1852
+ var firstChar = HxOverrides.cca(value,0);
1853
+ if(firstChar >= 48 && firstChar <= 57 && !StringTools.endsWith(value,"px")) {
1854
+ var originalLeft = element.style.left;
1855
+ var originalRuntimeLeft = element.runtimeStyle?element.runtimeStyle.left:null;
1856
+ if(originalRuntimeLeft != null) element.runtimeStyle.left = element.currentStyle.left;
1857
+ element.style.left = camelName == "fontSize"?"1em":value;
1858
+ value = element.style.pixelLeft + "px";
1859
+ element.style.left = originalLeft;
1860
+ if(originalRuntimeLeft != null) element.runtimeStyle.left = originalRuntimeLeft;
1861
+ }
1862
+ }
1863
+ } else value = element.style[com.wiris.system.JsDOMUtils.camelize(name)];
1864
+ return value;
1865
+ }
1866
+ com.wiris.system.JsDOMUtils.camelize = function(str) {
1867
+ var start = 0;
1868
+ var pos;
1869
+ var sb = new StringBuf();
1870
+ while((pos = str.indexOf("-",start)) != -1) {
1871
+ sb.b += Std.string(HxOverrides.substr(str,start,pos - start));
1872
+ sb.b += Std.string(str.charAt(pos + 1).toUpperCase());
1873
+ start = pos + 2;
1874
+ }
1875
+ sb.b += Std.string(HxOverrides.substr(str,start,null));
1876
+ return sb.b;
1877
+ }
1878
+ com.wiris.system.JsDOMUtils.getElementsByClassName = function(parent,className,recursive) {
1879
+ var returnValue = new Array();
1880
+ var _g1 = 0, _g = parent.childNodes.length;
1881
+ while(_g1 < _g) {
1882
+ var i = _g1++;
1883
+ if(com.wiris.system.JsDOMUtils.hasClass(parent.childNodes[i],className)) returnValue.push(parent.childNodes[i]);
1884
+ if(recursive) returnValue = returnValue.concat(com.wiris.system.JsDOMUtils.getElementsByClassName(parent.childNodes[i],className,true));
1885
+ }
1886
+ return returnValue;
1887
+ }
1888
+ com.wiris.system.JsDOMUtils.getEventTarget = function(event) {
1889
+ if(event.srcElement) return event.srcElement;
1890
+ return event.target;
1891
+ }
1892
+ com.wiris.system.JsDOMUtils.getLeft = function(element) {
1893
+ return element.getBoundingClientRect().left;
1894
+ }
1895
+ com.wiris.system.JsDOMUtils.getRelativeLeft = function(element,parent) {
1896
+ if(parent == null) return com.wiris.system.JsDOMUtils.getLeft(element);
1897
+ return com.wiris.system.JsDOMUtils.getLeft(element) - com.wiris.system.JsDOMUtils.getLeft(parent);
1898
+ }
1899
+ com.wiris.system.JsDOMUtils.getTop = function(element) {
1900
+ return element.getBoundingClientRect().top;
1901
+ }
1902
+ com.wiris.system.JsDOMUtils.getRelativeTop = function(element,parent) {
1903
+ if(parent == null) return com.wiris.system.JsDOMUtils.getTop(element);
1904
+ return com.wiris.system.JsDOMUtils.getTop(element) - com.wiris.system.JsDOMUtils.getTop(parent);
1905
+ }
1906
+ com.wiris.system.JsDOMUtils.getWindowScroll = function() {
1907
+ var scroll = new Array();
1908
+ if(js.Lib.window.pageYOffset == undefined) {
1909
+ scroll[0] = js.Lib.document.documentElement.scrollLeft;
1910
+ scroll[1] = js.Lib.document.documentElement.scrollTop;
1911
+ } else {
1912
+ scroll[0] = js.Lib.window.pageXOffset;
1913
+ scroll[1] = js.Lib.window.pageYOffset;
1914
+ }
1915
+ return scroll;
1916
+ }
1917
+ com.wiris.system.JsDOMUtils.isDescendant = function(parent,possibleDescendant) {
1918
+ if(possibleDescendant.parentNode == null) return false;
1919
+ if(possibleDescendant.parentNode == parent) return true;
1920
+ return com.wiris.system.JsDOMUtils.isDescendant(parent,possibleDescendant.parentNode);
1921
+ }
1922
+ com.wiris.system.JsDOMUtils.parseDimension = function(x) {
1923
+ return x < 0 || x == null?0:x;
1924
+ }
1925
+ com.wiris.system.JsDOMUtils.removeChildren = function(element) {
1926
+ while(element.firstChild != null) element.removeChild(element.firstChild);
1927
+ }
1928
+ com.wiris.system.JsDOMUtils.hasClass = function(element,className) {
1929
+ if(element == null || element.className == null || !(element.className.split)) return false;
1930
+ var classes = element.className.split(" ");
1931
+ var i = HxOverrides.iter(classes);
1932
+ while(i.hasNext()) if(i.next() == className) return true;
1933
+ return false;
1934
+ }
1935
+ com.wiris.system.JsDOMUtils.addClass = function(element,className) {
1936
+ if(element == null) return;
1937
+ if(element.className == "") element.className = className; else if(!com.wiris.system.JsDOMUtils.hasClass(element,className)) element.className += " " + className;
1938
+ }
1939
+ com.wiris.system.JsDOMUtils.removeClass = function(element,className) {
1940
+ if(element == null || element.className == null || !(element.className.split)) return;
1941
+ var classes = element.className.split(" ");
1942
+ HxOverrides.remove(classes,className);
1943
+ element.className = classes.join(" ");
1944
+ }
1945
+ com.wiris.system.JsDOMUtils.toggleClass = function(element,className) {
1946
+ if(com.wiris.system.JsDOMUtils.hasClass(element,className)) com.wiris.system.JsDOMUtils.removeClass(element,className); else com.wiris.system.JsDOMUtils.addClass(element,className);
1947
+ }
1948
+ com.wiris.system.JsDOMUtils.activateClass = function(element,className) {
1949
+ if(!com.wiris.system.JsDOMUtils.hasClass(element,className)) com.wiris.system.JsDOMUtils.addClass(element,className);
1950
+ }
1951
+ com.wiris.system.JsDOMUtils.setCaretPosition = function(element,position,end) {
1952
+ if(element.setSelectionRange) element.setSelectionRange(position,end); else if(element.createTextRange) {
1953
+ var range = element.createTextRange();
1954
+ range.collapse(true);
1955
+ range.moveStart("character",position);
1956
+ range.moveEnd("character",end);
1957
+ range.select();
1958
+ }
1959
+ }
1960
+ com.wiris.system.JsDOMUtils.getSelectionBounds = function(element) {
1961
+ var bounds = new Array();
1962
+ if(element.selectionStart != null) {
1963
+ bounds[0] = element.selectionStart;
1964
+ bounds[1] = element.selectionEnd;
1965
+ return bounds;
1966
+ }
1967
+ var range = document.selection.createRange();
1968
+ if(range && range.parentElement() == element) {
1969
+ var length = element.value.length;
1970
+ var normalizedValue = element.value.split("\r\n").join("\n");
1971
+ var textInputRange = element.createTextRange();
1972
+ textInputRange.moveToBookmark(range.getBookmark());
1973
+ var endRange = element.createTextRange();
1974
+ endRange.collapse(false);
1975
+ if(textInputRange.compareEndPoints("StartToEnd",endRange) > -1) bounds[0] = bounds[1] = length; else {
1976
+ bounds[0] = -textInputRange.moveStart("character",-length);
1977
+ bounds[0] += normalizedValue.slice(0,bounds[0]).split("\n").length - 1;
1978
+ if(textInputRange.compareEndPoints("EndToEnd",endRange) > -1) bounds[1] = length; else {
1979
+ bounds[1] = -textInputRange.moveEnd("character",-length);
1980
+ bounds[1] += normalizedValue.slice(0,bounds[1]).split("\n").length - 1;
1981
+ }
1982
+ }
1983
+ return bounds;
1984
+ }
1985
+ return null;
1986
+ }
1987
+ com.wiris.system.JsDOMUtils.getMousePosition = function(target,e) {
1988
+ if(e._wrs_dealAsTouch) return com.wiris.system.JsDOMUtils.getTouchPosition(target,e.touches[0]);
1989
+ var elementScroll = new Array();
1990
+ elementScroll[0] = target.scrollLeft;
1991
+ elementScroll[1] = target.scrollTop;
1992
+ return com.wiris.system.JsDOMUtils.getMousePositionImpl(target,e,elementScroll,0);
1993
+ }
1994
+ com.wiris.system.JsDOMUtils.getMousePositionImpl = function(target,e,elementScroll,border) {
1995
+ var position = new Array();
1996
+ position[0] = e.clientX - com.wiris.system.JsDOMUtils.getLeft(target) - border + elementScroll[0];
1997
+ position[1] = e.clientY - com.wiris.system.JsDOMUtils.getTop(target) - border + elementScroll[1];
1998
+ return position;
1999
+ }
2000
+ com.wiris.system.JsDOMUtils.inFixedParent = function(element) {
2001
+ while(element != null) {
2002
+ if(com.wiris.system.JsDOMUtils.getComputedStyleProperty(element,"position") == "fixed") return true;
2003
+ element = element.offsetParent;
2004
+ }
2005
+ return false;
2006
+ }
2007
+ com.wiris.system.JsDOMUtils.getTouchPosition = function(target,touch) {
2008
+ var elementScroll = new Array();
2009
+ elementScroll[0] = target.scrollLeft;
2010
+ elementScroll[1] = target.scrollTop;
2011
+ return com.wiris.system.JsDOMUtils.getTouchPositionImpl(target,touch,elementScroll,0);
2012
+ }
2013
+ com.wiris.system.JsDOMUtils.getTouchPositionImpl = function(target,touch,elementScroll,border) {
2014
+ var position = new Array();
2015
+ position[0] = touch.clientX - com.wiris.system.JsDOMUtils.getLeft(target) - border + elementScroll[0];
2016
+ position[1] = touch.clientY - com.wiris.system.JsDOMUtils.getTop(target) - border + elementScroll[1];
2017
+ return position;
2018
+ }
2019
+ com.wiris.system.JsDOMUtils.getStandardButton = function(e) {
2020
+ if(com.wiris.system.JsDOMUtils.browser.isTouchable()) return 0;
2021
+ var button = e.button;
2022
+ if(com.wiris.system.JsDOMUtils.browser.isIE()) {
2023
+ if(button == 1) button = 0; else if(button == 4) button = 1;
2024
+ }
2025
+ return button;
2026
+ }
2027
+ com.wiris.system.JsDOMUtils.vibrate = function(milliseconds) {
2028
+ if(navigator.vibrate) navigator.vibrate(milliseconds);
2029
+ }
2030
+ com.wiris.system.JsDOMUtils.onTouchDeviceDetected = function(callbackFunction) {
2031
+ com.wiris.system.JsDOMUtils.init();
2032
+ com.wiris.system.JsDOMUtils.touchDeviceListeners.push(callbackFunction);
2033
+ }
2034
+ com.wiris.system.JsDOMUtils.onMouseDeviceDetected = function(callbackFunction) {
2035
+ com.wiris.system.JsDOMUtils.init();
2036
+ com.wiris.system.JsDOMUtils.mouseDeviceListeners.push(callbackFunction);
2037
+ }
2038
+ com.wiris.system.JsDOMUtils.findScriptElement = function(reg) {
2039
+ var scripts = js.Lib.document.getElementsByTagName("script");
2040
+ var n = scripts.length;
2041
+ var i = 0;
2042
+ while(i < n) {
2043
+ var src = scripts[i].getAttribute("src");
2044
+ if(reg.match(src)) return scripts[i];
2045
+ ++i;
2046
+ }
2047
+ return null;
2048
+ }
2049
+ com.wiris.system.JsDOMUtils.rewriteDefaultPaths = function(contextPath) {
2050
+ if(window.com.wiris.js.defaultServicePath != null && StringTools.startsWith(window.com.wiris.js.defaultServicePath,"http://")) {
2051
+ var protocol = js.Lib.window.location.protocol;
2052
+ var defaultServicePathWithoutProtocol = window.com.wiris.js.defaultServicePath.substr("http:".length);
2053
+ var reg = new EReg("(http:|https:)" + defaultServicePathWithoutProtocol + "/" + contextPath,"");
2054
+ if(com.wiris.system.JsDOMUtils.findScriptElement(reg) != null) protocol = reg.matched(1);
2055
+ if(protocol == "https:") {
2056
+ window.com.wiris.js.defaultServicePath = "https:" + defaultServicePathWithoutProtocol;
2057
+ if(window.com.wiris.js.defaultBasePath != null) window.com.wiris.js.defaultBasePath = "https:" + window.com.wiris.js.defaultBasePath.substr("http:".length);
2058
+ }
2059
+ }
2060
+ }
2061
+ com.wiris.system.JsDOMUtils.createCSSRules = function(selector,rules) {
2062
+ var style = js.Lib.document.createElement("style");
2063
+ style.type = "text/css";
2064
+ js.Lib.document.getElementsByTagName("head")[0].appendChild(style);
2065
+ if(style.sheet != null && style.sheet.insertRule != null) style.sheet.insertRule(selector + "{" + rules + "}",0); else if(style.styleSheet != null) style.styleSheet.addRule(selector,rules); else if(style.sheet != null) style.sheet.addRule(selector,rules);
2066
+ }
2067
+ com.wiris.system.JsDOMUtils.enterFullscreen = function(element) {
2068
+ document.wrs_fullscreen = true;
2069
+ document.wrs_fullscreenElement = element;
2070
+ com.wiris.system.JsDOMUtils.addClass(element,"wrs_fullscreen");
2071
+ com.wiris.system.JsDOMUtils.fireEvent(document,"wrs_fullscreenchange");
2072
+ }
2073
+ com.wiris.system.JsDOMUtils.exitFullscreen = function() {
2074
+ if(document.wrs_fullscreenElement != null) com.wiris.system.JsDOMUtils.removeClass(document.wrs_fullscreenElement,"wrs_fullscreen");
2075
+ document.wrs_fullscreenElement = null;
2076
+ document.wrs_fullscreen = false;
2077
+ com.wiris.system.JsDOMUtils.fireEvent(document,"wrs_fullscreenchange");
2078
+ }
2079
+ com.wiris.system.JsDOMUtils.isFullscreen = function(element) {
2080
+ if(element == null) return document.wrs_fullscreen || document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement;
2081
+ return document.wrs_fullscreenElement == element || document.fullscreenElement == element || document.mozFullScreenElement == element || document.webkitFullscreenElement || document.msFullscreenElement == element;
2082
+ }
2083
+ com.wiris.system.JsDOMUtils.execCommand = function(command) {
2084
+ return document.execCommand(command);
2085
+ }
2086
+ com.wiris.system.JsDOMUtils.findServicePath = function(scriptName) {
2087
+ var scriptTags = js.Lib.document.getElementsByTagName("script");
2088
+ var servicePath = null;
2089
+ var _g1 = 0, _g = scriptTags.length;
2090
+ while(_g1 < _g) {
2091
+ var i = _g1++;
2092
+ var src = scriptTags[i].src;
2093
+ var j = src.lastIndexOf("/" + scriptName);
2094
+ if(j >= 0) servicePath = HxOverrides.substr(src,0,j); else if(src == scriptName) servicePath = "";
2095
+ }
2096
+ if(servicePath != null && StringTools.startsWith(servicePath,"http://") && js.Lib.window.location.protocol == "https:") servicePath = "https://" + HxOverrides.substr(servicePath,"http://".length,null);
2097
+ return servicePath;
2098
+ }
2099
+ com.wiris.system.JsDOMUtils.loadTextFile = function(elem,func) {
2100
+ var w = js.Lib.window;
2101
+ if(w.File && w.FileReader && w.FileList && w.Blob) {
2102
+ var d = elem.ownerDocument;
2103
+ var fileInput = d.createElement("input");
2104
+ fileInput.setAttribute("name","data");
2105
+ fileInput.setAttribute("type","file");
2106
+ elem.appendChild(fileInput);
2107
+ com.wiris.system.JsDOMUtils.init();
2108
+ com.wiris.system.JsDOMUtils.addEventListener(fileInput,"change",function(e) {
2109
+ if(fileInput.files.length) {
2110
+ var file = fileInput.files[0];
2111
+ var reader = new FileReader();
2112
+ reader.onload = function(le) {
2113
+ func(le.target.result);
2114
+ };
2115
+ reader.readAsText(file);
2116
+ }
2117
+ elem.removeChild(fileInput);
2118
+ });
2119
+ fileInput.click();
2120
+ } else throw "Browser incompatible with JavaScript File API.";
2121
+ }
2122
+ com.wiris.system.JsDOMUtils.saveTextFile = function(elem,filename,filetype,contents) {
2123
+ var d = elem.ownerDocument;
2124
+ var w = js.Lib.window;
2125
+ if(w.Blob) {
2126
+ var blob = new Blob([contents], {'type': filetype});
2127
+ var a = d.createElement("a");
2128
+ if('download' in a && w.URL) {
2129
+ a.href = w.URL.createObjectURL(blob);
2130
+ a.download = filename;
2131
+ elem.appendChild(a);
2132
+ a.click();
2133
+ elem.removeChild(a);
2134
+ return;
2135
+ }
2136
+ }
2137
+ throw "Browser incompatible with HTML object download anchors.";
2138
+ }
2139
+ var haxe = haxe || {}
2140
+ haxe.Http = $hxClasses["haxe.Http"] = function(url) {
2141
+ this.url = url;
2142
+ this.headers = new Hash();
2143
+ this.params = new Hash();
2144
+ this.async = true;
2145
+ };
2146
+ haxe.Http.__name__ = ["haxe","Http"];
2147
+ haxe.Http.requestUrl = function(url) {
2148
+ var h = new haxe.Http(url);
2149
+ h.async = false;
2150
+ var r = null;
2151
+ h.onData = function(d) {
2152
+ r = d;
2153
+ };
2154
+ h.onError = function(e) {
2155
+ throw e;
2156
+ };
2157
+ h.request(false);
2158
+ return r;
2159
+ }
2160
+ haxe.Http.prototype = {
2161
+ onStatus: function(status) {
2162
+ }
2163
+ ,onError: function(msg) {
2164
+ }
2165
+ ,onData: function(data) {
2166
+ }
2167
+ ,request: function(post) {
2168
+ var me = this;
2169
+ var r = new js.XMLHttpRequest();
2170
+ var onreadystatechange = function() {
2171
+ if(r.readyState != 4) return;
2172
+ var s = (function($this) {
2173
+ var $r;
2174
+ try {
2175
+ $r = r.status;
2176
+ } catch( e ) {
2177
+ $r = null;
2178
+ }
2179
+ return $r;
2180
+ }(this));
2181
+ if(s == undefined) s = null;
2182
+ if(s != null) me.onStatus(s);
2183
+ if(s != null && s >= 200 && s < 400) me.onData(r.responseText); else switch(s) {
2184
+ case null: case undefined:
2185
+ me.onError("Failed to connect or resolve host");
2186
+ break;
2187
+ case 12029:
2188
+ me.onError("Failed to connect to host");
2189
+ break;
2190
+ case 12007:
2191
+ me.onError("Unknown host");
2192
+ break;
2193
+ default:
2194
+ me.onError("Http Error #" + r.status);
2195
+ }
2196
+ };
2197
+ if(this.async) r.onreadystatechange = onreadystatechange;
2198
+ var uri = this.postData;
2199
+ if(uri != null) post = true; else {
2200
+ var $it0 = this.params.keys();
2201
+ while( $it0.hasNext() ) {
2202
+ var p = $it0.next();
2203
+ if(uri == null) uri = ""; else uri += "&";
2204
+ uri += StringTools.urlEncode(p) + "=" + StringTools.urlEncode(this.params.get(p));
2205
+ }
2206
+ }
2207
+ try {
2208
+ if(post) r.open("POST",this.url,this.async); else if(uri != null) {
2209
+ var question = this.url.split("?").length <= 1;
2210
+ r.open("GET",this.url + (question?"?":"&") + uri,this.async);
2211
+ uri = null;
2212
+ } else r.open("GET",this.url,this.async);
2213
+ } catch( e ) {
2214
+ this.onError(e.toString());
2215
+ return;
2216
+ }
2217
+ if(this.headers.get("Content-Type") == null && post && this.postData == null) r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
2218
+ var $it1 = this.headers.keys();
2219
+ while( $it1.hasNext() ) {
2220
+ var h = $it1.next();
2221
+ r.setRequestHeader(h,this.headers.get(h));
2222
+ }
2223
+ r.send(uri);
2224
+ if(!this.async) onreadystatechange();
2225
+ }
2226
+ ,setPostData: function(data) {
2227
+ this.postData = data;
2228
+ }
2229
+ ,setParameter: function(param,value) {
2230
+ this.params.set(param,value);
2231
+ }
2232
+ ,setHeader: function(header,value) {
2233
+ this.headers.set(header,value);
2234
+ }
2235
+ ,params: null
2236
+ ,headers: null
2237
+ ,postData: null
2238
+ ,async: null
2239
+ ,url: null
2240
+ ,__class__: haxe.Http
2241
+ }
2242
+ haxe.Json = $hxClasses["haxe.Json"] = function() {
2243
+ };
2244
+ haxe.Json.__name__ = ["haxe","Json"];
2245
+ haxe.Json.parse = function(text) {
2246
+ return new haxe.Json().doParse(text);
2247
+ }
2248
+ haxe.Json.stringify = function(value) {
2249
+ return new haxe.Json().toString(value);
2250
+ }
2251
+ haxe.Json.prototype = {
2252
+ parseString: function() {
2253
+ var start = this.pos;
2254
+ var buf = new StringBuf();
2255
+ while(true) {
2256
+ var c = this.str.charCodeAt(this.pos++);
2257
+ if(c == 34) break;
2258
+ if(c == 92) {
2259
+ buf.b += HxOverrides.substr(this.str,start,this.pos - start - 1);
2260
+ c = this.str.charCodeAt(this.pos++);
2261
+ switch(c) {
2262
+ case 114:
2263
+ buf.b += String.fromCharCode(13);
2264
+ break;
2265
+ case 110:
2266
+ buf.b += String.fromCharCode(10);
2267
+ break;
2268
+ case 116:
2269
+ buf.b += String.fromCharCode(9);
2270
+ break;
2271
+ case 98:
2272
+ buf.b += String.fromCharCode(8);
2273
+ break;
2274
+ case 102:
2275
+ buf.b += String.fromCharCode(12);
2276
+ break;
2277
+ case 47:case 92:case 34:
2278
+ buf.b += String.fromCharCode(c);
2279
+ break;
2280
+ case 117:
2281
+ var uc = Std.parseInt("0x" + HxOverrides.substr(this.str,this.pos,4));
2282
+ this.pos += 4;
2283
+ buf.b += String.fromCharCode(uc);
2284
+ break;
2285
+ default:
2286
+ throw "Invalid escape sequence \\" + String.fromCharCode(c) + " at position " + (this.pos - 1);
2287
+ }
2288
+ start = this.pos;
2289
+ } else if(c != c) throw "Unclosed string";
2290
+ }
2291
+ buf.b += HxOverrides.substr(this.str,start,this.pos - start - 1);
2292
+ return buf.b;
2293
+ }
2294
+ ,parseRec: function() {
2295
+ while(true) {
2296
+ var c = this.str.charCodeAt(this.pos++);
2297
+ switch(c) {
2298
+ case 32:case 13:case 10:case 9:
2299
+ break;
2300
+ case 123:
2301
+ var obj = { }, field = null, comma = null;
2302
+ while(true) {
2303
+ var c1 = this.str.charCodeAt(this.pos++);
2304
+ switch(c1) {
2305
+ case 32:case 13:case 10:case 9:
2306
+ break;
2307
+ case 125:
2308
+ if(field != null || comma == false) this.invalidChar();
2309
+ return obj;
2310
+ case 58:
2311
+ if(field == null) this.invalidChar();
2312
+ obj[field] = this.parseRec();
2313
+ field = null;
2314
+ comma = true;
2315
+ break;
2316
+ case 44:
2317
+ if(comma) comma = false; else this.invalidChar();
2318
+ break;
2319
+ case 34:
2320
+ if(comma) this.invalidChar();
2321
+ field = this.parseString();
2322
+ break;
2323
+ default:
2324
+ this.invalidChar();
2325
+ }
2326
+ }
2327
+ break;
2328
+ case 91:
2329
+ var arr = [], comma = null;
2330
+ while(true) {
2331
+ var c1 = this.str.charCodeAt(this.pos++);
2332
+ switch(c1) {
2333
+ case 32:case 13:case 10:case 9:
2334
+ break;
2335
+ case 93:
2336
+ if(comma == false) this.invalidChar();
2337
+ return arr;
2338
+ case 44:
2339
+ if(comma) comma = false; else this.invalidChar();
2340
+ break;
2341
+ default:
2342
+ if(comma) this.invalidChar();
2343
+ this.pos--;
2344
+ arr.push(this.parseRec());
2345
+ comma = true;
2346
+ }
2347
+ }
2348
+ break;
2349
+ case 116:
2350
+ var save = this.pos;
2351
+ if(this.str.charCodeAt(this.pos++) != 114 || this.str.charCodeAt(this.pos++) != 117 || this.str.charCodeAt(this.pos++) != 101) {
2352
+ this.pos = save;
2353
+ this.invalidChar();
2354
+ }
2355
+ return true;
2356
+ case 102:
2357
+ var save = this.pos;
2358
+ if(this.str.charCodeAt(this.pos++) != 97 || this.str.charCodeAt(this.pos++) != 108 || this.str.charCodeAt(this.pos++) != 115 || this.str.charCodeAt(this.pos++) != 101) {
2359
+ this.pos = save;
2360
+ this.invalidChar();
2361
+ }
2362
+ return false;
2363
+ case 110:
2364
+ var save = this.pos;
2365
+ if(this.str.charCodeAt(this.pos++) != 117 || this.str.charCodeAt(this.pos++) != 108 || this.str.charCodeAt(this.pos++) != 108) {
2366
+ this.pos = save;
2367
+ this.invalidChar();
2368
+ }
2369
+ return null;
2370
+ case 34:
2371
+ return this.parseString();
2372
+ case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 45:
2373
+ this.pos--;
2374
+ if(!this.reg_float.match(HxOverrides.substr(this.str,this.pos,null))) throw "Invalid float at position " + this.pos;
2375
+ var v = this.reg_float.matched(0);
2376
+ this.pos += v.length;
2377
+ var f = Std.parseFloat(v);
2378
+ var i = f | 0;
2379
+ return i == f?i:f;
2380
+ default:
2381
+ this.invalidChar();
2382
+ }
2383
+ }
2384
+ }
2385
+ ,nextChar: function() {
2386
+ return this.str.charCodeAt(this.pos++);
2387
+ }
2388
+ ,invalidChar: function() {
2389
+ this.pos--;
2390
+ throw "Invalid char " + this.str.charCodeAt(this.pos) + " at position " + this.pos;
2391
+ }
2392
+ ,doParse: function(str) {
2393
+ this.reg_float = new EReg("^-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?","");
2394
+ this.str = str;
2395
+ this.pos = 0;
2396
+ return this.parseRec();
2397
+ }
2398
+ ,quote: function(s) {
2399
+ this.buf.b += Std.string("\"");
2400
+ var i = 0;
2401
+ while(true) {
2402
+ var c = s.charCodeAt(i++);
2403
+ if(c != c) break;
2404
+ switch(c) {
2405
+ case 34:
2406
+ this.buf.b += Std.string("\\\"");
2407
+ break;
2408
+ case 92:
2409
+ this.buf.b += Std.string("\\\\");
2410
+ break;
2411
+ case 10:
2412
+ this.buf.b += Std.string("\\n");
2413
+ break;
2414
+ case 13:
2415
+ this.buf.b += Std.string("\\r");
2416
+ break;
2417
+ case 9:
2418
+ this.buf.b += Std.string("\\t");
2419
+ break;
2420
+ case 8:
2421
+ this.buf.b += Std.string("\\b");
2422
+ break;
2423
+ case 12:
2424
+ this.buf.b += Std.string("\\f");
2425
+ break;
2426
+ default:
2427
+ this.buf.b += String.fromCharCode(c);
2428
+ }
2429
+ }
2430
+ this.buf.b += Std.string("\"");
2431
+ }
2432
+ ,toStringRec: function(v) {
2433
+ var $e = (Type["typeof"](v));
2434
+ switch( $e[1] ) {
2435
+ case 8:
2436
+ this.buf.b += Std.string("\"???\"");
2437
+ break;
2438
+ case 4:
2439
+ this.objString(v);
2440
+ break;
2441
+ case 1:
2442
+ case 2:
2443
+ this.buf.b += Std.string(v);
2444
+ break;
2445
+ case 5:
2446
+ this.buf.b += Std.string("\"<fun>\"");
2447
+ break;
2448
+ case 6:
2449
+ var c = $e[2];
2450
+ if(c == String) this.quote(v); else if(c == Array) {
2451
+ var v1 = v;
2452
+ this.buf.b += Std.string("[");
2453
+ var len = v1.length;
2454
+ if(len > 0) {
2455
+ this.toStringRec(v1[0]);
2456
+ var i = 1;
2457
+ while(i < len) {
2458
+ this.buf.b += Std.string(",");
2459
+ this.toStringRec(v1[i++]);
2460
+ }
2461
+ }
2462
+ this.buf.b += Std.string("]");
2463
+ } else if(c == Hash) {
2464
+ var v1 = v;
2465
+ var o = { };
2466
+ var $it0 = v1.keys();
2467
+ while( $it0.hasNext() ) {
2468
+ var k = $it0.next();
2469
+ o[k] = v1.get(k);
2470
+ }
2471
+ this.objString(o);
2472
+ } else this.objString(v);
2473
+ break;
2474
+ case 7:
2475
+ var e = $e[2];
2476
+ this.buf.b += Std.string(v[1]);
2477
+ break;
2478
+ case 3:
2479
+ this.buf.b += Std.string(v?"true":"false");
2480
+ break;
2481
+ case 0:
2482
+ this.buf.b += Std.string("null");
2483
+ break;
2484
+ }
2485
+ }
2486
+ ,objString: function(v) {
2487
+ this.fieldsString(v,Reflect.fields(v));
2488
+ }
2489
+ ,fieldsString: function(v,fields) {
2490
+ var first = true;
2491
+ this.buf.b += Std.string("{");
2492
+ var _g = 0;
2493
+ while(_g < fields.length) {
2494
+ var f = fields[_g];
2495
+ ++_g;
2496
+ var value = Reflect.field(v,f);
2497
+ if(Reflect.isFunction(value)) continue;
2498
+ if(first) first = false; else this.buf.b += Std.string(",");
2499
+ this.quote(f);
2500
+ this.buf.b += Std.string(":");
2501
+ this.toStringRec(value);
2502
+ }
2503
+ this.buf.b += Std.string("}");
2504
+ }
2505
+ ,toString: function(v) {
2506
+ this.buf = new StringBuf();
2507
+ this.toStringRec(v);
2508
+ return this.buf.b;
2509
+ }
2510
+ ,reg_float: null
2511
+ ,pos: null
2512
+ ,str: null
2513
+ ,buf: null
2514
+ ,__class__: haxe.Json
2515
+ }
2516
+ haxe.Log = $hxClasses["haxe.Log"] = function() { }
2517
+ haxe.Log.__name__ = ["haxe","Log"];
2518
+ haxe.Log.trace = function(v,infos) {
2519
+ js.Boot.__trace(v,infos);
2520
+ }
2521
+ haxe.Log.clear = function() {
2522
+ js.Boot.__clear_trace();
2523
+ }
2524
+ haxe.Md5 = $hxClasses["haxe.Md5"] = function() {
2525
+ };
2526
+ haxe.Md5.__name__ = ["haxe","Md5"];
2527
+ haxe.Md5.encode = function(s) {
2528
+ return new haxe.Md5().doEncode(s);
2529
+ }
2530
+ haxe.Md5.prototype = {
2531
+ doEncode: function(str) {
2532
+ var x = this.str2blks(str);
2533
+ var a = 1732584193;
2534
+ var b = -271733879;
2535
+ var c = -1732584194;
2536
+ var d = 271733878;
2537
+ var step;
2538
+ var i = 0;
2539
+ while(i < x.length) {
2540
+ var olda = a;
2541
+ var oldb = b;
2542
+ var oldc = c;
2543
+ var oldd = d;
2544
+ step = 0;
2545
+ a = this.ff(a,b,c,d,x[i],7,-680876936);
2546
+ d = this.ff(d,a,b,c,x[i + 1],12,-389564586);
2547
+ c = this.ff(c,d,a,b,x[i + 2],17,606105819);
2548
+ b = this.ff(b,c,d,a,x[i + 3],22,-1044525330);
2549
+ a = this.ff(a,b,c,d,x[i + 4],7,-176418897);
2550
+ d = this.ff(d,a,b,c,x[i + 5],12,1200080426);
2551
+ c = this.ff(c,d,a,b,x[i + 6],17,-1473231341);
2552
+ b = this.ff(b,c,d,a,x[i + 7],22,-45705983);
2553
+ a = this.ff(a,b,c,d,x[i + 8],7,1770035416);
2554
+ d = this.ff(d,a,b,c,x[i + 9],12,-1958414417);
2555
+ c = this.ff(c,d,a,b,x[i + 10],17,-42063);
2556
+ b = this.ff(b,c,d,a,x[i + 11],22,-1990404162);
2557
+ a = this.ff(a,b,c,d,x[i + 12],7,1804603682);
2558
+ d = this.ff(d,a,b,c,x[i + 13],12,-40341101);
2559
+ c = this.ff(c,d,a,b,x[i + 14],17,-1502002290);
2560
+ b = this.ff(b,c,d,a,x[i + 15],22,1236535329);
2561
+ a = this.gg(a,b,c,d,x[i + 1],5,-165796510);
2562
+ d = this.gg(d,a,b,c,x[i + 6],9,-1069501632);
2563
+ c = this.gg(c,d,a,b,x[i + 11],14,643717713);
2564
+ b = this.gg(b,c,d,a,x[i],20,-373897302);
2565
+ a = this.gg(a,b,c,d,x[i + 5],5,-701558691);
2566
+ d = this.gg(d,a,b,c,x[i + 10],9,38016083);
2567
+ c = this.gg(c,d,a,b,x[i + 15],14,-660478335);
2568
+ b = this.gg(b,c,d,a,x[i + 4],20,-405537848);
2569
+ a = this.gg(a,b,c,d,x[i + 9],5,568446438);
2570
+ d = this.gg(d,a,b,c,x[i + 14],9,-1019803690);
2571
+ c = this.gg(c,d,a,b,x[i + 3],14,-187363961);
2572
+ b = this.gg(b,c,d,a,x[i + 8],20,1163531501);
2573
+ a = this.gg(a,b,c,d,x[i + 13],5,-1444681467);
2574
+ d = this.gg(d,a,b,c,x[i + 2],9,-51403784);
2575
+ c = this.gg(c,d,a,b,x[i + 7],14,1735328473);
2576
+ b = this.gg(b,c,d,a,x[i + 12],20,-1926607734);
2577
+ a = this.hh(a,b,c,d,x[i + 5],4,-378558);
2578
+ d = this.hh(d,a,b,c,x[i + 8],11,-2022574463);
2579
+ c = this.hh(c,d,a,b,x[i + 11],16,1839030562);
2580
+ b = this.hh(b,c,d,a,x[i + 14],23,-35309556);
2581
+ a = this.hh(a,b,c,d,x[i + 1],4,-1530992060);
2582
+ d = this.hh(d,a,b,c,x[i + 4],11,1272893353);
2583
+ c = this.hh(c,d,a,b,x[i + 7],16,-155497632);
2584
+ b = this.hh(b,c,d,a,x[i + 10],23,-1094730640);
2585
+ a = this.hh(a,b,c,d,x[i + 13],4,681279174);
2586
+ d = this.hh(d,a,b,c,x[i],11,-358537222);
2587
+ c = this.hh(c,d,a,b,x[i + 3],16,-722521979);
2588
+ b = this.hh(b,c,d,a,x[i + 6],23,76029189);
2589
+ a = this.hh(a,b,c,d,x[i + 9],4,-640364487);
2590
+ d = this.hh(d,a,b,c,x[i + 12],11,-421815835);
2591
+ c = this.hh(c,d,a,b,x[i + 15],16,530742520);
2592
+ b = this.hh(b,c,d,a,x[i + 2],23,-995338651);
2593
+ a = this.ii(a,b,c,d,x[i],6,-198630844);
2594
+ d = this.ii(d,a,b,c,x[i + 7],10,1126891415);
2595
+ c = this.ii(c,d,a,b,x[i + 14],15,-1416354905);
2596
+ b = this.ii(b,c,d,a,x[i + 5],21,-57434055);
2597
+ a = this.ii(a,b,c,d,x[i + 12],6,1700485571);
2598
+ d = this.ii(d,a,b,c,x[i + 3],10,-1894986606);
2599
+ c = this.ii(c,d,a,b,x[i + 10],15,-1051523);
2600
+ b = this.ii(b,c,d,a,x[i + 1],21,-2054922799);
2601
+ a = this.ii(a,b,c,d,x[i + 8],6,1873313359);
2602
+ d = this.ii(d,a,b,c,x[i + 15],10,-30611744);
2603
+ c = this.ii(c,d,a,b,x[i + 6],15,-1560198380);
2604
+ b = this.ii(b,c,d,a,x[i + 13],21,1309151649);
2605
+ a = this.ii(a,b,c,d,x[i + 4],6,-145523070);
2606
+ d = this.ii(d,a,b,c,x[i + 11],10,-1120210379);
2607
+ c = this.ii(c,d,a,b,x[i + 2],15,718787259);
2608
+ b = this.ii(b,c,d,a,x[i + 9],21,-343485551);
2609
+ a = this.addme(a,olda);
2610
+ b = this.addme(b,oldb);
2611
+ c = this.addme(c,oldc);
2612
+ d = this.addme(d,oldd);
2613
+ i += 16;
2614
+ }
2615
+ return this.rhex(a) + this.rhex(b) + this.rhex(c) + this.rhex(d);
2616
+ }
2617
+ ,ii: function(a,b,c,d,x,s,t) {
2618
+ return this.cmn(this.bitXOR(c,this.bitOR(b,~d)),a,b,x,s,t);
2619
+ }
2620
+ ,hh: function(a,b,c,d,x,s,t) {
2621
+ return this.cmn(this.bitXOR(this.bitXOR(b,c),d),a,b,x,s,t);
2622
+ }
2623
+ ,gg: function(a,b,c,d,x,s,t) {
2624
+ return this.cmn(this.bitOR(this.bitAND(b,d),this.bitAND(c,~d)),a,b,x,s,t);
2625
+ }
2626
+ ,ff: function(a,b,c,d,x,s,t) {
2627
+ return this.cmn(this.bitOR(this.bitAND(b,c),this.bitAND(~b,d)),a,b,x,s,t);
2628
+ }
2629
+ ,cmn: function(q,a,b,x,s,t) {
2630
+ return this.addme(this.rol(this.addme(this.addme(a,q),this.addme(x,t)),s),b);
2631
+ }
2632
+ ,rol: function(num,cnt) {
2633
+ return num << cnt | num >>> 32 - cnt;
2634
+ }
2635
+ ,str2blks: function(str) {
2636
+ var nblk = (str.length + 8 >> 6) + 1;
2637
+ var blks = new Array();
2638
+ var _g1 = 0, _g = nblk * 16;
2639
+ while(_g1 < _g) {
2640
+ var i = _g1++;
2641
+ blks[i] = 0;
2642
+ }
2643
+ var i = 0;
2644
+ while(i < str.length) {
2645
+ blks[i >> 2] |= HxOverrides.cca(str,i) << (str.length * 8 + i) % 4 * 8;
2646
+ i++;
2647
+ }
2648
+ blks[i >> 2] |= 128 << (str.length * 8 + i) % 4 * 8;
2649
+ var l = str.length * 8;
2650
+ var k = nblk * 16 - 2;
2651
+ blks[k] = l & 255;
2652
+ blks[k] |= (l >>> 8 & 255) << 8;
2653
+ blks[k] |= (l >>> 16 & 255) << 16;
2654
+ blks[k] |= (l >>> 24 & 255) << 24;
2655
+ return blks;
2656
+ }
2657
+ ,rhex: function(num) {
2658
+ var str = "";
2659
+ var hex_chr = "0123456789abcdef";
2660
+ var _g = 0;
2661
+ while(_g < 4) {
2662
+ var j = _g++;
2663
+ str += hex_chr.charAt(num >> j * 8 + 4 & 15) + hex_chr.charAt(num >> j * 8 & 15);
2664
+ }
2665
+ return str;
2666
+ }
2667
+ ,addme: function(x,y) {
2668
+ var lsw = (x & 65535) + (y & 65535);
2669
+ var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
2670
+ return msw << 16 | lsw & 65535;
2671
+ }
2672
+ ,bitAND: function(a,b) {
2673
+ var lsb = a & 1 & (b & 1);
2674
+ var msb31 = a >>> 1 & b >>> 1;
2675
+ return msb31 << 1 | lsb;
2676
+ }
2677
+ ,bitXOR: function(a,b) {
2678
+ var lsb = a & 1 ^ b & 1;
2679
+ var msb31 = a >>> 1 ^ b >>> 1;
2680
+ return msb31 << 1 | lsb;
2681
+ }
2682
+ ,bitOR: function(a,b) {
2683
+ var lsb = a & 1 | b & 1;
2684
+ var msb31 = a >>> 1 | b >>> 1;
2685
+ return msb31 << 1 | lsb;
2686
+ }
2687
+ ,__class__: haxe.Md5
2688
+ }
2689
+ haxe.Serializer = $hxClasses["haxe.Serializer"] = function() {
2690
+ this.buf = new StringBuf();
2691
+ this.cache = new Array();
2692
+ this.useCache = haxe.Serializer.USE_CACHE;
2693
+ this.useEnumIndex = haxe.Serializer.USE_ENUM_INDEX;
2694
+ this.shash = new Hash();
2695
+ this.scount = 0;
2696
+ };
2697
+ haxe.Serializer.__name__ = ["haxe","Serializer"];
2698
+ haxe.Serializer.run = function(v) {
2699
+ var s = new haxe.Serializer();
2700
+ s.serialize(v);
2701
+ return s.toString();
2702
+ }
2703
+ haxe.Serializer.prototype = {
2704
+ serializeException: function(e) {
2705
+ this.buf.b += Std.string("x");
2706
+ this.serialize(e);
2707
+ }
2708
+ ,serialize: function(v) {
2709
+ var $e = (Type["typeof"](v));
2710
+ switch( $e[1] ) {
2711
+ case 0:
2712
+ this.buf.b += Std.string("n");
2713
+ break;
2714
+ case 1:
2715
+ if(v == 0) {
2716
+ this.buf.b += Std.string("z");
2717
+ return;
2718
+ }
2719
+ this.buf.b += Std.string("i");
2720
+ this.buf.b += Std.string(v);
2721
+ break;
2722
+ case 2:
2723
+ if(Math.isNaN(v)) this.buf.b += Std.string("k"); else if(!Math.isFinite(v)) this.buf.b += Std.string(v < 0?"m":"p"); else {
2724
+ this.buf.b += Std.string("d");
2725
+ this.buf.b += Std.string(v);
2726
+ }
2727
+ break;
2728
+ case 3:
2729
+ this.buf.b += Std.string(v?"t":"f");
2730
+ break;
2731
+ case 6:
2732
+ var c = $e[2];
2733
+ if(c == String) {
2734
+ this.serializeString(v);
2735
+ return;
2736
+ }
2737
+ if(this.useCache && this.serializeRef(v)) return;
2738
+ switch(c) {
2739
+ case Array:
2740
+ var ucount = 0;
2741
+ this.buf.b += Std.string("a");
2742
+ var l = v.length;
2743
+ var _g = 0;
2744
+ while(_g < l) {
2745
+ var i = _g++;
2746
+ if(v[i] == null) ucount++; else {
2747
+ if(ucount > 0) {
2748
+ if(ucount == 1) this.buf.b += Std.string("n"); else {
2749
+ this.buf.b += Std.string("u");
2750
+ this.buf.b += Std.string(ucount);
2751
+ }
2752
+ ucount = 0;
2753
+ }
2754
+ this.serialize(v[i]);
2755
+ }
2756
+ }
2757
+ if(ucount > 0) {
2758
+ if(ucount == 1) this.buf.b += Std.string("n"); else {
2759
+ this.buf.b += Std.string("u");
2760
+ this.buf.b += Std.string(ucount);
2761
+ }
2762
+ }
2763
+ this.buf.b += Std.string("h");
2764
+ break;
2765
+ case List:
2766
+ this.buf.b += Std.string("l");
2767
+ var v1 = v;
2768
+ var $it0 = v1.iterator();
2769
+ while( $it0.hasNext() ) {
2770
+ var i = $it0.next();
2771
+ this.serialize(i);
2772
+ }
2773
+ this.buf.b += Std.string("h");
2774
+ break;
2775
+ case Date:
2776
+ var d = v;
2777
+ this.buf.b += Std.string("v");
2778
+ this.buf.b += Std.string(HxOverrides.dateStr(d));
2779
+ break;
2780
+ case Hash:
2781
+ this.buf.b += Std.string("b");
2782
+ var v1 = v;
2783
+ var $it1 = v1.keys();
2784
+ while( $it1.hasNext() ) {
2785
+ var k = $it1.next();
2786
+ this.serializeString(k);
2787
+ this.serialize(v1.get(k));
2788
+ }
2789
+ this.buf.b += Std.string("h");
2790
+ break;
2791
+ case IntHash:
2792
+ this.buf.b += Std.string("q");
2793
+ var v1 = v;
2794
+ var $it2 = v1.keys();
2795
+ while( $it2.hasNext() ) {
2796
+ var k = $it2.next();
2797
+ this.buf.b += Std.string(":");
2798
+ this.buf.b += Std.string(k);
2799
+ this.serialize(v1.get(k));
2800
+ }
2801
+ this.buf.b += Std.string("h");
2802
+ break;
2803
+ case haxe.io.Bytes:
2804
+ var v1 = v;
2805
+ var i = 0;
2806
+ var max = v1.length - 2;
2807
+ var charsBuf = new StringBuf();
2808
+ var b64 = haxe.Serializer.BASE64;
2809
+ while(i < max) {
2810
+ var b1 = v1.b[i++];
2811
+ var b2 = v1.b[i++];
2812
+ var b3 = v1.b[i++];
2813
+ charsBuf.b += Std.string(b64.charAt(b1 >> 2));
2814
+ charsBuf.b += Std.string(b64.charAt((b1 << 4 | b2 >> 4) & 63));
2815
+ charsBuf.b += Std.string(b64.charAt((b2 << 2 | b3 >> 6) & 63));
2816
+ charsBuf.b += Std.string(b64.charAt(b3 & 63));
2817
+ }
2818
+ if(i == max) {
2819
+ var b1 = v1.b[i++];
2820
+ var b2 = v1.b[i++];
2821
+ charsBuf.b += Std.string(b64.charAt(b1 >> 2));
2822
+ charsBuf.b += Std.string(b64.charAt((b1 << 4 | b2 >> 4) & 63));
2823
+ charsBuf.b += Std.string(b64.charAt(b2 << 2 & 63));
2824
+ } else if(i == max + 1) {
2825
+ var b1 = v1.b[i++];
2826
+ charsBuf.b += Std.string(b64.charAt(b1 >> 2));
2827
+ charsBuf.b += Std.string(b64.charAt(b1 << 4 & 63));
2828
+ }
2829
+ var chars = charsBuf.b;
2830
+ this.buf.b += Std.string("s");
2831
+ this.buf.b += Std.string(chars.length);
2832
+ this.buf.b += Std.string(":");
2833
+ this.buf.b += Std.string(chars);
2834
+ break;
2835
+ default:
2836
+ this.cache.pop();
2837
+ if(v.hxSerialize != null) {
2838
+ this.buf.b += Std.string("C");
2839
+ this.serializeString(Type.getClassName(c));
2840
+ this.cache.push(v);
2841
+ v.hxSerialize(this);
2842
+ this.buf.b += Std.string("g");
2843
+ } else {
2844
+ this.buf.b += Std.string("c");
2845
+ this.serializeString(Type.getClassName(c));
2846
+ this.cache.push(v);
2847
+ this.serializeFields(v);
2848
+ }
2849
+ }
2850
+ break;
2851
+ case 4:
2852
+ if(this.useCache && this.serializeRef(v)) return;
2853
+ this.buf.b += Std.string("o");
2854
+ this.serializeFields(v);
2855
+ break;
2856
+ case 7:
2857
+ var e = $e[2];
2858
+ if(this.useCache && this.serializeRef(v)) return;
2859
+ this.cache.pop();
2860
+ this.buf.b += Std.string(this.useEnumIndex?"j":"w");
2861
+ this.serializeString(Type.getEnumName(e));
2862
+ if(this.useEnumIndex) {
2863
+ this.buf.b += Std.string(":");
2864
+ this.buf.b += Std.string(v[1]);
2865
+ } else this.serializeString(v[0]);
2866
+ this.buf.b += Std.string(":");
2867
+ var l = v.length;
2868
+ this.buf.b += Std.string(l - 2);
2869
+ var _g = 2;
2870
+ while(_g < l) {
2871
+ var i = _g++;
2872
+ this.serialize(v[i]);
2873
+ }
2874
+ this.cache.push(v);
2875
+ break;
2876
+ case 5:
2877
+ throw "Cannot serialize function";
2878
+ break;
2879
+ default:
2880
+ throw "Cannot serialize " + Std.string(v);
2881
+ }
2882
+ }
2883
+ ,serializeFields: function(v) {
2884
+ var _g = 0, _g1 = Reflect.fields(v);
2885
+ while(_g < _g1.length) {
2886
+ var f = _g1[_g];
2887
+ ++_g;
2888
+ this.serializeString(f);
2889
+ this.serialize(Reflect.field(v,f));
2890
+ }
2891
+ this.buf.b += Std.string("g");
2892
+ }
2893
+ ,serializeRef: function(v) {
2894
+ var vt = typeof(v);
2895
+ var _g1 = 0, _g = this.cache.length;
2896
+ while(_g1 < _g) {
2897
+ var i = _g1++;
2898
+ var ci = this.cache[i];
2899
+ if(typeof(ci) == vt && ci == v) {
2900
+ this.buf.b += Std.string("r");
2901
+ this.buf.b += Std.string(i);
2902
+ return true;
2903
+ }
2904
+ }
2905
+ this.cache.push(v);
2906
+ return false;
2907
+ }
2908
+ ,serializeString: function(s) {
2909
+ var x = this.shash.get(s);
2910
+ if(x != null) {
2911
+ this.buf.b += Std.string("R");
2912
+ this.buf.b += Std.string(x);
2913
+ return;
2914
+ }
2915
+ this.shash.set(s,this.scount++);
2916
+ this.buf.b += Std.string("y");
2917
+ s = StringTools.urlEncode(s);
2918
+ this.buf.b += Std.string(s.length);
2919
+ this.buf.b += Std.string(":");
2920
+ this.buf.b += Std.string(s);
2921
+ }
2922
+ ,toString: function() {
2923
+ return this.buf.b;
2924
+ }
2925
+ ,useEnumIndex: null
2926
+ ,useCache: null
2927
+ ,scount: null
2928
+ ,shash: null
2929
+ ,cache: null
2930
+ ,buf: null
2931
+ ,__class__: haxe.Serializer
2932
+ }
2933
+ haxe.Timer = $hxClasses["haxe.Timer"] = function(time_ms) {
2934
+ var me = this;
2935
+ this.id = window.setInterval(function() {
2936
+ me.run();
2937
+ },time_ms);
2938
+ };
2939
+ haxe.Timer.__name__ = ["haxe","Timer"];
2940
+ haxe.Timer.delay = function(f,time_ms) {
2941
+ var t = new haxe.Timer(time_ms);
2942
+ t.run = function() {
2943
+ t.stop();
2944
+ f();
2945
+ };
2946
+ return t;
2947
+ }
2948
+ haxe.Timer.measure = function(f,pos) {
2949
+ var t0 = haxe.Timer.stamp();
2950
+ var r = f();
2951
+ haxe.Log.trace(haxe.Timer.stamp() - t0 + "s",pos);
2952
+ return r;
2953
+ }
2954
+ haxe.Timer.stamp = function() {
2955
+ return new Date().getTime() / 1000;
2956
+ }
2957
+ haxe.Timer.prototype = {
2958
+ run: function() {
2959
+ }
2960
+ ,stop: function() {
2961
+ if(this.id == null) return;
2962
+ window.clearInterval(this.id);
2963
+ this.id = null;
2964
+ }
2965
+ ,id: null
2966
+ ,__class__: haxe.Timer
2967
+ }
2968
+ haxe.Unserializer = $hxClasses["haxe.Unserializer"] = function(buf) {
2969
+ this.buf = buf;
2970
+ this.length = buf.length;
2971
+ this.pos = 0;
2972
+ this.scache = new Array();
2973
+ this.cache = new Array();
2974
+ var r = haxe.Unserializer.DEFAULT_RESOLVER;
2975
+ if(r == null) {
2976
+ r = Type;
2977
+ haxe.Unserializer.DEFAULT_RESOLVER = r;
2978
+ }
2979
+ this.setResolver(r);
2980
+ };
2981
+ haxe.Unserializer.__name__ = ["haxe","Unserializer"];
2982
+ haxe.Unserializer.initCodes = function() {
2983
+ var codes = new Array();
2984
+ var _g1 = 0, _g = haxe.Unserializer.BASE64.length;
2985
+ while(_g1 < _g) {
2986
+ var i = _g1++;
2987
+ codes[haxe.Unserializer.BASE64.charCodeAt(i)] = i;
2988
+ }
2989
+ return codes;
2990
+ }
2991
+ haxe.Unserializer.run = function(v) {
2992
+ return new haxe.Unserializer(v).unserialize();
2993
+ }
2994
+ haxe.Unserializer.prototype = {
2995
+ unserialize: function() {
2996
+ switch(this.buf.charCodeAt(this.pos++)) {
2997
+ case 110:
2998
+ return null;
2999
+ case 116:
3000
+ return true;
3001
+ case 102:
3002
+ return false;
3003
+ case 122:
3004
+ return 0;
3005
+ case 105:
3006
+ return this.readDigits();
3007
+ case 100:
3008
+ var p1 = this.pos;
3009
+ while(true) {
3010
+ var c = this.buf.charCodeAt(this.pos);
3011
+ if(c >= 43 && c < 58 || c == 101 || c == 69) this.pos++; else break;
3012
+ }
3013
+ return Std.parseFloat(HxOverrides.substr(this.buf,p1,this.pos - p1));
3014
+ case 121:
3015
+ var len = this.readDigits();
3016
+ if(this.buf.charCodeAt(this.pos++) != 58 || this.length - this.pos < len) throw "Invalid string length";
3017
+ var s = HxOverrides.substr(this.buf,this.pos,len);
3018
+ this.pos += len;
3019
+ s = StringTools.urlDecode(s);
3020
+ this.scache.push(s);
3021
+ return s;
3022
+ case 107:
3023
+ return Math.NaN;
3024
+ case 109:
3025
+ return Math.NEGATIVE_INFINITY;
3026
+ case 112:
3027
+ return Math.POSITIVE_INFINITY;
3028
+ case 97:
3029
+ var buf = this.buf;
3030
+ var a = new Array();
3031
+ this.cache.push(a);
3032
+ while(true) {
3033
+ var c = this.buf.charCodeAt(this.pos);
3034
+ if(c == 104) {
3035
+ this.pos++;
3036
+ break;
3037
+ }
3038
+ if(c == 117) {
3039
+ this.pos++;
3040
+ var n = this.readDigits();
3041
+ a[a.length + n - 1] = null;
3042
+ } else a.push(this.unserialize());
3043
+ }
3044
+ return a;
3045
+ case 111:
3046
+ var o = { };
3047
+ this.cache.push(o);
3048
+ this.unserializeObject(o);
3049
+ return o;
3050
+ case 114:
3051
+ var n = this.readDigits();
3052
+ if(n < 0 || n >= this.cache.length) throw "Invalid reference";
3053
+ return this.cache[n];
3054
+ case 82:
3055
+ var n = this.readDigits();
3056
+ if(n < 0 || n >= this.scache.length) throw "Invalid string reference";
3057
+ return this.scache[n];
3058
+ case 120:
3059
+ throw this.unserialize();
3060
+ break;
3061
+ case 99:
3062
+ var name = this.unserialize();
3063
+ var cl = this.resolver.resolveClass(name);
3064
+ if(cl == null) throw "Class not found " + name;
3065
+ var o = Type.createEmptyInstance(cl);
3066
+ this.cache.push(o);
3067
+ this.unserializeObject(o);
3068
+ return o;
3069
+ case 119:
3070
+ var name = this.unserialize();
3071
+ var edecl = this.resolver.resolveEnum(name);
3072
+ if(edecl == null) throw "Enum not found " + name;
3073
+ var e = this.unserializeEnum(edecl,this.unserialize());
3074
+ this.cache.push(e);
3075
+ return e;
3076
+ case 106:
3077
+ var name = this.unserialize();
3078
+ var edecl = this.resolver.resolveEnum(name);
3079
+ if(edecl == null) throw "Enum not found " + name;
3080
+ this.pos++;
3081
+ var index = this.readDigits();
3082
+ var tag = Type.getEnumConstructs(edecl)[index];
3083
+ if(tag == null) throw "Unknown enum index " + name + "@" + index;
3084
+ var e = this.unserializeEnum(edecl,tag);
3085
+ this.cache.push(e);
3086
+ return e;
3087
+ case 108:
3088
+ var l = new List();
3089
+ this.cache.push(l);
3090
+ var buf = this.buf;
3091
+ while(this.buf.charCodeAt(this.pos) != 104) l.add(this.unserialize());
3092
+ this.pos++;
3093
+ return l;
3094
+ case 98:
3095
+ var h = new Hash();
3096
+ this.cache.push(h);
3097
+ var buf = this.buf;
3098
+ while(this.buf.charCodeAt(this.pos) != 104) {
3099
+ var s = this.unserialize();
3100
+ h.set(s,this.unserialize());
3101
+ }
3102
+ this.pos++;
3103
+ return h;
3104
+ case 113:
3105
+ var h = new IntHash();
3106
+ this.cache.push(h);
3107
+ var buf = this.buf;
3108
+ var c = this.buf.charCodeAt(this.pos++);
3109
+ while(c == 58) {
3110
+ var i = this.readDigits();
3111
+ h.set(i,this.unserialize());
3112
+ c = this.buf.charCodeAt(this.pos++);
3113
+ }
3114
+ if(c != 104) throw "Invalid IntHash format";
3115
+ return h;
3116
+ case 118:
3117
+ var d = HxOverrides.strDate(HxOverrides.substr(this.buf,this.pos,19));
3118
+ this.cache.push(d);
3119
+ this.pos += 19;
3120
+ return d;
3121
+ case 115:
3122
+ var len = this.readDigits();
3123
+ var buf = this.buf;
3124
+ if(this.buf.charCodeAt(this.pos++) != 58 || this.length - this.pos < len) throw "Invalid bytes length";
3125
+ var codes = haxe.Unserializer.CODES;
3126
+ if(codes == null) {
3127
+ codes = haxe.Unserializer.initCodes();
3128
+ haxe.Unserializer.CODES = codes;
3129
+ }
3130
+ var i = this.pos;
3131
+ var rest = len & 3;
3132
+ var size = (len >> 2) * 3 + (rest >= 2?rest - 1:0);
3133
+ var max = i + (len - rest);
3134
+ var bytes = haxe.io.Bytes.alloc(size);
3135
+ var bpos = 0;
3136
+ while(i < max) {
3137
+ var c1 = codes[buf.charCodeAt(i++)];
3138
+ var c2 = codes[buf.charCodeAt(i++)];
3139
+ bytes.b[bpos++] = (c1 << 2 | c2 >> 4) & 255;
3140
+ var c3 = codes[buf.charCodeAt(i++)];
3141
+ bytes.b[bpos++] = (c2 << 4 | c3 >> 2) & 255;
3142
+ var c4 = codes[buf.charCodeAt(i++)];
3143
+ bytes.b[bpos++] = (c3 << 6 | c4) & 255;
3144
+ }
3145
+ if(rest >= 2) {
3146
+ var c1 = codes[buf.charCodeAt(i++)];
3147
+ var c2 = codes[buf.charCodeAt(i++)];
3148
+ bytes.b[bpos++] = (c1 << 2 | c2 >> 4) & 255;
3149
+ if(rest == 3) {
3150
+ var c3 = codes[buf.charCodeAt(i++)];
3151
+ bytes.b[bpos++] = (c2 << 4 | c3 >> 2) & 255;
3152
+ }
3153
+ }
3154
+ this.pos += len;
3155
+ this.cache.push(bytes);
3156
+ return bytes;
3157
+ case 67:
3158
+ var name = this.unserialize();
3159
+ var cl = this.resolver.resolveClass(name);
3160
+ if(cl == null) throw "Class not found " + name;
3161
+ var o = Type.createEmptyInstance(cl);
3162
+ this.cache.push(o);
3163
+ o.hxUnserialize(this);
3164
+ if(this.buf.charCodeAt(this.pos++) != 103) throw "Invalid custom data";
3165
+ return o;
3166
+ default:
3167
+ }
3168
+ this.pos--;
3169
+ throw "Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos;
3170
+ }
3171
+ ,unserializeEnum: function(edecl,tag) {
3172
+ if(this.buf.charCodeAt(this.pos++) != 58) throw "Invalid enum format";
3173
+ var nargs = this.readDigits();
3174
+ if(nargs == 0) return Type.createEnum(edecl,tag);
3175
+ var args = new Array();
3176
+ while(nargs-- > 0) args.push(this.unserialize());
3177
+ return Type.createEnum(edecl,tag,args);
3178
+ }
3179
+ ,unserializeObject: function(o) {
3180
+ while(true) {
3181
+ if(this.pos >= this.length) throw "Invalid object";
3182
+ if(this.buf.charCodeAt(this.pos) == 103) break;
3183
+ var k = this.unserialize();
3184
+ if(!js.Boot.__instanceof(k,String)) throw "Invalid object key";
3185
+ var v = this.unserialize();
3186
+ o[k] = v;
3187
+ }
3188
+ this.pos++;
3189
+ }
3190
+ ,readDigits: function() {
3191
+ var k = 0;
3192
+ var s = false;
3193
+ var fpos = this.pos;
3194
+ while(true) {
3195
+ var c = this.buf.charCodeAt(this.pos);
3196
+ if(c != c) break;
3197
+ if(c == 45) {
3198
+ if(this.pos != fpos) break;
3199
+ s = true;
3200
+ this.pos++;
3201
+ continue;
3202
+ }
3203
+ if(c < 48 || c > 57) break;
3204
+ k = k * 10 + (c - 48);
3205
+ this.pos++;
3206
+ }
3207
+ if(s) k *= -1;
3208
+ return k;
3209
+ }
3210
+ ,get: function(p) {
3211
+ return this.buf.charCodeAt(p);
3212
+ }
3213
+ ,getResolver: function() {
3214
+ return this.resolver;
3215
+ }
3216
+ ,setResolver: function(r) {
3217
+ if(r == null) this.resolver = { resolveClass : function(_) {
3218
+ return null;
3219
+ }, resolveEnum : function(_) {
3220
+ return null;
3221
+ }}; else this.resolver = r;
3222
+ }
3223
+ ,resolver: null
3224
+ ,scache: null
3225
+ ,cache: null
3226
+ ,length: null
3227
+ ,pos: null
3228
+ ,buf: null
3229
+ ,__class__: haxe.Unserializer
3230
+ }
3231
+ if(!haxe.io) haxe.io = {}
3232
+ haxe.io.Bytes = $hxClasses["haxe.io.Bytes"] = function(length,b) {
3233
+ this.length = length;
3234
+ this.b = b;
3235
+ };
3236
+ haxe.io.Bytes.__name__ = ["haxe","io","Bytes"];
3237
+ haxe.io.Bytes.alloc = function(length) {
3238
+ var a = new Array();
3239
+ var _g = 0;
3240
+ while(_g < length) {
3241
+ var i = _g++;
3242
+ a.push(0);
3243
+ }
3244
+ return new haxe.io.Bytes(length,a);
3245
+ }
3246
+ haxe.io.Bytes.ofString = function(s) {
3247
+ var a = new Array();
3248
+ var _g1 = 0, _g = s.length;
3249
+ while(_g1 < _g) {
3250
+ var i = _g1++;
3251
+ var c = s.charCodeAt(i);
3252
+ if(c <= 127) a.push(c); else if(c <= 2047) {
3253
+ a.push(192 | c >> 6);
3254
+ a.push(128 | c & 63);
3255
+ } else if(c <= 65535) {
3256
+ a.push(224 | c >> 12);
3257
+ a.push(128 | c >> 6 & 63);
3258
+ a.push(128 | c & 63);
3259
+ } else {
3260
+ a.push(240 | c >> 18);
3261
+ a.push(128 | c >> 12 & 63);
3262
+ a.push(128 | c >> 6 & 63);
3263
+ a.push(128 | c & 63);
3264
+ }
3265
+ }
3266
+ return new haxe.io.Bytes(a.length,a);
3267
+ }
3268
+ haxe.io.Bytes.ofData = function(b) {
3269
+ return new haxe.io.Bytes(b.length,b);
3270
+ }
3271
+ haxe.io.Bytes.prototype = {
3272
+ getData: function() {
3273
+ return this.b;
3274
+ }
3275
+ ,toHex: function() {
3276
+ var s = new StringBuf();
3277
+ var chars = [];
3278
+ var str = "0123456789abcdef";
3279
+ var _g1 = 0, _g = str.length;
3280
+ while(_g1 < _g) {
3281
+ var i = _g1++;
3282
+ chars.push(HxOverrides.cca(str,i));
3283
+ }
3284
+ var _g1 = 0, _g = this.length;
3285
+ while(_g1 < _g) {
3286
+ var i = _g1++;
3287
+ var c = this.b[i];
3288
+ s.b += String.fromCharCode(chars[c >> 4]);
3289
+ s.b += String.fromCharCode(chars[c & 15]);
3290
+ }
3291
+ return s.b;
3292
+ }
3293
+ ,toString: function() {
3294
+ return this.readString(0,this.length);
3295
+ }
3296
+ ,readString: function(pos,len) {
3297
+ if(pos < 0 || len < 0 || pos + len > this.length) throw haxe.io.Error.OutsideBounds;
3298
+ var s = "";
3299
+ var b = this.b;
3300
+ var fcc = String.fromCharCode;
3301
+ var i = pos;
3302
+ var max = pos + len;
3303
+ while(i < max) {
3304
+ var c = b[i++];
3305
+ if(c < 128) {
3306
+ if(c == 0) break;
3307
+ s += fcc(c);
3308
+ } else if(c < 224) s += fcc((c & 63) << 6 | b[i++] & 127); else if(c < 240) {
3309
+ var c2 = b[i++];
3310
+ s += fcc((c & 31) << 12 | (c2 & 127) << 6 | b[i++] & 127);
3311
+ } else {
3312
+ var c2 = b[i++];
3313
+ var c3 = b[i++];
3314
+ s += fcc((c & 15) << 18 | (c2 & 127) << 12 | c3 << 6 & 127 | b[i++] & 127);
3315
+ }
3316
+ }
3317
+ return s;
3318
+ }
3319
+ ,compare: function(other) {
3320
+ var b1 = this.b;
3321
+ var b2 = other.b;
3322
+ var len = this.length < other.length?this.length:other.length;
3323
+ var _g = 0;
3324
+ while(_g < len) {
3325
+ var i = _g++;
3326
+ if(b1[i] != b2[i]) return b1[i] - b2[i];
3327
+ }
3328
+ return this.length - other.length;
3329
+ }
3330
+ ,sub: function(pos,len) {
3331
+ if(pos < 0 || len < 0 || pos + len > this.length) throw haxe.io.Error.OutsideBounds;
3332
+ return new haxe.io.Bytes(len,this.b.slice(pos,pos + len));
3333
+ }
3334
+ ,blit: function(pos,src,srcpos,len) {
3335
+ if(pos < 0 || srcpos < 0 || len < 0 || pos + len > this.length || srcpos + len > src.length) throw haxe.io.Error.OutsideBounds;
3336
+ var b1 = this.b;
3337
+ var b2 = src.b;
3338
+ if(b1 == b2 && pos > srcpos) {
3339
+ var i = len;
3340
+ while(i > 0) {
3341
+ i--;
3342
+ b1[i + pos] = b2[i + srcpos];
3343
+ }
3344
+ return;
3345
+ }
3346
+ var _g = 0;
3347
+ while(_g < len) {
3348
+ var i = _g++;
3349
+ b1[i + pos] = b2[i + srcpos];
3350
+ }
3351
+ }
3352
+ ,set: function(pos,v) {
3353
+ this.b[pos] = v & 255;
3354
+ }
3355
+ ,get: function(pos) {
3356
+ return this.b[pos];
3357
+ }
3358
+ ,b: null
3359
+ ,length: null
3360
+ ,__class__: haxe.io.Bytes
3361
+ }
3362
+ haxe.io.Error = $hxClasses["haxe.io.Error"] = { __ename__ : ["haxe","io","Error"], __constructs__ : ["Blocked","Overflow","OutsideBounds","Custom"] }
3363
+ haxe.io.Error.Blocked = ["Blocked",0];
3364
+ haxe.io.Error.Blocked.toString = $estr;
3365
+ haxe.io.Error.Blocked.__enum__ = haxe.io.Error;
3366
+ haxe.io.Error.Overflow = ["Overflow",1];
3367
+ haxe.io.Error.Overflow.toString = $estr;
3368
+ haxe.io.Error.Overflow.__enum__ = haxe.io.Error;
3369
+ haxe.io.Error.OutsideBounds = ["OutsideBounds",2];
3370
+ haxe.io.Error.OutsideBounds.toString = $estr;
3371
+ haxe.io.Error.OutsideBounds.__enum__ = haxe.io.Error;
3372
+ haxe.io.Error.Custom = function(e) { var $x = ["Custom",3,e]; $x.__enum__ = haxe.io.Error; $x.toString = $estr; return $x; }
3373
+ if(!haxe.remoting) haxe.remoting = {}
3374
+ haxe.remoting.Connection = $hxClasses["haxe.remoting.Connection"] = function() { }
3375
+ haxe.remoting.Connection.__name__ = ["haxe","remoting","Connection"];
3376
+ haxe.remoting.Connection.prototype = {
3377
+ call: null
3378
+ ,resolve: null
3379
+ ,__class__: haxe.remoting.Connection
3380
+ }
3381
+ haxe.remoting.Context = $hxClasses["haxe.remoting.Context"] = function() {
3382
+ this.objects = new Hash();
3383
+ };
3384
+ haxe.remoting.Context.__name__ = ["haxe","remoting","Context"];
3385
+ haxe.remoting.Context.share = function(name,obj) {
3386
+ var ctx = new haxe.remoting.Context();
3387
+ ctx.addObject(name,obj);
3388
+ return ctx;
3389
+ }
3390
+ haxe.remoting.Context.prototype = {
3391
+ call: function(path,params) {
3392
+ if(path.length < 2) throw "Invalid path '" + path.join(".") + "'";
3393
+ var inf = this.objects.get(path[0]);
3394
+ if(inf == null) throw "No such object " + path[0];
3395
+ var o = inf.obj;
3396
+ var m = Reflect.field(o,path[1]);
3397
+ if(path.length > 2) {
3398
+ if(!inf.rec) throw "Can't access " + path.join(".");
3399
+ var _g1 = 2, _g = path.length;
3400
+ while(_g1 < _g) {
3401
+ var i = _g1++;
3402
+ o = m;
3403
+ m = Reflect.field(o,path[i]);
3404
+ }
3405
+ }
3406
+ if(!Reflect.isFunction(m)) throw "No such method " + path.join(".");
3407
+ return m.apply(o,params);
3408
+ }
3409
+ ,addObject: function(name,obj,recursive) {
3410
+ this.objects.set(name,{ obj : obj, rec : recursive});
3411
+ }
3412
+ ,objects: null
3413
+ ,__class__: haxe.remoting.Context
3414
+ }
3415
+ haxe.remoting.HttpConnection = $hxClasses["haxe.remoting.HttpConnection"] = function(url,path) {
3416
+ this.__url = url;
3417
+ this.__path = path;
3418
+ };
3419
+ haxe.remoting.HttpConnection.__name__ = ["haxe","remoting","HttpConnection"];
3420
+ haxe.remoting.HttpConnection.__interfaces__ = [haxe.remoting.Connection];
3421
+ haxe.remoting.HttpConnection.urlConnect = function(url) {
3422
+ return new haxe.remoting.HttpConnection(url,[]);
3423
+ }
3424
+ haxe.remoting.HttpConnection.processRequest = function(requestData,ctx) {
3425
+ try {
3426
+ var u = new haxe.Unserializer(requestData);
3427
+ var path = u.unserialize();
3428
+ var args = u.unserialize();
3429
+ var data = ctx.call(path,args);
3430
+ var s = new haxe.Serializer();
3431
+ s.serialize(data);
3432
+ return "hxr" + s.toString();
3433
+ } catch( e ) {
3434
+ var s = new haxe.Serializer();
3435
+ s.serializeException(e);
3436
+ return "hxr" + s.toString();
3437
+ }
3438
+ }
3439
+ haxe.remoting.HttpConnection.prototype = {
3440
+ call: function(params) {
3441
+ var data = null;
3442
+ var h = new haxe.Http(this.__url);
3443
+ h.async = false;
3444
+ var s = new haxe.Serializer();
3445
+ s.serialize(this.__path);
3446
+ s.serialize(params);
3447
+ h.setHeader("X-Haxe-Remoting","1");
3448
+ h.setParameter("__x",s.toString());
3449
+ h.onData = function(d) {
3450
+ data = d;
3451
+ };
3452
+ h.onError = function(e) {
3453
+ throw e;
3454
+ };
3455
+ h.request(true);
3456
+ if(HxOverrides.substr(data,0,3) != "hxr") throw "Invalid response : '" + data + "'";
3457
+ data = HxOverrides.substr(data,3,null);
3458
+ return new haxe.Unserializer(data).unserialize();
3459
+ }
3460
+ ,resolve: function(name) {
3461
+ var c = new haxe.remoting.HttpConnection(this.__url,this.__path.slice());
3462
+ c.__path.push(name);
3463
+ return c;
3464
+ }
3465
+ ,__path: null
3466
+ ,__url: null
3467
+ ,__class__: haxe.remoting.HttpConnection
3468
+ }
3469
+ var js = js || {}
3470
+ js.Boot = $hxClasses["js.Boot"] = function() { }
3471
+ js.Boot.__name__ = ["js","Boot"];
3472
+ js.Boot.__unhtml = function(s) {
3473
+ return s.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
3474
+ }
3475
+ js.Boot.__trace = function(v,i) {
3476
+ var msg = i != null?i.fileName + ":" + i.lineNumber + ": ":"";
3477
+ msg += js.Boot.__string_rec(v,"");
3478
+ var d;
3479
+ if(typeof(document) != "undefined" && (d = document.getElementById("haxe:trace")) != null) d.innerHTML += js.Boot.__unhtml(msg) + "<br/>"; else if(typeof(console) != "undefined" && console.log != null) console.log(msg);
3480
+ }
3481
+ js.Boot.__clear_trace = function() {
3482
+ var d = document.getElementById("haxe:trace");
3483
+ if(d != null) d.innerHTML = "";
3484
+ }
3485
+ js.Boot.isClass = function(o) {
3486
+ return o.__name__;
3487
+ }
3488
+ js.Boot.isEnum = function(e) {
3489
+ return e.__ename__;
3490
+ }
3491
+ js.Boot.getClass = function(o) {
3492
+ return o.__class__;
3493
+ }
3494
+ js.Boot.__string_rec = function(o,s) {
3495
+ if(o == null) return "null";
3496
+ if(s.length >= 5) return "<...>";
3497
+ var t = typeof(o);
3498
+ if(t == "function" && (o.__name__ || o.__ename__)) t = "object";
3499
+ switch(t) {
3500
+ case "object":
3501
+ if(o instanceof Array) {
3502
+ if(o.__enum__) {
3503
+ if(o.length == 2) return o[0];
3504
+ var str = o[0] + "(";
3505
+ s += "\t";
3506
+ var _g1 = 2, _g = o.length;
3507
+ while(_g1 < _g) {
3508
+ var i = _g1++;
3509
+ if(i != 2) str += "," + js.Boot.__string_rec(o[i],s); else str += js.Boot.__string_rec(o[i],s);
3510
+ }
3511
+ return str + ")";
3512
+ }
3513
+ var l = o.length;
3514
+ var i;
3515
+ var str = "[";
3516
+ s += "\t";
3517
+ var _g = 0;
3518
+ while(_g < l) {
3519
+ var i1 = _g++;
3520
+ str += (i1 > 0?",":"") + js.Boot.__string_rec(o[i1],s);
3521
+ }
3522
+ str += "]";
3523
+ return str;
3524
+ }
3525
+ var tostr;
3526
+ try {
3527
+ tostr = o.toString;
3528
+ } catch( e ) {
3529
+ return "???";
3530
+ }
3531
+ if(tostr != null && tostr != Object.toString) {
3532
+ var s2 = o.toString();
3533
+ if(s2 != "[object Object]") return s2;
3534
+ }
3535
+ var k = null;
3536
+ var str = "{\n";
3537
+ s += "\t";
3538
+ var hasp = o.hasOwnProperty != null;
3539
+ for( var k in o ) { ;
3540
+ if(hasp && !o.hasOwnProperty(k)) {
3541
+ continue;
3542
+ }
3543
+ if(k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__") {
3544
+ continue;
3545
+ }
3546
+ if(str.length != 2) str += ", \n";
3547
+ str += s + k + " : " + js.Boot.__string_rec(o[k],s);
3548
+ }
3549
+ s = s.substring(1);
3550
+ str += "\n" + s + "}";
3551
+ return str;
3552
+ case "function":
3553
+ return "<function>";
3554
+ case "string":
3555
+ return o;
3556
+ default:
3557
+ return String(o);
3558
+ }
3559
+ }
3560
+ js.Boot.__interfLoop = function(cc,cl) {
3561
+ if(cc == null) return false;
3562
+ if(cc == cl) return true;
3563
+ var intf = cc.__interfaces__;
3564
+ if(intf != null) {
3565
+ var _g1 = 0, _g = intf.length;
3566
+ while(_g1 < _g) {
3567
+ var i = _g1++;
3568
+ var i1 = intf[i];
3569
+ if(i1 == cl || js.Boot.__interfLoop(i1,cl)) return true;
3570
+ }
3571
+ }
3572
+ return js.Boot.__interfLoop(cc.__super__,cl);
3573
+ }
3574
+ js.Boot.__instanceof = function(o,cl) {
3575
+ try {
3576
+ if(o instanceof cl) {
3577
+ if(cl == Array) return o.__enum__ == null;
3578
+ return true;
3579
+ }
3580
+ if(js.Boot.__interfLoop(o.__class__,cl)) return true;
3581
+ } catch( e ) {
3582
+ if(cl == null) return false;
3583
+ }
3584
+ switch(cl) {
3585
+ case Int:
3586
+ return Math.ceil(o%2147483648.0) === o;
3587
+ case Float:
3588
+ return typeof(o) == "number";
3589
+ case Bool:
3590
+ return o === true || o === false;
3591
+ case String:
3592
+ return typeof(o) == "string";
3593
+ case Dynamic:
3594
+ return true;
3595
+ default:
3596
+ if(o == null) return false;
3597
+ if(cl == Class && o.__name__ != null) return true; else null;
3598
+ if(cl == Enum && o.__ename__ != null) return true; else null;
3599
+ return o.__enum__ == cl;
3600
+ }
3601
+ }
3602
+ js.Boot.__cast = function(o,t) {
3603
+ if(js.Boot.__instanceof(o,t)) return o; else throw "Cannot cast " + Std.string(o) + " to " + Std.string(t);
3604
+ }
3605
+ js.Lib = $hxClasses["js.Lib"] = function() { }
3606
+ js.Lib.__name__ = ["js","Lib"];
3607
+ js.Lib.document = null;
3608
+ js.Lib.window = null;
3609
+ js.Lib.debug = function() {
3610
+ debugger;
3611
+ }
3612
+ js.Lib.alert = function(v) {
3613
+ alert(js.Boot.__string_rec(v,""));
3614
+ }
3615
+ js.Lib.eval = function(code) {
3616
+ return eval(code);
3617
+ }
3618
+ js.Lib.setErrorHandler = function(f) {
3619
+ js.Lib.onerror = f;
3620
+ }
3621
+ function $iterator(o) { if( o instanceof Array ) return function() { return HxOverrides.iter(o); }; return typeof(o.iterator) == 'function' ? $bind(o,o.iterator) : o.iterator; };
3622
+ var $_;
3623
+ function $bind(o,m) { var f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; return f; };
3624
+ if(Array.prototype.indexOf) HxOverrides.remove = function(a,o) {
3625
+ var i = a.indexOf(o);
3626
+ if(i == -1) return false;
3627
+ a.splice(i,1);
3628
+ return true;
3629
+ }; else null;
3630
+ Math.__name__ = ["Math"];
3631
+ Math.NaN = Number.NaN;
3632
+ Math.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
3633
+ Math.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
3634
+ $hxClasses.Math = Math;
3635
+ Math.isFinite = function(i) {
3636
+ return isFinite(i);
3637
+ };
3638
+ Math.isNaN = function(i) {
3639
+ return isNaN(i);
3640
+ };
3641
+ String.prototype.__class__ = $hxClasses.String = String;
3642
+ String.__name__ = ["String"];
3643
+ Array.prototype.__class__ = $hxClasses.Array = Array;
3644
+ Array.__name__ = ["Array"];
3645
+ Date.prototype.__class__ = $hxClasses.Date = Date;
3646
+ Date.__name__ = ["Date"];
3647
+ var Int = $hxClasses.Int = { __name__ : ["Int"]};
3648
+ var Dynamic = $hxClasses.Dynamic = { __name__ : ["Dynamic"]};
3649
+ var Float = $hxClasses.Float = Number;
3650
+ Float.__name__ = ["Float"];
3651
+ var Bool = $hxClasses.Bool = Boolean;
3652
+ Bool.__ename__ = ["Bool"];
3653
+ var Class = $hxClasses.Class = { __name__ : ["Class"]};
3654
+ var Enum = { };
3655
+ var Void = $hxClasses.Void = { __ename__ : ["Void"]};
3656
+ if(typeof(JSON) != "undefined") haxe.Json = JSON;
3657
+ if(typeof document != "undefined") js.Lib.document = document;
3658
+ if(typeof window != "undefined") {
3659
+ js.Lib.window = window;
3660
+ js.Lib.window.onerror = function(msg,url,line) {
3661
+ var f = js.Lib.onerror;
3662
+ if(f == null) return false;
3663
+ return f(msg,[url + ":" + line]);
3664
+ };
3665
+ }
3666
+ js.XMLHttpRequest = window.XMLHttpRequest?XMLHttpRequest:window.ActiveXObject?function() {
3667
+ try {
3668
+ return new ActiveXObject("Msxml2.XMLHTTP");
3669
+ } catch( e ) {
3670
+ try {
3671
+ return new ActiveXObject("Microsoft.XMLHTTP");
3672
+ } catch( e1 ) {
3673
+ throw "Unable to create XMLHttpRequest object.";
3674
+ }
3675
+ }
3676
+ }:(function($this) {
3677
+ var $r;
3678
+ throw "Unable to create XMLHttpRequest object.";
3679
+ return $r;
3680
+ }(this));
3681
+ com.wiris.js.JsPluginViewer.USE_CREATE_IMAGE = 1;
3682
+ com.wiris.js.JsPluginViewer.DEBUG = false;
3683
+ com.wiris.js.JsPluginViewer.TECH = "java";
3684
+ com.wiris.js.JsPluginViewer.VERSION = "7.1.0.1388";
3685
+ com.wiris.system.JsDOMUtils.TOUCHHOLD_MOVE_MARGIN = 10;
3686
+ com.wiris.system.JsDOMUtils.browser = new com.wiris.system.JsBrowser();
3687
+ com.wiris.system.JsDOMUtils.initialized = false;
3688
+ com.wiris.system.JsDOMUtils.touchDeviceListeners = new Array();
3689
+ com.wiris.system.JsDOMUtils.mouseDeviceListeners = new Array();
3690
+ com.wiris.system.JsDOMUtils.internetExplorerPointers = new Hash();
3691
+ haxe.Serializer.USE_CACHE = false;
3692
+ haxe.Serializer.USE_ENUM_INDEX = false;
3693
+ haxe.Serializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";
3694
+ haxe.Unserializer.DEFAULT_RESOLVER = Type;
3695
+ haxe.Unserializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";
3696
+ haxe.Unserializer.CODES = null;
3697
+ haxe.remoting.HttpConnection.TIMEOUT = 10;
3698
+ js.Lib.onerror = null;
3699
+ com.wiris.js.JsPluginViewer.main();
3700
+ delete Array.prototype.__class__; }());