radiant-ck_editor_filter-extension 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (873) hide show
  1. data/lib/radiant-ck_editor_filter-extension.rb +1 -1
  2. data/public/javascripts/extensions/ck_editor_filter/ckeditor/CHANGES.md +378 -0
  3. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{LICENSE.html → LICENSE.md} +24 -94
  4. data/public/javascripts/extensions/ck_editor_filter/ckeditor/README.md +39 -0
  5. data/public/javascripts/extensions/ck_editor_filter/ckeditor/adapters/jquery.js +10 -6
  6. data/public/javascripts/extensions/ck_editor_filter/ckeditor/build-config.js +96 -0
  7. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.js +1067 -145
  8. data/public/javascripts/extensions/ck_editor_filter/ckeditor/config.js +10 -11
  9. data/public/javascripts/extensions/ck_editor_filter/ckeditor/contents.css +106 -6
  10. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en.js +3 -4
  11. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -7
  12. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  13. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
  14. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
  15. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -0
  16. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
  17. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
  18. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
  19. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
  20. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
  21. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
  22. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
  23. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
  24. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
  25. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
  26. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
  27. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +10 -0
  28. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -0
  29. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +10 -0
  30. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
  31. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
  32. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
  33. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
  34. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +10 -0
  35. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -0
  36. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
  37. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +8 -0
  38. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
  39. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +9 -0
  40. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
  41. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
  42. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
  43. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
  44. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
  45. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
  46. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
  47. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
  48. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -0
  49. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
  50. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -0
  51. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
  52. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
  53. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -0
  54. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
  55. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +10 -0
  56. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -0
  57. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -0
  58. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -0
  59. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
  60. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
  61. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
  62. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
  63. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +10 -0
  64. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
  65. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  66. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +7 -0
  67. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/about.js +7 -6
  68. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  69. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  70. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/clipboard/dialogs/paste.js +11 -7
  71. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
  72. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/beautify.min.js +44 -0
  73. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +46 -0
  74. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +15 -0
  75. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.min.js +214 -0
  76. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +52 -0
  77. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +21 -0
  78. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +74 -0
  79. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/3024-day.css +34 -0
  80. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/3024-night.css +34 -0
  81. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +5 -0
  82. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/ambiance.css +75 -0
  83. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/base16-dark.css +34 -0
  84. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/base16-light.css +34 -0
  85. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/blackboard.css +28 -0
  86. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/cobalt.css +21 -0
  87. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/eclipse.css +23 -0
  88. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/elegant.css +13 -0
  89. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/erlang-dark.css +30 -0
  90. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/lesser-dark.css +47 -0
  91. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/mbo.css +37 -0
  92. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/midnight.css +43 -0
  93. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/monokai.css +29 -0
  94. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/neat.css +12 -0
  95. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/night.css +24 -0
  96. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/paraiso-dark.css +34 -0
  97. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/paraiso-light.css +34 -0
  98. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/rubyblue.css +23 -0
  99. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/solarized.css +180 -0
  100. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/the-matrix.css +26 -0
  101. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css +34 -0
  102. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/twilight.css +28 -0
  103. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/vibrant-ink.css +30 -0
  104. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/xq-dark.css +49 -0
  105. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/codemirror/theme/xq-light.css +43 -0
  106. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/dialog/dialogDefinition.js +4 -4
  107. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/div/dialogs/div.js +9 -8
  108. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{images → plugins/fakeobjects/images}/spacer.gif +0 -0
  109. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/find/dialogs/find.js +24 -9
  110. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/dialogs/flash.js +24 -9
  111. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/images/placeholder.png +0 -0
  112. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/button.js +8 -6
  113. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/checkbox.js +8 -6
  114. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/form.js +8 -6
  115. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -6
  116. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/radio.js +8 -6
  117. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/select.js +20 -9
  118. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textarea.js +8 -6
  119. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textfield.js +10 -6
  120. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  121. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/icons.png +0 -0
  122. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/icons_hidpi.png +0 -0
  123. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/dialogs/iframe.js +10 -7
  124. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  125. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/image/dialogs/image.js +43 -13
  126. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_source/skins/kama → plugins/image}/images/noimage.png +0 -0
  127. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/anchor.js +8 -6
  128. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/link.js +37 -11
  129. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/images/anchor.png +0 -0
  130. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  131. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -6
  132. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  133. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/magicline/images/icon.png +0 -0
  134. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/icons/hidpi/oembed.png +0 -0
  135. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/icons/oembed.png +0 -0
  136. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/de.js +23 -0
  137. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/en.js +23 -0
  138. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/fr.js +25 -0
  139. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/nl.js +23 -0
  140. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/pl.js +23 -0
  141. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/pt-br.js +23 -0
  142. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/ru.js +23 -0
  143. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/lang/tr.js +23 -0
  144. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +11 -0
  145. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/oembed/plugin.js +347 -0
  146. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  147. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/{paperclipped/images/icon.png → paperclip/icons/paperclip.png} +0 -0
  148. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/paperclip/plugin.js +15 -0
  149. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastefromword/filter/default.js +31 -11
  150. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/preview/preview.html +10 -0
  151. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/radiantpreview/{images/radiant-preview.png → icons/radiantpreview.png} +0 -0
  152. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/radiantpreview/plugin.js +14 -102
  153. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/LICENSE.md +28 -0
  154. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/README.md +25 -0
  155. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/options.js +20 -8
  156. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/toolbar.css +70 -5
  157. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  158. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  159. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  160. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  161. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  162. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  163. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  164. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  165. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  166. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  167. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  168. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  169. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
  170. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
  171. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
  172. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  173. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  174. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  175. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  176. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  177. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  178. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
  179. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  180. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
  181. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  182. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
  183. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  184. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
  185. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
  186. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  187. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
  188. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
  189. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  190. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
  191. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
  192. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
  193. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  194. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  195. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  196. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  197. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
  198. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  199. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
  200. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
  201. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
  202. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  203. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
  204. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
  205. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
  206. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
  207. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  208. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  209. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
  210. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
  211. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  212. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
  213. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -7
  214. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/table/dialogs/table.js +21 -9
  215. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -8
  216. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  217. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/dialogs/templates.js +10 -7
  218. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/default.js +6 -6
  219. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  220. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  221. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  222. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/widget/images/handle.png +0 -0
  223. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/LICENSE.md +28 -0
  224. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/README.md +25 -0
  225. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/ciframe.html +18 -1
  226. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/tmp.html +118 -0
  227. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  228. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.css +78 -2
  229. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.js +67 -7
  230. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
  231. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/ajax.html +82 -0
  232. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_samples → samples}/api.html +94 -79
  233. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/appendto.html +57 -0
  234. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/assets/inlineall/logo.png +0 -0
  235. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_samples/assets/output_xhtml.css → samples/assets/outputxhtml/outputxhtml.css} +2 -2
  236. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/assets/posteddata.php +59 -0
  237. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/assets/sample.css +3 -0
  238. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/assets/sample.jpg +0 -0
  239. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/assets/uilanguages/languages.js +7 -0
  240. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/datafiltering.html +401 -0
  241. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/divreplace.html +141 -0
  242. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/index.html +128 -0
  243. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/inlineall.html +311 -0
  244. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/inlinebycode.html +121 -0
  245. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/inlinetextarea.html +110 -0
  246. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/jquery.html +97 -0
  247. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
  248. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/dialog/dialog.html +187 -0
  249. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
  250. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_samples/assets/output_for_flash.fla → samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla} +0 -0
  251. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_samples/assets/output_for_flash.swf → samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf} +0 -0
  252. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
  253. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
  254. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
  255. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/magicline/magicline.html +206 -0
  256. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
  257. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
  258. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/readonly.html +73 -0
  259. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/replacebyclass.html +57 -0
  260. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/replacebycode.html +56 -0
  261. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/sample.css +356 -0
  262. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/sample.js +50 -0
  263. data/public/javascripts/extensions/ck_editor_filter/ckeditor/{_samples → samples}/sample_posteddata.php +5 -10
  264. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/tabindex.html +75 -0
  265. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/uicolor.html +69 -0
  266. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/uilanguages.html +119 -0
  267. data/public/javascripts/extensions/ck_editor_filter/ckeditor/samples/xhtmlstyle.html +231 -0
  268. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog.css +5 -0
  269. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog_ie.css +5 -0
  270. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog_ie7.css +5 -0
  271. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog_ie8.css +5 -0
  272. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog_iequirks.css +5 -0
  273. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/dialog_opera.css +5 -0
  274. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor.css +5 -0
  275. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor_gecko.css +5 -0
  276. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor_ie.css +5 -0
  277. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor_ie7.css +5 -0
  278. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor_ie8.css +5 -0
  279. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/editor_iequirks.css +5 -0
  280. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/icons.png +0 -0
  281. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/icons_hidpi.png +0 -0
  282. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/arrow.png +0 -0
  283. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/close.png +0 -0
  284. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  285. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  286. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  287. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  288. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/lock-open.png +0 -0
  289. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/lock.png +0 -0
  290. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/images/refresh.png +0 -0
  291. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/moono/readme.md +51 -0
  292. data/public/javascripts/extensions/ck_editor_filter/ckeditor/styles.js +111 -0
  293. metadata +254 -631
  294. data/public/javascripts/extensions/ck_editor_filter/ckeditor/CHANGES.html +0 -1295
  295. data/public/javascripts/extensions/ck_editor_filter/ckeditor/INSTALL.html +0 -92
  296. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/application.xml +0 -32
  297. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.bat +0 -9
  298. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.sh +0 -8
  299. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/sample.html +0 -45
  300. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ajax.html +0 -98
  301. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog.html +0 -198
  302. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog/my_dialog.js +0 -28
  303. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/advanced.asp +0 -105
  304. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/events.asp +0 -136
  305. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/index.html +0 -103
  306. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replace.asp +0 -72
  307. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replaceall.asp +0 -77
  308. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/sample_posteddata.asp +0 -46
  309. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/standalone.asp +0 -72
  310. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/_posteddata.php +0 -59
  311. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/parsesample.css +0 -70
  312. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/swfobject.js +0 -18
  313. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/autogrow.html +0 -103
  314. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/bbcode.html +0 -136
  315. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/devtools.html +0 -94
  316. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/divreplace.html +0 -154
  317. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/enterkey.html +0 -115
  318. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/fullpage.html +0 -82
  319. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/index.html +0 -116
  320. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/jqueryadapter.html +0 -99
  321. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_for_flash.html +0 -275
  322. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_html.html +0 -285
  323. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_xhtml.html +0 -181
  324. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/advanced.php +0 -120
  325. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/events.php +0 -153
  326. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/index.html +0 -47
  327. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replace.php +0 -87
  328. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replaceall.php +0 -88
  329. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/standalone.php +0 -83
  330. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/placeholder.html +0 -81
  331. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/readonly.html +0 -91
  332. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebyclass.html +0 -64
  333. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebycode.html +0 -97
  334. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.css +0 -163
  335. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.js +0 -65
  336. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sharedspaces.html +0 -153
  337. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/skins.html +0 -110
  338. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/stylesheetparser.html +0 -93
  339. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/tableresize.html +0 -115
  340. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_color.html +0 -129
  341. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_languages.html +0 -134
  342. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/adapters/jquery.js +0 -306
  343. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/_bootstrap.js +0 -87
  344. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor.js +0 -141
  345. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_base.js +0 -227
  346. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_basic.js +0 -238
  347. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/command.js +0 -209
  348. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/commanddefinition.js +0 -129
  349. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/config.js +0 -431
  350. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dataprocessor.js +0 -65
  351. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom.js +0 -20
  352. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/comment.js +0 -32
  353. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/document.js +0 -251
  354. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/documentfragment.js +0 -49
  355. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/domobject.js +0 -258
  356. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/element.js +0 -1663
  357. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/elementpath.js +0 -119
  358. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/event.js +0 -142
  359. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/node.js +0 -690
  360. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/nodelist.js +0 -26
  361. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/range.js +0 -2032
  362. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/rangelist.js +0 -213
  363. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/text.js +0 -128
  364. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/walker.js +0 -462
  365. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/window.js +0 -96
  366. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dtd.js +0 -237
  367. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor.js +0 -1041
  368. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor_basic.js +0 -186
  369. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/env.js +0 -282
  370. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/event.js +0 -342
  371. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/eventInfo.js +0 -120
  372. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/focusmanager.js +0 -152
  373. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser.js +0 -224
  374. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/basicwriter.js +0 -145
  375. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/cdata.js +0 -43
  376. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/comment.js +0 -60
  377. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/element.js +0 -249
  378. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/filter.js +0 -288
  379. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/fragment.js +0 -492
  380. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/text.js +0 -55
  381. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/lang.js +0 -157
  382. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/loader.js +0 -240
  383. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugindefinition.js +0 -83
  384. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugins.js +0 -103
  385. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/resourcemanager.js +0 -238
  386. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/scriptloader.js +0 -180
  387. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/skins.js +0 -184
  388. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/themes.js +0 -19
  389. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/tools.js +0 -734
  390. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ui.js +0 -128
  391. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_languages.js +0 -84
  392. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_translationstatus.txt +0 -61
  393. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/af.js +0 -810
  394. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ar.js +0 -810
  395. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bg.js +0 -810
  396. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bn.js +0 -810
  397. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bs.js +0 -810
  398. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ca.js +0 -810
  399. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cs.js +0 -810
  400. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cy.js +0 -810
  401. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/da.js +0 -810
  402. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/de.js +0 -810
  403. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/el.js +0 -810
  404. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-au.js +0 -810
  405. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-ca.js +0 -810
  406. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-gb.js +0 -810
  407. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en.js +0 -810
  408. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eo.js +0 -810
  409. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/es.js +0 -810
  410. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/et.js +0 -810
  411. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eu.js +0 -810
  412. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fa.js +0 -810
  413. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fi.js +0 -810
  414. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fo.js +0 -810
  415. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr-ca.js +0 -810
  416. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr.js +0 -810
  417. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gl.js +0 -810
  418. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gu.js +0 -810
  419. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/he.js +0 -810
  420. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hi.js +0 -810
  421. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hr.js +0 -810
  422. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hu.js +0 -810
  423. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/is.js +0 -810
  424. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/it.js +0 -810
  425. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ja.js +0 -810
  426. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ka.js +0 -810
  427. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/km.js +0 -810
  428. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ko.js +0 -810
  429. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lt.js +0 -810
  430. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lv.js +0 -810
  431. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/mn.js +0 -810
  432. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ms.js +0 -810
  433. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nb.js +0 -810
  434. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nl.js +0 -810
  435. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/no.js +0 -810
  436. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pl.js +0 -810
  437. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt-br.js +0 -809
  438. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt.js +0 -810
  439. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ro.js +0 -810
  440. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ru.js +0 -810
  441. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sk.js +0 -810
  442. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sl.js +0 -810
  443. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr-latn.js +0 -810
  444. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr.js +0 -810
  445. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sv.js +0 -809
  446. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/th.js +0 -810
  447. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/tr.js +0 -809
  448. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/uk.js +0 -810
  449. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/vi.js +0 -810
  450. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh-cn.js +0 -810
  451. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh.js +0 -810
  452. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -222
  453. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -108
  454. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -216
  455. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -47
  456. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/about.js +0 -76
  457. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
  458. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/plugin.js +0 -24
  459. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/adobeair/plugin.js +0 -228
  460. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/ajax/plugin.js +0 -152
  461. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/autogrow/plugin.js +0 -88
  462. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/basicstyles/plugin.js +0 -101
  463. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bbcode/plugin.js +0 -924
  464. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bidi/plugin.js +0 -331
  465. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/blockquote/plugin.js +0 -305
  466. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/button/plugin.js +0 -285
  467. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -223
  468. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/plugin.js +0 -446
  469. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colorbutton/plugin.js +0 -295
  470. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -340
  471. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/plugin.js +0 -15
  472. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/contextmenu/plugin.js +0 -177
  473. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/lang/en.js +0 -16
  474. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/plugin.js +0 -173
  475. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -1099
  476. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/plugin.js +0 -3235
  477. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogadvtab/plugin.js +0 -205
  478. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogui/plugin.js +0 -1537
  479. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/dialogs/div.js +0 -535
  480. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/plugin.js +0 -121
  481. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/dialogs/docprops.js +0 -686
  482. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/plugin.js +0 -22
  483. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/domiterator/plugin.js +0 -361
  484. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/editingblock/plugin.js +0 -269
  485. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/elementspath/plugin.js +0 -218
  486. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/enterkey/plugin.js +0 -399
  487. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/entities/plugin.js +0 -250
  488. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -126
  489. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/filebrowser/plugin.js +0 -524
  490. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/dialogs/find.js +0 -895
  491. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/plugin.js +0 -47
  492. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
  493. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
  494. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/plugin.js +0 -168
  495. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/floatpanel/plugin.js +0 -405
  496. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/font/plugin.js +0 -234
  497. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/format/plugin.js +0 -197
  498. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/button.js +0 -118
  499. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -153
  500. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
  501. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -100
  502. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -135
  503. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/select.js +0 -562
  504. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -114
  505. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -199
  506. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  507. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/plugin.js +0 -288
  508. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -36
  509. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -595
  510. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -319
  511. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/dialogs/iframe.js +0 -257
  512. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  513. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/plugin.js +0 -106
  514. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframedialog/plugin.js +0 -188
  515. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/dialogs/image.js +0 -1403
  516. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/plugin.js +0 -81
  517. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/indent/plugin.js +0 -461
  518. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/justify/plugin.js +0 -253
  519. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/keystrokes/plugin.js +0 -225
  520. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -144
  521. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/link.js +0 -1400
  522. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
  523. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/plugin.js +0 -336
  524. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/list/plugin.js +0 -727
  525. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/listblock/plugin.js +0 -257
  526. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -204
  527. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/plugin.js +0 -66
  528. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/maximize/plugin.js +0 -352
  529. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menu/plugin.js +0 -505
  530. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menubutton/plugin.js +0 -98
  531. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/newpage/plugin.js +0 -54
  532. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
  533. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/plugin.js +0 -164
  534. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panel/plugin.js +0 -402
  535. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panelbutton/plugin.js +0 -146
  536. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1376
  537. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/plugin.js +0 -141
  538. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -67
  539. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/plugin.js +0 -98
  540. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +0 -71
  541. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/en.js +0 -16
  542. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/he.js +0 -16
  543. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  544. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/plugin.js +0 -171
  545. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/popup/plugin.js +0 -64
  546. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/preview/plugin.js +0 -109
  547. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/print/plugin.js +0 -42
  548. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/removeformat/plugin.js +0 -185
  549. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/resize/plugin.js +0 -168
  550. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/richcombo/plugin.js +0 -378
  551. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/save/plugin.js +0 -56
  552. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -537
  553. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -71
  554. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/plugin.js +0 -964
  555. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/selection/plugin.js +0 -1563
  556. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  557. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  558. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  559. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  560. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  561. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  562. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  563. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  564. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  565. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  566. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  567. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/plugin.js +0 -160
  568. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showborders/plugin.js +0 -207
  569. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -224
  570. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
  571. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
  572. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
  573. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
  574. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
  575. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
  576. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
  577. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
  578. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
  579. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
  580. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
  581. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
  582. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
  583. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
  584. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
  585. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
  586. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
  587. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
  588. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
  589. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  590. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
  591. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/plugin.js +0 -94
  592. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/sourcearea/plugin.js +0 -209
  593. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -350
  594. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/lang/en.js +0 -89
  595. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/plugin.js +0 -70
  596. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/styles/plugin.js +0 -1678
  597. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/styles/styles/default.js +0 -88
  598. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylescombo/plugin.js +0 -219
  599. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylesheetparser/plugin.js +0 -143
  600. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tab/plugin.js +0 -367
  601. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/dialogs/table.js +0 -672
  602. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/plugin.js +0 -78
  603. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tableresize/plugin.js +0 -450
  604. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -525
  605. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/plugin.js +0 -1191
  606. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -234
  607. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/plugin.js +0 -99
  608. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/default.js +0 -94
  609. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
  610. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
  611. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
  612. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/toolbar/plugin.js +0 -545
  613. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -205
  614. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/en.js +0 -15
  615. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/he.js +0 -15
  616. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/plugin.js +0 -37
  617. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
  618. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  619. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  620. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  621. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  622. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -15
  623. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -71
  624. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/undo/plugin.js +0 -580
  625. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -49
  626. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  627. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -82
  628. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -192
  629. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/plugin.js +0 -33
  630. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -1351
  631. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/xml/plugin.js +0 -170
  632. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/dialog.css +0 -920
  633. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/editor.css +0 -25
  634. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/elementspath.css +0 -73
  635. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.css +0 -366
  636. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.png +0 -0
  637. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  638. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  639. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  640. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  641. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/mini.gif +0 -0
  642. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/sprites.png +0 -0
  643. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  644. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  645. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/mainui.css +0 -203
  646. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/menu.css +0 -232
  647. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/panel.css +0 -217
  648. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/presets.css +0 -49
  649. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/reset.css +0 -84
  650. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/richcombo.css +0 -287
  651. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/skin.js +0 -236
  652. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/templates.css +0 -88
  653. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/toolbar.css +0 -407
  654. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/dialog.css +0 -826
  655. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/editor.css +0 -25
  656. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/elementspath.css +0 -74
  657. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.css +0 -363
  658. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.png +0 -0
  659. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  660. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
  661. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
  662. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
  663. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
  664. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
  665. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
  666. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
  667. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/mainui.css +0 -153
  668. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/menu.css +0 -229
  669. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/panel.css +0 -212
  670. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/presets.css +0 -49
  671. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/reset.css +0 -84
  672. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/richcombo.css +0 -309
  673. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/skin.js +0 -74
  674. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/templates.css +0 -87
  675. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/toolbar.css +0 -522
  676. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/dialog.css +0 -842
  677. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/editor.css +0 -25
  678. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/elementspath.css +0 -74
  679. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.css +0 -363
  680. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.png +0 -0
  681. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  682. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
  683. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
  684. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
  685. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/mini.gif +0 -0
  686. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/noimage.png +0 -0
  687. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/sprites.png +0 -0
  688. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
  689. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
  690. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/mainui.css +0 -162
  691. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/menu.css +0 -232
  692. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/panel.css +0 -212
  693. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/presets.css +0 -50
  694. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/reset.css +0 -84
  695. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/richcombo.css +0 -302
  696. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/skin.js +0 -70
  697. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/templates.css +0 -87
  698. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/toolbar.css +0 -465
  699. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/themes/default/theme.js +0 -394
  700. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.asp +0 -955
  701. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.pack +0 -211
  702. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.php +0 -29
  703. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic.js +0 -8
  704. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic_source.js +0 -20
  705. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php4.php +0 -566
  706. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php5.php +0 -556
  707. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_source.js +0 -25
  708. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_languages.js +0 -6
  709. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_translationstatus.txt +0 -61
  710. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/af.js +0 -6
  711. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ar.js +0 -6
  712. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bg.js +0 -6
  713. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bn.js +0 -6
  714. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bs.js +0 -6
  715. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ca.js +0 -6
  716. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cs.js +0 -6
  717. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cy.js +0 -6
  718. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/da.js +0 -6
  719. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/de.js +0 -6
  720. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/el.js +0 -6
  721. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-au.js +0 -6
  722. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-ca.js +0 -6
  723. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-gb.js +0 -6
  724. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eo.js +0 -6
  725. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/es.js +0 -6
  726. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/et.js +0 -6
  727. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eu.js +0 -6
  728. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fa.js +0 -6
  729. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fi.js +0 -6
  730. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fo.js +0 -6
  731. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr-ca.js +0 -6
  732. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr.js +0 -6
  733. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gl.js +0 -6
  734. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gu.js +0 -6
  735. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/he.js +0 -6
  736. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hi.js +0 -6
  737. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hr.js +0 -6
  738. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hu.js +0 -6
  739. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/is.js +0 -6
  740. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/it.js +0 -6
  741. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ja.js +0 -6
  742. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ka.js +0 -6
  743. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/km.js +0 -6
  744. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ko.js +0 -6
  745. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lt.js +0 -6
  746. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lv.js +0 -6
  747. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/mn.js +0 -6
  748. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ms.js +0 -6
  749. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nb.js +0 -6
  750. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nl.js +0 -6
  751. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/no.js +0 -6
  752. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pl.js +0 -6
  753. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt-br.js +0 -6
  754. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt.js +0 -6
  755. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ro.js +0 -6
  756. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ru.js +0 -6
  757. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sk.js +0 -6
  758. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sl.js +0 -6
  759. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr-latn.js +0 -6
  760. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr.js +0 -6
  761. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sv.js +0 -6
  762. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/th.js +0 -6
  763. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/tr.js +0 -6
  764. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/uk.js +0 -6
  765. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/vi.js +0 -6
  766. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh-cn.js +0 -6
  767. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh.js +0 -6
  768. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/dialogs/mediaembed.html +0 -14
  769. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/images/icon.gif +0 -0
  770. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/plugin.js +0 -61
  771. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/MediaEmbed/plugin.js~ +0 -57
  772. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  773. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  774. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/adobeair/plugin.js +0 -6
  775. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/ajax/plugin.js +0 -6
  776. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/autogrow/plugin.js +0 -6
  777. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/bbcode/plugin.js +0 -9
  778. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
  779. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/lang/en.js +0 -6
  780. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/plugin.js +0 -6
  781. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
  782. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/plugin.js +0 -6
  783. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframedialog/plugin.js +0 -6
  784. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/images/anchor.gif +0 -0
  785. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/paperclipped/plugin.js +0 -21
  786. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  787. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  788. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/en.js +0 -6
  789. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/he.js +0 -6
  790. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  791. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/plugin.js +0 -6
  792. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/radiantpreview/images/icon.png +0 -0
  793. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
  794. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  795. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  796. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  797. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  798. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  799. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  800. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  801. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  802. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/heart.gif +0 -0
  803. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  804. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  805. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  806. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  807. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  808. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  809. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  810. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  811. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  812. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  813. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  814. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  815. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/lang/en.js +0 -6
  816. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/styles/styles/default.js +0 -6
  817. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
  818. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tableresize/plugin.js +0 -7
  819. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  820. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/en.js +0 -6
  821. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/he.js +0 -6
  822. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/plugin.js +0 -6
  823. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  824. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  825. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  826. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  827. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  828. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  829. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  830. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/xml/plugin.js +0 -6
  831. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/dialog.css +0 -9
  832. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/editor.css +0 -13
  833. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons.png +0 -0
  834. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons_rtl.png +0 -0
  835. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  836. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  837. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  838. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/mini.gif +0 -0
  839. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/noimage.png +0 -0
  840. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/sprites.png +0 -0
  841. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  842. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  843. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/skin.js +0 -7
  844. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/templates.css +0 -6
  845. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/dialog.css +0 -9
  846. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/editor.css +0 -14
  847. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons.png +0 -0
  848. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons_rtl.png +0 -0
  849. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  850. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  851. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  852. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/mini.gif +0 -0
  853. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/noimage.png +0 -0
  854. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/sprites.png +0 -0
  855. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  856. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/skin.js +0 -6
  857. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/templates.css +0 -6
  858. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/dialog.css +0 -9
  859. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/editor.css +0 -13
  860. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons.png +0 -0
  861. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons_rtl.png +0 -0
  862. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  863. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  864. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  865. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/mini.gif +0 -0
  866. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/noimage.png +0 -0
  867. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/sprites.png +0 -0
  868. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  869. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  870. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/skin.js +0 -6
  871. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/templates.css +0 -6
  872. data/public/javascripts/extensions/ck_editor_filter/ckeditor/themes/default/theme.js +0 -8
  873. data/radiant-ck_editor_filter-extension-0.2.6.gem +0 -0
