mdbe 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (688) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +53 -0
  4. data/app.rb +182 -0
  5. data/bin/mdbe +5 -0
  6. data/config.ru +2 -0
  7. data/environment.rb +8 -0
  8. data/lib/mdbe.rb +39 -0
  9. data/lib/mdbe/action_controller_debug_patch.rb +12 -0
  10. data/lib/mdbe/code_evaluation.rb +46 -0
  11. data/lib/mdbe/database_views.rb +24 -0
  12. data/lib/mdbe/database_views/abstract_dictionary.rb +69 -0
  13. data/lib/mdbe/database_views/abstract_exception.rb +25 -0
  14. data/lib/mdbe/database_views/array.rb +28 -0
  15. data/lib/mdbe/database_views/boolean.rb +12 -0
  16. data/lib/mdbe/database_views/class.rb +46 -0
  17. data/lib/mdbe/database_views/exception.rb +3 -0
  18. data/lib/mdbe/database_views/execblock.rb +5 -0
  19. data/lib/mdbe/database_views/fixnum.rb +5 -0
  20. data/lib/mdbe/database_views/float.rb +5 -0
  21. data/lib/mdbe/database_views/globals.rb +2 -0
  22. data/lib/mdbe/database_views/gsnmethod.rb +29 -0
  23. data/lib/mdbe/database_views/hash.rb +5 -0
  24. data/lib/mdbe/database_views/maglev_record.rb +42 -0
  25. data/lib/mdbe/database_views/module.rb +103 -0
  26. data/lib/mdbe/database_views/nilclass.rb +5 -0
  27. data/lib/mdbe/database_views/object.rb +80 -0
  28. data/lib/mdbe/database_views/proc.rb +3 -0
  29. data/lib/mdbe/database_views/repository.rb +3 -0
  30. data/lib/mdbe/database_views/ruby_workspace.rb +5 -0
  31. data/lib/mdbe/database_views/smalltalk_classes.rb +34 -0
  32. data/lib/mdbe/database_views/smalltalk_classes.st +60 -0
  33. data/lib/mdbe/database_views/string.rb +31 -0
  34. data/lib/mdbe/database_views/symbol.rb +32 -0
  35. data/lib/mdbe/database_views/system.rb +61 -0
  36. data/lib/mdbe/database_views/thread.rb +101 -0
  37. data/lib/mdbe/debug_server.rb +22 -0
  38. data/lib/mdbe/halt.rb +42 -0
  39. data/lib/mdbe/ruby_workspace.rb +29 -0
  40. data/lib/mdbe/version.rb +3 -0
  41. data/lib/tasks/maglev-database-explorer_tasks.rake +4 -0
  42. data/public/LICENSE +35 -0
  43. data/public/amber/CHANGELOG +65 -0
  44. data/public/amber/LICENSE +22 -0
  45. data/public/amber/Makefile +53 -0
  46. data/public/amber/README.md +30 -0
  47. data/public/amber/bin/amber +3 -0
  48. data/public/amber/bin/amberc +352 -0
  49. data/public/amber/bin/nodecompile.js +33 -0
  50. data/public/amber/bin/server +3 -0
  51. data/public/amber/bin/server.bat +3 -0
  52. data/public/amber/css/amber-normalize.css +468 -0
  53. data/public/amber/css/amber-normalize.less +501 -0
  54. data/public/amber/css/amber.css +539 -0
  55. data/public/amber/css/documentation.css +84 -0
  56. data/public/amber/css/profstef.css +75 -0
  57. data/public/amber/css/style.css +313 -0
  58. data/public/amber/documentation.html +37 -0
  59. data/public/amber/examples/Makefile +23 -0
  60. data/public/amber/examples/README +4 -0
  61. data/public/amber/examples/android/helloamber/AndroidManifest.xml +19 -0
  62. data/public/amber/examples/android/helloamber/HelloAmber.st +13 -0
  63. data/public/amber/examples/android/helloamber/Makefile +56 -0
  64. data/public/amber/examples/android/helloamber/README.md +80 -0
  65. data/public/amber/examples/android/helloamber/ant.properties +17 -0
  66. data/public/amber/examples/android/helloamber/assets/index.html +15 -0
  67. data/public/amber/examples/android/helloamber/assets/jquery-1.7.2.min.js +4 -0
  68. data/public/amber/examples/android/helloamber/build.xml +83 -0
  69. data/public/amber/examples/android/helloamber/local.properties +10 -0
  70. data/public/amber/examples/android/helloamber/proguard-project.txt +20 -0
  71. data/public/amber/examples/android/helloamber/project.properties +14 -0
  72. data/public/amber/examples/android/helloamber/res/layout/main.xml +6 -0
  73. data/public/amber/examples/android/helloamber/res/values/strings.xml +4 -0
  74. data/public/amber/examples/android/helloamber/src/org/amberlang/android/helloamber/HelloAmber.java +59 -0
  75. data/public/amber/examples/myproject/index.html +16 -0
  76. data/public/amber/examples/nodejs/README +9 -0
  77. data/public/amber/examples/nodejs/benchfib/Benchfib.st +124 -0
  78. data/public/amber/examples/nodejs/benchfib/Makefile +8 -0
  79. data/public/amber/examples/nodejs/benchfib/benchfib +1 -0
  80. data/public/amber/examples/nodejs/hello/Hello.st +9 -0
  81. data/public/amber/examples/nodejs/hello/Makefile +8 -0
  82. data/public/amber/examples/nodejs/hello/README +13 -0
  83. data/public/amber/examples/nodejs/hello/hello +1 -0
  84. data/public/amber/examples/nodejs/meta/Makefile +8 -0
  85. data/public/amber/examples/nodejs/meta/MyScript.st +27 -0
  86. data/public/amber/examples/nodejs/meta/meta +1 -0
  87. data/public/amber/examples/nodejs/pystone/Makefile +8 -0
  88. data/public/amber/examples/nodejs/pystone/Pystone.st +306 -0
  89. data/public/amber/examples/nodejs/pystone/pystone +1 -0
  90. data/public/amber/examples/nodejs/trivialserver/Makefile +8 -0
  91. data/public/amber/examples/nodejs/trivialserver/TrivialServer.st +51 -0
  92. data/public/amber/examples/nodejs/trivialserver/trivial +1 -0
  93. data/public/amber/examples/presentation/esug2011/images/asterix.png +0 -0
  94. data/public/amber/examples/presentation/esug2011/images/background_box.png +0 -0
  95. data/public/amber/examples/presentation/esug2011/images/background_header.png +0 -0
  96. data/public/amber/examples/presentation/esug2011/images/balloon.jpg +0 -0
  97. data/public/amber/examples/presentation/esug2011/images/balloon_header.png +0 -0
  98. data/public/amber/examples/presentation/esug2011/images/devices.jpg +0 -0
  99. data/public/amber/examples/presentation/esug2011/images/enyo.png +0 -0
  100. data/public/amber/examples/presentation/esug2011/images/ide_star_wars.png +0 -0
  101. data/public/amber/examples/presentation/esug2011/images/nodejs.png +0 -0
  102. data/public/amber/examples/presentation/esug2011/images/terminal.png +0 -0
  103. data/public/amber/examples/presentation/esug2011/images/webos.png +0 -0
  104. data/public/amber/examples/presentation/fosdem2012/images/amber.png +0 -0
  105. data/public/amber/examples/presentation/fosdem2012/images/ambrhino.jpg +0 -0
  106. data/public/amber/examples/presentation/fosdem2012/images/nodejs.png +0 -0
  107. data/public/amber/examples/presentation/fosdem2012/images/pharo.png +0 -0
  108. data/public/amber/examples/presentation/fosdem2012/images/php.gif +0 -0
  109. data/public/amber/examples/presentation/fosdem2012/images/rails.png +0 -0
  110. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-next.png +0 -0
  111. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-prev.png +0 -0
  112. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/closedhand.cur +0 -0
  113. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/openhand.cur +0 -0
  114. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-back.png +0 -0
  115. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-forward.png +0 -0
  116. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow.png +0 -0
  117. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.css +100 -0
  118. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.js +1232 -0
  119. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js +13 -0
  120. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.easing.1.3.js +38 -0
  121. data/public/amber/examples/presentation/index.html +17 -0
  122. data/public/amber/examples/presentation/js/Presentation.deploy.js +1922 -0
  123. data/public/amber/examples/presentation/js/Presentation.js +2712 -0
  124. data/public/amber/examples/presentation/st/Presentation.st +1996 -0
  125. data/public/amber/examples/trysmalltalk/index.html +18 -0
  126. data/public/amber/examples/trysmalltalk/js/TrySmalltalk.deploy.js +837 -0
  127. data/public/amber/examples/trysmalltalk/js/TrySmalltalk.js +1206 -0
  128. data/public/amber/examples/trysmalltalk/st/TrySmalltalk.st +964 -0
  129. data/public/amber/examples/twitterwall/css/twitterwall.css +19 -0
  130. data/public/amber/examples/twitterwall/index.html +35 -0
  131. data/public/amber/examples/twitterwall/js/TwitterWall.deploy.js +116 -0
  132. data/public/amber/examples/twitterwall/js/TwitterWall.js +146 -0
  133. data/public/amber/examples/twitterwall/st/TwitterWall.st +91 -0
  134. data/public/amber/examples/webos/README +11 -0
  135. data/public/amber/examples/webos/eris/DuckQwaq.wav +0 -0
  136. data/public/amber/examples/webos/eris/EnyoAmber.st +36 -0
  137. data/public/amber/examples/webos/eris/Eris.css +0 -0
  138. data/public/amber/examples/webos/eris/Eris.st +86 -0
  139. data/public/amber/examples/webos/eris/Makefile +37 -0
  140. data/public/amber/examples/webos/eris/README +3 -0
  141. data/public/amber/examples/webos/eris/appinfo.json +10 -0
  142. data/public/amber/examples/webos/eris/index.html +12 -0
  143. data/public/amber/examples/webos/helloamber/EnyoAmber.st +36 -0
  144. data/public/amber/examples/webos/helloamber/HelloAmber.st +86 -0
  145. data/public/amber/examples/webos/helloamber/Makefile +38 -0
  146. data/public/amber/examples/webos/helloamber/README +5 -0
  147. data/public/amber/examples/webos/helloamber/appinfo.json +10 -0
  148. data/public/amber/examples/webos/helloamber/index.html +12 -0
  149. data/public/amber/favicon.ico +0 -0
  150. data/public/amber/images/amber.png +0 -0
  151. data/public/amber/images/amber.svg +706 -0
  152. data/public/amber/images/amber_small.png +0 -0
  153. data/public/amber/images/off.amber.png +0 -0
  154. data/public/amber/images/off.png +0 -0
  155. data/public/amber/images/offHover.amber.png +0 -0
  156. data/public/amber/images/offHover.png +0 -0
  157. data/public/amber/images/presentation.png +0 -0
  158. data/public/amber/images/profstef.png +0 -0
  159. data/public/amber/images/sprite.amber.png +0 -0
  160. data/public/amber/images/sprite.png +0 -0
  161. data/public/amber/images/tinylogo.amber.png +0 -0
  162. data/public/amber/images/tinylogo.png +0 -0
  163. data/public/amber/images/twitterwall.png +0 -0
  164. data/public/amber/index.html +55 -0
  165. data/public/amber/js/Additional-Examples.deploy.js +15 -0
  166. data/public/amber/js/Additional-Examples.js +21 -0
  167. data/public/amber/js/Benchfib.deploy.js +132 -0
  168. data/public/amber/js/Benchfib.js +167 -0
  169. data/public/amber/js/Canvas.deploy.js +2446 -0
  170. data/public/amber/js/Canvas.js +3547 -0
  171. data/public/amber/js/Compiler-Tests.deploy.js +97 -0
  172. data/public/amber/js/Compiler-Tests.js +137 -0
  173. data/public/amber/js/Compiler.deploy.js +1877 -0
  174. data/public/amber/js/Compiler.js +2622 -0
  175. data/public/amber/js/Documentation.deploy.js +961 -0
  176. data/public/amber/js/Documentation.js +1376 -0
  177. data/public/amber/js/Examples.deploy.js +53 -0
  178. data/public/amber/js/Examples.js +73 -0
  179. data/public/amber/js/IDE.deploy.js +3557 -0
  180. data/public/amber/js/IDE.js +5002 -0
  181. data/public/amber/js/Kernel-Announcements.deploy.js +107 -0
  182. data/public/amber/js/Kernel-Announcements.js +152 -0
  183. data/public/amber/js/Kernel-Classes.deploy.js +774 -0
  184. data/public/amber/js/Kernel-Classes.js +1095 -0
  185. data/public/amber/js/Kernel-Collections.deploy.js +3121 -0
  186. data/public/amber/js/Kernel-Collections.js +4427 -0
  187. data/public/amber/js/Kernel-Exceptions.deploy.js +244 -0
  188. data/public/amber/js/Kernel-Exceptions.js +349 -0
  189. data/public/amber/js/Kernel-Methods.deploy.js +573 -0
  190. data/public/amber/js/Kernel-Methods.js +807 -0
  191. data/public/amber/js/Kernel-Objects.deploy.js +2877 -0
  192. data/public/amber/js/Kernel-Objects.js +4107 -0
  193. data/public/amber/js/Kernel-Tests.deploy.js +1513 -0
  194. data/public/amber/js/Kernel-Tests.js +2053 -0
  195. data/public/amber/js/Kernel-Transcript.deploy.js +142 -0
  196. data/public/amber/js/Kernel-Transcript.js +202 -0
  197. data/public/amber/js/Maglev-Core.deploy.js +2996 -0
  198. data/public/amber/js/Maglev-Core.js +4246 -0
  199. data/public/amber/js/Maglev-Database-Explorer.deploy.js +4476 -0
  200. data/public/amber/js/Maglev-Database-Explorer.js +6232 -0
  201. data/public/amber/js/Maglev-Vendor.deploy.js +350 -0
  202. data/public/amber/js/Maglev-Vendor.js +465 -0
  203. data/public/amber/js/README.md +5 -0
  204. data/public/amber/js/SUnit.deploy.js +351 -0
  205. data/public/amber/js/SUnit.js +501 -0
  206. data/public/amber/js/amber.js +273 -0
  207. data/public/amber/js/boot.js +602 -0
  208. data/public/amber/js/compat.js +22 -0
  209. data/public/amber/js/init.js +9 -0
  210. data/public/amber/js/lib/CodeMirror/LICENSE +19 -0
  211. data/public/amber/js/lib/CodeMirror/active-line.js +39 -0
  212. data/public/amber/js/lib/CodeMirror/amber.css +21 -0
  213. data/public/amber/js/lib/CodeMirror/codemirror.css +67 -0
  214. data/public/amber/js/lib/CodeMirror/codemirror.js +2144 -0
  215. data/public/amber/js/lib/CodeMirror/smalltalk.js +134 -0
  216. data/public/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
  217. data/public/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
  218. data/public/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
  219. data/public/amber/js/lib/jQuery/jquery.textarea.js +267 -0
  220. data/public/amber/js/lib/peg-0.6.2.min.js +2 -0
  221. data/public/amber/js/lib/showdown.js +419 -0
  222. data/public/amber/js/parser.js +4222 -0
  223. data/public/amber/js/parser.pegjs +223 -0
  224. data/public/amber/learn.html +40 -0
  225. data/public/amber/repl/Makefile +8 -0
  226. data/public/amber/repl/REPL.js +124 -0
  227. data/public/amber/repl/REPL.st +56 -0
  228. data/public/amber/repl/amber.js +18085 -0
  229. data/public/amber/server/FileServer.st +576 -0
  230. data/public/amber/server/Makefile +8 -0
  231. data/public/amber/server/server.js +13049 -0
  232. data/public/amber/st/Benchfib.js +297 -0
  233. data/public/amber/st/Benchfib.st +124 -0
  234. data/public/amber/st/Canvas.st +968 -0
  235. data/public/amber/st/Compiler-Tests.st +471 -0
  236. data/public/amber/st/Compiler.st +1445 -0
  237. data/public/amber/st/Documentation.st +758 -0
  238. data/public/amber/st/Examples.js +100 -0
  239. data/public/amber/st/Examples.st +38 -0
  240. data/public/amber/st/IDE.st +2404 -0
  241. data/public/amber/st/Kernel-Announcements.st +61 -0
  242. data/public/amber/st/Kernel-Classes.st +462 -0
  243. data/public/amber/st/Kernel-Collections.st +1611 -0
  244. data/public/amber/st/Kernel-Exceptions.st +124 -0
  245. data/public/amber/st/Kernel-Methods.st +291 -0
  246. data/public/amber/st/Kernel-Objects.st +1587 -0
  247. data/public/amber/st/Kernel-Tests.st +953 -0
  248. data/public/amber/st/Kernel-Transcript.st +70 -0
  249. data/public/amber/st/Maglev-Core.st +1694 -0
  250. data/public/amber/st/Maglev-Database-Explorer.st +3148 -0
  251. data/public/amber/st/Maglev-Vendor.st +151 -0
  252. data/public/amber/st/Makefile +104 -0
  253. data/public/amber/st/README.md +4 -0
  254. data/public/amber/st/SUnit.st +172 -0
  255. data/public/css/bootstrap-combined.no-icons.min.css +731 -0
  256. data/public/css/bootstrap.css +6811 -0
  257. data/public/css/images/animated-overlay.gif +0 -0
  258. data/public/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  259. data/public/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  260. data/public/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  261. data/public/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  262. data/public/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  263. data/public/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  264. data/public/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  265. data/public/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  266. data/public/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  267. data/public/css/images/ui-icons_222222_256x240.png +0 -0
  268. data/public/css/images/ui-icons_228ef1_256x240.png +0 -0
  269. data/public/css/images/ui-icons_ef8c08_256x240.png +0 -0
  270. data/public/css/images/ui-icons_ffd27a_256x240.png +0 -0
  271. data/public/css/images/ui-icons_ffffff_256x240.png +0 -0
  272. data/public/css/jquery-ui.min.css +5 -0
  273. data/public/css/smalltalk_code.css +42 -0
  274. data/public/css/style.css +210 -0
  275. data/public/images/bg_tile.png +0 -0
  276. data/public/images/maglev-logo.gif +0 -0
  277. data/public/images/mchammer.gif +0 -0
  278. data/public/images/rails_tiny.png +0 -0
  279. data/public/images/ruby.png +0 -0
  280. data/public/images/ruby_smalltalk_bridge.png +0 -0
  281. data/public/images/smalltalk.png +0 -0
  282. data/public/img/glyphicons-halflings.png +0 -0
  283. data/public/index.html +118 -0
  284. data/public/libs/bootstrap.min.js +7 -0
  285. data/public/libs/codemirror/CONTRIBUTING.md +72 -0
  286. data/public/libs/codemirror/LICENSE +23 -0
  287. data/public/libs/codemirror/README.md +11 -0
  288. data/public/libs/codemirror/addon/dialog/dialog.css +32 -0
  289. data/public/libs/codemirror/addon/dialog/dialog.js +80 -0
  290. data/public/libs/codemirror/addon/display/placeholder.js +54 -0
  291. data/public/libs/codemirror/addon/edit/closebrackets.js +54 -0
  292. data/public/libs/codemirror/addon/edit/closetag.js +86 -0
  293. data/public/libs/codemirror/addon/edit/continuecomment.js +44 -0
  294. data/public/libs/codemirror/addon/edit/continuelist.js +25 -0
  295. data/public/libs/codemirror/addon/edit/matchbrackets.js +82 -0
  296. data/public/libs/codemirror/addon/fold/brace-fold.js +31 -0
  297. data/public/libs/codemirror/addon/fold/foldcode.js +32 -0
  298. data/public/libs/codemirror/addon/fold/indent-fold.js +11 -0
  299. data/public/libs/codemirror/addon/fold/xml-fold.js +64 -0
  300. data/public/libs/codemirror/addon/hint/html-hint.js +582 -0
  301. data/public/libs/codemirror/addon/hint/javascript-hint.js +142 -0
  302. data/public/libs/codemirror/addon/hint/pig-hint.js +117 -0
  303. data/public/libs/codemirror/addon/hint/python-hint.js +93 -0
  304. data/public/libs/codemirror/addon/hint/show-hint.css +38 -0
  305. data/public/libs/codemirror/addon/hint/show-hint.js +180 -0
  306. data/public/libs/codemirror/addon/hint/xml-hint.js +118 -0
  307. data/public/libs/codemirror/addon/lint/javascript-lint.js +127 -0
  308. data/public/libs/codemirror/addon/lint/json-lint.js +14 -0
  309. data/public/libs/codemirror/addon/lint/lint.css +96 -0
  310. data/public/libs/codemirror/addon/lint/lint.js +197 -0
  311. data/public/libs/codemirror/addon/mode/loadmode.js +51 -0
  312. data/public/libs/codemirror/addon/mode/multiplex.js +95 -0
  313. data/public/libs/codemirror/addon/mode/overlay.js +59 -0
  314. data/public/libs/codemirror/addon/runmode/colorize.js +29 -0
  315. data/public/libs/codemirror/addon/runmode/runmode-standalone.js +130 -0
  316. data/public/libs/codemirror/addon/runmode/runmode.js +52 -0
  317. data/public/libs/codemirror/addon/runmode/runmode.node.js +89 -0
  318. data/public/libs/codemirror/addon/search/match-highlighter.js +60 -0
  319. data/public/libs/codemirror/addon/search/search.js +131 -0
  320. data/public/libs/codemirror/addon/search/searchcursor.js +133 -0
  321. data/public/libs/codemirror/addon/selection/active-line.js +39 -0
  322. data/public/libs/codemirror/addon/selection/mark-selection.js +34 -0
  323. data/public/libs/codemirror/bin/compress +91 -0
  324. data/public/libs/codemirror/bin/lint +11 -0
  325. data/public/libs/codemirror/demo/activeline.html +70 -0
  326. data/public/libs/codemirror/demo/bidi.html +61 -0
  327. data/public/libs/codemirror/demo/btree.html +87 -0
  328. data/public/libs/codemirror/demo/buffers.html +98 -0
  329. data/public/libs/codemirror/demo/changemode.html +50 -0
  330. data/public/libs/codemirror/demo/closebrackets.html +63 -0
  331. data/public/libs/codemirror/demo/closetag.html +37 -0
  332. data/public/libs/codemirror/demo/complete.html +70 -0
  333. data/public/libs/codemirror/demo/emacs.html +60 -0
  334. data/public/libs/codemirror/demo/folding.html +69 -0
  335. data/public/libs/codemirror/demo/fullscreen.html +147 -0
  336. data/public/libs/codemirror/demo/html5complete.html +92 -0
  337. data/public/libs/codemirror/demo/indentwrap.html +49 -0
  338. data/public/libs/codemirror/demo/lint.html +90 -0
  339. data/public/libs/codemirror/demo/loadmode.html +40 -0
  340. data/public/libs/codemirror/demo/marker.html +59 -0
  341. data/public/libs/codemirror/demo/markselection.html +36 -0
  342. data/public/libs/codemirror/demo/matchhighlighter.html +38 -0
  343. data/public/libs/codemirror/demo/multiplex.html +60 -0
  344. data/public/libs/codemirror/demo/mustache.html +59 -0
  345. data/public/libs/codemirror/demo/placeholder.html +36 -0
  346. data/public/libs/codemirror/demo/preview.html +76 -0
  347. data/public/libs/codemirror/demo/resize.html +49 -0
  348. data/public/libs/codemirror/demo/runmode.html +50 -0
  349. data/public/libs/codemirror/demo/search.html +85 -0
  350. data/public/libs/codemirror/demo/spanaffectswrapping_shim.html +73 -0
  351. data/public/libs/codemirror/demo/theme.html +89 -0
  352. data/public/libs/codemirror/demo/variableheight.html +52 -0
  353. data/public/libs/codemirror/demo/vim.html +65 -0
  354. data/public/libs/codemirror/demo/visibletabs.html +53 -0
  355. data/public/libs/codemirror/demo/widget.html +74 -0
  356. data/public/libs/codemirror/demo/xmlcomplete.html +81 -0
  357. data/public/libs/codemirror/index.html +487 -0
  358. data/public/libs/codemirror/keymap/emacs.js +30 -0
  359. data/public/libs/codemirror/keymap/vim.js +3044 -0
  360. data/public/libs/codemirror/lib/codemirror.css +253 -0
  361. data/public/libs/codemirror/lib/codemirror.js +5585 -0
  362. data/public/libs/codemirror/mode/apl/apl.js +160 -0
  363. data/public/libs/codemirror/mode/apl/index.html +61 -0
  364. data/public/libs/codemirror/mode/asterisk/asterisk.js +183 -0
  365. data/public/libs/codemirror/mode/asterisk/index.html +142 -0
  366. data/public/libs/codemirror/mode/clike/clike.js +302 -0
  367. data/public/libs/codemirror/mode/clike/index.html +103 -0
  368. data/public/libs/codemirror/mode/clike/scala.html +767 -0
  369. data/public/libs/codemirror/mode/clojure/clojure.js +222 -0
  370. data/public/libs/codemirror/mode/clojure/index.html +76 -0
  371. data/public/libs/codemirror/mode/coffeescript/LICENSE +22 -0
  372. data/public/libs/codemirror/mode/coffeescript/coffeescript.js +346 -0
  373. data/public/libs/codemirror/mode/coffeescript/index.html +728 -0
  374. data/public/libs/codemirror/mode/commonlisp/commonlisp.js +101 -0
  375. data/public/libs/codemirror/mode/commonlisp/index.html +165 -0
  376. data/public/libs/codemirror/mode/css/css.js +567 -0
  377. data/public/libs/codemirror/mode/css/index.html +58 -0
  378. data/public/libs/codemirror/mode/css/scss.html +145 -0
  379. data/public/libs/codemirror/mode/css/scss_test.js +80 -0
  380. data/public/libs/codemirror/mode/css/test.js +113 -0
  381. data/public/libs/codemirror/mode/d/d.js +205 -0
  382. data/public/libs/codemirror/mode/d/index.html +262 -0
  383. data/public/libs/codemirror/mode/diff/diff.js +32 -0
  384. data/public/libs/codemirror/mode/diff/index.html +105 -0
  385. data/public/libs/codemirror/mode/ecl/ecl.js +192 -0
  386. data/public/libs/codemirror/mode/ecl/index.html +39 -0
  387. data/public/libs/codemirror/mode/erlang/erlang.js +463 -0
  388. data/public/libs/codemirror/mode/erlang/index.html +64 -0
  389. data/public/libs/codemirror/mode/gas/gas.js +326 -0
  390. data/public/libs/codemirror/mode/gas/index.html +57 -0
  391. data/public/libs/codemirror/mode/gfm/gfm.js +96 -0
  392. data/public/libs/codemirror/mode/gfm/index.html +74 -0
  393. data/public/libs/codemirror/mode/gfm/test.js +112 -0
  394. data/public/libs/codemirror/mode/go/go.js +165 -0
  395. data/public/libs/codemirror/mode/go/index.html +74 -0
  396. data/public/libs/codemirror/mode/groovy/groovy.js +210 -0
  397. data/public/libs/codemirror/mode/groovy/index.html +73 -0
  398. data/public/libs/codemirror/mode/haskell/haskell.js +242 -0
  399. data/public/libs/codemirror/mode/haskell/index.html +62 -0
  400. data/public/libs/codemirror/mode/haxe/haxe.js +429 -0
  401. data/public/libs/codemirror/mode/haxe/index.html +90 -0
  402. data/public/libs/codemirror/mode/htmlembedded/htmlembedded.js +73 -0
  403. data/public/libs/codemirror/mode/htmlembedded/index.html +49 -0
  404. data/public/libs/codemirror/mode/htmlmixed/htmlmixed.js +104 -0
  405. data/public/libs/codemirror/mode/htmlmixed/index.html +73 -0
  406. data/public/libs/codemirror/mode/http/http.js +98 -0
  407. data/public/libs/codemirror/mode/http/index.html +32 -0
  408. data/public/libs/codemirror/mode/javascript/index.html +92 -0
  409. data/public/libs/codemirror/mode/javascript/javascript.js +467 -0
  410. data/public/libs/codemirror/mode/javascript/typescript.html +48 -0
  411. data/public/libs/codemirror/mode/jinja2/index.html +38 -0
  412. data/public/libs/codemirror/mode/jinja2/jinja2.js +42 -0
  413. data/public/libs/codemirror/mode/less/index.html +741 -0
  414. data/public/libs/codemirror/mode/less/less.js +266 -0
  415. data/public/libs/codemirror/mode/livescript/LICENSE +23 -0
  416. data/public/libs/codemirror/mode/livescript/index.html +446 -0
  417. data/public/libs/codemirror/mode/livescript/livescript.js +267 -0
  418. data/public/libs/codemirror/mode/livescript/livescript.ls +266 -0
  419. data/public/libs/codemirror/mode/lua/index.html +74 -0
  420. data/public/libs/codemirror/mode/lua/lua.js +140 -0
  421. data/public/libs/codemirror/mode/markdown/index.html +344 -0
  422. data/public/libs/codemirror/mode/markdown/markdown.js +526 -0
  423. data/public/libs/codemirror/mode/markdown/test.js +636 -0
  424. data/public/libs/codemirror/mode/meta.js +75 -0
  425. data/public/libs/codemirror/mode/mirc/index.html +149 -0
  426. data/public/libs/codemirror/mode/mirc/mirc.js +177 -0
  427. data/public/libs/codemirror/mode/ntriples/index.html +33 -0
  428. data/public/libs/codemirror/mode/ntriples/ntriples.js +170 -0
  429. data/public/libs/codemirror/mode/ocaml/index.html +131 -0
  430. data/public/libs/codemirror/mode/ocaml/ocaml.js +113 -0
  431. data/public/libs/codemirror/mode/pascal/LICENSE +7 -0
  432. data/public/libs/codemirror/mode/pascal/index.html +48 -0
  433. data/public/libs/codemirror/mode/pascal/pascal.js +94 -0
  434. data/public/libs/codemirror/mode/perl/LICENSE +19 -0
  435. data/public/libs/codemirror/mode/perl/index.html +62 -0
  436. data/public/libs/codemirror/mode/perl/perl.js +816 -0
  437. data/public/libs/codemirror/mode/php/index.html +51 -0
  438. data/public/libs/codemirror/mode/php/php.js +129 -0
  439. data/public/libs/codemirror/mode/pig/index.html +42 -0
  440. data/public/libs/codemirror/mode/pig/pig.js +171 -0
  441. data/public/libs/codemirror/mode/properties/index.html +41 -0
  442. data/public/libs/codemirror/mode/properties/properties.js +63 -0
  443. data/public/libs/codemirror/mode/python/LICENSE.txt +21 -0
  444. data/public/libs/codemirror/mode/python/index.html +135 -0
  445. data/public/libs/codemirror/mode/python/python.js +340 -0
  446. data/public/libs/codemirror/mode/q/index.html +131 -0
  447. data/public/libs/codemirror/mode/q/q.js +124 -0
  448. data/public/libs/codemirror/mode/r/LICENSE +24 -0
  449. data/public/libs/codemirror/mode/r/index.html +74 -0
  450. data/public/libs/codemirror/mode/r/r.js +141 -0
  451. data/public/libs/codemirror/mode/rpm/changes/changes.js +19 -0
  452. data/public/libs/codemirror/mode/rpm/changes/index.html +53 -0
  453. data/public/libs/codemirror/mode/rpm/spec/index.html +99 -0
  454. data/public/libs/codemirror/mode/rpm/spec/spec.css +5 -0
  455. data/public/libs/codemirror/mode/rpm/spec/spec.js +66 -0
  456. data/public/libs/codemirror/mode/rst/LICENSE.txt +21 -0
  457. data/public/libs/codemirror/mode/rst/index.html +524 -0
  458. data/public/libs/codemirror/mode/rst/rst.js +550 -0
  459. data/public/libs/codemirror/mode/ruby/LICENSE +24 -0
  460. data/public/libs/codemirror/mode/ruby/index.html +173 -0
  461. data/public/libs/codemirror/mode/ruby/ruby.js +197 -0
  462. data/public/libs/codemirror/mode/rust/index.html +48 -0
  463. data/public/libs/codemirror/mode/rust/rust.js +432 -0
  464. data/public/libs/codemirror/mode/sass/index.html +54 -0
  465. data/public/libs/codemirror/mode/sass/sass.js +349 -0
  466. data/public/libs/codemirror/mode/scheme/index.html +65 -0
  467. data/public/libs/codemirror/mode/scheme/scheme.js +230 -0
  468. data/public/libs/codemirror/mode/shell/index.html +51 -0
  469. data/public/libs/codemirror/mode/shell/shell.js +118 -0
  470. data/public/libs/codemirror/mode/sieve/LICENSE +19 -0
  471. data/public/libs/codemirror/mode/sieve/index.html +81 -0
  472. data/public/libs/codemirror/mode/sieve/sieve.js +183 -0
  473. data/public/libs/codemirror/mode/smalltalk/index.html +57 -0
  474. data/public/libs/codemirror/mode/smalltalk/smalltalk.js +141 -0
  475. data/public/libs/codemirror/mode/smarty/index.html +83 -0
  476. data/public/libs/codemirror/mode/smarty/smarty.js +148 -0
  477. data/public/libs/codemirror/mode/sparql/index.html +42 -0
  478. data/public/libs/codemirror/mode/sparql/sparql.js +143 -0
  479. data/public/libs/codemirror/mode/sql/index.html +68 -0
  480. data/public/libs/codemirror/mode/sql/sql.js +268 -0
  481. data/public/libs/codemirror/mode/stex/index.html +98 -0
  482. data/public/libs/codemirror/mode/stex/stex.js +246 -0
  483. data/public/libs/codemirror/mode/stex/test.js +117 -0
  484. data/public/libs/codemirror/mode/tcl/index.html +129 -0
  485. data/public/libs/codemirror/mode/tcl/tcl.js +131 -0
  486. data/public/libs/codemirror/mode/tiddlywiki/index.html +142 -0
  487. data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  488. data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.js +353 -0
  489. data/public/libs/codemirror/mode/tiki/index.html +81 -0
  490. data/public/libs/codemirror/mode/tiki/tiki.css +26 -0
  491. data/public/libs/codemirror/mode/tiki/tiki.js +308 -0
  492. data/public/libs/codemirror/mode/turtle/index.html +39 -0
  493. data/public/libs/codemirror/mode/turtle/turtle.js +145 -0
  494. data/public/libs/codemirror/mode/vb/LICENSE.txt +21 -0
  495. data/public/libs/codemirror/mode/vb/index.html +88 -0
  496. data/public/libs/codemirror/mode/vb/vb.js +259 -0
  497. data/public/libs/codemirror/mode/vbscript/index.html +42 -0
  498. data/public/libs/codemirror/mode/vbscript/vbscript.js +26 -0
  499. data/public/libs/codemirror/mode/velocity/index.html +103 -0
  500. data/public/libs/codemirror/mode/velocity/velocity.js +144 -0
  501. data/public/libs/codemirror/mode/verilog/index.html +121 -0
  502. data/public/libs/codemirror/mode/verilog/verilog.js +182 -0
  503. data/public/libs/codemirror/mode/xml/index.html +45 -0
  504. data/public/libs/codemirror/mode/xml/xml.js +328 -0
  505. data/public/libs/codemirror/mode/xquery/LICENSE +20 -0
  506. data/public/libs/codemirror/mode/xquery/index.html +221 -0
  507. data/public/libs/codemirror/mode/xquery/test.js +64 -0
  508. data/public/libs/codemirror/mode/xquery/xquery.js +450 -0
  509. data/public/libs/codemirror/mode/yaml/index.html +68 -0
  510. data/public/libs/codemirror/mode/yaml/yaml.js +95 -0
  511. data/public/libs/codemirror/mode/z80/index.html +39 -0
  512. data/public/libs/codemirror/mode/z80/z80.js +85 -0
  513. data/public/libs/codemirror/package.json +21 -0
  514. data/public/libs/codemirror/test/doc_test.js +329 -0
  515. data/public/libs/codemirror/test/driver.js +138 -0
  516. data/public/libs/codemirror/test/index.html +182 -0
  517. data/public/libs/codemirror/test/lint/acorn.js +1593 -0
  518. data/public/libs/codemirror/test/lint/lint.js +112 -0
  519. data/public/libs/codemirror/test/lint/parse-js.js +1372 -0
  520. data/public/libs/codemirror/test/lint/walk.js +216 -0
  521. data/public/libs/codemirror/test/mode_test.css +10 -0
  522. data/public/libs/codemirror/test/mode_test.js +192 -0
  523. data/public/libs/codemirror/test/phantom_driver.js +31 -0
  524. data/public/libs/codemirror/test/run.js +33 -0
  525. data/public/libs/codemirror/test/test.js +1400 -0
  526. data/public/libs/codemirror/test/vim_test.js +1688 -0
  527. data/public/libs/codemirror/theme/ambiance-mobile.css +5 -0
  528. data/public/libs/codemirror/theme/ambiance.css +75 -0
  529. data/public/libs/codemirror/theme/blackboard.css +25 -0
  530. data/public/libs/codemirror/theme/cobalt.css +18 -0
  531. data/public/libs/codemirror/theme/eclipse.css +25 -0
  532. data/public/libs/codemirror/theme/elegant.css +10 -0
  533. data/public/libs/codemirror/theme/erlang-dark.css +21 -0
  534. data/public/libs/codemirror/theme/lesser-dark.css +44 -0
  535. data/public/libs/codemirror/theme/midnight.css +52 -0
  536. data/public/libs/codemirror/theme/monokai.css +28 -0
  537. data/public/libs/codemirror/theme/neat.css +9 -0
  538. data/public/libs/codemirror/theme/night.css +21 -0
  539. data/public/libs/codemirror/theme/rubyblue.css +21 -0
  540. data/public/libs/codemirror/theme/solarized.css +207 -0
  541. data/public/libs/codemirror/theme/twilight.css +26 -0
  542. data/public/libs/codemirror/theme/vibrant-ink.css +27 -0
  543. data/public/libs/codemirror/theme/xq-dark.css +46 -0
  544. data/public/libs/codemirror/theme/xq-light.css +43 -0
  545. data/public/libs/font-awesome/css/font-awesome-ie7.css +983 -0
  546. data/public/libs/font-awesome/css/font-awesome-ie7.min.css +24 -0
  547. data/public/libs/font-awesome/css/font-awesome.css +1268 -0
  548. data/public/libs/font-awesome/css/font-awesome.min.css +24 -0
  549. data/public/libs/font-awesome/font/FontAwesome.otf +0 -0
  550. data/public/libs/font-awesome/font/fontawesome-webfont.eot +0 -0
  551. data/public/libs/font-awesome/font/fontawesome-webfont.svg +339 -0
  552. data/public/libs/font-awesome/font/fontawesome-webfont.ttf +0 -0
  553. data/public/libs/font-awesome/font/fontawesome-webfont.woff +0 -0
  554. data/public/libs/font-awesome/less/bootstrap.less +78 -0
  555. data/public/libs/font-awesome/less/core.less +132 -0
  556. data/public/libs/font-awesome/less/extras.less +79 -0
  557. data/public/libs/font-awesome/less/font-awesome-ie7.less +413 -0
  558. data/public/libs/font-awesome/less/font-awesome.less +32 -0
  559. data/public/libs/font-awesome/less/icons.less +330 -0
  560. data/public/libs/font-awesome/less/mixins.less +34 -0
  561. data/public/libs/font-awesome/less/path.less +15 -0
  562. data/public/libs/font-awesome/less/variables.less +9 -0
  563. data/public/libs/jquery-1.10.0.min.js +6 -0
  564. data/public/libs/jquery-ui.min.js +12 -0
  565. data/public/libs/jquery.jsPlumb-1.4.0-all.js +9571 -0
  566. data/public/libs/jquery.livequery.js +226 -0
  567. data/public/libs/jsPlumbInitializer.js +72 -0
  568. data/public/libs/jstree/README.txt +10 -0
  569. data/public/libs/jstree/_demo/_dump.sql +20 -0
  570. data/public/libs/jstree/_demo/_inc/__mysql_errors.log +0 -0
  571. data/public/libs/jstree/_demo/_inc/class._database.php +146 -0
  572. data/public/libs/jstree/_demo/_inc/class._database_i.php +152 -0
  573. data/public/libs/jstree/_demo/_inc/class.tree.php +602 -0
  574. data/public/libs/jstree/_demo/_install.txt +6 -0
  575. data/public/libs/jstree/_demo/config.php +14 -0
  576. data/public/libs/jstree/_demo/file.png +0 -0
  577. data/public/libs/jstree/_demo/folder.png +0 -0
  578. data/public/libs/jstree/_demo/index.html +461 -0
  579. data/public/libs/jstree/_demo/root.png +0 -0
  580. data/public/libs/jstree/_demo/server.php +69 -0
  581. data/public/libs/jstree/_docs/!style.css +48 -0
  582. data/public/libs/jstree/_docs/_drive.png +0 -0
  583. data/public/libs/jstree/_docs/_html_data.html +2 -0
  584. data/public/libs/jstree/_docs/_json_data.json +4 -0
  585. data/public/libs/jstree/_docs/_search_data.json +6 -0
  586. data/public/libs/jstree/_docs/_search_result.json +1 -0
  587. data/public/libs/jstree/_docs/_xml_flat.xml +12 -0
  588. data/public/libs/jstree/_docs/_xml_nest.xml +18 -0
  589. data/public/libs/jstree/_docs/checkbox.html +171 -0
  590. data/public/libs/jstree/_docs/contextmenu.html +121 -0
  591. data/public/libs/jstree/_docs/cookies.html +97 -0
  592. data/public/libs/jstree/_docs/core.html +689 -0
  593. data/public/libs/jstree/_docs/crrm.html +316 -0
  594. data/public/libs/jstree/_docs/dnd.html +199 -0
  595. data/public/libs/jstree/_docs/hotkeys.html +82 -0
  596. data/public/libs/jstree/_docs/html_data.html +175 -0
  597. data/public/libs/jstree/_docs/index.html +86 -0
  598. data/public/libs/jstree/_docs/json_data.html +249 -0
  599. data/public/libs/jstree/_docs/languages.html +152 -0
  600. data/public/libs/jstree/_docs/logo.png +0 -0
  601. data/public/libs/jstree/_docs/search.html +153 -0
  602. data/public/libs/jstree/_docs/sort.html +85 -0
  603. data/public/libs/jstree/_docs/syntax/!script.js +2232 -0
  604. data/public/libs/jstree/_docs/syntax/!style.css +511 -0
  605. data/public/libs/jstree/_docs/syntax/clipboard.swf +0 -0
  606. data/public/libs/jstree/_docs/syntax/help.png +0 -0
  607. data/public/libs/jstree/_docs/syntax/magnifier.png +0 -0
  608. data/public/libs/jstree/_docs/syntax/page_white_code.png +0 -0
  609. data/public/libs/jstree/_docs/syntax/page_white_copy.png +0 -0
  610. data/public/libs/jstree/_docs/syntax/printer.png +0 -0
  611. data/public/libs/jstree/_docs/syntax/wrapping.png +0 -0
  612. data/public/libs/jstree/_docs/themeroller.html +107 -0
  613. data/public/libs/jstree/_docs/themes.html +127 -0
  614. data/public/libs/jstree/_docs/types.html +178 -0
  615. data/public/libs/jstree/_docs/ui.html +197 -0
  616. data/public/libs/jstree/_docs/unique.html +85 -0
  617. data/public/libs/jstree/_docs/xml_data.html +218 -0
  618. data/public/libs/jstree/_lib/jquery.cookie.js +96 -0
  619. data/public/libs/jstree/_lib/jquery.hotkeys.js +99 -0
  620. data/public/libs/jstree/_lib/jquery.js +5 -0
  621. data/public/libs/jstree/jquery.jstree.js +4564 -0
  622. data/public/libs/jstree/themes/apple/bg.jpg +0 -0
  623. data/public/libs/jstree/themes/apple/d.png +0 -0
  624. data/public/libs/jstree/themes/apple/dot_for_ie.gif +0 -0
  625. data/public/libs/jstree/themes/apple/style.css +61 -0
  626. data/public/libs/jstree/themes/apple/throbber.gif +0 -0
  627. data/public/libs/jstree/themes/classic/d.gif +0 -0
  628. data/public/libs/jstree/themes/classic/d.png +0 -0
  629. data/public/libs/jstree/themes/classic/dot_for_ie.gif +0 -0
  630. data/public/libs/jstree/themes/classic/style.css +77 -0
  631. data/public/libs/jstree/themes/classic/throbber.gif +0 -0
  632. data/public/libs/jstree/themes/default-rtl/d.gif +0 -0
  633. data/public/libs/jstree/themes/default-rtl/d.png +0 -0
  634. data/public/libs/jstree/themes/default-rtl/dots.gif +0 -0
  635. data/public/libs/jstree/themes/default-rtl/style.css +84 -0
  636. data/public/libs/jstree/themes/default-rtl/throbber.gif +0 -0
  637. data/public/libs/jstree/themes/default/d.gif +0 -0
  638. data/public/libs/jstree/themes/default/d.png +0 -0
  639. data/public/libs/jstree/themes/default/style.css +74 -0
  640. data/public/libs/jstree/themes/default/throbber.gif +0 -0
  641. data/public/themes/geo-bootstrap/README.md +25 -0
  642. data/public/themes/geo-bootstrap/img/flames.gif +0 -0
  643. data/public/themes/geo-bootstrap/img/glyphicons-halflings-white.png +0 -0
  644. data/public/themes/geo-bootstrap/img/glyphicons-halflings.png +0 -0
  645. data/public/themes/geo-bootstrap/img/microfab.gif +0 -0
  646. data/public/themes/geo-bootstrap/img/progress.gif +0 -0
  647. data/public/themes/geo-bootstrap/img/rainbow.gif +0 -0
  648. data/public/themes/geo-bootstrap/img/stars.gif +0 -0
  649. data/public/themes/geo-bootstrap/img/test/7upspot.gif +0 -0
  650. data/public/themes/geo-bootstrap/img/test/americanflag.gif +0 -0
  651. data/public/themes/geo-bootstrap/img/test/community.gif +0 -0
  652. data/public/themes/geo-bootstrap/img/test/computer-01.gif +0 -0
  653. data/public/themes/geo-bootstrap/img/test/computer.gif +0 -0
  654. data/public/themes/geo-bootstrap/img/test/construction.gif +0 -0
  655. data/public/themes/geo-bootstrap/img/test/counter.gif +0 -0
  656. data/public/themes/geo-bootstrap/img/test/counter2.gif +0 -0
  657. data/public/themes/geo-bootstrap/img/test/divider.gif +0 -0
  658. data/public/themes/geo-bootstrap/img/test/divider1.gif +0 -0
  659. data/public/themes/geo-bootstrap/img/test/divider2.gif +0 -0
  660. data/public/themes/geo-bootstrap/img/test/divider3.gif +0 -0
  661. data/public/themes/geo-bootstrap/img/test/divider4.gif +0 -0
  662. data/public/themes/geo-bootstrap/img/test/drudgesiren.gif +0 -0
  663. data/public/themes/geo-bootstrap/img/test/emailme.gif +0 -0
  664. data/public/themes/geo-bootstrap/img/test/funky.gif +0 -0
  665. data/public/themes/geo-bootstrap/img/test/geocities.jpg +0 -0
  666. data/public/themes/geo-bootstrap/img/test/hacker.gif +0 -0
  667. data/public/themes/geo-bootstrap/img/test/heart.gif +0 -0
  668. data/public/themes/geo-bootstrap/img/test/hot.gif +0 -0
  669. data/public/themes/geo-bootstrap/img/test/ie_logo.gif +0 -0
  670. data/public/themes/geo-bootstrap/img/test/mailkitten.gif +0 -0
  671. data/public/themes/geo-bootstrap/img/test/mchammer.gif +0 -0
  672. data/public/themes/geo-bootstrap/img/test/new.gif +0 -0
  673. data/public/themes/geo-bootstrap/img/test/new2.gif +0 -0
  674. data/public/themes/geo-bootstrap/img/test/noframes.gif +0 -0
  675. data/public/themes/geo-bootstrap/img/test/notepad.gif +0 -0
  676. data/public/themes/geo-bootstrap/img/test/ns_logo.gif +0 -0
  677. data/public/themes/geo-bootstrap/img/test/sign-in.gif +0 -0
  678. data/public/themes/geo-bootstrap/img/test/spinningearth.gif +0 -0
  679. data/public/themes/geo-bootstrap/img/test/underconstruction.gif +0 -0
  680. data/public/themes/geo-bootstrap/img/test/wabwalk.gif +0 -0
  681. data/public/themes/geo-bootstrap/img/test/webtrips.gif +0 -0
  682. data/public/themes/geo-bootstrap/img/test/yahooweek.gif +0 -0
  683. data/public/themes/geo-bootstrap/package.json +21 -0
  684. data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.css +1109 -0
  685. data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.min.css +9 -0
  686. data/public/themes/geo-bootstrap/swatch/bootstrap.css +6462 -0
  687. data/public/themes/geo-bootstrap/swatch/bootstrap.min.css +9 -0
  688. metadata +791 -0