@@ -0,0 +1,46 @@
1
+ (function(){function h(c,a){var b=c.getRange(CodeMirror.Pos(a.line,a.ch-1),CodeMirror.Pos(a.line,a.ch+1));return 2==b.length?b:null}function e(c){for(var a={name:"autoCloseBrackets",Backspace:function(a){if(a.somethingSelected())return CodeMirror.Pass;var f=a.getCursor(),b=h(a,f);if(b&&0==c.indexOf(b)%2)a.replaceRange("",CodeMirror.Pos(f.line,f.ch-1),CodeMirror.Pos(f.line,f.ch+1));else return CodeMirror.Pass}},g="",f=0;f<c.length;f+=2)(function(f,c){function d(f){var a=f.getCursor();if(f.getRange(a,
2
+ CodeMirror.Pos(a.line,a.ch+1))!=c||f.somethingSelected())return CodeMirror.Pass;f.execCommand("goCharRight")}f!=c&&(g=g+c);a["'"+f+"'"]=function(a){if(f=="'"&&a.getTokenAt(a.getCursor()).type=="comment")return CodeMirror.Pass;if(a.somethingSelected()){var n=a.getSelection();a.replaceSelection(f+n+c)}else if(f!=c||d(a)==CodeMirror.Pass){var n=a.getCursor(),e=CodeMirror.Pos(n.line,n.ch+1),l=a.getLine(n.line),h=l.charAt(n.ch),p=n.ch>0?l.charAt(n.ch-1):"";if(!(f==c&&CodeMirror.isWordChar(p))&&(l.length==
3
+ n.ch||g.indexOf(h)>=0||b.test(h)))a.replaceSelection(f+c,{head:e,anchor:e});else return CodeMirror.Pass}};f!=c&&(a["'"+c+"'"]=d)})(c.charAt(f),c.charAt(f+1));return a}function d(c){return function(a){var b=a.getCursor(),f=h(a,b);if(!f||0!=c.indexOf(f)%2)return CodeMirror.Pass;a.operation(function(){var f=CodeMirror.Pos(b.line+1,0);a.replaceSelection("\n\n",{anchor:f,head:f},"+input");a.indentLine(b.line+1,null,!0);a.indentLine(b.line+2,null,!0)})}}var b=/\s/;CodeMirror.defineOption("autoCloseBrackets",
4
+ !1,function(c,a,b){var f,j,m;(b!=CodeMirror.Init&&b&&c.removeKeyMap("autoCloseBrackets"),a)&&(f="()[]{}''\"\"",j="[]{}",typeof a=="string"?f=a:typeof a=="object"&&(a.pairs!=null&&(f=a.pairs),a.explode!=null&&(j=a.explode)),m=e(f),j&&(m.Enter=d(j)),c.addKeyMap(m))})})();
5
+ (function(){function h(b,c){if(b.indexOf)return b.indexOf(c);for(var a=0,d=b.length;a<d;++a)if(b[a]==c)return a;return-1}CodeMirror.defineOption("autoCloseTags",!1,function(b,c,a){if(a!=CodeMirror.Init&&a&&b.removeKeyMap("autoCloseTags"),c){a={name:"autoCloseTags"};(typeof c!="object"||c.whenClosing)&&(a["'/'"]=function(a){var f;var b=a.getCursor(),c=a.getTokenAt(b),d=CodeMirror.innerMode(a.getMode(),c.state),k=d.state;if(c.type=="string"||c.string.charAt(0)!="<"||c.start!=b.ch-1||d.mode.name!="xml")f=
6
+ CodeMirror.Pass;else(b=k.context&&k.context.tagName)&&a.replaceSelection("/"+b+">","end");return f});(typeof c!="object"||c.whenOpening)&&(a["'>'"]=function(a){var f;var b=a.getCursor(),c=a.getTokenAt(b),i=CodeMirror.innerMode(a.getMode(),c.state),k=i.state,n;if(i.mode.name!="xml"||!k.tagName)f=CodeMirror.Pass;else{var o=a.getOption("autoCloseTags"),l=i.mode.configuration=="html",i=typeof o=="object"&&o.dontCloseTags||l&&e,l=typeof o=="object"&&o.indentTags||l&&d,o=k.tagName;if(c.end>b.ch&&(o=o.slice(0,
7
+ o.length-c.end+b.ch)),n=o.toLowerCase(),c.type=="string"&&(c.end!=b.ch||!/[\"\']/.test(c.string.charAt(c.string.length-1))||c.string.length==1)||c.type=="tag"&&k.type=="closeTag"||c.string.indexOf("/")==c.string.length-1||i&&h(i,n)>-1)f=CodeMirror.Pass;else{k=(c=l&&h(l,n)>-1)?CodeMirror.Pos(b.line+1,0):CodeMirror.Pos(b.line,b.ch+1);a.replaceSelection(">"+(c?"\n\n":"")+"</"+o+">",{head:k,anchor:k});c&&(a.indentLine(b.line+1),a.indentLine(b.line+2))}}return f});b.addKeyMap(a)}});var e="area base br col command embed hr img input keygen link meta param source track wbr".split(" "),
8
+ d="applet blockquote body button div dl fieldset form frameset h1 h2 h3 h4 h5 h6 head html iframe layer legend object ol p select table ul".split(" ")})();
9
+ (function(){function h(b){var c=b.getCursor(),a=b.getTokenAt(c),d=CodeMirror.innerMode(b.getMode(),a.state).mode,f,j,m,i;if("comment"==a.type&&d.blockCommentStart&&(j=a.string.indexOf(d.blockCommentEnd),m=b.getRange(CodeMirror.Pos(c.line,0),CodeMirror.Pos(c.line,a.end)),-1==j||j!=a.string.length-d.blockCommentEnd.length))if(0==a.string.indexOf(d.blockCommentStart)){if(f=m.slice(0,a.start),!/^\s*$/.test(f)){f="";for(c=0;c<a.start;++c)f+=" "}}else-1!=(i=m.indexOf(d.blockCommentContinue))&&i+d.blockCommentContinue.length>
10
+ a.start&&/^\s*$/.test(m.slice(0,i))&&(f=m.slice(0,i));if(null!=f)b.replaceSelection("\n"+f+d.blockCommentContinue,"end");else return CodeMirror.Pass}for(var e=["clike","css","javascript"],d=0;d<e.length;++d)CodeMirror.extendMode(e[d],{blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * "});CodeMirror.defineOption("continueComments",null,function(b,c,a){a&&a!=CodeMirror.Init&&b.removeKeyMap("continueComment");a={name:"continueComment"};a["string"==typeof c?c:"Enter"]=h;b.addKeyMap(a)})})();
11
+ (function(){function h(f,b,d){function g(b,d,k){var e,j,i,l;if(b.text){if(e=p?0:b.text.length-1,j=p?b.text.length:-1,b.text.length>n)return null;for(null!=k&&(e=k+s);e!=j;e+=s)if(i=b.text.charAt(e),u.test(i)&&f.getTokenTypeAt(c(d,e+1))==v)if(l=a[i],">"==l.charAt(1)==p)t.push(i);else{if(t.pop()!=l.charAt(0))return{pos:e,match:!1};if(!t.length)return{pos:e,match:!0}}}}var k=f.state.matchBrackets,n=k&&k.maxScanLineLength||1E4,k=k&&k.maxScanLines||100,b=b||f.getCursor(),e=f.getLineHandle(b.line),l=b.ch-
12
+ 1,h=0<=l&&a[e.text.charAt(l)]||a[e.text.charAt(++l)],p,s,q;if(!h||(p=">"==h.charAt(1),s=p?1:-1,d&&p!=(l==b.ch)))return null;for(var v=f.getTokenTypeAt(c(b.line,l+1)),t=[e.text.charAt(l)],u=/[(){}[\]]/,d=b.line,k=p?Math.min(d+k,f.lineCount()):Math.max(-1,d-k);d!=k&&!(q=d==b.line?g(e,d,l):g(f.getLineHandle(d),d),q);d+=s);return{from:c(b.line,l),to:q&&c(d,q.pos),match:q&&q.match,forward:p}}function e(a,d){var e=a.state.matchBrackets.maxHighlightLineLength||1E3,g=h(a);if(g&&!(a.getLine(g.from.line).length>
13
+ e)&&(!g.to||!(a.getLine(g.to.line).length>e))){var e=g.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",k=a.markText(g.from,c(g.from.line,g.from.ch+1),{className:e}),n=g.to&&a.markText(g.to,c(g.to.line,g.to.ch+1),{className:e});if(b&&a.state.focused&&a.display.input.focus(),g=function(){a.operation(function(){k.clear();n&&n.clear()})},d)setTimeout(g,800);else return g}}function d(a){a.operation(function(){g&&(g(),g=null);a.somethingSelected()||(g=e(a,!1))})}var b=/MSIE \d/.test(navigator.userAgent)&&
14
+ (null==document.documentMode||8>document.documentMode),c=CodeMirror.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},g=null;CodeMirror.defineOption("matchBrackets",!1,function(a,b,c){if(c&&c!=CodeMirror.Init&&a.off("cursorActivity",d),b){a.state.matchBrackets=typeof b=="object"?b:{};a.on("cursorActivity",d)}});CodeMirror.defineExtension("matchBrackets",function(){e(this,!0)});CodeMirror.defineExtension("findMatchingBracket",function(a,b){return h(this,a,b)})})();
15
+ (function(){function h(b){b.state.tagHit&&b.state.tagHit.clear();b.state.tagOther&&b.state.tagOther.clear();b.state.tagHit=b.state.tagOther=null}function e(b){b.state.failedTagMatch=!1;b.operation(function(){var c,a,d,f,e;(h(b),b.somethingSelected())||(c=b.getCursor(),a=b.getViewport(),a.from=Math.min(a.from,c.line),a.to=Math.max(c.line+1,a.to),d=CodeMirror.findMatchingTag(b,c,a),d)&&(b.state.matchBothTags&&(f="open"==d.at?d.open:d.close,f&&(b.state.tagHit=b.markText(f.from,f.to,{className:"CodeMirror-matchingtag"}))),
16
+ e="close"==d.at?d.open:d.close,e?b.state.tagOther=b.markText(e.from,e.to,{className:"CodeMirror-matchingtag"}):b.state.failedTagMatch=!0)})}function d(b){b.state.failedTagMatch&&e(b)}CodeMirror.defineOption("matchTags",!1,function(b,c,a){if(a&&a!=CodeMirror.Init&&(b.off("cursorActivity",e),b.off("viewportChange",d),h(b)),c){b.state.matchBothTags=typeof c=="object"&&c.bothTags;b.on("cursorActivity",e);b.on("viewportChange",d);e(b)}});CodeMirror.commands.toMatchingTag=function(b){var c=CodeMirror.findMatchingTag(b,
17
+ b.getCursor()),a;c&&(a="close"==c.at?c.open:c.close,a&&b.setSelection(a.to,a.from))}})();CodeMirror.defineOption("showTrailingSpace",!1,function(h,e,d){d==CodeMirror.Init&&(d=false);d&&!e?h.removeOverlay("trailingspace"):!d&&e&&h.addOverlay({token:function(b){for(var c=b.string.length,a=c;a&&/\s/.test(b.string.charAt(a-1));--a);return a>b.pos?(b.pos=a,null):(b.pos=c,"trailingspace")},name:"trailingspace"})});
18
+ (function(){function h(d,b,c,a){function g(c){var e=f(d,b),g,l;if(!e||e.to.line-e.from.line<j)return null;g=d.findMarksAt(e.from);for(l=0;l<g.length;++l)if(g[l].__isFold&&"fold"!==a){if(!c)return null;e.cleared=!0;g[l].clear()}return e}var f=c&&(c.call?c:c.rangeFinder),j,h,i;if(f||(f=d.getHelper(b,"fold")),f){if("number"==typeof b&&(b=CodeMirror.Pos(b,0)),j=c&&c.minFoldSize||0,h=g(!0),c&&c.scanUp)for(;!h&&b.line>d.firstLine();)b=CodeMirror.Pos(b.line-1,0),h=g(!1);h&&(!h.cleared&&"unfold"!==a)&&(c=
19
+ e(c),CodeMirror.on(c,"mousedown",function(){i.clear()}),i=d.markText(h.from,h.to,{replacedWith:c,clearOnEnter:!0,__isFold:!0}),i.on("clear",function(a,b){CodeMirror.signal(d,"unfold",d,a,b)}),CodeMirror.signal(d,"fold",d,h.from,h.to))}}function e(d){var d=d&&d.widget||"↔",b;return"string"==typeof d&&(b=document.createTextNode(d),d=document.createElement("span"),d.appendChild(b),d.className="CodeMirror-foldmarker"),d}CodeMirror.newFoldFunction=function(d,b){return function(c,a){h(c,a,{rangeFinder:d,
20
+ widget:b})}};CodeMirror.defineExtension("foldCode",function(d,b,c){h(this,d,b,c)});CodeMirror.registerHelper("fold","combine",function(){var d=Array.prototype.slice.call(arguments,0);return function(b,c){for(var a,e=0;e<d.length;++e)if(a=d[e](b,c),a)return a}})})();
21
+ CodeMirror.registerHelper("fold","brace",function(h,e){function d(d){for(var f,k=e.ch,g=0;;)if(f=0>=k?-1:c.lastIndexOf(d,k-1),-1==f){if(1==g)break;g=1;k=c.length}else{if(1==g&&f<e.ch)break;if(a=h.getTokenTypeAt(CodeMirror.Pos(b,f+1)),!/^(comment|string)/.test(a))return f+1;k=f-1}}var b=e.line,c=h.getLine(b),a,g="{",f="}",j=d("{"),m,i,k,n,o,l,r,p,s;if(null==j&&(g="[",f="]",j=d("[")),null!=j){m=1;i=h.lastLine();o=b;a:for(;o<=i;++o){l=h.getLine(o);for(r=o==b?j:0;!(p=l.indexOf(g,r),s=l.indexOf(f,r),0>
22
+ p&&(p=l.length),0>s&&(s=l.length),r=Math.min(p,s),r==l.length);){if(h.getTokenTypeAt(CodeMirror.Pos(o,r+1))==a)if(r==p)++m;else if(!--m){k=o;n=r;break a}++r}}if(null!=k&&(b!=k||n!=j))return{from:CodeMirror.Pos(b,j),to:CodeMirror.Pos(k,n)}}});CodeMirror.braceRangeFinder=CodeMirror.fold.brace;
23
+ CodeMirror.registerHelper("fold","import",function(h,e){function d(a){var b,c,d,e;if(a<h.firstLine()||a>h.lastLine()||(b=h.getTokenAt(CodeMirror.Pos(a,1)),/\S/.test(b.string)||(b=h.getTokenAt(CodeMirror.Pos(a,b.end+1))),"keyword"!=b.type||"import"!=b.string))return null;c=a;for(a=Math.min(h.lastLine(),a+10);c<=a;++c)if(d=h.getLine(c),e=d.indexOf(";"),-1!=e)return{startCh:b.end,end:CodeMirror.Pos(c,e)}}var e=e.line,b=d(e),c,a;if(!b||d(e-1)||(c=d(e-2))&&c.end.line==e-1)return null;for(c=b.end;!(a=d(c.line+
24
+ 1),null==a);)c=a.end;return{from:h.clipPos(CodeMirror.Pos(e,b.startCh+1)),to:c}});CodeMirror.importRangeFinder=CodeMirror.fold["import"];
25
+ CodeMirror.registerHelper("fold","include",function(h,e){function d(a){if(a<h.firstLine()||a>h.lastLine())return null;var b=h.getTokenAt(CodeMirror.Pos(a,1));return/\S/.test(b.string)||(b=h.getTokenAt(CodeMirror.Pos(a,b.end+1))),"meta"==b.type&&"#include"==b.string.slice(0,8)?b.start+8:void 0}var e=e.line,b=d(e),c,a;if(null==b||null!=d(e-1))return null;for(c=e;!(a=d(c+1),null==a);)++c;return{from:CodeMirror.Pos(e,b+1),to:h.clipPos(CodeMirror.Pos(c))}});CodeMirror.includeRangeFinder=CodeMirror.fold.include;
26
+ (function(){function h(a,b,c,d){this.line=b;this.ch=c;this.cm=a;this.text=a.getLine(b);this.min=d?d.from:a.firstLine();this.max=d?d.to-1:a.lastLine()}function e(a,b){var c=a.cm.getTokenTypeAt(m(a.line,b));return c&&/\btag\b/.test(c)}function d(a){if(!(a.line>=a.max))return a.ch=0,a.text=a.cm.getLine(++a.line),!0}function b(a){if(!(a.line<=a.min))return a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0}function c(a){for(var b,c,f;;){if(b=a.text.indexOf(">",a.ch),-1==b)if(d(a))continue;else break;
27
+ if(e(a,b+1))return c=a.text.lastIndexOf("/",b),f=-1<c&&!/\S/.test(a.text.slice(c+1,b)),a.ch=b+1,f?"selfClose":"regular";a.ch=b+1}}function a(a){for(var c,d;;){if(c=a.ch?a.text.lastIndexOf("<",a.ch-1):-1,-1==c)if(b(a))continue;else break;if(e(a,c+1)){if(i.lastIndex=c,a.ch=c,d=i.exec(a.text),d&&d.index==c)return d}else a.ch=c}}function g(a){for(;;){i.lastIndex=a.ch;var b=i.exec(a.text);if(!b)if(d(a))continue;else break;if(e(a,b.index+1))return a.ch=b.index+b[0].length,b;a.ch=b.index+1}}function f(a,
28
+ b){for(var d=[],f;;){var e=g(a),h,j=a.line,i=a.ch-(e?e[0].length:0);if(!e||!(h=c(a)))break;if("selfClose"!=h)if(e[1]){for(f=d.length-1;0<=f;--f)if(d[f]==e[2]){d.length=f;break}if(0>f&&(!b||b==e[2]))return{tag:e[2],from:m(j,i),to:m(a.line,a.ch)}}else d.push(e[2])}}function j(c,d){for(var f=[],g,h;;){var j;a:{j=c;for(var i=void 0,q=h=void 0;;){if(i=j.ch?j.text.lastIndexOf(">",j.ch-1):-1,-1==i)if(b(j))continue;else{j=void 0;break a}if(e(j,i+1)){j=(h=j.text.lastIndexOf("/",i),q=-1<h&&!/\S/.test(j.text.slice(h+
29
+ 1,i)),j.ch=i+1,q?"selfClose":"regular");break a}else j.ch=i}j=void 0}if(g=j,!g)break;if("selfClose"==g)a(c);else{q=c.line;j=c.ch;i=a(c);if(!i)break;if(i[1])f.push(i[2]);else{for(h=f.length-1;0<=h;--h)if(f[h]==i[2]){f.length=h;break}if(0>h&&(!d||d==i[2]))return{tag:i[2],from:m(c.line,c.ch),to:m(q,j)}}}}}var m=CodeMirror.Pos,i=RegExp("<(/?)([A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)",
30
+ "g");CodeMirror.registerHelper("fold","xml",function(a,b){for(var d=new h(a,b.line,0),e,j,i;!(e=g(d),!e||d.line!=b.line||!(j=c(d)));)if(!e[1]&&"selfClose"!=j)return b=m(d.line,d.ch),i=f(d,e[2]),i&&{from:b,to:i.from}});CodeMirror.tagRangeFinder=CodeMirror.fold.xml;CodeMirror.findMatchingTag=function(b,d,e){var g=new h(b,d.line,d.ch,e),i;if(-1!=g.text.indexOf(">")||-1!=g.text.indexOf("<")){var p=c(g),s=p&&m(g.line,g.ch),q=p&&a(g);if(p&&"selfClose"!=p&&q&&!(0<(g.line-d.line||g.ch-d.ch)))return i={from:m(g.line,
31
+ g.ch),to:s,tag:q[2]},q[1]?{open:j(g,q[2]),close:i,at:"close"}:(g=new h(b,s.line,s.ch,e),{open:i,close:f(g,q[2]),at:"open"})}};CodeMirror.findEnclosingTag=function(a,b,c){for(var d=new h(a,b.line,b.ch,c),e,g,i;!(e=j(d),!e);)if(g=new h(a,b.line,b.ch,c),i=f(g,e.tag),i)return{open:e,close:i}}})();
32
+ (function(){CodeMirror.defineExtension("autoFormatAll",function(h,e){for(var d=this,b=d.getMode(),c=d.getRange(h,e).split("\n"),a=CodeMirror.copyState(b,d.getTokenAt(h).state),g=d.getOption("tabSize"),f="",j=0,m=0==h.ch,i,k=0;k<c.length;++k){for(i=new CodeMirror.StringStream(c[k],g);!i.eol();){var n=CodeMirror.innerMode(b,a),o=b.token(i,a),l=i.current();i.start=i.pos;(!m||/\S/.test(l))&&(f+=l,m=!1);if(!m&&n.mode.newlineAfterToken&&n.mode.newlineAfterToken(o,l,i.string.slice(i.pos)||c[k+1]||"",n.state))f+=
33
+ "\n",m=!0,++j}!i.pos&&b.blankLine&&b.blankLine(a);!m&&k<c.length-1&&(f+="\n",m=!0,++j)}d.operation(function(){d.replaceRange(f,h,e);for(var a=h.line+1,b=h.line+j;a<=b;++a)d.indentLine(a,"smart");d.setCursor({line:0,ch:0})})})})();
34
+ (function(){function h(e){for(var d=[/for\s*?\((.*?)\)/g,/&#?[a-z0-9]+;[\s\S]/g,/\"(.*?)((\")|$)/g,/\/\*(.*?)(\*\/|$)/g,/^\/\/.*/g],b=[],c,a,g=0;g<d.length;g++)for(c=0;c<e.length;)if(a=e.substr(c).match(d[g]),null!=a)b.push({start:c+a.index,end:c+a.index+a[0].length}),c+=a.index+Math.max(1,a[0].length);else break;return b.sort(function(a,b){return a.start-b.start}),b}CodeMirror.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,d){return/^[;{}]$/.test(d)}});CodeMirror.extendMode("javascript",
35
+ {commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(e){var d=0,b=this.jsonMode?function(a){return a.replace(/([,{])/g,"$1\n").replace(/}/g,"\n}")}:function(a){return a.replace(/(;|\{|\})([^\r\n;])/g,"$1\n$2")},c=h(e),a="",g;if(null!=c){for(g=0;g<c.length;g++)c[g].start>d&&(a+=b(e.substring(d,c[g].start)),d=c[g].start),c[g].start<=d&&c[g].end>=d&&(a+=e.substring(d,c[g].end),d=c[g].end);d<e.length&&(a+=b(e.substr(d)))}else a=b(e);return a.replace(/^\n*|\n*$/,
36
+ "")}});CodeMirror.extendMode("xml",{commentStart:"<\!--",commentEnd:"--\>",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(e,d,b){var c=!1,a=null,g="",f;if(this.isXML="xml"==this.configuration?!0:!1,"comment"==e||/<\!--/.test(b))return!1;if("tag"==e){if(0==d.indexOf("<")&&0==!d.indexOf("</")&&(this.tagType="open",a=d.match(/^<\s*?([\w]+?)$/i),this.tagName=null!=a?a[1]:"",g=this.tagName.toLowerCase(),-1!="|label|li|option|textarea|title|a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u|".indexOf("|"+
37
+ g+"|")&&(this.noBreak=!0)),0==d.indexOf(">")&&"open"==this.tagType)return(this.tagType="",f=this.isXML?"[^<]*?":"",RegExp("^"+f+"</s*?"+this.tagName+"s*?>","i").test(b))?(this.noBreak=!1,this.isXML||(this.tagName=""),!1):(c=this.noBreak,this.noBreak=!1,c?!1:!0);if(0==d.indexOf("</")&&(this.tagType="close",a=d.match(/^<\/\s*?([\w]+?)$/i),null!=a&&(g=a[1].toLowerCase()),-1!="|a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u|".indexOf("|"+g+"|")&&(this.noBreak=!0)),
38
+ 0==d.indexOf(">")&&"close"==this.tagType)return(this.tagType="",0==b.indexOf("<")&&(a=b.match(/^<\/?\s*?([\w]+?)(\s|>)/i),g=null!=a?a[1].toLowerCase():"",-1=="|label|li|option|textarea|title|a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u|".indexOf("|"+g+"|")))?(this.noBreak=!1,!0):(c=this.noBreak,this.noBreak=!1,c?!1:!0)}return 0==b.indexOf("<")?(this.noBreak=!1,this.isXML&&""!=this.tagName)?(this.tagName="",!1):(a=b.match(/^<\/?\s*?([\w]+?)(\s|>)/i),g=null!=
39
+ a?a[1].toLowerCase():"",-1!="|label|li|option|textarea|title|a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u|".indexOf("|"+g+"|")?!1:!0):!1}});CodeMirror.defineExtension("commentRange",function(e,d,b){var c=this,a=CodeMirror.innerMode(c.getMode(),c.getTokenAt(d).state).mode;c.operation(function(){if(e)c.replaceRange(a.commentEnd,b),c.replaceRange(a.commentStart,d),d.line==b.line&&d.ch==b.ch&&c.setCursor(d.line,d.ch+a.commentStart.length);else{var g=c.getRange(d,
40
+ b),f=g.indexOf(a.commentStart),h=g.lastIndexOf(a.commentEnd);-1<f&&-1<h&&h>f&&(g=g.substr(0,f)+g.substring(f+a.commentStart.length,h)+g.substr(h+a.commentEnd.length));c.replaceRange(g,d,b)}})});CodeMirror.defineExtension("autoIndentRange",function(e,d){var b=this;this.operation(function(){for(var c=e.line;c<=d.line;c++)b.indentLine(c,"smart")})});CodeMirror.defineExtension("autoFormatRange",function(e,d){for(var b=this,c=b.getMode(),a=b.getRange(e,d).split("\n"),g=CodeMirror.copyState(c,b.getTokenAt(e).state),
41
+ f=b.getOption("tabSize"),h="",m=0,i=0==e.ch,k,n=0;n<a.length;++n){for(k=new CodeMirror.StringStream(a[n],f);!k.eol();){var o=CodeMirror.innerMode(c,g),l=c.token(k,g),r=k.current();k.start=k.pos;(!i||/\S/.test(r))&&(h+=r,i=!1);if(!i&&o.mode.newlineAfterToken&&o.mode.newlineAfterToken(l,r,k.string.slice(k.pos)||a[n+1]||"",o.state))h+="\n",i=!0,++m}!k.pos&&c.blankLine&&c.blankLine(g);!i&&n<a.length-1&&(h+="\n",i=!0,++m)}b.operation(function(){b.replaceRange(h,e,d);for(var a=e.line+1,c=e.line+m;a<=c;++a)b.indentLine(a,
42
+ "smart");b.setSelection(e,b.getCursor(!1))})})})();
43
+ (function(){function h(b){"object"==typeof b&&(this.minChars=b.minChars,this.style=b.style,this.showToken=b.showToken,this.delay=b.delay);null==this.style&&(this.style=a);null==this.minChars&&(this.minChars=c);null==this.delay&&(this.delay=g);this.overlay=this.timeout=null}function e(a){var b=a.state.matchHighlighter;clearTimeout(b.timeout);b.timeout=setTimeout(function(){d(a)},b.delay)}function d(a){a.operation(function(){var c=a.state.matchHighlighter,d;if(c.overlay&&(a.removeOverlay(c.overlay),
44
+ c.overlay=null),!a.somethingSelected()&&c.showToken){d=!0===c.showToken?/[\w$]/:c.showToken;for(var e=a.getCursor(),g=a.getLine(e.line),h=e=e.ch;e&&d.test(g.charAt(e-1));)--e;for(;h<g.length&&d.test(g.charAt(h));)++h;e<h&&a.addOverlay(c.overlay=b(g.slice(e,h),d,c.style))}else a.getCursor("head").line==a.getCursor("anchor").line&&(d=a.getSelection().replace(/^\s+|\s+$/g,""),d.length>=c.minChars&&a.addOverlay(c.overlay=b(d,!1,c.style)))})}function b(a,b,c){return{token:function(d){if(d.match(a)&&(!b||
45
+ (!d.start||!b.test(d.string.charAt(d.start-1)))&&(d.pos==d.string.length||!b.test(d.string.charAt(d.pos)))))return c;d.next();d.skipTo(a.charAt(0))||d.skipToEnd()}}}var c=2,a="matchhighlight",g=100;CodeMirror.defineOption("highlightSelectionMatches",!1,function(a,b,c){if(c&&c!=CodeMirror.Init){(c=a.state.matchHighlighter.overlay)&&a.removeOverlay(c);clearTimeout(a.state.matchHighlighter.timeout);a.state.matchHighlighter=null;a.off("cursorActivity",e)}if(b){a.state.matchHighlighter=new h(b);d(a);a.on("cursorActivity",
46
+ e)}})})();
@@ -0,0 +1,15 @@
1
+ (function(){function k(a,b,c){var d;return d=a.getWrapperElement().appendChild(document.createElement("div")),d.className=c?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof b?d.innerHTML=b:d.appendChild(b),d}function j(a,b){a.state.currentNotificationClose&&a.state.currentNotificationClose();a.state.currentNotificationClose=b}CodeMirror.defineExtension("openDialog",function(a,b,c){function d(){h||(h=!0,g.parentNode.removeChild(g))}var f;j(this,
2
+ null);var g=k(this,a,c&&c.bottom),h=!1,o=this;if(f=g.getElementsByTagName("input")[0],f){CodeMirror.on(f,"keydown",function(a){c&&c.onKeyDown&&c.onKeyDown(a,f.value,d)||(13==a.keyCode||27==a.keyCode)&&(CodeMirror.e_stop(a),d(),o.focus(),13==a.keyCode&&b(f.value))});if(c&&c.onKeyUp)CodeMirror.on(f,"keyup",function(a){c.onKeyUp(a,f.value,d)});c&&c.value&&(f.value=c.value);f.focus();CodeMirror.on(f,"blur",d)}else if(a=g.getElementsByTagName("button")[0])CodeMirror.on(a,"click",function(){d();o.focus()}),
3
+ a.focus(),CodeMirror.on(a,"blur",d);return d});CodeMirror.defineExtension("openConfirm",function(a,b,c){function d(){h||(h=!0,g.parentNode.removeChild(g),o.focus())}var f;j(this,null);var g=k(this,a,c&&c.bottom),c=g.getElementsByTagName("button"),h=!1,o=this,p=1;c[0].focus();for(a=0;a<c.length;++a)f=c[a],function(a){CodeMirror.on(f,"click",function(b){CodeMirror.e_preventDefault(b);d();a&&a(o)})}(b[a]),CodeMirror.on(f,"blur",function(){--p;setTimeout(function(){0>=p&&d()},200)}),CodeMirror.on(f,"focus",
4
+ function(){++p})});CodeMirror.defineExtension("openNotification",function(a,b){function c(){g||(g=!0,clearTimeout(h),d.parentNode.removeChild(d))}j(this,c);var d=k(this,a,b&&b.bottom),f=b&&(void 0===b.duration?5E3:b.duration),g=!1,h;CodeMirror.on(d,"click",function(a){CodeMirror.e_preventDefault(a);c()});f&&(h=setTimeout(c,b.duration))})})();
5
+ (function(){function k(n){return"string"==typeof n?{token:function(a){if(a.match(n))return"searching";a.next();a.skipTo(n.charAt(0))||a.skipToEnd()}}:{token:function(a){if(a.match(n))return"searching";for(;!a.eol()&&!(a.next(),a.match(n,!1)););}}}function j(){this.overlay=this.posFrom=this.posTo=this.query=null}function a(a){return a.state.search||(a.state.search=new j)}function b(a,b,c){return a.getSearchCursor(b,c,"string"==typeof b&&b==b.toLowerCase())}function c(a,b,c,d){a.openDialog?a.openDialog(b,
6
+ d):d(prompt(c,""))}function d(a,b,c,d){a.openConfirm?a.openConfirm(b,d):confirm(c)&&d[0]()}function f(a){var b=a.match(/^\/(.*)\/([a-z]*)$/);return b?RegExp(b[1],-1==b[2].indexOf("i")?"":"i"):a}function g(b,d){var e=a(b);if(e.query)return h(b,d);c(b,l,"Search for:",function(a){b.operation(function(){a&&!e.query&&(e.query=f(a),b.removeOverlay(e.overlay),e.overlay=k(e.query),b.addOverlay(e.overlay),e.posFrom=e.posTo=b.getCursor(),h(b,d))})})}function h(c,d){c.operation(function(){var e=a(c),h=b(c,e.query,
7
+ d?e.posFrom:e.posTo);(h.find(d)||(h=b(c,e.query,d?CodeMirror.Pos(c.lastLine()):CodeMirror.Pos(c.firstLine(),0)),h.find(d)))&&(c.setSelection(h.from(),h.to()),c.scrollIntoView({from:h.from(),to:h.to()}),e.posFrom=h.from(),e.posTo=h.to())})}function o(b){b.operation(function(){var c=a(b);c.query&&(c.query=null,b.removeOverlay(c.overlay))})}function p(a,h){c(a,e,"Replace:",function(e){e&&(e=f(e),c(a,i,"Replace with:",function(c){if(h)a.operation(function(){for(var d,h=b(a,e);h.findNext();)"string"!=
8
+ typeof e?(d=a.getRange(h.from(),h.to()).match(e),h.replace(c.replace(/\$(\d)/,function(a,b){return d[b]}))):h.replace(c)});else{o(a);var f=b(a,e,a.getCursor()),g=function(){var c=f.from(),h;((h=f.findNext())||(f=b(a,e),(h=f.findNext())&&(!c||f.from().line!=c.line||f.from().ch!=c.ch)))&&(a.setSelection(f.from(),f.to()),a.scrollIntoView({from:f.from(),to:f.to()}),d(a,m,"Replace?",[function(){p(h)},g]))},p=function(a){f.replace("string"==typeof e?c:c.replace(/\$(\d)/,function(b,c){return a[c]}));g()};
9
+ g()}}))})}var l='Search: <input type="text" style="width: 10em"/> <span style="color: #888">(Use /re/ syntax for regexp search)</span>',e='Replace: <input type="text" style="width: 10em"/> <span style="color: #888">(Use /re/ syntax for regexp search)</span>',i='With: <input type="text" style="width: 10em"/>',m="Replace? <button>Yes</button> <button>No</button> <button>Stop</button>";CodeMirror.commands.find=function(a){o(a);g(a)};CodeMirror.commands.findNext=g;CodeMirror.commands.findPrev=function(a){g(a,
10
+ !0)};CodeMirror.commands.clearSearch=o;CodeMirror.commands.replace=p;CodeMirror.commands.replaceAll=function(a){p(a,!0)}})();
11
+ (function(){function k(a,b,c,d){if(this.atOccurrence=!1,this.doc=a,null==d&&"string"==typeof b&&(d=!1),c=c?a.clipPos(c):j(0,0),this.pos={from:c,to:c},"string"!=typeof b)b.global||(b=RegExp(b.source,b.ignoreCase?"ig":"g")),this.matches=function(c,d){var f,g,e,i,m;if(c){b.lastIndex=0;f=a.getLine(d.line).slice(0,d.ch);for(g=0;!(b.lastIndex=g,m=b.exec(f),!m)&&!(e=m,i=e.index,g=e.index+(e[0].length||1),g==f.length););(g=e&&e[0].length||0)||(0==i&&0==f.length?e=void 0:i!=a.getLine(d.line).length&&g++)}else b.lastIndex=
12
+ d.ch,f=a.getLine(d.line),g=(e=b.exec(f))&&e[0].length||0,i=e&&e.index,i+g==f.length||g||(g=1);if(e&&g)return{from:j(d.line,i),to:j(d.line,i+g),match:e}};else{d&&(b=b.toLowerCase());var f=d?function(a){return a.toLowerCase()}:function(a){return a},g=b.split("\n");this.matches=1==g.length?b.length?function(c,d){var g=f(a.getLine(d.line)),l=b.length,e;if(c?d.ch>=l&&-1!=(e=g.lastIndexOf(b,d.ch-l)):-1!=(e=g.indexOf(b,d.ch)))return{from:j(d.line,e),to:j(d.line,e+l)}}:function(){}:function(b,c){var d=c.line,
13
+ l=b?g.length-1:0,e=g[l],i=f(a.getLine(d)),m=b?i.indexOf(e)+e.length:i.lastIndexOf(e),n,k,q;if(!(b?m>c.ch||m!=e.length:m<c.ch||m!=i.length-e.length))for(;!(b?!d:d==a.lineCount()-1);)if(i=f(a.getLine(d+=b?-1:1)),e=g[b?--l:++l],0<l&&l<g.length-1){if(i!=e)break}else return(n=b?i.lastIndexOf(e):i.indexOf(e)+e.length,b?n!=i.length-e.length:n!=e.length)?void 0:(k=j(c.line,m),q=j(d,n),{from:b?q:k,to:b?k:q})}}}var j=CodeMirror.Pos;k.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},
14
+ find:function(a){function b(a){a=j(a,0);return c.pos={from:a,to:a},c.atOccurrence=!1,!1}for(var c=this,d=this.doc.clipPos(a?this.pos.from:this.pos.to),f;;){if(this.pos=this.matches(a,d))return this.pos.from&&this.pos.to||console.log(this.matches,this.pos),this.atOccurrence=!0,this.pos.match||!0;if(a){if(!d.line)return b(0);d=j(d.line-1,this.doc.getLine(d.line-1).length)}else{if(f=this.doc.lineCount(),d.line==f-1)return b(f);d=j(d.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},
15
+ to:function(){if(this.atOccurrence)return this.pos.to},replace:function(a){this.atOccurrence&&(a=CodeMirror.splitLines(a),this.doc.replaceRange(a,this.pos.from,this.pos.to),this.pos.to=j(this.pos.from.line+a.length-1,a[a.length-1].length+(1==a.length?this.pos.from.ch:0)))}};CodeMirror.defineExtension("getSearchCursor",function(a,b,c){return new k(this.doc,a,b,c)});CodeMirror.defineDocExtension("getSearchCursor",function(a,b,c){return new k(this,a,b,c)})})();
@@ -0,0 +1,214 @@
1
+ window.CodeMirror=function(){function k(a,b){if(!(this instanceof k))return new k(a,b);this.options=b=b||{};for(var c in Ob)!b.hasOwnProperty(c)&&Ob.hasOwnProperty(c)&&(b[c]=Ob[c]);Pb(b);c=this.display=Pd(a,"string"==typeof b.value?0:b.value.first);c.wrapper.CodeMirror=this;Kc(this);b.autofocus&&!Qb&&M(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,draggingText:!1,highlight:new Rb};Lc(this);b.lineWrapping&&(this.display.wrapper.className+=
2
+ " CodeMirror-wrap");var d=b.value;"string"==typeof d&&(d=new I(b.value,b.mode));s(this,Mc)(this,d);D&&setTimeout(O(X,this,!0),20);Qd(this);var e;try{e=document.activeElement==c.input}catch(f){}e||b.autofocus&&!Qb?setTimeout(O(Fa,this),20):Sb(this);s(this,function(){for(var a in na)if(na.propertyIsEnumerable(a))na[a](this,b[a],Nc);for(a=0;a<Tb.length;++a)Tb[a](this)})()}function Pd(a,b){var c={},d=c.input=o("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none; font-size: 4px;");
3
+ G?d.style.width="1000px":d.setAttribute("wrap","off");Ga&&(d.style.border="1px solid black");d.setAttribute("autocorrect","off");d.setAttribute("autocapitalize","off");d.setAttribute("spellcheck","false");c.inputDiv=o("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");c.scrollbarH=o("div",[o("div",null,null,"height: 1px")],"CodeMirror-hscrollbar");c.scrollbarV=o("div",[o("div",null,null,"width: 1px")],"CodeMirror-vscrollbar");c.scrollbarFiller=o("div",null,"CodeMirror-scrollbar-filler");
4
+ c.gutterFiller=o("div",null,"CodeMirror-gutter-filler");c.lineDiv=o("div",null,"CodeMirror-code");c.selectionDiv=o("div",null,null,"position: relative; z-index: 1");c.cursor=o("div"," ","CodeMirror-cursor");c.otherCursor=o("div"," ","CodeMirror-cursor CodeMirror-secondarycursor");c.measure=o("div",null,"CodeMirror-measure");c.lineSpace=o("div",[c.measure,c.selectionDiv,c.lineDiv,c.cursor,c.otherCursor],null,"position: relative; outline: none");c.mover=o("div",[o("div",[c.lineSpace],"CodeMirror-lines")],
5
+ null,"position: relative");c.sizer=o("div",[c.mover],"CodeMirror-sizer");c.heightForcer=o("div",null,null,"position: absolute; height: "+oa+"px; width: 1px;");c.gutters=o("div",null,"CodeMirror-gutters");c.lineGutter=null;c.scroller=o("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll");c.scroller.setAttribute("tabIndex","-1");c.wrapper=o("div",[c.inputDiv,c.scrollbarH,c.scrollbarV,c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror");pa&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=
6
+ 0);a.appendChild?a.appendChild(c.wrapper):a(c.wrapper);Ga&&(d.style.width="0px");G||(c.scroller.draggable=!0);Ub?(c.inputDiv.style.height="1px",c.inputDiv.style.position="absolute"):pa&&(c.scrollbarH.style.minWidth=c.scrollbarV.style.minWidth="18px");c.viewOffset=c.lastSizeC=0;c.showingFrom=c.showingTo=b;c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null;c.prevInput="";c.alignWidgets=!1;c.pollingFast=!1;c.poll=new Rb;c.cachedCharWidth=c.cachedTextHeight=null;c.measureLineCache=[];c.measureLineCachePos=
7
+ 0;c.inaccurateSelection=!1;c.maxLine=null;c.maxLineLength=0;c.maxLineChanged=!1;c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null;return c}function Ha(a){a.doc.mode=k.getMode(a.options,a.doc.modeOption);a.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null)});a.doc.frontier=a.doc.first;Ia(a,100);a.state.modeGen++;a.curOp&&w(a)}function Oc(a){var b=qa(a.display),c=a.options.lineWrapping,d=c&&Math.max(5,a.display.scroller.clientWidth/Pc(a.display)-3);return function(e){return ga(a.doc,
8
+ e)?0:c?(Math.ceil(e.text.length/d)||1)*b:b}}function Vb(a){var b=a.doc,c=Oc(a);b.iter(function(a){var b=c(a);b!=a.height&&P(a,b)})}function Qc(a){var b=Y[a.options.keyMap],c=b.style;a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-keymap-\S+/g,"")+(c?" cm-keymap-"+c:"");a.state.disableInput=b.disableInput}function Lc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-");ra(a)}function Ja(a){Kc(a);
9
+ w(a);setTimeout(function(){Wb(a)},20)}function Kc(a){var b=a.display.gutters,c=a.options.gutters;Ka(b);for(var d=0;d<c.length;++d){var e=c[d],f=b.appendChild(o("div",null,"CodeMirror-gutter "+e));"CodeMirror-linenumbers"==e&&(a.display.lineGutter=f,f.style.width=(a.display.lineNumWidth||1)+"px")}b.style.display=d?"":"none"}function mb(a,b){if(0==b.height)return 0;for(var c=b.text.length,d,e=b;d=sa(e,-1);)d=d.find(),e=p(a,d.from.line),c+=d.from.ch-d.to.ch;for(e=b;d=nb(e);)d=d.find(),c-=e.text.length-
10
+ d.from.ch,e=p(a,d.to.line),c+=e.text.length-d.to.ch;return c}function Xb(a){var b=a.display,c=a.doc;b.maxLine=p(c,c.first);b.maxLineLength=mb(c,b.maxLine);b.maxLineChanged=!0;c.iter(function(a){var e=mb(c,a);e>b.maxLineLength&&(b.maxLineLength=e,b.maxLine=a)})}function Pb(a){var b=S(a.gutters,"CodeMirror-linenumbers");-1==b&&a.lineNumbers?a.gutters=a.gutters.concat(["CodeMirror-linenumbers"]):-1<b&&!a.lineNumbers&&(a.gutters=a.gutters.slice(0),a.gutters.splice(b,1))}function Yb(a){var b=a.display,
11
+ c=a.doc.height+(b.mover.offsetHeight-b.lineSpace.offsetHeight);b.sizer.style.minHeight=b.heightForcer.style.top=c+"px";b.gutters.style.height=Math.max(c,b.scroller.clientHeight-oa)+"px";var c=Math.max(c,b.scroller.scrollHeight),d=b.scroller.scrollWidth>b.scroller.clientWidth+1,e=c>b.scroller.clientHeight+1;e?(b.scrollbarV.style.display="block",b.scrollbarV.style.bottom=d?La(b.measure)+"px":"0",b.scrollbarV.firstChild.style.height=c-b.scroller.clientHeight+b.scrollbarV.clientHeight+"px"):(b.scrollbarV.style.display=
12
+ "",b.scrollbarV.firstChild.style.height="0");d?(b.scrollbarH.style.display="block",b.scrollbarH.style.right=e?La(b.measure)+"px":"0",b.scrollbarH.firstChild.style.width=b.scroller.scrollWidth-b.scroller.clientWidth+b.scrollbarH.clientWidth+"px"):(b.scrollbarH.style.display="",b.scrollbarH.firstChild.style.width="0");d&&e?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=b.scrollbarFiller.style.width=La(b.measure)+"px"):b.scrollbarFiller.style.display="";d&&a.options.coverGutterNextToScrollbar&&
13
+ a.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=La(b.measure)+"px",b.gutterFiller.style.width=b.gutters.offsetWidth+"px"):b.gutterFiller.style.display="";Rd&&0===La(b.measure)&&(b.scrollbarV.style.minWidth=b.scrollbarH.style.minHeight=Sd?"18px":"12px",b.scrollbarV.style.pointerEvents=b.scrollbarH.style.pointerEvents="none")}function Zb(a,b,c){var d=a.scroller.scrollTop,e=a.wrapper.clientHeight;"number"==typeof c?d=c:c&&(d=c.top,e=c.bottom-c.top);d=Math.floor(d-
14
+ a.lineSpace.offsetTop);a=Math.ceil(d+e);return{from:Ma(b,d),to:Ma(b,a)}}function Wb(a){var b=a.display;if(b.alignWidgets||b.gutters.firstChild&&a.options.fixedGutter){for(var c=$b(b)-b.scroller.scrollLeft+a.doc.scrollLeft,d=b.gutters.offsetWidth,e=c+"px",f=b.lineDiv.firstChild;f;f=f.nextSibling)if(f.alignable)for(var g=0,h=f.alignable;g<h.length;++g)h[g].style.left=e;a.options.fixedGutter&&(b.gutters.style.left=c+d+"px")}}function Td(a){if(!a.options.lineNumbers)return!1;var b=a.doc,b=""+a.options.lineNumberFormatter(b.first+
15
+ b.size-1+a.options.firstLineNumber),a=a.display;if(b.length!=a.lineNumChars){var c=a.measure.appendChild(o("div",[o("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,c=c.offsetWidth-d;a.lineGutter.style.width="";a.lineNumInnerWidth=Math.max(d,a.lineGutter.offsetWidth-c);a.lineNumWidth=a.lineNumInnerWidth+c;a.lineNumChars=a.lineNumInnerWidth?b.length:-1;a.lineGutter.style.width=a.lineNumWidth+"px";return!0}return!1}function $b(a){return x(a.scroller).left-x(a.sizer).left}
16
+ function ob(a,b,c,d){for(var e=a.display.showingFrom,f=a.display.showingTo,g,h=Zb(a.display,a.doc,c),i=!0;;i=!1){var j=a.display.scroller.clientWidth;if(!Ud(a,b,h,d))break;g=!0;b=[];ac(a);Yb(a);if(i&&a.options.lineWrapping&&j!=a.display.scroller.clientWidth)d=!0;else if(d=!1,c&&(c=Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,"number"==typeof c?c:c.top)),h=Zb(a.display,a.doc,c),h.from>=a.display.showingFrom&&h.to<=a.display.showingTo)break}g&&(E(a,"update",a),(a.display.showingFrom!=
17
+ e||a.display.showingTo!=f)&&E(a,"viewportChange",a,a.display.showingFrom,a.display.showingTo));return g}function Ud(a,b,c,d){var e=a.display,f=a.doc;if(e.wrapper.clientWidth){if(d||!(0==b.length&&c.from>e.showingFrom&&c.to<e.showingTo)){Td(a)&&(b=[{from:f.first,to:f.first+f.size}]);var g=e.sizer.style.marginLeft=e.gutters.offsetWidth+"px";e.scrollbarH.style.left=a.options.fixedGutter?g:"0";g=Infinity;if(a.options.lineNumbers)for(var h=0;h<b.length;++h)b[h].diff&&b[h].from<g&&(g=b[h].from);var h=f.first+
18
+ f.size,i=Math.max(c.from-a.options.viewportMargin,f.first),c=Math.min(h,c.to+a.options.viewportMargin);e.showingFrom<i&&20>i-e.showingFrom&&(i=Math.max(f.first,e.showingFrom));e.showingTo>c&&20>e.showingTo-c&&(c=Math.min(h,e.showingTo));if(Na)for(i=K(Z(f,p(f,i)));c<h&&ga(f,p(f,c));)++c;var j=[{from:Math.max(e.showingFrom,f.first),to:Math.min(e.showingTo,h)}],j=j[0].from>=j[0].to?[]:Vd(j,b);if(Na)for(h=0;h<j.length;++h)for(var b=j[h],l;l=nb(p(f,b.to-1));)if(l=l.find().from.line,l>b.from)b.to=l;else{j.splice(h--,
19
+ 1);break}for(h=f=0;h<j.length;++h)b=j[h],b.from<i&&(b.from=i),b.to>c&&(b.to=c),b.from>=b.to?j.splice(h--,1):f+=b.to-b.from;if(!d&&f==c-i&&i==e.showingFrom&&c==e.showingTo)Rc(a);else{j.sort(function(a,b){return a.from-b.from});try{var B=document.activeElement}catch(n){}f<0.7*(c-i)&&(e.lineDiv.style.display="none");Wd(a,i,c,j,g);e.lineDiv.style.display="";B&&(document.activeElement!=B&&B.offsetHeight)&&B.focus();if(i!=e.showingFrom||c!=e.showingTo||e.lastSizeC!=e.wrapper.clientHeight)e.lastSizeC=e.wrapper.clientHeight,
20
+ Ia(a,400);e.showingFrom=i;e.showingTo=c;Xd(a);Rc(a);return!0}}}else e.showingFrom=e.showingTo=f.first,e.viewOffset=0}function Xd(a){for(var a=a.display,b=a.lineDiv.offsetTop,c=a.lineDiv.firstChild,d;c;c=c.nextSibling)if(c.lineObj){if(pa){var e=c.offsetTop+c.offsetHeight;d=e-b;b=e}else d=x(c),d=d.bottom-d.top;e=c.lineObj.height-d;2>d&&(d=qa(a));if(0.001<e||-0.001>e)if(P(c.lineObj,d),d=c.lineObj.widgets)for(e=0;e<d.length;++e)d[e].height=d[e].node.offsetHeight}}function Rc(a){var b=a.display.viewOffset=
21
+ Oa(a,p(a.doc,a.display.showingFrom));a.display.mover.style.top=b+"px"}function Vd(a,b){for(var c=0,d=b.length||0;c<d;++c){for(var e=b[c],f=[],g=e.diff||0,h=0,i=a.length;h<i;++h){var j=a[h];e.to<=j.from&&e.diff?f.push({from:j.from+g,to:j.to+g}):e.to<=j.from||e.from>=j.to?f.push(j):(e.from>j.from&&f.push({from:j.from,to:e.from}),e.to<j.to&&f.push({from:e.to+g,to:j.to+g}))}a=f}return a}function Yd(a){for(var b=a.display,c={},d={},e=b.gutters.firstChild,f=0;e;e=e.nextSibling,++f)c[a.options.gutters[f]]=
22
+ e.offsetLeft,d[a.options.gutters[f]]=e.offsetWidth;return{fixedPos:$b(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:c,gutterWidth:d,wrapperWidth:b.wrapper.clientWidth}}function Wd(a,b,c,d,e){function f(b){var c=b.nextSibling;G&&ta&&a.display.currentWheelTarget==b?(b.style.display="none",b.lineObj=null):b.parentNode.removeChild(b);return c}var g=Yd(a),h=a.display,i=a.options.lineNumbers;!d.length&&(!G||!a.display.currentWheelTarget)&&Ka(h.lineDiv);var j=h.lineDiv,l=j.firstChild,B=d.shift(),
23
+ n=b;for(a.doc.iter(b,c,function(b){B&&B.to==n&&(B=d.shift());if(ga(a.doc,b)){if(0!=b.height&&P(b,0),b.widgets&&l&&l.previousSibling)for(var c=0;c<b.widgets.length;++c){var h=b.widgets[c];if(h.showIfHidden){var k=l.previousSibling;if(/pre/i.test(k.nodeName)){var z=o("div",null,null,"position: relative");k.parentNode.replaceChild(z,k);z.appendChild(k);k=z}z=k.appendChild(o("div",[h.node],"CodeMirror-linewidget"));h.handleMouseEvents||(z.ignoreEvents=!0);bc(h,z,k,g)}}}else if(B&&B.from<=n&&B.to>n){for(;l.lineObj!=
24
+ b;)l=f(l);i&&(e<=n&&l.lineNumber)&&Sc(l.lineNumber,""+a.options.lineNumberFormatter(n+a.options.firstLineNumber));l=l.nextSibling}else{if(b.widgets)for(var z=0,m=l;m&&20>z;++z,m=m.nextSibling)if(m.lineObj==b&&/div/i.test(m.nodeName)){c=m;break}var z=a,p=n,C=c,u=cc(z,b),m=u.pre,q=b.gutterMarkers,r=z.display,s=u.bgClass?u.bgClass+" "+(b.bgClass||""):b.bgClass;if(!z.options.lineNumbers&&!q&&!s&&!b.wrapClass&&!b.widgets)h=m;else{if(C){C.alignable=null;for(var t=!0,v=0,y=null,D=C.firstChild,x;D;D=x)if(x=
25
+ D.nextSibling,/\bCodeMirror-linewidget\b/.test(D.className)){for(u=0;u<b.widgets.length;++u){var w=b.widgets[u];if(w.node==D.firstChild){!w.above&&!y&&(y=D);bc(w,D,C,g);++v;break}}if(u==b.widgets.length){t=!1;break}}else C.removeChild(D);C.insertBefore(m,y);t&&v==b.widgets.length&&(h=C,C.className=b.wrapClass||"")}h||(h=o("div",null,b.wrapClass,"position: relative"),h.appendChild(m));s&&h.insertBefore(o("div",null,s+" CodeMirror-linebackground"),h.firstChild);if(z.options.lineNumbers||q){k=h.insertBefore(o("div",
26
+ null,null,"position: absolute; left: "+(z.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px"),h.firstChild);z.options.fixedGutter&&(h.alignable||(h.alignable=[])).push(k);if(z.options.lineNumbers&&(!q||!q["CodeMirror-linenumbers"]))h.lineNumber=k.appendChild(o("div",""+z.options.lineNumberFormatter(p+z.options.firstLineNumber),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+g.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.lineNumInnerWidth+"px"));if(q)for(u=0;u<z.options.gutters.length;++u)w=
27
+ z.options.gutters[u],(p=q.hasOwnProperty(w)&&q[w])&&k.appendChild(o("div",[p],"CodeMirror-gutter-elt","left: "+g.gutterLeft[w]+"px; width: "+g.gutterWidth[w]+"px"))}pa&&(h.style.zIndex=2);if(b.widgets&&h!=C){u=0;for(C=b.widgets;u<C.length;++u)w=C[u],q=o("div",[w.node],"CodeMirror-linewidget"),w.handleMouseEvents||(q.ignoreEvents=!0),bc(w,q,h,g),w.above?h.insertBefore(q,z.options.lineNumbers&&0!=b.height?k:m):h.appendChild(q),E(w,"redraw")}}if(h!=c)j.insertBefore(h,l);else{for(;l!=c;)l=f(l);l=l.nextSibling}h.lineObj=
28
+ b}++n});l;)l=f(l)}function bc(a,b,c,d){a.noHScroll&&((c.alignable||(c.alignable=[])).push(b),c=d.wrapperWidth,b.style.left=d.fixedPos+"px",a.coverGutter||(c-=d.gutterTotalWidth,b.style.paddingLeft=d.gutterTotalWidth+"px"),b.style.width=c+"px");a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-d.gutterTotalWidth+"px"))}function ac(a){var b=a.display,c=v(a.doc.sel.from,a.doc.sel.to);if(c||a.options.showCursorWhenSelecting){var d=a.display,e=N(a,a.doc.sel.head,
29
+ "div");d.cursor.style.left=e.left+"px";d.cursor.style.top=e.top+"px";d.cursor.style.height=Math.max(0,e.bottom-e.top)*a.options.cursorHeight+"px";d.cursor.style.display="";e.other?(d.otherCursor.style.display="",d.otherCursor.style.left=e.other.left+"px",d.otherCursor.style.top=e.other.top+"px",d.otherCursor.style.height=0.85*(e.other.bottom-e.other.top)+"px"):d.otherCursor.style.display="none"}else b.cursor.style.display=b.otherCursor.style.display="none";c?b.selectionDiv.style.display="none":Zd(a);
30
+ a.options.moveInputWithCursor&&(a=N(a,a.doc.sel.head,"div"),c=x(b.wrapper),d=x(b.lineDiv),b.inputDiv.style.top=Math.max(0,Math.min(b.wrapper.clientHeight-10,a.top+d.top-c.top))+"px",b.inputDiv.style.left=Math.max(0,Math.min(b.wrapper.clientWidth-10,a.left+d.left-c.left))+"px")}function Zd(a){function b(a,b,c,d){0>b&&(b=0);g.appendChild(o("div",null,"CodeMirror-selected","position: absolute; left: "+a+"px; top: "+b+"px; width: "+(null==c?h-a:c)+"px; height: "+(d-b)+"px"))}function c(c,d,f){var g=p(e,
31
+ c),j=g.text.length,l,k;$d(T(g),d||0,null==f?j:f,function(e,q,C){var u=pb(a,m(c,e),"div",g,"left"),p,o;e==q?(p=u,C=o=u.left):(p=pb(a,m(c,q-1),"div",g,"right"),"rtl"==C&&(C=u,u=p,p=C),C=u.left,o=p.right);null==d&&0==e&&(C=i);3<p.top-u.top&&(b(C,u.top,null,u.bottom),C=i,u.bottom<p.top&&b(C,u.bottom,null,p.top));null==f&&q==j&&(o=h);if(!l||u.top<l.top||u.top==l.top&&u.left<l.left)l=u;if(!k||p.bottom>k.bottom||p.bottom==k.bottom&&p.right>k.right)k=p;C<i+1&&(C=i);b(C,p.top,o-C,p.bottom)});return{start:l,
32
+ end:k}}var d=a.display,e=a.doc,f=a.doc.sel,g=document.createDocumentFragment(),h=d.lineSpace.offsetWidth,i=U(a.display.measure,o("pre",null,null,"text-align: left")).appendChild(o("span","x")).offsetLeft;if(f.from.line==f.to.line)c(f.from.line,f.from.ch,f.to.ch);else{var j=p(e,f.from.line),l=p(e,f.to.line),l=Z(e,j)==Z(e,l),j=c(f.from.line,f.from.ch,l?j.text.length:null).end,f=c(f.to.line,l?0:null,f.to.ch).start;l&&(j.top<f.top-2?(b(j.right,j.top,null,j.bottom),b(i,f.top,f.left,f.bottom)):b(j.right,
33
+ j.top,f.left-j.right,j.bottom));j.bottom<f.top&&b(i,j.bottom,null,f.top)}U(d.selectionDiv,g);d.selectionDiv.style.display=""}function qb(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var c=!0;b.cursor.style.visibility=b.otherCursor.style.visibility="";0<a.options.cursorBlinkRate&&(b.blinker=setInterval(function(){b.cursor.style.visibility=b.otherCursor.style.visibility=(c=!c)?"":"hidden"},a.options.cursorBlinkRate))}}function Ia(a,b){a.doc.mode.startState&&a.doc.frontier<a.display.showingTo&&
34
+ a.state.highlight.set(b,O(ae,a))}function ae(a){var b=a.doc;b.frontier<b.first&&(b.frontier=b.first);if(!(b.frontier>=a.display.showingTo)){var c=+new Date+a.options.workTime,d=ua(b.mode,Pa(a,b.frontier)),e=[],f;b.iter(b.frontier,Math.min(b.first+b.size,a.display.showingTo+500),function(g){if(b.frontier>=a.display.showingFrom){var h=g.styles;g.styles=Uc(a,g,d,true);for(var i=!h||h.length!=g.styles.length,j=0;!i&&j<h.length;++j)i=h[j]!=g.styles[j];i&&(f&&f.end==b.frontier?f.end++:e.push(f={start:b.frontier,
35
+ end:b.frontier+1}));g.stateAfter=ua(b.mode,d)}else{dc(a,g.text,d);g.stateAfter=b.frontier%5==0?ua(b.mode,d):null}++b.frontier;if(+new Date>c){Ia(a,a.options.workDelay);return true}});e.length&&s(a,function(){for(var a=0;a<e.length;++a)w(this,e[a].start,e[a].end)})()}}function be(a,b,c){for(var d,e,f=a.doc,g=c?-1:b-(a.doc.mode.innerMode?1E3:100);b>g;--b){if(b<=f.first)return f.first;var h=p(f,b-1);if(h.stateAfter&&(!c||b<=f.frontier))return b;h=va(h.text,null,a.options.tabSize);if(null==e||d>h)e=b-
36
+ 1,d=h}return e}function Pa(a,b,c){var d=a.doc,e=a.display;if(!d.mode.startState)return!0;var f=be(a,b,c),g=f>d.first&&p(d,f-1).stateAfter,g=g?ua(d.mode,g):Vc(d.mode);d.iter(f,b,function(c){dc(a,c.text,g);c.stateAfter=f==b-1||0==f%5||f>=e.showingFrom&&f<e.showingTo?ua(d.mode,g):null;++f});c&&(d.frontier=f);return g}function Qa(a,b,c,d,e){var f=-1,d=d||ec(a,b);if(d.crude)return c=d.left+c*d.width,{left:c,right:c+d.width,top:d.top,bottom:d.bottom};for(a=c;;a+=f){var g=d[a];if(g)break;0>f&&0==a&&(f=1)}e=
37
+ a>c?"left":a<c?"right":e;"left"==e&&g.leftSide?g=g.leftSide:"right"==e&&g.rightSide&&(g=g.rightSide);return{left:a<c?g.right:g.left,right:a>c?g.left:g.right,top:g.top,bottom:g.bottom}}function fc(a,b){for(var c=a.display.measureLineCache,d=0;d<c.length;++d){var e=c[d];if(e.text==b.text&&e.markedSpans==b.markedSpans&&a.display.scroller.clientWidth==e.width&&e.classes==b.textClass+"|"+b.wrapClass)return e}}function ce(a,b){var c=fc(a,b);c&&(c.text=c.measure=c.markedSpans=null)}function ec(a,b){var c=
38
+ fc(a,b);if(c)return c.measure;var c=Wc(a,b),d=a.display.measureLineCache,e={text:b.text,width:a.display.scroller.clientWidth,markedSpans:b.markedSpans,measure:c,classes:b.textClass+"|"+b.wrapClass};16==d.length?d[++a.display.measureLineCachePos%16]=e:d.push(e);return c}function Wc(a,b){function c(a){var b=a.top-$.top,c=a.bottom-$.top;c>m&&(c=m);0>b&&(b=0);for(var d=k.length-2;0<=d;d-=2){var e=k[d],f=k[d+1];if(!(e>c||f<b))if(e<=b&&f>=c||b<=e&&c>=f||Math.min(c,f)-Math.max(b,e)>=c-b>>1){k[d]=Math.min(b,
39
+ e);k[d+1]=Math.max(c,f);break}}0>d&&(d=k.length,k.push(b,c));return{left:a.left-$.left,right:a.right-$.left,top:d,bottom:null}}function d(a){a.bottom=k[a.top+1];a.top=k[a.top]}if(!a.options.lineWrapping&&b.text.length>=a.options.crudeMeasuringFrom)return de(a,b);var e=a.display,f=Xc(b.text.length),g=cc(a,b,f,!0).pre;if(D&&!pa&&!a.options.lineWrapping&&100<g.childNodes.length){for(var h=document.createDocumentFragment(),i=g.childNodes.length,j=0,l=Math.ceil(i/10);j<l;++j){for(var B=o("div",null,null,
40
+ "display: inline-block"),n=0;10>n&&i;++n)B.appendChild(g.firstChild),--i;h.appendChild(B)}g.appendChild(h)}U(e.measure,g);var $=x(e.lineDiv),k=[],h=Xc(b.text.length),m=g.offsetHeight;L&&e.measure.first!=g&&U(e.measure,g);for(j=0;j<f.length;++j)if(e=f[j]){g=e;i=null;if(/\bCodeMirror-widget\b/.test(e.className)&&e.getClientRects&&(1==e.firstChild.nodeType&&(g=e.firstChild),l=g.getClientRects(),1<l.length))i=h[j]=c(l[0]),i.rightSide=c(l[l.length-1]);i||(i=h[j]=c(x(g)));e.measureRight&&(i.right=x(e.measureRight).left);
41
+ e.leftSide&&(i.leftSide=c(x(e.leftSide)))}Ka(a.display.measure);for(j=0;j<h.length;++j)if(e=h[j])d(e),e.leftSide&&d(e.leftSide),e.rightSide&&d(e.rightSide);return h}function de(a,b){var c=new ca(b.text.slice(0,100),null);b.textClass&&(c.textClass=b.textClass);var d=Wc(a,c),e=Qa(a,c,0,d,"left"),c=Qa(a,c,99,d,"right");return{crude:!0,top:e.top,left:e.left,bottom:e.bottom,width:(c.right-e.left)/100}}function ra(a){a.display.measureLineCache.length=a.display.measureLineCachePos=0;a.display.cachedCharWidth=
42
+ a.display.cachedTextHeight=null;a.options.lineWrapping||(a.display.maxLineChanged=!0);a.display.lineNumChars=null}function gc(a,b,c,d){if(b.widgets)for(var e=0;e<b.widgets.length;++e)if(b.widgets[e].above){var f=rb(b.widgets[e]);c.top+=f;c.bottom+=f}if("line"==d)return c;d||(d="local");b=Oa(a,b);b="local"==d?b+a.display.lineSpace.offsetTop:b-a.display.viewOffset;if("page"==d||"window"==d)a=x(a.display.lineSpace),b+=a.top+("window"==d?0:window.pageYOffset||(document.documentElement||document.body).scrollTop),
43
+ d=a.left+("window"==d?0:window.pageXOffset||(document.documentElement||document.body).scrollLeft),c.left+=d,c.right+=d;c.top+=b;c.bottom+=b;return c}function Yc(a,b,c){if("div"==c)return b;var d=b.left,b=b.top;if("page"==c)d-=window.pageXOffset||(document.documentElement||document.body).scrollLeft,b-=window.pageYOffset||(document.documentElement||document.body).scrollTop;else if("local"==c||!c)c=x(a.display.sizer),d+=c.left,b+=c.top;a=x(a.display.lineSpace);return{left:d-a.left,top:b-a.top}}function pb(a,
44
+ b,c,d,e){d||(d=p(a.doc,b.line));return gc(a,d,Qa(a,d,b.ch,null,e),c)}function N(a,b,c,d,e){function f(b,f){var g=Qa(a,d,b,e,f?"right":"left");f?g.left=g.right:g.right=g.left;return gc(a,d,g,c)}function g(a,b){var c=h[b],d=c.level%2;a==(c.level%2?c.to:c.from)&&b&&c.level<h[b-1].level?(c=h[--b],a=hc(c)-(c.level%2?0:1),d=!0):a==hc(c)&&(b<h.length-1&&c.level<h[b+1].level)&&(c=h[++b],a=(c.level%2?c.to:c.from)-c.level%2,d=!1);return d&&a==c.to&&a>c.from?f(a-1):f(a,d)}d=d||p(a.doc,b.line);e||(e=ec(a,d));
45
+ var h=T(d),b=b.ch;if(!h)return f(b);var i=ic(h,b),i=g(b,i);null!=wa&&(i.other=g(b,wa));return i}function sb(a,b,c,d){a=new m(a,b);a.xRel=d;c&&(a.outside=!0);return a}function jc(a,b,c){var d=a.doc,c=c+a.display.viewOffset;if(0>c)return sb(d.first,0,!0,-1);var e=Ma(d,c),f=d.first+d.size-1;if(e>f)return sb(d.first+d.size-1,p(d,f).text.length,!0,1);for(0>b&&(b=0);;){var f=p(d,e),e=ee(a,f,e,b,c),g=(f=nb(f))&&f.find();if(f&&(e.ch>g.from.ch||e.ch==g.from.ch&&0<e.xRel))e=g.to.line;else return e}}function ee(a,
46
+ b,c,d,e){function f(d){d=N(a,m(c,d),"line",b,j);h=!0;if(g>d.bottom)return d.left-i;if(g<d.top)return d.left+i;h=!1;return d.left}var g=e-Oa(a,b),h=!1,i=2*a.display.wrapper.clientWidth,j=ec(a,b),l=T(b),B=b.text.length,e=tb(b),n=ub(b),$=f(e),k=h,p=f(n),q=h;if(d>p)return sb(c,n,q,1);for(;;){if(l?n==e||n==kc(b,e,1):1>=n-e){l=d<$||d-$<=p-d?e:n;for(d-=l==e?$:p;lc.test(b.text.charAt(l));)++l;return sb(c,l,l==e?k:q,0>d?-1:d?1:0)}var o=Math.ceil(B/2),r=e+o;if(l)for(var r=e,s=0;s<o;++s)r=kc(b,r,1);s=f(r);if(s>
47
+ d){n=r;p=s;if(q=h)p+=1E3;B=o}else e=r,$=s,k=h,B-=o}}function qa(a){if(null!=a.cachedTextHeight)return a.cachedTextHeight;if(null==ha){ha=o("pre");for(var b=0;49>b;++b)ha.appendChild(document.createTextNode("x")),ha.appendChild(o("br"));ha.appendChild(document.createTextNode("x"))}U(a.measure,ha);b=ha.offsetHeight/50;3<b&&(a.cachedTextHeight=b);Ka(a.measure);return b||1}function Pc(a){if(null!=a.cachedCharWidth)return a.cachedCharWidth;var b=o("span","x"),c=o("pre",[b]);U(a.measure,c);b=b.offsetWidth;
48
+ 2<b&&(a.cachedCharWidth=b);return b||10}function xa(a){a.curOp={changes:[],forceUpdate:!1,updateInput:null,userSelChange:null,textChanged:null,selectionChanged:!1,cursorActivity:!1,updateMaxLine:!1,updateScrollPos:!1,id:++fe};vb++||(da=[])}function ya(a){var b=a.curOp,c=a.doc,d=a.display;a.curOp=null;b.updateMaxLine&&Xb(a);if(d.maxLineChanged&&!a.options.lineWrapping&&d.maxLine){var e;e=d.maxLine;var f=!1;if(e.markedSpans)for(var g=0;g<e.markedSpans;++g){var h=e.markedSpans[g];if(h.collapsed&&(null==
49
+ h.to||h.to==e.text.length))f=!0}(f=!f&&fc(a,e))||e.text.length>=a.options.crudeMeasuringFrom?e=Qa(a,e,e.text.length,f&&f.measure,"right").right:(e=cc(a,e,null,!0).pre,f=e.appendChild(Ra(a.display.measure)),U(a.display.measure,e),e=x(f).right-x(a.display.lineDiv).left);d.sizer.style.minWidth=Math.max(0,e+3+oa)+"px";d.maxLineChanged=!1;e=Math.max(0,d.sizer.offsetLeft+d.sizer.offsetWidth-d.scroller.clientWidth);e<c.scrollLeft&&!b.updateScrollPos&&za(a,Math.min(d.scroller.scrollLeft,e),!0)}var i,j;b.updateScrollPos?
50
+ i=b.updateScrollPos:b.selectionChanged&&d.scroller.clientHeight&&(i=N(a,c.sel.head),i=wb(a,i.left,i.top,i.left,i.bottom));if(b.changes.length||b.forceUpdate||i&&null!=i.scrollTop)j=ob(a,b.changes,i&&i.scrollTop,b.forceUpdate),a.display.scroller.offsetHeight&&(a.doc.scrollTop=a.display.scroller.scrollTop);!j&&b.selectionChanged&&ac(a);if(b.updateScrollPos)j=Math.max(0,Math.min(d.scroller.scrollHeight-d.scroller.clientHeight,i.scrollTop)),i=Math.max(0,Math.min(d.scroller.scrollWidth-d.scroller.clientWidth,
51
+ i.scrollLeft)),d.scroller.scrollTop=d.scrollbarV.scrollTop=c.scrollTop=j,d.scroller.scrollLeft=d.scrollbarH.scrollLeft=c.scrollLeft=i,Wb(a),b.scrollToPos&&Zc(a,q(a.doc,b.scrollToPos.from),q(a.doc,b.scrollToPos.to),b.scrollToPos.margin);else if(i&&(c=Zc(a,a.doc.sel.head,null,a.options.cursorScrollMargin),a.state.focused)){d=a.display;j=x(d.sizer);i=null;if(0>c.top+j.top)i=!0;else if(c.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight))i=!1;if(null!=i&&!ge){if(j="none"==d.cursor.style.display)d.cursor.style.display=
52
+ "",d.cursor.style.left=c.left+"px",d.cursor.style.top=c.top-d.viewOffset+"px";d.cursor.scrollIntoView(i);j&&(d.cursor.style.display="none")}}b.selectionChanged&&qb(a);a.state.focused&&b.updateInput&&X(a,b.userSelChange);c=b.maybeHiddenMarkers;d=b.maybeUnhiddenMarkers;if(c)for(i=0;i<c.length;++i)c[i].lines.length||F(c[i],"hide");if(d)for(i=0;i<d.length;++i)d[i].lines.length&&F(d[i],"unhide");var l;--vb||(l=da,da=null);b.textChanged&&F(a,"change",a,b.textChanged);b.cursorActivity&&F(a,"cursorActivity",
53
+ a);if(l)for(i=0;i<l.length;++i)l[i]()}function s(a,b){return function(){var c=a||this,d=!c.curOp;d&&xa(c);try{var e=b.apply(c,arguments)}finally{d&&ya(c)}return e}}function Sa(a){return function(){var b=this.cm&&!this.cm.curOp,c;b&&xa(this.cm);try{c=a.apply(this,arguments)}finally{b&&ya(this.cm)}return c}}function mc(a,b){var c=!a.curOp,d;c&&xa(a);try{d=b()}finally{c&&ya(a)}return d}function w(a,b,c,d){null==b&&(b=a.doc.first);null==c&&(c=a.doc.first+a.doc.size);a.curOp.changes.push({from:b,to:c,
54
+ diff:d})}function xb(a){a.display.pollingFast||a.display.poll.set(a.options.pollInterval,function(){nc(a);a.state.focused&&xb(a)})}function Ta(a){function b(){!nc(a)&&!c?(c=!0,a.display.poll.set(60,b)):(a.display.pollingFast=!1,xb(a))}var c=!1;a.display.pollingFast=!0;a.display.poll.set(20,b)}function nc(a){var b=a.display.input,c=a.display.prevInput,d=a.doc,e=d.sel;if(!a.state.focused||he(b)||Ua(a)||a.state.disableInput)return!1;a.state.pasteIncoming&&a.state.fakedLastChar&&(b.value=b.value.substring(0,
55
+ b.value.length-1),a.state.fakedLastChar=!1);var f=b.value;if(f==c&&v(e.from,e.to))return!1;if(D&&!L&&a.display.inputHasSelection===f)return X(a,!0),!1;var g=!a.curOp;g&&xa(a);e.shift=!1;for(var h=0,i=Math.min(c.length,f.length);h<i&&c.charCodeAt(h)==f.charCodeAt(h);)++h;i=e.from;e=e.to;h<c.length?i=m(i.line,i.ch-(c.length-h)):a.state.overwrite&&(v(i,e)&&!a.state.pasteIncoming)&&(e=m(e.line,Math.min(p(d,e.line).text.length,e.ch+(f.length-h))));c=a.curOp.updateInput;h={from:i,to:e,text:ia(f.slice(h)),
56
+ origin:a.state.pasteIncoming?"paste":"+input"};Aa(a.doc,h,"end");a.curOp.updateInput=c;E(a,"inputRead",a,h);1E3<f.length||-1<f.indexOf("\n")?b.value=a.display.prevInput="":a.display.prevInput=f;g&&ya(a);a.state.pasteIncoming=!1;return!0}function X(a,b){var c,d,e=a.doc;v(e.sel.from,e.sel.to)?b&&(a.display.prevInput=a.display.input.value="",D&&!L&&(a.display.inputHasSelection=null)):(a.display.prevInput="",d=(c=$c&&(100<e.sel.to.line-e.sel.from.line||1E3<(d=a.getSelection()).length))?"-":d||a.getSelection(),
57
+ a.display.input.value=d,a.state.focused&&ad(a.display.input),D&&!L&&(a.display.inputHasSelection=d));a.display.inaccurateSelection=c}function M(a){"nocursor"!=a.options.readOnly&&(!Qb||document.activeElement!=a.display.input)&&a.display.input.focus()}function Ua(a){return a.options.readOnly||a.doc.cantEdit}function Qd(a){function b(){a.state.focused&&setTimeout(O(M,a),0)}function c(){null==h&&(h=setTimeout(function(){h=null;g.cachedCharWidth=g.cachedTextHeight=Va=null;ra(a);mc(a,O(w,a))},100))}function d(){for(var a=
58
+ g.wrapper.parentNode;a&&a!=document.body;a=a.parentNode);a?setTimeout(d,5E3):aa(window,"resize",c)}function e(b){V(a,b)||a.options.onDragEvent&&a.options.onDragEvent(a,Wa(b))||Xa(b)}function f(){g.inaccurateSelection&&(g.prevInput="",g.inaccurateSelection=!1,g.input.value=a.getSelection(),ad(g.input))}var g=a.display;t(g.scroller,"mousedown",s(a,ie));D?t(g.scroller,"dblclick",s(a,function(b){if(!V(a,b)){var c=Ya(a,b);c&&(!oc(a,b,"gutterClick",!0,E)&&!ja(a.display,b))&&(A(b),b=pc(p(a.doc,c.line).text,
59
+ c),H(a.doc,b.from,b.to))}})):t(g.scroller,"dblclick",function(b){V(a,b)||A(b)});t(g.lineSpace,"selectstart",function(a){ja(g,a)||A(a)});qc||t(g.scroller,"contextmenu",function(b){bd(a,b)});t(g.scroller,"scroll",function(){g.scroller.clientHeight&&(Za(a,g.scroller.scrollTop),za(a,g.scroller.scrollLeft,!0),F(a,"scroll",a))});t(g.scrollbarV,"scroll",function(){g.scroller.clientHeight&&Za(a,g.scrollbarV.scrollTop)});t(g.scrollbarH,"scroll",function(){g.scroller.clientHeight&&za(a,g.scrollbarH.scrollLeft)});
60
+ t(g.scroller,"mousewheel",function(b){cd(a,b)});t(g.scroller,"DOMMouseScroll",function(b){cd(a,b)});t(g.scrollbarH,"mousedown",b);t(g.scrollbarV,"mousedown",b);t(g.wrapper,"scroll",function(){g.wrapper.scrollTop=g.wrapper.scrollLeft=0});var h;t(window,"resize",c);setTimeout(d,5E3);t(g.input,"keyup",s(a,function(b){if(!(V(a,b)||a.options.onKeyEvent&&a.options.onKeyEvent(a,Wa(b)))&&16==b.keyCode)a.doc.sel.shift=!1}));t(g.input,"input",function(){D&&(!L&&a.display.inputHasSelection)&&(a.display.inputHasSelection=
61
+ null);Ta(a)});t(g.input,"keydown",s(a,dd));t(g.input,"keypress",s(a,je));t(g.input,"focus",O(Fa,a));t(g.input,"blur",O(Sb,a));a.options.dragDrop&&(t(g.scroller,"dragstart",function(b){var c=a;if(D&&(!c.state.draggingText||100>+new Date-ed))Xa(b);else if(!V(c,b)&&!ja(c.display,b)){var d=c.getSelection();b.dataTransfer.setData("Text",d);b.dataTransfer.setDragImage&&!rc&&(d=o("img",null,null,"position: fixed; left: 0; top: 0;"),d.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
62
+ Q&&(d.width=d.height=1,c.display.wrapper.appendChild(d),d._top=d.offsetTop),b.dataTransfer.setDragImage(d,0,0),Q&&d.parentNode.removeChild(d))}}),t(g.scroller,"dragenter",e),t(g.scroller,"dragover",e),t(g.scroller,"drop",s(a,ke)));t(g.scroller,"paste",function(b){if(!ja(g,b)){M(a);Ta(a)}});t(g.input,"paste",function(){if(G&&!a.state.fakedLastChar&&!(new Date-a.state.lastMiddleDown<200)){var b=g.input.selectionStart,c=g.input.selectionEnd;g.input.value=g.input.value+"$";g.input.selectionStart=b;g.input.selectionEnd=
63
+ c;a.state.fakedLastChar=true}a.state.pasteIncoming=true;Ta(a)});t(g.input,"cut",f);t(g.input,"copy",f);Ub&&t(g.sizer,"mouseup",function(){document.activeElement==g.input&&g.input.blur();M(a)})}function ja(a,b){for(var c=b.target||b.srcElement;c!=a.wrapper;c=c.parentNode)if(!c||c.ignoreEvents||c.parentNode==a.sizer&&c!=a.mover)return!0}function Ya(a,b,c){var d=a.display;if(!c&&(c=b.target||b.srcElement,c==d.scrollbarH||c==d.scrollbarH.firstChild||c==d.scrollbarV||c==d.scrollbarV.firstChild||c==d.scrollbarFiller||
64
+ c==d.gutterFiller))return null;var e,f,d=x(d.lineSpace);try{e=b.clientX,f=b.clientY}catch(g){return null}return jc(a,e-d.left,f-d.top)}function ie(a){function b(a){if(!v(r,a))if(r=a,"single"==l)H(e.doc,q(g,i),a);else if(k=q(g,k),o=q(g,o),"double"==l){var b=pc(p(g,a.line).text,a);y(a,k)?H(e.doc,b.from,o):H(e.doc,k,b.to)}else"triple"==l&&(y(a,k)?H(e.doc,o,q(g,m(a.line,0))):H(e.doc,k,q(g,m(a.line+1,0))))}function c(a){var d=++z,h=Ya(e,a,!0);if(h)if(v(h,B)){var i=a.clientY<w.top?-20:a.clientY>w.bottom?
65
+ 20:0;i&&setTimeout(s(e,function(){z==d&&(f.scroller.scrollTop+=i,c(a))}),50)}else{e.state.focused||Fa(e);B=h;b(h);var j=Zb(f,g);(h.line>=j.to||h.line<j.from)&&setTimeout(s(e,function(){z==d&&c(a)}),150)}}function d(a){z=Infinity;A(a);M(e);aa(document,"mousemove",Tc);aa(document,"mouseup",F)}if(!V(this,a)){var e=this,f=e.display,g=e.doc,h=g.sel;h.shift=a.shiftKey;if(ja(f,a))G||(f.scroller.draggable=!1,setTimeout(function(){f.scroller.draggable=!0},100));else if(!oc(e,a,"gutterClick",!0,E)){var i=Ya(e,
66
+ a);switch(fd(a)){case 3:qc&&bd.call(e,e,a);return;case 2:G&&(e.state.lastMiddleDown=+new Date);i&&H(e.doc,i);setTimeout(O(M,e),20);A(a);return}if(i){e.state.focused||Fa(e);var j=+new Date,l="single";yb&&yb.time>j-400&&v(yb.pos,i)?(l="triple",A(a),setTimeout(O(M,e),20),le(e,i.line)):zb&&zb.time>j-400&&v(zb.pos,i)?(l="double",yb={time:j,pos:i},A(a),j=pc(p(g,i.line).text,i),H(e.doc,j.from,j.to)):zb={time:j,pos:i};var B=i;if(e.options.dragDrop&&me&&!Ua(e)&&!v(h.from,h.to)&&!y(i,h.from)&&!y(h.to,i)&&"single"==
67
+ l){var n=s(e,function(b){if(G)f.scroller.draggable=false;e.state.draggingText=false;aa(document,"mouseup",n);aa(f.scroller,"drop",n);if(Math.abs(a.clientX-b.clientX)+Math.abs(a.clientY-b.clientY)<10){A(b);H(e.doc,i);M(e)}});G&&(f.scroller.draggable=!0);e.state.draggingText=n;f.scroller.dragDrop&&f.scroller.dragDrop();t(document,"mouseup",n);t(f.scroller,"drop",n)}else{A(a);"single"==l&&H(e.doc,q(g,i));var k=h.from,o=h.to,r=i,w=x(f.wrapper),z=0,Tc=s(e,function(a){!D&&!fd(a)?d(a):c(a)}),F=s(e,d);t(document,
68
+ "mousemove",Tc);t(document,"mouseup",F)}}else(a.target||a.srcElement)==f.scroller&&A(a)}}}function oc(a,b,c,d,e){try{var f=b.clientX,g=b.clientY}catch(h){return!1}if(f>=Math.floor(x(a.display.gutters).right))return!1;d&&A(b);var d=a.display,i=x(d.lineDiv);if(g>i.bottom||!W(a,c))return sc(b);g-=i.top-d.viewOffset;for(i=0;i<a.options.gutters.length;++i){var j=d.gutters.childNodes[i];if(j&&x(j).right>=f)return f=Ma(a.doc,g),e(a,c,a,f,a.options.gutters[i],b),sc(b)}}function ke(a){var b=this;if(!V(b,a)&&
69
+ !(ja(b.display,a)||b.options.onDragEvent&&b.options.onDragEvent(b,Wa(a)))){A(a);D&&(ed=+new Date);var c=Ya(b,a,!0),d=a.dataTransfer.files;if(c&&!Ua(b))if(d&&d.length&&window.FileReader&&window.File)for(var e=d.length,f=Array(e),g=0,a=function(a,d){var h=new FileReader;h.onload=function(){f[d]=h.result;++g==e&&(c=q(b.doc,c),Aa(b.doc,{from:c,to:c,text:ia(f.join("\n")),origin:"paste"},"around"))};h.readAsText(a)},h=0;h<e;++h)a(d[h],h);else if(b.state.draggingText&&!y(c,b.doc.sel.from)&&!y(b.doc.sel.to,
70
+ c))b.state.draggingText(a),setTimeout(O(M,b),20);else try{if(f=a.dataTransfer.getData("Text")){var h=b.doc.sel.from,i=b.doc.sel.to;ba(b.doc,c,c);b.state.draggingText&&ea(b.doc,"",h,i,"paste");b.replaceSelection(f,null,"paste");M(b)}}catch(j){}}}function Za(a,b){2>Math.abs(a.doc.scrollTop-b)||(a.doc.scrollTop=b,Ba||ob(a,[],b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b),a.display.scrollbarV.scrollTop!=b&&(a.display.scrollbarV.scrollTop=b),Ba&&ob(a,[]),Ia(a,100))}function za(a,
71
+ b,c){if(!(c?b==a.doc.scrollLeft:2>Math.abs(a.doc.scrollLeft-b)))if(b=Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth),a.doc.scrollLeft=b,Wb(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbarH.scrollLeft!=b)a.display.scrollbarH.scrollLeft=b}function cd(a,b){var c=b.wheelDeltaX,d=b.wheelDeltaY;null==c&&(b.detail&&b.axis==b.HORIZONTAL_AXIS)&&(c=b.detail);null==d&&b.detail&&b.axis==b.VERTICAL_AXIS?d=b.detail:null==d&&(d=b.wheelDelta);var e=
72
+ a.display,f=e.scroller;if(c&&f.scrollWidth>f.clientWidth||d&&f.scrollHeight>f.clientHeight){if(d&&ta&&G)for(var g=b.target;g!=f;g=g.parentNode)if(g.lineObj){a.display.currentWheelTarget=g;break}if(c&&!Ba&&!Q&&null!=R)d&&Za(a,Math.max(0,Math.min(f.scrollTop+d*R,f.scrollHeight-f.clientHeight))),za(a,Math.max(0,Math.min(f.scrollLeft+c*R,f.scrollWidth-f.clientWidth))),A(b),e.wheelStartX=null;else{if(d&&null!=R){var g=d*R,h=a.doc.scrollTop,i=h+e.wrapper.clientHeight;0>g?h=Math.max(0,h+g-50):i=Math.min(a.doc.height,
73
+ i+g+50);ob(a,[],{top:h,bottom:i})}20>Ab&&(null==e.wheelStartX?(e.wheelStartX=f.scrollLeft,e.wheelStartY=f.scrollTop,e.wheelDX=c,e.wheelDY=d,setTimeout(function(){if(e.wheelStartX!=null){var a=f.scrollLeft-e.wheelStartX,b=f.scrollTop-e.wheelStartY,a=b&&e.wheelDY&&b/e.wheelDY||a&&e.wheelDX&&a/e.wheelDX;e.wheelStartX=e.wheelStartY=null;if(a){R=(R*Ab+a)/(Ab+1);++Ab}}},200)):(e.wheelDX+=c,e.wheelDY+=d))}}}function Bb(a,b,c){if("string"==typeof b&&(b=tc[b],!b))return!1;a.display.pollingFast&&nc(a)&&(a.display.pollingFast=
74
+ !1);var d=a.doc,e=d.sel.shift,f=!1;try{Ua(a)&&(a.state.suppressEdits=!0),c&&(d.sel.shift=!1),f=b(a)!=gd}finally{d.sel.shift=e,a.state.suppressEdits=!1}return f}function hd(a){var b=a.state.keyMaps.slice(0);a.options.extraKeys&&b.push(a.options.extraKeys);b.push(a.options.keyMap);return b}function id(a,b){var c=uc(a.options.keyMap),d=c.auto;clearTimeout(jd);d&&!kd(b)&&(jd=setTimeout(function(){uc(a.options.keyMap)==c&&(a.options.keyMap=d.call?d.call(null,a):d,Qc(a))},50));var e=ld(b,!0),f=!1;if(!e)return!1;
75
+ f=hd(a);if(f=b.shiftKey?$a("Shift-"+e,f,function(b){return Bb(a,b,!0)})||$a(e,f,function(b){if("string"==typeof b?/^go[A-Z]/.test(b):b.motion)return Bb(a,b)}):$a(e,f,function(b){return Bb(a,b)}))A(b),qb(a),L&&(b.oldKeyCode=b.keyCode,b.keyCode=0),E(a,"keyHandled",a,e,b);return f}function ne(a,b,c){var d=$a("'"+c+"'",hd(a),function(b){return Bb(a,b,!0)});d&&(A(b),qb(a),E(a,"keyHandled",a,"'"+c+"'",b));return d}function dd(a){this.state.focused||Fa(this);if(!(V(this,a)||this.options.onKeyEvent&&this.options.onKeyEvent(this,
76
+ Wa(a)))){D&&27==a.keyCode&&(a.returnValue=!1);var b=a.keyCode;this.doc.sel.shift=16==b||a.shiftKey;var c=id(this,a);Q&&(vc=c?b:null,!c&&(88==b&&!$c&&(ta?a.metaKey:a.ctrlKey))&&this.replaceSelection(""))}}function je(a){var b=this;if(!(V(b,a)||b.options.onKeyEvent&&b.options.onKeyEvent(b,Wa(a)))){var c=a.keyCode,d=a.charCode;if(Q&&c==vc)vc=null,A(a);else if(!(Q&&(!a.which||10>a.which)||Ub)||!id(b,a))c=String.fromCharCode(null==d?c:d),this.options.electricChars&&(this.doc.mode.electricChars&&this.options.smartIndent&&
77
+ !Ua(this)&&-1<this.doc.mode.electricChars.indexOf(c))&&setTimeout(s(b,function(){Cb(b,b.doc.sel.to.line,"smart")}),75),ne(b,a,c)||(D&&!L&&(b.display.inputHasSelection=null),Ta(b))}}function Fa(a){if("nocursor"!=a.options.readOnly){if(!a.state.focused&&(F(a,"focus",a),a.state.focused=!0,-1==a.display.wrapper.className.search(/\bCodeMirror-focused\b/)&&(a.display.wrapper.className+=" CodeMirror-focused"),!a.curOp))X(a,!0),G&&setTimeout(O(X,a,!0),0);xb(a);qb(a)}}function Sb(a){a.state.focused&&(F(a,
78
+ "blur",a),a.state.focused=!1,a.display.wrapper.className=a.display.wrapper.className.replace(" CodeMirror-focused",""));clearInterval(a.display.blinker);setTimeout(function(){if(!a.state.focused)a.doc.sel.shift=false},150)}function bd(a,b){function c(){if(null!=e.input.selectionStart){var a=e.input.value="​"+(v(f.from,f.to)?"":e.input.value);e.prevInput="​";e.input.selectionStart=1;e.input.selectionEnd=a.length}}function d(){e.inputDiv.style.position="relative";e.input.style.cssText=i;L&&(e.scrollbarV.scrollTop=
79
+ e.scroller.scrollTop=h);xb(a);if(null!=e.input.selectionStart){(!D||L)&&c();clearTimeout(wc);var b=0,d=function(){e.prevInput==" "&&e.input.selectionStart==0?s(a,tc.selectAll)(a):b++<10?wc=setTimeout(d,500):X(a)};wc=setTimeout(d,200)}}if(!V(a,b,"contextmenu")){var e=a.display,f=a.doc.sel;if(!ja(e,b)&&!(!W(a,"gutterContextMenu")?0:oc(a,b,"gutterContextMenu",!1,F))){var g=Ya(a,b),h=e.scroller.scrollTop;if(g&&!Q){a.options.resetSelectionOnContextMenu&&(v(f.from,f.to)||y(g,f.from)||!y(g,f.to))&&s(a,ba)(a.doc,
80
+ g,g);var i=e.input.style.cssText;e.inputDiv.style.position="absolute";e.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(b.clientY-5)+"px; left: "+(b.clientX-5)+"px; z-index: 1000; background: white; outline: none;border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);";M(a);X(a,!0);v(f.from,f.to)&&(e.input.value=e.prevInput=" ");D&&!L&&c();if(qc){Xa(b);var j=function(){aa(window,"mouseup",j);setTimeout(d,20)};t(window,"mouseup",
81
+ j)}else setTimeout(d,50)}}}}function md(a,b,c){if(!y(b.from,c))return q(a,c);var d=b.text.length-1-(b.to.line-b.from.line);if(c.line>b.to.line+d)return b=c.line-d,d=a.first+a.size-1,b>d?m(d,p(a,d).text.length):Db(c,p(a,b).text.length);if(c.line==b.to.line+d)return Db(c,J(b.text).length+(1==b.text.length?b.from.ch:0)+p(a,b.to.line).text.length-b.to.ch);a=c.line-b.from.line;return Db(c,b.text[a].length+(a?0:b.from.ch))}function xc(a,b,c){if(c&&"object"==typeof c)return{anchor:md(a,b,c.anchor),head:md(a,
82
+ b,c.head)};if("start"==c)return{anchor:b.from,head:b.from};var d=yc(b);if("around"==c)return{anchor:b.from,head:d};if("end"==c)return{anchor:d,head:d};c=function(a){if(y(a,b.from))return a;if(!y(b.to,a))return d;var c=a.line+b.text.length-(b.to.line-b.from.line)-1,g=a.ch;a.line==b.to.line&&(g+=d.ch-b.to.ch);return m(c,g)};return{anchor:c(a.sel.anchor),head:c(a.sel.head)}}function nd(a,b,c){b={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){this.canceled=!0}};c&&(b.update=
83
+ function(b,c,f,g){b&&(this.from=q(a,b));c&&(this.to=q(a,c));f&&(this.text=f);void 0!==g&&(this.origin=g)});F(a,"beforeChange",a,b);a.cm&&F(a.cm,"beforeChange",a.cm,b);return b.canceled?null:{from:b.from,to:b.to,text:b.text,origin:b.origin}}function Aa(a,b,c,d){if(a.cm){if(!a.cm.curOp)return s(a.cm,Aa)(a,b,c,d);if(a.cm.state.suppressEdits)return}if(W(a,"beforeChange")||a.cm&&W(a.cm,"beforeChange"))if(b=nd(a,b,!0),!b)return;if(d=od&&!d&&oe(a,b.from,b.to)){for(var e=d.length-1;1<=e;--e)zc(a,{from:d[e].from,
84
+ to:d[e].to,text:[""]});d.length&&zc(a,{from:d[0].from,to:d[0].to,text:b.text},c)}else zc(a,b,c)}function zc(a,b,c){if(!(1==b.text.length&&""==b.text[0]&&v(b.from,b.to))){c=xc(a,b,c);pd(a,b,c,a.cm?a.cm.curOp.id:NaN);ab(a,b,c,Ac(a,b));var d=[];Ca(a,function(a,c){!c&&-1==S(d,a.history)&&(qd(a.history,b),d.push(a.history));ab(a,b,null,Ac(a,b))})}}function rd(a,b){if(!a.cm||!a.cm.state.suppressEdits){var c=a.history,d=("undo"==b?c.done:c.undone).pop();if(d){var e={changes:[],anchorBefore:d.anchorAfter,
85
+ headBefore:d.headAfter,anchorAfter:d.anchorBefore,headAfter:d.headBefore,generation:c.generation};("undo"==b?c.undone:c.done).push(e);c.generation=d.generation||++c.maxGeneration;for(var f=W(a,"beforeChange")||a.cm&&W(a.cm,"beforeChange"),g=d.changes.length-1;0<=g;--g){var h=d.changes[g];h.origin=b;if(f&&!nd(a,h,!1)){("undo"==b?c.done:c.undone).length=0;break}e.changes.push(Bc(a,h));var i=g?xc(a,h,null):{anchor:d.anchorBefore,head:d.headBefore};ab(a,h,i,sd(a,h));var j=[];Ca(a,function(a,b){!b&&-1==
86
+ S(j,a.history)&&(qd(a.history,h),j.push(a.history));ab(a,h,null,sd(a,h))})}}}}function td(a,b){function c(a){return m(a.line+b,a.ch)}a.first+=b;a.cm&&w(a.cm,a.first,a.first,b);a.sel.head=c(a.sel.head);a.sel.anchor=c(a.sel.anchor);a.sel.from=c(a.sel.from);a.sel.to=c(a.sel.to)}function ab(a,b,c,d){if(a.cm&&!a.cm.curOp)return s(a.cm,ab)(a,b,c,d);if(b.to.line<a.first)td(a,b.text.length-1-(b.to.line-b.from.line));else if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var e=b.text.length-1-(a.first-
87
+ b.from.line);td(a,e);b={from:m(a.first,0),to:m(b.to.line+e,b.to.ch),text:[J(b.text)],origin:b.origin}}e=a.lastLine();b.to.line>e&&(b={from:b.from,to:m(e,p(a,e).text.length),text:[b.text[0]],origin:b.origin});b.removed=Cc(a,b.from,b.to);c||(c=xc(a,b,null));a.cm?pe(a.cm,b,d,c):Dc(a,b,d,c)}}function pe(a,b,c,d){var e=a.doc,f=a.display,g=b.from,h=b.to,i=!1,j=g.line;a.options.lineWrapping||(j=K(Z(e,p(e,g.line))),e.iter(j,h.line+1,function(a){if(a==f.maxLine)return i=!0}));!y(e.sel.head,b.from)&&!y(b.to,
88
+ e.sel.head)&&(a.curOp.cursorActivity=!0);Dc(e,b,c,d,Oc(a));a.options.lineWrapping||(e.iter(j,g.line+b.text.length,function(a){var b=mb(e,a);if(b>f.maxLineLength){f.maxLine=a;f.maxLineLength=b;f.maxLineChanged=true;i=false}}),i&&(a.curOp.updateMaxLine=!0));e.frontier=Math.min(e.frontier,g.line);Ia(a,400);w(a,g.line,h.line+1,b.text.length-(h.line-g.line)-1);if(W(a,"change"))if(b={from:g,to:h,text:b.text,removed:b.removed,origin:b.origin},a.curOp.textChanged){for(a=a.curOp.textChanged;a.next;a=a.next);
89
+ a.next=b}else a.curOp.textChanged=b}function ea(a,b,c,d,e){d||(d=c);if(y(d,c))var f=d,d=c,c=f;"string"==typeof b&&(b=ia(b));Aa(a,{from:c,to:d,text:b,origin:e},null)}function m(a,b){if(!(this instanceof m))return new m(a,b);this.line=a;this.ch=b}function v(a,b){return a.line==b.line&&a.ch==b.ch}function y(a,b){return a.line<b.line||a.line==b.line&&a.ch<b.ch}function ka(a){return m(a.line,a.ch)}function q(a,b){if(b.line<a.first)return m(a.first,0);var c=a.first+a.size-1;return b.line>c?m(c,p(a,c).text.length):
90
+ Db(b,p(a,b.line).text.length)}function Db(a,b){var c=a.ch;return null==c||c>b?m(a.line,b):0>c?m(a.line,0):a}function Da(a,b){return b>=a.first&&b<a.first+a.size}function H(a,b,c,d){if(a.sel.shift||a.sel.extend){var e=a.sel.anchor;if(c){var f=y(b,e);f!=y(c,e)?(e=b,b=c):f!=y(b,c)&&(b=c)}ba(a,e,b,d)}else ba(a,b,c||b,d);a.cm&&(a.cm.curOp.userSelChange=!0)}function ba(a,b,c,d,e){if(!e&&W(a,"beforeSelectionChange")||a.cm&&W(a.cm,"beforeSelectionChange"))b={anchor:b,head:c},F(a,"beforeSelectionChange",a,
91
+ b),a.cm&&F(a.cm,"beforeSelectionChange",a.cm,b),b.anchor=q(a,b.anchor),b.head=q(a,b.head),c=b.head,b=b.anchor;var f=a.sel;f.goalColumn=null;null==d&&(d=y(c,f.head)?-1:1);if(e||!v(b,f.anchor))b=Eb(a,b,d,"push"!=e);if(e||!v(c,f.head))c=Eb(a,c,d,"push"!=e);if(!v(f.anchor,b)||!v(f.head,c))f.anchor=b,f.head=c,d=y(c,b),f.from=d?c:b,f.to=d?b:c,a.cm&&(a.cm.curOp.updateInput=a.cm.curOp.selectionChanged=a.cm.curOp.cursorActivity=!0),E(a,"cursorActivity",a)}function ud(a){ba(a.doc,a.doc.sel.from,a.doc.sel.to,
92
+ null,"push")}function Eb(a,b,c,d){var e=!1,f=b,g=c||1;a.cantEdit=!1;a:for(;;){var h=p(a,f.line);if(h.markedSpans)for(var i=0;i<h.markedSpans.length;++i){var j=h.markedSpans[i],l=j.marker;if((null==j.from||(l.inclusiveLeft?j.from<=f.ch:j.from<f.ch))&&(null==j.to||(l.inclusiveRight?j.to>=f.ch:j.to>f.ch))){if(d&&(F(l,"beforeCursorEnter"),l.explicitlyCleared))if(h.markedSpans){--i;continue}else break;if(l.atomic){i=l.find()[0>g?"from":"to"];if(v(i,f)&&(i.ch+=g,0>i.ch?i=i.line>a.first?q(a,m(i.line-1)):
93
+ null:i.ch>h.text.length&&(i=i.line<a.first+a.size-1?m(i.line+1,0):null),!i)){if(e){if(!d)return Eb(a,b,c,!0);a.cantEdit=!0;return m(a.first,0)}e=!0;i=b;g=-g}f=i;continue a}}}return f}}function Zc(a,b,c,d){for(null==d&&(d=0);;){var e=!1,f=N(a,b),g=!c||c==b?f:N(a,c),g=wb(a,Math.min(f.left,g.left),Math.min(f.top,g.top)-d,Math.max(f.left,g.left),Math.max(f.bottom,g.bottom)+d),h=a.doc.scrollTop,i=a.doc.scrollLeft;null!=g.scrollTop&&(Za(a,g.scrollTop),1<Math.abs(a.doc.scrollTop-h)&&(e=!0));null!=g.scrollLeft&&
94
+ (za(a,g.scrollLeft),1<Math.abs(a.doc.scrollLeft-i)&&(e=!0));if(!e)return f}}function wb(a,b,c,d,e){var f=a.display,g=qa(a.display);0>c&&(c=0);var h=f.scroller.clientHeight-oa,i=f.scroller.scrollTop,j={},a=a.doc.height+(f.mover.offsetHeight-f.lineSpace.offsetHeight),l=c<g,g=e>a-g;c<i?j.scrollTop=l?0:c:e>i+h&&(c=Math.min(c,(g?a:e)-h),c!=i&&(j.scrollTop=c));i=f.scroller.clientWidth-oa;c=f.scroller.scrollLeft;b+=f.gutters.offsetWidth;d+=f.gutters.offsetWidth;f=f.gutters.offsetWidth;e=b<f+10;b<c+f||e?
95
+ (e&&(b=0),j.scrollLeft=Math.max(0,b-10-f)):d>i+c-3&&(j.scrollLeft=d+10-i);return j}function Fb(a,b,c){a.curOp.updateScrollPos={scrollLeft:null==b?a.doc.scrollLeft:b,scrollTop:null==c?a.doc.scrollTop:c}}function Ec(a,b,c){var d=a.curOp.updateScrollPos||(a.curOp.updateScrollPos={scrollLeft:a.doc.scrollLeft,scrollTop:a.doc.scrollTop}),a=a.display.scroller;d.scrollTop=Math.max(0,Math.min(a.scrollHeight-a.clientHeight,d.scrollTop+c));d.scrollLeft=Math.max(0,Math.min(a.scrollWidth-a.clientWidth,d.scrollLeft+
96
+ b))}function Cb(a,b,c,d){var e=a.doc;null==c&&(c="add");if("smart"==c)if(a.doc.mode.indent)var f=Pa(a,b);else c="prev";var g=a.options.tabSize,h=p(e,b),i=va(h.text,null,g),j=h.text.match(/^\s*/)[0],l;if("smart"==c&&(l=a.doc.mode.indent(f,h.text.slice(j.length),h.text),l==gd)){if(!d)return;c="prev"}"prev"==c?l=b>e.first?va(p(e,b-1).text,null,g):0:"add"==c?l=i+a.options.indentUnit:"subtract"==c?l=i-a.options.indentUnit:"number"==typeof c&&(l=i+c);l=Math.max(0,l);c="";d=0;if(a.options.indentWithTabs)for(f=
97
+ Math.floor(l/g);f;--f)d+=g,c+="\t";d<l&&(c+=vd(l-d));c!=j?ea(a.doc,c,m(b,0),m(b,j.length),"+input"):e.sel.head.line==b&&e.sel.head.ch<j.length&&ba(e,m(b,j.length),m(b,j.length),1);h.stateAfter=null}function Gb(a,b,c){var d=b,e=b,f=a.doc;"number"==typeof b?e=p(f,Math.max(f.first,Math.min(b,f.first+f.size-1))):d=K(b);if(null!=d&&c(e,d))w(a,d,d+1);else return null;return e}function Fc(a,b,c,d,e){function f(b){var d=(e?kc:wd)(i,h,c,!0);if(null==d){if(b=!b)b=g+c,b<a.first||b>=a.first+a.size?b=j=!1:(g=
98
+ b,b=i=p(a,b));if(b)h=e?(0>c?ub:tb)(i):0>c?i.text.length:0;else return j=!1}else h=d;return!0}var g=b.line,h=b.ch,b=c,i=p(a,g),j=!0;if("char"==d)f();else if("column"==d)f(!0);else if("word"==d||"group"==d)for(var l=null,d="group"==d,B=!0;!(0>c)||f(!B);B=!1){var n=i.text.charAt(h)||"\n",n=bb(n)?"w":!d?null:/\s/.test(n)?null:"p";if(l&&l!=n){0>c&&(c=1,f());break}n&&(l=n);if(0<c&&!f(!B))break}b=Eb(a,m(g,h),b,!0);j||(b.hitSide=!0);return b}function xd(a,b,c,d){var e=a.doc,f=b.left,g;"page"==d?(d=Math.min(a.display.wrapper.clientHeight,
99
+ window.innerHeight||document.documentElement.clientHeight),g=b.top+c*(d-(0>c?1.5:0.5)*qa(a.display))):"line"==d&&(g=0<c?b.bottom+3:b.top-3);for(;;){var h=jc(a,f,g);if(!h.outside)break;if(0>c?0>=g:g>=e.height){h.hitSide=!0;break}g+=5*c}return h}function pc(a,b){var c=b.ch,d=b.ch;if(a){(0>b.xRel||d==a.length)&&c?--c:++d;for(var e=a.charAt(c),e=bb(e)?bb:/\s/.test(e)?function(a){return/\s/.test(a)}:function(a){return!/\s/.test(a)&&!bb(a)};0<c&&e(a.charAt(c-1));)--c;for(;d<a.length&&e(a.charAt(d));)++d}return{from:m(b.line,
100
+ c),to:m(b.line,d)}}function le(a,b){H(a.doc,m(b,0),q(a.doc,m(b+1,0)))}function r(a,b,c,d){k.defaults[a]=b;c&&(na[a]=d?function(a,b,d){d!=Nc&&c(a,b,d)}:c)}function ua(a,b){if(!0===b)return b;if(a.copyState)return a.copyState(b);var c={},d;for(d in b){var e=b[d];e instanceof Array&&(e=e.concat([]));c[d]=e}return c}function Vc(a,b,c){return a.startState?a.startState(b,c):!0}function uc(a){return"string"==typeof a?Y[a]:a}function $a(a,b,c){function d(b){var b=uc(b),e=b[a];if(!1===e)return"stop";if(null!=
101
+ e&&c(e))return!0;if(b.nofallthrough)return"stop";b=b.fallthrough;if(null==b)return!1;if("[object Array]"!=Object.prototype.toString.call(b))return d(b);for(var e=0,f=b.length;e<f;++e){var j=d(b[e]);if(j)return j}return!1}for(var e=0;e<b.length;++e){var f=d(b[e]);if(f)return"stop"!=f}}function kd(a){a=la[a.keyCode];return"Ctrl"==a||"Alt"==a||"Shift"==a||"Mod"==a}function ld(a,b){if(Q&&34==a.keyCode&&a["char"])return!1;var c=la[a.keyCode];if(null==c||a.altGraphKey)return!1;a.altKey&&(c="Alt-"+c);if(yd?
102
+ a.metaKey:a.ctrlKey)c="Ctrl-"+c;if(yd?a.ctrlKey:a.metaKey)c="Cmd-"+c;!b&&a.shiftKey&&(c="Shift-"+c);return c}function cb(a,b){this.pos=this.start=0;this.string=a;this.tabSize=b||8;this.lastColumnPos=this.lastColumnValue=0}function fa(a,b){this.lines=[];this.type=b;this.doc=a}function db(a,b,c,d,e){if(d&&d.shared)return qe(a,b,c,d,e);if(a.cm&&!a.cm.curOp)return s(a.cm,db)(a,b,c,d,e);var f=new fa(a,e);if(y(c,b)||v(b,c)&&"range"==e&&(!d.inclusiveLeft||!d.inclusiveRight))return f;d&&Hb(d,f);f.replacedWith&&
103
+ (f.collapsed=!0,f.replacedWith=o("span",[f.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||(f.replacedWith.ignoreEvents=!0));f.collapsed&&(Na=!0);f.addToHistory&&pd(a,{from:b,to:c,origin:"markText"},{head:a.sel.head,anchor:a.sel.anchor},NaN);var g=b.line,h=0,i,j,l=a.cm,B;a.iter(g,c.line+1,function(d){l&&(f.collapsed&&!l.options.lineWrapping&&Z(a,d)==l.display.maxLine)&&(B=true);var e={from:null,to:null,marker:f};h=h+d.text.length;if(g==b.line){e.from=b.ch;h=h-b.ch}if(g==c.line){e.to=c.ch;
104
+ h=h-(d.text.length-c.ch)}if(f.collapsed){g==c.line&&(j=sa(d,c.ch));g==b.line?i=sa(d,b.ch):P(d,0)}d.markedSpans=d.markedSpans?d.markedSpans.concat([e]):[e];e.marker.attachLine(d);++g});f.collapsed&&a.iter(b.line,c.line+1,function(b){ga(a,b)&&P(b,0)});f.clearOnEnter&&t(f,"beforeCursorEnter",function(){f.clear()});f.readOnly&&(od=!0,(a.history.done.length||a.history.undone.length)&&a.clearHistory());if(f.collapsed){if(i!=j)throw Error("Inserting collapsed marker overlapping an existing one");f.size=
105
+ h;f.atomic=!0}l&&(B&&(l.curOp.updateMaxLine=!0),(f.className||f.title||f.startStyle||f.endStyle||f.collapsed)&&w(l,b.line,c.line+1),f.atomic&&ud(l));return f}function eb(a,b){this.markers=a;this.primary=b;for(var c=0,d=this;c<a.length;++c)a[c].parent=this,t(a[c],"clear",function(){d.clear()})}function qe(a,b,c,d,e){d=Hb(d);d.shared=!1;var f=[db(a,b,c,d,e)],g=f[0],h=d.replacedWith;Ca(a,function(a){h&&(d.replacedWith=h.cloneNode(!0));f.push(db(a,q(a,b),q(a,c),d,e));for(var j=0;j<a.linked.length;++j)if(a.linked[j].isParent)return;
106
+ g=J(f)});return new eb(f,g)}function fb(a,b){if(a)for(var c=0;c<a.length;++c){var d=a[c];if(d.marker==b)return d}}function Ac(a,b){var c=Da(a,b.from.line)&&p(a,b.from.line).markedSpans,d=Da(a,b.to.line)&&p(a,b.to.line).markedSpans;if(!c&&!d)return null;var e=b.from.ch,f=b.to.ch,g=v(b.from,b.to);if(c)for(var h=0,i;h<c.length;++h){var j=c[h],l=j.marker;if(null==j.from||(l.inclusiveLeft?j.from<=e:j.from<e)||(l.inclusiveLeft&&l.inclusiveRight||"bookmark"==l.type)&&j.from==e&&(!g||!j.marker.insertLeft)){var B=
107
+ null==j.to||(l.inclusiveRight?j.to>=e:j.to>e);(i||(i=[])).push({from:j.from,to:B?null:j.to,marker:l})}}c=i;if(d)for(var h=0,k;h<d.length;++h)if(i=d[h],j=i.marker,null==i.to||(j.inclusiveRight?i.to>=f:i.to>f)||"bookmark"==j.type&&i.from==f&&(!g||i.marker.insertLeft))l=null==i.from||(j.inclusiveLeft?i.from<=f:i.from<f),(k||(k=[])).push({from:l?null:i.from-f,to:null==i.to?null:i.to-f,marker:j});d=k;g=1==b.text.length;k=J(b.text).length+(g?e:0);if(c)for(f=0;f<c.length;++f)h=c[f],null==h.to&&((i=fb(d,
108
+ h.marker))?g&&(h.to=null==i.to?null:i.to+k):h.to=e);if(d)for(f=0;f<d.length;++f)(h=d[f],null!=h.to&&(h.to+=k),null==h.from)?(i=fb(c,h.marker),i||(h.from=k,g&&(c||(c=[])).push(h))):(h.from+=k,g&&(c||(c=[])).push(h));if(g&&c){for(f=0;f<c.length;++f)null!=c[f].from&&(c[f].from==c[f].to&&"bookmark"!=c[f].marker.type)&&c.splice(f--,1);c.length||(c=null)}e=[c];if(!g){var g=b.text.length-2,m;if(0<g&&c)for(f=0;f<c.length;++f)null==c[f].to&&(m||(m=[])).push({from:null,to:null,marker:c[f].marker});for(f=0;f<
109
+ g;++f)e.push(m);e.push(d)}return e}function sd(a,b){var c;if(c=b["spans_"+a.id]){for(var d=0,e=[];d<b.text.length;++d)e.push(re(c[d]));c=e}else c=null;d=Ac(a,b);if(!c)return d;if(!d)return c;for(e=0;e<c.length;++e){var f=c[e],g=d[e];if(f&&g){var h=0;a:for(;h<g.length;++h){for(var i=g[h],j=0;j<f.length;++j)if(f[j].marker==i.marker)continue a;f.push(i)}}else g&&(c[e]=g)}return c}function oe(a,b,c){var d=null;a.iter(b.line,c.line+1,function(a){if(a.markedSpans)for(var b=0;b<a.markedSpans.length;++b){var c=
110
+ a.markedSpans[b].marker;if(c.readOnly&&(!d||-1==S(d,c)))(d||(d=[])).push(c)}});if(!d)return null;a=[{from:b,to:c}];for(b=0;b<d.length;++b)for(var c=d[b],e=c.find(),f=0;f<a.length;++f){var g=a[f];if(!y(g.to,e.from)&&!y(e.to,g.from)){var h=[f,1];(y(g.from,e.from)||!c.inclusiveLeft&&v(g.from,e.from))&&h.push({from:g.from,to:e.from});(y(e.to,g.to)||!c.inclusiveRight&&v(g.to,e.to))&&h.push({from:e.to,to:g.to});a.splice.apply(a,h);f+=h.length-1}}return a}function sa(a,b){var c=Na&&a.markedSpans,d;if(c)for(var e,
111
+ f=0;f<c.length;++f)if(e=c[f],e.marker.collapsed&&(null==e.from||e.from<b)&&(null==e.to||e.to>b)&&(!d||d.width<e.marker.width))d=e.marker;return d}function nb(a){return sa(a,a.text.length+1)}function Z(a,b){for(var c;c=sa(b,-1);)b=p(a,c.find().from.line);return b}function ga(a,b){var c=Na&&b.markedSpans;if(c)for(var d,e=0;e<c.length;++e)if(d=c[e],d.marker.collapsed&&(null==d.from||!d.marker.replacedWith&&0==d.from&&d.marker.inclusiveLeft&&Gc(a,b,d)))return!0}function Gc(a,b,c){if(null==c.to)return b=
112
+ c.marker.find().to,b=p(a,b.line),Gc(a,b,fb(b.markedSpans,c.marker));if(c.marker.inclusiveRight&&c.to==b.text.length)return!0;for(var d,e=0;e<b.markedSpans.length;++e)if(d=b.markedSpans[e],d.marker.collapsed&&!d.marker.replacedWith&&d.from==c.to&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Gc(a,b,d))return!0}function zd(a){var b=a.markedSpans;if(b){for(var c=0;c<b.length;++c)b[c].marker.detachLine(a);a.markedSpans=null}}function Ad(a,b){if(b){for(var c=0;c<b.length;++c)b[c].marker.attachLine(a);
113
+ a.markedSpans=b}}function Bd(a){return function(){var b=!this.cm.curOp;b&&xa(this.cm);try{var c=a.apply(this,arguments)}finally{b&&ya(this.cm)}return c}}function rb(a){if(null!=a.height)return a.height;(!a.node.parentNode||1!=a.node.parentNode.nodeType)&&U(a.cm.display.measure,o("div",[a.node],null,"position: relative"));return a.height=a.node.offsetHeight}function se(a,b,c,d){var e=new Ib(a,c,d);e.noHScroll&&(a.display.alignWidgets=!0);Gb(a,b,function(b){var c=b.widgets||(b.widgets=[]);e.insertAt==
114
+ null?c.push(e):c.splice(Math.min(c.length-1,Math.max(0,e.insertAt)),0,e);e.line=b;if(!ga(a.doc,b)||e.showIfHidden){c=Oa(a,b)<a.doc.scrollTop;P(b,b.height+rb(e));c&&Ec(a,0,e.height)}return true});return e}function Cd(a,b,c,d,e,f){var g=c.flattenSpans;null==g&&(g=a.options.flattenSpans);var h=0,i=null,j=new cb(b,a.options.tabSize),l;for(""==b&&c.blankLine&&c.blankLine(d);!j.eol();){j.pos>a.options.maxHighlightLength?(g=!1,f&&dc(a,b,d,j.pos),j.pos=b.length,l=null):l=c.token(j,d);if(!g||i!=l)h<j.start&&
115
+ e(j.start,i),h=j.start,i=l;j.start=j.pos}for(;h<j.pos;)a=Math.min(j.pos,h+5E4),e(a,i),h=a}function Uc(a,b,c,d){var e=[a.state.modeGen];Cd(a,b.text,a.doc.mode,c,function(a,b){e.push(a,b)},d);for(c=0;c<a.state.overlays.length;++c){var f=a.state.overlays[c],g=1,h=0;Cd(a,b.text,f.mode,!0,function(a,b){for(var c=g;h<a;){var d=e[g];d>a&&e.splice(g,1,a,e[g+1],d);g=g+2;h=Math.min(a,d)}if(b)if(f.opaque){e.splice(c,g-c,a,b);g=c+2}else for(;c<g;c=c+2){d=e[c+1];e[c+1]=d?d+" "+b:b}})}return e}function Dd(a,b){if(!b.styles||
116
+ b.styles[0]!=a.state.modeGen)b.styles=Uc(a,b,b.stateAfter=Pa(a,K(b)));return b.styles}function dc(a,b,c,d){var e=a.doc.mode,f=new cb(b,a.options.tabSize);f.start=f.pos=d||0;for(""==b&&e.blankLine&&e.blankLine(c);!f.eol()&&f.pos<=a.options.maxHighlightLength;)e.token(f,c),f.start=f.pos}function Ed(a,b){if(!a)return null;for(;;){var c=a.match(/(?:^|\s)line-(background-)?(\S+)/);if(!c)break;var a=a.slice(0,c.index)+a.slice(c.index+c[0].length),d=c[1]?"bgClass":"textClass";null==b[d]?b[d]=c[2]:RegExp("(?:^|s)"+
117
+ c[2]+"(?:$|s)").test(b[d])||(b[d]+=" "+c[2])}return Fd[a]||(Fd[a]="cm-"+a.replace(/ +/g," cm-"))}function cc(a,b,c,d){for(var e,f=b,g=!0;e=sa(f,-1);)f=p(a.doc,e.find().from.line);d={pre:o("pre"),col:0,pos:0,measure:null,measuredSomething:!1,cm:a,copyWidgets:d};do{f.text&&(g=!1);d.measure=f==b&&c;d.pos=0;d.addToken=d.measure?te:Gd;if((D||G)&&a.getOption("lineWrapping"))d.addToken=ue(d.addToken);a:{e=d;var h=Dd(a,f),i=f.markedSpans,j=f.text,l=0;if(i)for(var k=j.length,n=0,m=1,q="",r=void 0,s=0,z=void 0,
118
+ t=void 0,w=void 0,C=void 0,u=void 0;;){if(s==n){for(var z=t=w=C="",u=null,s=Infinity,v=[],y=0;y<i.length;++y){var x=i[y],A=x.marker;if(x.from<=n&&(null==x.to||x.to>n)){if(null!=x.to&&s>x.to&&(s=x.to,t=""),A.className&&(z+=" "+A.className),A.startStyle&&x.from==n&&(w+=" "+A.startStyle),A.endStyle&&x.to==s&&(t+=" "+A.endStyle),A.title&&!C&&(C=A.title),A.collapsed&&(!u||u.marker.size<A.size))u=x}else x.from>n&&s>x.from&&(s=x.from);"bookmark"==A.type&&(x.from==n&&A.replacedWith)&&v.push(A)}if(u&&(u.from||
119
+ 0)==n)if(Hd(e,(null==u.to?k:u.to)-n,u.marker,null==u.from),null==u.to){e=u.marker.find();break a}if(!u&&v.length)for(y=0;y<v.length;++y)Hd(e,0,v[y])}if(n>=k)break;for(v=Math.min(k,s);;){if(q){y=n+q.length;u||(x=y>v?q.slice(0,v-n):q,e.addToken(e,x,r?r+z:z,w,n+x.length==s?t:"",C));if(y>=v){q=q.slice(v-n);n=v;break}n=y;w=""}q=j.slice(l,l=h[m++]);r=Ed(h[m++],e)}}else for(var m=1;m<h.length;m+=2)e.addToken(e,j.slice(l,l=h[m]),Ed(h[m+1],e));e=void 0}c&&(f==b&&!d.measuredSomething)&&(c[0]=d.pre.appendChild(Ra(a.display.measure)),
120
+ d.measuredSomething=!0);e&&(f=p(a.doc,e.to.line))}while(e);c&&(!d.measuredSomething&&!c[0])&&(c[0]=d.pre.appendChild(g?o("span"," "):Ra(a.display.measure)));!d.pre.firstChild&&!ga(a.doc,b)&&d.pre.appendChild(document.createTextNode(" "));var E;if(c&&(D||ve)&&(E=T(f)))if(g=E.length-1,E[g].from==E[g].to&&--g,f=E[g],E=E[g-1],f.from+1==f.to&&(E&&f.level<E.level)&&(c=c[d.pos-1]))c.parentNode.insertBefore(c.measureRight=Ra(a.display.measure),c.nextSibling);if(c=d.textClass?d.textClass+" "+(b.textClass||
121
+ ""):b.textClass)d.pre.className=c;F(a,"renderLine",a,b,d.pre);return d}function Gd(a,b,c,d,e,f){if(b){var g=a.cm.options.specialChars;if(g.test(b))for(var h=document.createDocumentFragment(),i=0;;){g.lastIndex=i;var j=g.exec(b),l=j?j.index-i:b.length-i;l&&(h.appendChild(document.createTextNode(b.slice(i,i+l))),a.col+=l);if(!j)break;i+=l+1;"\t"==j[0]?(j=a.cm.options.tabSize,j-=a.col%j,h.appendChild(o("span",vd(j),"cm-tab")),a.col+=j):(j=a.cm.options.specialCharPlaceholder(j[0]),h.appendChild(j),a.col+=
122
+ 1)}else{a.col+=b.length;var h=document.createTextNode(b)}if(c||d||e||a.measure)return b=c||"",d&&(b+=d),e&&(b+=e),j=o("span",[h],b),f&&(j.title=f),a.pre.appendChild(j);a.pre.appendChild(h)}}function te(a,b,c,d,e){for(var f=a.cm.options.lineWrapping,g=0;g<b.length;++g){var h=b.charAt(g),i=0==g;"\ud800"<=h&&"\udbff">h&&g<b.length-1?(h=b.slice(g,g+2),++g):g&&(f&&gb(b,g))&&a.pre.appendChild(o("wbr"));var j=a.measure[a.pos],i=a.measure[a.pos]=Gd(a,h,c,i&&d,g==b.length-1&&e);j&&(i.leftSide=j.leftSide||
123
+ j);D&&(f&&" "==h&&g&&!/\s/.test(b.charAt(g-1))&&g<b.length-1&&!/\s/.test(b.charAt(g+1)))&&(i.style.whiteSpace="normal");a.pos+=h.length}b.length&&(a.measuredSomething=!0)}function ue(a){function b(a){for(var b=" ",e=0;e<a.length-2;++e)b+=e%2?" ":" ";return b+" "}return function(c,d,e,f,g,h){return a(c,d.replace(/ {3,}/g,b),e,f,g,h)}}function Hd(a,b,c,d){if(d=!d&&c.replacedWith)if(a.copyWidgets&&(d=d.cloneNode(!0)),a.pre.appendChild(d),a.measure){if(b)a.measure[a.pos]=d;else{var e=Ra(a.cm.display.measure);
124
+ if("bookmark"==c.type&&!c.insertLeft)a.measure[a.pos]=a.pre.appendChild(e);else{if(a.measure[a.pos])return;a.measure[a.pos]=a.pre.insertBefore(e,d)}}a.measuredSomething=!0}a.pos+=b}function Dc(a,b,c,d,e){function f(a){return c?c[a]:null}function g(a,c,d){var f=e;a.text=c;a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null);null!=a.order&&(a.order=null);zd(a);Ad(a,d);c=f?f(a):1;c!=a.height&&P(a,c);E(a,"change",a,b)}var h=b.from,i=b.to,j=b.text,l=p(a,h.line),k=p(a,i.line),n=J(j),m=f(j.length-
125
+ 1),q=i.line-h.line;if(0==h.ch&&0==i.ch&&""==n&&(!a.cm||a.cm.options.wholeLineUpdateBefore)){for(var o=0,s=j.length-1,r=[];o<s;++o)r.push(new ca(j[o],f(o),e));g(k,k.text,m);q&&a.remove(h.line,q);r.length&&a.insert(h.line,r)}else if(l==k)if(1==j.length)g(l,l.text.slice(0,h.ch)+n+l.text.slice(i.ch),m);else{r=[];o=1;for(s=j.length-1;o<s;++o)r.push(new ca(j[o],f(o),e));r.push(new ca(n+l.text.slice(i.ch),m,e));g(l,l.text.slice(0,h.ch)+j[0],f(0));a.insert(h.line+1,r)}else if(1==j.length)g(l,l.text.slice(0,
126
+ h.ch)+j[0]+k.text.slice(i.ch),f(0)),a.remove(h.line+1,q);else{g(l,l.text.slice(0,h.ch)+j[0],f(0));g(k,n+k.text.slice(i.ch),m);o=1;s=j.length-1;for(r=[];o<s;++o)r.push(new ca(j[o],f(o),e));1<q&&a.remove(h.line+1,q-1);a.insert(h.line+1,r)}E(a,"change",a,b);ba(a,d.anchor,d.head,null,!0)}function Jb(a){this.lines=a;this.parent=null;for(var b=0,c=a.length,d=0;b<c;++b)a[b].parent=this,d+=a[b].height;this.height=d}function hb(a){this.children=a;for(var b=0,c=0,d=0,e=a.length;d<e;++d){var f=a[d],b=b+f.chunkSize(),
127
+ c=c+f.height;f.parent=this}this.size=b;this.height=c;this.parent=null}function Ca(a,b,c){function d(a,f,g){if(a.linked)for(var h=0;h<a.linked.length;++h){var i=a.linked[h];if(i.doc!=f){var j=g&&i.sharedHist;if(!c||j)b(i.doc,j),d(i.doc,a,j)}}}d(a,null,!0)}function Mc(a,b){if(b.cm)throw Error("This document is already in use.");a.doc=b;b.cm=a;Vb(a);Ha(a);a.options.lineWrapping||Xb(a);a.options.mode=b.modeOption;w(a)}function p(a,b){for(b-=a.first;!a.lines;)for(var c=0;;++c){var d=a.children[c],e=d.chunkSize();
128
+ if(b<e){a=d;break}b-=e}return a.lines[b]}function Cc(a,b,c){var d=[],e=b.line;a.iter(b.line,c.line+1,function(a){a=a.text;e==c.line&&(a=a.slice(0,c.ch));e==b.line&&(a=a.slice(b.ch));d.push(a);++e});return d}function Hc(a,b,c){var d=[];a.iter(b,c,function(a){d.push(a.text)});return d}function P(a,b){for(var c=b-a.height,d=a;d;d=d.parent)d.height+=c}function K(a){if(null==a.parent)return null;for(var b=a.parent,a=S(b.lines,a),c=b.parent;c;b=c,c=c.parent)for(var d=0;c.children[d]!=b;++d)a+=c.children[d].chunkSize();
129
+ return a+b.first}function Ma(a,b){var c=a.first;a:do{for(var d=0,e=a.children.length;d<e;++d){var f=a.children[d],g=f.height;if(b<g){a=f;continue a}b-=g;c+=f.chunkSize()}return c}while(!a.lines);d=0;for(e=a.lines.length;d<e;++d){f=a.lines[d].height;if(b<f)break;b-=f}return c+d}function Oa(a,b){for(var b=Z(a.doc,b),c=0,d=b.parent,e=0;e<d.lines.length;++e){var f=d.lines[e];if(f==b)break;else c+=f.height}for(f=d.parent;f;d=f,f=d.parent)for(e=0;e<f.children.length;++e){var g=f.children[e];if(g==d)break;
130
+ else c+=g.height}return c}function T(a){var b=a.order;null==b&&(b=a.order=we(a.text));return b}function Kb(a){return{done:[],undone:[],undoDepth:Infinity,lastTime:0,lastOp:null,lastOrigin:null,generation:a||1,maxGeneration:a||1}}function Id(a,b,c,d){var e=b["spans_"+a.id],f=0;a.iter(Math.max(a.first,c),Math.min(a.first+a.size,d),function(c){c.markedSpans&&((e||(e=b["spans_"+a.id]={}))[f]=c.markedSpans);++f})}function Bc(a,b){var c={from:{line:b.from.line,ch:b.from.ch},to:yc(b),text:Cc(a,b.from,b.to)};
131
+ Id(a,c,b.from.line,b.to.line+1);Ca(a,function(a){Id(a,c,b.from.line,b.to.line+1)},!0);return c}function pd(a,b,c,d){var e=a.history;e.undone.length=0;var f=+new Date,g=J(e.done);if(g&&(e.lastOp==d||e.lastOrigin==b.origin&&b.origin&&("+"==b.origin.charAt(0)&&a.cm&&e.lastTime>f-a.cm.options.historyEventDelay||"*"==b.origin.charAt(0)))){var h=J(g.changes);v(b.from,b.to)&&v(b.from,h.to)?h.to=yc(b):g.changes.push(Bc(a,b));g.anchorAfter=c.anchor;g.headAfter=c.head}else{g={changes:[Bc(a,b)],generation:e.generation,
132
+ anchorBefore:a.sel.anchor,headBefore:a.sel.head,anchorAfter:c.anchor,headAfter:c.head};e.done.push(g);for(e.generation=++e.maxGeneration;e.done.length>e.undoDepth;)e.done.shift()}e.lastTime=f;e.lastOp=d;e.lastOrigin=b.origin}function re(a){if(!a)return null;for(var b=0,c;b<a.length;++b)a[b].marker.explicitlyCleared?c||(c=a.slice(0,b)):c&&c.push(a[b]);return!c?a:c.length?c:null}function Lb(a,b){for(var c=0,d=[];c<a.length;++c){var e=a[c],f=e.changes,g=[];d.push({changes:g,anchorBefore:e.anchorBefore,
133
+ headBefore:e.headBefore,anchorAfter:e.anchorAfter,headAfter:e.headAfter});for(e=0;e<f.length;++e){var h=f[e],i;g.push({from:h.from,to:h.to,text:h.text});if(b)for(var j in h)if((i=j.match(/^spans_(\d+)$/))&&-1<S(b,Number(i[1])))J(g)[j]=h[j],delete h[j]}}return d}function Mb(a,b,c,d){c<a.line?a.line+=d:b<a.line&&(a.line=b,a.ch=0)}function Jd(a,b,c,d){for(var e=0;e<a.length;++e){for(var f=a[e],g=!0,h=0;h<f.changes.length;++h){var i=f.changes[h];f.copied||(i.from=ka(i.from),i.to=ka(i.to));if(c<i.from.line)i.from.line+=
134
+ d,i.to.line+=d;else if(b<=i.to.line){g=!1;break}}f.copied||(f.anchorBefore=ka(f.anchorBefore),f.headBefore=ka(f.headBefore),f.anchorAfter=ka(f.anchorAfter),f.readAfter=ka(f.headAfter),f.copied=!0);g?(Mb(f.anchorBefore),Mb(f.headBefore),Mb(f.anchorAfter),Mb(f.headAfter)):(a.splice(0,e+1),e=0)}}function qd(a,b){var c=b.from.line,d=b.to.line,e=b.text.length-(d-c)-1;Jd(a.done,c,d,e);Jd(a.undone,c,d,e)}function xe(){Xa(this)}function Wa(a){a.stop||(a.stop=xe);return a}function A(a){a.preventDefault?a.preventDefault():
135
+ a.returnValue=!1}function Kd(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function sc(a){return null!=a.defaultPrevented?a.defaultPrevented:!1==a.returnValue}function Xa(a){A(a);Kd(a)}function fd(a){var b=a.which;null==b&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2));ta&&(a.ctrlKey&&1==b)&&(b=3);return b}function t(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):(a=a._handlers||(a._handlers={}),(a[b]||(a[b]=[])).push(c))}function aa(a,b,
136
+ c){if(a.removeEventListener)a.removeEventListener(b,c,!1);else if(a.detachEvent)a.detachEvent("on"+b,c);else if(a=a._handlers&&a._handlers[b])for(b=0;b<a.length;++b)if(a[b]==c){a.splice(b,1);break}}function F(a,b){var c=a._handlers&&a._handlers[b];if(c)for(var d=Array.prototype.slice.call(arguments,2),e=0;e<c.length;++e)c[e].apply(null,d)}function E(a,b){function c(a){return function(){a.apply(null,e)}}var d=a._handlers&&a._handlers[b];if(d){var e=Array.prototype.slice.call(arguments,2);da||(++vb,
137
+ da=[],setTimeout(ye,0));for(var f=0;f<d.length;++f)da.push(c(d[f]))}}function V(a,b,c){F(a,c||b.type,a,b);return sc(b)||b.codemirrorIgnore}function ye(){--vb;var a=da;da=null;for(var b=0;b<a.length;++b)a[b]()}function W(a,b){var c=a._handlers&&a._handlers[b];return c&&0<c.length}function Ea(a){a.prototype.on=function(a,c){t(this,a,c)};a.prototype.off=function(a,c){aa(this,a,c)}}function Rb(){this.id=null}function va(a,b,c,d,e){null==b&&(b=a.search(/[^\s\u00a0]/),-1==b&&(b=a.length));d=d||0;for(e=
138
+ e||0;d<b;++d)"\t"==a.charAt(d)?e+=c-e%c:++e;return e}function vd(a){for(;Nb.length<=a;)Nb.push(J(Nb)+" ");return Nb[a]}function J(a){return a[a.length-1]}function ad(a){if(Ga)a.selectionStart=0,a.selectionEnd=a.value.length;else try{a.select()}catch(b){}}function S(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;++c)if(a[c]==b)return c;return-1}function Ld(a,b){function c(){}c.prototype=a;var d=new c;b&&Hb(b,d);return d}function Hb(a,b){b||(b={});for(var c in a)a.hasOwnProperty(c)&&
139
+ (b[c]=a[c]);return b}function Xc(a){for(var b=[],c=0;c<a;++c)b.push(void 0);return b}function O(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function bb(a){return/\w/.test(a)||"€"<a&&(a.toUpperCase()!=a.toLowerCase()||ze.test(a))}function Md(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}function o(a,b,c,d){a=document.createElement(a);c&&(a.className=c);d&&(a.style.cssText=d);if("string"==typeof b)Sc(a,b);else if(b)for(c=0;c<b.length;++c)a.appendChild(b[c]);
140
+ return a}function Ka(a){for(var b=a.childNodes.length;0<b;--b)a.removeChild(a.firstChild);return a}function U(a,b){return Ka(a).appendChild(b)}function Sc(a,b){L?(a.innerHTML="",a.appendChild(document.createTextNode(b))):a.textContent=b}function x(a){return a.getBoundingClientRect()}function gb(){return!1}function La(a){if(null!=Va)return Va;var b=o("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");U(a,b);b.offsetWidth&&(Va=b.offsetHeight-b.clientHeight);return Va||0}function Ra(a){if(null==
141
+ Ic){var b=o("span","​");U(a,o("span",[b,document.createTextNode("x")]));0!=a.firstChild.offsetHeight&&(Ic=1>=b.offsetWidth&&2<b.offsetHeight&&!pa)}return Ic?o("span","​"):o("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")}function $d(a,b,c,d){if(!a)return d(b,c,"ltr");for(var e=!1,f=0;f<a.length;++f){var g=a[f];if(g.from<c&&g.to>b||b==c&&g.to==b)d(Math.max(g.from,b),Math.min(g.to,c),1==g.level?"rtl":"ltr"),e=!0}e||d(b,c,"ltr")}function hc(a){return a.level%2?a.from:a.to}function tb(a){return(a=
142
+ T(a))?a[0].level%2?a[0].to:a[0].from:0}function ub(a){var b=T(a);return!b?a.text.length:hc(J(b))}function Nd(a,b){var c=p(a.doc,b),d=Z(a.doc,c);d!=c&&(b=K(d));c=T(d);d=!c?0:c[0].level%2?ub(d):tb(d);return m(b,d)}function Ae(a,b){for(var c,d;c=nb(d=p(a.doc,b));)b=c.find().to.line;c=T(d);d=!c?d.text.length:c[0].level%2?tb(d):ub(d);return m(b,d)}function ic(a,b){for(var c=0,d;c<a.length;++c){var e=a[c];if(e.from<b&&e.to>b)return wa=null,c;if(e.from==b||e.to==b)if(null==d)d=c;else{var e=e.level,f=a[d].level,
143
+ g=a[0].level,e=e==g?!0:f==g?!1:e<f;if(e)return wa=d,c;wa=c;return d}}wa=null;return d}function Jc(a,b,c,d){if(!d)return b+c;do b+=c;while(0<b&&lc.test(a.text.charAt(b)));return b}function kc(a,b,c,d){var e=T(a);if(!e)return wd(a,b,c,d);for(var f=ic(e,b),g=e[f],b=Jc(a,b,g.level%2?-c:c,d);;){if(b>g.from&&b<g.to)return b;if(b==g.from||b==g.to){if(ic(e,b)==f)return b;g=e[f+c];return 0<c==g.level%2?g.to:g.from}g=e[f+=c];if(!g)return null;b=0<c==g.level%2?Jc(a,g.to,-1,d):Jc(a,g.from,1,d)}}function wd(a,
144
+ b,c,d){b+=c;if(d)for(;0<b&&lc.test(a.text.charAt(b));)b+=c;return 0>b||b>a.text.length?null:b}var Ba=/gecko\/\d/i.test(navigator.userAgent),D=/MSIE \d/.test(navigator.userAgent),pa=D&&(null==document.documentMode||8>document.documentMode),L=D&&(null==document.documentMode||9>document.documentMode),ve=/Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent),G=/WebKit\//.test(navigator.userAgent),Be=G&&/Qt\/\d+\.\d+/.test(navigator.userAgent),Ce=/Chrome\//.test(navigator.userAgent),Q=/Opera\//.test(navigator.userAgent),
145
+ rc=/Apple Computer/.test(navigator.vendor),Ub=/KHTML\//.test(navigator.userAgent),Rd=/Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent),Sd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),ge=/PhantomJS/.test(navigator.userAgent),Ga=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),Qb=Ga||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),ta=Ga||/Mac/.test(navigator.platform),De=/win/i.test(navigator.platform),ma=Q&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);
146
+ ma&&(ma=Number(ma[1]));ma&&15<=ma&&(Q=!1,G=!0);var yd=ta&&(Be||Q&&(null==ma||12.11>ma)),qc=Ba||D&&!L,od=!1,Na=!1,ha,fe=0,zb,yb,ed=0,Ab=0,R=null;D?R=-0.53:Ba?R=15:Ce?R=-0.7:rc&&(R=-1/3);var jd,vc=null,wc,yc=k.changeEnd=function(a){return!a.text?a.to:m(a.from.line+a.text.length-1,J(a.text).length+(a.text.length==1?a.from.ch:0))};k.Pos=m;k.prototype={constructor:k,focus:function(){window.focus();M(this);Ta(this)},setOption:function(a,b){var c=this.options,d=c[a];if(!(c[a]==b&&a!="mode")){c[a]=b;na.hasOwnProperty(a)&&
147
+ s(this,na[a])(this,b,d)}},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,b){this.state.keyMaps[b?"push":"unshift"](a)},removeKeyMap:function(a){for(var b=this.state.keyMaps,c=0;c<b.length;++c)if(b[c]==a||typeof b[c]!="string"&&b[c].name==a){b.splice(c,1);return true}},addOverlay:s(null,function(a,b){var c=a.token?a:k.getMode(this.options,a);if(c.startState)throw Error("Overlays may not be stateful.");this.state.overlays.push({mode:c,modeSpec:a,
148
+ opaque:b&&b.opaque});this.state.modeGen++;w(this)}),removeOverlay:s(null,function(a){for(var b=this.state.overlays,c=0;c<b.length;++c){var d=b[c].modeSpec;if(d==a||typeof a=="string"&&d.name==a){b.splice(c,1);this.state.modeGen++;w(this);break}}}),indentLine:s(null,function(a,b,c){typeof b!="string"&&typeof b!="number"&&(b=b==null?this.options.smartIndent?"smart":"prev":b?"add":"subtract");Da(this.doc,a)&&Cb(this,a,b,c)}),indentSelection:s(null,function(a){var b=this.doc.sel;if(v(b.from,b.to))return Cb(this,
149
+ b.from.line,a);for(var c=b.to.line-(b.to.ch?0:1),b=b.from.line;b<=c;++b)Cb(this,b,a)}),getTokenAt:function(a,b){for(var c=this.doc,a=q(c,a),d=Pa(this,a.line,b),e=this.doc.mode,c=p(c,a.line),c=new cb(c.text,this.options.tabSize);c.pos<a.ch&&!c.eol();){c.start=c.pos;var f=e.token(c,d)}return{start:c.start,end:c.pos,string:c.current(),className:f||null,type:f||null,state:d}},getTokenTypeAt:function(a){var a=q(this.doc,a),b=Dd(this,p(this.doc,a.line)),c=0,d=(b.length-1)/2,a=a.ch;if(a==0)return b[2];for(;;){var e=
150
+ c+d>>1;if((e?b[e*2-1]:0)>=a)d=e;else if(b[e*2+1]<a)c=e+1;else return b[e*2+2]}},getModeAt:function(a){var b=this.doc.mode;return!b.innerMode?b:k.innerMode(b,this.getTokenAt(a).state).mode},getHelper:function(a,b){if(ib.hasOwnProperty(b)){var c=ib[b],d=this.getModeAt(a);return d[b]&&c[d[b]]||d.helperType&&c[d.helperType]||c[d.name]}},getStateAfter:function(a,b){var c=this.doc,a=Math.max(c.first,Math.min(a==null?c.first+c.size-1:a,c.first+c.size-1));return Pa(this,a+1,b)},cursorCoords:function(a,b){var c;
151
+ c=this.doc.sel;c=a==null?c.head:typeof a=="object"?q(this.doc,a):a?c.from:c.to;return N(this,c,b||"page")},charCoords:function(a,b){return pb(this,q(this.doc,a),b||"page")},coordsChar:function(a,b){a=Yc(this,a,b||"page");return jc(this,a.left,a.top)},lineAtHeight:function(a,b){a=Yc(this,{top:a,left:0},b||"page").top;return Ma(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,b){var c=false,d=this.doc.first+this.doc.size-1;if(a<this.doc.first)a=this.doc.first;else if(a>d){a=d;c=true}d=p(this.doc,
152
+ a);return gc(this,p(this.doc,a),{top:0,left:0},b||"page").top+(c?d.height:0)},defaultTextHeight:function(){return qa(this.display)},defaultCharWidth:function(){return Pc(this.display)},setGutterMarker:s(null,function(a,b,c){return Gb(this,a,function(a){var e=a.gutterMarkers||(a.gutterMarkers={});e[b]=c;if(!c&&Md(e))a.gutterMarkers=null;return true})}),clearGutter:s(null,function(a){var b=this,c=b.doc,d=c.first;c.iter(function(c){if(c.gutterMarkers&&c.gutterMarkers[a]){c.gutterMarkers[a]=null;w(b,
153
+ d,d+1);if(Md(c.gutterMarkers))c.gutterMarkers=null}++d})}),addLineClass:s(null,function(a,b,c){return Gb(this,a,function(a){var e=b=="text"?"textClass":b=="background"?"bgClass":"wrapClass";if(a[e]){if(RegExp("(?:^|\\s)"+c+"(?:$|\\s)").test(a[e]))return false;a[e]=a[e]+(" "+c)}else a[e]=c;return true})}),removeLineClass:s(null,function(a,b,c){return Gb(this,a,function(a){var e=b=="text"?"textClass":b=="background"?"bgClass":"wrapClass",f=a[e];if(f)if(c==null)a[e]=null;else{var g=f.match(RegExp("(?:^|\\s+)"+
154
+ c+"(?:$|\\s+)"));if(!g)return false;var h=g.index+g[0].length;a[e]=f.slice(0,g.index)+(!g.index||h==f.length?"":" ")+f.slice(h)||null}else return false;return true})}),addLineWidget:s(null,function(a,b,c){return se(this,a,b,c)}),removeLineWidget:function(a){a.clear()},lineInfo:function(a){if(typeof a=="number"){if(!Da(this.doc,a))return null;var b=a,a=p(this.doc,a);if(!a)return null}else{b=K(a);if(b==null)return null}return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,
155
+ bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},getViewport:function(){return{from:this.display.showingFrom,to:this.display.showingTo}},addWidget:function(a,b,c,d,e){var f=this.display,a=N(this,q(this.doc,a)),g=a.bottom,h=a.left;b.style.position="absolute";f.sizer.appendChild(b);if(d=="over")g=a.top;else if(d=="above"||d=="near"){var i=Math.max(f.wrapper.clientHeight,this.doc.height),j=Math.max(f.sizer.clientWidth,f.lineSpace.clientWidth);if((d=="above"||a.bottom+b.offsetHeight>i)&&a.top>
156
+ b.offsetHeight)g=a.top-b.offsetHeight;else if(a.bottom+b.offsetHeight<=i)g=a.bottom;h+b.offsetWidth>j&&(h=j-b.offsetWidth)}b.style.top=g+"px";b.style.left=b.style.right="";if(e=="right"){h=f.sizer.clientWidth-b.offsetWidth;b.style.right="0px"}else{e=="left"?h=0:e=="middle"&&(h=(f.sizer.clientWidth-b.offsetWidth)/2);b.style.left=h+"px"}if(c){a=wb(this,h,g,h+b.offsetWidth,g+b.offsetHeight);a.scrollTop!=null&&Za(this,a.scrollTop);a.scrollLeft!=null&&za(this,a.scrollLeft)}},triggerOnKeyDown:s(null,dd),
157
+ execCommand:function(a){return tc[a](this)},findPosH:function(a,b,c,d){var e=1;if(b<0){e=-1;b=-b}for(var f=0,a=q(this.doc,a);f<b;++f){a=Fc(this.doc,a,e,c,d);if(a.hitSide)break}return a},moveH:s(null,function(a,b){var c=this.doc.sel,c=c.shift||c.extend||v(c.from,c.to)?Fc(this.doc,c.head,a,b,this.options.rtlMoveVisually):a<0?c.from:c.to;H(this.doc,c,c,a)}),deleteH:s(null,function(a,b){var c=this.doc.sel;v(c.from,c.to)?ea(this.doc,"",c.from,Fc(this.doc,c.head,a,b,false),"+delete"):ea(this.doc,"",c.from,
158
+ c.to,"+delete");this.curOp.userSelChange=true}),findPosV:function(a,b,c,d){var e=1;if(b<0){e=-1;b=-b}for(var f=0,a=q(this.doc,a);f<b;++f){a=N(this,a,"div");d==null?d=a.left:a.left=d;a=xd(this,a,e,c);if(a.hitSide)break}return a},moveV:s(null,function(a,b){var c=this.doc.sel,d=N(this,c.head,"div");if(c.goalColumn!=null)d.left=c.goalColumn;var e=xd(this,d,a,b);b=="page"&&Ec(this,0,pb(this,e,"div").top-d.top);H(this.doc,e,e,a);c.goalColumn=d.left}),toggleOverwrite:function(a){if(!(a!=null&&a==this.state.overwrite))this.display.cursor.className=
159
+ (this.state.overwrite=!this.state.overwrite)?this.display.cursor.className+" CodeMirror-overwrite":this.display.cursor.className.replace(" CodeMirror-overwrite","")},hasFocus:function(){return this.state.focused},scrollTo:s(null,function(a,b){Fb(this,a,b)}),getScrollInfo:function(){var a=this.display.scroller,b=oa;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-b,width:a.scrollWidth-b,clientHeight:a.clientHeight-b,clientWidth:a.clientWidth-b}},scrollIntoView:s(null,function(a,b){a==
160
+ null?a={from:this.doc.sel.head,to:null}:typeof a=="number"?a={from:m(a,0),to:null}:a.from==null&&(a={from:a,to:null});if(!a.to)a.to=a.from;b||(b=0);var c=a;if(a.from.line!=null){this.curOp.scrollToPos={from:a.from,to:a.to,margin:b};c={from:N(this,a.from),to:N(this,a.to)}}c=wb(this,Math.min(c.from.left,c.to.left),Math.min(c.from.top,c.to.top)-b,Math.max(c.from.right,c.to.right),Math.max(c.from.bottom,c.to.bottom)+b);Fb(this,c.scrollLeft,c.scrollTop)}),setSize:s(null,function(a,b){function c(a){return typeof a==
161
+ "number"||/^\d+$/.test(""+a)?a+"px":a}if(a!=null)this.display.wrapper.style.width=c(a);if(b!=null)this.display.wrapper.style.height=c(b);if(this.options.lineWrapping)this.display.measureLineCache.length=this.display.measureLineCachePos=0;this.curOp.forceUpdate=true}),operation:function(a){return mc(this,a)},refresh:s(null,function(){var a=this.display.cachedTextHeight==null;ra(this);Fb(this,this.doc.scrollLeft,this.doc.scrollTop);w(this);a&&Vb(this)}),swapDoc:s(null,function(a){var b=this.doc;b.cm=
162
+ null;Mc(this,a);ra(this);X(this,true);Fb(this,a.scrollLeft,a.scrollTop);E(this,"swapDoc",this,b);return b}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};Ea(k);var na=k.optionHandlers={},Ob=k.defaults={},Nc=k.Init={toString:function(){return"CodeMirror.Init"}};r("value","",function(a,b){a.setValue(b)},!0);r("mode",null,
163
+ function(a,b){a.doc.modeOption=b;Ha(a)},!0);r("indentUnit",2,Ha,!0);r("indentWithTabs",!1);r("smartIndent",!0);r("tabSize",4,function(a){Ha(a);ra(a);w(a)},!0);r("specialChars",/[\t\u0000-\u0019\u00ad\u200b\u2028\u2029\ufeff]/g,function(a,b){a.options.specialChars=RegExp(b.source+(b.test("\t")?"":"|\t"),"g");a.refresh()},!0);r("specialCharPlaceholder",function(a){var b=o("span","•","cm-invalidchar");b.title="\\u"+a.charCodeAt(0).toString(16);return b},function(a){a.refresh()},!0);r("electricChars",
164
+ !0);r("rtlMoveVisually",!De);r("wholeLineUpdateBefore",!0);r("theme","default",function(a){Lc(a);Ja(a)},!0);r("keyMap","default",Qc);r("extraKeys",null);r("onKeyEvent",null);r("onDragEvent",null);r("lineWrapping",!1,function(a){if(a.options.lineWrapping){a.display.wrapper.className=a.display.wrapper.className+" CodeMirror-wrap";a.display.sizer.style.minWidth=""}else{a.display.wrapper.className=a.display.wrapper.className.replace(" CodeMirror-wrap","");Xb(a)}Vb(a);w(a);ra(a);setTimeout(function(){Yb(a)},
165
+ 100)},!0);r("gutters",[],function(a){Pb(a.options);Ja(a)},!0);r("fixedGutter",!0,function(a,b){a.display.gutters.style.left=b?$b(a.display)+"px":"0";a.refresh()},!0);r("coverGutterNextToScrollbar",!1,Yb,!0);r("lineNumbers",!1,function(a){Pb(a.options);Ja(a)},!0);r("firstLineNumber",1,Ja,!0);r("lineNumberFormatter",function(a){return a},Ja,!0);r("showCursorWhenSelecting",!1,ac,!0);r("resetSelectionOnContextMenu",!0);r("readOnly",!1,function(a,b){if(b=="nocursor"){Sb(a);a.display.input.blur();a.display.disabled=
166
+ true}else{a.display.disabled=false;b||X(a,true)}});r("dragDrop",!0);r("cursorBlinkRate",530);r("cursorScrollMargin",0);r("cursorHeight",1);r("workTime",100);r("workDelay",100);r("flattenSpans",!0);r("pollInterval",100);r("undoDepth",40,function(a,b){a.doc.history.undoDepth=b});r("historyEventDelay",500);r("viewportMargin",10,function(a){a.refresh()},!0);r("maxHighlightLength",1E4,function(a){Ha(a);a.refresh()},!0);r("crudeMeasuringFrom",1E4);r("moveInputWithCursor",!0,function(a,b){if(!b)a.display.inputDiv.style.top=
167
+ a.display.inputDiv.style.left=0});r("tabindex",null,function(a,b){a.display.input.tabIndex=b||""});r("autofocus",null);var Od=k.modes={},jb=k.mimeModes={};k.defineMode=function(a,b){if(!k.defaults.mode&&a!="null")k.defaults.mode=a;if(arguments.length>2){b.dependencies=[];for(var c=2;c<arguments.length;++c)b.dependencies.push(arguments[c])}Od[a]=b};k.defineMIME=function(a,b){jb[a]=b};k.resolveMode=function(a){if(typeof a=="string"&&jb.hasOwnProperty(a))a=jb[a];else if(a&&typeof a.name=="string"&&jb.hasOwnProperty(a.name)){var b=
168
+ jb[a.name],a=Ld(b,a);a.name=b.name}else if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return k.resolveMode("application/xml");return typeof a=="string"?{name:a}:a||{name:"null"}};k.getMode=function(a,b){var b=k.resolveMode(b),c=Od[b.name];if(!c)return k.getMode(a,"text/plain");c=c(a,b);if(kb.hasOwnProperty(b.name)){var d=kb[b.name],e;for(e in d)if(d.hasOwnProperty(e)){c.hasOwnProperty(e)&&(c["_"+e]=c[e]);c[e]=d[e]}}c.name=b.name;return c};k.defineMode("null",function(){return{token:function(a){a.skipToEnd()}}});
169
+ k.defineMIME("text/plain","null");var kb=k.modeExtensions={};k.extendMode=function(a,b){var c=kb.hasOwnProperty(a)?kb[a]:kb[a]={};Hb(b,c)};k.defineExtension=function(a,b){k.prototype[a]=b};k.defineDocExtension=function(a,b){I.prototype[a]=b};k.defineOption=r;var Tb=[];k.defineInitHook=function(a){Tb.push(a)};var ib=k.helpers={};k.registerHelper=function(a,b,c){ib.hasOwnProperty(a)||(ib[a]=k[a]={});ib[a][b]=c};k.isWordChar=bb;k.copyState=ua;k.startState=Vc;k.innerMode=function(a,b){for(;a.innerMode;){var c=
170
+ a.innerMode(b);if(!c||c.mode==a)break;b=c.state;a=c.mode}return c||{mode:a,state:b}};var tc=k.commands={selectAll:function(a){a.setSelection(m(a.firstLine(),0),m(a.lastLine()))},killLine:function(a){var b=a.getCursor(true),c=a.getCursor(false),d=!v(b,c);!d&&a.getLine(b.line).length==b.ch?a.replaceRange("",b,m(b.line+1,0),"+delete"):a.replaceRange("",b,d?c:m(b.line),"+delete")},deleteLine:function(a){var b=a.getCursor().line;a.replaceRange("",m(b,0),m(b),"+delete")},delLineLeft:function(a){var b=a.getCursor();
171
+ a.replaceRange("",m(b.line,0),b,"+delete")},undo:function(a){a.undo()},redo:function(a){a.redo()},goDocStart:function(a){a.extendSelection(m(a.firstLine(),0))},goDocEnd:function(a){a.extendSelection(m(a.lastLine()))},goLineStart:function(a){a.extendSelection(Nd(a,a.getCursor().line))},goLineStartSmart:function(a){var b=a.getCursor(),c=Nd(a,b.line),d=a.getLineHandle(c.line),e=T(d);if(!e||e[0].level==0){d=Math.max(0,d.text.search(/\S/));a.extendSelection(m(c.line,b.line==c.line&&b.ch<=d&&b.ch?0:d))}else a.extendSelection(c)},
172
+ goLineEnd:function(a){a.extendSelection(Ae(a,a.getCursor().line))},goLineRight:function(a){var b=a.charCoords(a.getCursor(),"div").top+5;a.extendSelection(a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div"))},goLineLeft:function(a){var b=a.charCoords(a.getCursor(),"div").top+5;a.extendSelection(a.coordsChar({left:0,top:b},"div"))},goLineUp:function(a){a.moveV(-1,"line")},goLineDown:function(a){a.moveV(1,"line")},goPageUp:function(a){a.moveV(-1,"page")},goPageDown:function(a){a.moveV(1,
173
+ "page")},goCharLeft:function(a){a.moveH(-1,"char")},goCharRight:function(a){a.moveH(1,"char")},goColumnLeft:function(a){a.moveH(-1,"column")},goColumnRight:function(a){a.moveH(1,"column")},goWordLeft:function(a){a.moveH(-1,"word")},goGroupRight:function(a){a.moveH(1,"group")},goGroupLeft:function(a){a.moveH(-1,"group")},goWordRight:function(a){a.moveH(1,"word")},delCharBefore:function(a){a.deleteH(-1,"char")},delCharAfter:function(a){a.deleteH(1,"char")},delWordBefore:function(a){a.deleteH(-1,"word")},
174
+ delWordAfter:function(a){a.deleteH(1,"word")},delGroupBefore:function(a){a.deleteH(-1,"group")},delGroupAfter:function(a){a.deleteH(1,"group")},indentAuto:function(a){a.indentSelection("smart")},indentMore:function(a){a.indentSelection("add")},indentLess:function(a){a.indentSelection("subtract")},insertTab:function(a){a.replaceSelection("\t","end","+input")},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.replaceSelection("\t","end","+input")},transposeChars:function(a){var b=
175
+ a.getCursor(),c=a.getLine(b.line);b.ch>0&&b.ch<c.length-1&&a.replaceRange(c.charAt(b.ch)+c.charAt(b.ch-1),m(b.line,b.ch-1),m(b.line,b.ch+1))},newlineAndIndent:function(a){s(a,function(){a.replaceSelection("\n","end","+input");a.indentLine(a.getCursor().line,null,true)})()},toggleOverwrite:function(a){a.toggleOverwrite()}},Y=k.keyMap={};Y.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",
176
+ Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite"};Y.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Alt-Up":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Down":"goDocEnd","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter",
177
+ "Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore",fallthrough:"basic"};Y.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineStart","Cmd-Right":"goLineEnd","Alt-Backspace":"delGroupBefore",
178
+ "Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delLineLeft",fallthrough:["basic","emacsy"]};Y["default"]=ta?Y.macDefault:Y.pcDefault;Y.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart",
179
+ "Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};k.lookupKey=$a;k.isModifierKey=kd;k.keyName=ld;k.fromTextArea=function(a,b){function c(){a.value=j.getValue()}b||(b={});b.value=a.value;if(!b.tabindex&&a.tabindex)b.tabindex=a.tabindex;if(!b.placeholder&&a.placeholder)b.placeholder=a.placeholder;if(b.autofocus==null){var d=document.body;
180
+ try{d=document.activeElement}catch(e){}b.autofocus=d==a||a.getAttribute("autofocus")!=null&&d==document.body}if(a.form){t(a.form,"submit",c);if(!b.leaveSubmitMethodAlone){var f=a.form,g=f.submit;try{var h=f.submit=function(){c();f.submit=g;f.submit();f.submit=h}}catch(i){}}}a.style.display="none";var j=k(function(b){a.parentNode.insertBefore(b,a.nextSibling)},b);j.save=c;j.getTextArea=function(){return a};j.toTextArea=function(){c();a.parentNode.removeChild(j.getWrapperElement());a.style.display=
181
+ "";if(a.form){aa(a.form,"submit",c);if(typeof a.form.submit=="function")a.form.submit=g}};return j};cb.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==0},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(a){var b=this.string.charAt(this.pos);if(typeof a=="string"?b==a:b&&(a.test?a.test(b):a(b))){++this.pos;return b}},eatWhile:function(a){for(var b=
182
+ this.pos;this.eat(a););return this.pos>b},eatSpace:function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},skipToEnd:function(){this.pos=this.string.length},skipTo:function(a){a=this.string.indexOf(a,this.pos);if(a>-1){this.pos=a;return true}},backUp:function(a){this.pos=this.pos-a},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=va(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=
183
+ this.start}return this.lastColumnValue},indentation:function(){return va(this.string,null,this.tabSize)},match:function(a,b,c){if(typeof a=="string"){var d=this.string.substr(this.pos,a.length);if((c?d.toLowerCase():d)==(c?a.toLowerCase():a)){if(b!==false)this.pos=this.pos+a.length;return true}}else{if((a=this.string.slice(this.pos).match(a))&&a.index>0)return null;if(a&&b!==false)this.pos=this.pos+a[0].length;return a}},current:function(){return this.string.slice(this.start,this.pos)}};k.StringStream=
184
+ cb;k.TextMarker=fa;Ea(fa);fa.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;b&&xa(a);if(W(this,"clear")){var c=this.find();c&&E(this,"clear",c.from,c.to)}for(var d=c=null,e=0;e<this.lines.length;++e){var f=this.lines[e],g=fb(f.markedSpans,this);g.to!=null&&(d=K(f));for(var h=f,i=f.markedSpans,j=g,l=void 0,k=0;k<i.length;++k)i[k]!=j&&(l||(l=[])).push(i[k]);h.markedSpans=l;g.from!=null?c=K(f):this.collapsed&&(!ga(this.doc,f)&&a)&&P(f,qa(a.display))}if(a&&this.collapsed&&
185
+ !a.options.lineWrapping)for(e=0;e<this.lines.length;++e){f=Z(a.doc,this.lines[e]);g=mb(a.doc,f);if(g>a.display.maxLineLength){a.display.maxLine=f;a.display.maxLineLength=g;a.display.maxLineChanged=true}}c!=null&&a&&w(a,c,d+1);this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;a&&ud(a)}b&&ya(a)}};fa.prototype.find=function(){for(var a,b,c=0;c<this.lines.length;++c){var d=this.lines[c],e=fb(d.markedSpans,this);if(e.from!=null||e.to!=null){d=K(d);
186
+ e.from!=null&&(a=m(d,e.from));e.to!=null&&(b=m(d,e.to))}}return this.type=="bookmark"?a:a&&{from:a,to:b}};fa.prototype.changed=function(){var a=this.find(),b=this.doc.cm;if(a&&b){if(this.type!="bookmark")a=a.from;var c=p(this.doc,a.line);ce(b,c);if(a.line>=b.display.showingFrom&&a.line<b.display.showingTo){for(a=b.display.lineDiv.firstChild;a;a=a.nextSibling)if(a.lineObj==c){a.offsetHeight!=c.height&&P(c,a.offsetHeight);break}mc(b,function(){b.curOp.selectionChanged=b.curOp.forceUpdate=b.curOp.updateMaxLine=
187
+ true})}}};fa.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;if(!b.maybeHiddenMarkers||S(b.maybeHiddenMarkers,this)==-1)(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)};fa.prototype.detachLine=function(a){this.lines.splice(S(this.lines,a),1);if(!this.lines.length&&this.doc.cm){a=this.doc.cm.curOp;(a.maybeHiddenMarkers||(a.maybeHiddenMarkers=[])).push(this)}};k.SharedTextMarker=eb;Ea(eb);eb.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=
188
+ true;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();E(this,"clear")}};eb.prototype.find=function(){return this.primary.find()};var Ib=k.LineWidget=function(a,b,c){if(c)for(var d in c)c.hasOwnProperty(d)&&(this[d]=c[d]);this.cm=a;this.node=b};Ea(Ib);Ib.prototype.clear=Bd(function(){var a=this.line.widgets,b=K(this.line);if(b!=null&&a){for(var c=0;c<a.length;++c)a[c]==this&&a.splice(c--,1);if(!a.length)this.line.widgets=null;a=Oa(this.cm,this.line)<this.cm.doc.scrollTop;P(this.line,Math.max(0,
189
+ this.line.height-rb(this)));a&&Ec(this.cm,0,-this.height);w(this.cm,b,b+1)}});Ib.prototype.changed=Bd(function(){var a=this.height;this.height=null;if(a=rb(this)-a){P(this.line,this.line.height+a);a=K(this.line);w(this.cm,a,a+1)}});var ca=k.Line=function(a,b,c){this.text=a;Ad(this,b);this.height=c?c(this):1};Ea(ca);ca.prototype.lineNo=function(){return K(this)};var Fd={};Jb.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var c=a,d=a+b;c<d;++c){var e=this.lines[c];
190
+ this.height=this.height-e.height;var f=e;f.parent=null;zd(f);E(e,"delete")}this.lines.splice(a,b)},collapse:function(a){a.splice.apply(a,[a.length,0].concat(this.lines))},insertInner:function(a,b,c){this.height=this.height+c;this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));a=0;for(c=b.length;a<c;++a)b[a].parent=this},iterN:function(a,b,c){for(b=a+b;a<b;++a)if(c(this.lines[a]))return true}};hb.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size=
191
+ this.size-b;for(var c=0;c<this.children.length;++c){var d=this.children[c],e=d.chunkSize();if(a<e){var f=Math.min(b,e-a),g=d.height;d.removeInner(a,f);this.height=this.height-(g-d.height);if(e==f){this.children.splice(c--,1);d.parent=null}if((b=b-f)==0)break;a=0}else a=a-e}if(this.size-b<25){c=[];this.collapse(c);this.children=[new Jb(c)];this.children[0].parent=this}},collapse:function(a){for(var b=0,c=this.children.length;b<c;++b)this.children[b].collapse(a)},insertInner:function(a,b,c){this.size=
192
+ this.size+b.length;this.height=this.height+c;for(var d=0,e=this.children.length;d<e;++d){var f=this.children[d],g=f.chunkSize();if(a<=g){f.insertInner(a,b,c);if(f.lines&&f.lines.length>50){for(;f.lines.length>50;){a=f.lines.splice(f.lines.length-25,25);a=new Jb(a);f.height=f.height-a.height;this.children.splice(d+1,0,a);a.parent=this}this.maybeSpill()}break}a=a-g}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),b=new hb(b);if(a.parent){a.size=
193
+ a.size-b.size;a.height=a.height-b.height;var c=S(a.parent.children,a);a.parent.children.splice(c+1,0,b)}else{c=new hb(a.children);c.parent=a;a.children=[c,b];a=c}b.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,c){for(var d=0,e=this.children.length;d<e;++d){var f=this.children[d],g=f.chunkSize();if(a<g){g=Math.min(b,g-a);if(f.iterN(a,g,c))return true;if((b=b-g)==0)break;a=0}else a=a-g}}};var Ee=0,I=k.Doc=function(a,b,c){if(!(this instanceof I))return new I(a,
194
+ b,c);c==null&&(c=0);hb.call(this,[new Jb([new ca("",null)])]);this.first=c;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.history=Kb();this.cleanGeneration=1;this.frontier=c;c=m(c,0);this.sel={from:c,to:c,head:c,anchor:c,shift:false,extend:false,goalColumn:null};this.id=++Ee;this.modeOption=b;typeof a=="string"&&(a=ia(a));Dc(this,{from:c,to:c,text:a},null,{head:c,anchor:c})};I.prototype=Ld(hb.prototype,{constructor:I,iter:function(a,b,c){c?this.iterN(a-this.first,b-a,c):this.iterN(this.first,
195
+ this.first+this.size,a)},insert:function(a,b){for(var c=0,d=0,e=b.length;d<e;++d)c=c+b[d].height;this.insertInner(a-this.first,b,c)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Hc(this,this.first,this.first+this.size);return a===false?b:b.join(a||"\n")},setValue:function(a){var b=m(this.first,0),c=this.first+this.size-1;Aa(this,{from:b,to:m(c,p(this,c).text.length),text:ia(a),origin:"setValue"},{head:b,anchor:b},true)},replaceRange:function(a,b,c,d){b=q(this,
196
+ b);c=c?q(this,c):b;ea(this,a,b,c,d)},getRange:function(a,b,c){a=Cc(this,q(this,a),q(this,b));return c===false?a:a.join(c||"\n")},getLine:function(a){return(a=this.getLineHandle(a))&&a.text},setLine:function(a,b){Da(this,a)&&ea(this,b,m(a,0),q(this,m(a)))},removeLine:function(a){a?ea(this,"",q(this,m(a-1)),q(this,m(a))):ea(this,"",m(0,0),q(this,m(1,0)))},getLineHandle:function(a){if(Da(this,a))return p(this,a)},getLineNumber:function(a){return K(a)},getLineHandleVisualStart:function(a){typeof a=="number"&&
197
+ (a=p(this,a));return Z(this,a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return q(this,a)},getCursor:function(a){var b=this.sel;return ka(a==null||a=="head"?b.head:a=="anchor"?b.anchor:a=="end"||a===false?b.to:b.from)},somethingSelected:function(){return!v(this.sel.head,this.sel.anchor)},setCursor:Sa(function(a,b,c){a=q(this,typeof a=="number"?m(a,b||0):a);c?H(this,a):ba(this,a,a)}),setSelection:Sa(function(a,
198
+ b,c){ba(this,q(this,a),q(this,b||a),c)}),extendSelection:Sa(function(a,b,c){H(this,q(this,a),b&&q(this,b),c)}),getSelection:function(a){return this.getRange(this.sel.from,this.sel.to,a)},replaceSelection:function(a,b,c){Aa(this,{from:this.sel.from,to:this.sel.to,text:ia(a),origin:c},b||"around")},undo:Sa(function(){rd(this,"undo")}),redo:Sa(function(){rd(this,"redo")}),setExtending:function(a){this.sel.extend=a},historySize:function(){var a=this.history;return{undo:a.done.length,redo:a.undone.length}},
199
+ clearHistory:function(){this.history=Kb(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration()},changeGeneration:function(){this.history.lastOp=this.history.lastOrigin=null;return this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Lb(this.history.done),undone:Lb(this.history.undone)}},setHistory:function(a){var b=this.history=Kb(this.history.maxGeneration);b.done=a.done.slice(0);
200
+ b.undone=a.undone.slice(0)},markText:function(a,b,c){return db(this,q(this,a),q(this,b),c,"range")},setBookmark:function(a,b){var c={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft},a=q(this,a);return db(this,a,a,c,"bookmark")},findMarksAt:function(a){var a=q(this,a),b=[],c=p(this,a.line).markedSpans;if(c)for(var d=0;d<c.length;++d){var e=c[d];if((e.from==null||e.from<=a.ch)&&(e.to==null||e.to>=a.ch))b.push(e.marker.parent||e.marker)}return b},getAllMarks:function(){var a=
201
+ [];this.iter(function(b){if(b=b.markedSpans)for(var c=0;c<b.length;++c)b[c].from!=null&&a.push(b[c].marker)});return a},posFromIndex:function(a){var b,c=this.first;this.iter(function(d){d=d.text.length+1;if(d>a){b=a;return true}a=a-d;++c});return q(this,m(c,b))},indexFromPos:function(a){var a=q(this,a),b=a.ch;if(a.line<this.first||a.ch<0)return 0;this.iter(this.first,a.line,function(a){b=b+(a.text.length+1)});return b},copy:function(a){var b=new I(Hc(this,this.first,this.first+this.size),this.modeOption,
202
+ this.first);b.scrollTop=this.scrollTop;b.scrollLeft=this.scrollLeft;b.sel={from:this.sel.from,to:this.sel.to,head:this.sel.head,anchor:this.sel.anchor,shift:this.sel.shift,extend:false,goalColumn:this.sel.goalColumn};if(a){b.history.undoDepth=this.history.undoDepth;b.setHistory(this.getHistory())}return b},linkedDoc:function(a){a||(a={});var b=this.first,c=this.first+this.size;if(a.from!=null&&a.from>b)b=a.from;if(a.to!=null&&a.to<c)c=a.to;b=new I(Hc(this,b,c),a.mode||this.modeOption,b);if(a.sharedHist)b.history=
203
+ this.history;(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist});b.linked=[{doc:this,isParent:true,sharedHist:a.sharedHist}];return b},unlinkDoc:function(a){if(a instanceof k)a=a.doc;if(this.linked)for(var b=0;b<this.linked.length;++b)if(this.linked[b].doc==a){this.linked.splice(b,1);a.unlinkDoc(this);break}if(a.history==this.history){var c=[a.id];Ca(a,function(a){c.push(a.id)},true);a.history=Kb();a.history.done=Lb(this.history.done,c);a.history.undone=Lb(this.history.undone,c)}},
204
+ iterLinkedDocs:function(a){Ca(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});I.prototype.eachLine=I.prototype.iter;var Fe=["iter","insert","remove","copy","getEditor"],lb;for(lb in I.prototype)I.prototype.hasOwnProperty(lb)&&0>S(Fe,lb)&&(k.prototype[lb]=function(a){return function(){return a.apply(this.doc,arguments)}}(I.prototype[lb]));Ea(I);k.e_stop=Xa;k.e_preventDefault=A;k.e_stopPropagation=Kd;var da,vb=0;k.on=t;k.off=aa;k.signal=F;var oa=30,gd=k.Pass={toString:function(){return"CodeMirror.Pass"}};
205
+ Rb.prototype={set:function(a,b){clearTimeout(this.id);this.id=setTimeout(b,a)}};k.countColumn=va;var Nb=[""],ze=/[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,lc=/[\u0300-\u036F\u0483-\u0487\u0488-\u0489\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\uA66F\u1DC0–\u1DFF\u20D0–\u20FF\uA670-\uA672\uA674-\uA67D\uA69F\udc00-\udfff\uFE20–\uFE2F]/;k.replaceGetRect=function(a){x=a};var me=function(){if(L)return false;
206
+ var a=o("div");return"draggable"in a||"dragDrop"in a}();Ba?gb=function(a,b){return a.charCodeAt(b-1)==36&&a.charCodeAt(b)==39}:rc&&!/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent)?gb=function(a,b){return/\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(a.slice(b-1,b+1))}:G&&/Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent)?gb=function(a,b){var c=a.charCodeAt(b-1);return c>=8208&&c<=8212}:G&&(gb=function(a,b){if(b>1&&a.charCodeAt(b-1)==45){if(/\w/.test(a.charAt(b-2))&&/[^\-?\.]/.test(a.charAt(b)))return true;
207
+ if(b>2&&/[\d\.,]/.test(a.charAt(b-2))&&/[\d\.,]/.test(a.charAt(b)))return false}return/[~!#%&*)=+}\]\\|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|…[\w~`@#$%\^&*(_=+{[><]/.test(a.slice(b-1,b+1))});var Va,Ic,ia=3!="\n\nb".split(/\n/).length?function(a){for(var b=0,c=[],d=a.length;b<=d;){var e=a.indexOf("\n",b);if(e==-1)e=a.length;var f=a.slice(b,a.charAt(e-1)=="\r"?e-1:e),g=f.indexOf("\r");if(g!=-1){c.push(f.slice(0,g));b=b+(g+1)}else{c.push(f);b=e+1}}return c}:function(a){return a.split(/\r\n?|\n/)};
208
+ k.splitLines=ia;var he=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return false}}:function(a){try{var b=a.ownerDocument.selection.createRange()}catch(c){}return!b||b.parentElement()!=a?false:b.compareEndPoints("StartToEnd",b)!=0},$c=function(){var a=o("div");if("oncopy"in a)return true;a.setAttribute("oncopy","return;");return typeof a.oncopy=="function"}(),la={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",
209
+ 27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",91:"Mod",92:"Mod",93:"Mod",109:"-",107:"=",127:"Delete",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63276:"PageUp",63277:"PageDown",63275:"End",63273:"Home",63234:"Left",63232:"Up",63235:"Right",63233:"Down",63302:"Insert",63272:"Delete"};k.keyNames=la;(function(){for(var a=0;a<10;a++)la[a+48]=""+a;for(a=
210
+ 65;a<=90;a++)la[a]=String.fromCharCode(a);for(a=1;a<=12;a++)la[a+111]=la[a+63235]="F"+a})();var wa,we=function(){function a(a){return a<=255?b.charAt(a):1424<=a&&a<=1524?"R":1536<=a&&a<=1791?c.charAt(a-1536):1792<=a&&a<=2220?"r":"L"}var b="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL",c="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr",
211
+ d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,f=/[LRr]/,g=/[Lb1n]/,h=/[1n]/;return function(b){if(!d.test(b))return false;for(var c=b.length,l=[],k=0,n;k<c;++k)l.push(a(b.charCodeAt(k)));for(var k=0,m="L";k<c;++k){n=l[k];n=="m"?l[k]=m:m=n}k=0;for(m="L";k<c;++k){n=l[k];if(n=="1"&&m=="r")l[k]="n";else if(f.test(n)){m=n;n=="r"&&(l[k]="R")}}k=1;for(m=l[0];k<c-1;++k){n=l[k];if(n=="+"&&m=="1"&&l[k+1]=="1")l[k]="1";else if(n==","&&m==l[k+1]&&(m=="1"||m=="n"))l[k]=m;m=n}for(k=0;k<c;++k){n=l[k];
212
+ if(n==",")l[k]="N";else if(n=="%"){for(m=k+1;m<c&&l[m]=="%";++m);var o=k&&l[k-1]=="!"||m<c-1&&l[m]=="1"?"1":"N";for(n=k;n<m;++n)l[n]=o;k=m-1}}k=0;for(m="L";k<c;++k){n=l[k];m=="L"&&n=="1"?l[k]="L":f.test(n)&&(m=n)}for(k=0;k<c;++k)if(e.test(l[k])){for(m=k+1;m<c&&e.test(l[m]);++m);n=(m<c-1?l[m]:"L")=="L";o=(k?l[k-1]:"L")=="L"||n?"L":"R";for(n=k;n<m;++n)l[n]=o;k=m-1}for(var m=[],q,k=0;k<c;)if(g.test(l[k])){n=k;for(++k;k<c&&g.test(l[k]);++k);m.push({from:n,to:k,level:0})}else{var p=k,o=m.length;for(++k;k<
213
+ c&&l[k]!="L";++k);for(n=p;n<k;)if(h.test(l[n])){p<n&&m.splice(o,0,{from:p,to:n,level:1});p=n;for(++n;n<k&&h.test(l[n]);++n);m.splice(o,0,{from:p,to:n,level:2});p=n}else++n;p<k&&m.splice(o,0,{from:p,to:k,level:1})}if(m[0].level==1&&(q=b.match(/^\s+/))){m[0].from=q[0].length;m.unshift({from:0,to:q[0].length,level:0})}if(J(m).level==1&&(q=b.match(/\s+$/))){J(m).to-=q[0].length;m.push({from:c-q[0].length,to:c,level:0})}m[0].level!=J(m).level&&m.push({from:c,to:c,level:m[0].level});return m}}();k.version=
214
+ "3.20.0";return k}();
@@ -0,0 +1,52 @@
1
+ CodeMirror.defineMode("xml",function(t,k){function i(a,b){function e(c){b.tokenize=c;return c(a,b)}var c=a.next();if("<"==c){if(a.eat("!"))return a.eat("[")?a.match("CDATA[")?e(u("atom","]]\>")):null:a.match("--")?e(u("comment","--\>")):a.match("DOCTYPE",!0,!0)?(a.eatWhile(/[\w\._\-]/),e(s(1))):null;if(a.eat("?"))return a.eatWhile(/[\w\._\-]/),b.tokenize=u("meta","?>"),"meta";c=a.eat("/");m="";for(var h;h=a.eat(/[^\s\u00a0=<>\"\'\/?]/);)m+=h;if(!m)return"tag error";v=c?"closeTag":"openTag";b.tokenize=
2
+ l;return"tag"}if("&"==c)return(a.eat("#")?a.eat("x")?a.eatWhile(/[a-fA-F\d]/)&&a.eat(";"):a.eatWhile(/[\d]/)&&a.eat(";"):a.eatWhile(/[\w\.\-:]/)&&a.eat(";"))?"atom":"error";a.eatWhile(/[^&<]/);return null}function l(a,b){var c=a.next();if(">"==c||"/"==c&&a.eat(">"))return b.tokenize=i,v=">"==c?"endTag":"selfcloseTag","tag";if("="==c)return v="equals",null;if("<"==c)return b.tokenize=i,(c=b.tokenize(a,b))?c+" error":"error";if(/[\'\"]/.test(c))return b.tokenize=p(c),b.stringStartCol=a.column(),b.tokenize(a,
3
+ b);a.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}function p(a){var b=function(b,c){for(;!b.eol();)if(b.next()==a){c.tokenize=l;break}return"string"};b.isInAttribute=!0;return b}function u(a,b){return function(c,e){for(;!c.eol();){if(c.match(b)){e.tokenize=i;break}c.next()}return a}}function s(a){return function(b,c){for(var e;null!=(e=b.next());){if("<"==e)return c.tokenize=s(a+1),c.tokenize(b,c);if(">"==e)if(1==a){c.tokenize=i;break}else return c.tokenize=s(a-1),c.tokenize(b,c)}return"meta"}}function d(){for(var a=
4
+ arguments.length-1;0<=a;a--)q.cc.push(arguments[a])}function g(){d.apply(null,arguments);return!0}function A(){q.context&&(q.context=q.context.prev)}function y(a){return"openTag"==a?(q.tagName=m,q.tagStart=D.column(),g(c,z(q.startOfLine))):"closeTag"==a?(a=!1,q.context?q.context.tagName!=m&&(n.implicitlyClosed.hasOwnProperty(q.context.tagName.toLowerCase())&&A(),a=!q.context||q.context.tagName!=m):a=!0,a&&(x="error"),g(h(a))):g()}function z(a){return function(b){var c=q.tagName;q.tagName=q.tagStart=
5
+ null;if("selfcloseTag"==b||"endTag"==b&&n.autoSelfClosers.hasOwnProperty(c.toLowerCase()))return o(c.toLowerCase()),g();"endTag"==b&&(o(c.toLowerCase()),b=n.doNotIndent.hasOwnProperty(c)||q.context&&q.context.noIndent,q.context={prev:q.context,tagName:c,indent:q.indented,startOfLine:a,noIndent:b});return g()}}function h(a){return function(b){a&&(x="error");if("endTag"==b)return A(),g();x="error";return g(arguments.callee)}}function o(a){for(var b;q.context;){b=q.context.tagName.toLowerCase();if(!n.contextGrabbers.hasOwnProperty(b)||
6
+ !n.contextGrabbers[b].hasOwnProperty(a))break;A()}}function c(b){if("word"==b)return x="attribute",g(a,c);if("endTag"==b||"selfcloseTag"==b)return d();x="error";return g(c)}function a(b){if("equals"==b)return g(e,c);if(n.allowMissing){if("word"==b)return x="attribute",g(a,c)}else x="error";return"endTag"==b||"selfcloseTag"==b?d():g()}function e(a){if("string"==a)return g(b);if("word"==a&&n.allowUnquoted)return x="string",g();x="error";return"endTag"==a||"selfCloseTag"==a?d():g()}function b(a){return"string"==
7
+ a?g(b):d()}var C=t.indentUnit,j=k.multilineTagIndentFactor||1,r=k.multilineTagIndentPastTag||!0,n=k.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,
8
+ article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,
9
+ allowMissing:!1},w=k.alignCDATA,m,v,q,D,x;return{startState:function(){return{tokenize:i,cc:[],indented:0,startOfLine:!0,tagName:null,tagStart:null,context:null}},token:function(a,b){!b.tagName&&a.sol()&&(b.startOfLine=!0,b.indented=a.indentation());if(a.eatSpace())return null;x=v=m=null;var c=b.tokenize(a,b);b.type=v;if((c||v)&&"comment"!=c){q=b;for(D=a;!(b.cc.pop()||y)(v||c););}b.startOfLine=!1;x&&(c="error"==x?c+" error":x);return c},indent:function(a,b,c){var e=a.context;if(a.tokenize.isInAttribute)return a.stringStartCol+
10
+ 1;if(a.tokenize!=l&&a.tokenize!=i||e&&e.noIndent)return c?c.match(/^(\s*)/)[0].length:0;if(a.tagName)return r?a.tagStart+a.tagName.length+2:a.tagStart+C*j;if(w&&/<!\[CDATA\[/.test(b))return 0;e&&/^<\//.test(b)&&(e=e.prev);for(;e&&!e.startOfLine;)e=e.prev;return e?e.indent+C:0},electricChars:"/",blockCommentStart:"<\!--",blockCommentEnd:"--\>",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");
11
+ CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});
12
+ CodeMirror.defineMode("javascript",function(t,k){var i,l,p,u;function s(f,a){for(var b=!1,c;null!=(c=f.next());){if(c==a&&!b)return!1;b=!b&&"\\"==c}return b}function d(f,a,b){I=f;K=b;return a}function g(f,a){var b=f.next();if('"'==b||"'"==b)return a.tokenize=A(b),a.tokenize(f,a);if("."==b&&f.match(/^\d+(?:[eE][+\-]?\d+)?/))return d("number","number");if("."==b&&f.match(".."))return d("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(b))return d(b);if("="==b&&f.eat(">"))return d("=>");if("0"==b&&f.eat(/x/i))return f.eatWhile(/[\da-f]/i),
13
+ d("number","number");if(/\d/.test(b))return f.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),d("number","number");if("/"==b){if(f.eat("*"))return a.tokenize=y,y(f,a);if(f.eat("/"))return f.skipToEnd(),d("comment","comment");if("operator"==a.lastType||"keyword c"==a.lastType||"sof"==a.lastType||/^[\[{}\(,;:]$/.test(a.lastType))return s(f,"/"),f.eatWhile(/[gimy]/),d("regexp","string-2");f.eatWhile(O);return d("operator",null,f.current())}if("`"==b)return a.tokenize=z,z(f,a);if("#"==b)return f.skipToEnd(),
14
+ d("error","error");if(O.test(b))return f.eatWhile(O),d("operator",null,f.current());f.eatWhile(/[\w\$_]/);var b=f.current(),c=X.propertyIsEnumerable(b)&&X[b];return c&&"."!=a.lastType?d(c.type,c.style,b):d("variable","variable",b)}function A(f){return function(a,b){s(a,f)||(b.tokenize=g);return d("string","string")}}function y(f,a){for(var b=!1,c;c=f.next();){if("/"==c&&b){a.tokenize=g;break}b="*"==c}return d("comment","comment")}function z(f,a){for(var b=!1,c;null!=(c=f.next());){if(!b&&("`"==c||
15
+ "$"==c&&f.eat("{"))){a.tokenize=g;break}b=!b&&"\\"==c}return d("quasi","string-2",f.current())}function h(a,b){b.fatArrowAt&&(b.fatArrowAt=null);var c=a.string.indexOf("=>",a.start);if(!(0>c)){for(var e=0,h=!1,c=c-1;0<=c;--c){var d=a.string.charAt(c),g=ia.indexOf(d);if(0<=g&&3>g){if(!e){++c;break}if(0==--e)break}else if(3<=g&&6>g)++e;else if(/[$\w]/.test(d))h=!0;else if(h&&!e){++c;break}}h&&!e&&(b.fatArrowAt=c)}}function o(a,b,c,e,h,d){this.indented=a;this.column=b;this.type=c;this.prev=h;this.info=
16
+ d;null!=e&&(this.align=e)}function c(){for(var a=arguments.length-1;0<=a;a--)i.push(arguments[a])}function a(){c.apply(null,arguments);return!0}function e(a){function b(c){for(;c;c=c.next)if(c.name==a)return!0;return!1}var c=l;c.context?(p="def",b(c.localVars)||(c.localVars={name:a,next:c.localVars})):!b(c.globalVars)&&k.globalVars&&(c.globalVars={name:a,next:c.globalVars})}function b(){l.context={prev:l.context,vars:l.localVars};l.localVars=ja}function C(){l.localVars=l.context.vars;l.context=l.context.prev}
17
+ function j(a,b){var c=function(){var c=l,e=c.indented;"stat"==c.lexical.type&&(e=c.lexical.indented);c.lexical=new o(e,u.column(),a,null,c.lexical,b)};c.lex=!0;return c}function r(){var a=l;a.lexical.prev&&(")"==a.lexical.type&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function n(f){return function(b){return b==f?a():";"==f?c():a(arguments.callee)}}function w(f,e){return"var"==f?a(j("vardef",e.length),P,n(";"),r):"keyword a"==f?a(j("form"),m,w,r):"keyword b"==f?a(j("form"),w,r):"{"==
18
+ f?a(j("}"),Q,r):";"==f?a():"if"==f?a(j("form"),m,w,r,Y):"function"==f?a(E):"for"==f?a(j("form"),Z,r,w,r):"variable"==f?a(j("stat"),ha):"switch"==f?a(j("form"),m,j("}","switch"),n("{"),Q,r,r):"case"==f?a(m,n(":")):"default"==f?a(n(":")):"catch"==f?a(j("form"),b,n("("),R,n(")"),w,r,C):"module"==f?a(j("form"),b,ka,C,r):"class"==f?a(j("form"),la,ma,r):"export"==f?a(j("form"),na,r):"import"==f?a(j("form"),oa,r):c(j("stat"),m,n(";"),r)}function m(a){return q(a,!1)}function v(a){return q(a,!0)}function q(f,
19
+ e){if(l.fatArrowAt==u.start){var h=e?W:V;if("("==f)return a(b,B(F,")"),n("=>"),h,C);if("variable"==f)return c(b,F,n("=>"),h,C)}h=e?N:J;return $.hasOwnProperty(f)?a(h):"function"==f?a(E):"keyword c"==f?a(e?x:D):"("==f?a(j(")"),D,L,n(")"),r,h):"operator"==f||"spread"==f?a(e?v:m):"["==f?a(j("]"),v,pa,r,h):"{"==f?a(B(aa,"}"),h):a()}function D(a){return a.match(/[;\}\)\],]/)?c():c(m)}function x(a){return a.match(/[;\}\)\],]/)?c():c(v)}function J(f,b){return","==f?a(m):N(f,b,!1)}function N(f,c,e){var h=
20
+ !1==e?J:N,d=!1==e?m:v;if("=>"==c)return a(b,e?W:V,C);if("operator"==f)return/\+\+|--/.test(c)?a(h):"?"==c?a(m,n(":"),d):a(d);if("quasi"==f)return i.push(h),f="${"!=c.slice(c.length-2)?a():a(m,ga),f;if(";"!=f){if("("==f)return a(B(v,")","call"),h);if("."==f)return a(qa,h);if("["==f)return a(j("]"),D,n("]"),r,h)}}function ga(f){if("}"==f)return p="string-2",l.tokenize=z,a()}function V(a){h(u,l);return"{"==a?c(w):c(m)}function W(a){h(u,l);return"{"==a?c(w):c(v)}function ha(f){return":"==f?a(r,w):c(J,
21
+ n(";"),r)}function qa(f){if("variable"==f)return p="property",a()}function aa(f,b){if("variable"==f){if(p="property","get"==b||"set"==b)return a(ra)}else if("number"==f||"string"==f)p=f+" property";else if("["==f)return a(m,n("]"),S);if($.hasOwnProperty(f))return a(S)}function ra(f){if("variable"!=f)return c(S);p="property";return a(E)}function S(f){if(":"==f)return a(v);if("("==f)return c(E)}function B(f,b,e){function h(c){return","==c?(c=l.lexical,"call"==c.info&&(c.pos=(c.pos||0)+1),a(f,h)):c==
22
+ b?a():a(n(b))}return function(d){return d==b?a():!1===e?c(f,h):c(j(b,e),f,h,r)}}function Q(f){return"}"==f?a():c(w,Q)}function ba(f){if(ca&&":"==f)return a(sa)}function sa(f){if("variable"==f)return p="variable-3",a()}function P(){return c(F,ba,T,ta)}function F(f,b){if("variable"==f)return e(b),a();if("["==f)return a(B(F,"]"));if("{"==f)return a(B(ua,"}"))}function ua(f,b){if("variable"==f&&!u.match(/^\s*:/,!1))return e(b),a(T);"variable"==f&&(p="property");return a(n(":"),F,T)}function T(f,b){if("="==
23
+ b)return a(v)}function ta(f){if(","==f)return a(P)}function Y(f,b){if("keyword b"==f&&"else"==b)return a(j("form"),w,r)}function Z(f){if("("==f)return a(j(")"),va,n(")"))}function va(f){return"var"==f?a(P,n(";"),M):";"==f?a(M):"variable"==f?a(wa):c(m,n(";"),M)}function wa(f,b){return"in"==b||"of"==b?(p="keyword",a(m)):a(J,M)}function M(b,e){return";"==b?a(da):"in"==e||"of"==e?(p="keyword",a(m)):c(m,n(";"),da)}function da(b){")"!=b&&a(m)}function E(f,c){if("*"==c)return p="keyword",a(E);if("variable"==
24
+ f)return e(c),a(E);if("("==f)return a(b,B(R,")"),w,C)}function R(b){return"spread"==b?a(R):c(F,ba)}function la(b,c){if("variable"==b)return e(c),a(xa)}function xa(b,c){if("extends"==c)return a(m)}function ma(b){if("{"==b)return a(B(aa,"}"))}function ka(b,c){if("string"==b)return a(w);if("variable"==b)return e(c),a(U)}function na(b,e){return"*"==e?(p="keyword",a(U,n(";"))):"default"==e?(p="keyword",a(m,n(";"))):c(w)}function oa(b){return"string"==b?a():c(ea,U)}function ea(b,c){if("{"==b)return a(B(ea,
25
+ "}"));"variable"==b&&e(c);return a()}function U(b,c){if("from"==c)return p="keyword",a(m)}function pa(b){return"for"==b?c(L):","==b?a(B(v,"]",!1)):c(B(v,"]",!1))}function L(b){if("for"==b)return a(Z,L);if("if"==b)return a(m,L)}var G=t.indentUnit,fa=k.statementIndent,H=k.json,ca=k.typescript,X=function(){function a(b){return{type:b,style:"keyword"}}var b=a("keyword a"),c=a("keyword b"),e=a("keyword c"),h=a("operator"),d={type:"atom",style:"atom"},b={"if":a("if"),"while":b,"with":b,"else":c,"do":c,
26
+ "try":c,"finally":c,"return":e,"break":e,"continue":e,"new":e,"delete":e,"throw":e,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":h,"typeof":h,"instanceof":h,"true":d,"false":d,"null":d,undefined:d,NaN:d,Infinity:d,"this":a("this"),module:a("module"),"class":a("class"),"super":a("atom"),yield:e,"export":a("export"),"import":a("import"),"extends":e};if(ca){var c={type:"variable",
27
+ style:"variable-3"},c={"interface":a("interface"),"extends":a("extends"),constructor:a("constructor"),"public":a("public"),"private":a("private"),"protected":a("protected"),"static":a("static"),string:c,number:c,bool:c,any:c},g;for(g in c)b[g]=c[g]}return b}(),O=/[+\-*&%=<>!?|~^]/,I,K,ia="([{}])",$={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0};i=p=l=null;u=void 0;var ja={name:"this",next:{name:"arguments"}};r.lex=!0;return{startState:function(a){a={tokenize:g,lastType:"sof",cc:[],
28
+ lexical:new o((a||0)-G,0,"block",!1),localVars:k.localVars,context:k.localVars&&{vars:k.localVars},indented:0};k.globalVars&&(a.globalVars=k.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),h(a,b));if(b.tokenize!=y&&a.eatSpace())return null;var c=b.tokenize(a,b);if("comment"==I)return c;b.lastType="operator"==I&&("++"==K||"--"==K)?"incdec":I;var e;a:{var d=I,g=K,o=b.cc;l=b;u=a;p=null;i=o;b.lexical.hasOwnProperty("align")||
29
+ (b.lexical.align=!0);for(;;)if((o.length?o.pop():H?m:w)(d,g)){for(;o.length&&o[o.length-1].lex;)o.pop()();if(p){e=p;break a}if(e="variable"==d)b:{for(e=b.localVars;e;e=e.next)if(e.name==g){e=!0;break b}for(d=b.context;d;d=d.prev)for(e=d.vars;e;e=e.next)if(e.name==g){e=!0;break b}e=void 0}if(e){e="variable-2";break a}e=c;break a}}return e},indent:function(a,b){if(a.tokenize==y)return CodeMirror.Pass;if(a.tokenize!=g)return 0;for(var c=b&&b.charAt(0),e=a.lexical,h=a.cc.length-1;0<=h;--h){var d=a.cc[h];
30
+ if(d==r)e=e.prev;else if(d!=Y)break}"stat"==e.type&&"}"==c&&(e=e.prev);fa&&(")"==e.type&&"stat"==e.prev.type)&&(e=e.prev);h=e.type;d=c==h;return"vardef"==h?e.indented+("operator"==a.lastType||","==a.lastType?e.info+1:0):"form"==h&&"{"==c?e.indented:"form"==h?e.indented+G:"stat"==h?e.indented+("operator"==a.lastType||","==a.lastType?fa||G:0):"switch"==e.info&&!d&&!1!=k.doubleIndentSwitch?e.indented+(/^(?:case|default)\b/.test(b)?G:2*G):e.align?e.column+(d?0:1):e.indented+(d?0:G)},electricChars:":{}",
31
+ blockCommentStart:H?null:"/*",blockCommentEnd:H?null:"*/",lineComment:H?null:"//",fold:"brace",helperType:H?"json":"javascript",jsonMode:H}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});
32
+ CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});
33
+ CodeMirror.defineMode("css",function(t,k){function i(a,e){c=e;return a}function l(a,c){var b=a.next();if(d[b]){var h=d[b](a,c);if(!1!==h)return h}if("@"==b)return a.eatWhile(/[\w\\\-]/),i("def",a.current());if("="==b)i(null,"compare");else{if(("~"==b||"|"==b)&&a.eat("="))return i(null,"compare");if('"'==b||"'"==b)return c.tokenize=p(b),c.tokenize(a,c);if("#"==b)return a.eatWhile(/[\w\\\-]/),i("atom","hash");if("!"==b)return a.match(/^\s*\w*/),i("keyword","important");if(/\d/.test(b)||"."==b&&a.eat(/\d/))return a.eatWhile(/[\w.%]/),
34
+ i("number","unit");if("-"===b){if(/\d/.test(a.peek()))return a.eatWhile(/[\w.%]/),i("number","unit");if(a.match(/^[^-]+-/))return i("meta","meta")}else{if(/[,+>*\/]/.test(b))return i(null,"select-op");if("."==b&&a.match(/^-?[_a-z][_a-z0-9-]*/i))return i("qualifier","qualifier");if(":"==b)return i("operator",b);if(/[;{}\[\]\(\)]/.test(b))return i(null,b);"u"==b&&a.match("rl(")?(a.backUp(1),c.tokenize=u):a.eatWhile(/[\w\\\-]/);return i("property","variable")}}}function p(a,c){return function(b,h){for(var d=
35
+ !1,g;null!=(g=b.next())&&(g!=a||d);)d=!d&&"\\"==g;d||(c&&b.backUp(1),h.tokenize=l);return i("string","string")}}function u(a,c){a.next();c.tokenize=a.match(/\s*[\"\']/,!1)?l:p(")",!0);return i(null,"(")}k.propertyKeywords||(k=CodeMirror.resolveMode("text/css"));var s=t.indentUnit||t.tabSize||2,d=k.hooks||{},g=k.atMediaTypes||{},A=k.atMediaFeatures||{},y=k.propertyKeywords||{},z=k.colorKeywords||{},h=k.valueKeywords||{},o=!!k.allowNested,c=null;return{startState:function(a){return{tokenize:l,baseIndent:a||
36
+ 0,stack:[],lastToken:null}},token:function(a,e){e.tokenize=e.tokenize||l;if(e.tokenize==l&&a.eatSpace())return null;var b=e.tokenize(a,e);b&&"string"!=typeof b&&(b=i(b[0],b[1]));var d=e.stack[e.stack.length-1];if("variable"==b)return"variable-definition"==c&&e.stack.push("propertyValue"),e.lastToken="variable-2";if("property"==b){var j=a.current().toLowerCase();"propertyValue"==d?b=h.hasOwnProperty(j)?"string-2":z.hasOwnProperty(j)?"keyword":"variable-2":"rule"==d?y.hasOwnProperty(j)||(b+=" error"):
37
+ "block"==d?b=y.hasOwnProperty(j)?"property":z.hasOwnProperty(j)?"keyword":h.hasOwnProperty(j)?"string-2":"tag":!d||"@media{"==d?b="tag":"@media"==d?b=g[a.current()]?"attribute":/^(only|not)$/.test(j)?"keyword":"and"==j?"error":A.hasOwnProperty(j)?"error":"attribute error":"@mediaType"==d?g.hasOwnProperty(j)?b="attribute":"and"==j?b="operator":(/^(only|not)$/.test(j),b="error"):"@mediaType("==d?y.hasOwnProperty(j)||(b=g.hasOwnProperty(j)?"error":"and"==j?"operator":/^(only|not)$/.test(j)?"error":b+
38
+ " error"):b="@import"==d?"tag":"error"}else"atom"==b?!d||"@media{"==d||"block"==d?b="builtin":"propertyValue"==d?/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(a.current())||(b+=" error"):b="error":"@media"==d&&"{"==c&&(b="error");if("{"==c)"@media"==d||"@mediaType"==d?e.stack[e.stack.length-1]="@media{":e.stack.push(o?"block":"rule");else if("}"==c)for("interpolation"==d&&(b="operator");e.stack.length&&!(d=e.stack.pop(),-1<d.indexOf("{")||"block"==d||"rule"==d););else if("interpolation"==c)e.stack.push("interpolation");
39
+ else if("@media"==c)e.stack.push("@media");else if("@import"==c)e.stack.push("@import");else if("@media"==d&&/\b(keyword|attribute)\b/.test(b))e.stack[e.stack.length-1]="@mediaType";else if("@mediaType"==d&&","==a.current())e.stack[e.stack.length-1]="@media";else if("("==c)"@media"==d||"@mediaType"==d?(e.stack[e.stack.length-1]="@mediaType",e.stack.push("@mediaType(")):e.stack.push("(");else if(")"==c)for(;e.stack.length&&!(d=e.stack.pop(),-1<d.indexOf("(")););else":"==c&&"property"==e.lastToken?
40
+ e.stack.push("propertyValue"):"propertyValue"==d&&";"==c?e.stack.pop():"@import"==d&&";"==c&&e.stack.pop();return e.lastToken=b},indent:function(a,c){var b=a.stack.length;/^\}/.test(c)&&(b-="propertyValue"==a.stack[b-1]?2:1);return a.baseIndent+b*s},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});
41
+ (function(){function t(d){for(var g={},i=0;i<d.length;++i)g[d[i]]=!0;return g}function k(d,g){for(var i=!1,k;null!=(k=d.next());){if(i&&"/"==k){g.tokenize=null;break}i="*"==k}return["comment","comment"]}var i=t("all aural braille handheld print projection screen tty tv embossed".split(" ")),l=t("width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid".split(" ")),
42
+ p=t("align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backface-visibility background background-attachment background-clip background-color background-image background-origin background-position background-repeat background-size baseline-shift binding bleed bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-feature-settings font-family font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid-cell grid-column grid-column-align grid-column-sizing grid-column-span grid-columns grid-flow grid-row grid-row-align grid-row-sizing grid-row-span grid-rows grid-template hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align justify-content left letter-spacing line-break line-height line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marker-offset marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style max-height max-width min-height min-width move-to nav-down nav-index nav-left nav-right nav-up opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range play-during position presentation-level punctuation-trim quotes region-break-after region-break-before region-break-inside region-fragment rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span shape-inside shape-outside size speak speak-as speak-header speak-numeral speak-punctuation speech-rate stress string-set tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-skip text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-height text-indent text-justify text-outline text-overflow text-shadow text-size-adjust text-space-collapse text-transform text-underline-position text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume white-space widows width word-break word-spacing word-wrap z-index zoom clip-path clip-rule mask enable-background filter flood-color flood-opacity lighting-color stop-color stop-opacity pointer-events color-interpolation color-interpolation-filters color-profile color-rendering fill fill-opacity fill-rule image-rendering marker marker-end marker-mid marker-start shape-rendering stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-rendering baseline-shift dominant-baseline glyph-orientation-horizontal glyph-orientation-vertical kerning text-anchor writing-mode".split(" ")),
43
+ u=t("aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" ")),
44
+ s=t("above absolute activeborder activecaption afar after-white-space ahead alias all all-scroll alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks auto avoid avoid-column avoid-page avoid-region background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word button button-bevel buttonface buttonhighlight buttonshadow buttontext cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse column compact condensed contain content content-box context-menu continuous copy cover crop cross crosshair currentcolor cursive dashed decimal decimal-leading-zero default default-button destination-atop destination-in destination-out destination-over devanagari disc discard document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ew-resize expanded extra-condensed extra-expanded fantasy fast fill fixed flat footnotes forwards from geometricPrecision georgian graytext groove gujarati gurmukhi hand hangul hangul-consonant hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-table inset inside intrinsic invert italic justify kannada katakana katakana-iroha keep-all khmer landscape lao large larger left level lighter line-through linear lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr malayalam match media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize nw-resize nwse-resize oblique octal open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeat-x repeat-y reset reverse rgb rgba ridge right round row-resize rtl run-in running s-resize sans-serif scroll scrollbar se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration semi-condensed semi-expanded separate serif show sidama single skip-white-space slide slider-horizontal slider-vertical sliderthumb-horizontal sliderthumb-vertical slow small small-caps small-caption smaller solid somali source-atop source-in source-out source-over space square square-button start static status-bar stretch stroke sub subpixel-antialiased super sw-resize table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group telugu text text-bottom text-top textarea textfield thai thick thin threeddarkshadow threedface threedhighlight threedlightshadow threedshadow tibetan tigre tigrinya-er tigrinya-er-abegede tigrinya-et tigrinya-et-abegede to top transparent ultra-condensed ultra-expanded underline up upper-alpha upper-armenian upper-greek upper-hexadecimal upper-latin upper-norwegian upper-roman uppercase urdu url vertical vertical-text visible visibleFill visiblePainted visibleStroke visual w-resize wait wave wider window windowframe windowtext x-large x-small xor xx-large xx-small".split(" "));
45
+ CodeMirror.defineMIME("text/css",{atMediaTypes:i,atMediaFeatures:l,propertyKeywords:p,colorKeywords:u,valueKeywords:s,hooks:{"<":function(d,g){function i(d,g){for(var h=0,o;null!=(o=d.next());){if(2<=h&&">"==o){g.tokenize=null;break}h="-"==o?h+1:0}return["comment","comment"]}if(d.eat("!"))return g.tokenize=i,i(d,g)},"/":function(d,g){return d.eat("*")?(g.tokenize=k,k(d,g)):!1}},name:"css"});CodeMirror.defineMIME("text/x-scss",{atMediaTypes:i,atMediaFeatures:l,propertyKeywords:p,colorKeywords:u,valueKeywords:s,
46
+ allowNested:!0,hooks:{":":function(d){return d.match(/\s*{/)?[null,"{"]:!1},$:function(d){d.match(/^[\w-]+/);return":"==d.peek()?["variable","variable-definition"]:["variable","variable"]},",":function(d,g){if("propertyValue"==g.stack[g.stack.length-1]&&d.match(/^ *\$/,!1))return["operator",";"]},"/":function(d,g){return d.eat("/")?(d.skipToEnd(),["comment","comment"]):d.eat("*")?(g.tokenize=k,k(d,g)):["operator","operator"]},"#":function(d){if(d.eat("{"))return["operator","interpolation"];d.eatWhile(/[\w\\\-]/);
47
+ return["atom","hash"]}},name:"css"})})();
48
+ CodeMirror.defineMode("htmlmixed",function(t,k){function i(h,o){var c=o.htmlState.tagName,a=s.token(h,o.htmlState);if("script"==c&&/\btag\b/.test(a)&&">"==h.current()){(c=(c=h.string.slice(Math.max(0,h.pos-100),h.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i))?c[1]:"")&&/[\"\']/.test(c.charAt(0))&&(c=c.slice(1,c.length-1));for(var e=0;e<g.length;++e){var b=g[e];if("string"==typeof b.matches?c==b.matches:b.matches.test(c)){b.mode&&(o.token=p,o.localMode=b.mode,o.localState=b.mode.startState&&
49
+ b.mode.startState(s.indent(o.htmlState,"")));break}}}else"style"==c&&(/\btag\b/.test(a)&&">"==h.current())&&(o.token=u,o.localMode=d,o.localState=d.startState(s.indent(o.htmlState,"")));return a}function l(d,g,c){var a=d.current(),e=a.search(g);-1<e?d.backUp(a.length-e):a.match(/<\/?$/)&&(d.backUp(a.length),d.match(g,!1)||d.match(a));return c}function p(d,g){return d.match(/^<\/\s*script\s*>/i,!1)?(g.token=i,g.localState=g.localMode=null,i(d,g)):l(d,/<\/\s*script\s*>/,g.localMode.token(d,g.localState))}
50
+ function u(h,g){return h.match(/^<\/\s*style\s*>/i,!1)?(g.token=i,g.localState=g.localMode=null,i(h,g)):l(h,/<\/\s*style\s*>/,d.token(h,g.localState))}var s=CodeMirror.getMode(t,{name:"xml",htmlMode:!0}),d=CodeMirror.getMode(t,"css"),g=[],A=k&&k.scriptTypes;g.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(t,"javascript")});if(A)for(var y=0;y<A.length;++y){var z=A[y];g.push({matches:z.matches,mode:z.mode&&CodeMirror.getMode(t,z.mode)})}g.push({matches:/./,
51
+ mode:CodeMirror.getMode(t,"text/plain")});return{startState:function(){var d=s.startState();return{token:i,localMode:null,localState:null,htmlState:d}},copyState:function(d){if(d.localState)var g=CodeMirror.copyState(d.localMode,d.localState);return{token:d.token,localMode:d.localMode,localState:g,htmlState:CodeMirror.copyState(s,d.htmlState)}},token:function(d,g){return g.token(d,g)},indent:function(d,g){return!d.localMode||/^\s*<\//.test(g)?s.indent(d.htmlState,g):d.localMode.indent?d.localMode.indent(d.localState,
52
+ g):CodeMirror.Pass},electricChars:"/{}:",innerMode:function(d){return{state:d.localState||d.htmlState,mode:d.localMode||s}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");
@@ -0,0 +1,21 @@
1
+ CodeMirror.defineMode("javascript",function(ha,o){var B,k,l,r;function T(a,c){for(var e=!1,d;null!=(d=a.next());){if(d==c&&!e)return!1;e=!e&&"\\"==d}return e}function m(a,c,e){z=a;C=e;return c}function A(a,c){var e=a.next();if('"'==e||"'"==e)return c.tokenize=ia(e),c.tokenize(a,c);if("."==e&&a.match(/^\d+(?:[eE][+\-]?\d+)?/))return m("number","number");if("."==e&&a.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(e))return m(e);if("="==e&&a.eat(">"))return m("=>");if("0"==e&&a.eat(/x/i))return a.eatWhile(/[\da-f]/i),
2
+ m("number","number");if(/\d/.test(e))return a.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),m("number","number");if("/"==e){if(a.eat("*"))return c.tokenize=D,D(a,c);if(a.eat("/"))return a.skipToEnd(),m("comment","comment");if("operator"==c.lastType||"keyword c"==c.lastType||"sof"==c.lastType||/^[\[{}\(,;:]$/.test(c.lastType))return T(a,"/"),a.eatWhile(/[gimy]/),m("regexp","string-2");a.eatWhile(I);return m("operator",null,a.current())}if("`"==e)return c.tokenize=J,J(a,c);if("#"==e)return a.skipToEnd(),
3
+ m("error","error");if(I.test(e))return a.eatWhile(I),m("operator",null,a.current());a.eatWhile(/[\w\$_]/);var e=a.current(),d=U.propertyIsEnumerable(e)&&U[e];return d&&"."!=c.lastType?m(d.type,d.style,e):m("variable","variable",e)}function ia(a){return function(c,e){T(c,a)||(e.tokenize=A);return m("string","string")}}function D(a,c){for(var e=!1,d;d=a.next();){if("/"==d&&e){c.tokenize=A;break}e="*"==d}return m("comment","comment")}function J(a,c){for(var e=!1,d;null!=(d=a.next());){if(!e&&("`"==d||
4
+ "$"==d&&a.eat("{"))){c.tokenize=A;break}e=!e&&"\\"==d}return m("quasi","string-2",a.current())}function K(a,c){c.fatArrowAt&&(c.fatArrowAt=null);var e=a.string.indexOf("=>",a.start);if(!(0>e)){for(var d=0,b=!1,e=e-1;0<=e;--e){var f=a.string.charAt(e),g=ja.indexOf(f);if(0<=g&&3>g){if(!d){++e;break}if(0==--d)break}else if(3<=g&&6>g)++d;else if(/[$\w]/.test(f))b=!0;else if(b&&!d){++e;break}}b&&!d&&(c.fatArrowAt=e)}}function V(a,c,e,d,b,f){this.indented=a;this.column=c;this.type=e;this.prev=b;this.info=
5
+ f;null!=d&&(this.align=d)}function f(){for(var a=arguments.length-1;0<=a;a--)B.push(arguments[a])}function b(){f.apply(null,arguments);return!0}function s(a){function c(c){for(;c;c=c.next)if(c.name==a)return!0;return!1}var b=k;b.context?(l="def",c(b.localVars)||(b.localVars={name:a,next:b.localVars})):!c(b.globalVars)&&o.globalVars&&(b.globalVars={name:a,next:b.globalVars})}function t(){k.context={prev:k.context,vars:k.localVars};k.localVars=ka}function u(){k.localVars=k.context.vars;k.context=k.context.prev}
6
+ function j(a,c){var b=function(){var b=k,e=b.indented;"stat"==b.lexical.type&&(e=b.lexical.indented);b.lexical=new V(e,r.column(),a,null,b.lexical,c)};b.lex=!0;return b}function g(){var a=k;a.lexical.prev&&(")"==a.lexical.type&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function h(a){return function(c){return c==a?b():";"==a?f():b(arguments.callee)}}function n(a,c){return"var"==a?b(j("vardef",c.length),L,h(";"),g):"keyword a"==a?b(j("form"),i,n,g):"keyword b"==a?b(j("form"),n,g):"{"==
7
+ a?b(j("}"),M,g):";"==a?b():"if"==a?b(j("form"),i,n,g,W):"function"==a?b(v):"for"==a?b(j("form"),X,g,n,g):"variable"==a?b(j("stat"),la):"switch"==a?b(j("form"),i,j("}","switch"),h("{"),M,g,g):"case"==a?b(i,h(":")):"default"==a?b(h(":")):"catch"==a?b(j("form"),t,h("("),N,h(")"),n,g,u):"module"==a?b(j("form"),t,ma,u,g):"class"==a?b(j("form"),na,oa,g):"export"==a?b(j("form"),pa,g):"import"==a?b(j("form"),qa,g):f(j("stat"),i,h(";"),g)}function i(a){return Y(a,!1)}function p(a){return Y(a,!0)}function Y(a,
8
+ c){if(k.fatArrowAt==r.start){var e=c?Z:$;if("("==a)return b(t,q(w,")"),h("=>"),e,u);if("variable"==a)return f(t,w,h("=>"),e,u)}e=c?O:F;return aa.hasOwnProperty(a)?b(e):"function"==a?b(v):"keyword c"==a?b(c?ra:P):"("==a?b(j(")"),P,G,h(")"),g,e):"operator"==a||"spread"==a?b(c?p:i):"["==a?b(j("]"),p,sa,g,e):"{"==a?b(q(ba,"}"),e):b()}function P(a){return a.match(/[;\}\)\],]/)?f():f(i)}function ra(a){return a.match(/[;\}\)\],]/)?f():f(p)}function F(a,c){return","==a?b(i):O(a,c,!1)}function O(a,c,e){var d=
9
+ !1==e?F:O,E=!1==e?i:p;if("=>"==c)return b(t,e?Z:$,u);if("operator"==a)return/\+\+|--/.test(c)?b(d):"?"==c?b(i,h(":"),E):b(E);if("quasi"==a)return B.push(d),a="${"!=c.slice(c.length-2)?b():b(i,ta),a;if(";"!=a){if("("==a)return b(q(p,")","call"),d);if("."==a)return b(ua,d);if("["==a)return b(j("]"),P,h("]"),g,d)}}function ta(a){if("}"==a)return l="string-2",k.tokenize=J,b()}function $(a){K(r,k);return"{"==a?f(n):f(i)}function Z(a){K(r,k);return"{"==a?f(n):f(p)}function la(a){return":"==a?b(g,n):f(F,
10
+ h(";"),g)}function ua(a){if("variable"==a)return l="property",b()}function ba(a,c){if("variable"==a){if(l="property","get"==c||"set"==c)return b(va)}else if("number"==a||"string"==a)l=a+" property";else if("["==a)return b(i,h("]"),Q);if(aa.hasOwnProperty(a))return b(Q)}function va(a){if("variable"!=a)return f(Q);l="property";return b(v)}function Q(a){if(":"==a)return b(p);if("("==a)return f(v)}function q(a,c,e){function d(e){return","==e?(e=k.lexical,"call"==e.info&&(e.pos=(e.pos||0)+1),b(a,d)):e==
11
+ c?b():b(h(c))}return function(E){return E==c?b():!1===e?f(a,d):f(j(c,e),a,d,g)}}function M(a){return"}"==a?b():f(n,M)}function ca(a){if(da&&":"==a)return b(wa)}function wa(a){if("variable"==a)return l="variable-3",b()}function L(){return f(w,ca,R,xa)}function w(a,c){if("variable"==a)return s(c),b();if("["==a)return b(q(w,"]"));if("{"==a)return b(q(ya,"}"))}function ya(a,c){if("variable"==a&&!r.match(/^\s*:/,!1))return s(c),b(R);"variable"==a&&(l="property");return b(h(":"),w,R)}function R(a,c){if("="==
12
+ c)return b(p)}function xa(a){if(","==a)return b(L)}function W(a,c){if("keyword b"==a&&"else"==c)return b(j("form"),n,g)}function X(a){if("("==a)return b(j(")"),za,h(")"))}function za(a){return"var"==a?b(L,h(";"),H):";"==a?b(H):"variable"==a?b(Aa):f(i,h(";"),H)}function Aa(a,c){return"in"==c||"of"==c?(l="keyword",b(i)):b(F,H)}function H(a,c){return";"==a?b(ea):"in"==c||"of"==c?(l="keyword",b(i)):f(i,h(";"),ea)}function ea(a){")"!=a&&b(i)}function v(a,c){if("*"==c)return l="keyword",b(v);if("variable"==
13
+ a)return s(c),b(v);if("("==a)return b(t,q(N,")"),n,u)}function N(a){return"spread"==a?b(N):f(w,ca)}function na(a,c){if("variable"==a)return s(c),b(Ba)}function Ba(a,c){if("extends"==c)return b(i)}function oa(a){if("{"==a)return b(q(ba,"}"))}function ma(a,c){if("string"==a)return b(n);if("variable"==a)return s(c),b(S)}function pa(a,c){return"*"==c?(l="keyword",b(S,h(";"))):"default"==c?(l="keyword",b(i,h(";"))):f(n)}function qa(a){return"string"==a?b():f(fa,S)}function fa(a,c){if("{"==a)return b(q(fa,
14
+ "}"));"variable"==a&&s(c);return b()}function S(a,c){if("from"==c)return l="keyword",b(i)}function sa(a){return"for"==a?f(G):","==a?b(q(p,"]",!1)):f(q(p,"]",!1))}function G(a){if("for"==a)return b(X,G);if("if"==a)return b(i,G)}var x=ha.indentUnit,ga=o.statementIndent,y=o.json,da=o.typescript,U=function(){function a(a){return{type:a,style:"keyword"}}var c=a("keyword a"),b=a("keyword b"),d=a("keyword c"),f=a("operator"),g={type:"atom",style:"atom"},c={"if":a("if"),"while":c,"with":c,"else":b,"do":b,
15
+ "try":b,"finally":b,"return":d,"break":d,"continue":d,"new":d,"delete":d,"throw":d,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":f,"typeof":f,"instanceof":f,"true":g,"false":g,"null":g,undefined:g,NaN:g,Infinity:g,"this":a("this"),module:a("module"),"class":a("class"),"super":a("atom"),yield:d,"export":a("export"),"import":a("import"),"extends":d};if(da){var b={type:"variable",
16
+ style:"variable-3"},b={"interface":a("interface"),"extends":a("extends"),constructor:a("constructor"),"public":a("public"),"private":a("private"),"protected":a("protected"),"static":a("static"),string:b,number:b,bool:b,any:b},i;for(i in b)c[i]=b[i]}return c}(),I=/[+\-*&%=<>!?|~^]/,z,C,ja="([{}])",aa={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0};B=l=k=null;r=void 0;var ka={name:"this",next:{name:"arguments"}};g.lex=!0;return{startState:function(a){a={tokenize:A,lastType:"sof",cc:[],
17
+ lexical:new V((a||0)-x,0,"block",!1),localVars:o.localVars,context:o.localVars&&{vars:o.localVars},indented:0};o.globalVars&&(a.globalVars=o.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),K(a,b));if(b.tokenize!=D&&a.eatSpace())return null;var e=b.tokenize(a,b);if("comment"==z)return e;b.lastType="operator"==z&&("++"==C||"--"==C)?"incdec":z;var d;a:{var g=z,f=C,h=b.cc;k=b;r=a;l=null;B=h;b.lexical.hasOwnProperty("align")||
18
+ (b.lexical.align=!0);for(;;)if((h.length?h.pop():y?i:n)(g,f)){for(;h.length&&h[h.length-1].lex;)h.pop()();if(l){d=l;break a}if(d="variable"==g)b:{for(d=b.localVars;d;d=d.next)if(d.name==f){d=!0;break b}for(g=b.context;g;g=g.prev)for(d=g.vars;d;d=d.next)if(d.name==f){d=!0;break b}d=void 0}if(d){d="variable-2";break a}d=e;break a}}return d},indent:function(a,b){if(a.tokenize==D)return CodeMirror.Pass;if(a.tokenize!=A)return 0;for(var e=b&&b.charAt(0),d=a.lexical,f=a.cc.length-1;0<=f;--f){var h=a.cc[f];
19
+ if(h==g)d=d.prev;else if(h!=W)break}"stat"==d.type&&"}"==e&&(d=d.prev);ga&&(")"==d.type&&"stat"==d.prev.type)&&(d=d.prev);f=d.type;h=e==f;return"vardef"==f?d.indented+("operator"==a.lastType||","==a.lastType?d.info+1:0):"form"==f&&"{"==e?d.indented:"form"==f?d.indented+x:"stat"==f?d.indented+("operator"==a.lastType||","==a.lastType?ga||x:0):"switch"==d.info&&!h&&!1!=o.doubleIndentSwitch?d.indented+(/^(?:case|default)\b/.test(b)?x:2*x):d.align?d.column+(h?0:1):d.indented+(h?0:x)},electricChars:":{}",
20
+ blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",lineComment:y?null:"//",fold:"brace",helperType:y?"json":"javascript",jsonMode:y}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});
21
+ CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});
@@ -0,0 +1,74 @@
1
+ CodeMirror.defineMode("htmlmixed",function(k,e){function m(i,e){var l=e.htmlState.tagName,b=o.token(i,e.htmlState);if("script"==l&&/\btag\b/.test(b)&&">"==i.current()){(l=(l=i.string.slice(Math.max(0,i.pos-100),i.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i))?l[1]:"")&&/[\"\']/.test(l.charAt(0))&&(l=l.slice(1,l.length-1));for(var x=0;x<c.length;++x){var h=c[x];if("string"==typeof h.matches?l==h.matches:h.matches.test(l)){h.mode&&(e.token=d,e.localMode=h.mode,e.localState=h.mode.startState&&
2
+ h.mode.startState(o.indent(e.htmlState,"")));break}}}else"style"==l&&(/\btag\b/.test(b)&&">"==i.current())&&(e.token=s,e.localMode=a,e.localState=a.startState(o.indent(e.htmlState,"")));return b}function i(a,c,i){var b=a.current(),d=b.search(c);-1<d?a.backUp(b.length-d):b.match(/<\/?$/)&&(a.backUp(b.length),a.match(c,!1)||a.match(b));return i}function d(a,c){return a.match(/^<\/\s*script\s*>/i,!1)?(c.token=m,c.localState=c.localMode=null,m(a,c)):i(a,/<\/\s*script\s*>/,c.localMode.token(a,c.localState))}
3
+ function s(c,d){return c.match(/^<\/\s*style\s*>/i,!1)?(d.token=m,d.localState=d.localMode=null,m(c,d)):i(c,/<\/\s*style\s*>/,a.token(c,d.localState))}var o=CodeMirror.getMode(k,{name:"xml",htmlMode:!0}),a=CodeMirror.getMode(k,"css"),c=[],y=e&&e.scriptTypes;c.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(k,"javascript")});if(y)for(var u=0;u<y.length;++u){var z=y[u];c.push({matches:z.matches,mode:z.mode&&CodeMirror.getMode(k,z.mode)})}c.push({matches:/./,
4
+ mode:CodeMirror.getMode(k,"text/plain")});return{startState:function(){var a=o.startState();return{token:m,localMode:null,localState:null,htmlState:a}},copyState:function(a){if(a.localState)var c=CodeMirror.copyState(a.localMode,a.localState);return{token:a.token,localMode:a.localMode,localState:c,htmlState:CodeMirror.copyState(o,a.htmlState)}},token:function(a,c){return c.token(a,c)},indent:function(a,c){return!a.localMode||/^\s*<\//.test(c)?o.indent(a.htmlState,c):a.localMode.indent?a.localMode.indent(a.localState,
5
+ c):CodeMirror.Pass},electricChars:"/{}:",innerMode:function(a){return{state:a.localState||a.htmlState,mode:a.localMode||o}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");
6
+ CodeMirror.defineMode("xml",function(k,e){function m(b,a){function c(f){a.tokenize=f;return f(b,a)}var f=b.next();if("<"==f){if(b.eat("!"))return b.eat("[")?b.match("CDATA[")?c(s("atom","]]\>")):null:b.match("--")?c(s("comment","--\>")):b.match("DOCTYPE",!0,!0)?(b.eatWhile(/[\w\._\-]/),c(o(1))):null;if(b.eat("?"))return b.eatWhile(/[\w\._\-]/),a.tokenize=s("meta","?>"),"meta";f=b.eat("/");p="";for(var g;g=b.eat(/[^\s\u00a0=<>\"\'\/?]/);)p+=g;if(!p)return"tag error";t=f?"closeTag":"openTag";a.tokenize=
7
+ i;return"tag"}if("&"==f)return(b.eat("#")?b.eat("x")?b.eatWhile(/[a-fA-F\d]/)&&b.eat(";"):b.eatWhile(/[\d]/)&&b.eat(";"):b.eatWhile(/[\w\.\-:]/)&&b.eat(";"))?"atom":"error";b.eatWhile(/[^&<]/);return null}function i(b,a){var c=b.next();if(">"==c||"/"==c&&b.eat(">"))return a.tokenize=m,t=">"==c?"endTag":"selfcloseTag","tag";if("="==c)return t="equals",null;if("<"==c)return a.tokenize=m,(c=a.tokenize(b,a))?c+" error":"error";if(/[\'\"]/.test(c))return a.tokenize=d(c),a.stringStartCol=b.column(),a.tokenize(b,
8
+ a);b.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}function d(b){var a=function(a,c){for(;!a.eol();)if(a.next()==b){c.tokenize=i;break}return"string"};a.isInAttribute=!0;return a}function s(b,a){return function(c,f){for(;!c.eol();){if(c.match(a)){f.tokenize=m;break}c.next()}return b}}function o(b){return function(a,c){for(var f;null!=(f=a.next());){if("<"==f)return c.tokenize=o(b+1),c.tokenize(a,c);if(">"==f)if(1==b){c.tokenize=m;break}else return c.tokenize=o(b-1),c.tokenize(a,c)}return"meta"}}function a(){for(var b=
9
+ arguments.length-1;0<=b;b--)q.cc.push(arguments[b])}function c(){a.apply(null,arguments);return!0}function y(){q.context&&(q.context=q.context.prev)}function u(b){return"openTag"==b?(q.tagName=p,q.tagStart=D.column(),c(l,z(q.startOfLine))):"closeTag"==b?(b=!1,q.context?q.context.tagName!=p&&(g.implicitlyClosed.hasOwnProperty(q.context.tagName.toLowerCase())&&y(),b=!q.context||q.context.tagName!=p):b=!0,b&&(w="error"),c(A(b))):c()}function z(b){return function(a){var f=q.tagName;q.tagName=q.tagStart=
10
+ null;if("selfcloseTag"==a||"endTag"==a&&g.autoSelfClosers.hasOwnProperty(f.toLowerCase()))return B(f.toLowerCase()),c();"endTag"==a&&(B(f.toLowerCase()),a=g.doNotIndent.hasOwnProperty(f)||q.context&&q.context.noIndent,q.context={prev:q.context,tagName:f,indent:q.indented,startOfLine:b,noIndent:a});return c()}}function A(b){return function(a){b&&(w="error");if("endTag"==a)return y(),c();w="error";return c(arguments.callee)}}function B(b){for(var a;q.context;){a=q.context.tagName.toLowerCase();if(!g.contextGrabbers.hasOwnProperty(a)||
11
+ !g.contextGrabbers[a].hasOwnProperty(b))break;y()}}function l(f){if("word"==f)return w="attribute",c(b,l);if("endTag"==f||"selfcloseTag"==f)return a();w="error";return c(l)}function b(f){if("equals"==f)return c(x,l);if(g.allowMissing){if("word"==f)return w="attribute",c(b,l)}else w="error";return"endTag"==f||"selfcloseTag"==f?a():c()}function x(b){if("string"==b)return c(h);if("word"==b&&g.allowUnquoted)return w="string",c();w="error";return"endTag"==b||"selfCloseTag"==b?a():c()}function h(b){return"string"==
12
+ b?c(h):a()}var r=k.indentUnit,f=e.multilineTagIndentFactor||1,n=e.multilineTagIndentPastTag||!0,g=e.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,
13
+ article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,
14
+ allowMissing:!1},v=e.alignCDATA,p,t,q,D,w;return{startState:function(){return{tokenize:m,cc:[],indented:0,startOfLine:!0,tagName:null,tagStart:null,context:null}},token:function(b,a){!a.tagName&&b.sol()&&(a.startOfLine=!0,a.indented=b.indentation());if(b.eatSpace())return null;w=t=p=null;var c=a.tokenize(b,a);a.type=t;if((c||t)&&"comment"!=c){q=a;for(D=b;!(a.cc.pop()||u)(t||c););}a.startOfLine=!1;w&&(c="error"==w?c+" error":w);return c},indent:function(b,a,c){var g=b.context;if(b.tokenize.isInAttribute)return b.stringStartCol+
15
+ 1;if(b.tokenize!=i&&b.tokenize!=m||g&&g.noIndent)return c?c.match(/^(\s*)/)[0].length:0;if(b.tagName)return n?b.tagStart+b.tagName.length+2:b.tagStart+r*f;if(v&&/<!\[CDATA\[/.test(a))return 0;g&&/^<\//.test(a)&&(g=g.prev);for(;g&&!g.startOfLine;)g=g.prev;return g?g.indent+r:0},electricChars:"/",blockCommentStart:"<\!--",blockCommentEnd:"--\>",configuration:e.htmlMode?"html":"xml",helperType:e.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");
16
+ CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});
17
+ CodeMirror.defineMode("javascript",function(k,e){var m,i,d,s;function o(j,b){for(var a=!1,c;null!=(c=j.next());){if(c==b&&!a)return!1;a=!a&&"\\"==c}return a}function a(j,b,a){I=j;L=a;return b}function c(j,b){var c=j.next();if('"'==c||"'"==c)return b.tokenize=y(c),b.tokenize(j,b);if("."==c&&j.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==c&&j.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(c))return a(c);if("="==c&&j.eat(">"))return a("=>");if("0"==c&&j.eat(/x/i))return j.eatWhile(/[\da-f]/i),
18
+ a("number","number");if(/\d/.test(c))return j.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),a("number","number");if("/"==c){if(j.eat("*"))return b.tokenize=u,u(j,b);if(j.eat("/"))return j.skipToEnd(),a("comment","comment");if("operator"==b.lastType||"keyword c"==b.lastType||"sof"==b.lastType||/^[\[{}\(,;:]$/.test(b.lastType))return o(j,"/"),j.eatWhile(/[gimy]/),a("regexp","string-2");j.eatWhile(P);return a("operator",null,j.current())}if("`"==c)return b.tokenize=z,z(j,b);if("#"==c)return j.skipToEnd(),
19
+ a("error","error");if(P.test(c))return j.eatWhile(P),a("operator",null,j.current());j.eatWhile(/[\w\$_]/);var c=j.current(),f=Y.propertyIsEnumerable(c)&&Y[c];return f&&"."!=b.lastType?a(f.type,f.style,c):a("variable","variable",c)}function y(j){return function(b,f){o(b,j)||(f.tokenize=c);return a("string","string")}}function u(j,b){for(var f=!1,g;g=j.next();){if("/"==g&&f){b.tokenize=c;break}f="*"==g}return a("comment","comment")}function z(b,f){for(var g=!1,K;null!=(K=b.next());){if(!g&&("`"==K||
20
+ "$"==K&&b.eat("{"))){f.tokenize=c;break}g=!g&&"\\"==K}return a("quasi","string-2",b.current())}function A(b,a){a.fatArrowAt&&(a.fatArrowAt=null);var c=b.string.indexOf("=>",b.start);if(!(0>c)){for(var f=0,g=!1,c=c-1;0<=c;--c){var h=b.string.charAt(c),d=ja.indexOf(h);if(0<=d&&3>d){if(!f){++c;break}if(0==--f)break}else if(3<=d&&6>d)++f;else if(/[$\w]/.test(h))g=!0;else if(g&&!f){++c;break}}g&&!f&&(a.fatArrowAt=c)}}function B(b,a,c,f,g,h){this.indented=b;this.column=a;this.type=c;this.prev=g;this.info=
21
+ h;null!=f&&(this.align=f)}function l(){for(var b=arguments.length-1;0<=b;b--)m.push(arguments[b])}function b(){l.apply(null,arguments);return!0}function x(b){function a(c){for(;c;c=c.next)if(c.name==b)return!0;return!1}var c=i;c.context?(d="def",a(c.localVars)||(c.localVars={name:b,next:c.localVars})):!a(c.globalVars)&&e.globalVars&&(c.globalVars={name:b,next:c.globalVars})}function h(){i.context={prev:i.context,vars:i.localVars};i.localVars=ka}function r(){i.localVars=i.context.vars;i.context=i.context.prev}
22
+ function f(b,c){var a=function(){var a=i,f=a.indented;"stat"==a.lexical.type&&(f=a.lexical.indented);a.lexical=new B(f,s.column(),b,null,a.lexical,c)};a.lex=!0;return a}function n(){var b=i;b.lexical.prev&&(")"==b.lexical.type&&(b.indented=b.lexical.indented),b.lexical=b.lexical.prev)}function g(j){return function(a){return a==j?b():";"==j?l():b(arguments.callee)}}function v(j,a){return"var"==j?b(f("vardef",a.length),Q,g(";"),n):"keyword a"==j?b(f("form"),p,v,n):"keyword b"==j?b(f("form"),v,n):"{"==
23
+ j?b(f("}"),R,n):";"==j?b():"if"==j?b(f("form"),p,v,n,Z):"function"==j?b(E):"for"==j?b(f("form"),$,n,v,n):"variable"==j?b(f("stat"),ia):"switch"==j?b(f("form"),p,f("}","switch"),g("{"),R,n,n):"case"==j?b(p,g(":")):"default"==j?b(g(":")):"catch"==j?b(f("form"),h,g("("),S,g(")"),v,n,r):"module"==j?b(f("form"),h,la,r,n):"class"==j?b(f("form"),ma,na,n):"export"==j?b(f("form"),oa,n):"import"==j?b(f("form"),pa,n):l(f("stat"),p,g(";"),n)}function p(b){return q(b,!1)}function t(b){return q(b,!0)}function q(j,
24
+ a){if(i.fatArrowAt==s.start){var c=a?X:W;if("("==j)return b(h,C(F,")"),g("=>"),c,r);if("variable"==j)return l(h,F,g("=>"),c,r)}c=a?O:J;return aa.hasOwnProperty(j)?b(c):"function"==j?b(E):"keyword c"==j?b(a?w:D):"("==j?b(f(")"),D,M,g(")"),n,c):"operator"==j||"spread"==j?b(a?t:p):"["==j?b(f("]"),t,qa,n,c):"{"==j?b(C(ba,"}"),c):b()}function D(b){return b.match(/[;\}\)\],]/)?l():l(p)}function w(b){return b.match(/[;\}\)\],]/)?l():l(t)}function J(a,c){return","==a?b(p):O(a,c,!1)}function O(a,c,d){var i=
25
+ !1==d?J:O,e=!1==d?p:t;if("=>"==c)return b(h,d?X:W,r);if("operator"==a)return/\+\+|--/.test(c)?b(i):"?"==c?b(p,g(":"),e):b(e);if("quasi"==a)return m.push(i),a="${"!=c.slice(c.length-2)?b():b(p,ha),a;if(";"!=a){if("("==a)return b(C(t,")","call"),i);if("."==a)return b(ra,i);if("["==a)return b(f("]"),D,g("]"),n,i)}}function ha(a){if("}"==a)return d="string-2",i.tokenize=z,b()}function W(b){A(s,i);return"{"==b?l(v):l(p)}function X(b){A(s,i);return"{"==b?l(v):l(t)}function ia(a){return":"==a?b(n,v):l(J,
26
+ g(";"),n)}function ra(a){if("variable"==a)return d="property",b()}function ba(a,c){if("variable"==a){if(d="property","get"==c||"set"==c)return b(sa)}else if("number"==a||"string"==a)d=a+" property";else if("["==a)return b(p,g("]"),T);if(aa.hasOwnProperty(a))return b(T)}function sa(a){if("variable"!=a)return l(T);d="property";return b(E)}function T(a){if(":"==a)return b(t);if("("==a)return l(E)}function C(a,c,d){function h(f){return","==f?(f=i.lexical,"call"==f.info&&(f.pos=(f.pos||0)+1),b(a,h)):f==
27
+ c?b():b(g(c))}return function(g){return g==c?b():!1===d?l(a,h):l(f(c,d),a,h,n)}}function R(a){return"}"==a?b():l(v,R)}function ca(a){if(da&&":"==a)return b(ta)}function ta(a){if("variable"==a)return d="variable-3",b()}function Q(){return l(F,ca,U,ua)}function F(a,c){if("variable"==a)return x(c),b();if("["==a)return b(C(F,"]"));if("{"==a)return b(C(va,"}"))}function va(a,c){if("variable"==a&&!s.match(/^\s*:/,!1))return x(c),b(U);"variable"==a&&(d="property");return b(g(":"),F,U)}function U(a,c){if("="==
28
+ c)return b(t)}function ua(a){if(","==a)return b(Q)}function Z(a,c){if("keyword b"==a&&"else"==c)return b(f("form"),v,n)}function $(a){if("("==a)return b(f(")"),wa,g(")"))}function wa(a){return"var"==a?b(Q,g(";"),N):";"==a?b(N):"variable"==a?b(xa):l(p,g(";"),N)}function xa(a,c){return"in"==c||"of"==c?(d="keyword",b(p)):b(J,N)}function N(a,c){return";"==a?b(ea):"in"==c||"of"==c?(d="keyword",b(p)):l(p,g(";"),ea)}function ea(a){")"!=a&&b(p)}function E(a,c){if("*"==c)return d="keyword",b(E);if("variable"==
29
+ a)return x(c),b(E);if("("==a)return b(h,C(S,")"),v,r)}function S(a){return"spread"==a?b(S):l(F,ca)}function ma(a,c){if("variable"==a)return x(c),b(ya)}function ya(a,c){if("extends"==c)return b(p)}function na(a){if("{"==a)return b(C(ba,"}"))}function la(a,c){if("string"==a)return b(v);if("variable"==a)return x(c),b(V)}function oa(a,c){return"*"==c?(d="keyword",b(V,g(";"))):"default"==c?(d="keyword",b(p,g(";"))):l(v)}function pa(a){return"string"==a?b():l(fa,V)}function fa(a,c){if("{"==a)return b(C(fa,
30
+ "}"));"variable"==a&&x(c);return b()}function V(a,c){if("from"==c)return d="keyword",b(p)}function qa(a){return"for"==a?l(M):","==a?b(C(t,"]",!1)):l(C(t,"]",!1))}function M(a){if("for"==a)return b($,M);if("if"==a)return b(p,M)}var G=k.indentUnit,ga=e.statementIndent,H=e.json,da=e.typescript,Y=function(){function a(b){return{type:b,style:"keyword"}}var b=a("keyword a"),c=a("keyword b"),f=a("keyword c"),g=a("operator"),d={type:"atom",style:"atom"},b={"if":a("if"),"while":b,"with":b,"else":c,"do":c,
31
+ "try":c,"finally":c,"return":f,"break":f,"continue":f,"new":f,"delete":f,"throw":f,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":g,"typeof":g,"instanceof":g,"true":d,"false":d,"null":d,undefined:d,NaN:d,Infinity:d,"this":a("this"),module:a("module"),"class":a("class"),"super":a("atom"),yield:f,"export":a("export"),"import":a("import"),"extends":f};if(da){var c={type:"variable",
32
+ style:"variable-3"},c={"interface":a("interface"),"extends":a("extends"),constructor:a("constructor"),"public":a("public"),"private":a("private"),"protected":a("protected"),"static":a("static"),string:c,number:c,bool:c,any:c},h;for(h in c)b[h]=c[h]}return b}(),P=/[+\-*&%=<>!?|~^]/,I,L,ja="([{}])",aa={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0};m=d=i=null;s=void 0;var ka={name:"this",next:{name:"arguments"}};n.lex=!0;return{startState:function(a){a={tokenize:c,lastType:"sof",cc:[],
33
+ lexical:new B((a||0)-G,0,"block",!1),localVars:e.localVars,context:e.localVars&&{vars:e.localVars},indented:0};e.globalVars&&(a.globalVars=e.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),A(a,b));if(b.tokenize!=u&&a.eatSpace())return null;var c=b.tokenize(a,b);if("comment"==I)return c;b.lastType="operator"==I&&("++"==L||"--"==L)?"incdec":I;var f;a:{var g=I,h=L,n=b.cc;i=b;s=a;d=null;m=n;b.lexical.hasOwnProperty("align")||
34
+ (b.lexical.align=!0);for(;;)if((n.length?n.pop():H?p:v)(g,h)){for(;n.length&&n[n.length-1].lex;)n.pop()();if(d){f=d;break a}if(f="variable"==g)b:{for(f=b.localVars;f;f=f.next)if(f.name==h){f=!0;break b}for(g=b.context;g;g=g.prev)for(f=g.vars;f;f=f.next)if(f.name==h){f=!0;break b}f=void 0}if(f){f="variable-2";break a}f=c;break a}}return f},indent:function(a,b){if(a.tokenize==u)return CodeMirror.Pass;if(a.tokenize!=c)return 0;for(var f=b&&b.charAt(0),g=a.lexical,h=a.cc.length-1;0<=h;--h){var d=a.cc[h];
35
+ if(d==n)g=g.prev;else if(d!=Z)break}"stat"==g.type&&"}"==f&&(g=g.prev);ga&&(")"==g.type&&"stat"==g.prev.type)&&(g=g.prev);h=g.type;d=f==h;return"vardef"==h?g.indented+("operator"==a.lastType||","==a.lastType?g.info+1:0):"form"==h&&"{"==f?g.indented:"form"==h?g.indented+G:"stat"==h?g.indented+("operator"==a.lastType||","==a.lastType?ga||G:0):"switch"==g.info&&!d&&!1!=e.doubleIndentSwitch?g.indented+(/^(?:case|default)\b/.test(b)?G:2*G):g.align?g.column+(d?0:1):g.indented+(d?0:G)},electricChars:":{}",
36
+ blockCommentStart:H?null:"/*",blockCommentEnd:H?null:"*/",lineComment:H?null:"//",fold:"brace",helperType:H?"json":"javascript",jsonMode:H}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});
37
+ CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});
38
+ CodeMirror.defineMode("css",function(k,e){function m(a,c){l=c;return a}function i(b,c){var h=b.next();if(a[h]){var i=a[h](b,c);if(!1!==i)return i}if("@"==h)return b.eatWhile(/[\w\\\-]/),m("def",b.current());if("="==h)m(null,"compare");else{if(("~"==h||"|"==h)&&b.eat("="))return m(null,"compare");if('"'==h||"'"==h)return c.tokenize=d(h),c.tokenize(b,c);if("#"==h)return b.eatWhile(/[\w\\\-]/),m("atom","hash");if("!"==h)return b.match(/^\s*\w*/),m("keyword","important");if(/\d/.test(h)||"."==h&&b.eat(/\d/))return b.eatWhile(/[\w.%]/),
39
+ m("number","unit");if("-"===h){if(/\d/.test(b.peek()))return b.eatWhile(/[\w.%]/),m("number","unit");if(b.match(/^[^-]+-/))return m("meta","meta")}else{if(/[,+>*\/]/.test(h))return m(null,"select-op");if("."==h&&b.match(/^-?[_a-z][_a-z0-9-]*/i))return m("qualifier","qualifier");if(":"==h)return m("operator",h);if(/[;{}\[\]\(\)]/.test(h))return m(null,h);"u"==h&&b.match("rl(")?(b.backUp(1),c.tokenize=s):b.eatWhile(/[\w\\\-]/);return m("property","variable")}}}function d(a,c){return function(h,d){for(var f=
40
+ !1,n;null!=(n=h.next())&&(n!=a||f);)f=!f&&"\\"==n;f||(c&&h.backUp(1),d.tokenize=i);return m("string","string")}}function s(a,c){a.next();c.tokenize=a.match(/\s*[\"\']/,!1)?i:d(")",!0);return m(null,"(")}e.propertyKeywords||(e=CodeMirror.resolveMode("text/css"));var o=k.indentUnit||k.tabSize||2,a=e.hooks||{},c=e.atMediaTypes||{},y=e.atMediaFeatures||{},u=e.propertyKeywords||{},z=e.colorKeywords||{},A=e.valueKeywords||{},B=!!e.allowNested,l=null;return{startState:function(a){return{tokenize:i,baseIndent:a||
41
+ 0,stack:[],lastToken:null}},token:function(a,d){d.tokenize=d.tokenize||i;if(d.tokenize==i&&a.eatSpace())return null;var h=d.tokenize(a,d);h&&"string"!=typeof h&&(h=m(h[0],h[1]));var e=d.stack[d.stack.length-1];if("variable"==h)return"variable-definition"==l&&d.stack.push("propertyValue"),d.lastToken="variable-2";if("property"==h){var f=a.current().toLowerCase();"propertyValue"==e?h=A.hasOwnProperty(f)?"string-2":z.hasOwnProperty(f)?"keyword":"variable-2":"rule"==e?u.hasOwnProperty(f)||(h+=" error"):
42
+ "block"==e?h=u.hasOwnProperty(f)?"property":z.hasOwnProperty(f)?"keyword":A.hasOwnProperty(f)?"string-2":"tag":!e||"@media{"==e?h="tag":"@media"==e?h=c[a.current()]?"attribute":/^(only|not)$/.test(f)?"keyword":"and"==f?"error":y.hasOwnProperty(f)?"error":"attribute error":"@mediaType"==e?c.hasOwnProperty(f)?h="attribute":"and"==f?h="operator":(/^(only|not)$/.test(f),h="error"):"@mediaType("==e?u.hasOwnProperty(f)||(h=c.hasOwnProperty(f)?"error":"and"==f?"operator":/^(only|not)$/.test(f)?"error":h+
43
+ " error"):h="@import"==e?"tag":"error"}else"atom"==h?!e||"@media{"==e||"block"==e?h="builtin":"propertyValue"==e?/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(a.current())||(h+=" error"):h="error":"@media"==e&&"{"==l&&(h="error");if("{"==l)"@media"==e||"@mediaType"==e?d.stack[d.stack.length-1]="@media{":d.stack.push(B?"block":"rule");else if("}"==l)for("interpolation"==e&&(h="operator");d.stack.length&&!(e=d.stack.pop(),-1<e.indexOf("{")||"block"==e||"rule"==e););else if("interpolation"==l)d.stack.push("interpolation");
44
+ else if("@media"==l)d.stack.push("@media");else if("@import"==l)d.stack.push("@import");else if("@media"==e&&/\b(keyword|attribute)\b/.test(h))d.stack[d.stack.length-1]="@mediaType";else if("@mediaType"==e&&","==a.current())d.stack[d.stack.length-1]="@media";else if("("==l)"@media"==e||"@mediaType"==e?(d.stack[d.stack.length-1]="@mediaType",d.stack.push("@mediaType(")):d.stack.push("(");else if(")"==l)for(;d.stack.length&&!(e=d.stack.pop(),-1<e.indexOf("(")););else":"==l&&"property"==d.lastToken?
45
+ d.stack.push("propertyValue"):"propertyValue"==e&&";"==l?d.stack.pop():"@import"==e&&";"==l&&d.stack.pop();return d.lastToken=h},indent:function(a,c){var d=a.stack.length;/^\}/.test(c)&&(d-="propertyValue"==a.stack[d-1]?2:1);return a.baseIndent+d*o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});
46
+ (function(){function k(a){for(var c={},d=0;d<a.length;++d)c[a[d]]=!0;return c}function e(a,c){for(var d=!1,e;null!=(e=a.next());){if(d&&"/"==e){c.tokenize=null;break}d="*"==e}return["comment","comment"]}var m=k("all aural braille handheld print projection screen tty tv embossed".split(" ")),i=k("width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid".split(" ")),
47
+ d=k("align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backface-visibility background background-attachment background-clip background-color background-image background-origin background-position background-repeat background-size baseline-shift binding bleed bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-feature-settings font-family font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid-cell grid-column grid-column-align grid-column-sizing grid-column-span grid-columns grid-flow grid-row grid-row-align grid-row-sizing grid-row-span grid-rows grid-template hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align justify-content left letter-spacing line-break line-height line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marker-offset marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style max-height max-width min-height min-width move-to nav-down nav-index nav-left nav-right nav-up opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range play-during position presentation-level punctuation-trim quotes region-break-after region-break-before region-break-inside region-fragment rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span shape-inside shape-outside size speak speak-as speak-header speak-numeral speak-punctuation speech-rate stress string-set tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-skip text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-height text-indent text-justify text-outline text-overflow text-shadow text-size-adjust text-space-collapse text-transform text-underline-position text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume white-space widows width word-break word-spacing word-wrap z-index zoom clip-path clip-rule mask enable-background filter flood-color flood-opacity lighting-color stop-color stop-opacity pointer-events color-interpolation color-interpolation-filters color-profile color-rendering fill fill-opacity fill-rule image-rendering marker marker-end marker-mid marker-start shape-rendering stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-rendering baseline-shift dominant-baseline glyph-orientation-horizontal glyph-orientation-vertical kerning text-anchor writing-mode".split(" ")),
48
+ s=k("aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" ")),
49
+ o=k("above absolute activeborder activecaption afar after-white-space ahead alias all all-scroll alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks auto avoid avoid-column avoid-page avoid-region background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word button button-bevel buttonface buttonhighlight buttonshadow buttontext cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse column compact condensed contain content content-box context-menu continuous copy cover crop cross crosshair currentcolor cursive dashed decimal decimal-leading-zero default default-button destination-atop destination-in destination-out destination-over devanagari disc discard document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ew-resize expanded extra-condensed extra-expanded fantasy fast fill fixed flat footnotes forwards from geometricPrecision georgian graytext groove gujarati gurmukhi hand hangul hangul-consonant hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-table inset inside intrinsic invert italic justify kannada katakana katakana-iroha keep-all khmer landscape lao large larger left level lighter line-through linear lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr malayalam match media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize nw-resize nwse-resize oblique octal open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeat-x repeat-y reset reverse rgb rgba ridge right round row-resize rtl run-in running s-resize sans-serif scroll scrollbar se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration semi-condensed semi-expanded separate serif show sidama single skip-white-space slide slider-horizontal slider-vertical sliderthumb-horizontal sliderthumb-vertical slow small small-caps small-caption smaller solid somali source-atop source-in source-out source-over space square square-button start static status-bar stretch stroke sub subpixel-antialiased super sw-resize table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group telugu text text-bottom text-top textarea textfield thai thick thin threeddarkshadow threedface threedhighlight threedlightshadow threedshadow tibetan tigre tigrinya-er tigrinya-er-abegede tigrinya-et tigrinya-et-abegede to top transparent ultra-condensed ultra-expanded underline up upper-alpha upper-armenian upper-greek upper-hexadecimal upper-latin upper-norwegian upper-roman uppercase urdu url vertical vertical-text visible visibleFill visiblePainted visibleStroke visual w-resize wait wave wider window windowframe windowtext x-large x-small xor xx-large xx-small".split(" "));
50
+ CodeMirror.defineMIME("text/css",{atMediaTypes:m,atMediaFeatures:i,propertyKeywords:d,colorKeywords:s,valueKeywords:o,hooks:{"<":function(a,c){function d(a,c){for(var e=0,i;null!=(i=a.next());){if(2<=e&&">"==i){c.tokenize=null;break}e="-"==i?e+1:0}return["comment","comment"]}if(a.eat("!"))return c.tokenize=d,d(a,c)},"/":function(a,c){return a.eat("*")?(c.tokenize=e,e(a,c)):!1}},name:"css"});CodeMirror.defineMIME("text/x-scss",{atMediaTypes:m,atMediaFeatures:i,propertyKeywords:d,colorKeywords:s,valueKeywords:o,
51
+ allowNested:!0,hooks:{":":function(a){return a.match(/\s*{/)?[null,"{"]:!1},$:function(a){a.match(/^[\w-]+/);return":"==a.peek()?["variable","variable-definition"]:["variable","variable"]},",":function(a,c){if("propertyValue"==c.stack[c.stack.length-1]&&a.match(/^ *\$/,!1))return["operator",";"]},"/":function(a,c){return a.eat("/")?(a.skipToEnd(),["comment","comment"]):a.eat("*")?(c.tokenize=e,e(a,c)):["operator","operator"]},"#":function(a){if(a.eat("{"))return["operator","interpolation"];a.eatWhile(/[\w\\\-]/);
52
+ return["atom","hash"]}},name:"css"})})();
53
+ CodeMirror.defineMode("clike",function(k,e){function m(a,c){var g=a.next();if(b[g]){var e=b[g](a,c);if(!1!==e)return e}if('"'==g||"'"==g)return c.tokenize=i(g),c.tokenize(a,c);if(/[\[\]{}\(\),;\:\.]/.test(g))return r=g,null;if(/\d/.test(g))return a.eatWhile(/[\w\.]/),"number";if("/"==g){if(a.eat("*"))return c.tokenize=d,d(a,c);if(a.eat("/"))return a.skipToEnd(),"comment"}if(h.test(g))return a.eatWhile(h),"operator";a.eatWhile(/[\w\$_]/);g=a.current();return z.propertyIsEnumerable(g)?(B.propertyIsEnumerable(g)&&
54
+ (r="newstatement"),"keyword"):A.propertyIsEnumerable(g)?(B.propertyIsEnumerable(g)&&(r="newstatement"),"builtin"):l.propertyIsEnumerable(g)?"atom":"variable"}function i(a){return function(c,b){for(var d=!1,e,h=!1;null!=(e=c.next());){if(e==a&&!d){h=!0;break}d=!d&&"\\"==e}if(h||!d&&!x)b.tokenize=null;return"string"}}function d(a,c){for(var b=!1,d;d=a.next();){if("/"==d&&b){c.tokenize=null;break}b="*"==d}return"comment"}function s(a,c,b,d,e){this.indented=a;this.column=c;this.type=b;this.align=d;this.prev=
55
+ e}function o(a,c,b){var d=a.indented;a.context&&"statement"==a.context.type&&(d=a.context.indented);return a.context=new s(d,c,b,null,a.context)}function a(a){var c=a.context.type;if(")"==c||"]"==c||"}"==c)a.indented=a.context.indented;return a.context=a.context.prev}var c=k.indentUnit,y=e.statementIndentUnit||c,u=e.dontAlignCalls,z=e.keywords||{},A=e.builtin||{},B=e.blockKeywords||{},l=e.atoms||{},b=e.hooks||{},x=e.multiLineStrings,h=/[+\-*&%=<>!?|\/]/,r;return{startState:function(a){return{tokenize:null,
56
+ context:new s((a||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(c,b){var d=b.context;c.sol()&&(null==d.align&&(d.align=!1),b.indented=c.indentation(),b.startOfLine=!0);if(c.eatSpace())return null;r=null;var e=(b.tokenize||m)(c,b);if("comment"==e||"meta"==e)return e;null==d.align&&(d.align=!0);if((";"==r||":"==r||","==r)&&"statement"==d.type)a(b);else if("{"==r)o(b,c.column(),"}");else if("["==r)o(b,c.column(),"]");else if("("==r)o(b,c.column(),")");else if("}"==r){for(;"statement"==
57
+ d.type;)d=a(b);for("}"==d.type&&(d=a(b));"statement"==d.type;)d=a(b)}else r==d.type?a(b):(("}"==d.type||"top"==d.type)&&";"!=r||"statement"==d.type&&"newstatement"==r)&&o(b,c.column(),"statement");b.startOfLine=!1;return e},indent:function(a,b){if(a.tokenize!=m&&null!=a.tokenize)return CodeMirror.Pass;var d=a.context,e=b&&b.charAt(0);"statement"==d.type&&"}"==e&&(d=d.prev);var h=e==d.type;return"statement"==d.type?d.indented+("{"==e?0:y):d.align&&(!u||")"!=d.type)?d.column+(h?0:1):")"==d.type&&!h?
58
+ d.indented+y:d.indented+(h?0:c)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});
59
+ (function(){function k(d){for(var e={},d=d.split(" "),i=0;i<d.length;++i)e[d[i]]=!0;return e}function e(d,i){if(!i.startOfLine)return!1;for(;;)if(d.skipTo("\\")){if(d.next(),d.eol()){i.tokenize=e;break}}else{d.skipToEnd();i.tokenize=null;break}return"meta"}function m(d,e){for(var i;null!=(i=d.next());)if('"'==i&&!d.eat('"')){e.tokenize=null;break}return"string"}function i(d,e){for(var i=0;i<d.length;++i)CodeMirror.defineMIME(d[i],e)}i(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:k("auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile"),
60
+ blockKeywords:k("case do else for if switch while struct"),atoms:k("null"),hooks:{"#":e}});i(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:k("auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile asm dynamic_cast namespace reinterpret_cast try bool explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected wchar_t"),
61
+ blockKeywords:k("catch class do else finally for if struct switch try while"),atoms:k("true false null"),hooks:{"#":e}});CodeMirror.defineMIME("text/x-java",{name:"clike",keywords:k("abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while"),
62
+ blockKeywords:k("catch class do else finally for if switch try while"),atoms:k("true false null"),hooks:{"@":function(d){d.eatWhile(/[\w\$_]/);return"meta"}}});CodeMirror.defineMIME("text/x-csharp",{name:"clike",keywords:k("abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
63
+ blockKeywords:k("catch class do else finally for foreach if struct switch try while"),builtin:k("Boolean Byte Char DateTime DateTimeOffset Decimal Double Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),atoms:k("true false null"),hooks:{"@":function(d,e){if(d.eat('"'))return e.tokenize=m,m(d,e);d.eatWhile(/[\w\$_]/);return"meta"}}});CodeMirror.defineMIME("text/x-scala",{name:"clike",
64
+ keywords:k("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try trye type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),
65
+ blockKeywords:k("catch class do else finally for forSome if match switch try while"),atoms:k("true false null"),hooks:{"@":function(d){d.eatWhile(/[\w\$_]/);return"meta"}}});i(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:k("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadowconst attribute uniform varying break continue discard return for while do if else struct in out inout"),
66
+ blockKeywords:k("for while do if else struct"),builtin:k("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smootstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
67
+ atoms:k("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragColor gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
68
+ hooks:{"#":e}})})();
69
+ (function(){function k(e){for(var d={},e=e.split(" "),k=0;k<e.length;++k)d[e[k]]=!0;return d}function e(e){return function(d,k){d.match(e)?k.tokenize=null:d.skipToEnd();return"string"}}var m={name:"clike",keywords:k("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),blockKeywords:k("catch do else elseif for foreach if switch try while finally"),
70
+ atoms:k("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:k("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
71
+ multiLineStrings:!0,hooks:{$:function(e){e.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(i,d){return i.match(/<</)?(i.eatWhile(/[\w\.]/),d.tokenize=e(i.current().slice(3)),d.tokenize(i,d)):!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1}}};CodeMirror.defineMode("php",function(e,d){var k=CodeMirror.getMode(e,"text/html"),o=CodeMirror.getMode(e,m);return{startState:function(){var a=
72
+ CodeMirror.startState(k),c=CodeMirror.startState(o);return{html:a,php:c,curMode:d.startOpen?o:k,curState:d.startOpen?c:a,pending:null}},copyState:function(a){var c=CodeMirror.copyState(k,a.html),d=CodeMirror.copyState(o,a.php);return{html:c,php:d,curMode:a.curMode,curState:a.curMode==k?c:d,pending:a.pending}},token:function(a,c){var d=c.curMode==o;a.sol()&&'"'!=c.pending&&(c.pending=null);if(d)return d&&null==c.php.tokenize&&a.match("?>")?(c.curMode=k,c.curState=c.html,"meta"):o.token(a,c.curState);
73
+ if(a.match(/^<\?\w*/))return c.curMode=o,c.curState=c.php,"meta";if('"'==c.pending){for(;!a.eol()&&'"'!=a.next(););d="string"}else c.pending&&a.pos<c.pending.end?(a.pos=c.pending.end,d=c.pending.style):d=k.token(a,c.curState);c.pending=null;var e=a.current(),i=e.search(/<\?/);-1!=i&&(c.pending="string"==d&&/\"$/.test(e)&&!/\?>/.test(e)?'"':{end:a.pos,style:d},a.backUp(e.length-i));return d},indent:function(a,c){return a.curMode!=o&&/^\s*<\//.test(c)||a.curMode==o&&/^\?>/.test(c)?k.indent(a.html,c):
74
+ a.curMode.indent(a.curState,c)},electricChars:"/{}:",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(a){return{state:a.curState,mode:a.curMode}}}},"htmlmixed","clike");CodeMirror.defineMIME("application/x-httpd-php","php");CodeMirror.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0});CodeMirror.defineMIME("text/x-php",m)})();
@@ -0,0 +1,34 @@
1
+ /*
2
+
3
+ Name: 3024 day
4
+ Author: Jan T. Sott (http://github.com/idleberg)
5
+
6
+ CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7
+ Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8
+
9
+ */
10
+
11
+ .cm-s-3024-day.CodeMirror {background: #f7f7f7; color: #3a3432;}
12
+ .cm-s-3024-day div.CodeMirror-selected {background: #d6d5d4 !important;}
13
+ .cm-s-3024-day .CodeMirror-gutters {background: #f7f7f7; border-right: 0px;}
14
+ .cm-s-3024-day .CodeMirror-linenumber {color: #807d7c;}
15
+ .cm-s-3024-day .CodeMirror-cursor {border-left: 1px solid #5c5855 !important;}
16
+
17
+ .cm-s-3024-day span.cm-comment {color: #cdab53;}
18
+ .cm-s-3024-day span.cm-atom {color: #a16a94;}
19
+ .cm-s-3024-day span.cm-number {color: #a16a94;}
20
+
21
+ .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute {color: #01a252;}
22
+ .cm-s-3024-day span.cm-keyword {color: #db2d20;}
23
+ .cm-s-3024-day span.cm-string {color: #fded02;}
24
+
25
+ .cm-s-3024-day span.cm-variable {color: #01a252;}
26
+ .cm-s-3024-day span.cm-variable-2 {color: #01a0e4;}
27
+ .cm-s-3024-day span.cm-def {color: #e8bbd0;}
28
+ .cm-s-3024-day span.cm-bracket {color: #3a3432;}
29
+ .cm-s-3024-day span.cm-tag {color: #db2d20;}
30
+ .cm-s-3024-day span.cm-link {color: #a16a94;}
31
+ .cm-s-3024-day span.cm-error {background: #db2d20; color: #5c5855;}
32
+
33
+ .cm-s-3024-day .CodeMirror-activeline-background {background: #e8f2ff !important;}
34
+ .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}