@@ -0,0 +1,3121 @@
1
+ smalltalk.addPackage('Kernel-Collections', {});
2
+ smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel-Collections');
3
+ smalltalk.addMethod(
4
+ unescape('__eq'),
5
+ smalltalk.method({
6
+ selector: unescape('%3D'),
7
+ fn: function (anAssociation){
8
+ var self=this;
9
+ return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(anAssociation, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_key", []), "__eq", [smalltalk.send(anAssociation, "_key", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_value", []), "__eq", [smalltalk.send(anAssociation, "_value", [])]);})]);})]);
10
+ return self;}
11
+ }),
12
+ smalltalk.Association);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('_isAssociation'),
16
+ smalltalk.method({
17
+ selector: unescape('isAssociation'),
18
+ fn: function (){
19
+ var self=this;
20
+ return true;
21
+ return self;}
22
+ }),
23
+ smalltalk.Association);
24
+
25
+ smalltalk.addMethod(
26
+ unescape('_key'),
27
+ smalltalk.method({
28
+ selector: unescape('key'),
29
+ fn: function (){
30
+ var self=this;
31
+ return self['@key'];
32
+ return self;}
33
+ }),
34
+ smalltalk.Association);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_key_'),
38
+ smalltalk.method({
39
+ selector: unescape('key%3A'),
40
+ fn: function (aKey){
41
+ var self=this;
42
+ (self['@key']=aKey);
43
+ return self;}
44
+ }),
45
+ smalltalk.Association);
46
+
47
+ smalltalk.addMethod(
48
+ unescape('_storeOn_'),
49
+ smalltalk.method({
50
+ selector: unescape('storeOn%3A'),
51
+ fn: function (aStream){
52
+ var self=this;
53
+ smalltalk.send(self['@key'], "_storeOn_", [aStream]);
54
+ smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
55
+ smalltalk.send(self['@value'], "_storeOn_", [aStream]);
56
+ return self;}
57
+ }),
58
+ smalltalk.Association);
59
+
60
+ smalltalk.addMethod(
61
+ unescape('_value'),
62
+ smalltalk.method({
63
+ selector: unescape('value'),
64
+ fn: function (){
65
+ var self=this;
66
+ return self['@value'];
67
+ return self;}
68
+ }),
69
+ smalltalk.Association);
70
+
71
+ smalltalk.addMethod(
72
+ unescape('_value_'),
73
+ smalltalk.method({
74
+ selector: unescape('value%3A'),
75
+ fn: function (aValue){
76
+ var self=this;
77
+ (self['@value']=aValue);
78
+ return self;}
79
+ }),
80
+ smalltalk.Association);
81
+
82
+
83
+ smalltalk.addMethod(
84
+ unescape('_key_value_'),
85
+ smalltalk.method({
86
+ selector: unescape('key%3Avalue%3A'),
87
+ fn: function (aKey, aValue){
88
+ var self=this;
89
+ return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
90
+ return self;}
91
+ }),
92
+ smalltalk.Association.klass);
93
+
94
+
95
+ smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel-Collections');
96
+ smalltalk.addMethod(
97
+ unescape('__comma'),
98
+ smalltalk.method({
99
+ selector: unescape('%2C'),
100
+ fn: function (aCollection){
101
+ var self=this;
102
+ return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
103
+ return self;}
104
+ }),
105
+ smalltalk.Collection);
106
+
107
+ smalltalk.addMethod(
108
+ unescape('_add_'),
109
+ smalltalk.method({
110
+ selector: unescape('add%3A'),
111
+ fn: function (anObject){
112
+ var self=this;
113
+ smalltalk.send(self, "_subclassResponsibility", []);
114
+ return self;}
115
+ }),
116
+ smalltalk.Collection);
117
+
118
+ smalltalk.addMethod(
119
+ unescape('_addAll_'),
120
+ smalltalk.method({
121
+ selector: unescape('addAll%3A'),
122
+ fn: function (aCollection){
123
+ var self=this;
124
+ smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
125
+ return aCollection;
126
+ return self;}
127
+ }),
128
+ smalltalk.Collection);
129
+
130
+ smalltalk.addMethod(
131
+ unescape('_asArray'),
132
+ smalltalk.method({
133
+ selector: unescape('asArray'),
134
+ fn: function (){
135
+ var self=this;
136
+ return smalltalk.send((smalltalk.Array || Array), "_withAll_", [self]);
137
+ return self;}
138
+ }),
139
+ smalltalk.Collection);
140
+
141
+ smalltalk.addMethod(
142
+ unescape('_asJSON'),
143
+ smalltalk.method({
144
+ selector: unescape('asJSON'),
145
+ fn: function (){
146
+ var self=this;
147
+ return smalltalk.send(smalltalk.send(self, "_asArray", []), "_collect_", [(function(each){return smalltalk.send(each, "_asJSON", []);})]);
148
+ return self;}
149
+ }),
150
+ smalltalk.Collection);
151
+
152
+ smalltalk.addMethod(
153
+ unescape('_asOrderedCollection'),
154
+ smalltalk.method({
155
+ selector: unescape('asOrderedCollection'),
156
+ fn: function (){
157
+ var self=this;
158
+ return smalltalk.send(self, "_asArray", []);
159
+ return self;}
160
+ }),
161
+ smalltalk.Collection);
162
+
163
+ smalltalk.addMethod(
164
+ unescape('_asSet'),
165
+ smalltalk.method({
166
+ selector: unescape('asSet'),
167
+ fn: function (){
168
+ var self=this;
169
+ return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
170
+ return self;}
171
+ }),
172
+ smalltalk.Collection);
173
+
174
+ smalltalk.addMethod(
175
+ unescape('_collect_'),
176
+ smalltalk.method({
177
+ selector: unescape('collect%3A'),
178
+ fn: function (aBlock){
179
+ var self=this;
180
+ var newCollection=nil;
181
+ (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
182
+ smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
183
+ return newCollection;
184
+ return self;}
185
+ }),
186
+ smalltalk.Collection);
187
+
188
+ smalltalk.addMethod(
189
+ unescape('_copyWith_'),
190
+ smalltalk.method({
191
+ selector: unescape('copyWith%3A'),
192
+ fn: function (anObject){
193
+ var self=this;
194
+ return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
195
+ return self;}
196
+ }),
197
+ smalltalk.Collection);
198
+
199
+ smalltalk.addMethod(
200
+ unescape('_copyWithAll_'),
201
+ smalltalk.method({
202
+ selector: unescape('copyWithAll%3A'),
203
+ fn: function (aCollection){
204
+ var self=this;
205
+ return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
206
+ return self;}
207
+ }),
208
+ smalltalk.Collection);
209
+
210
+ smalltalk.addMethod(
211
+ unescape('_copyWithoutAll_'),
212
+ smalltalk.method({
213
+ selector: unescape('copyWithoutAll%3A'),
214
+ fn: function (aCollection){
215
+ var self=this;
216
+ return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
217
+ return self;}
218
+ }),
219
+ smalltalk.Collection);
220
+
221
+ smalltalk.addMethod(
222
+ unescape('_detect_'),
223
+ smalltalk.method({
224
+ selector: unescape('detect%3A'),
225
+ fn: function (aBlock){
226
+ var self=this;
227
+ return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
228
+ return self;}
229
+ }),
230
+ smalltalk.Collection);
231
+
232
+ smalltalk.addMethod(
233
+ unescape('_detect_ifNone_'),
234
+ smalltalk.method({
235
+ selector: unescape('detect%3AifNone%3A'),
236
+ fn: function (aBlock, anotherBlock){
237
+ var self=this;
238
+
239
+ for(var i = 0; i < self.length; i++)
240
+ if(aBlock(self[i]))
241
+ return self[i];
242
+ return anotherBlock();
243
+ ;
244
+ return self;}
245
+ }),
246
+ smalltalk.Collection);
247
+
248
+ smalltalk.addMethod(
249
+ unescape('_do_'),
250
+ smalltalk.method({
251
+ selector: unescape('do%3A'),
252
+ fn: function (aBlock){
253
+ var self=this;
254
+ for(var i=0;i<self.length;i++){aBlock(self[i]);};
255
+ return self;}
256
+ }),
257
+ smalltalk.Collection);
258
+
259
+ smalltalk.addMethod(
260
+ unescape('_do_separatedBy_'),
261
+ smalltalk.method({
262
+ selector: unescape('do%3AseparatedBy%3A'),
263
+ fn: function (aBlock, anotherBlock){
264
+ var self=this;
265
+ var first=nil;
266
+ (first=true);
267
+ smalltalk.send(self, "_do_", [(function(each){((($receiver = first).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (first=false);})() : (function(){return smalltalk.send(anotherBlock, "_value", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (first=false);}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]));return smalltalk.send(aBlock, "_value_", [each]);})]);
268
+ return self;}
269
+ }),
270
+ smalltalk.Collection);
271
+
272
+ smalltalk.addMethod(
273
+ unescape('_errorNotFound'),
274
+ smalltalk.method({
275
+ selector: unescape('errorNotFound'),
276
+ fn: function (){
277
+ var self=this;
278
+ smalltalk.send(self, "_error_", ["Object is not in the collection"]);
279
+ return self;}
280
+ }),
281
+ smalltalk.Collection);
282
+
283
+ smalltalk.addMethod(
284
+ unescape('_ifEmpty_'),
285
+ smalltalk.method({
286
+ selector: unescape('ifEmpty%3A'),
287
+ fn: function (aBlock){
288
+ var self=this;
289
+ return ((($receiver = smalltalk.send(self, "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : (function(){return self;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);}), (function(){return self;})]));
290
+ return self;}
291
+ }),
292
+ smalltalk.Collection);
293
+
294
+ smalltalk.addMethod(
295
+ unescape('_ifNotEmpty_'),
296
+ smalltalk.method({
297
+ selector: unescape('ifNotEmpty%3A'),
298
+ fn: function (aBlock){
299
+ var self=this;
300
+ smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
301
+ return self;}
302
+ }),
303
+ smalltalk.Collection);
304
+
305
+ smalltalk.addMethod(
306
+ unescape('_includes_'),
307
+ smalltalk.method({
308
+ selector: unescape('includes%3A'),
309
+ fn: function (anObject){
310
+ var self=this;
311
+
312
+ var i = self.length;
313
+ while (i--) {
314
+ if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
315
+ }
316
+ return false
317
+ ;
318
+ return self;}
319
+ }),
320
+ smalltalk.Collection);
321
+
322
+ smalltalk.addMethod(
323
+ unescape('_inject_into_'),
324
+ smalltalk.method({
325
+ selector: unescape('inject%3Ainto%3A'),
326
+ fn: function (anObject, aBlock){
327
+ var self=this;
328
+ var result=nil;
329
+ (result=anObject);
330
+ smalltalk.send(self, "_do_", [(function(each){return (result=smalltalk.send(aBlock, "_value_value_", [result, each]));})]);
331
+ return result;
332
+ return self;}
333
+ }),
334
+ smalltalk.Collection);
335
+
336
+ smalltalk.addMethod(
337
+ unescape('_isEmpty'),
338
+ smalltalk.method({
339
+ selector: unescape('isEmpty'),
340
+ fn: function (){
341
+ var self=this;
342
+ return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
343
+ return self;}
344
+ }),
345
+ smalltalk.Collection);
346
+
347
+ smalltalk.addMethod(
348
+ unescape('_notEmpty'),
349
+ smalltalk.method({
350
+ selector: unescape('notEmpty'),
351
+ fn: function (){
352
+ var self=this;
353
+ return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
354
+ return self;}
355
+ }),
356
+ smalltalk.Collection);
357
+
358
+ smalltalk.addMethod(
359
+ unescape('_readStream'),
360
+ smalltalk.method({
361
+ selector: unescape('readStream'),
362
+ fn: function (){
363
+ var self=this;
364
+ return smalltalk.send(self, "_stream", []);
365
+ return self;}
366
+ }),
367
+ smalltalk.Collection);
368
+
369
+ smalltalk.addMethod(
370
+ unescape('_reject_'),
371
+ smalltalk.method({
372
+ selector: unescape('reject%3A'),
373
+ fn: function (aBlock){
374
+ var self=this;
375
+ return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
376
+ return self;}
377
+ }),
378
+ smalltalk.Collection);
379
+
380
+ smalltalk.addMethod(
381
+ unescape('_remove_'),
382
+ smalltalk.method({
383
+ selector: unescape('remove%3A'),
384
+ fn: function (anObject){
385
+ var self=this;
386
+ return smalltalk.send(self, "_remove_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
387
+ return self;}
388
+ }),
389
+ smalltalk.Collection);
390
+
391
+ smalltalk.addMethod(
392
+ unescape('_remove_ifAbsent_'),
393
+ smalltalk.method({
394
+ selector: unescape('remove%3AifAbsent%3A'),
395
+ fn: function (anObject, aBlock){
396
+ var self=this;
397
+ smalltalk.send(self, "_subclassResponsibility", []);
398
+ return self;}
399
+ }),
400
+ smalltalk.Collection);
401
+
402
+ smalltalk.addMethod(
403
+ unescape('_select_'),
404
+ smalltalk.method({
405
+ selector: unescape('select%3A'),
406
+ fn: function (aBlock){
407
+ var self=this;
408
+ var stream=nil;
409
+ (stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []));
410
+ smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_nextPut_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]));})]);
411
+ return smalltalk.send(stream, "_contents", []);
412
+ return self;}
413
+ }),
414
+ smalltalk.Collection);
415
+
416
+ smalltalk.addMethod(
417
+ unescape('_size'),
418
+ smalltalk.method({
419
+ selector: unescape('size'),
420
+ fn: function (){
421
+ var self=this;
422
+ smalltalk.send(self, "_subclassResponsibility", []);
423
+ return self;}
424
+ }),
425
+ smalltalk.Collection);
426
+
427
+ smalltalk.addMethod(
428
+ unescape('_stream'),
429
+ smalltalk.method({
430
+ selector: unescape('stream'),
431
+ fn: function (){
432
+ var self=this;
433
+ return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
434
+ return self;}
435
+ }),
436
+ smalltalk.Collection);
437
+
438
+ smalltalk.addMethod(
439
+ unescape('_streamClass'),
440
+ smalltalk.method({
441
+ selector: unescape('streamClass'),
442
+ fn: function (){
443
+ var self=this;
444
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
445
+ return self;}
446
+ }),
447
+ smalltalk.Collection);
448
+
449
+ smalltalk.addMethod(
450
+ unescape('_writeStream'),
451
+ smalltalk.method({
452
+ selector: unescape('writeStream'),
453
+ fn: function (){
454
+ var self=this;
455
+ return smalltalk.send(self, "_stream", []);
456
+ return self;}
457
+ }),
458
+ smalltalk.Collection);
459
+
460
+
461
+ smalltalk.addMethod(
462
+ unescape('_new_'),
463
+ smalltalk.method({
464
+ selector: unescape('new%3A'),
465
+ fn: function (anInteger){
466
+ var self=this;
467
+ return smalltalk.send(self, "_new", []);
468
+ return self;}
469
+ }),
470
+ smalltalk.Collection.klass);
471
+
472
+ smalltalk.addMethod(
473
+ unescape('_streamClass'),
474
+ smalltalk.method({
475
+ selector: unescape('streamClass'),
476
+ fn: function (){
477
+ var self=this;
478
+ return (smalltalk.Stream || Stream);
479
+ return self;}
480
+ }),
481
+ smalltalk.Collection.klass);
482
+
483
+ smalltalk.addMethod(
484
+ unescape('_with_'),
485
+ smalltalk.method({
486
+ selector: unescape('with%3A'),
487
+ fn: function (anObject){
488
+ var self=this;
489
+ return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
490
+ return self;}
491
+ }),
492
+ smalltalk.Collection.klass);
493
+
494
+ smalltalk.addMethod(
495
+ unescape('_with_with_'),
496
+ smalltalk.method({
497
+ selector: unescape('with%3Awith%3A'),
498
+ fn: function (anObject, anotherObject){
499
+ var self=this;
500
+ return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
501
+ return self;}
502
+ }),
503
+ smalltalk.Collection.klass);
504
+
505
+ smalltalk.addMethod(
506
+ unescape('_with_with_with_'),
507
+ smalltalk.method({
508
+ selector: unescape('with%3Awith%3Awith%3A'),
509
+ fn: function (firstObject, secondObject, thirdObject){
510
+ var self=this;
511
+ return (function($rec){smalltalk.send($rec, "_add_", [firstObject]);smalltalk.send($rec, "_add_", [secondObject]);smalltalk.send($rec, "_add_", [thirdObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
512
+ return self;}
513
+ }),
514
+ smalltalk.Collection.klass);
515
+
516
+ smalltalk.addMethod(
517
+ unescape('_withAll_'),
518
+ smalltalk.method({
519
+ selector: unescape('withAll%3A'),
520
+ fn: function (aCollection){
521
+ var self=this;
522
+ return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
523
+ return self;}
524
+ }),
525
+ smalltalk.Collection.klass);
526
+
527
+
528
+ smalltalk.addClass('HashedCollection', smalltalk.Collection, [], 'Kernel-Collections');
529
+ smalltalk.addMethod(
530
+ unescape('__comma'),
531
+ smalltalk.method({
532
+ selector: unescape('%2C'),
533
+ fn: function (aCollection){
534
+ var self=this;
535
+ smalltalk.send(self, "_shouldNotImplement", []);
536
+ return self;}
537
+ }),
538
+ smalltalk.HashedCollection);
539
+
540
+ smalltalk.addMethod(
541
+ unescape('__eq'),
542
+ smalltalk.method({
543
+ selector: unescape('%3D'),
544
+ fn: function (aHashedCollection){
545
+ var self=this;
546
+ try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aHashedCollection, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
547
+ ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aHashedCollection, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
548
+ (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aHashedCollection, "_associations", [])])}})})();
549
+ return self;
550
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
551
+ }),
552
+ smalltalk.HashedCollection);
553
+
554
+ smalltalk.addMethod(
555
+ unescape('_add_'),
556
+ smalltalk.method({
557
+ selector: unescape('add%3A'),
558
+ fn: function (anAssociation){
559
+ var self=this;
560
+ smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
561
+ return self;}
562
+ }),
563
+ smalltalk.HashedCollection);
564
+
565
+ smalltalk.addMethod(
566
+ unescape('_addAll_'),
567
+ smalltalk.method({
568
+ selector: unescape('addAll%3A'),
569
+ fn: function (aHashedCollection){
570
+ var self=this;
571
+ smalltalk.send(self, "_addAll_", [smalltalk.send(aHashedCollection, "_associations", [])], smalltalk.Collection);
572
+ return aHashedCollection;
573
+ return self;}
574
+ }),
575
+ smalltalk.HashedCollection);
576
+
577
+ smalltalk.addMethod(
578
+ unescape('_asDictionary'),
579
+ smalltalk.method({
580
+ selector: unescape('asDictionary'),
581
+ fn: function (){
582
+ var self=this;
583
+ return smalltalk.send((smalltalk.Dictionary || Dictionary), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
584
+ return self;}
585
+ }),
586
+ smalltalk.HashedCollection);
587
+
588
+ smalltalk.addMethod(
589
+ unescape('_asJSON'),
590
+ smalltalk.method({
591
+ selector: unescape('asJSON'),
592
+ fn: function (){
593
+ var self=this;
594
+ var c=nil;
595
+ (c=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
596
+ smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(c, "_at_put_", [key, smalltalk.send(value, "_asJSON", [])]);})]);
597
+ return c;
598
+ return self;}
599
+ }),
600
+ smalltalk.HashedCollection);
601
+
602
+ smalltalk.addMethod(
603
+ unescape('_associations'),
604
+ smalltalk.method({
605
+ selector: unescape('associations'),
606
+ fn: function (){
607
+ var self=this;
608
+ var associations=nil;
609
+ (associations=[]);
610
+ smalltalk.send(smalltalk.send(self, "_keys", []), "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
611
+ return associations;
612
+ return self;}
613
+ }),
614
+ smalltalk.HashedCollection);
615
+
616
+ smalltalk.addMethod(
617
+ unescape('_associationsDo_'),
618
+ smalltalk.method({
619
+ selector: unescape('associationsDo%3A'),
620
+ fn: function (aBlock){
621
+ var self=this;
622
+ smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
623
+ return self;}
624
+ }),
625
+ smalltalk.HashedCollection);
626
+
627
+ smalltalk.addMethod(
628
+ unescape('_at_'),
629
+ smalltalk.method({
630
+ selector: unescape('at%3A'),
631
+ fn: function (aKey){
632
+ var self=this;
633
+ return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
634
+ return self;}
635
+ }),
636
+ smalltalk.HashedCollection);
637
+
638
+ smalltalk.addMethod(
639
+ unescape('_at_ifAbsent_'),
640
+ smalltalk.method({
641
+ selector: unescape('at%3AifAbsent%3A'),
642
+ fn: function (aKey, aBlock){
643
+ var self=this;
644
+ return smalltalk.send(smalltalk.send(self, "_includesKey_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
645
+ return self;}
646
+ }),
647
+ smalltalk.HashedCollection);
648
+
649
+ smalltalk.addMethod(
650
+ unescape('_at_ifAbsentPut_'),
651
+ smalltalk.method({
652
+ selector: unescape('at%3AifAbsentPut%3A'),
653
+ fn: function (aKey, aBlock){
654
+ var self=this;
655
+ return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
656
+ return self;}
657
+ }),
658
+ smalltalk.HashedCollection);
659
+
660
+ smalltalk.addMethod(
661
+ unescape('_at_ifPresent_'),
662
+ smalltalk.method({
663
+ selector: unescape('at%3AifPresent%3A'),
664
+ fn: function (aKey, aBlock){
665
+ var self=this;
666
+ return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
667
+ return self;}
668
+ }),
669
+ smalltalk.HashedCollection);
670
+
671
+ smalltalk.addMethod(
672
+ unescape('_at_ifPresent_ifAbsent_'),
673
+ smalltalk.method({
674
+ selector: unescape('at%3AifPresent%3AifAbsent%3A'),
675
+ fn: function (aKey, aBlock, anotherBlock){
676
+ var self=this;
677
+ return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
678
+ return self;}
679
+ }),
680
+ smalltalk.HashedCollection);
681
+
682
+ smalltalk.addMethod(
683
+ unescape('_at_put_'),
684
+ smalltalk.method({
685
+ selector: unescape('at%3Aput%3A'),
686
+ fn: function (aKey, aValue){
687
+ var self=this;
688
+ return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
689
+ return self;}
690
+ }),
691
+ smalltalk.HashedCollection);
692
+
693
+ smalltalk.addMethod(
694
+ unescape('_collect_'),
695
+ smalltalk.method({
696
+ selector: unescape('collect%3A'),
697
+ fn: function (aBlock){
698
+ var self=this;
699
+ var newDict=nil;
700
+ (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
701
+ smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
702
+ return newDict;
703
+ return self;}
704
+ }),
705
+ smalltalk.HashedCollection);
706
+
707
+ smalltalk.addMethod(
708
+ unescape('_copyFrom_to_'),
709
+ smalltalk.method({
710
+ selector: unescape('copyFrom%3Ato%3A'),
711
+ fn: function (anIndex, anotherIndex){
712
+ var self=this;
713
+ smalltalk.send(self, "_shouldNotImplement", []);
714
+ return self;}
715
+ }),
716
+ smalltalk.HashedCollection);
717
+
718
+ smalltalk.addMethod(
719
+ unescape('_deepCopy'),
720
+ smalltalk.method({
721
+ selector: unescape('deepCopy'),
722
+ fn: function (){
723
+ var self=this;
724
+ var copy=nil;
725
+ (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
726
+ smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(smalltalk.send(each, "_value", []), "_deepCopy", [])]);})]);
727
+ return copy;
728
+ return self;}
729
+ }),
730
+ smalltalk.HashedCollection);
731
+
732
+ smalltalk.addMethod(
733
+ unescape('_detect_ifNone_'),
734
+ smalltalk.method({
735
+ selector: unescape('detect%3AifNone%3A'),
736
+ fn: function (aBlock, anotherBlock){
737
+ var self=this;
738
+ return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
739
+ return self;}
740
+ }),
741
+ smalltalk.HashedCollection);
742
+
743
+ smalltalk.addMethod(
744
+ unescape('_do_'),
745
+ smalltalk.method({
746
+ selector: unescape('do%3A'),
747
+ fn: function (aBlock){
748
+ var self=this;
749
+ smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
750
+ return self;}
751
+ }),
752
+ smalltalk.HashedCollection);
753
+
754
+ smalltalk.addMethod(
755
+ unescape('_includes_'),
756
+ smalltalk.method({
757
+ selector: unescape('includes%3A'),
758
+ fn: function (anObject){
759
+ var self=this;
760
+ return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
761
+ return self;}
762
+ }),
763
+ smalltalk.HashedCollection);
764
+
765
+ smalltalk.addMethod(
766
+ unescape('_includesKey_'),
767
+ smalltalk.method({
768
+ selector: unescape('includesKey%3A'),
769
+ fn: function (aKey){
770
+ var self=this;
771
+ return self.hasOwnProperty(aKey);
772
+ return self;}
773
+ }),
774
+ smalltalk.HashedCollection);
775
+
776
+ smalltalk.addMethod(
777
+ unescape('_keys'),
778
+ smalltalk.method({
779
+ selector: unescape('keys'),
780
+ fn: function (){
781
+ var self=this;
782
+
783
+ var keys = [];
784
+ for(var i in self) {
785
+ if(self.hasOwnProperty(i)) {
786
+ keys.push(i);
787
+ }
788
+ };
789
+ return keys;
790
+ ;
791
+ return self;}
792
+ }),
793
+ smalltalk.HashedCollection);
794
+
795
+ smalltalk.addMethod(
796
+ unescape('_keysAndValuesDo_'),
797
+ smalltalk.method({
798
+ selector: unescape('keysAndValuesDo%3A'),
799
+ fn: function (aBlock){
800
+ var self=this;
801
+ smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
802
+ return self;}
803
+ }),
804
+ smalltalk.HashedCollection);
805
+
806
+ smalltalk.addMethod(
807
+ unescape('_printString'),
808
+ smalltalk.method({
809
+ selector: unescape('printString'),
810
+ fn: function (){
811
+ var self=this;
812
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Collection)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
813
+ return self;}
814
+ }),
815
+ smalltalk.HashedCollection);
816
+
817
+ smalltalk.addMethod(
818
+ unescape('_remove_ifAbsent_'),
819
+ smalltalk.method({
820
+ selector: unescape('remove%3AifAbsent%3A'),
821
+ fn: function (aKey, aBlock){
822
+ var self=this;
823
+ return smalltalk.send(self, "_removeKey_ifAbsent_", [aKey, aBlock]);
824
+ return self;}
825
+ }),
826
+ smalltalk.HashedCollection);
827
+
828
+ smalltalk.addMethod(
829
+ unescape('_removeKey_'),
830
+ smalltalk.method({
831
+ selector: unescape('removeKey%3A'),
832
+ fn: function (aKey){
833
+ var self=this;
834
+ return smalltalk.send(self, "_remove_", [aKey]);
835
+ return self;}
836
+ }),
837
+ smalltalk.HashedCollection);
838
+
839
+ smalltalk.addMethod(
840
+ unescape('_removeKey_ifAbsent_'),
841
+ smalltalk.method({
842
+ selector: unescape('removeKey%3AifAbsent%3A'),
843
+ fn: function (aKey, aBlock){
844
+ var self=this;
845
+ return ((($receiver = smalltalk.send(self, "_includesKey_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(aBlock, "_value", []);}), (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})]));
846
+ return self;}
847
+ }),
848
+ smalltalk.HashedCollection);
849
+
850
+ smalltalk.addMethod(
851
+ unescape('_select_'),
852
+ smalltalk.method({
853
+ selector: unescape('select%3A'),
854
+ fn: function (aBlock){
855
+ var self=this;
856
+ var newDict=nil;
857
+ (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
858
+ smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
859
+ return newDict;
860
+ return self;}
861
+ }),
862
+ smalltalk.HashedCollection);
863
+
864
+ smalltalk.addMethod(
865
+ unescape('_shallowCopy'),
866
+ smalltalk.method({
867
+ selector: unescape('shallowCopy'),
868
+ fn: function (){
869
+ var self=this;
870
+ var copy=nil;
871
+ (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
872
+ smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
873
+ return copy;
874
+ return self;}
875
+ }),
876
+ smalltalk.HashedCollection);
877
+
878
+ smalltalk.addMethod(
879
+ unescape('_size'),
880
+ smalltalk.method({
881
+ selector: unescape('size'),
882
+ fn: function (){
883
+ var self=this;
884
+ return smalltalk.send(smalltalk.send(self, "_keys", []), "_size", []);
885
+ return self;}
886
+ }),
887
+ smalltalk.HashedCollection);
888
+
889
+ smalltalk.addMethod(
890
+ unescape('_storeOn_'),
891
+ smalltalk.method({
892
+ selector: unescape('storeOn%3A'),
893
+ fn: function (aStream){
894
+ var self=this;
895
+ smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
896
+ smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
897
+ smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
898
+ return self;}
899
+ }),
900
+ smalltalk.HashedCollection);
901
+
902
+ smalltalk.addMethod(
903
+ unescape('_values'),
904
+ smalltalk.method({
905
+ selector: unescape('values'),
906
+ fn: function (){
907
+ var self=this;
908
+ return smalltalk.send(smalltalk.send(self, "_keys", []), "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
909
+ return self;}
910
+ }),
911
+ smalltalk.HashedCollection);
912
+
913
+
914
+ smalltalk.addMethod(
915
+ unescape('_fromPairs_'),
916
+ smalltalk.method({
917
+ selector: unescape('fromPairs%3A'),
918
+ fn: function (aCollection){
919
+ var self=this;
920
+ var dict=nil;
921
+ (dict=smalltalk.send(self, "_new", []));
922
+ smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
923
+ return dict;
924
+ return self;}
925
+ }),
926
+ smalltalk.HashedCollection.klass);
927
+
928
+
929
+ smalltalk.addClass('Dictionary', smalltalk.HashedCollection, ['keys', 'values'], 'Kernel-Collections');
930
+ smalltalk.addMethod(
931
+ unescape('_asHashedCollection'),
932
+ smalltalk.method({
933
+ selector: unescape('asHashedCollection'),
934
+ fn: function (){
935
+ var self=this;
936
+ return smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
937
+ return self;}
938
+ }),
939
+ smalltalk.Dictionary);
940
+
941
+ smalltalk.addMethod(
942
+ unescape('_asJSON'),
943
+ smalltalk.method({
944
+ selector: unescape('asJSON'),
945
+ fn: function (){
946
+ var self=this;
947
+ return smalltalk.send(smalltalk.send(self, "_asHashedCollection", []), "_asJSON", []);
948
+ return self;}
949
+ }),
950
+ smalltalk.Dictionary);
951
+
952
+ smalltalk.addMethod(
953
+ unescape('_at_ifAbsent_'),
954
+ smalltalk.method({
955
+ selector: unescape('at%3AifAbsent%3A'),
956
+ fn: function (aKey, aBlock){
957
+ var self=this;
958
+
959
+ var index;
960
+ for(var i=0;i<self['@keys'].length;i++){
961
+ if(self['@keys'][i].__eq(aKey)) {index = i;}
962
+ };
963
+ if(typeof index === 'undefined') {
964
+ return aBlock();
965
+ } else {
966
+ return self['@values'][index];
967
+ }
968
+ ;
969
+ return self;}
970
+ }),
971
+ smalltalk.Dictionary);
972
+
973
+ smalltalk.addMethod(
974
+ unescape('_at_put_'),
975
+ smalltalk.method({
976
+ selector: unescape('at%3Aput%3A'),
977
+ fn: function (aKey, aValue){
978
+ var self=this;
979
+
980
+ var index = self['@keys'].indexOf(aKey);
981
+ if(index === -1) {
982
+ self['@values'].push(aValue);
983
+ self['@keys'].push(aKey);
984
+ } else {
985
+ self['@values'][index] = aValue;
986
+ };
987
+
988
+ return aValue;
989
+ ;
990
+ return self;}
991
+ }),
992
+ smalltalk.Dictionary);
993
+
994
+ smalltalk.addMethod(
995
+ unescape('_includesKey_'),
996
+ smalltalk.method({
997
+ selector: unescape('includesKey%3A'),
998
+ fn: function (aKey){
999
+ var self=this;
1000
+ return smalltalk.send(self['@keys'], "_includes_", [aKey]);
1001
+ return self;}
1002
+ }),
1003
+ smalltalk.Dictionary);
1004
+
1005
+ smalltalk.addMethod(
1006
+ unescape('_initialize'),
1007
+ smalltalk.method({
1008
+ selector: unescape('initialize'),
1009
+ fn: function (){
1010
+ var self=this;
1011
+ smalltalk.send(self, "_initialize", [], smalltalk.HashedCollection);
1012
+ (self['@keys']=[]);
1013
+ (self['@values']=[]);
1014
+ return self;}
1015
+ }),
1016
+ smalltalk.Dictionary);
1017
+
1018
+ smalltalk.addMethod(
1019
+ unescape('_keys'),
1020
+ smalltalk.method({
1021
+ selector: unescape('keys'),
1022
+ fn: function (){
1023
+ var self=this;
1024
+ return smalltalk.send(self['@keys'], "_copy", []);
1025
+ return self;}
1026
+ }),
1027
+ smalltalk.Dictionary);
1028
+
1029
+ smalltalk.addMethod(
1030
+ unescape('_removeKey_ifAbsent_'),
1031
+ smalltalk.method({
1032
+ selector: unescape('removeKey%3AifAbsent%3A'),
1033
+ fn: function (aKey, aBlock){
1034
+ var self=this;
1035
+
1036
+ var index = self['@keys'].indexOf(aKey);
1037
+ if(index === -1) {
1038
+ return aBlock()
1039
+ } else {
1040
+ var value;
1041
+ self['@keys'].splice(index, 1);
1042
+ value = self['@values'].splice(index, 1);
1043
+ return value[0];
1044
+ };
1045
+ ;
1046
+ return self;}
1047
+ }),
1048
+ smalltalk.Dictionary);
1049
+
1050
+ smalltalk.addMethod(
1051
+ unescape('_values'),
1052
+ smalltalk.method({
1053
+ selector: unescape('values'),
1054
+ fn: function (){
1055
+ var self=this;
1056
+ return smalltalk.send(self['@values'], "_copy", []);
1057
+ return self;}
1058
+ }),
1059
+ smalltalk.Dictionary);
1060
+
1061
+
1062
+
1063
+ smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel-Collections');
1064
+ smalltalk.addMethod(
1065
+ unescape('__eq'),
1066
+ smalltalk.method({
1067
+ selector: unescape('%3D'),
1068
+ fn: function (aCollection){
1069
+ var self=this;
1070
+ try{((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aCollection, "_size", [])]);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
1071
+ smalltalk.send(self, "_withIndexDo_", [(function(each, i){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_at_", [i]), "__eq", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));})]);
1072
+ (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
1073
+ return self;
1074
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
1075
+ }),
1076
+ smalltalk.SequenceableCollection);
1077
+
1078
+ smalltalk.addMethod(
1079
+ unescape('_addLast_'),
1080
+ smalltalk.method({
1081
+ selector: unescape('addLast%3A'),
1082
+ fn: function (anObject){
1083
+ var self=this;
1084
+ smalltalk.send(self, "_add_", [anObject]);
1085
+ return self;}
1086
+ }),
1087
+ smalltalk.SequenceableCollection);
1088
+
1089
+ smalltalk.addMethod(
1090
+ unescape('_allButFirst'),
1091
+ smalltalk.method({
1092
+ selector: unescape('allButFirst'),
1093
+ fn: function (){
1094
+ var self=this;
1095
+ return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
1096
+ return self;}
1097
+ }),
1098
+ smalltalk.SequenceableCollection);
1099
+
1100
+ smalltalk.addMethod(
1101
+ unescape('_allButLast'),
1102
+ smalltalk.method({
1103
+ selector: unescape('allButLast'),
1104
+ fn: function (){
1105
+ var self=this;
1106
+ return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
1107
+ return self;}
1108
+ }),
1109
+ smalltalk.SequenceableCollection);
1110
+
1111
+ smalltalk.addMethod(
1112
+ unescape('_at_'),
1113
+ smalltalk.method({
1114
+ selector: unescape('at%3A'),
1115
+ fn: function (anIndex){
1116
+ var self=this;
1117
+ return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
1118
+ return self;}
1119
+ }),
1120
+ smalltalk.SequenceableCollection);
1121
+
1122
+ smalltalk.addMethod(
1123
+ unescape('_at_ifAbsent_'),
1124
+ smalltalk.method({
1125
+ selector: unescape('at%3AifAbsent%3A'),
1126
+ fn: function (anIndex, aBlock){
1127
+ var self=this;
1128
+ smalltalk.send(self, "_subclassResponsibility", []);
1129
+ return self;}
1130
+ }),
1131
+ smalltalk.SequenceableCollection);
1132
+
1133
+ smalltalk.addMethod(
1134
+ unescape('_at_put_'),
1135
+ smalltalk.method({
1136
+ selector: unescape('at%3Aput%3A'),
1137
+ fn: function (anIndex, anObject){
1138
+ var self=this;
1139
+ smalltalk.send(self, "_subclassResponsibility", []);
1140
+ return self;}
1141
+ }),
1142
+ smalltalk.SequenceableCollection);
1143
+
1144
+ smalltalk.addMethod(
1145
+ unescape('_atRandom'),
1146
+ smalltalk.method({
1147
+ selector: unescape('atRandom'),
1148
+ fn: function (){
1149
+ var self=this;
1150
+ return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
1151
+ return self;}
1152
+ }),
1153
+ smalltalk.SequenceableCollection);
1154
+
1155
+ smalltalk.addMethod(
1156
+ unescape('_copyFrom_to_'),
1157
+ smalltalk.method({
1158
+ selector: unescape('copyFrom%3Ato%3A'),
1159
+ fn: function (anIndex, anotherIndex){
1160
+ var self=this;
1161
+ var range=nil;
1162
+ var newCollection=nil;
1163
+ (range=smalltalk.send(anIndex, "_to_", [anotherIndex]));
1164
+ (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(range, "_size", [])]));
1165
+ smalltalk.send(range, "_withIndexDo_", [(function(each, i){return smalltalk.send(newCollection, "_at_put_", [i, smalltalk.send(self, "_at_", [each])]);})]);
1166
+ return newCollection;
1167
+ return self;}
1168
+ }),
1169
+ smalltalk.SequenceableCollection);
1170
+
1171
+ smalltalk.addMethod(
1172
+ unescape('_deepCopy'),
1173
+ smalltalk.method({
1174
+ selector: unescape('deepCopy'),
1175
+ fn: function (){
1176
+ var self=this;
1177
+ var newCollection=nil;
1178
+ (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
1179
+ smalltalk.send(self, "_withIndexDo_", [(function(each, index){return smalltalk.send(newCollection, "_at_put_", [index, smalltalk.send(each, "_deepCopy", [])]);})]);
1180
+ return newCollection;
1181
+ return self;}
1182
+ }),
1183
+ smalltalk.SequenceableCollection);
1184
+
1185
+ smalltalk.addMethod(
1186
+ unescape('_first'),
1187
+ smalltalk.method({
1188
+ selector: unescape('first'),
1189
+ fn: function (){
1190
+ var self=this;
1191
+ return smalltalk.send(self, "_at_", [(1)]);
1192
+ return self;}
1193
+ }),
1194
+ smalltalk.SequenceableCollection);
1195
+
1196
+ smalltalk.addMethod(
1197
+ unescape('_first_'),
1198
+ smalltalk.method({
1199
+ selector: unescape('first%3A'),
1200
+ fn: function (n){
1201
+ var self=this;
1202
+ return smalltalk.send(self, "_copyFrom_to_", [(1), n]);
1203
+ return self;}
1204
+ }),
1205
+ smalltalk.SequenceableCollection);
1206
+
1207
+ smalltalk.addMethod(
1208
+ unescape('_fourth'),
1209
+ smalltalk.method({
1210
+ selector: unescape('fourth'),
1211
+ fn: function (){
1212
+ var self=this;
1213
+ return smalltalk.send(self, "_at_", [(4)]);
1214
+ return self;}
1215
+ }),
1216
+ smalltalk.SequenceableCollection);
1217
+
1218
+ smalltalk.addMethod(
1219
+ unescape('_indexOf_'),
1220
+ smalltalk.method({
1221
+ selector: unescape('indexOf%3A'),
1222
+ fn: function (anObject){
1223
+ var self=this;
1224
+ return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
1225
+ return self;}
1226
+ }),
1227
+ smalltalk.SequenceableCollection);
1228
+
1229
+ smalltalk.addMethod(
1230
+ unescape('_indexOf_ifAbsent_'),
1231
+ smalltalk.method({
1232
+ selector: unescape('indexOf%3AifAbsent%3A'),
1233
+ fn: function (anObject, aBlock){
1234
+ var self=this;
1235
+
1236
+ for(var i=0;i<self.length;i++){
1237
+ if(self[i].__eq(anObject)) {return i+1}
1238
+ }
1239
+ return aBlock();
1240
+ ;
1241
+ return self;}
1242
+ }),
1243
+ smalltalk.SequenceableCollection);
1244
+
1245
+ smalltalk.addMethod(
1246
+ unescape('_indexOf_startingAt_'),
1247
+ smalltalk.method({
1248
+ selector: unescape('indexOf%3AstartingAt%3A'),
1249
+ fn: function (anObject, start){
1250
+ var self=this;
1251
+ return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
1252
+ return self;}
1253
+ }),
1254
+ smalltalk.SequenceableCollection);
1255
+
1256
+ smalltalk.addMethod(
1257
+ unescape('_indexOf_startingAt_ifAbsent_'),
1258
+ smalltalk.method({
1259
+ selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
1260
+ fn: function (anObject, start, aBlock){
1261
+ var self=this;
1262
+
1263
+ for(var i=start-1;i<self.length;i++){
1264
+ if(self[i].__eq(anObject)) {return i+1}
1265
+ }
1266
+ return aBlock();
1267
+ ;
1268
+ return self;}
1269
+ }),
1270
+ smalltalk.SequenceableCollection);
1271
+
1272
+ smalltalk.addMethod(
1273
+ unescape('_last'),
1274
+ smalltalk.method({
1275
+ selector: unescape('last'),
1276
+ fn: function (){
1277
+ var self=this;
1278
+ return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
1279
+ return self;}
1280
+ }),
1281
+ smalltalk.SequenceableCollection);
1282
+
1283
+ smalltalk.addMethod(
1284
+ unescape('_printString'),
1285
+ smalltalk.method({
1286
+ selector: unescape('printString'),
1287
+ fn: function (){
1288
+ var self=this;
1289
+ var str=nil;
1290
+ (str=smalltalk.send("", "_writeStream", []));
1291
+ smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Collection), "__comma", [unescape("%20%28")])]);
1292
+ smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
1293
+ smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
1294
+ return smalltalk.send(str, "_contents", []);
1295
+ return self;}
1296
+ }),
1297
+ smalltalk.SequenceableCollection);
1298
+
1299
+ smalltalk.addMethod(
1300
+ unescape('_removeLast'),
1301
+ smalltalk.method({
1302
+ selector: unescape('removeLast'),
1303
+ fn: function (){
1304
+ var self=this;
1305
+ smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
1306
+ return self;}
1307
+ }),
1308
+ smalltalk.SequenceableCollection);
1309
+
1310
+ smalltalk.addMethod(
1311
+ unescape('_reversed'),
1312
+ smalltalk.method({
1313
+ selector: unescape('reversed'),
1314
+ fn: function (){
1315
+ var self=this;
1316
+ smalltalk.send(self, "_subclassResponsibility", []);
1317
+ return self;}
1318
+ }),
1319
+ smalltalk.SequenceableCollection);
1320
+
1321
+ smalltalk.addMethod(
1322
+ unescape('_second'),
1323
+ smalltalk.method({
1324
+ selector: unescape('second'),
1325
+ fn: function (){
1326
+ var self=this;
1327
+ return smalltalk.send(self, "_at_", [(2)]);
1328
+ return self;}
1329
+ }),
1330
+ smalltalk.SequenceableCollection);
1331
+
1332
+ smalltalk.addMethod(
1333
+ unescape('_shallowCopy'),
1334
+ smalltalk.method({
1335
+ selector: unescape('shallowCopy'),
1336
+ fn: function (){
1337
+ var self=this;
1338
+ var newCollection=nil;
1339
+ (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
1340
+ smalltalk.send(self, "_withIndexDo_", [(function(each, index){return smalltalk.send(newCollection, "_at_put_", [index, each]);})]);
1341
+ return newCollection;
1342
+ return self;}
1343
+ }),
1344
+ smalltalk.SequenceableCollection);
1345
+
1346
+ smalltalk.addMethod(
1347
+ unescape('_third'),
1348
+ smalltalk.method({
1349
+ selector: unescape('third'),
1350
+ fn: function (){
1351
+ var self=this;
1352
+ return smalltalk.send(self, "_at_", [(3)]);
1353
+ return self;}
1354
+ }),
1355
+ smalltalk.SequenceableCollection);
1356
+
1357
+ smalltalk.addMethod(
1358
+ unescape('_withIndexDo_'),
1359
+ smalltalk.method({
1360
+ selector: unescape('withIndexDo%3A'),
1361
+ fn: function (aBlock){
1362
+ var self=this;
1363
+ for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
1364
+ return self;}
1365
+ }),
1366
+ smalltalk.SequenceableCollection);
1367
+
1368
+
1369
+
1370
+ smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel-Collections');
1371
+ smalltalk.addMethod(
1372
+ unescape('_add_'),
1373
+ smalltalk.method({
1374
+ selector: unescape('add%3A'),
1375
+ fn: function (anObject){
1376
+ var self=this;
1377
+ self.push(anObject); return anObject;;
1378
+ return self;}
1379
+ }),
1380
+ smalltalk.Array);
1381
+
1382
+ smalltalk.addMethod(
1383
+ unescape('_asJavascript'),
1384
+ smalltalk.method({
1385
+ selector: unescape('asJavascript'),
1386
+ fn: function (){
1387
+ var self=this;
1388
+ return smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [unescape("%2C%20")])]), "__comma", [unescape("%5D")]);
1389
+ return self;}
1390
+ }),
1391
+ smalltalk.Array);
1392
+
1393
+ smalltalk.addMethod(
1394
+ unescape('_at_ifAbsent_'),
1395
+ smalltalk.method({
1396
+ selector: unescape('at%3AifAbsent%3A'),
1397
+ fn: function (anIndex, aBlock){
1398
+ var self=this;
1399
+
1400
+ var value = self[anIndex - 1];
1401
+ if(value === undefined) {
1402
+ return aBlock();
1403
+ } else {
1404
+ return value;
1405
+ }
1406
+ ;
1407
+ return self;}
1408
+ }),
1409
+ smalltalk.Array);
1410
+
1411
+ smalltalk.addMethod(
1412
+ unescape('_at_put_'),
1413
+ smalltalk.method({
1414
+ selector: unescape('at%3Aput%3A'),
1415
+ fn: function (anIndex, anObject){
1416
+ var self=this;
1417
+ return self[anIndex - 1] = anObject;
1418
+ return self;}
1419
+ }),
1420
+ smalltalk.Array);
1421
+
1422
+ smalltalk.addMethod(
1423
+ unescape('_join_'),
1424
+ smalltalk.method({
1425
+ selector: unescape('join%3A'),
1426
+ fn: function (aString){
1427
+ var self=this;
1428
+ return self.join(aString);
1429
+ return self;}
1430
+ }),
1431
+ smalltalk.Array);
1432
+
1433
+ smalltalk.addMethod(
1434
+ unescape('_remove_'),
1435
+ smalltalk.method({
1436
+ selector: unescape('remove%3A'),
1437
+ fn: function (anObject){
1438
+ var self=this;
1439
+
1440
+ for(var i=0;i<self.length;i++) {
1441
+ if(self[i] == anObject) {
1442
+ self.splice(i,1);
1443
+ break;
1444
+ }
1445
+ }
1446
+ ;
1447
+ return self;}
1448
+ }),
1449
+ smalltalk.Array);
1450
+
1451
+ smalltalk.addMethod(
1452
+ unescape('_removeFrom_to_'),
1453
+ smalltalk.method({
1454
+ selector: unescape('removeFrom%3Ato%3A'),
1455
+ fn: function (aNumber, anotherNumber){
1456
+ var self=this;
1457
+ self.splice(aNumber - 1,anotherNumber - 1);
1458
+ return self;}
1459
+ }),
1460
+ smalltalk.Array);
1461
+
1462
+ smalltalk.addMethod(
1463
+ unescape('_reversed'),
1464
+ smalltalk.method({
1465
+ selector: unescape('reversed'),
1466
+ fn: function (){
1467
+ var self=this;
1468
+ return self._copy().reverse();
1469
+ return self;}
1470
+ }),
1471
+ smalltalk.Array);
1472
+
1473
+ smalltalk.addMethod(
1474
+ unescape('_size'),
1475
+ smalltalk.method({
1476
+ selector: unescape('size'),
1477
+ fn: function (){
1478
+ var self=this;
1479
+ return self.length;
1480
+ return self;}
1481
+ }),
1482
+ smalltalk.Array);
1483
+
1484
+ smalltalk.addMethod(
1485
+ unescape('_sort'),
1486
+ smalltalk.method({
1487
+ selector: unescape('sort'),
1488
+ fn: function (){
1489
+ var self=this;
1490
+ return smalltalk.send(self, "_basicPerform_", ["sort"]);
1491
+ return self;}
1492
+ }),
1493
+ smalltalk.Array);
1494
+
1495
+ smalltalk.addMethod(
1496
+ unescape('_sort_'),
1497
+ smalltalk.method({
1498
+ selector: unescape('sort%3A'),
1499
+ fn: function (aBlock){
1500
+ var self=this;
1501
+
1502
+ return self.sort(function(a, b) {
1503
+ if(aBlock(a,b)) {return -1} else {return 1}
1504
+ })
1505
+ ;
1506
+ return self;}
1507
+ }),
1508
+ smalltalk.Array);
1509
+
1510
+ smalltalk.addMethod(
1511
+ unescape('_sorted'),
1512
+ smalltalk.method({
1513
+ selector: unescape('sorted'),
1514
+ fn: function (){
1515
+ var self=this;
1516
+ return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
1517
+ return self;}
1518
+ }),
1519
+ smalltalk.Array);
1520
+
1521
+ smalltalk.addMethod(
1522
+ unescape('_sorted_'),
1523
+ smalltalk.method({
1524
+ selector: unescape('sorted%3A'),
1525
+ fn: function (aBlock){
1526
+ var self=this;
1527
+ return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
1528
+ return self;}
1529
+ }),
1530
+ smalltalk.Array);
1531
+
1532
+
1533
+ smalltalk.addMethod(
1534
+ unescape('_new_'),
1535
+ smalltalk.method({
1536
+ selector: unescape('new%3A'),
1537
+ fn: function (anInteger){
1538
+ var self=this;
1539
+ return new Array(anInteger);
1540
+ return self;}
1541
+ }),
1542
+ smalltalk.Array.klass);
1543
+
1544
+ smalltalk.addMethod(
1545
+ unescape('_with_'),
1546
+ smalltalk.method({
1547
+ selector: unescape('with%3A'),
1548
+ fn: function (anObject){
1549
+ var self=this;
1550
+ return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(1)]));
1551
+ return self;}
1552
+ }),
1553
+ smalltalk.Array.klass);
1554
+
1555
+ smalltalk.addMethod(
1556
+ unescape('_with_with_'),
1557
+ smalltalk.method({
1558
+ selector: unescape('with%3Awith%3A'),
1559
+ fn: function (anObject, anObject2){
1560
+ var self=this;
1561
+ return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(2)]));
1562
+ return self;}
1563
+ }),
1564
+ smalltalk.Array.klass);
1565
+
1566
+ smalltalk.addMethod(
1567
+ unescape('_with_with_with_'),
1568
+ smalltalk.method({
1569
+ selector: unescape('with%3Awith%3Awith%3A'),
1570
+ fn: function (anObject, anObject2, anObject3){
1571
+ var self=this;
1572
+ return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);smalltalk.send($rec, "_at_put_", [(3), anObject3]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(3)]));
1573
+ return self;}
1574
+ }),
1575
+ smalltalk.Array.klass);
1576
+
1577
+ smalltalk.addMethod(
1578
+ unescape('_withAll_'),
1579
+ smalltalk.method({
1580
+ selector: unescape('withAll%3A'),
1581
+ fn: function (aCollection){
1582
+ var self=this;
1583
+ var instance=nil;
1584
+ (instance=smalltalk.send(self, "_new_", [smalltalk.send(aCollection, "_size", [])]));
1585
+ smalltalk.send(aCollection, "_withIndexDo_", [(function(each, index){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
1586
+ return instance;
1587
+ return self;}
1588
+ }),
1589
+ smalltalk.Array.klass);
1590
+
1591
+
1592
+ smalltalk.addClass('CharacterArray', smalltalk.SequenceableCollection, [], 'Kernel-Collections');
1593
+ smalltalk.addMethod(
1594
+ unescape('__comma'),
1595
+ smalltalk.method({
1596
+ selector: unescape('%2C'),
1597
+ fn: function (aString){
1598
+ var self=this;
1599
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", [smalltalk.send(aString, "_asString", [])]);
1600
+ return self;}
1601
+ }),
1602
+ smalltalk.CharacterArray);
1603
+
1604
+ smalltalk.addMethod(
1605
+ unescape('_add_'),
1606
+ smalltalk.method({
1607
+ selector: unescape('add%3A'),
1608
+ fn: function (anObject){
1609
+ var self=this;
1610
+ smalltalk.send(self, "_errorReadOnly", []);
1611
+ return self;}
1612
+ }),
1613
+ smalltalk.CharacterArray);
1614
+
1615
+ smalltalk.addMethod(
1616
+ unescape('_asLowercase'),
1617
+ smalltalk.method({
1618
+ selector: unescape('asLowercase'),
1619
+ fn: function (){
1620
+ var self=this;
1621
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asLowercase", [])]);
1622
+ return self;}
1623
+ }),
1624
+ smalltalk.CharacterArray);
1625
+
1626
+ smalltalk.addMethod(
1627
+ unescape('_asNumber'),
1628
+ smalltalk.method({
1629
+ selector: unescape('asNumber'),
1630
+ fn: function (){
1631
+ var self=this;
1632
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_asNumber", []);
1633
+ return self;}
1634
+ }),
1635
+ smalltalk.CharacterArray);
1636
+
1637
+ smalltalk.addMethod(
1638
+ unescape('_asString'),
1639
+ smalltalk.method({
1640
+ selector: unescape('asString'),
1641
+ fn: function (){
1642
+ var self=this;
1643
+ return smalltalk.send(self, "_subclassResponsibility", []);
1644
+ return self;}
1645
+ }),
1646
+ smalltalk.CharacterArray);
1647
+
1648
+ smalltalk.addMethod(
1649
+ unescape('_asSymbol'),
1650
+ smalltalk.method({
1651
+ selector: unescape('asSymbol'),
1652
+ fn: function (){
1653
+ var self=this;
1654
+ return smalltalk.send(self, "_subclassResponsibility", []);
1655
+ return self;}
1656
+ }),
1657
+ smalltalk.CharacterArray);
1658
+
1659
+ smalltalk.addMethod(
1660
+ unescape('_asUppercase'),
1661
+ smalltalk.method({
1662
+ selector: unescape('asUppercase'),
1663
+ fn: function (){
1664
+ var self=this;
1665
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asUppercase", [])]);
1666
+ return self;}
1667
+ }),
1668
+ smalltalk.CharacterArray);
1669
+
1670
+ smalltalk.addMethod(
1671
+ unescape('_at_put_'),
1672
+ smalltalk.method({
1673
+ selector: unescape('at%3Aput%3A'),
1674
+ fn: function (anIndex, anObject){
1675
+ var self=this;
1676
+ smalltalk.send(self, "_errorReadOnly", []);
1677
+ return self;}
1678
+ }),
1679
+ smalltalk.CharacterArray);
1680
+
1681
+ smalltalk.addMethod(
1682
+ unescape('_errorReadOnly'),
1683
+ smalltalk.method({
1684
+ selector: unescape('errorReadOnly'),
1685
+ fn: function (){
1686
+ var self=this;
1687
+ smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
1688
+ return self;}
1689
+ }),
1690
+ smalltalk.CharacterArray);
1691
+
1692
+ smalltalk.addMethod(
1693
+ unescape('_printString'),
1694
+ smalltalk.method({
1695
+ selector: unescape('printString'),
1696
+ fn: function (){
1697
+ var self=this;
1698
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_printString", []);
1699
+ return self;}
1700
+ }),
1701
+ smalltalk.CharacterArray);
1702
+
1703
+ smalltalk.addMethod(
1704
+ unescape('_remove_'),
1705
+ smalltalk.method({
1706
+ selector: unescape('remove%3A'),
1707
+ fn: function (anObject){
1708
+ var self=this;
1709
+ smalltalk.send(self, "_errorReadOnly", []);
1710
+ return self;}
1711
+ }),
1712
+ smalltalk.CharacterArray);
1713
+
1714
+
1715
+ smalltalk.addMethod(
1716
+ unescape('_fromString_'),
1717
+ smalltalk.method({
1718
+ selector: unescape('fromString%3A'),
1719
+ fn: function (aString){
1720
+ var self=this;
1721
+ smalltalk.send(self, "_subclassResponsibility", []);
1722
+ return self;}
1723
+ }),
1724
+ smalltalk.CharacterArray.klass);
1725
+
1726
+
1727
+ smalltalk.addClass('String', smalltalk.CharacterArray, [], 'Kernel-Collections');
1728
+ smalltalk.addMethod(
1729
+ unescape('__comma'),
1730
+ smalltalk.method({
1731
+ selector: unescape('%2C'),
1732
+ fn: function (aString){
1733
+ var self=this;
1734
+ return self + aString;
1735
+ return self;}
1736
+ }),
1737
+ smalltalk.String);
1738
+
1739
+ smalltalk.addMethod(
1740
+ unescape('__lt'),
1741
+ smalltalk.method({
1742
+ selector: unescape('%3C'),
1743
+ fn: function (aString){
1744
+ var self=this;
1745
+ return String(self) < aString._asString();
1746
+ return self;}
1747
+ }),
1748
+ smalltalk.String);
1749
+
1750
+ smalltalk.addMethod(
1751
+ unescape('__lt_eq'),
1752
+ smalltalk.method({
1753
+ selector: unescape('%3C%3D'),
1754
+ fn: function (aString){
1755
+ var self=this;
1756
+ return String(self) <= aString._asString();
1757
+ return self;}
1758
+ }),
1759
+ smalltalk.String);
1760
+
1761
+ smalltalk.addMethod(
1762
+ unescape('__eq'),
1763
+ smalltalk.method({
1764
+ selector: unescape('%3D'),
1765
+ fn: function (aString){
1766
+ var self=this;
1767
+ try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
1768
+ return String(self) === String(aString);
1769
+ return self;
1770
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
1771
+ }),
1772
+ smalltalk.String);
1773
+
1774
+ smalltalk.addMethod(
1775
+ unescape('__gt'),
1776
+ smalltalk.method({
1777
+ selector: unescape('%3E'),
1778
+ fn: function (aString){
1779
+ var self=this;
1780
+ return String(self) > aString._asString();
1781
+ return self;}
1782
+ }),
1783
+ smalltalk.String);
1784
+
1785
+ smalltalk.addMethod(
1786
+ unescape('__gt_eq'),
1787
+ smalltalk.method({
1788
+ selector: unescape('%3E%3D'),
1789
+ fn: function (aString){
1790
+ var self=this;
1791
+ return String(self) >= aString._asString();
1792
+ return self;}
1793
+ }),
1794
+ smalltalk.String);
1795
+
1796
+ smalltalk.addMethod(
1797
+ unescape('_asJSON'),
1798
+ smalltalk.method({
1799
+ selector: unescape('asJSON'),
1800
+ fn: function (){
1801
+ var self=this;
1802
+ return self;
1803
+ return self;}
1804
+ }),
1805
+ smalltalk.String);
1806
+
1807
+ smalltalk.addMethod(
1808
+ unescape('_asJavaScriptSelector'),
1809
+ smalltalk.method({
1810
+ selector: unescape('asJavaScriptSelector'),
1811
+ fn: function (){
1812
+ var self=this;
1813
+ return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
1814
+ return self;}
1815
+ }),
1816
+ smalltalk.String);
1817
+
1818
+ smalltalk.addMethod(
1819
+ unescape('_asJavascript'),
1820
+ smalltalk.method({
1821
+ selector: unescape('asJavascript'),
1822
+ fn: function (){
1823
+ var self=this;
1824
+
1825
+ if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
1826
+ return "unescape(\"" + escape(self) + "\")";
1827
+ else
1828
+ return "\"" + self + "\"";
1829
+ ;
1830
+ return self;}
1831
+ }),
1832
+ smalltalk.String);
1833
+
1834
+ smalltalk.addMethod(
1835
+ unescape('_asLowercase'),
1836
+ smalltalk.method({
1837
+ selector: unescape('asLowercase'),
1838
+ fn: function (){
1839
+ var self=this;
1840
+ return self.toLowerCase();
1841
+ return self;}
1842
+ }),
1843
+ smalltalk.String);
1844
+
1845
+ smalltalk.addMethod(
1846
+ unescape('_asNumber'),
1847
+ smalltalk.method({
1848
+ selector: unescape('asNumber'),
1849
+ fn: function (){
1850
+ var self=this;
1851
+ return Number(self);
1852
+ return self;}
1853
+ }),
1854
+ smalltalk.String);
1855
+
1856
+ smalltalk.addMethod(
1857
+ unescape('_asSelector'),
1858
+ smalltalk.method({
1859
+ selector: unescape('asSelector'),
1860
+ fn: function (){
1861
+ var self=this;
1862
+ var selector=nil;
1863
+ (selector=smalltalk.send("_", "__comma", [self]));
1864
+ (selector=smalltalk.send(selector, "_replace_with_", [":", "_"]));
1865
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]));
1866
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]));
1867
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]));
1868
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]));
1869
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]));
1870
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]));
1871
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]));
1872
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]));
1873
+ (selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]));
1874
+ return selector;
1875
+ return self;}
1876
+ }),
1877
+ smalltalk.String);
1878
+
1879
+ smalltalk.addMethod(
1880
+ unescape('_asString'),
1881
+ smalltalk.method({
1882
+ selector: unescape('asString'),
1883
+ fn: function (){
1884
+ var self=this;
1885
+ return self;
1886
+ return self;}
1887
+ }),
1888
+ smalltalk.String);
1889
+
1890
+ smalltalk.addMethod(
1891
+ unescape('_asSymbol'),
1892
+ smalltalk.method({
1893
+ selector: unescape('asSymbol'),
1894
+ fn: function (){
1895
+ var self=this;
1896
+ return smalltalk.send((smalltalk.Symbol || Symbol), "_lookup_", [self]);
1897
+ return self;}
1898
+ }),
1899
+ smalltalk.String);
1900
+
1901
+ smalltalk.addMethod(
1902
+ unescape('_asUppercase'),
1903
+ smalltalk.method({
1904
+ selector: unescape('asUppercase'),
1905
+ fn: function (){
1906
+ var self=this;
1907
+ return self.toUpperCase();
1908
+ return self;}
1909
+ }),
1910
+ smalltalk.String);
1911
+
1912
+ smalltalk.addMethod(
1913
+ unescape('_asciiValue'),
1914
+ smalltalk.method({
1915
+ selector: unescape('asciiValue'),
1916
+ fn: function (){
1917
+ var self=this;
1918
+ return self.charCodeAt(0);;
1919
+ return self;}
1920
+ }),
1921
+ smalltalk.String);
1922
+
1923
+ smalltalk.addMethod(
1924
+ unescape('_at_ifAbsent_'),
1925
+ smalltalk.method({
1926
+ selector: unescape('at%3AifAbsent%3A'),
1927
+ fn: function (anIndex, aBlock){
1928
+ var self=this;
1929
+ return self[anIndex - 1] || aBlock();
1930
+ return self;}
1931
+ }),
1932
+ smalltalk.String);
1933
+
1934
+ smalltalk.addMethod(
1935
+ unescape('_copyFrom_to_'),
1936
+ smalltalk.method({
1937
+ selector: unescape('copyFrom%3Ato%3A'),
1938
+ fn: function (anIndex, anotherIndex){
1939
+ var self=this;
1940
+ return self.substring(anIndex - 1, anotherIndex);
1941
+ return self;}
1942
+ }),
1943
+ smalltalk.String);
1944
+
1945
+ smalltalk.addMethod(
1946
+ unescape('_deepCopy'),
1947
+ smalltalk.method({
1948
+ selector: unescape('deepCopy'),
1949
+ fn: function (){
1950
+ var self=this;
1951
+ return smalltalk.send(self, "_shallowCopy", []);
1952
+ return self;}
1953
+ }),
1954
+ smalltalk.String);
1955
+
1956
+ smalltalk.addMethod(
1957
+ unescape('_escaped'),
1958
+ smalltalk.method({
1959
+ selector: unescape('escaped'),
1960
+ fn: function (){
1961
+ var self=this;
1962
+ return escape(self);
1963
+ return self;}
1964
+ }),
1965
+ smalltalk.String);
1966
+
1967
+ smalltalk.addMethod(
1968
+ unescape('_escapedString'),
1969
+ smalltalk.method({
1970
+ selector: unescape('escapedString'),
1971
+ fn: function (){
1972
+ var self=this;
1973
+ return smalltalk.send(self, "_replace_with_", [unescape("%27"), unescape("%27%27")]);
1974
+ return self;}
1975
+ }),
1976
+ smalltalk.String);
1977
+
1978
+ smalltalk.addMethod(
1979
+ unescape('_includesSubString_'),
1980
+ smalltalk.method({
1981
+ selector: unescape('includesSubString%3A'),
1982
+ fn: function (subString){
1983
+ var self=this;
1984
+ return self.indexOf(subString) != -1 ;
1985
+ return self;}
1986
+ }),
1987
+ smalltalk.String);
1988
+
1989
+ smalltalk.addMethod(
1990
+ unescape('_isString'),
1991
+ smalltalk.method({
1992
+ selector: unescape('isString'),
1993
+ fn: function (){
1994
+ var self=this;
1995
+ return true;
1996
+ return self;}
1997
+ }),
1998
+ smalltalk.String);
1999
+
2000
+ smalltalk.addMethod(
2001
+ unescape('_join_'),
2002
+ smalltalk.method({
2003
+ selector: unescape('join%3A'),
2004
+ fn: function (aCollection){
2005
+ var self=this;
2006
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(each, "_asString", [])]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [self]);})]);})]);
2007
+ return self;}
2008
+ }),
2009
+ smalltalk.String);
2010
+
2011
+ smalltalk.addMethod(
2012
+ unescape('_lineIndicesDo_'),
2013
+ smalltalk.method({
2014
+ selector: unescape('lineIndicesDo%3A'),
2015
+ fn: function (aBlock){
2016
+ var self=this;
2017
+ try{var cr=nil;
2018
+ var lf=nil;
2019
+ var start=nil;
2020
+ var sz=nil;
2021
+ var nextLF=nil;
2022
+ var nextCR=nil;
2023
+ (start=(1));
2024
+ (sz=smalltalk.send(self, "_size", []));
2025
+ (cr=smalltalk.send((smalltalk.String || String), "_cr", []));
2026
+ (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]));
2027
+ (lf=smalltalk.send((smalltalk.String || String), "_lf", []));
2028
+ (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]));
2029
+ (function(){while((function(){return ((($receiver = start).klass === smalltalk.Number) ? $receiver <=sz : smalltalk.send($receiver, "__lt_eq", [sz]));})()) {(function(){((($receiver = smalltalk.send(smalltalk.send(nextLF, "__eq", [(0)]), "_and_", [(function(){return smalltalk.send(nextCR, "__eq", [(0)]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})]));return ((($receiver = smalltalk.send(smalltalk.send(nextCR, "__eq", [(0)]), "_or_", [(function(){return smalltalk.send((0) < nextLF, "_and_", [(function(){return ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver <nextCR : smalltalk.send($receiver, "__lt", [nextCR]));})]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})]));})]));})()}})();
2030
+ return self;
2031
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}}
2032
+ }),
2033
+ smalltalk.String);
2034
+
2035
+ smalltalk.addMethod(
2036
+ unescape('_lineNumber_'),
2037
+ smalltalk.method({
2038
+ selector: unescape('lineNumber%3A'),
2039
+ fn: function (anIndex){
2040
+ var self=this;
2041
+ try{var lineCount=nil;
2042
+ (lineCount=(0));
2043
+ smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return ((($receiver = smalltalk.send((lineCount=((($receiver = lineCount).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))), "__eq", [anIndex])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})]));})]);
2044
+ (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
2045
+ return self;
2046
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}}
2047
+ }),
2048
+ smalltalk.String);
2049
+
2050
+ smalltalk.addMethod(
2051
+ unescape('_lines'),
2052
+ smalltalk.method({
2053
+ selector: unescape('lines'),
2054
+ fn: function (){
2055
+ var self=this;
2056
+ var lines=nil;
2057
+ (lines=smalltalk.send((smalltalk.Array || Array), "_new", []));
2058
+ smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
2059
+ return lines;
2060
+ return self;}
2061
+ }),
2062
+ smalltalk.String);
2063
+
2064
+ smalltalk.addMethod(
2065
+ unescape('_linesDo_'),
2066
+ smalltalk.method({
2067
+ selector: unescape('linesDo%3A'),
2068
+ fn: function (aBlock){
2069
+ var self=this;
2070
+ smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
2071
+ return self;}
2072
+ }),
2073
+ smalltalk.String);
2074
+
2075
+ smalltalk.addMethod(
2076
+ unescape('_match_'),
2077
+ smalltalk.method({
2078
+ selector: unescape('match%3A'),
2079
+ fn: function (aRegexp){
2080
+ var self=this;
2081
+ return self.search(aRegexp) != -1;
2082
+ return self;}
2083
+ }),
2084
+ smalltalk.String);
2085
+
2086
+ smalltalk.addMethod(
2087
+ unescape('_printNl'),
2088
+ smalltalk.method({
2089
+ selector: unescape('printNl'),
2090
+ fn: function (){
2091
+ var self=this;
2092
+ console.log(self);
2093
+ return self;}
2094
+ }),
2095
+ smalltalk.String);
2096
+
2097
+ smalltalk.addMethod(
2098
+ unescape('_printString'),
2099
+ smalltalk.method({
2100
+ selector: unescape('printString'),
2101
+ fn: function (){
2102
+ var self=this;
2103
+ return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
2104
+ return self;}
2105
+ }),
2106
+ smalltalk.String);
2107
+
2108
+ smalltalk.addMethod(
2109
+ unescape('_replace_with_'),
2110
+ smalltalk.method({
2111
+ selector: unescape('replace%3Awith%3A'),
2112
+ fn: function (aString, anotherString){
2113
+ var self=this;
2114
+ return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
2115
+ return self;}
2116
+ }),
2117
+ smalltalk.String);
2118
+
2119
+ smalltalk.addMethod(
2120
+ unescape('_replaceRegexp_with_'),
2121
+ smalltalk.method({
2122
+ selector: unescape('replaceRegexp%3Awith%3A'),
2123
+ fn: function (aRegexp, aString){
2124
+ var self=this;
2125
+ return self.replace(aRegexp, aString);
2126
+ return self;}
2127
+ }),
2128
+ smalltalk.String);
2129
+
2130
+ smalltalk.addMethod(
2131
+ unescape('_reversed'),
2132
+ smalltalk.method({
2133
+ selector: unescape('reversed'),
2134
+ fn: function (){
2135
+ var self=this;
2136
+ return self.split("").reverse().join("");
2137
+ return self;}
2138
+ }),
2139
+ smalltalk.String);
2140
+
2141
+ smalltalk.addMethod(
2142
+ unescape('_shallowCopy'),
2143
+ smalltalk.method({
2144
+ selector: unescape('shallowCopy'),
2145
+ fn: function (){
2146
+ var self=this;
2147
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
2148
+ return self;}
2149
+ }),
2150
+ smalltalk.String);
2151
+
2152
+ smalltalk.addMethod(
2153
+ unescape('_size'),
2154
+ smalltalk.method({
2155
+ selector: unescape('size'),
2156
+ fn: function (){
2157
+ var self=this;
2158
+ return self.length;
2159
+ return self;}
2160
+ }),
2161
+ smalltalk.String);
2162
+
2163
+ smalltalk.addMethod(
2164
+ unescape('_tokenize_'),
2165
+ smalltalk.method({
2166
+ selector: unescape('tokenize%3A'),
2167
+ fn: function (aString){
2168
+ var self=this;
2169
+ return self.split(aString);
2170
+ return self;}
2171
+ }),
2172
+ smalltalk.String);
2173
+
2174
+ smalltalk.addMethod(
2175
+ unescape('_trimBoth'),
2176
+ smalltalk.method({
2177
+ selector: unescape('trimBoth'),
2178
+ fn: function (){
2179
+ var self=this;
2180
+ return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
2181
+ return self;}
2182
+ }),
2183
+ smalltalk.String);
2184
+
2185
+ smalltalk.addMethod(
2186
+ unescape('_trimBoth_'),
2187
+ smalltalk.method({
2188
+ selector: unescape('trimBoth%3A'),
2189
+ fn: function (separators){
2190
+ var self=this;
2191
+ return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
2192
+ return self;}
2193
+ }),
2194
+ smalltalk.String);
2195
+
2196
+ smalltalk.addMethod(
2197
+ unescape('_trimLeft'),
2198
+ smalltalk.method({
2199
+ selector: unescape('trimLeft'),
2200
+ fn: function (){
2201
+ var self=this;
2202
+ return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
2203
+ return self;}
2204
+ }),
2205
+ smalltalk.String);
2206
+
2207
+ smalltalk.addMethod(
2208
+ unescape('_trimLeft_'),
2209
+ smalltalk.method({
2210
+ selector: unescape('trimLeft%3A'),
2211
+ fn: function (separators){
2212
+ var self=this;
2213
+ return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
2214
+ return self;}
2215
+ }),
2216
+ smalltalk.String);
2217
+
2218
+ smalltalk.addMethod(
2219
+ unescape('_trimRight'),
2220
+ smalltalk.method({
2221
+ selector: unescape('trimRight'),
2222
+ fn: function (){
2223
+ var self=this;
2224
+ return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
2225
+ return self;}
2226
+ }),
2227
+ smalltalk.String);
2228
+
2229
+ smalltalk.addMethod(
2230
+ unescape('_trimRight_'),
2231
+ smalltalk.method({
2232
+ selector: unescape('trimRight%3A'),
2233
+ fn: function (separators){
2234
+ var self=this;
2235
+ return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
2236
+ return self;}
2237
+ }),
2238
+ smalltalk.String);
2239
+
2240
+ smalltalk.addMethod(
2241
+ unescape('_unescaped'),
2242
+ smalltalk.method({
2243
+ selector: unescape('unescaped'),
2244
+ fn: function (){
2245
+ var self=this;
2246
+ return unescape(self);
2247
+ return self;}
2248
+ }),
2249
+ smalltalk.String);
2250
+
2251
+
2252
+ smalltalk.addMethod(
2253
+ unescape('_cr'),
2254
+ smalltalk.method({
2255
+ selector: unescape('cr'),
2256
+ fn: function (){
2257
+ var self=this;
2258
+ return '\r';
2259
+ return self;}
2260
+ }),
2261
+ smalltalk.String.klass);
2262
+
2263
+ smalltalk.addMethod(
2264
+ unescape('_crlf'),
2265
+ smalltalk.method({
2266
+ selector: unescape('crlf'),
2267
+ fn: function (){
2268
+ var self=this;
2269
+ return '\r\n';
2270
+ return self;}
2271
+ }),
2272
+ smalltalk.String.klass);
2273
+
2274
+ smalltalk.addMethod(
2275
+ unescape('_fromString_'),
2276
+ smalltalk.method({
2277
+ selector: unescape('fromString%3A'),
2278
+ fn: function (aString){
2279
+ var self=this;
2280
+ return new self.fn(aString);
2281
+ return self;}
2282
+ }),
2283
+ smalltalk.String.klass);
2284
+
2285
+ smalltalk.addMethod(
2286
+ unescape('_lf'),
2287
+ smalltalk.method({
2288
+ selector: unescape('lf'),
2289
+ fn: function (){
2290
+ var self=this;
2291
+ return '\n';
2292
+ return self;}
2293
+ }),
2294
+ smalltalk.String.klass);
2295
+
2296
+ smalltalk.addMethod(
2297
+ unescape('_space'),
2298
+ smalltalk.method({
2299
+ selector: unescape('space'),
2300
+ fn: function (){
2301
+ var self=this;
2302
+ return ' ';
2303
+ return self;}
2304
+ }),
2305
+ smalltalk.String.klass);
2306
+
2307
+ smalltalk.addMethod(
2308
+ unescape('_streamClass'),
2309
+ smalltalk.method({
2310
+ selector: unescape('streamClass'),
2311
+ fn: function (){
2312
+ var self=this;
2313
+ return (smalltalk.StringStream || StringStream);
2314
+ return self;}
2315
+ }),
2316
+ smalltalk.String.klass);
2317
+
2318
+ smalltalk.addMethod(
2319
+ unescape('_streamContents_'),
2320
+ smalltalk.method({
2321
+ selector: unescape('streamContents%3A'),
2322
+ fn: function (blockWithArg){
2323
+ var self=this;
2324
+ var stream=nil;
2325
+ (stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]));
2326
+ smalltalk.send(blockWithArg, "_value_", [stream]);
2327
+ return smalltalk.send(stream, "_contents", []);
2328
+ return self;}
2329
+ }),
2330
+ smalltalk.String.klass);
2331
+
2332
+ smalltalk.addMethod(
2333
+ unescape('_tab'),
2334
+ smalltalk.method({
2335
+ selector: unescape('tab'),
2336
+ fn: function (){
2337
+ var self=this;
2338
+ return '\t';
2339
+ return self;}
2340
+ }),
2341
+ smalltalk.String.klass);
2342
+
2343
+ smalltalk.addMethod(
2344
+ unescape('_value_'),
2345
+ smalltalk.method({
2346
+ selector: unescape('value%3A'),
2347
+ fn: function (aUTFCharCode){
2348
+ var self=this;
2349
+ return String.fromCharCode(aUTFCharCode);;
2350
+ return self;}
2351
+ }),
2352
+ smalltalk.String.klass);
2353
+
2354
+
2355
+ smalltalk.addClass('Symbol', smalltalk.CharacterArray, [], 'Kernel-Collections');
2356
+ smalltalk.addMethod(
2357
+ unescape('__lt'),
2358
+ smalltalk.method({
2359
+ selector: unescape('%3C'),
2360
+ fn: function (aSymbol){
2361
+ var self=this;
2362
+ return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(aSymbol, "_asString", [])]));
2363
+ return self;}
2364
+ }),
2365
+ smalltalk.Symbol);
2366
+
2367
+ smalltalk.addMethod(
2368
+ unescape('__lt_eq'),
2369
+ smalltalk.method({
2370
+ selector: unescape('%3C%3D'),
2371
+ fn: function (aSymbol){
2372
+ var self=this;
2373
+ return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
2374
+ return self;}
2375
+ }),
2376
+ smalltalk.Symbol);
2377
+
2378
+ smalltalk.addMethod(
2379
+ unescape('__eq'),
2380
+ smalltalk.method({
2381
+ selector: unescape('%3D'),
2382
+ fn: function (aSymbol){
2383
+ var self=this;
2384
+ try{((($receiver = smalltalk.send(smalltalk.send(aSymbol, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
2385
+ (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_asString", []), "__eq", [smalltalk.send(aSymbol, "_asString", [])])}})})();
2386
+ return self;
2387
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
2388
+ }),
2389
+ smalltalk.Symbol);
2390
+
2391
+ smalltalk.addMethod(
2392
+ unescape('__gt'),
2393
+ smalltalk.method({
2394
+ selector: unescape('%3E'),
2395
+ fn: function (aSymbol){
2396
+ var self=this;
2397
+ return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt", [smalltalk.send(aSymbol, "_asString", [])]));
2398
+ return self;}
2399
+ }),
2400
+ smalltalk.Symbol);
2401
+
2402
+ smalltalk.addMethod(
2403
+ unescape('__gt_eq'),
2404
+ smalltalk.method({
2405
+ selector: unescape('%3E%3D'),
2406
+ fn: function (aSymbol){
2407
+ var self=this;
2408
+ return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
2409
+ return self;}
2410
+ }),
2411
+ smalltalk.Symbol);
2412
+
2413
+ smalltalk.addMethod(
2414
+ unescape('_asJSON'),
2415
+ smalltalk.method({
2416
+ selector: unescape('asJSON'),
2417
+ fn: function (){
2418
+ var self=this;
2419
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_asJSON", []);
2420
+ return self;}
2421
+ }),
2422
+ smalltalk.Symbol);
2423
+
2424
+ smalltalk.addMethod(
2425
+ unescape('_asJavascript'),
2426
+ smalltalk.method({
2427
+ selector: unescape('asJavascript'),
2428
+ fn: function (){
2429
+ var self=this;
2430
+ return smalltalk.send(smalltalk.send(unescape("smalltalk.symbolFor%28%22"), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%22%29")]);
2431
+ return self;}
2432
+ }),
2433
+ smalltalk.Symbol);
2434
+
2435
+ smalltalk.addMethod(
2436
+ unescape('_asSelector'),
2437
+ smalltalk.method({
2438
+ selector: unescape('asSelector'),
2439
+ fn: function (){
2440
+ var self=this;
2441
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_asSelector", []);
2442
+ return self;}
2443
+ }),
2444
+ smalltalk.Symbol);
2445
+
2446
+ smalltalk.addMethod(
2447
+ unescape('_asString'),
2448
+ smalltalk.method({
2449
+ selector: unescape('asString'),
2450
+ fn: function (){
2451
+ var self=this;
2452
+ return self.value;
2453
+ return self;}
2454
+ }),
2455
+ smalltalk.Symbol);
2456
+
2457
+ smalltalk.addMethod(
2458
+ unescape('_asSymbol'),
2459
+ smalltalk.method({
2460
+ selector: unescape('asSymbol'),
2461
+ fn: function (){
2462
+ var self=this;
2463
+ return self;
2464
+ return self;}
2465
+ }),
2466
+ smalltalk.Symbol);
2467
+
2468
+ smalltalk.addMethod(
2469
+ unescape('_at_ifAbsent_'),
2470
+ smalltalk.method({
2471
+ selector: unescape('at%3AifAbsent%3A'),
2472
+ fn: function (anIndex, aBlock){
2473
+ var self=this;
2474
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_at_ifAbsent_", [anIndex, aBlock]);
2475
+ return self;}
2476
+ }),
2477
+ smalltalk.Symbol);
2478
+
2479
+ smalltalk.addMethod(
2480
+ unescape('_copyFrom_to_'),
2481
+ smalltalk.method({
2482
+ selector: unescape('copyFrom%3Ato%3A'),
2483
+ fn: function (anIndex, anotherIndex){
2484
+ var self=this;
2485
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_copyFrom_to_", [anIndex, anotherIndex])]);
2486
+ return self;}
2487
+ }),
2488
+ smalltalk.Symbol);
2489
+
2490
+ smalltalk.addMethod(
2491
+ unescape('_deepCopy'),
2492
+ smalltalk.method({
2493
+ selector: unescape('deepCopy'),
2494
+ fn: function (){
2495
+ var self=this;
2496
+ return self;
2497
+ return self;}
2498
+ }),
2499
+ smalltalk.Symbol);
2500
+
2501
+ smalltalk.addMethod(
2502
+ unescape('_isSymbol'),
2503
+ smalltalk.method({
2504
+ selector: unescape('isSymbol'),
2505
+ fn: function (){
2506
+ var self=this;
2507
+ return true;
2508
+ return self;}
2509
+ }),
2510
+ smalltalk.Symbol);
2511
+
2512
+ smalltalk.addMethod(
2513
+ unescape('_printString'),
2514
+ smalltalk.method({
2515
+ selector: unescape('printString'),
2516
+ fn: function (){
2517
+ var self=this;
2518
+ return smalltalk.send(unescape("%23"), "__comma", [smalltalk.send(self, "_asString", [])]);
2519
+ return self;}
2520
+ }),
2521
+ smalltalk.Symbol);
2522
+
2523
+ smalltalk.addMethod(
2524
+ unescape('_shallowCopy'),
2525
+ smalltalk.method({
2526
+ selector: unescape('shallowCopy'),
2527
+ fn: function (){
2528
+ var self=this;
2529
+ return self;
2530
+ return self;}
2531
+ }),
2532
+ smalltalk.Symbol);
2533
+
2534
+ smalltalk.addMethod(
2535
+ unescape('_size'),
2536
+ smalltalk.method({
2537
+ selector: unescape('size'),
2538
+ fn: function (){
2539
+ var self=this;
2540
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_size", []);
2541
+ return self;}
2542
+ }),
2543
+ smalltalk.Symbol);
2544
+
2545
+
2546
+ smalltalk.addMethod(
2547
+ unescape('_basicNew'),
2548
+ smalltalk.method({
2549
+ selector: unescape('basicNew'),
2550
+ fn: function (){
2551
+ var self=this;
2552
+ smalltalk.send(self, "_shouldNotImplement", []);
2553
+ return self;}
2554
+ }),
2555
+ smalltalk.Symbol.klass);
2556
+
2557
+ smalltalk.addMethod(
2558
+ unescape('_fromString_'),
2559
+ smalltalk.method({
2560
+ selector: unescape('fromString%3A'),
2561
+ fn: function (aString){
2562
+ var self=this;
2563
+ return smalltalk.send(self, "_lookup_", [aString]);
2564
+ return self;}
2565
+ }),
2566
+ smalltalk.Symbol.klass);
2567
+
2568
+ smalltalk.addMethod(
2569
+ unescape('_lookup_'),
2570
+ smalltalk.method({
2571
+ selector: unescape('lookup%3A'),
2572
+ fn: function (aString){
2573
+ var self=this;
2574
+ return smalltalk.symbolFor(aString);;
2575
+ return self;}
2576
+ }),
2577
+ smalltalk.Symbol.klass);
2578
+
2579
+
2580
+ smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel-Collections');
2581
+ smalltalk.addMethod(
2582
+ unescape('__eq'),
2583
+ smalltalk.method({
2584
+ selector: unescape('%3D'),
2585
+ fn: function (aCollection){
2586
+ var self=this;
2587
+ return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(self['@elements'], "__eq", [smalltalk.send(aCollection, "_asArray", [])]);})]);
2588
+ return self;}
2589
+ }),
2590
+ smalltalk.Set);
2591
+
2592
+ smalltalk.addMethod(
2593
+ unescape('_add_'),
2594
+ smalltalk.method({
2595
+ selector: unescape('add%3A'),
2596
+ fn: function (anObject){
2597
+ var self=this;
2598
+
2599
+ var found;
2600
+ for(var i=0; i < self['@elements'].length; i++) {
2601
+ if(anObject == self['@elements'][i]) {
2602
+ found = true;
2603
+ break;
2604
+ }
2605
+ }
2606
+ if(!found) {self['@elements'].push(anObject)}
2607
+ ;
2608
+ return self;}
2609
+ }),
2610
+ smalltalk.Set);
2611
+
2612
+ smalltalk.addMethod(
2613
+ unescape('_asArray'),
2614
+ smalltalk.method({
2615
+ selector: unescape('asArray'),
2616
+ fn: function (){
2617
+ var self=this;
2618
+ return smalltalk.send(self['@elements'], "_copy", []);
2619
+ return self;}
2620
+ }),
2621
+ smalltalk.Set);
2622
+
2623
+ smalltalk.addMethod(
2624
+ unescape('_detect_ifNone_'),
2625
+ smalltalk.method({
2626
+ selector: unescape('detect%3AifNone%3A'),
2627
+ fn: function (aBlock, anotherBlock){
2628
+ var self=this;
2629
+ return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
2630
+ return self;}
2631
+ }),
2632
+ smalltalk.Set);
2633
+
2634
+ smalltalk.addMethod(
2635
+ unescape('_do_'),
2636
+ smalltalk.method({
2637
+ selector: unescape('do%3A'),
2638
+ fn: function (aBlock){
2639
+ var self=this;
2640
+ smalltalk.send(self['@elements'], "_do_", [aBlock]);
2641
+ return self;}
2642
+ }),
2643
+ smalltalk.Set);
2644
+
2645
+ smalltalk.addMethod(
2646
+ unescape('_includes_'),
2647
+ smalltalk.method({
2648
+ selector: unescape('includes%3A'),
2649
+ fn: function (anObject){
2650
+ var self=this;
2651
+ return smalltalk.send(self['@elements'], "_includes_", [anObject]);
2652
+ return self;}
2653
+ }),
2654
+ smalltalk.Set);
2655
+
2656
+ smalltalk.addMethod(
2657
+ unescape('_initialize'),
2658
+ smalltalk.method({
2659
+ selector: unescape('initialize'),
2660
+ fn: function (){
2661
+ var self=this;
2662
+ smalltalk.send(self, "_initialize", [], smalltalk.Collection);
2663
+ (self['@elements']=[]);
2664
+ return self;}
2665
+ }),
2666
+ smalltalk.Set);
2667
+
2668
+ smalltalk.addMethod(
2669
+ unescape('_remove_'),
2670
+ smalltalk.method({
2671
+ selector: unescape('remove%3A'),
2672
+ fn: function (anObject){
2673
+ var self=this;
2674
+ smalltalk.send(self['@elements'], "_remove_", [anObject]);
2675
+ return self;}
2676
+ }),
2677
+ smalltalk.Set);
2678
+
2679
+ smalltalk.addMethod(
2680
+ unescape('_select_'),
2681
+ smalltalk.method({
2682
+ selector: unescape('select%3A'),
2683
+ fn: function (aBlock){
2684
+ var self=this;
2685
+ var collection=nil;
2686
+ (collection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
2687
+ smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(collection, "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(collection, "_add_", [each]);})]));})]);
2688
+ return collection;
2689
+ return self;}
2690
+ }),
2691
+ smalltalk.Set);
2692
+
2693
+ smalltalk.addMethod(
2694
+ unescape('_size'),
2695
+ smalltalk.method({
2696
+ selector: unescape('size'),
2697
+ fn: function (){
2698
+ var self=this;
2699
+ return smalltalk.send(self['@elements'], "_size", []);
2700
+ return self;}
2701
+ }),
2702
+ smalltalk.Set);
2703
+
2704
+
2705
+
2706
+ smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel-Collections');
2707
+ smalltalk.addMethod(
2708
+ unescape('_compile_'),
2709
+ smalltalk.method({
2710
+ selector: unescape('compile%3A'),
2711
+ fn: function (aString){
2712
+ var self=this;
2713
+ return self.compile(aString);
2714
+ return self;}
2715
+ }),
2716
+ smalltalk.RegularExpression);
2717
+
2718
+ smalltalk.addMethod(
2719
+ unescape('_exec_'),
2720
+ smalltalk.method({
2721
+ selector: unescape('exec%3A'),
2722
+ fn: function (aString){
2723
+ var self=this;
2724
+ return self.exec(aString) || nil;
2725
+ return self;}
2726
+ }),
2727
+ smalltalk.RegularExpression);
2728
+
2729
+ smalltalk.addMethod(
2730
+ unescape('_test_'),
2731
+ smalltalk.method({
2732
+ selector: unescape('test%3A'),
2733
+ fn: function (aString){
2734
+ var self=this;
2735
+ return self.test(aString);
2736
+ return self;}
2737
+ }),
2738
+ smalltalk.RegularExpression);
2739
+
2740
+
2741
+ smalltalk.addMethod(
2742
+ unescape('_fromString_'),
2743
+ smalltalk.method({
2744
+ selector: unescape('fromString%3A'),
2745
+ fn: function (aString){
2746
+ var self=this;
2747
+ return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
2748
+ return self;}
2749
+ }),
2750
+ smalltalk.RegularExpression.klass);
2751
+
2752
+ smalltalk.addMethod(
2753
+ unescape('_fromString_flag_'),
2754
+ smalltalk.method({
2755
+ selector: unescape('fromString%3Aflag%3A'),
2756
+ fn: function (aString, anotherString){
2757
+ var self=this;
2758
+ return new RegExp(aString, anotherString);
2759
+ return self;}
2760
+ }),
2761
+ smalltalk.RegularExpression.klass);
2762
+
2763
+
2764
+ smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel-Collections');
2765
+ smalltalk.addMethod(
2766
+ unescape('_atEnd'),
2767
+ smalltalk.method({
2768
+ selector: unescape('atEnd'),
2769
+ fn: function (){
2770
+ var self=this;
2771
+ return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
2772
+ return self;}
2773
+ }),
2774
+ smalltalk.Stream);
2775
+
2776
+ smalltalk.addMethod(
2777
+ unescape('_atStart'),
2778
+ smalltalk.method({
2779
+ selector: unescape('atStart'),
2780
+ fn: function (){
2781
+ var self=this;
2782
+ return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
2783
+ return self;}
2784
+ }),
2785
+ smalltalk.Stream);
2786
+
2787
+ smalltalk.addMethod(
2788
+ unescape('_close'),
2789
+ smalltalk.method({
2790
+ selector: unescape('close'),
2791
+ fn: function (){
2792
+ var self=this;
2793
+
2794
+ return self;}
2795
+ }),
2796
+ smalltalk.Stream);
2797
+
2798
+ smalltalk.addMethod(
2799
+ unescape('_collection'),
2800
+ smalltalk.method({
2801
+ selector: unescape('collection'),
2802
+ fn: function (){
2803
+ var self=this;
2804
+ return self['@collection'];
2805
+ return self;}
2806
+ }),
2807
+ smalltalk.Stream);
2808
+
2809
+ smalltalk.addMethod(
2810
+ unescape('_contents'),
2811
+ smalltalk.method({
2812
+ selector: unescape('contents'),
2813
+ fn: function (){
2814
+ var self=this;
2815
+ return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
2816
+ return self;}
2817
+ }),
2818
+ smalltalk.Stream);
2819
+
2820
+ smalltalk.addMethod(
2821
+ unescape('_do_'),
2822
+ smalltalk.method({
2823
+ selector: unescape('do%3A'),
2824
+ fn: function (aBlock){
2825
+ var self=this;
2826
+ (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
2827
+ return self;}
2828
+ }),
2829
+ smalltalk.Stream);
2830
+
2831
+ smalltalk.addMethod(
2832
+ unescape('_flush'),
2833
+ smalltalk.method({
2834
+ selector: unescape('flush'),
2835
+ fn: function (){
2836
+ var self=this;
2837
+
2838
+ return self;}
2839
+ }),
2840
+ smalltalk.Stream);
2841
+
2842
+ smalltalk.addMethod(
2843
+ unescape('_isEmpty'),
2844
+ smalltalk.method({
2845
+ selector: unescape('isEmpty'),
2846
+ fn: function (){
2847
+ var self=this;
2848
+ return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
2849
+ return self;}
2850
+ }),
2851
+ smalltalk.Stream);
2852
+
2853
+ smalltalk.addMethod(
2854
+ unescape('_next'),
2855
+ smalltalk.method({
2856
+ selector: unescape('next'),
2857
+ fn: function (){
2858
+ var self=this;
2859
+ return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return nil;})() : (function(){smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return nil;}), (function(){smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);})]));
2860
+ return self;}
2861
+ }),
2862
+ smalltalk.Stream);
2863
+
2864
+ smalltalk.addMethod(
2865
+ unescape('_next_'),
2866
+ smalltalk.method({
2867
+ selector: unescape('next%3A'),
2868
+ fn: function (anInteger){
2869
+ var self=this;
2870
+ var tempCollection=nil;
2871
+ (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
2872
+ smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]));})]);
2873
+ return tempCollection;
2874
+ return self;}
2875
+ }),
2876
+ smalltalk.Stream);
2877
+
2878
+ smalltalk.addMethod(
2879
+ unescape('_nextPut_'),
2880
+ smalltalk.method({
2881
+ selector: unescape('nextPut%3A'),
2882
+ fn: function (anObject){
2883
+ var self=this;
2884
+ smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
2885
+ smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
2886
+ smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
2887
+ return self;}
2888
+ }),
2889
+ smalltalk.Stream);
2890
+
2891
+ smalltalk.addMethod(
2892
+ unescape('_nextPutAll_'),
2893
+ smalltalk.method({
2894
+ selector: unescape('nextPutAll%3A'),
2895
+ fn: function (aCollection){
2896
+ var self=this;
2897
+ smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
2898
+ return self;}
2899
+ }),
2900
+ smalltalk.Stream);
2901
+
2902
+ smalltalk.addMethod(
2903
+ unescape('_peek'),
2904
+ smalltalk.method({
2905
+ selector: unescape('peek'),
2906
+ fn: function (){
2907
+ var self=this;
2908
+ return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})]));
2909
+ return self;}
2910
+ }),
2911
+ smalltalk.Stream);
2912
+
2913
+ smalltalk.addMethod(
2914
+ unescape('_position'),
2915
+ smalltalk.method({
2916
+ selector: unescape('position'),
2917
+ fn: function (){
2918
+ var self=this;
2919
+ return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return (self['@position']=(0));})() : $receiver;
2920
+ return self;}
2921
+ }),
2922
+ smalltalk.Stream);
2923
+
2924
+ smalltalk.addMethod(
2925
+ unescape('_position_'),
2926
+ smalltalk.method({
2927
+ selector: unescape('position%3A'),
2928
+ fn: function (anInteger){
2929
+ var self=this;
2930
+ (self['@position']=anInteger);
2931
+ return self;}
2932
+ }),
2933
+ smalltalk.Stream);
2934
+
2935
+ smalltalk.addMethod(
2936
+ unescape('_reset'),
2937
+ smalltalk.method({
2938
+ selector: unescape('reset'),
2939
+ fn: function (){
2940
+ var self=this;
2941
+ smalltalk.send(self, "_position_", [(0)]);
2942
+ return self;}
2943
+ }),
2944
+ smalltalk.Stream);
2945
+
2946
+ smalltalk.addMethod(
2947
+ unescape('_resetContents'),
2948
+ smalltalk.method({
2949
+ selector: unescape('resetContents'),
2950
+ fn: function (){
2951
+ var self=this;
2952
+ smalltalk.send(self, "_reset", []);
2953
+ smalltalk.send(self, "_setStreamSize_", [(0)]);
2954
+ return self;}
2955
+ }),
2956
+ smalltalk.Stream);
2957
+
2958
+ smalltalk.addMethod(
2959
+ unescape('_setCollection_'),
2960
+ smalltalk.method({
2961
+ selector: unescape('setCollection%3A'),
2962
+ fn: function (aCollection){
2963
+ var self=this;
2964
+ (self['@collection']=aCollection);
2965
+ return self;}
2966
+ }),
2967
+ smalltalk.Stream);
2968
+
2969
+ smalltalk.addMethod(
2970
+ unescape('_setStreamSize_'),
2971
+ smalltalk.method({
2972
+ selector: unescape('setStreamSize%3A'),
2973
+ fn: function (anInteger){
2974
+ var self=this;
2975
+ (self['@streamSize']=anInteger);
2976
+ return self;}
2977
+ }),
2978
+ smalltalk.Stream);
2979
+
2980
+ smalltalk.addMethod(
2981
+ unescape('_setToEnd'),
2982
+ smalltalk.method({
2983
+ selector: unescape('setToEnd'),
2984
+ fn: function (){
2985
+ var self=this;
2986
+ smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
2987
+ return self;}
2988
+ }),
2989
+ smalltalk.Stream);
2990
+
2991
+ smalltalk.addMethod(
2992
+ unescape('_size'),
2993
+ smalltalk.method({
2994
+ selector: unescape('size'),
2995
+ fn: function (){
2996
+ var self=this;
2997
+ return smalltalk.send(self, "_streamSize", []);
2998
+ return self;}
2999
+ }),
3000
+ smalltalk.Stream);
3001
+
3002
+ smalltalk.addMethod(
3003
+ unescape('_skip_'),
3004
+ smalltalk.method({
3005
+ selector: unescape('skip%3A'),
3006
+ fn: function (anInteger){
3007
+ var self=this;
3008
+ smalltalk.send(self, "_position_", [smalltalk.send(((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +anInteger : smalltalk.send($receiver, "__plus", [anInteger])), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
3009
+ return self;}
3010
+ }),
3011
+ smalltalk.Stream);
3012
+
3013
+ smalltalk.addMethod(
3014
+ unescape('_streamSize'),
3015
+ smalltalk.method({
3016
+ selector: unescape('streamSize'),
3017
+ fn: function (){
3018
+ var self=this;
3019
+ return self['@streamSize'];
3020
+ return self;}
3021
+ }),
3022
+ smalltalk.Stream);
3023
+
3024
+
3025
+ smalltalk.addMethod(
3026
+ unescape('_on_'),
3027
+ smalltalk.method({
3028
+ selector: unescape('on%3A'),
3029
+ fn: function (aCollection){
3030
+ var self=this;
3031
+ return (function($rec){smalltalk.send($rec, "_setCollection_", [aCollection]);smalltalk.send($rec, "_setStreamSize_", [smalltalk.send(aCollection, "_size", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
3032
+ return self;}
3033
+ }),
3034
+ smalltalk.Stream.klass);
3035
+
3036
+
3037
+ smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel-Collections');
3038
+ smalltalk.addMethod(
3039
+ unescape('_cr'),
3040
+ smalltalk.method({
3041
+ selector: unescape('cr'),
3042
+ fn: function (){
3043
+ var self=this;
3044
+ return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
3045
+ return self;}
3046
+ }),
3047
+ smalltalk.StringStream);
3048
+
3049
+ smalltalk.addMethod(
3050
+ unescape('_crlf'),
3051
+ smalltalk.method({
3052
+ selector: unescape('crlf'),
3053
+ fn: function (){
3054
+ var self=this;
3055
+ return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
3056
+ return self;}
3057
+ }),
3058
+ smalltalk.StringStream);
3059
+
3060
+ smalltalk.addMethod(
3061
+ unescape('_lf'),
3062
+ smalltalk.method({
3063
+ selector: unescape('lf'),
3064
+ fn: function (){
3065
+ var self=this;
3066
+ return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
3067
+ return self;}
3068
+ }),
3069
+ smalltalk.StringStream);
3070
+
3071
+ smalltalk.addMethod(
3072
+ unescape('_next_'),
3073
+ smalltalk.method({
3074
+ selector: unescape('next%3A'),
3075
+ fn: function (anInteger){
3076
+ var self=this;
3077
+ var tempCollection=nil;
3078
+ (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
3079
+ smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]));})]));})]);
3080
+ return tempCollection;
3081
+ return self;}
3082
+ }),
3083
+ smalltalk.StringStream);
3084
+
3085
+ smalltalk.addMethod(
3086
+ unescape('_nextPut_'),
3087
+ smalltalk.method({
3088
+ selector: unescape('nextPut%3A'),
3089
+ fn: function (aString){
3090
+ var self=this;
3091
+ smalltalk.send(self, "_nextPutAll_", [aString]);
3092
+ return self;}
3093
+ }),
3094
+ smalltalk.StringStream);
3095
+
3096
+ smalltalk.addMethod(
3097
+ unescape('_nextPutAll_'),
3098
+ smalltalk.method({
3099
+ selector: unescape('nextPutAll%3A'),
3100
+ fn: function (aString){
3101
+ var self=this;
3102
+ smalltalk.send(self, "_setCollection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_position", [])]), "__comma", [aString]), "__comma", [smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [((($receiver = ((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
3103
+ smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])]))]);
3104
+ smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
3105
+ return self;}
3106
+ }),
3107
+ smalltalk.StringStream);
3108
+
3109
+ smalltalk.addMethod(
3110
+ unescape('_space'),
3111
+ smalltalk.method({
3112
+ selector: unescape('space'),
3113
+ fn: function (){
3114
+ var self=this;
3115
+ smalltalk.send(self, "_nextPut_", [" "]);
3116
+ return self;}
3117
+ }),
3118
+ smalltalk.StringStream);
3119
+
3120
+
3121
+