gollum 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum might be problematic. Click here for more details.
- data/Gemfile +3 -0
- data/HISTORY.md +14 -2
- data/Home.md +3 -0
- data/README.md +24 -7
- data/bin/gollum +25 -6
- data/gollum.gemspec +336 -39
- data/lib/gollum.rb +5 -44
- data/lib/gollum/albino.rb +4 -29
- data/lib/gollum/blob_entry.rb +15 -8
- data/lib/gollum/committer.rb +217 -0
- data/lib/gollum/file.rb +2 -3
- data/lib/gollum/frontend/app.rb +64 -23
- data/lib/gollum/frontend/public/css/dialog.css +141 -0
- data/lib/gollum/frontend/public/css/editor.css +537 -0
- data/lib/gollum/frontend/public/css/gollum.css +643 -33
- data/lib/gollum/frontend/public/css/ie7.css +69 -0
- data/lib/gollum/frontend/public/css/template.css +316 -0
- data/lib/gollum/frontend/public/images/icon-sprite.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/MathJax.js +17 -1678
- data/lib/gollum/frontend/public/javascript/MathJax/config/MMLorHTML.js +10 -55
- data/lib/gollum/frontend/public/javascript/MathJax/config/MathJax.js +288 -49
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.buildinfo +4 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/CSS-styles.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/HTML-snippets.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/ajax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/callback.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/elementjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/html.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/hub.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/inputjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/message.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/object.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/outputjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/queue.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/signal.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/variable.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/callbacks.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/community.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/configuration.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/dynamic.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/environment.pickle +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/glossary.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/installation.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/jsMath.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathjax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathml.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/model.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/FontWarnings.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/HTML-CSS.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MMLorHTML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathMenu.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathZoom.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/NativeMML.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/TeX.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/hub.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/jsMath2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/mml2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/tex2jax.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/output.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/index.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/movable-type.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/wordpress.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/queues.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/signals.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/start.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/startup.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/synchronize.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/tex.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/typeset.doctree +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/CSS-styles.html +173 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/HTML-snippets.html +170 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/badge.gif +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_head.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/CSS-styles.txt +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/HTML-snippets.txt +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/ajax.txt +196 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/callback.txt +259 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/elementjax.txt +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/html.txt +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/hub.txt +330 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/index.txt +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/inputjax.txt +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/jax.txt +148 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/message.txt +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/object.txt +210 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/outputjax.txt +100 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/queue.txt +99 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/signal.txt +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/variable.txt +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/callbacks.txt +228 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/community.txt +60 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/configuration.txt +375 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/dynamic.txt +181 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/glossary.txt +75 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/index.txt +71 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/installation.txt +184 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/jsMath.txt +31 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathjax.txt +36 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathml.txt +97 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/model.txt +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/FontWarnings.txt +140 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/HTML-CSS.txt +119 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MMLorHTML.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathML.txt +27 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathMenu.txt +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathZoom.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/NativeMML.txt +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/TeX.txt +67 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/hub.txt +209 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/mml2jax.txt +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/tex2jax.txt +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/output.txt +126 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/index.txt +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/movable-type.txt +41 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/wordpress.txt +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/queues.txt +254 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/signals.txt +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/start.txt +314 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/startup.txt +152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/synchronize.txt +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/tex.txt +1090 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/typeset.txt +229 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/basic.css +509 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/doctools.js +247 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/file.png +0 -0
- data/lib/gollum/frontend/public/javascript/{jquery-1.4.2.min.js → MathJax/docs/html/_static/jquery.js} +1 -1
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_mathml.user.js +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_wikipedia.user.js +35 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/minus.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mj.css +223 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/plus.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/pygments.css +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/searchtools.js +505 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/underscore.js +16 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/ajax.html +406 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/callback.html +435 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/elementjax.html +283 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/html.html +292 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/hub.html +674 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/index.html +144 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/inputjax.html +221 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/jax.html +319 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/message.html +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/object.html +356 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/outputjax.html +246 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/queue.html +247 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/signal.html +334 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/variable.html +220 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/callbacks.html +305 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/community.html +155 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/configuration.html +434 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/dynamic.html +274 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/genindex.html +295 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/glossary.html +160 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/index.html +177 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/installation.html +262 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/jsMath.html +128 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathjax.html +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathml.html +194 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/model.html +305 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/objects.inv +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/FontWarnings.html +264 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/HTML-CSS.html +241 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MMLorHTML.html +143 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathML.html +132 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathMenu.html +194 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathZoom.html +147 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/NativeMML.html +171 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/TeX.html +175 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/hub.html +342 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/jsMath2jax.html +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/mml2jax.html +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/tex2jax.html +249 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/output.html +218 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/index.html +168 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/movable-type.html +145 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/wordpress.html +146 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/queues.html +334 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/search.html +95 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/searchindex.js +1 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/signals.html +257 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/start.html +374 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/startup.html +239 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/synchronize.html +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/tex.html +1152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/html/typeset.html +318 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/CSS-styles.rst +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/HTML-snippets.rst +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_mathml.user.js +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_wikipedia.user.js +35 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/ajax.rst +196 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/callback.rst +259 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/elementjax.rst +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/html.rst +122 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/hub.rst +330 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/index.rst +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/inputjax.rst +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/jax.rst +148 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/message.rst +86 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/object.rst +210 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/outputjax.rst +100 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/queue.rst +99 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/signal.rst +154 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/variable.rst +83 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/callbacks.rst +228 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/community.rst +60 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/conf.py +198 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/configuration.rst +375 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/dynamic.rst +181 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/glossary.rst +75 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_head.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_menu.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_templates.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/index.rst +71 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/installation.rst +184 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/jsMath.rst +31 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathjax.rst +36 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathml.rst +97 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/static/mj.css_t +256 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/theme.conf +30 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/model.rst +224 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/FontWarnings.rst +140 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/HTML-CSS.rst +119 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MMLorHTML.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathML.rst +27 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathMenu.rst +79 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathZoom.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/NativeMML.rst +61 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/TeX.rst +67 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/hub.rst +209 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/mml2jax.rst +53 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/tex2jax.rst +137 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/output.rst +126 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/index.rst +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/movable-type.rst +41 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/wordpress.rst +42 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/queues.rst +254 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/signals.rst +161 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/start.rst +314 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/startup.rst +152 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/synchronize.rst +65 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/tex.rst +1090 -0
- data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/typeset.rst +229 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/FontWarnings.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathMenu.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathZoom.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSmath.js +11 -369
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSsymbols.js +11 -378
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/autobold.js +11 -36
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/boldsymbol.js +10 -101
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/mathchoice.js +10 -57
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/newcommand.js +10 -177
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noErrors.js +10 -161
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noUndefined.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/unicode.js +10 -123
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/verb.js +10 -45
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/jsMath2jax.js +10 -69
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/mml2jax.js +10 -93
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/tex2jax.js +10 -234
- data/lib/gollum/frontend/public/javascript/MathJax/extensions/toMathML.js +10 -132
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/jax.js +11 -1466
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Arrows.js +11 -115
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/BasicLatin.js +11 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiacritMarks.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiactForSymbols.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Dingbats.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeneralPunctuation.js +11 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeometricShapes.js +11 -59
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GreekAndCoptic.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Latin1Supplement.js +11 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/LetterlikeSymbols.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MathOperators.js +11 -221
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsA.js +11 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsB.js +11 -160
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscTechnical.js +11 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SpacingModLetters.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SuppMathOperators.js +11 -282
- data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SupplementalArrowsB.js +11 -155
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/config.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/a.js +11 -80
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/b.js +11 -107
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/c.js +11 -104
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/d.js +11 -105
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/e.js +11 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/f.js +11 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/fr.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/g.js +11 -75
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/h.js +11 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/i.js +11 -78
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/j.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/k.js +11 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/l.js +11 -168
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/m.js +11 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/n.js +11 -212
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/o.js +11 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/opf.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/p.js +11 -77
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/q.js +11 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/r.js +11 -127
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/s.js +11 -161
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/scr.js +11 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/t.js +11 -75
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/u.js +11 -84
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/v.js +11 -66
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/w.js +11 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/x.js +11 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/y.js +11 -34
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/z.js +11 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/jax.js +10 -582
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/config.js +11 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/jax.js +11 -1644
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/maction.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/menclose.js +10 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mglyph.js +10 -90
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js +10 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mtable.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/multiline.js +18 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/config.js +10 -119
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Arrows.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoldFraktur.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiacritMarks.js +12 -92
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiactForSymbols.js +12 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeneralPunctuation.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeometricShapes.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekSSBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedA.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedB.js +12 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LetterlikeSymbols.js +12 -63
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js +12 -166
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.js +12 -254
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathSSBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsA.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js +12 -31
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscSymbols.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.js +12 -36
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/NumberForms.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/PhoneticExtensions.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SpacingModLetters.js +12 -81
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuperAndSubscripts.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuppMathOperators.js +12 -78
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js +12 -116
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GeneralPunctuation.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js +12 -113
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekSSBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedA.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedB.js +12 -53
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LetterlikeSymbols.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Main.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldScript.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathOperators.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathSSItalicBold.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/BoxDrawing.js +12 -61
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekAndCoptic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js +12 -110
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Latin1Supplement.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedA.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedB.js +12 -52
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LetterlikeSymbols.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js +12 -186
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathItalic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathOperators.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathSSItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathScript.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/SpacingModLetters.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ij.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/AlphaPresentForms.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Arrows.js +12 -100
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BBBold.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BlockElements.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoldFraktur.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoxDrawing.js +12 -66
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CJK.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiacritMarks.js +12 -80
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiactForSymbols.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CurrencySymbols.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Cyrillic.js +12 -123
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Dingbats.js +12 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/EnclosedAlphanum.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeometricShapes.js +12 -112
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekAndCoptic.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBold.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBoldItalic.js +12 -79
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js +12 -112
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Latin1Supplement.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedA.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedAdditional.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedB.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedD.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js +12 -374
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBold.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldScript.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathItalic.js +12 -72
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathOperators.js +12 -201
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSS.js +12 -83
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSBold.js +12 -84
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalic.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalicBold.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathScript.js +12 -62
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathTT.js +12 -82
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsA.js +12 -60
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsB.js +12 -148
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbols.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbolsAndArrows.js +12 -85
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscTechnical.js +12 -74
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/NumberForms.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/PhoneticExtensions.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SpacingModLetters.js +12 -73
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js +12 -265
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsB.js +12 -149
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ij.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Bold/All.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js +12 -176
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js +12 -209
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js +12 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js +12 -236
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js +12 -51
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js +12 -381
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/All.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js +12 -46
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js +12 -71
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js +12 -99
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js +12 -40
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/All.js +12 -58
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/Main.js +12 -57
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/All.js +12 -54
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/Main.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/All.js +12 -114
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/Main.js +12 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-beta.js +10 -365
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +12 -1396
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js +12 -59
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js +12 -49
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js +12 -132
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js +12 -90
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js +12 -89
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js +12 -104
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js +12 -103
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Regular/Main.js +12 -36
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Arrows.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiacritMarks.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeneralPunctuation.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeometricShapes.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LetterlikeSymbols.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js +12 -155
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MathOperators.js +12 -88
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +12 -23
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscTechnical.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SpacingModLetters.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SuppMathOperators.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Latin1Supplement.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LetterlikeSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Main.js +12 -131
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Arrows.js +12 -45
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiacritMarks.js +12 -33
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiactForSymbols.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeneralPunctuation.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeometricShapes.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GreekAndCoptic.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Latin1Supplement.js +12 -26
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedA.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedB.js +12 -22
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LetterlikeSymbols.js +12 -27
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Main.js +12 -298
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MathOperators.js +12 -88
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscMathSymbolsA.js +12 -25
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscSymbols.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscTechnical.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SuppMathOperators.js +12 -24
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SupplementalArrowsA.js +12 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js +12 -199
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js +12 -198
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js +12 -109
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +12 -32
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js +12 -41
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js +12 -48
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js +12 -56
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js +12 -68
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size2/Regular/Main.js +12 -60
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size3/Regular/Main.js +12 -44
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size4/Regular/Main.js +12 -71
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/BasicLatin.js +12 -117
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +12 -30
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Main.js +12 -29
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js +12 -38
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinChrome/Regular/Main.js +12 -37
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +12 -50
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +12 -76
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +12 -105
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +12 -1684
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/imageFonts.js +10 -177
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/jax.js +12 -1984
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/config.js +10 -43
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/jax.js +10 -222
- data/lib/gollum/frontend/public/javascript/MathJax/test/index-images.html +22 -14
- data/lib/gollum/frontend/public/javascript/MathJax/test/index.html +58 -8
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-dynamic.html +54 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-mml.html +44 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-signals.html +121 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex.html +22 -0
- data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex2mml.html +23 -0
- data/lib/gollum/frontend/public/javascript/editor/gollum.editor.js +1084 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js +168 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/creole.js +103 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/markdown.js +211 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/org.js +173 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/pod.js +111 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/rdoc.js +74 -0
- data/lib/gollum/frontend/public/javascript/editor/langs/textile.js +175 -0
- data/lib/gollum/frontend/public/javascript/gollum.dialog.js +206 -0
- data/lib/gollum/frontend/public/javascript/gollum.js +178 -231
- data/lib/gollum/frontend/public/javascript/gollum.placeholder.js +54 -0
- data/lib/gollum/frontend/public/javascript/jquery.color.js +123 -0
- data/lib/gollum/frontend/public/javascript/jquery.js +7179 -0
- data/lib/gollum/frontend/templates/compare.mustache +51 -31
- data/lib/gollum/frontend/templates/create.mustache +15 -39
- data/lib/gollum/frontend/templates/edit.mustache +17 -38
- data/lib/gollum/frontend/templates/editor.mustache +116 -0
- data/lib/gollum/frontend/templates/error.mustache +5 -8
- data/lib/gollum/frontend/templates/history.mustache +59 -36
- data/lib/gollum/frontend/templates/layout.mustache +24 -29
- data/lib/gollum/frontend/templates/page.mustache +34 -26
- data/lib/gollum/frontend/templates/search.mustache +35 -18
- data/lib/gollum/frontend/templates/searchbar.mustache +10 -0
- data/lib/gollum/frontend/views/compare.rb +9 -5
- data/lib/gollum/frontend/views/create.rb +23 -0
- data/lib/gollum/frontend/views/edit.rb +40 -1
- data/lib/gollum/frontend/views/history.rb +1 -1
- data/lib/gollum/frontend/views/page.rb +17 -6
- data/lib/gollum/frontend/views/search.rb +8 -0
- data/lib/gollum/git_access.rb +241 -0
- data/lib/gollum/markup.rb +107 -47
- data/lib/gollum/page.rb +114 -67
- data/lib/gollum/sanitization.rb +115 -0
- data/lib/gollum/wiki.rb +307 -267
- data/test/examples/lotr.git/COMMIT_EDITMSG +1 -0
- data/test/examples/lotr.git/config +8 -1
- data/test/examples/lotr.git/index +0 -0
- data/test/examples/lotr.git/info/exclude +1 -1
- data/test/examples/lotr.git/logs/HEAD +2 -0
- data/test/examples/lotr.git/logs/refs/heads/master +2 -0
- data/test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10 +0 -0
- data/test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814 +0 -0
- data/test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813 +0 -0
- data/test/examples/lotr.git/packed-refs +1 -1
- data/test/examples/lotr.git/refs/heads/master +1 -1
- data/test/examples/lotr.git/refs/remotes/origin/HEAD +1 -0
- data/test/examples/page_file_dir.git/COMMIT_EDITMSG +1 -0
- data/test/examples/page_file_dir.git/HEAD +1 -0
- data/test/examples/page_file_dir.git/config +6 -0
- data/test/examples/page_file_dir.git/description +1 -0
- data/test/examples/page_file_dir.git/index +0 -0
- data/test/examples/page_file_dir.git/info/exclude +6 -0
- data/test/examples/page_file_dir.git/logs/HEAD +1 -0
- data/test/examples/page_file_dir.git/logs/refs/heads/master +1 -0
- data/test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf +0 -0
- data/test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e +0 -0
- data/test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
- data/test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
- data/test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2 +0 -0
- data/test/examples/page_file_dir.git/refs/heads/master +1 -0
- data/test/examples/revert.git/COMMIT_EDITMSG +1 -0
- data/test/examples/revert.git/HEAD +1 -0
- data/test/examples/revert.git/config +12 -0
- data/test/examples/revert.git/description +1 -0
- data/test/examples/revert.git/index +0 -0
- data/test/examples/revert.git/info/exclude +6 -0
- data/test/examples/revert.git/logs/HEAD +2 -0
- data/test/examples/revert.git/logs/refs/heads/master +2 -0
- data/test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d +0 -0
- data/test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9 +0 -0
- data/test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708 +0 -0
- data/test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc +0 -0
- data/test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433 +0 -0
- data/test/examples/revert.git/objects/info/packs +2 -0
- data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx +0 -0
- data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack +0 -0
- data/test/examples/revert.git/packed-refs +2 -0
- data/test/examples/revert.git/refs/heads/master +1 -0
- data/test/examples/revert.git/refs/remotes/origin/HEAD +1 -0
- data/test/examples/yubiwa.git/HEAD +1 -0
- data/test/examples/yubiwa.git/config +5 -0
- data/test/examples/yubiwa.git/description +1 -0
- data/test/examples/yubiwa.git/info/exclude +6 -0
- data/test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00 +0 -0
- data/test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de +0 -0
- data/test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835 +0 -0
- data/test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8 +1 -0
- data/test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70 +0 -0
- data/test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b +0 -0
- data/test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309 +0 -0
- data/test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34 +0 -0
- data/test/examples/yubiwa.git/refs/heads/master +1 -0
- data/test/helper.rb +19 -3
- data/test/test_app.rb +144 -0
- data/test/test_committer.rb +51 -0
- data/test/test_file.rb +3 -1
- data/test/test_git_access.rb +52 -0
- data/test/test_markup.rb +92 -17
- data/test/test_page.rb +30 -2
- data/test/test_page_revert.rb +45 -0
- data/test/test_wiki.rb +55 -36
- metadata +388 -47
- data/lib/gollum/frontend/public/css/editbar.css +0 -194
- data/lib/gollum/frontend/public/css/screen.css +0 -726
- data/lib/gollum/frontend/public/css/syntax.css +0 -61
- data/lib/gollum/frontend/public/images/buttons.png +0 -0
- data/lib/gollum/frontend/public/images/editbar-buttons.png +0 -0
- data/lib/gollum/frontend/public/images/example.png +0 -0
- data/lib/gollum/frontend/public/images/twiddle-down.png +0 -0
- data/lib/gollum/frontend/public/images/twiddle-right.png +0 -0
- data/lib/gollum/frontend/public/images/txt.png +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/COPYING.txt +0 -202
- data/lib/gollum/frontend/public/javascript/MathJax/README.txt +0 -480
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/blank.gif +0 -0
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Hiragana.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Specials.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SpacingModLetters.js +0 -28
- data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js +0 -28
- data/lib/gollum/frontend/public/javascript/jquery.previewable_comment_form.js +0 -57
- data/lib/gollum/frontend/public/javascript/jquery.tabs.js +0 -59
- data/lib/gollum/frontend/public/javascript/jquery.text_selection-1.0.0.min.js +0 -1
- data/lib/gollum/frontend/templates/editbar.mustache +0 -1196
- data/test/examples/lotr.git/hooks/applypatch-msg.sample +0 -15
- data/test/examples/lotr.git/hooks/commit-msg.sample +0 -24
- data/test/examples/lotr.git/hooks/post-commit.sample +0 -8
- data/test/examples/lotr.git/hooks/post-receive.sample +0 -15
- data/test/examples/lotr.git/hooks/post-update.sample +0 -8
- data/test/examples/lotr.git/hooks/pre-applypatch.sample +0 -14
- data/test/examples/lotr.git/hooks/pre-commit.sample +0 -46
- data/test/examples/lotr.git/hooks/pre-rebase.sample +0 -169
- data/test/examples/lotr.git/hooks/prepare-commit-msg.sample +0 -36
- data/test/examples/lotr.git/hooks/update.sample +0 -128
- data/test/examples/lotr.git/info/refs +0 -1
@@ -0,0 +1,69 @@
|
|
1
|
+
/* IE7-specific styles */
|
2
|
+
|
3
|
+
.ie #head #searchbar #searchbar-fauxtext input#search-query {
|
4
|
+
border: 0;
|
5
|
+
float: left;
|
6
|
+
padding: 0.4em 0 0 0.5em;
|
7
|
+
}
|
8
|
+
|
9
|
+
.ie #head #searchbar #searchbar-fauxtext #search-submit span {
|
10
|
+
height: 2.25em;
|
11
|
+
}
|
12
|
+
|
13
|
+
#head #searchbar,
|
14
|
+
#head ul.actions {
|
15
|
+
margin: 1em 0 0 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
ul.actions {
|
19
|
+
margin-left: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
.compare #footer ul.actions {
|
23
|
+
margin-top: 1em;
|
24
|
+
}
|
25
|
+
|
26
|
+
.compare div.data {
|
27
|
+
overflow: auto;
|
28
|
+
}
|
29
|
+
|
30
|
+
.history #version-form {
|
31
|
+
margin: -0.5em 0 -0.5em !important;
|
32
|
+
}
|
33
|
+
|
34
|
+
#gollum-editor {
|
35
|
+
padding-bottom: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
#gollum-editor-help-parent li a,
|
39
|
+
#gollum-editor-help-list li a {
|
40
|
+
height: auto;
|
41
|
+
}
|
42
|
+
|
43
|
+
#gollum-editor #gollum-editor-format-selector {
|
44
|
+
margin-top: 6px;
|
45
|
+
}
|
46
|
+
|
47
|
+
#gollum-editor .singleline input {
|
48
|
+
padding-top: 0.25em;
|
49
|
+
}
|
50
|
+
|
51
|
+
#gollum-editor .collapsed {
|
52
|
+
padding-bottom: 1.1em;
|
53
|
+
}
|
54
|
+
|
55
|
+
#gollum-editor #gollum-editor-submit {
|
56
|
+
padding: 0.5em 1em 0.3em !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
#gollum-editor #gollum-editor-preview {
|
60
|
+
line-height: 1.3em;
|
61
|
+
}
|
62
|
+
|
63
|
+
#gollum-editor form {
|
64
|
+
margin: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
#gollum-editor #gollum-editor-format-selector label {
|
68
|
+
padding-top: 0.1em !important;
|
69
|
+
}
|
@@ -0,0 +1,316 @@
|
|
1
|
+
/*
|
2
|
+
Gollum v3 Template
|
3
|
+
*/
|
4
|
+
|
5
|
+
#template {
|
6
|
+
font-size: 13px;
|
7
|
+
line-height: 23px;
|
8
|
+
margin-bottom: 40px;
|
9
|
+
}
|
10
|
+
|
11
|
+
/* Link Colors */
|
12
|
+
a.absent {
|
13
|
+
color: #c00;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Primary Body Copy */
|
17
|
+
#template p {
|
18
|
+
margin: 16px 0 0;
|
19
|
+
padding: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
/* ReST first graf in nested list */
|
23
|
+
#template * li p.first {
|
24
|
+
display: inline-block;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Headings */
|
28
|
+
#template h1, #template h2, #template h3,
|
29
|
+
#template h4, #template h5, #template h6 {
|
30
|
+
margin: 0;
|
31
|
+
padding: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
#template h1 {
|
35
|
+
border-top: 4px solid #ccc;
|
36
|
+
font-size: 32px;
|
37
|
+
line-height: normal;
|
38
|
+
padding: 10px 0 0;
|
39
|
+
margin: 30px 0 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
#template h2 {
|
43
|
+
border-top: 4px solid #ccc;
|
44
|
+
font-size: 22px;
|
45
|
+
line-height: normal;
|
46
|
+
margin: 22px 0 0;
|
47
|
+
padding: 7px 0 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
#template h3 {
|
51
|
+
font-size: 16px;
|
52
|
+
line-height: 26px;
|
53
|
+
padding: 26px 0 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
#template h4 {
|
57
|
+
font-size: 14px;
|
58
|
+
line-height: 26px;
|
59
|
+
padding: 18px 0 4px;
|
60
|
+
font-weight: bold;
|
61
|
+
text-transform: uppercase;
|
62
|
+
}
|
63
|
+
|
64
|
+
#template h5 {
|
65
|
+
font-size: 13px;
|
66
|
+
line-height: 26px;
|
67
|
+
margin-bottom: -19px;
|
68
|
+
padding: 14px 0 0;
|
69
|
+
font-weight: bold;
|
70
|
+
text-transform: uppercase;
|
71
|
+
}
|
72
|
+
|
73
|
+
#template h6 {
|
74
|
+
color: #666;
|
75
|
+
font-size: 14px;
|
76
|
+
line-height: 26px;
|
77
|
+
margin-bottom: -19px;
|
78
|
+
padding: 18px 0 0;
|
79
|
+
font-weight: normal;
|
80
|
+
font-variant: italic;
|
81
|
+
}
|
82
|
+
|
83
|
+
#template hr {
|
84
|
+
background-color: #ccc;
|
85
|
+
color: #ccc;
|
86
|
+
border: 2px solid #ccc;
|
87
|
+
margin: 20px 0;
|
88
|
+
padding: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
/* Border Reset for headers with horizontal rules */
|
92
|
+
#template > h2:first-child,
|
93
|
+
#template > h1:first-child {
|
94
|
+
border: 0;
|
95
|
+
margin: 12px 0 0;
|
96
|
+
padding: 10px 0 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
/* Lists, Blockquotes & Such */
|
101
|
+
#template ul,
|
102
|
+
#template ol {
|
103
|
+
margin: 0;
|
104
|
+
padding: 20px 0 0;
|
105
|
+
list-style-position: inside;
|
106
|
+
}
|
107
|
+
|
108
|
+
/* Nested Lists */
|
109
|
+
#template ul li ul,
|
110
|
+
#template ol li ol,
|
111
|
+
#template ul li ol,
|
112
|
+
#template ol li ul,
|
113
|
+
#template ul ul,
|
114
|
+
#template ol ol {
|
115
|
+
padding: 0 0 0 14px;
|
116
|
+
}
|
117
|
+
|
118
|
+
#template dl {
|
119
|
+
margin: 0;
|
120
|
+
padding: 20px 0 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
#template dl dt {
|
124
|
+
font-size: 14px;
|
125
|
+
font-weight: bold;
|
126
|
+
line-height: normal;
|
127
|
+
margin: 0;
|
128
|
+
padding: 20px 0 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
#template dl dt:first-child {
|
132
|
+
padding: 0;
|
133
|
+
}
|
134
|
+
|
135
|
+
#template dl dd {
|
136
|
+
font-size: 13px;
|
137
|
+
margin: 0;
|
138
|
+
padding: 3px 0 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
/* Tables */
|
142
|
+
#template table {
|
143
|
+
border-collapse: collapse;
|
144
|
+
margin: 20px 0 0;
|
145
|
+
padding: 0;
|
146
|
+
}
|
147
|
+
|
148
|
+
#template table * tr {
|
149
|
+
border-top: 1px solid #ccc;
|
150
|
+
background-color: #fff;
|
151
|
+
margin: 0;
|
152
|
+
padding: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
#template table * tr:nth-child(2n) {
|
156
|
+
background-color: #f8f8f8;
|
157
|
+
}
|
158
|
+
|
159
|
+
#template table * tr th,
|
160
|
+
#template table * tr td {
|
161
|
+
border: 1px solid #ccc;
|
162
|
+
text-align: left;
|
163
|
+
margin: 0;
|
164
|
+
padding: 6px 13px;
|
165
|
+
}
|
166
|
+
|
167
|
+
/* Images & Stuff */
|
168
|
+
#template img {
|
169
|
+
max-width: 100%;
|
170
|
+
}
|
171
|
+
|
172
|
+
/* Gollum Image Tags */
|
173
|
+
|
174
|
+
/* Framed */
|
175
|
+
#template span.frame {
|
176
|
+
display: block;
|
177
|
+
overflow: hidden;
|
178
|
+
}
|
179
|
+
|
180
|
+
#template span.frame > span {
|
181
|
+
border: 1px solid #ddd;
|
182
|
+
display: block;
|
183
|
+
float: left;
|
184
|
+
overflow: hidden;
|
185
|
+
margin: 13px 0 0;
|
186
|
+
padding: 7px;
|
187
|
+
width: auto;
|
188
|
+
}
|
189
|
+
|
190
|
+
#template span.frame span img {
|
191
|
+
display: block;
|
192
|
+
float: left;
|
193
|
+
}
|
194
|
+
|
195
|
+
#template span.frame span span {
|
196
|
+
clear: both;
|
197
|
+
color: #333;
|
198
|
+
display: block;
|
199
|
+
padding: 5px 0 0;
|
200
|
+
}
|
201
|
+
|
202
|
+
#template span.align-center {
|
203
|
+
display: block;
|
204
|
+
overflow: hidden;
|
205
|
+
clear: both;
|
206
|
+
}
|
207
|
+
|
208
|
+
#template span.align-center > span {
|
209
|
+
display: block;
|
210
|
+
overflow: hidden;
|
211
|
+
margin: 13px auto 0;
|
212
|
+
text-align: center;
|
213
|
+
}
|
214
|
+
|
215
|
+
#template span.align-center span img {
|
216
|
+
margin: 0 auto;
|
217
|
+
text-align: center;
|
218
|
+
}
|
219
|
+
|
220
|
+
#template span.align-right {
|
221
|
+
display: block;
|
222
|
+
overflow: hidden;
|
223
|
+
clear: both;
|
224
|
+
}
|
225
|
+
|
226
|
+
#template span.align-right > span {
|
227
|
+
display: block;
|
228
|
+
overflow: hidden;
|
229
|
+
margin: 13px 0 0;
|
230
|
+
text-align: right;
|
231
|
+
}
|
232
|
+
|
233
|
+
#template span.align-right span img {
|
234
|
+
margin: 0;
|
235
|
+
text-align: right;
|
236
|
+
}
|
237
|
+
|
238
|
+
#template span.float-left {
|
239
|
+
display: block;
|
240
|
+
margin-right: 13px;
|
241
|
+
overflow: hidden;
|
242
|
+
float: left;
|
243
|
+
}
|
244
|
+
|
245
|
+
#template span.float-left span {
|
246
|
+
margin: 13px 0 0;
|
247
|
+
}
|
248
|
+
|
249
|
+
#template span.float-right {
|
250
|
+
display: block;
|
251
|
+
margin-left: 13px;
|
252
|
+
overflow: hidden;
|
253
|
+
float: right;
|
254
|
+
}
|
255
|
+
|
256
|
+
#template span.float-right > span {
|
257
|
+
display: block;
|
258
|
+
overflow: hidden;
|
259
|
+
margin: 13px auto 0;
|
260
|
+
text-align: right;
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
/* Code */
|
265
|
+
#template code, #template tt {
|
266
|
+
background-color: #f8f8f8;
|
267
|
+
border: 1px solid #dedede;
|
268
|
+
font-size: 13px;
|
269
|
+
padding: 1px 5px;
|
270
|
+
|
271
|
+
-moz-border-radius: 3px;
|
272
|
+
-webkit-border-radius: 3px;
|
273
|
+
border-radius: 3px;
|
274
|
+
}
|
275
|
+
|
276
|
+
#template .highlight pre, #template pre {
|
277
|
+
background-color: #f8f8f8;
|
278
|
+
border: 1px solid #ccc;
|
279
|
+
font-size: 13px;
|
280
|
+
line-height: 19px;
|
281
|
+
overflow: auto;
|
282
|
+
padding: 6px;
|
283
|
+
|
284
|
+
-moz-border-radius: 3px;
|
285
|
+
-webkit-border-radius: 3px;
|
286
|
+
border-radius: 3px;
|
287
|
+
}
|
288
|
+
|
289
|
+
#template pre code, #template pre tt {
|
290
|
+
background-color: transparent;
|
291
|
+
border: none;
|
292
|
+
}
|
293
|
+
|
294
|
+
#template .highlight { background: #ffffff; }
|
295
|
+
#template .highlight .c { color: #999988; font-style: italic }
|
296
|
+
#template .highlight .err { color: #a61717; background-color: #e3d2d2 }
|
297
|
+
#template .highlight .k { font-weight: bold }
|
298
|
+
#template .highlight .o { font-weight: bold }
|
299
|
+
#template .highlight .cm { color: #999988; font-style: italic }
|
300
|
+
#template .highlight .cp { color: #999999; font-weight: bold }
|
301
|
+
#template .highlight .c1 { color: #999988; font-style: italic }
|
302
|
+
#template .highlight .cs { color: #999999; font-weight: bold; font-style: italic }
|
303
|
+
#template .highlight .gd { color: #000000; background-color: #ffdddd }
|
304
|
+
#template .highlight .gd .x { color: #000000; background-color: #ffaaaa }
|
305
|
+
#template .highlight .ge { font-style: italic }
|
306
|
+
#template .highlight .gr { color: #aa0000 }
|
307
|
+
#template .highlight .gh { color: #999999 }
|
308
|
+
#template .highlight .gi { color: #000000; background-color: #ddffdd }
|
309
|
+
#template .highlight .gi .x { color: #000000; background-color: #aaffaa }
|
310
|
+
#template .highlight .gc { color: #999; background-color: #EAF2F5 }
|
311
|
+
#template .highlight .go { color: #888888 }
|
312
|
+
#template .highlight .gp { color: #555555 }
|
313
|
+
#template .highlight .gs { font-weight: bold }
|
314
|
+
#template .highlight .gu { color: #aaaaaa }
|
315
|
+
#template .highlight .gt { color: #aa0000 }
|
316
|
+
|
Binary file
|
@@ -2,14 +2,12 @@
|
|
2
2
|
*
|
3
3
|
* MathJax.js
|
4
4
|
*
|
5
|
-
* The main
|
6
|
-
*
|
7
|
-
* libraries, as well as the base Jax classes, and startup
|
8
|
-
* processing code.
|
5
|
+
* The main code for the MathJax math-typesetting library. See
|
6
|
+
* http://www.mathjax.org/ for details.
|
9
7
|
*
|
10
8
|
* ---------------------------------------------------------------------
|
11
9
|
*
|
12
|
-
* Copyright (c) 2009 Design Science, Inc.
|
10
|
+
* Copyright (c) 2009-2010 Design Science, Inc.
|
13
11
|
*
|
14
12
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
15
13
|
* you may not use this file except in compliance with the License.
|
@@ -24,1681 +22,22 @@
|
|
24
22
|
* limitations under the License.
|
25
23
|
*/
|
26
24
|
|
27
|
-
if (
|
25
|
+
if (!window.MathJax) {window.MathJax = {}}
|
28
26
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
if (!BASE) {BASE = window[BASENAME] = {}}
|
37
|
-
|
38
|
-
var PROTO = []; // a static object used to indicate when a prototype is being created
|
39
|
-
var OBJECT = function (def) {
|
40
|
-
var obj = def.constructor; if (!obj) {obj = new Function("")}
|
41
|
-
for (var id in def) {if (id !== 'constructor' && def.hasOwnProperty(id)) {obj[id] = def[id]}}
|
42
|
-
return obj;
|
43
|
-
};
|
44
|
-
var CONSTRUCTOR = function () {
|
45
|
-
return new Function ("return arguments.callee.Init.call(this,arguments)");
|
46
|
-
};
|
47
|
-
//
|
48
|
-
// Test for Safari 2.x bug (can't replace prototype for result of new Function()).
|
49
|
-
// (We don't use this version for everyone since it is a closure and we don't need that).
|
50
|
-
//
|
51
|
-
var BUGTEST = CONSTRUCTOR(); BUGTEST.prototype = {bug_test: 1};
|
52
|
-
if (!BUGTEST.prototype.bug_test) {
|
53
|
-
CONSTRUCTOR = function () {
|
54
|
-
return function () {return arguments.callee.Init.call(this,arguments)};
|
55
|
-
};
|
56
|
-
};
|
57
|
-
|
58
|
-
BASE.Object = OBJECT({
|
59
|
-
constructor: CONSTRUCTOR(),
|
60
|
-
|
61
|
-
Subclass: function (def,classdef) {
|
62
|
-
var obj = CONSTRUCTOR();
|
63
|
-
obj.SUPER = this; obj.Init = this.Init;
|
64
|
-
obj.Subclass = this.Subclass; obj.Augment = this.Augment;
|
65
|
-
obj.protoFunction = this.protoFunction;
|
66
|
-
obj.can = this.can; obj.has = this.has; obj.isa = this.isa;
|
67
|
-
obj.prototype = new this(PROTO);
|
68
|
-
obj.prototype.constructor = obj; // the real constructor
|
69
|
-
obj.Augment(def,classdef);
|
70
|
-
return obj;
|
71
|
-
},
|
72
|
-
|
73
|
-
Init: function (args) {
|
74
|
-
var obj = this;
|
75
|
-
if (args.length !== 1 || args[0] !== PROTO) {
|
76
|
-
if (!(obj instanceof args.callee)) {obj = new args.callee(PROTO)}
|
77
|
-
obj.Init.apply(obj,args);
|
78
|
-
}
|
79
|
-
return obj;
|
80
|
-
},
|
81
|
-
|
82
|
-
Augment: function (def,classdef) {
|
83
|
-
var id;
|
84
|
-
if (def != null) {
|
85
|
-
for (id in def) {if (def.hasOwnProperty(id)) {this.protoFunction(id,def[id])}}
|
86
|
-
// MSIE doesn't list toString even if it is not native so handle it separately
|
87
|
-
if (def.toString !== this.prototype.toString && def.toString !== {}.toString)
|
88
|
-
{this.protoFunction('toString',def.toString)}
|
89
|
-
}
|
90
|
-
if (classdef != null) {
|
91
|
-
for (id in classdef) {if (classdef.hasOwnProperty(id)) {this[id] = classdef[id]}}
|
92
|
-
}
|
93
|
-
},
|
94
|
-
|
95
|
-
protoFunction: function (id,def) {
|
96
|
-
this.prototype[id] = def;
|
97
|
-
if (def instanceof Function) {def.SUPER = this.SUPER.prototype}
|
98
|
-
},
|
99
|
-
|
100
|
-
prototype: {
|
101
|
-
Init: function () {},
|
102
|
-
SUPER: function (fn) {return fn.callee.SUPER},
|
103
|
-
can: function (method) {return typeof(this[method]) === "function"},
|
104
|
-
has: function (property) {return typeof(this[property]) !== "undefined"},
|
105
|
-
isa: function (obj) {return (obj instanceof Object) && (this instanceof obj)}
|
106
|
-
},
|
107
|
-
|
108
|
-
can: function (method) {return this.prototype.can.call(this,method)},
|
109
|
-
has: function (property) {return this.prototype.has.call(this,property)},
|
110
|
-
isa: function (obj) {
|
111
|
-
var constructor = this;
|
112
|
-
while (constructor) {
|
113
|
-
if (constructor === obj) {return true} else {constructor = constructor.SUPER}
|
114
|
-
}
|
115
|
-
return false;
|
116
|
-
},
|
117
|
-
|
118
|
-
|
119
|
-
SimpleSUPER: OBJECT({
|
120
|
-
constructor: function (def) {return this.SimpleSUPER.define(def)},
|
121
|
-
|
122
|
-
define: function (src) {
|
123
|
-
var dst = {};
|
124
|
-
if (src != null) {
|
125
|
-
for (var id in def) {if (def.hasOwnProperty(id)) {this.protoFunction(id,def[id])}}
|
126
|
-
// MSIE doesn't list toString even if it is not native so handle it separately
|
127
|
-
if (def.toString !== this.prototype.toString && def.toString !== {}.toString)
|
128
|
-
{this.protoFunction('toString',def.toString)}
|
129
|
-
}
|
130
|
-
return dst;
|
131
|
-
},
|
132
|
-
|
133
|
-
wrap: function (id,f) {
|
134
|
-
if (typeof(f) === 'function' && f.toString().match(/\.\s*SUPER\s*\(/)) {
|
135
|
-
var fn = new Function(this.wrapper);
|
136
|
-
fn.label = id; fn.original = f; f = fn;
|
137
|
-
fn.toString = this.stringify;
|
138
|
-
}
|
139
|
-
return f;
|
140
|
-
},
|
141
|
-
|
142
|
-
wrapper: function () {
|
143
|
-
var fn = arguments.callee;
|
144
|
-
this.SUPER = fn.SUPER[fn.label];
|
145
|
-
try {var result = fn.original.apply(this,arguments)}
|
146
|
-
catch (err) {delete this.SUPER; throw err}
|
147
|
-
delete this.SUPER;
|
148
|
-
return result;
|
149
|
-
}.toString().replace(/^\s*function \(\)\s*\{\s*/i,"").replace(/\s*\}\s*$/i,""),
|
150
|
-
|
151
|
-
toString: function () {
|
152
|
-
return this.original.toString.apply(this.original,arguments);
|
153
|
-
}
|
154
|
-
})
|
155
|
-
});
|
156
|
-
|
157
|
-
})("MathJax");
|
158
|
-
|
159
|
-
/**********************************************************/
|
160
|
-
|
161
|
-
/*
|
162
|
-
* Create a callback function from various forms of data:
|
163
|
-
*
|
164
|
-
* MathJax.CallBack(fn) -- callback to a function
|
165
|
-
*
|
166
|
-
* MathJax.CallBack([fn]) -- callback to function
|
167
|
-
* MathJax.CallBack([fn,data...])
|
168
|
-
* -- callback to function with given data as arguments
|
169
|
-
* MathJax.CallBack([object,fn])
|
170
|
-
* -- call fn with object as "this"
|
171
|
-
* MathJax.CallBack([object,fn,data...])
|
172
|
-
* -- call fn with object as "this" and data as arguments
|
173
|
-
* MathJax.CallBack(["method",object])
|
174
|
-
* -- call method of object wth object as "this"
|
175
|
-
* MathJax.CallBack(["method",object,data...])
|
176
|
-
* -- as above, but with data as arguments to method
|
177
|
-
*
|
178
|
-
* MathJax.CallBack({hook: fn, data: [...], object: this})
|
179
|
-
* -- give function, data, and object to act as "this" explicitly
|
180
|
-
*
|
181
|
-
* MathJax.CallBack("code") -- callback that compiles and executes a string
|
182
|
-
*
|
183
|
-
* MathJax.CallBack([...],i)
|
184
|
-
* -- use slice of array starting at i and interpret
|
185
|
-
* result as above. (Used for passing "arguments" array
|
186
|
-
* and trimming initial arguments, if any.)
|
187
|
-
*/
|
188
|
-
|
189
|
-
/*
|
190
|
-
* MathJax.CallBack.After([...],cb1,cb2,...)
|
191
|
-
* -- make a callback that isn't called until all the other
|
192
|
-
* ones are called first. I.e., wait for a union of
|
193
|
-
* callbacks to occur before making the given callback.
|
194
|
-
*/
|
195
|
-
|
196
|
-
/*
|
197
|
-
* MathJax.CallBack.Queue([callback,...])
|
198
|
-
* -- make a synchronized queue of commands that process
|
199
|
-
* sequentially, waiting for those that return uncalled
|
200
|
-
* callbacks.
|
201
|
-
*/
|
202
|
-
|
203
|
-
/*
|
204
|
-
* MathJax.CallBack.Signal(name)
|
205
|
-
* -- finds or creates a names signal, to which listeners
|
206
|
-
* can be attached and are signaled by messages posted
|
207
|
-
* to the signal. Responses can be asynchronous.
|
208
|
-
*/
|
209
|
-
|
210
|
-
(function (BASENAME) {
|
211
|
-
var BASE = window[BASENAME];
|
212
|
-
if (!BASE) {BASE = window[BASENAME] = {}}
|
213
|
-
//
|
214
|
-
// Create a callback from an associative array
|
215
|
-
//
|
216
|
-
var CALLBACK = function (data) {
|
217
|
-
var cb = new Function("return arguments.callee.execute.apply(arguments.callee,arguments)");
|
218
|
-
for (var id in CALLBACK.prototype) {
|
219
|
-
if (CALLBACK.prototype.hasOwnProperty(id)) {
|
220
|
-
if (typeof(data[id]) !== 'undefined') {cb[id] = data[id]}
|
221
|
-
else {cb[id] = CALLBACK.prototype[id]}
|
222
|
-
}
|
223
|
-
}
|
224
|
-
cb.toString = CALLBACK.prototype.toString;
|
225
|
-
return cb;
|
226
|
-
};
|
227
|
-
CALLBACK.prototype = {
|
228
|
-
isCallback: true,
|
229
|
-
hook: function () {},
|
230
|
-
data: [],
|
231
|
-
object: window,
|
232
|
-
execute: function () {
|
233
|
-
if (!this.called || this.autoReset) {
|
234
|
-
this.called = !this.autoReset;
|
235
|
-
return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)));
|
236
|
-
}
|
237
|
-
},
|
238
|
-
reset: function () {delete this.called},
|
239
|
-
toString: function () {return this.hook.toString.apply(this.hook,arguments)}
|
240
|
-
};
|
241
|
-
var ISCALLBACK = function (f) {
|
242
|
-
return (f instanceof Function && f.isCallback);
|
243
|
-
}
|
244
|
-
//
|
245
|
-
// Evaluate a string in global context
|
246
|
-
//
|
247
|
-
var EVAL = function (code) {return eval.call(window,code)}
|
248
|
-
EVAL("var __TeSt_VaR__ = 1"); // check if it works in global context
|
249
|
-
if (window.__TeSt_VaR__) {delete window.__TeSt_VaR__} else {
|
250
|
-
if (window.execScript) {
|
251
|
-
// IE
|
252
|
-
EVAL = function (code) {
|
253
|
-
BASE.__code = code;
|
254
|
-
code = "try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";
|
255
|
-
window.execScript(code);
|
256
|
-
var result = BASE.__result; delete BASE.__result; delete BASE.__code;
|
257
|
-
if (result instanceof Error) {throw result}
|
258
|
-
return result;
|
259
|
-
}
|
260
|
-
} else {
|
261
|
-
// Safari2
|
262
|
-
EVAL = function (code) {
|
263
|
-
BASE.__code = code;
|
264
|
-
code = "try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";
|
265
|
-
var head = (document.getElementsByTagName("head"))[0]; if (!head) {head = document.body}
|
266
|
-
var script = document.createElement("script");
|
267
|
-
script.appendChild(document.createTextNode(code));
|
268
|
-
head.appendChild(script); head.removeChild(script);
|
269
|
-
var result = BASE.__result; delete BASE.__result; delete BASE.__code;
|
270
|
-
if (result instanceof Error) {throw result}
|
271
|
-
return result;
|
272
|
-
}
|
273
|
-
}
|
27
|
+
MathJax.Unpack = function (data) {
|
28
|
+
var k, d, n, m, i;
|
29
|
+
for (k = 0, m = data.length; k < m; k++) {
|
30
|
+
d = data[k];
|
31
|
+
for (i = 0, n = d.length; i < n; i++)
|
32
|
+
{if (typeof(d[i]) == 'number') {d[i] = d[d[i]]}}
|
33
|
+
data[k] = d.join('');
|
274
34
|
}
|
275
|
-
|
276
|
-
// Create a callback from various types of data
|
277
|
-
//
|
278
|
-
var USING = function (args,i) {
|
279
|
-
if (arguments.length > 1) {
|
280
|
-
if (arguments.length === 2 && !(arguments[0] instanceof Function) &&
|
281
|
-
arguments[0] instanceof Object && typeof arguments[1] === 'number')
|
282
|
-
{args = [].slice.call(args,i)}
|
283
|
-
else {args = [].slice.call(arguments,0)}
|
284
|
-
}
|
285
|
-
if (args instanceof Array && args.length === 1) {args = args[0]}
|
286
|
-
if (args instanceof Function) {
|
287
|
-
if (args.execute === CALLBACK.prototype.execute) {return args}
|
288
|
-
return CALLBACK({hook: args});
|
289
|
-
} else if (args instanceof Array) {
|
290
|
-
if (typeof(args[0]) === 'string' && args[1] instanceof Object &&
|
291
|
-
args[1][args[0]] instanceof Function) {
|
292
|
-
return CALLBACK({hook: args[1][args[0]], object: args[1], data: args.slice(2)});
|
293
|
-
} else if (args[0] instanceof Function) {
|
294
|
-
return CALLBACK({hook: args[0], data: args.slice(1)});
|
295
|
-
} else if (args[1] instanceof Function) {
|
296
|
-
return CALLBACK({hook: args[1], object: args[0], data: args.slice(2)});
|
297
|
-
}
|
298
|
-
} else if (typeof(args) === 'string') {
|
299
|
-
return CALLBACK({hook: EVAL, data: [args]});
|
300
|
-
} else if (args instanceof Object) {
|
301
|
-
return CALLBACK(args);
|
302
|
-
} else if (typeof(args) === 'undefined') {
|
303
|
-
return CALLBACK({});
|
304
|
-
}
|
305
|
-
throw Error("Can't make callback from given data");
|
306
|
-
};
|
307
|
-
|
308
|
-
//
|
309
|
-
// Wait for a given time to elapse and then perform the callback
|
310
|
-
//
|
311
|
-
var DELAY = function (time,callback) {
|
312
|
-
callback = USING(callback);
|
313
|
-
callback.timeout = setTimeout(callback,time);
|
314
|
-
return callback;
|
315
|
-
};
|
316
|
-
|
317
|
-
//
|
318
|
-
// Callback used by AFTER, QUEUE, and SIGNAL to check if calls have completed
|
319
|
-
//
|
320
|
-
var WAITFOR = function (callback,signal) {
|
321
|
-
callback = USING(callback);
|
322
|
-
if (!callback.called) {WAITSIGNAL(callback,signal); signal.pending++}
|
323
|
-
};
|
324
|
-
var WAITEXECUTE = function () {
|
325
|
-
var signals = this.signal; delete this.signal;
|
326
|
-
this.execute = this.oldExecute; delete this.oldExecute;
|
327
|
-
var result = this.execute.apply(this,arguments);
|
328
|
-
if (ISCALLBACK(result) && !result.called) {WAITSIGNAL(result,signals)} else {
|
329
|
-
for (var i = 0, m = signals.length; i < m; i++) {
|
330
|
-
signals[i].pending--;
|
331
|
-
if (signals[i].pending <= 0) {var result = signals[i].call()}
|
332
|
-
}
|
333
|
-
}
|
334
|
-
};
|
335
|
-
var WAITSIGNAL = function (callback,signals) {
|
336
|
-
if (!(signals instanceof Array)) {signals = [signals]}
|
337
|
-
if (!callback.signal) {
|
338
|
-
callback.oldExecute = callback.execute;
|
339
|
-
callback.execute = WAITEXECUTE;
|
340
|
-
callback.signal = signals;
|
341
|
-
} else if (signals.length === 1) {callback.signal.push(signals[0])}
|
342
|
-
else {callback.signal = callback.signal.concat(signals)}
|
343
|
-
};
|
344
|
-
|
345
|
-
//
|
346
|
-
// Create a callback that is called when a collection of other callbacks have
|
347
|
-
// all been executed. If the callback gets calledimmediately (i.e., the
|
348
|
-
// others are all already called), check if it returns another callback
|
349
|
-
// and return that instead.
|
350
|
-
//
|
351
|
-
var AFTER = function (callback) {
|
352
|
-
callback = USING(callback);
|
353
|
-
callback.pending = 0;
|
354
|
-
for (var i = 1, m = arguments.length; i < m; i++)
|
355
|
-
{if (arguments[i]) {WAITFOR(arguments[i],callback)}}
|
356
|
-
if (callback.pending === 0) {
|
357
|
-
var result = callback();
|
358
|
-
if (ISCALLBACK(result)) {callback = result}
|
359
|
-
}
|
360
|
-
return callback;
|
361
|
-
};
|
362
|
-
|
363
|
-
//
|
364
|
-
// Run an array of callbacks passing them the given data.
|
365
|
-
// If any return callbacks, return a callback that will be
|
366
|
-
// executed when they all have completed.
|
367
|
-
//
|
368
|
-
var HOOKS = function (hooks,data,reset) {
|
369
|
-
if (!hooks) {return null}
|
370
|
-
if (!(hooks instanceof Array)) {hooks = [hooks]}
|
371
|
-
if (!(data instanceof Array)) {data = (data == null ? [] : [data])}
|
372
|
-
var callbacks = [{}];
|
373
|
-
for (var i = 0, m = hooks.length; i < m; i++) {
|
374
|
-
if (reset) {hooks[i].reset()}
|
375
|
-
var result = hooks[i].apply(window,data);
|
376
|
-
if (ISCALLBACK(result) && !result.called) {callbacks.push(result)}
|
377
|
-
}
|
378
|
-
if (callbacks.length === 1) {return null}
|
379
|
-
if (callbacks.length === 2) {return callbacks[1]}
|
380
|
-
return AFTER.apply({},callbacks);
|
381
|
-
};
|
382
|
-
|
383
|
-
//
|
384
|
-
// Command queue that performs commands in order, waiting when
|
385
|
-
// necessary for commands to complete asynchronousely
|
386
|
-
//
|
387
|
-
var QUEUE = BASE.Object.Subclass({
|
388
|
-
//
|
389
|
-
// Create the queue and push any commands that are specified
|
390
|
-
//
|
391
|
-
Init: function () {
|
392
|
-
this.pending = 0; this.running = 0;
|
393
|
-
this.queue = [];
|
394
|
-
this.Push.apply(this,arguments);
|
395
|
-
},
|
396
|
-
//
|
397
|
-
// Add commands to the queue and run them. Adding a callback object
|
398
|
-
// (rather than a callback specification) queues a wait for that callback.
|
399
|
-
// Return the final callback for synchronization purposes.
|
400
|
-
//
|
401
|
-
Push: function () {
|
402
|
-
var callback;
|
403
|
-
for (var i = 0, m = arguments.length; i < m; i++) {
|
404
|
-
callback = USING(arguments[i]);
|
405
|
-
if (callback === arguments[i] && !callback.called)
|
406
|
-
{callback = USING(["wait",this,callback])}
|
407
|
-
this.queue.push(callback);
|
408
|
-
}
|
409
|
-
if (!this.running && !this.pending) {this.Process()}
|
410
|
-
return callback;
|
411
|
-
},
|
412
|
-
//
|
413
|
-
// Process the command queue if we aren't waiting on another command
|
414
|
-
//
|
415
|
-
Process: function (queue) {
|
416
|
-
while (!this.running && !this.pending && this.queue.length) {
|
417
|
-
var callback = this.queue[0];
|
418
|
-
queue = this.queue.slice(1); this.queue = [];
|
419
|
-
this.Suspend(); var result = callback(); this.Resume();
|
420
|
-
if (queue.length) {this.queue = queue.concat(this.queue)}
|
421
|
-
if (ISCALLBACK(result) && !result.called) {WAITFOR(result,this)}
|
422
|
-
}
|
423
|
-
},
|
424
|
-
//
|
425
|
-
// Suspend/Resume command processing on this queue
|
426
|
-
//
|
427
|
-
Suspend: function () {this.running++},
|
428
|
-
Resume: function () {if (this.running) {this.running--}},
|
429
|
-
//
|
430
|
-
// Used by WAITFOR to restart the queue when an action completes
|
431
|
-
//
|
432
|
-
call: function () {this.Process.apply(this,arguments)},
|
433
|
-
wait: function (callback) {return callback}
|
434
|
-
});
|
435
|
-
|
436
|
-
//
|
437
|
-
// Create a named signal that listeners can attach to, to be signaled by
|
438
|
-
// postings made to the signal. Posts are queued if they occur while one
|
439
|
-
// is already in process.
|
440
|
-
//
|
441
|
-
var SIGNAL = QUEUE.Subclass({
|
442
|
-
Init: function (name) {
|
443
|
-
QUEUE.prototype.Init.call(this);
|
444
|
-
this.name = name;
|
445
|
-
this.posted = []; // the messages posted so far
|
446
|
-
this.listeners = []; // those with interest in this signal
|
447
|
-
},
|
448
|
-
//
|
449
|
-
// Post a message to the signal listeners, with callback for when complete
|
450
|
-
//
|
451
|
-
Post: function (message,callback,forget) {
|
452
|
-
callback = USING(callback);
|
453
|
-
if (this.posting || this.pending) {
|
454
|
-
this.Push(["Post",this,message,callback,forget]);
|
455
|
-
} else {
|
456
|
-
this.callback = callback; callback.reset();
|
457
|
-
if (!forget) {this.posted.push(message)}
|
458
|
-
this.Suspend(); this.posting = 1;
|
459
|
-
for (var i = 0, m = this.listeners.length; i < m; i++) {
|
460
|
-
this.listeners[i].reset();
|
461
|
-
var result = (this.listeners[i])(message);
|
462
|
-
if (ISCALLBACK(result) && !result.called) {WAITFOR(result,this)}
|
463
|
-
}
|
464
|
-
this.Resume(); delete this.posting;
|
465
|
-
if (!this.pending) {this.call()}
|
466
|
-
}
|
467
|
-
return callback;
|
468
|
-
},
|
469
|
-
//
|
470
|
-
// Clear the post history (so new listeners won't get old messages)
|
471
|
-
//
|
472
|
-
Clear: function (callback) {
|
473
|
-
callback = USING(callback);
|
474
|
-
if (this.posting || this.pending) {
|
475
|
-
callback = this.Push(["Clear",this,callback]);
|
476
|
-
} else {
|
477
|
-
this.posted = [];
|
478
|
-
callback();
|
479
|
-
}
|
480
|
-
return callback;
|
481
|
-
},
|
482
|
-
//
|
483
|
-
// Call the callback (all replies are in) and process the command queue
|
484
|
-
//
|
485
|
-
call: function () {this.callback(this); this.Process()},
|
486
|
-
|
487
|
-
//
|
488
|
-
// A listener calls this to register intrest in the signal (so it will be called
|
489
|
-
// when posts occur). If ignorePast is 1, it will not be sent the post history.
|
490
|
-
//
|
491
|
-
Interest: function (callback,ignorePast) {
|
492
|
-
callback = USING(callback);
|
493
|
-
this.listeners[this.listeners.length] = callback;
|
494
|
-
if (!ignorePast) {
|
495
|
-
for (var i = 0, m = this.posted.length; i < m; i++) {
|
496
|
-
callback.reset();
|
497
|
-
var result = callback(this.posted[i]);
|
498
|
-
if (ISCALLBACK(result) && i === this.posted.length-1) {WAITFOR(result,this)}
|
499
|
-
}
|
500
|
-
}
|
501
|
-
return callback;
|
502
|
-
},
|
503
|
-
//
|
504
|
-
// A listener calls this to remove itself from a signal
|
505
|
-
//
|
506
|
-
NoInterest: function (callback) {
|
507
|
-
for (var i = 0, m = this.listeners.length; i < m; i++) {
|
508
|
-
if (this.listeners[i] === callback) {this.listeners.splice(i,1); return}
|
509
|
-
}
|
510
|
-
},
|
511
|
-
|
512
|
-
//
|
513
|
-
// Hook a callback to a particular message on this signal
|
514
|
-
//
|
515
|
-
MessageHook: function (msg,callback) {
|
516
|
-
callback = USING(callback);
|
517
|
-
if (!this.hooks) {this.hooks = {}; this.Interest(["ExecuteHooks",this])}
|
518
|
-
if (!this.hooks[msg]) {this.hooks[msg] = []}
|
519
|
-
this.hooks[msg].push(callback);
|
520
|
-
for (var i = 0, m = this.posted.length; i < m; i++)
|
521
|
-
{if (this.posted[i] == msg) {callback.reset(); callback(this.posted[i])}}
|
522
|
-
return callback;
|
523
|
-
},
|
524
|
-
//
|
525
|
-
// Execute the message hooks for the given message
|
526
|
-
//
|
527
|
-
ExecuteHooks: function (msg,more) {
|
528
|
-
var type = ((msg instanceof Array) ? msg[0] : msg);
|
529
|
-
return HOOKS(this.hooks[type],[msg],true);
|
530
|
-
}
|
531
|
-
|
532
|
-
},{
|
533
|
-
signals: {}, // the named signals
|
534
|
-
find: function (name) {
|
535
|
-
if (!SIGNAL.signals[name]) {SIGNAL.signals[name] = new SIGNAL(name)}
|
536
|
-
return SIGNAL.signals[name];
|
537
|
-
}
|
538
|
-
});
|
539
|
-
|
540
|
-
//
|
541
|
-
// The main entry-points
|
542
|
-
//
|
543
|
-
BASE.CallBack = USING;
|
544
|
-
BASE.CallBack.Delay = DELAY;
|
545
|
-
BASE.CallBack.After = AFTER;
|
546
|
-
BASE.CallBack.Queue = QUEUE;
|
547
|
-
BASE.CallBack.Signal = SIGNAL.find;
|
548
|
-
BASE.CallBack.ExecuteHooks = HOOKS;
|
549
|
-
})("MathJax");
|
550
|
-
|
551
|
-
/**********************************************************/
|
552
|
-
|
553
|
-
(function (BASENAME) {
|
554
|
-
var BASE = window[BASENAME];
|
555
|
-
if (!BASE) {BASE = window[BASENAME] = {}}
|
556
|
-
|
557
|
-
var isSafari2 = (navigator.vendor === "Apple Computer, Inc." &&
|
558
|
-
typeof navigator.vendorSub === "undefined");
|
559
|
-
var sheets = 0; // used by Safari2
|
560
|
-
|
561
|
-
//
|
562
|
-
// Update sheets count and look up the head object
|
563
|
-
//
|
564
|
-
var HEAD = function (head) {
|
565
|
-
if (document.styleSheets && document.styleSheets.length > sheets)
|
566
|
-
{sheets = document.styleSheets.length}
|
567
|
-
if (!head) {
|
568
|
-
head = (document.getElementsByTagName("head"))[0];
|
569
|
-
if (!head) {head = document.body}
|
570
|
-
}
|
571
|
-
return head;
|
572
|
-
};
|
573
|
-
|
574
|
-
//
|
575
|
-
// Remove scripts that are completed so they don't clutter up the HEAD.
|
576
|
-
// This runs via setTimeout since IE7 can't remove the script while it is running.
|
577
|
-
//
|
578
|
-
var SCRIPTS = []; // stores scripts to be removed after a delay
|
579
|
-
var REMOVESCRIPTS = function () {
|
580
|
-
for (var i = 0, m = SCRIPTS.length; i < m; i++) {BASE.Ajax.head.removeChild(SCRIPTS[i])}
|
581
|
-
SCRIPTS = [];
|
582
|
-
};
|
583
|
-
|
584
|
-
BASE.Ajax = {
|
585
|
-
loaded: {}, // files already loaded
|
586
|
-
loading: {}, // files currently in process of loading
|
587
|
-
loadHooks: {}, // hooks to call when files are loaded
|
588
|
-
timeout: 15*1000, // timeout for loading of files (15 seconds)
|
589
|
-
styleDelay: 1, // delay to use before styles are available
|
590
|
-
config: {root: ""}, // URL of root directory to load from
|
591
|
-
|
592
|
-
STATUS: {
|
593
|
-
OK: 1, // file is loading or did load OK
|
594
|
-
ERROR: -1 // file timed out during load
|
595
|
-
},
|
596
|
-
|
597
|
-
rootPattern: new RegExp("^\\["+BASENAME+"\\]"),
|
598
|
-
|
599
|
-
//
|
600
|
-
// Return a complete URL to a file (replacing the root pattern)
|
601
|
-
//
|
602
|
-
fileURL: function (file) {return file.replace(this.rootPattern,this.config.root)},
|
603
|
-
|
604
|
-
//
|
605
|
-
// Load a file if it hasn't been already.
|
606
|
-
// Make sure the file URL is "safe"?
|
607
|
-
//
|
608
|
-
Require: function (file,callback) {
|
609
|
-
callback = BASE.CallBack(callback); var type;
|
610
|
-
if (file instanceof Object) {for (var i in file) {}; type = i.toUpperCase(); file = file[i]}
|
611
|
-
else {type = file.split(/\./).pop().toUpperCase()}
|
612
|
-
file = this.fileURL(file);
|
613
|
-
// FIXME: check that URL is OK
|
614
|
-
if (this.loaded[file]) {
|
615
|
-
callback(this.loaded[file]);
|
616
|
-
} else {
|
617
|
-
var FILE = {}; FILE[type] = file;
|
618
|
-
this.Load(FILE,callback);
|
619
|
-
}
|
620
|
-
return callback;
|
621
|
-
},
|
622
|
-
|
623
|
-
//
|
624
|
-
// Load a file regardless of where it is and whether it has
|
625
|
-
// already been loaded.
|
626
|
-
//
|
627
|
-
Load: function (file,callback) {
|
628
|
-
callback = BASE.CallBack(callback); var type;
|
629
|
-
if (file instanceof Object) {for (var i in file) {}; type = i.toUpperCase(); file = file[i]}
|
630
|
-
else {type = file.split(/\./).pop().toUpperCase()}
|
631
|
-
file = this.fileURL(file);
|
632
|
-
if (this.loading[file]) {
|
633
|
-
this.loading[file].callbacks.push(callback);
|
634
|
-
} else {
|
635
|
-
this.head = HEAD(this.head);
|
636
|
-
if (this.loader[type]) {this.loader[type].call(this,file,callback)}
|
637
|
-
else {throw Error("Can't load files of type "+type)}
|
638
|
-
}
|
639
|
-
return callback;
|
640
|
-
},
|
641
|
-
|
642
|
-
//
|
643
|
-
// Register a load hook for a particular file (it will be called when
|
644
|
-
// loadComplete() is called for that file)
|
645
|
-
//
|
646
|
-
LoadHook: function (file,callback) {
|
647
|
-
callback = BASE.CallBack(callback);
|
648
|
-
if (file instanceof Object) {for (var i in file) {file = file[i]}}
|
649
|
-
file = this.fileURL(file);
|
650
|
-
if (this.loaded[file]) {
|
651
|
-
callback(this.loaded[file]);
|
652
|
-
} else {
|
653
|
-
if (!this.loadHooks[file]) {this.loadHooks[file] = []}
|
654
|
-
this.loadHooks[file].push(callback);
|
655
|
-
}
|
656
|
-
return callback;
|
657
|
-
},
|
658
|
-
|
659
|
-
//
|
660
|
-
// Code used to load the various types of files
|
661
|
-
// (JS for JavaScript, CSS for style sheets)
|
662
|
-
//
|
663
|
-
loader: {
|
664
|
-
//
|
665
|
-
// Create a SCRIPT tag to load the file
|
666
|
-
//
|
667
|
-
JS: function (file,callback) {
|
668
|
-
var script = document.createElement("script");
|
669
|
-
var timeout = BASE.CallBack(["loadTimeout",this,file]);
|
670
|
-
this.loading[file] = {
|
671
|
-
callbacks: [callback],
|
672
|
-
message: BASE.Message.File(file),
|
673
|
-
timeout: setTimeout(timeout,this.timeout),
|
674
|
-
status: this.STATUS.OK,
|
675
|
-
script: script
|
676
|
-
};
|
677
|
-
script.onerror = timeout; // doesn't work in IE and no apparent substitute
|
678
|
-
script.type = "text/javascript";
|
679
|
-
script.src = file;
|
680
|
-
this.head.appendChild(script);
|
681
|
-
},
|
682
|
-
//
|
683
|
-
// Create a LINK tag to load the style sheet
|
684
|
-
//
|
685
|
-
CSS: function (file,callback) {
|
686
|
-
var link = document.createElement("link");
|
687
|
-
link.rel = "stylesheet"; link.type = "text/css"; link.href = file;
|
688
|
-
this.loading[file] = {
|
689
|
-
callbacks: [callback],
|
690
|
-
message: BASE.Message.File(file),
|
691
|
-
status: this.STATUS.OK
|
692
|
-
};
|
693
|
-
this.head.appendChild(link);
|
694
|
-
this.timer.create.call(this,[this.timer.file,file],link);
|
695
|
-
}
|
696
|
-
},
|
697
|
-
|
698
|
-
//
|
699
|
-
// Timing code for checking when style sheets are available.
|
700
|
-
//
|
701
|
-
timer: {
|
702
|
-
//
|
703
|
-
// Create the timing callback and start the timing loop.
|
704
|
-
// We use a delay because some browsers need it to allow the styles
|
705
|
-
// to be processed.
|
706
|
-
//
|
707
|
-
create: function (callback,node) {
|
708
|
-
var check; callback = BASE.CallBack(callback);
|
709
|
-
if (node.nodeName === "STYLE" && node.styleSheet &&
|
710
|
-
typeof(node.styleSheet.cssText) !== 'undefined') {
|
711
|
-
callback(this.STATUS.OK); // MSIE processes style immediately, but doesn't set its styleSheet!
|
712
|
-
} else if (window.chrome && typeof(window.sessionStorage) !== "undefined" &&
|
713
|
-
node.nodeName === "STYLE") {
|
714
|
-
callback(this.STATUS.OK); // Same for Chrome 5 (beta), Grrr.
|
715
|
-
} else if (isSafari2) {
|
716
|
-
this.timer.start(this,[this.timer.checkSafari2,sheets++,callback],this.styleDelay);
|
717
|
-
} else {
|
718
|
-
this.timer.start(this,[this.timer.checkLength,node,callback],this.styleDelay);
|
719
|
-
}
|
720
|
-
return callback;
|
721
|
-
},
|
722
|
-
//
|
723
|
-
// Start the timer for the given callback checker
|
724
|
-
//
|
725
|
-
start: function (AJAX,check,delay) {
|
726
|
-
check = BASE.CallBack(check);
|
727
|
-
check.execute = this.execute; check.time = this.time;
|
728
|
-
check.STATUS = AJAX.STATUS; check.timeout = AJAX.timeout;
|
729
|
-
check.delay = check.total = 0;
|
730
|
-
setTimeout(check,delay);
|
731
|
-
},
|
732
|
-
//
|
733
|
-
// Increment the time total, increase the delay
|
734
|
-
// and test if we are past the timeout time.
|
735
|
-
//
|
736
|
-
time: function (callback) {
|
737
|
-
this.total += this.delay;
|
738
|
-
this.delay = Math.floor(this.delay * 1.05 + 5);
|
739
|
-
if (this.total >= this.timeout) {callback(this.STATUS.ERROR); return 1}
|
740
|
-
return 0;
|
741
|
-
},
|
742
|
-
//
|
743
|
-
// For JS file loads, call the proper routine according to status
|
744
|
-
//
|
745
|
-
file: function (file,status) {
|
746
|
-
if (status < 0) {BASE.Ajax.loadTimeout(file)} else {BASE.Ajax.loadComplete(file)}
|
747
|
-
},
|
748
|
-
//
|
749
|
-
// Call the hook with the required data
|
750
|
-
//
|
751
|
-
execute: function () {this.hook.call(this.object,this,this.data[0],this.data[1])},
|
752
|
-
//
|
753
|
-
// Safari2 doesn't set the link's stylesheet, so we need to look in the
|
754
|
-
// document.styleSheets array for the new sheet when it is created
|
755
|
-
//
|
756
|
-
checkSafari2: function (check,length,callback) {
|
757
|
-
if (check.time(callback)) return;
|
758
|
-
if (document.styleSheets.length > length &&
|
759
|
-
document.styleSheets[length].cssRules &&
|
760
|
-
document.styleSheets[length].cssRules.length)
|
761
|
-
{callback(check.STATUS.OK)} else {setTimeout(check,check.delay)}
|
762
|
-
},
|
763
|
-
//
|
764
|
-
// Look for the stylesheets rules and check when they are defined
|
765
|
-
// and no longer of length zero. (This assumes there actually ARE
|
766
|
-
// some rules in the stylesheet.)
|
767
|
-
//
|
768
|
-
checkLength: function (check,node,callback) {
|
769
|
-
if (check.time(callback)) return;
|
770
|
-
var isStyle = 0; var sheet = (node.sheet || node.styleSheet);
|
771
|
-
try {if ((sheet.cssRules||sheet.rules||[]).length > 0) {isStyle = 1}} catch(err) {
|
772
|
-
if (err.message.match(/protected variable|restricted URI/)) {isStyle = 1}
|
773
|
-
else if (err.message.match(/Security error/)) {
|
774
|
-
// Firefox3 gives "Security error" for missing files, so
|
775
|
-
// can't distinguish that from OK files on remote servers.
|
776
|
-
// or OK files in different directory from local files.
|
777
|
-
isStyle = 1; // just say it is OK (can't really tell)
|
778
|
-
}
|
779
|
-
}
|
780
|
-
if (isStyle) {
|
781
|
-
// Opera 9.6 requires this setTimeout
|
782
|
-
setTimeout(BASE.CallBack([callback,check.STATUS.OK]),0);
|
783
|
-
} else {
|
784
|
-
setTimeout(check,check.delay);
|
785
|
-
}
|
786
|
-
}
|
787
|
-
},
|
788
|
-
|
789
|
-
//
|
790
|
-
// JavaScript code must call this when they are completely initialized
|
791
|
-
// (this allows them to perform asynchronous actions before indicating
|
792
|
-
// that they are complete).
|
793
|
-
//
|
794
|
-
loadComplete: function (file) {
|
795
|
-
file = this.fileURL(file);
|
796
|
-
var loading = this.loading[file];
|
797
|
-
if (loading) {
|
798
|
-
BASE.Message.Clear(loading.message);
|
799
|
-
clearTimeout(loading.timeout);
|
800
|
-
if (loading.script) {
|
801
|
-
if (SCRIPTS.length === 0) {setTimeout(REMOVESCRIPTS,0)}
|
802
|
-
SCRIPTS.push(loading.script);
|
803
|
-
}
|
804
|
-
this.loaded[file] = loading.status; delete this.loading[file];
|
805
|
-
if (this.loadHooks[file]) {
|
806
|
-
BASE.CallBack.Queue(
|
807
|
-
[BASE.CallBack.ExecuteHooks,this.loadHooks[file],loading.status],
|
808
|
-
[BASE.CallBack.ExecuteHooks,loading.callbacks,loading.status]
|
809
|
-
);
|
810
|
-
} else {
|
811
|
-
BASE.CallBack.ExecuteHooks(loading.callbacks,loading.status);
|
812
|
-
}
|
813
|
-
}
|
814
|
-
},
|
815
|
-
|
816
|
-
//
|
817
|
-
// If a file fails to load within the timeout period (or the onerror handler
|
818
|
-
// is called), this routine runs to signal the error condition.
|
819
|
-
//
|
820
|
-
loadTimeout: function (file) {
|
821
|
-
if (this.loading[file].timeout) {clearTimeout(this.loading[file].timeout)}
|
822
|
-
this.loading[file].status = this.STATUS.ERROR;
|
823
|
-
this.loadError(file);
|
824
|
-
this.loadComplete(file);
|
825
|
-
},
|
826
|
-
|
827
|
-
//
|
828
|
-
// The default error hook for file load failures
|
829
|
-
//
|
830
|
-
loadError: function (file) {BASE.Message.Set("File failed to load: "+file,null,2000)},
|
831
|
-
|
832
|
-
//
|
833
|
-
// Defines a style sheet from a hash of style declarations (key:value pairs
|
834
|
-
// where the key is the style selector and the value is a hash of CSS attributes
|
835
|
-
// and values).
|
836
|
-
//
|
837
|
-
Styles: function (styles,callback) {
|
838
|
-
var styleString = this.StyleString(styles);
|
839
|
-
if (styleString === "") {
|
840
|
-
callback = BASE.CallBack(callback);
|
841
|
-
callback();
|
842
|
-
} else {
|
843
|
-
var style = document.createElement("style"); style.type = "text/css";
|
844
|
-
this.head = HEAD(this.head);
|
845
|
-
this.head.appendChild(style);
|
846
|
-
if (style.styleSheet && typeof(style.styleSheet.cssText) !== 'undefined') {
|
847
|
-
style.styleSheet.cssText = styleString;
|
848
|
-
} else {
|
849
|
-
style.appendChild(document.createTextNode(styleString));
|
850
|
-
}
|
851
|
-
callback = this.timer.create.call(this,callback,style);
|
852
|
-
}
|
853
|
-
return callback;
|
854
|
-
},
|
855
|
-
|
856
|
-
//
|
857
|
-
// Create a stylesheet string from a style declaration object
|
858
|
-
//
|
859
|
-
StyleString: function (styles) {
|
860
|
-
if (typeof(styles) === 'string') {return styles}
|
861
|
-
var string = "", id;
|
862
|
-
for (id in styles) {if (styles.hasOwnProperty(id)) {
|
863
|
-
if (typeof styles[id] === 'string') {
|
864
|
-
string += id + " {"+styles[id]+"}\n";
|
865
|
-
} else if (styles[id] instanceof Array) {
|
866
|
-
for (var i = 0; i < styles[id].length; i++) {
|
867
|
-
var style = {}; style[id] = styles[id][i];
|
868
|
-
string += this.StyleString(style);
|
869
|
-
}
|
870
|
-
} else if (id.substr(0,6) === '@media') {
|
871
|
-
string += id + " {"+this.StyleString(styles[id])+"}\n";
|
872
|
-
} else if (styles[id] != null) {
|
873
|
-
var style = [];
|
874
|
-
for (var name in styles[id]) {
|
875
|
-
if (styles[id][name] != null)
|
876
|
-
{style[style.length] = name + ': ' + styles[id][name]}
|
877
|
-
}
|
878
|
-
string += id +" {"+style.join('; ')+"}\n";
|
879
|
-
}
|
880
|
-
}}
|
881
|
-
return string;
|
882
|
-
}
|
883
|
-
};
|
884
|
-
|
885
|
-
})("MathJax");
|
886
|
-
|
887
|
-
/**********************************************************/
|
888
|
-
|
889
|
-
MathJax.Message = {
|
890
|
-
log: [{}], current: null,
|
891
|
-
textNodeBug: (navigator.vendor === "Apple Computer, Inc." &&
|
892
|
-
typeof navigator.vendorSub === "undefined") ||
|
893
|
-
(window.hasOwnProperty && window.hasOwnProperty("konqueror")), // Konqueror displays some gibberish with text.nodeValue = "..."
|
894
|
-
|
895
|
-
styles: {
|
896
|
-
"#MathJax_Message": {
|
897
|
-
position: "fixed", left: "1px", bottom: "2px",
|
898
|
-
'background-color': "#E6E6E6", border: "1px solid #959595",
|
899
|
-
margin: "0px", padding: "2px 8px",
|
900
|
-
'z-index': "102", color: "black", 'font-size': "80%",
|
901
|
-
width: "auto", 'white-space': "nowrap"
|
902
|
-
},
|
903
|
-
|
904
|
-
"#MathJax_MSIE_Frame": {
|
905
|
-
position: "absolute",
|
906
|
-
top:0, left: 0, width: "0px", 'z-index': 101,
|
907
|
-
border: "0px", margin: "0px", padding: "0px"
|
908
|
-
}
|
909
|
-
},
|
910
|
-
|
911
|
-
browsers: {
|
912
|
-
MSIE: function (browser) {
|
913
|
-
MathJax.Hub.config.styles["#MathJax_Message"].position = "absolute";
|
914
|
-
MathJax.Message.quirks = (document.compatMode === "BackCompat");
|
915
|
-
},
|
916
|
-
Chrome: function (browser) {
|
917
|
-
MathJax.Hub.config.styles["#MathJax_Message"].bottom = "1.5em";
|
918
|
-
MathJax.Hub.config.styles["#MathJax_Message"].left = "1em";
|
919
|
-
}
|
920
|
-
},
|
921
|
-
|
922
|
-
Init: function() {
|
923
|
-
if (!document.body) {return false}
|
924
|
-
if (!this.div) {
|
925
|
-
var frame = document.body;
|
926
|
-
if (MathJax.Hub.Browser.isMSIE) {
|
927
|
-
frame = this.frame = this.addDiv(document.body);
|
928
|
-
frame.style.position = "absolute";
|
929
|
-
frame.style.border = frame.style.margin = frame.style.padding = "0px";
|
930
|
-
frame.style.zIndex = "101"; frame.style.height = "0px";
|
931
|
-
frame = this.addDiv(frame);
|
932
|
-
frame.id = "MathJax_MSIE_Frame";
|
933
|
-
window.attachEvent("onscroll",this.MoveFrame);
|
934
|
-
window.attachEvent("onresize",this.MoveFrame);
|
935
|
-
this.MoveFrame();
|
936
|
-
}
|
937
|
-
this.div = this.addDiv(frame);
|
938
|
-
this.div.id = "MathJax_Message"; this.div.style.display = "none";
|
939
|
-
this.text = this.div.appendChild(document.createTextNode(""));
|
940
|
-
}
|
941
|
-
return true;
|
942
|
-
},
|
943
|
-
|
944
|
-
addDiv: function (parent) {
|
945
|
-
var div = document.createElement("div");
|
946
|
-
if (parent.firstChild) {parent.insertBefore(div,parent.firstChild)}
|
947
|
-
else {parent.appendChild(div)}
|
948
|
-
return div;
|
949
|
-
},
|
950
|
-
|
951
|
-
MoveFrame: function () {
|
952
|
-
var body = (MathJax.Message.quirks ? document.body : document.documentElement);
|
953
|
-
var frame = MathJax.Message.frame;
|
954
|
-
frame.style.left = body.scrollLeft + 'px';
|
955
|
-
frame.style.top = body.scrollTop + 'px';
|
956
|
-
frame.style.width = body.clientWidth + 'px';
|
957
|
-
frame = frame.firstChild;
|
958
|
-
frame.style.height = body.clientHeight + 'px';
|
959
|
-
},
|
960
|
-
|
961
|
-
Set: function (text,n,clearDelay) {
|
962
|
-
if (this.timer) {clearTimeout(this.timer); delete this.timeout}
|
963
|
-
if (n == null) {n = this.log.length; this.log[n] = {}}
|
964
|
-
this.log[n].text = text;
|
965
|
-
if (typeof(this.log[n].next) === "undefined") {
|
966
|
-
this.log[n].next = this.current;
|
967
|
-
if (this.current != null) {this.log[this.current].prev = n}
|
968
|
-
this.current = n;
|
969
|
-
}
|
970
|
-
if (this.current === n) {
|
971
|
-
if (this.Init()) {
|
972
|
-
if (this.textNodeBug) {this.div.innerHTML = text} else {this.text.nodeValue = text}
|
973
|
-
this.div.style.display = "";
|
974
|
-
if (this.status) {window.status = ""; delete this.status}
|
975
|
-
} else {
|
976
|
-
window.status = text;
|
977
|
-
this.status = true;
|
978
|
-
}
|
979
|
-
}
|
980
|
-
if (clearDelay) {setTimeout(MathJax.CallBack(["Clear",this,n]),clearDelay)}
|
981
|
-
return n;
|
982
|
-
},
|
983
|
-
|
984
|
-
Clear: function (n,delay) {
|
985
|
-
if (this.log[n].prev != null) {this.log[this.log[n].prev].next = this.log[n].next}
|
986
|
-
if (this.log[n].next != null) {this.log[this.log[n].next].prev = this.log[n].prev}
|
987
|
-
if (this.current === n) {
|
988
|
-
this.current = this.log[n].next;
|
989
|
-
if (this.text) {
|
990
|
-
if (this.current == null) {
|
991
|
-
if (this.timer) {clearTimeout(this.timer)}
|
992
|
-
this.timer = setTimeout(MathJax.CallBack(["Remove",this]),(delay||600));
|
993
|
-
} else if (this.textNodeBug) {this.div.innerHTML = this.log[this.current].text}
|
994
|
-
else {this.text.nodeValue = this.log[this.current].text}
|
995
|
-
if (this.status) {window.status = ""; delete this.status}
|
996
|
-
} else if (this.status) {
|
997
|
-
window.status = (this.current == null ? "" : this.log[this.current].text);
|
998
|
-
}
|
999
|
-
}
|
1000
|
-
delete this.log[n].next; delete this.log[n].prev;
|
1001
|
-
},
|
1002
|
-
|
1003
|
-
Remove: function () {
|
1004
|
-
// FIXME: do a fade out or something else interesting?
|
1005
|
-
this.text.nodeValue = "";
|
1006
|
-
this.div.style.display = "none";
|
1007
|
-
},
|
1008
|
-
|
1009
|
-
File: function (file) {
|
1010
|
-
var root = MathJax.Ajax.config.root;
|
1011
|
-
if (file.substr(0,root.length) === root) {file = "[MathJax]"+file.substr(root.length)}
|
1012
|
-
return this.Set("Loading "+file);
|
1013
|
-
},
|
1014
|
-
|
1015
|
-
Log: function () {
|
1016
|
-
var strings = [];
|
1017
|
-
for (var i = 1, m = this.log.length; i < m; i++) {strings[i] = this.log[i].text}
|
1018
|
-
return strings.join("\n");
|
1019
|
-
}
|
1020
|
-
|
1021
|
-
};
|
1022
|
-
|
1023
|
-
/**********************************************************/
|
1024
|
-
|
1025
|
-
MathJax.Hub = {
|
1026
|
-
config: {
|
1027
|
-
root: "",
|
1028
|
-
config: [], // list of configuration files to load
|
1029
|
-
styleSheets: [], // list of CSS files to load
|
1030
|
-
styles: MathJax.Message.styles, // styles to generate in-line
|
1031
|
-
jax: [], // list of input and output jax to load
|
1032
|
-
extensions: [], // list of extensions to load
|
1033
|
-
browser: {}, // browser-specific files to load (by browser name)
|
1034
|
-
preJax: null, // pattern to remove from before math script tag
|
1035
|
-
postJax: null, // pattern to remove from after math script tag
|
1036
|
-
preRemoveClass: 'MathJax_Preview', // class of objects to remove preceeding math script
|
1037
|
-
showProcessingMessages: true, // display "Processing math: nn%" messages or not
|
1038
|
-
delayStartupUntil: "none", // set to "onload" to delay setup until the onload handler runs
|
1039
|
-
// or to a CallBack to wait for before continuing with the startup
|
1040
|
-
skipStartupTypeset: false, // set to true to skip PreProcess and Process during startup
|
1041
|
-
|
1042
|
-
preProcessors: [], // list of callbacks for preprocessing (initialized by extensions)
|
1043
|
-
inputJax: {}, // mime-type mapped to input jax (by registration)
|
1044
|
-
outputJax: {} // mime-type mapped to output jax list (by registration)
|
1045
|
-
},
|
1046
|
-
|
1047
|
-
processUpdateTime: 500, // time between screen updates when processing math (milliseconds)
|
1048
|
-
|
1049
|
-
signal: MathJax.CallBack.Signal("Hub"), // Signal used for Hub events
|
1050
|
-
|
1051
|
-
Config: function (def) {
|
1052
|
-
this.Insert(this.config,def);
|
1053
|
-
if (this.config.Augment) {this.Augment(this.config.Augment)}
|
1054
|
-
},
|
1055
|
-
|
1056
|
-
Register: {
|
1057
|
-
PreProcessor: function (callback) {MathJax.Hub.config.preProcessors.push(MathJax.CallBack(callback))},
|
1058
|
-
BrowserHook: function (browser,callback) {
|
1059
|
-
var browsers = MathJax.Hub.Startup.browsers;
|
1060
|
-
if (!browsers[browser]) {browsers[browser] = []}
|
1061
|
-
if (!(browsers[browser] instanceof Array)) {browsers[browser] = [browsers[browser]]}
|
1062
|
-
browsers[browser].push(callback);
|
1063
|
-
},
|
1064
|
-
MessageHook: function () {return MathJax.Hub.signal.MessageHook.apply(MathJax.Hub.signal,arguments)},
|
1065
|
-
StartupHook: function () {return MathJax.Hub.Startup.signal.MessageHook.apply(MathJax.Hub.Startup.signal,arguments)},
|
1066
|
-
LoadHook: function () {return MathJax.Ajax.LoadHook.apply(MathJax.Ajax,arguments)}
|
1067
|
-
},
|
1068
|
-
|
1069
|
-
getAllJax: function (element) {
|
1070
|
-
var jax = [], scripts = this.elementScripts(element);
|
1071
|
-
for (var i = 0, m = scripts.length; i < m; i++) {
|
1072
|
-
if (scripts[i].MathJax && scripts[i].MathJax.elementJax)
|
1073
|
-
{jax.push(scripts[i].MathJax.elementJax)}
|
1074
|
-
}
|
1075
|
-
return jax;
|
1076
|
-
},
|
1077
|
-
|
1078
|
-
getJaxByType: function (type,element) {
|
1079
|
-
var jax = [], scripts = this.elementScripts(element);
|
1080
|
-
for (var i = 0, m = scripts.length; i < m; i++) {
|
1081
|
-
if (scripts[i].MathJax && scripts[i].MathJax.elementJax &&
|
1082
|
-
scripts[i].MathJax.elementJax.mimeType === type)
|
1083
|
-
{jax.push(scripts[i].MathJax.elementJax)}
|
1084
|
-
}
|
1085
|
-
return jax;
|
1086
|
-
},
|
1087
|
-
|
1088
|
-
getJaxByInputType: function (type,element) {
|
1089
|
-
var jax = [], scripts = this.elementScripts(element);
|
1090
|
-
for (var i = 0, m = scripts.length; i < m; i++) {
|
1091
|
-
if (scripts[i].MathJax && scripts[i].MathJax.elementJax &&
|
1092
|
-
scripts[i].type && scripts[i].type.replace(/ *;(.|\s)*/,"") === type)
|
1093
|
-
{jax.push(scripts[i].MathJax.elementJax)}
|
1094
|
-
}
|
1095
|
-
return jax;
|
1096
|
-
},
|
1097
|
-
|
1098
|
-
getJaxFor: function (element) {
|
1099
|
-
if (typeof(element) === 'string') {element = document.getElementById(element)}
|
1100
|
-
if (element.MathJax) {return element.MathJax.elementJax}
|
1101
|
-
// FIXME: also check for results of outputJax
|
1102
|
-
return null;
|
1103
|
-
},
|
1104
|
-
|
1105
|
-
isJax: function (element) {
|
1106
|
-
if (typeof(element) === 'string') {element = document.getElementById(element)}
|
1107
|
-
if (element.tagName != null && element.tagName.toLowerCase() === 'script') {
|
1108
|
-
if (element.MathJax)
|
1109
|
-
{return (element.MathJax.state === MathJax.ElementJax.STATE.PROCESSED ? 1 : -1)}
|
1110
|
-
if (element.type && this.config.inputJax[element.type.replace(/ *;(.|\s)*/,"")]) {return -1}
|
1111
|
-
}
|
1112
|
-
// FIXME: check for results of outputJax
|
1113
|
-
return 0;
|
1114
|
-
},
|
1115
|
-
|
1116
|
-
Typeset: function (element,callback) {
|
1117
|
-
if (!MathJax.isReady) return null;
|
1118
|
-
var ec = this.elementCallBack(element,callback);
|
1119
|
-
return MathJax.CallBack.Queue(
|
1120
|
-
["PreProcess",this,ec.element],
|
1121
|
-
["Process",this,ec.element]
|
1122
|
-
).Push(ec.callback);
|
1123
|
-
},
|
1124
|
-
|
1125
|
-
PreProcess: function (element,callback) {
|
1126
|
-
var ec = this.elementCallBack(element,callback);
|
1127
|
-
return MathJax.CallBack.Queue(
|
1128
|
-
["Post",this.signal,"Begin PreProcess"],
|
1129
|
-
["ExecuteHooks",MathJax.CallBack,
|
1130
|
-
(arguments.callee.disabled ? [] : this.config.preProcessors), ec.element, true],
|
1131
|
-
["Post",this.signal,"End PreProcess"]
|
1132
|
-
).Push(ec.callback);
|
1133
|
-
},
|
1134
|
-
|
1135
|
-
Process: function (element,callback) {return this.takeAction("Process",element,callback)},
|
1136
|
-
Update: function (element,callback) {return this.takeAction("Update",element,callback)},
|
1137
|
-
Reprocess: function (element,callback) {return this.takeAction("Reprocess",element,callback)},
|
1138
|
-
|
1139
|
-
takeAction: function (action,element,callback) {
|
1140
|
-
var ec = this.elementCallBack(element,callback);
|
1141
|
-
var scripts = []; // filled in by prepareScripts
|
1142
|
-
return MathJax.CallBack.Queue(
|
1143
|
-
["Clear",this.signal],
|
1144
|
-
["Post",this.signal,["Begin "+action,ec.element]],
|
1145
|
-
["prepareScripts",this,action,ec.element,scripts],
|
1146
|
-
["processScripts",this,scripts],
|
1147
|
-
["Post",this.signal,["End "+action,ec.element]]
|
1148
|
-
).Push(ec.callback);
|
1149
|
-
},
|
1150
|
-
|
1151
|
-
scriptAction: {
|
1152
|
-
Process: function (script) {},
|
1153
|
-
Update: function (script) {
|
1154
|
-
var jax = script.MathJax.elementJax;
|
1155
|
-
if (jax && jax.originalText !==
|
1156
|
-
(script.text == ""? script.innerHTML : script.text)) {jax.Remove()}
|
1157
|
-
},
|
1158
|
-
Reprocess: function (script) {
|
1159
|
-
if (script.MathJax.elementJax) {script.MathJax.elementJax.Remove()}
|
1160
|
-
}
|
1161
|
-
},
|
1162
|
-
|
1163
|
-
prepareScripts: function (action,element,math) {
|
1164
|
-
if (arguments.callee.disabled) return;
|
1165
|
-
var scripts = this.elementScripts(element);
|
1166
|
-
var STATE = MathJax.ElementJax.STATE;
|
1167
|
-
for (var i = 0, m = scripts.length; i < m; i++) {
|
1168
|
-
var script = scripts[i];
|
1169
|
-
if (script.type && this.config.inputJax[script.type.replace(/ *;(.|\n)*/,"")]) {
|
1170
|
-
if (script.MathJax && script.MathJax.state === STATE.PROCESSED)
|
1171
|
-
{this.scriptAction[action](script)}
|
1172
|
-
if (!script.MathJax) {script.MathJax = {state: STATE.PENDING}}
|
1173
|
-
if (script.MathJax.state !== STATE.PROCESSED) {math.push(script)}
|
1174
|
-
}
|
1175
|
-
}
|
1176
|
-
},
|
1177
|
-
|
1178
|
-
checkScriptSiblings: function (script) {
|
1179
|
-
if (script.MathJax && script.MathJax.checked) return;
|
1180
|
-
var config = this.config;
|
1181
|
-
var pre = script.previousSibling;
|
1182
|
-
if (pre && pre.nodeName == "#text") {
|
1183
|
-
var preJax,postJax;
|
1184
|
-
var post = script.nextSibling;
|
1185
|
-
if (post && post.nodeName != "#text") {post = null}
|
1186
|
-
if (config.preJax) {preJax = pre.nodeValue.match(config.preJax+"$")}
|
1187
|
-
if (config.postJax && post) {postJax = post.nodeValue.match("^"+config.postJax)}
|
1188
|
-
if (preJax && (!config.postJax || postJax)) {
|
1189
|
-
pre.nodeValue = pre.nodeValue.replace
|
1190
|
-
(config.preJax+"$",(preJax.length > 1? preJax[1] : ""));
|
1191
|
-
pre = null;
|
1192
|
-
}
|
1193
|
-
if (postJax && (!config.preJax || preJax)) {
|
1194
|
-
post.nodeValue = post.nodeValue.replace
|
1195
|
-
("^"+config.postJax,(postJax.length > 1? postJax[1] : ""));
|
1196
|
-
}
|
1197
|
-
if (pre && !pre.nodeValue.match(/\S/)) {pre = pre.previousSibling}
|
1198
|
-
}
|
1199
|
-
if (config.preRemoveClass && pre && pre.className == config.preRemoveClass) {
|
1200
|
-
try {pre.innerHTML = ""} catch (err) {}
|
1201
|
-
pre.style.display = "none";
|
1202
|
-
}
|
1203
|
-
if (script.MathJax) {script.MathJax.checked = 1}
|
1204
|
-
},
|
1205
|
-
|
1206
|
-
processScripts: function (scripts,start,n) {
|
1207
|
-
if (arguments.callee.disabled) {return null}
|
1208
|
-
var result, STATE = MathJax.ElementJax.STATE;
|
1209
|
-
var inputJax = this.config.inputJax, outputJax = this.config.outputJax;
|
1210
|
-
try {
|
1211
|
-
if (!start) {start = new Date().getTime()}
|
1212
|
-
var i = 0, script;
|
1213
|
-
while (i < scripts.length) {
|
1214
|
-
script = scripts[i]; if (!script) continue;
|
1215
|
-
var type = script.type.replace(/ *;(.|\s)*/,"");
|
1216
|
-
if (!script.MathJax || script.MathJax.state === STATE.PROCESSED) continue;
|
1217
|
-
if (!script.MathJax.elementJax || script.MathJax.state === STATE.UPDATE) {
|
1218
|
-
this.checkScriptSiblings(script);
|
1219
|
-
result = inputJax[type].Translate(script);
|
1220
|
-
if (result instanceof Function) {
|
1221
|
-
if (result.called) continue; // go back and call Translate() again
|
1222
|
-
this.RestartAfter(result);
|
1223
|
-
}
|
1224
|
-
result.Attach(script,inputJax[type]);
|
1225
|
-
}
|
1226
|
-
var jax = script.MathJax.elementJax;
|
1227
|
-
if (!outputJax[jax.mimeType]) {
|
1228
|
-
script.MathJax.state = STATE.UPDATE;
|
1229
|
-
throw Error("No output jax registered for "+jax.mimeType);
|
1230
|
-
}
|
1231
|
-
jax.outputJax = outputJax[jax.mimeType][0];
|
1232
|
-
result = jax.outputJax.Translate(script);
|
1233
|
-
if (result instanceof Function) {
|
1234
|
-
script.MathJax.state = STATE.UPDATE;
|
1235
|
-
if (result.called) continue; // go back and call Translate() again
|
1236
|
-
this.RestartAfter(result);
|
1237
|
-
}
|
1238
|
-
script.MathJax.state = STATE.PROCESSED;
|
1239
|
-
this.signal.Post(["New Math",jax.inputID]); // FIXME: wait for this? (i.e., restart if returns uncalled callback)
|
1240
|
-
i++;
|
1241
|
-
if (new Date().getTime() - start > this.processUpdateTime && i < scripts.length)
|
1242
|
-
{start = 0; this.RestartAfter(MathJax.CallBack.Delay(1))}
|
1243
|
-
}
|
1244
|
-
} catch (err) {
|
1245
|
-
if (!err.restart) {throw err}
|
1246
|
-
if (!n) {n = 0}; var m = Math.floor((n+i)/(n+scripts.length)*100); n += i;
|
1247
|
-
if (this.config.showProcessingMessages) {MathJax.Message.Set("Processing math: "+m+"%",0)}
|
1248
|
-
return MathJax.CallBack.After(["processScripts",this,scripts.slice(i),start,n],err.restart);
|
1249
|
-
}
|
1250
|
-
if ((n || scripts.length) && this.config.showProcessingMessages) {
|
1251
|
-
MathJax.Message.Set("Processing Math: 100%",0);
|
1252
|
-
MathJax.Message.Clear(0);
|
1253
|
-
}
|
1254
|
-
return null;
|
1255
|
-
},
|
1256
|
-
|
1257
|
-
RestartAfter: function (callback) {
|
1258
|
-
throw this.Insert(Error("restart"),{restart: MathJax.CallBack(callback)});
|
1259
|
-
},
|
1260
|
-
|
1261
|
-
elementCallBack: function (element,callback) {
|
1262
|
-
if (callback == null && (element instanceof Array || element instanceof Function))
|
1263
|
-
{callback = element; element = document.body}
|
1264
|
-
else if (element == null) {element = document.body}
|
1265
|
-
else if (typeof(element) === 'string') {element = document.getElementById(element)}
|
1266
|
-
if (!element) {throw Error("No such element")}
|
1267
|
-
if (!callback) {callback = {}}
|
1268
|
-
return {element: element, callback: callback};
|
1269
|
-
},
|
1270
|
-
|
1271
|
-
elementScripts: function (element) {
|
1272
|
-
if (typeof(element) === 'string') {element = document.getElementById(element)}
|
1273
|
-
if (element == null) {element = document.body}
|
1274
|
-
if (element.tagName != null && element.tagName.toLowerCase() === "script") {return [element]}
|
1275
|
-
return element.getElementsByTagName("script");
|
1276
|
-
},
|
1277
|
-
|
1278
|
-
Insert: function (dst,src) {
|
1279
|
-
for (var id in src) {if (src.hasOwnProperty(id)) {
|
1280
|
-
// allow for concatenation of arrays?
|
1281
|
-
if (typeof src[id] === 'object' && !(src[id] instanceof Array) &&
|
1282
|
-
(typeof dst[id] === 'object' || typeof dst[id] === 'function')) {
|
1283
|
-
this.Insert(dst[id],src[id]);
|
1284
|
-
} else {
|
1285
|
-
dst[id] = src[id];
|
1286
|
-
}
|
1287
|
-
}}
|
1288
|
-
return dst;
|
1289
|
-
}
|
1290
|
-
};
|
1291
|
-
|
1292
|
-
//
|
1293
|
-
// Storage area for preprocessors and extensions
|
1294
|
-
// (should these be classes?)
|
1295
|
-
//
|
1296
|
-
MathJax.PreProcessor = {};
|
1297
|
-
MathJax.Extension = {};
|
1298
|
-
|
1299
|
-
//
|
1300
|
-
// Hub Startup code
|
1301
|
-
//
|
1302
|
-
MathJax.Hub.Startup = {
|
1303
|
-
script: "", // the startup script from the SCRIPT call that loads MathJax.js
|
1304
|
-
queue: MathJax.CallBack.Queue(), // Queue used for startup actions
|
1305
|
-
signal: MathJax.CallBack.Signal("Startup"), // Signal used for startup events
|
1306
|
-
|
1307
|
-
//
|
1308
|
-
// Load the configuration files
|
1309
|
-
//
|
1310
|
-
Config: function () {
|
1311
|
-
this.queue.Push(["Post",this.signal,"Begin Config"]);
|
1312
|
-
if (this.script.match(/\S/)) {this.queue.Push(this.script+';1')}
|
1313
|
-
else {this.queue.Push(["Require",MathJax.Ajax,this.URL("config","MathJax.js")])}
|
1314
|
-
if (MathJax.userConfig)
|
1315
|
-
{this.queue.Push(function () {try {MathJax.userConfig()} catch(e) {}})}
|
1316
|
-
return this.queue.Push(
|
1317
|
-
[function (config,onload) {
|
1318
|
-
if (config.delayStartupUntil.isCallback) {return config.delayStartupUntil}
|
1319
|
-
if (config.delayStartupUntil === "onload") {return onload}
|
1320
|
-
return function () {};
|
1321
|
-
}, MathJax.Hub.config, this.onload],
|
1322
|
-
["loadArray",this,MathJax.Hub.config.config,"config"],
|
1323
|
-
["Post",this.signal,"End Config"]
|
1324
|
-
);
|
1325
|
-
},
|
1326
|
-
//
|
1327
|
-
// Setup stylesheets and extra styles
|
1328
|
-
//
|
1329
|
-
Styles: function () {
|
1330
|
-
return this.queue.Push(
|
1331
|
-
["Post",this.signal,"Begin Styles"],
|
1332
|
-
["loadArray",this,MathJax.Hub.config.styleSheets,"config"],
|
1333
|
-
["Styles",MathJax.Ajax,MathJax.Hub.config.styles],
|
1334
|
-
["Post",this.signal,"End Styles"]
|
1335
|
-
);
|
1336
|
-
},
|
1337
|
-
//
|
1338
|
-
// Load the input and output jax
|
1339
|
-
//
|
1340
|
-
Jax: function () {
|
1341
|
-
return this.queue.Push(
|
1342
|
-
["Post",this.signal,"Begin Jax"],
|
1343
|
-
["loadArray",this,MathJax.Hub.config.jax,"jax","config.js"],
|
1344
|
-
["Post",this.signal,"End Jax"]
|
1345
|
-
);
|
1346
|
-
},
|
1347
|
-
//
|
1348
|
-
// Load the extensions
|
1349
|
-
//
|
1350
|
-
Extensions: function () {
|
1351
|
-
return this.queue.Push(
|
1352
|
-
["Post",this.signal,"Begin Extensions"],
|
1353
|
-
["loadArray",this,MathJax.Hub.config.extensions,"extensions"],
|
1354
|
-
["Post",this.signal,"End Extensions"]
|
1355
|
-
);
|
1356
|
-
},
|
1357
|
-
|
1358
|
-
//
|
1359
|
-
// Setup the onload callback
|
1360
|
-
//
|
1361
|
-
onLoad: function (when) {
|
1362
|
-
var onload = this.onload =
|
1363
|
-
MathJax.CallBack(function () {MathJax.Hub.Startup.signal.Post("onLoad")});
|
1364
|
-
if (window.addEventListener) {window.addEventListener("load",onload,false)}
|
1365
|
-
else if (window.attachEvent) {window.attachEvent("onload",onload)}
|
1366
|
-
else {window.onload = onload}
|
1367
|
-
return onload;
|
1368
|
-
},
|
1369
|
-
|
1370
|
-
//
|
1371
|
-
// Load any browser-specific config files
|
1372
|
-
// then call any registered browser hooks
|
1373
|
-
//
|
1374
|
-
Browser: function () {
|
1375
|
-
this.queue.Push(["Post",this.signal,"Begin Browser"]);
|
1376
|
-
var browser = MathJax.Hub.config.browser[MathJax.Hub.Browser];
|
1377
|
-
this.queue.Push(["loadArray",this,browser,"config/browsers"]);
|
1378
|
-
var hooks = this.browsers[MathJax.Hub.Browser];
|
1379
|
-
if (!(hooks instanceof Array)) {hooks = [hooks]}
|
1380
|
-
this.queue.Push.apply(this.queue,hooks);
|
1381
|
-
return this.queue.Push(["Post",this.signal,"End Browser"]);
|
1382
|
-
},
|
1383
|
-
|
1384
|
-
//
|
1385
|
-
// Code to initialize browsers
|
1386
|
-
//
|
1387
|
-
browsers: {
|
1388
|
-
MSIE: function (browser) {},
|
1389
|
-
Firefox: function (browser) {},
|
1390
|
-
Safari: function (browser) {},
|
1391
|
-
Opera: function (browser) {},
|
1392
|
-
Chrome: function (browser) {}
|
1393
|
-
},
|
1394
|
-
|
1395
|
-
//
|
1396
|
-
// Perform the initial typesetting (or skip if configuration says to)
|
1397
|
-
//
|
1398
|
-
Typeset: function (element,callback) {
|
1399
|
-
if (MathJax.Hub.config.skipStartupTypeset) {return function () {}}
|
1400
|
-
return this.queue.Push(
|
1401
|
-
["Post",this.signal,"Begin Typeset"],
|
1402
|
-
["Typeset",MathJax.Hub,element,callback],
|
1403
|
-
["Post",this.signal,"End Typeset"]
|
1404
|
-
);
|
1405
|
-
},
|
1406
|
-
|
1407
|
-
//
|
1408
|
-
// Create a URL in the MathJax hierarchy
|
1409
|
-
//
|
1410
|
-
URL: function (dir,name) {
|
1411
|
-
if (!name.match(/^([a-z]+:\/\/|\[|\/)/)) {name = "[MathJax]/"+dir+"/"+name}
|
1412
|
-
return name;
|
1413
|
-
},
|
1414
|
-
|
1415
|
-
//
|
1416
|
-
// Load an array of files, waiting for all of them
|
1417
|
-
// to be loaded before going on
|
1418
|
-
//
|
1419
|
-
loadArray: function (files,dir,name) {
|
1420
|
-
if (files) {
|
1421
|
-
if (!(files instanceof Array)) {files = [files]}
|
1422
|
-
if (files.length) {
|
1423
|
-
var queue = MathJax.CallBack.Queue(), callback = {}, file;
|
1424
|
-
for (var i = 0, m = files.length; i < m; i++) {
|
1425
|
-
file = this.URL(dir,files[i]);
|
1426
|
-
if (name) {file += "/" + name}
|
1427
|
-
queue.Push(MathJax.Ajax.Require(file,callback));
|
1428
|
-
// queue.Push(["Require",MathJax.Ajax,file,callback]);
|
1429
|
-
}
|
1430
|
-
return queue.Push({}); // wait for everything to finish
|
1431
|
-
}
|
1432
|
-
}
|
1433
|
-
return null;
|
1434
|
-
}
|
1435
|
-
|
35
|
+
eval(data.join(''));
|
1436
36
|
};
|
37
|
+
MathJax.isPacked = true;
|
1437
38
|
|
39
|
+
MathJax.Unpack([
|
40
|
+
['if(','document.','getElementById','&&',1,'childNodes&&',1,'createElement','){','if(!','window.MathJax','){',10,'={}}',9,'MathJax.Hub','){MathJax.version="1.0.1";(','function(','d){','var b=','window[d];if(!','b){b','=window[d]={}}var ','f','=[];','var c=',17,'g','){var h=','g.','constructor',';if(!','h){h=','new Function','("")}','for(var ','i in g){if(i!=="',30,'"&&g','.hasOwnProperty','(i)){h[i]=g[i]}}','return ','h};var a=','function(){',41,33,'("',41,'arguments','.callee','.Init','.call(this,',48,')")};var e=a();e','.prototype','={bug_test:1};',9,'e',54,'.bug_test){a=',43,41,43,41,48,49,50,51,48,')}}}b.','Object','=c({',30,':a(),Subclass:',17,'g,i',28,'a();h.SUPER=this;h',50,'=this',50,';h','.Subclass','=this',82,';h.Augment=this.Augment;h.','protoFunction','=this.',86,';h.can=this.can;h.has=this.has;h.isa=this.isa;h',54,'=new this(f);h',54,'.',30,'=h;h.Augment(g,i);',41,'h},Init:',17,'g',28,'this;if(g','.length===','1&&g[0]===f','){return ','h}if(!(h ','instanceof ','g',49,')){h=new g',49,'(f)}',41,'h',50,'.apply(','h,g)||h},Augment:',17,'g,h){var i;if(g','!=null){for(i in ','g){if(g',39,'(i)){this','.',86,'(i,g[i','])}}if(g.toString!==this.prototype.toString&&g.toString!=={}.toString){this.protoFunction("toString",g.toString)}}','if(h',119,'h){if(','h',39,122,'[i]=h[i]}}}',41,'this},',86,':',17,'h,g){this',54,'[h]=g;','if(typeof',' g','==="function"){','g.SUPER=this.SUPER',54,'}},prototype:{Init',':function(){},','SUPER:',17,'g',104,'g',49,'.SUPER},can:',17,'g',104,'typeof(this[g','])==="function"},has:',17,'g',104,159,'])!=="undefined','"},isa:',17,'g){return(g ',106,70,')&&(this ',106,'g)}},can:',17,'g',104,'this',54,'.can',51,'g)},has:',17,'g',104,'this',54,'.has',51,'g)},isa:',17,'h){var g=this;while(',120,'===h',104,'true}else{g=g.SUPER}}',41,'false},SimpleSUPER:c({',30,':',17,'g',104,'this.SimpleSUPER.define(g)},define:',17,'g){var i={};if(g!=null){',35,'h in ',120,39,'(h)){this.',86,'(h,g[h',126,41,'i},wrap:',17,'i,h){',142,'(h',')==="function"&&','h','.toString','().match(/\\.\\s*SUPER\\s*\\(/)){var g=',33,'(this.wrapper);g.label=i;g','.original','=h;h=g;g',222,'=this.stringify}',41,'h},wrapper:',43,'var h=',48,49,';this.SUPER=h.SUPER[h.label];try{var g=h',226,'.apply(this',',',48,')}catch(i){','delete this.','SUPER;','throw i}',242,243,41,'g}.','toString().replace','(/^\\s*function \\(\\)\\s*\\{\\s*/i,"").replace(/\\s*\\}\\s*$/i,""),toString:',43,41,'this',226,222,238,226,',',48,')}})})})("MathJax");(',17,'BASENAME){var ','BASE=window[BASENAME','];',9,'BASE){',263,']={}}var ','CALLBACK','=',17,'data){var cb=',33,'("',41,48,49,'.execute',115,48,49,',',48,')");',35,'id in ','CALLBACK.prototype','){if(',287,39,'(id)){',142,'(data[id',165,'"){cb[id]=data[id]}else{cb[id]=',287,'[id]}}}cb',222,'=',287,222,';',41,'cb};',287,'={isCallback:true,hook',148,'data:[],object:window,execute:',43,9,'this.called||this.autoReset){this.called=!this.autoReset;',41,'this.hook',238,'.object,this','.data.concat([].slice.call(',48,',0)))}},reset:',43,242,'called},toString:',43,41,313,222,238,'.hook,',48,')}};var ISCALLBACK=',17,'f){return(typeof(f',220,'f.isCallback)};var EVAL=',17,'code',104,'eval.call(window,code)};EVAL("var __TeSt_VaR__ = 1','");if(','window.__TeSt_VaR__','){delete ',339,'}else{if(','window.execScript','){EVAL=',17,'code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";',343,'(code',');var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result','}}else{EVAL=',17,346,'var head=(',1,'getElementsByTagName("head"))[0];if(!','head){head=',1,'body}var script=',1,7,'("script");','script','.appendChild(',1,'createTextNode','(code));head',363,'script);','head.removeChild(','script',349,'}}}var USING=',17,'args,i','){if(',48,'.length','>1){if(',48,102,'2&&!(typeof ',48,'[0]==="function")&&',48,'[0] ',106,'Object&&typeof ',48,'[1]==="number"){','args=[].slice.call(',374,')}else{',390,48,',0)}}if(args ',106,'Array&&args',102,'1){args=args[0]}',142,' args',144,'if(args',278,'===',287,278,104,'args}',41,269,'({hook:args})}else{if(args ',106,'Array){',142,'(args[0])==="string"&&args[1] ',106,387,'args[1][args[0]]==="','function"){return CALLBACK({hook:args[','1][args[0]],object:args[1','],data:args.slice(','2)})}else{',142,' args[0]==="',420,'0',422,'1)})}else{',142,' args[1]==="',420,'1],object:args[0',422,'2)})}}}}else{',142,'(args)==="','string"){',41,269,'({hook:EVAL,data:[args]})}else{if(args ',106,70,104,269,'(args',392,142,437,'undefined"){',41,269,'({})}}}}}','throw Error("Can\'t ','make ','callback',' from given data")};var DELAY=',17,'time,',456,'){callback=USING(callback);',456,'.timeout=','setTimeout(',456,',time);','return callback','};var WAITFOR=',17,456,',signal',461,9,456,'.called){','WAITSIGNAL(',456,471,');signal.pending++}};var WAITEXECUTE=',43,'var ','signals','=this','.signal',';',242,'signal;this',278,'=this.','oldExecute;',242,490,'var result=','this',278,238,',',48,');','if(ISCALLBACK(result)&&!result.called){',476,'result,',482,392,'for(var i=0,m=',482,'.length;i<m;i++){','signals[i].pending','--;if(',508,'<=0){',482,'[i].call()}}}};var WAITSIGNAL=',17,456,',',482,'){if(!(',482,' ',106,'Array)){',482,'=[',482,']}',9,456,484,'){',456,'.oldExecute=',456,278,';',456,278,'=WAITEXECUTE;',456,484,'=',482,342,482,102,'1){',456,484,'.push(',482,'[0','])}else{',456,484,'=',456,484,'.concat(',482,')}}};var AFTER=',17,456,461,456,'.pending=0;',35,'i=1,m=',48,507,'if(',48,'[i]){WAITFOR(',48,'[i],',456,')}}if(',456,'.pending===0){',493,456,'();','if(ISCALLBACK(result',')){',456,'=result}}',467,'};var HOOKS=',17,'hooks,data,reset){',9,'hooks',104,'null}if(!(hooks ',106,522,'hooks=[hooks]}if(!(data ',106,522,'data=(data==null?[]:[data])}var ','callbacks','=[{}];',505,'hooks',507,'if(reset){hooks[i].reset()}',493,'hooks[i].apply(window,data);',500,600,549,'result)}}if(',600,102,'1',104,'null}if(',600,102,'2',104,600,'[1]}',41,'AFTER.apply({},',600,')};var QUEUE=BASE.',70,82,'({Init:',43,'this.pending','=0;','this.running','=0;','this.queue',24,'this.Push',238,',',48,')},Push:',43,'var ',456,';',505,48,507,456,'=USING(',48,'[i]);if(',456,'===',48,'[i]&&!',456,475,456,'=USING(["wait",this,',456,'])}',635,549,456,')}',9,633,'&&!',631,'){','this.Process','()}',467,'},Process:',17,'queue){while(!',633,'&&!',631,'&&',635,377,'){var ',456,'=',635,'[0];queue=',635,'.slice(1);',635,24,'this.Suspend();',493,456,'();','this.Resume();','if(queue',377,'){',635,'=queue',558,635,')}',500,'WAITFOR(result,this',')}}},','Suspend:',43,633,'++},Resume:',43,'if(',633,'){',633,'--}},call:',43,672,238,',',48,')},wait:',17,456,'){',467,'}});var SIGNAL=QUEUE',82,'({Init:',17,'name){','QUEUE',54,50,'.call(this',');this.name=name;','this.posted',24,'this.listeners','=[]},Post:',17,'message,',456,',forget',461,'if(this.posting||this.pending){',637,'(["Post",this,message,',456,746,552,'this.',456,'=',456,';',456,'.reset();',9,'forget){',739,549,'message)}',693,'this.posting=1;',505,741,507,741,'[i].reset();var result=(',741,'[i])(','message);',500,707,')}}',697,242,'posting',31,631,'){this.call()}}',467,'},Clear:',17,456,461,748,456,'=',637,'(["Clear",this,',456,552,739,24,456,'()}',467,'},call:',43,'this.',456,'(this);',672,'()},Interest:',17,456,',ignorePast',461,741,'[',741,377,']=',456,31,'ignorePast){',505,739,507,456,760,493,456,'(',739,'[i]);',582,')&&i===',739,377,'-1){',707,')}}}',467,'},NoInterest:',17,456,'){',505,741,507,'if(',741,'[i]===',456,'){',741,'.splice(i,1);return}}},MessageHook:',17,'msg,',456,461,9,'this.hooks','){',858,'={};this.Interest(["ExecuteHooks",this])}',9,'this.hooks[msg',']){',863,']=[]}',863,'].push(',456,');',505,739,507,'if(',739,'[i]==msg){',456,760,456,'(',739,'[i])}}',467,'},ExecuteHooks:',17,'msg,more){var type=((msg ',106,'Array)?msg[0]:msg);',41,'HOOKS(',858,'[type],[msg],true)}},{',482,':{},find:',17,733,9,'SIGNAL.signals[name',']){',898,']=new SIGNAL(name)}',41,898,']}});BASE.Callback=BASE.CallBack=USING',';BASE.Callback.','Delay=DELAY',905,'After=AFTER',905,'Queue=QUEUE',905,'Signal=SIGNAL.find;BASE','.Callback.ExecuteHooks','=HOOKS})("MathJax");(',17,'d','){var a=',20,'a){a',22,'c=(','navigator.vendor==="Apple Computer, Inc."&&typeof navigator.vendorSub==="undefined','");var f=0;var g=',17,129,1,'styleSheets','&&',1,927,377,'>f){f=',1,927,377,'}',9,'h){h=(',1,355,32,1,'body}}',41,'h};var e',24,19,43,35,'j=0,h=e',377,';j<h;j++){','a.Ajax.',369,'e[j])}e=[]};a.Ajax={loaded:{},loading:{},loadHooks:{},timeout:15*1000,styleDelay:1,config:{root:""},STATUS:{OK:1,ERROR:-1},rootPattern:new RegExp("^\\\\["+d+"\\\\]"),fileURL:',17,'h',104,'h.replace(this.rootPattern,this.config.root)},Require:',17,'j,m){m','=a.Callback(','m',');var k;if(j instanceof Object){for(var h in j){}k=h.toUpperCase();j=j[h]}else{k=j.split(/\\./).pop().toUpperCase()}j=this.fileURL(j);if(this.','loaded[j]){m','(this.loaded[j])}else{','var l={};l[k]=j;this.Load(l,m)}',41,'m},Load:',17,'j,l){l',962,'l',964,'loading[j]){','this.loading','[j].',600,549,'l',392,'this.head=g(this.head);','if(this.loader[k]){this.loader[k].call(this,j,l',392,454,'load files of type "+k)}}',41,'l},LoadHook:',17,'j,k){k',962,'k);if(j ',106,70,'){',35,207,'j){j=j[h]}}j=','this.fileURL(','j);if(this.loaded[j]){k',966,9,'this.loadHooks[','j]){',1003,'j]=[]}',1003,'j].push(k)}',41,'k},loader:{JS:',17,'i,k',28,1,7,361,'var j=','a.Callback','(["','loadTimeout','",this,i]);',976,'[i]={',600,':[k','],message:a.Message.File(','i),timeout:',464,'j,','this.timeout','),status:this.STATUS.OK',',script:h};h.onerror=j;h.type="text/javascript";h.src=i;','this.head',363,'h)},CSS:',17,'h,j){var i=',1,7,'("link");i.rel="stylesheet";','i.type="text/css";','i.href=h;',976,'[h]={',600,':[j',1026,'h',1031,'};',1033,363,'i);this.timer.create',737,',[this.timer.file,h],i)}},timer:{create:',17,217,'i',962,'i);if(','h.nodeName==="STYLE','"&&h','.styleSheet&&typeof(','h','.styleSheet.cssText)!=="undefined"){i','(this','.STATUS.OK)}else{','if(window.chrome&&typeof(window.sessionStorage)!=="undefined"&&',1061,'"){i(this',1067,'if(c){','this.timer.start(this,[this.timer.','checkSafari2',',f++,','i],this.styleDelay',392,1073,'checkLength,h,',1076,')}}}',41,'i},start:',17,'i,h,j){h',962,'h);h',278,'=this',278,';h.time=this.time;h.STATUS=i.STATUS;h',463,'i.timeout',';h.delay=h.total=0;',464,'h,j)},time:',17,'h){this.total+=this.delay;this.delay=Math.floor(this.delay*1.05+5);if(this.total>=',1030,'){h(','this.STATUS.ERROR',');',41,'1}',41,'0},file:',17,'i,',129,'h<0){',953,1020,'(i',392,953,'loadComplete','(i)}},execute:',43,313,737,315,',this.data[0],this.data[1])},',1074,':',17,'h,i,j){if(h.time(j)){return}if(',1,927,377,'>i&&',1,927,'[i].cssRules','&&',1,927,1133,377,'){j(h',1067,464,'h,h.delay',')}},checkLength:',17,'h,k,m){if(h.time(m)){return}var l=0;var i=(k.sheet||k.styleSheet);try{if((i.cssRules||i.rules||[]).length>0){l=1}}catch(j){','if(j.message.match(/','protected variable|restricted URI/)){l=1}else{',1146,'Security error/)){l=1}}}if(l){',464,1018,'([m,h.STATUS.OK]),0',392,464,1142,708,1116,':',17,32,999,'h);var i=',976,'[h];if(','i){a.Message.Clear(i.',775,'clearTimeout(',1093,');if(i.script){if(e',102,'0){',464,'b,0)}e',549,'i.script)}this.loaded[h]=i.status;delete ',976,1164,1003,'h]){',1018,'.Queue([a',913,',',1003,'h],i.status],[a',913,',i.',600,',i.status',552,'a',913,'(i.',600,1189,708,1020,':',17,129,976,'[h].timeout','){',1167,976,1202,')}',976,'[h].status=',1101,';this.loadError(h);this.',1116,'(h)},loadError:',17,'h){a.Message.Set("File failed to load: "+h,null,2000)},Styles:',17,'j,k',28,'this.StyleString(','j);if(h===""){k',962,'k);k()}else{var i=',1,7,'("style");',1041,982,1033,363,1060,'i',1063,'i',1065,'.styleSheet.cssText=h}else{i',363,1,365,'(h))}k=this.timer.create',51,'k,i)}',41,'k},StyleString:',17,'m){',142,'(m)==="',438,41,'m}var j="",n,l;for(n in m){if(m',39,'(n)){',142,' m[n]==="',438,'j+=n+" {"+','m[n]+"}\\n"}else{if(m[n] ',106,414,35,'k=0;k<m[n].length;k++){l={};l[n]=m[n][k];j+=',1219,'l)}}else{if(n.substr(0,6)==="@media"){',1256,1219,'m[n])+"}\\n"}else{if(m[n]!=null){l',24,35,207,'m[n]){if(m[n][h]!=null){l[l',377,']=h+": "+m[n][h]}}',1256,'l.join("; ")+"}\\n"}}}}}}',41,'j}}})("MathJax");MathJax.HTML={Element:',17,'c,e,d){var f=',1,7,'(c);if(e){if(e.style){',19,'e.style;e.style={};',35,'g in b){if(b',39,'(g)){e.style[g.replace(/-([a-z])/g,this.ucMatch)]=b[g]}}}',15,'.Insert(f,e)}if(d){',35,'a=0;a<d',377,';a++){if(d[a] ',106,414,'f',363,'this.Element(','d[a][0],d[a][1],d[a][2]))}else{f',363,1,365,'(d[a]))}}}',41,'f},ucMatch:',17,'a,b',104,'b.toUpperCase()},addElement:',17,'b,a,d,c',104,'b',363,1298,'a,d,c))},TextNode:',17,'a',104,1,365,'(a)},addText:',17,'a,b',104,'a',363,'this.TextNode(b))},Cookie:{prefix:"mjx",expires:365,Set:',17,'a,d){var c',24,'if(d){',35,'f in d){if(d',39,'(f)){c',549,'f+":"+d[f].',249,'(/&/g,"&&"))}}}',19,'this.prefix+":"+','a+"="+escape(c.join("&;"));if(this.expires){var e=new Date();e.setDate(e.getDate()+this.expires);b+="; expires="+e.toGMTString()}',1,'cookie=b+"; path=/"},Get:',17,'c,h){',9,'h){h={}}var g=new RegExp("(?:^|;\\\\s*)"+',1342,'c+"=([^;]*)(?:;|$)");',19,'g.exec(',1,'cookie);if(b&&b[1]!==""){var e=unescape(b[1]).split("&;");',35,'d=0,a=e',377,';d<a;d++){b=e[d].match(/([^:]+):(.*)/);var f=b[2].replace(/&&/g,"&");if(f==="true"){f=true',342,'f==="false"){f=false',342,'f.match(/^-?(\\d+(\\.\\d+)?|\\.\\d+)$/)){f=parseFloat(f)}}}h[b[1]]=f}}',41,'h}}};','MathJax.Message','={log:[{}],current:null,textNodeBug:(',922,'")||(window',39,'&&window',39,'("konqueror")),styles:{"#','MathJax_Message','":{position:"','fixed",left:"1px",bottom:"2px","background-color":"#E6E6E6",border:"1px solid #959595','",margin:"0px",padding:"','2px 8px","z-index":"102",color:"black","font-size":"80%",width:"auto","white-space":"nowrap"},"#','MathJax_MSIE_Frame',1375,'absolute",top:0,left:0,width:"0px","z-index":101,border:"0px',1377,'0px"}},browsers:{MSIE:',17,'a){','MathJax.Hub.config.styles["#MathJax_Message"].','position="absolute";',1366,'.quirks=(',1,'compatMode==="BackCompat")},Chrome:',17,'a){',1386,'bottom="1.5em";',1386,'left="1em"}},Init:',43,9,1,'body',104,'false}if(','this.div','&&',1404,'.parentNode==null){',1404,'=',1,2,'("',1374,338,1404,'){this.text=',1404,'.firstChild','}}',9,1404,917,1,'body;if(',15,'.Browser.isMSIE){a=this.frame','=this.addDiv(',1,'body);a.style.',1387,'a.style.border=a.style.margin=a.style.padding="0px";a.style.zIndex="101";a.style.height="0px";a',1427,'a);a.id="',1379,'";','window.attachEvent("','onscroll",','this.MoveFrame',');',1436,'onresize",',1438,');',1438,'()}',1404,1427,'a);',1404,'.style.display="none";this.text=',1404,363,1,365,'(""))}',41,'true},addDiv:',17,'a){',19,1,7,'("div");b.id="',1374,'";if(a',1418,'){a.insertBefore(b,a',1418,392,'a',363,'b)}',41,'b},MoveFrame:',43,'var a=(',1366,'.quirks?',1,'body:',1,'documentElement);',19,1366,'.frame;b.style.left=a.scrollLeft+"px";b.style.top=a.scrollTop+"px";b.style.width=a.clientWidth+"px";b=b',1418,';b.style.height=a.clientHeight+"px"},filterText:',17,'a,b){if(',15,'.config.messageStyle==="simple"){if(a.match(/^Loading /)){',9,976,'){',976,'="Loading "}a=',976,';',976,'+="."}else{if(a.match(/^Processing /)){',9,'this.processing','){',1502,'="Processing "}a=',1502,';this.processi'],
|
41
|
+
['ng+="."}}}','return ','a},Set',':function','(b,c',',a','){if(this.timer){clearTimeout(this.timer',');','delete ','this.timeout}if(c','==null','){c','=this','.log','.length',';','this.log[','c]={}}',16,'c','].text','=b;b',12,'.filterText(','b,c);','if(typeof','(',16,'c].next',')==="undefined"){',16,28,'=','this.current',';if(',33,'!=null){',16,33,'].prev=','c}',33,'=c}if(',33,'===c&&','MathJax.Hub.config.','messageStyle','!=="none"){','if(this.','Init()){','if(this.textNodeBug){this.div.innerHTML=','b','}else{','this.text','.nodeValue','=b}','this.div.style.display','="";','if(this.status){window.status="";delete this.status}}else{','window.status','=b;this.status=true}}if(a){setTimeout(','MathJax.Callback','(["Clear','",this,','c]),a)}',1,'c},Clear',3,'(b,a){if','(',16,'b].prev',36,16,16,71,'].next=',16,'b].next','}if(',16,78,36,16,16,78,39,16,71,'}if(',33,'===b){',33,'=',16,78,34,53,'){',48,'div','.parentNode',10,'){this.','Init()}if(',33,10,6,')}this.timer=setTimeout(',61,'(["Remove",this]),(a||600))}else{',50,16,33,20,52,53,54,'=',16,33,20,'}}',58,48,'status){',59,'=(',33,10,'?"":',16,33,20,')}}}',8,16,78,';',8,16,71,'},Remove',3,'(){',53,54,57,56,'="none"},File',3,'(b){var a=','MathJax.','Ajax','.config.','root',34,'b','.substr(0,','a',14,')===a){b="[MathJax]"+b.substr(a',14,')}',1,'this.Set("Loading "+b)},Log',3,'(){var b=[];','for(var ','c=1,a',12,13,14,';c<a;c++){b[c]=',16,'c',20,'}',1,'b.join("\\n")}};',152,'Hub={config:{root:"",config',':[],','styleSheets',182,'styles',':{},jax',182,'extensions',182,'preJax',':null,','postJax',191,'displayAlign:"center",displayIndent:"0",','preRemoveClass',':"MathJax_Preview",showProcessingMessages:true,',46,':"normal",','delayStartupUntil',':"none",','skipStartupTypeset',':false,','preProcessors',182,'inputJax',':{},','outputJax',':{},','menuSettings',':{zoom:"None",CTRL:false,ALT:false,CMD:false,Shift:false,zscale:"200%",renderer:"",font:"Auto",context:"MathJax"},','errorSettings',':{message:["[Math Processing Error]"],style:{color:"#CC0000","font-style":"italic"}}},','processUpdateTime',':500,signal:',61,'.Signal("','Hub"),','Config',3,'(a){this','.Insert(','this.config',',a);if(','this.config.','Augment',103,225,'(',224,225,')}},','Register',':{PreProcessor',3,'(a){',45,203,'.push(',61,'(a))},','MessageHook',3,'(){',1,152,'Hub','.signal.',241,'.apply(',152,'Hub','.signal,arguments)},','StartupHook',3,'(){',1,'MathJax.Hub.Startup',247,241,249,257,252,'LoadHook',3,'(){',1,152,'Ajax.',263,249,152,'Ajax,','arguments',231,'getAllJax',3,'(','e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax','){c.push(b[d].','MathJax.elementJax',')}}',1,'c},getJaxByType',3,'(f,',278,'&&b[d].',280,'.mimeType===f){c.push(b[d].',280,')}}',1,'c},getJaxByInputType',3,'(f,',278,287,'type',287,'type.replace(/ *;(.|\\','s)*/,"")===f){c.push(b[d].',280,')}}',1,'c},getJaxFor',3,'(a){','if(typeof(a)==="string"){a=document.getElementById(a',')}','if(a.MathJax){',1,'a.',280,'}',1,'null},isJax',3,'(a){',308,')}','if(a.tagName!=null&&a.tagName.toLowerCase()==="script"){',310,'return(a','.MathJax.state','===',152,'ElementJax.STATE','.PROCESSED','?1:-1)}if(a.type&&',224,205,'[a.',300,'s)*/,"")]){return -1}}',1,'0},Queue',3,'(){',1,'this.queue','.Push',249,340,',',273,')},','Typeset',3,4,'){if(!',152,'isReady){',1,'null}var ','a','=this.elementCallback(',24,1,61,'.Queue(["','PreProcess',63,'a.element','],["','Process',63,363,']).','Push(a.callback)},',361,3,4,'){var a',356,24,1,61,360,'Post",this.signal',',"Begin ',361,'"],["','ExecuteHooks",',61,',(','arguments.callee.disabled','?[]:',224,203,'),',363,',true','],["Post",this.signal,"End ',361,'"]).',369,365,3,'(a,b){',1,'this.takeAction("',365,'",a,b)},','Update',3,399,1,401,404,403,'Reprocess',3,399,1,401,411,403,'takeAction',3,'(d,c,e){var b',356,'c,e);var a=[];',1,61,360,'Clear",this.signal],["',379,',["Begin "+','d,b.element',']],["','prepareScripts',63,429,',a],["','processScripts',63,'a],["',379,',["End "+',429,']]).Push(b.callback)},','scriptAction',':{',365,3,'(a){},',404,3,151,'b.',280,34,'a&&a.','originalText','===(b.text==""?b.innerHTML:b.text)){b',324,'=a.STATE',328,52,'a','.outputJax.Remove(','a);b',324,'=a','.STATE.UPDATE','}},',411,3,151,'b.',280,34,'a){a',461,'a);b',324,'=a',465,'}}},',431,3,'(h,e,f){if(',386,'){return}var b=this.','elementScripts','(e);var g=',152,327,';',168,'d=0,a=b',14,';d<a;d++){var c=b[d];if(c.type&&',224,205,'[c.',300,'n)*/,"")]){if(c.MathJax&&c',324,'!==g.PENDING',103,442,'[h](c)}if(!c.MathJax){c.MathJax={state:g.PENDING}}if(c',324,'!==g',328,'){f.push(c)}}}},','checkScriptSiblings',3,'(a){if(a.MathJax&&a.',152,'checked',484,'config;var g=a','.previousSibling',34,'g&&g.nodeName=="#text"){var d,f;var c=a.nextSibling',34,'c&&c.nodeName!="#text"){c=null}if','(b.preJax','){',25,520,')==="string"){b.',190,'=new RegExp',520,'+"$")}d=g',54,'.match',520,')}if','(b.postJax','&&c){',25,533,524,192,526,'("^"+b.',192,')}f=c',54,'.match',533,')}if(d&&(!b.',192,'||f)){g',54,'=g',54,'.replace',520,',(d',14,'>1?d[1]:""));g=null}if(f&&(!b.',190,'||d)){c',54,'=c',54,552,533,',(f',14,'>1?f[1]:""))}if(g&&!g',54,'.match(/\\S/)){','g=g',515,'}}if(b.',195,'&&g&&g.className==b.',195,'){try{g.innerHTML=""}catch(e){}g.style.display="none"}',310,'a.',152,512,'=1}},',435,3,'(h,b,d){if(',386,'){',1,354,'q,o=',152,327,';var p=',224,205,',c=',224,207,';try{if(!b){b=','new Date().getTime','()}var j=0,l,f;while(j<h',14,'){l=h[j];if(!l){continue}f=l',515,34,'f&&f.className==="','MathJax_Error','"){f',101,'.removeChild(f)}var k=l.',300,'s)*/,"");if(!l.MathJax||l',324,'===o',328,'){continue}if(!l.',280,'||l',324,'===o.UPDATE',103,508,'(l);q=p[k].','Translate(l);if(typeof q==="function"){','if(q.called){continue}this.RestartAfter(q)}','q.Attach(l,p[k])}var a=l.',280,';if(!c[a.mimeType]){l',324,'=o.UPDATE;','throw Error("No ','output jax registered for "+a.mimeType)}a.',207,'=c[a.mimeType][0];q=a.',207,'.',622,'l',324,628,623,'l',324,'=o',328,';this',247,'Post(["New Math",a.inputID]);j++;if(',598,'()-b>this.',213,'&&j<h',14,'){b=0;this.','RestartAfter','(',61,'.Delay(1))}}}catch(g){if(!g.restart){if(!',224,211,'.message){throw g}this.formatError(l,g);j++}if(!d){d=0}var e=Math.floor((d+j)/(d+h',14,')*100);d+=j',34,224,'showProcessingMessages){MathJax.Message.Set("Processing ','math: "+e+"%",0)}',1,61,'.After(["',435,63,'h.slice(j),b,d],g.restart)}if((d||h',14,')&&',224,664,'Math: 100%",0);',152,'Message.','Clear(0)}',1,'null},formatError',3,'(a,c){var b=',152,'HTML.Element("span",{className:"',605,'"},',224,211,'.message);a',101,'.insertBefore(b,a);this.lastError=c},',653,3,'(a){throw this',221,'Error("restart"),{restart:',61,'(a)})},elementCallback',3,399,'if(b',10,'&&(a ','instanceof Array','||typeof a==="','function','")){b=a;a=','document.','body',52,'if(a==null){a=document.body}','else{',308,')}}}if(!a){',629,'such element")}if(!b){b={}}return{element:a,callback:b}},',485,3,'(a){',308,')}',712,321,'return[a]}',1,'a.','getElementsByTagName("','script")},Insert',3,'(c,a){',168,'b in a){if(a','.hasOwnProperty','(b)){',25,' a[b]==="object"&&!(a[b] ',705,')&&(','typeof c[b]==="','object"||',740,707,'")){this',221,'c[b],a[b])}else{c[b]=a[b]}}}',1,'c}};',152,'Hub',221,45,185,',',152,678,185,');',152,'Hub',221,45,185,',{".',605,'":',45,211,'.style});',152,'Extension={};',257,'={script:"",queue:',61,'.Queue(),','signal:',61,216,'Startup','"),',218,3,'(){','this.queue.Push(["Post",this.signal,"Begin ',218,'"]);var a=',152,'HTML.Cookie','.Get("user");if(a.URL||a.',218,'){if(confirm("MathJax has found a user-configuration cookie that includes code to be run. Do you want to run it?\\n\\n(You should press Cancel unless you set up the cookie yourself.)")){if(a.URL){',340,'.Push(["Require",MathJax.Ajax,','a.URL])}if(a.',218,'){',152,'userConfig=new Function(a.',218,')}}else{',152,788,'.Set("user",{})}}',48,'script',568,340,'.Push(this.script+";\\n1;")}else{',340,793,'this.URL("config","',152,'js")])}',1,340,'.Push([',707,4,'){if(b.',199,'.isCallback){',1,'b.',199,'}if(b.',199,'==="onload"){',1,'c}',1,707,'(){}},',152,'Hub.config,this.onload','],[function(','b){',1,'b.','loadArray','(',45,'config,"config",null,true)},this',393,218,'"])},','Cookie',3,'(){',1,784,846,382,'Get",',152,788,',"menu",',45,209,835,'f,c){if(f','.renderer','){var d="output/"+f',861,';',168,'e=0,b=c',14,',a=0;e<b;e++){if(c[e]===d){c.splice(e,1);a=0;break}if(c[e].substr(0,7)==="output/"){a=(a?0:e+1)}}c.unshift(d);if(a){c.splice(a,1)}}},',45,209,',',45,'jax',393,846,845,'Styles',3,'(){',1,784,877,382,839,63,45,183,',"config',382,877,'",',152,272,45,185,393,877,845,'Jax',3,'(){',1,784,'Jax',382,839,63,45,'jax,"jax","config.js",true',393,'Jax',845,'Extensions',3,'(){',1,784,913,382,839,63,45,188,',"',188,382,379,',"End ',913,845,'onLoad',3,'(a){var b',12,'.onload=',61,'(','function(){',257,247,'Post("onLoad")});if(','window.addEventListener','){',942,'("load",b,false)}else{if(','window.attachEvent','){',946,'("onload",b)}else{window.onload=b}}',1,'b},',347,3,399,'if(',45,201,'){',1,707,'(){}}',1,784,347,382,347,'",',152,'Hub,a,b',393,347,845,'URL',3,68,'(!a.match(/^([a-z]+:\\/\\/|\\[|\\/)/)){a="[MathJax]/"+b+"/"+a}',1,'a},',839,3,'(b,f,c,a){if(b){if(!(b ',705,')){b=[b]}if(b',14,'){var h=',61,775,'j={},e;',168,'g=0,d=b',14,';g<d;g++){e',12,'.URL(f,b[g]);if(c){e+="/"+c}if(a){h',793,'e,j])}else{h.Push(',152,'Ajax.Require(e,j))}}',1,'h.Push({})}}',1,'null}};(',707,'(d','){var b=window[','d],e="["+d+"]";var c=b.Hub,a=b.',272,'f=b.Callback;var g=',152,'Object','.Subclass','({require',191,'config:{},Init',3,'(i,h){','if(',273,14,'===0){',1,'this}return(','this.constructor',1011,'(i,h))()},',225,3,'(k,j','){var i=',1023,',h={};if(k',36,168,'l in k){if(k',734,'(l)){',25,' k[l]==="',707,'"){','i.protoFunction','(l,k[l])}else{h[l]=k[l]}}}if(k.toString!==i','.prototype.','toString&&k.toString!=={}.toString){',1041,'("toString",k.toString)}}c',221,'i.prototype,h);i.',225,'(null,j);',1,'this},','Translate',3,'(h){',1023,1043,1053,12,'.noTranslate;',1,'a.Require(','this.directory','+"/jax.js','")},noTranslate',3,'(h){throw Error(',1063,1064,' failed to redefine the ',1053,'() method")},',232,3,'(h){},',218,3,'(){c',221,222,',(c.config[this.name]||{}));if(',224,225,103,225,'(',224,225,231,779,3,'(){},','loadComplete',3,'(n){if(n==="jax.js"){var j=f.Queue();','j.Push(["Post",c.Startup.signal,this.name+" Jax ',218,'"]);','j.Push(["',218,'",this]);',1096,'Require"]);',48,'require){var k',12,'.require;if(!(k ',705,')){k=[k]}',168,'l=0,h=k',14,';l<h;l++){j.Push(',1062,'k[l]))}',1099,839,'",',257,',',224,'require,"config"])}',1096,779,'"]);',1099,779,'",this]);',1096,'Ready"]);',1,1099,1093,'",a,',1063,'+"/"+n])}else{',1,'a.',1093,'(',1063,'+"/"+n)}}},{name:"unknown",version:"1.0",directory:e+"/jax",extensionDir:e+"/',188,'"});b.InputJax=g',1011,'({',232,3,'(h){if(!','b.Hub',154,205,'){c',154,205,'={}}c',154,205,'[h]=this}},{','version:"1.0",directory:g.directory+"/','input','",extensionDir:g.extensionDir','});b.OutputJax=g',1011,'({',232,3,1149,'c.config.outputJax','){',1169,'={}}if(!',1169,'[h]){',1169,'[h]=[];if(!c',154,209,861,'){c',154,209,861,12,'.name}}',1169,'[h].push(this)},Remove',3,'(h){}},{',1160,'output',1162,',fontDir:e+(b.isPacked?"":"/..")+"/fonts"});','b.ElementJax','=g',1011,'({Init',3,1016,1,1023,1011,'(i,h)},',205,191,207,191,'inputID',191,454,':"",mimeType:"",Text',3,'(j,k){','var h=this.SourceElement();','if(','h.firstChild','){if(',1216,'.nodeName!=="#text"){h.text=j',52,1216,54,'=j}}else{try{h.innerHTML=j}catch(i){h.text=j}}h',324,12,465,';',1,'c.',404,'(h,k)},',411,3,'(i){',1214,'h',324,12,465,';',1,'c.',411,'(h,i)},Remove',3,'(){this',461,'this);c',247,'Post(["Remove Math",this.inputID]);this.Detach()},SourceElement',3,'(){',1,709,'getElementById(this.inputID)},Attach',3,'(i,j){var h=i.',280,34,'i',324,'===this',465,'){h.Clone(this)}else{h=i.',280,12,34,'i.id',103,'inputID=',1268,52,1268,12,'.',1270,1194,'.GetID();this.newID=1}}h.',454,'=(i.text==""?i.innerHTML:i.text);h.',205,'=j},Detach',3,'(){',1214,'if(!h){return}try{',8,'h.MathJax}catch(i){h.MathJax=null}',48,'newID){h.id=""}},Clone',3,'(h){var i;for(i in this){if(!this',734,'(i)){continue}if(typeof(','h','[i])==="undefined','"&&i!=="newID"){',8,'this[i]}}for(i in h){if(!this',734,1294,'this',1296,'"||(this[i]!==h[i]&&i!=="inputID")){this[i]=h[i]}}}},{',1160,'element',1162,',ID:0,STATE:{PENDING:1,PROCESSED:2,UPDATE:3},GetID',3,'(){this.ID++;return"MathJax-Element-"+this.ID},Subclass',3,'(){var h=g',1011,249,'this,',273,');h.',1093,12,1043,1093,';',1,'h}});',1194,1043,'STATE=b.',327,'})("MathJax");(',707,'(l',1005,'l];if(!b){b=window[l]={}}var d=b.Hub;var n=d.',779,';var m=d.config;var k=',709,728,'head")[0];if(!k){k=',709,'childNodes[0]}var f=(',709,'documentElement||document).',728,'script");var e',526,'("(^|/)"+l+"\\\\.js$");',168,'g=f',14,'-1;g>=0;g--){if(f[g].src.match(e)){n.script=f[g].innerHTML;m.root=f[g].src',552,'(/(^|\\/)[^\\/]*$/,"");break}}b.Ajax.config=m;var j={isMac',':(navigator.platform.substr(0,3)==="','Mac"),isPC',1353,'Win"),isMSIE:(',709,'all!=null&&!','window.opera','),isFirefox:(',709,'ATTRIBUTE_NODE!=null&&window.directories!=null),isSafari',':(navigator.vendor!=null&&navigator.vendor.match(/','Apple/)!=null&&!navigator.omniWebString),isOpera:(',1359,'!=null&&',1359,'.version!=null),isChrome',1363,'Google/)!=null),isKonqueror:(window',734,'&&window',734,'("konqueror")),versionAtLeast',3,'(r){var q=(this','.version).split','(".");r=(','new String','(r)).split(".");',168,'s=0,p=r',14,';s<p;s++){if(q[s]!=r[s]){',1,'parseInt(q[s]||"0")>=parseInt(r[s])}}',1,'true},Select',3,'(p',1029,'p[d.Browser];if(i){',1,'i(d.Browser)}',1,'null}};var a=navigator.userAgent',552,'(/^Mozilla\\/(\\d+\\.)+\\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\\/\\d+[^ ]*-[^ ]*\\.([a-z][a-z])?\\d+ /i,"").replace(/Gentoo |Ubuntu\\/(\\d+\\.)*\\d+ (\\([^)]*\\) )?/,"");d.Browser=d',221,'d',221,1379,'("Unknown"),{version:"0.0"}),j);',168,'h in j){if(j',734,'(h)){if(j[h]&&h',158,'2)==="is"){h=h.slice(2);if(h==="Mac"||h==="PC"){continue}d.Browser=d',221,1379,'(h),j);var o',526,'(".*(Version',')/((?:\\\\d+\\\\.)+\\\\d','+)|.*("+h+")"+(h=="MSIE"?" ":"/")+"((?:\\\\d+\\\\.)*\\\\d+)|(?:^|\\\\(| )([a-z][-a-z0-9._: ]+|WebKit',1415,'+)");var c=o.exec(a)||["","","","unknown","0.0"];d.Browser.name=(c[1]=="Version"?h:(c[3]||c[5]));d.Browser.version=c[2]||c[4]||c[6];break}}}','d.Browser.Select','({Safari',3,'(p',1029,'parseInt((String(p',1377,'("."))[0]);if(i>=526){','p.version="','4.0','"}else{if(i','>=525){',1427,'3.1',1429,'>500){',1427,'3.0',1429,'>400){',1427,'2.0',1429,'>85){',1427,'1.0"}}}}}},Firefox',3,'(p){if(p.version==="0.0"&&navigator.product==="Gecko"&&','navigator.productSub',1029,1447,158,'8);if(i>="20090630"){',1427,'3.5',1429,'>="20080617"){',1427,'3.0',1429,'>="20061024"){',1427,'2.0"}}}}},Opera',3,'(i){i.version=opera.version()}});',1419,'(',152,678,'browsers);d.queue=b.Callback.Queue();d.queue.Push(["','Post",n.signal,"','Begin',382,218,'",n],["',846,1473,877,1473,'Jax',1473,913,'",n],n.onLoad(),',938,152,'isReady=true},["',347,1473,1469,'End"])})("MathJax")}};']
|
42
|
+
]);
|
1438
43
|
|
1439
|
-
/**********************************************************/
|
1440
|
-
|
1441
|
-
(function (BASENAME) {
|
1442
|
-
var BASE = window[BASENAME];
|
1443
|
-
var HUB = BASE.Hub, AJAX = BASE.Ajax, CALLBACK = BASE.CallBack;
|
1444
|
-
|
1445
|
-
var JAX = MathJax.Object.Subclass({
|
1446
|
-
require: null, // array of files to load before jax.js is complete
|
1447
|
-
Init: function (def) {this.config = {}; HUB.Insert(this,def)},
|
1448
|
-
Augment: function (def) {HUB.Insert(this,def)},
|
1449
|
-
Translate: function (element) {
|
1450
|
-
this.Translate = this.noTranslate;
|
1451
|
-
return AJAX.Require(this.directory+"/jax.js");
|
1452
|
-
},
|
1453
|
-
noTranslate: function (element) {
|
1454
|
-
throw Error(this.directory+"/jax.js failed to redefine the Translate() method");
|
1455
|
-
},
|
1456
|
-
Register: function (mimetype) {},
|
1457
|
-
Config: function () {
|
1458
|
-
HUB.Insert(this.config,(HUB.config[this.name]||{}));
|
1459
|
-
if (this.config.Augment) {this.Augment(this.config.Augment)}
|
1460
|
-
},
|
1461
|
-
Startup: function () {},
|
1462
|
-
loadComplete: function (file) {
|
1463
|
-
if (file === "jax.js") {
|
1464
|
-
var queue = CALLBACK.Queue();
|
1465
|
-
queue.Push(["Post",HUB.Startup.signal,this.name+" Jax Config"]);
|
1466
|
-
queue.Push(["Config",this]);
|
1467
|
-
queue.Push(["Post",HUB.Startup.signal,this.name+" Jax Require"]);
|
1468
|
-
if (this.require) {
|
1469
|
-
var require = this.require; if (!(require instanceof Array)) {require = [require]}
|
1470
|
-
for (var i = 0, m = require.length; i < m; i++) {queue.Push(AJAX.Require(require[i]))}
|
1471
|
-
queue.Push(["loadArray",MathJax.Hub.Startup,this.config.require,"config"]);
|
1472
|
-
}
|
1473
|
-
queue.Push(["Post",HUB.Startup.signal,this.name+" Jax Startup"]);
|
1474
|
-
queue.Push(["Startup",this]);
|
1475
|
-
queue.Push(["Post",HUB.Startup.signal,this.name+" Jax Ready"]);
|
1476
|
-
return queue.Push(["loadComplete",AJAX,this.directory+"/"+file]);
|
1477
|
-
} else {
|
1478
|
-
return AJAX.loadComplete(this.directory+"/"+file);
|
1479
|
-
}
|
1480
|
-
}
|
1481
|
-
},{
|
1482
|
-
name: "unknown",
|
1483
|
-
version: 1.0,
|
1484
|
-
directory: "["+BASENAME+"]/jax",
|
1485
|
-
extensionDir: "["+BASENAME+"]/extensions"
|
1486
|
-
});
|
1487
|
-
|
1488
|
-
/***********************************/
|
1489
|
-
|
1490
|
-
BASE.InputJax = JAX.Subclass({
|
1491
|
-
Register: function (mimetype) {
|
1492
|
-
if (!BASE.Hub.config.inputJax) {HUB.config.inputJax = {}}
|
1493
|
-
HUB.config.inputJax[mimetype] = this;
|
1494
|
-
}
|
1495
|
-
},{
|
1496
|
-
version: 1.0,
|
1497
|
-
directory: JAX.directory+"/input",
|
1498
|
-
extensionDir: JAX.extensionDir
|
1499
|
-
});
|
1500
|
-
|
1501
|
-
/***********************************/
|
1502
|
-
|
1503
|
-
BASE.OutputJax = JAX.Subclass({
|
1504
|
-
Register: function (mimetype) {
|
1505
|
-
if (!HUB.config.outputJax) {HUB.config.outputJax = {}}
|
1506
|
-
if (!HUB.config.outputJax[mimetype]) {HUB.config.outputJax[mimetype] = []}
|
1507
|
-
HUB.config.outputJax[mimetype].push(this);
|
1508
|
-
},
|
1509
|
-
Remove: function (jax) {}
|
1510
|
-
},{
|
1511
|
-
version: 1.0,
|
1512
|
-
directory: JAX.directory+"/output",
|
1513
|
-
extensionDir: JAX.extensionDir,
|
1514
|
-
fontDir: "["+BASENAME+"]/fonts"
|
1515
|
-
});
|
1516
|
-
|
1517
|
-
/***********************************/
|
1518
|
-
|
1519
|
-
BASE.ElementJax = JAX.Subclass({
|
1520
|
-
inputJax: null,
|
1521
|
-
outputJax: null,
|
1522
|
-
inputID: null,
|
1523
|
-
originalText: "",
|
1524
|
-
mimeType: "",
|
1525
|
-
|
1526
|
-
Text: function (text,callback) {
|
1527
|
-
this.outputJax.Remove(this);
|
1528
|
-
var script = this.SourceElement();
|
1529
|
-
if (script.firstChild) {
|
1530
|
-
if (script.firstChild.nodeName !== "#text") {script.text = text}
|
1531
|
-
else {script.firstChild.nodeValue = text}
|
1532
|
-
} else {try {script.innerHTML = text} catch(err) {script.text = text}}
|
1533
|
-
script.MathJax.state = this.STATE.UPDATE;
|
1534
|
-
HUB.Update(script,callback);
|
1535
|
-
},
|
1536
|
-
Reprocess: function (callback) {
|
1537
|
-
var script = this.SourceElement();
|
1538
|
-
script.MathJax.state = this.STATE.UPDATE;
|
1539
|
-
HUB.Reprocess(script,callback);
|
1540
|
-
},
|
1541
|
-
Remove: function () {
|
1542
|
-
this.outputJax.Remove(this);
|
1543
|
-
HUB.signal.Post(["Remove Math",this.inputID]); // wait for this to finish?
|
1544
|
-
this.Detach();
|
1545
|
-
},
|
1546
|
-
|
1547
|
-
SourceElement: function () {return document.getElementById(this.inputID)},
|
1548
|
-
|
1549
|
-
Attach: function (script,inputJax) {
|
1550
|
-
var jax = script.MathJax.elementJax;
|
1551
|
-
if (script.MathJax.state === this.STATE.UPDATE) {
|
1552
|
-
jax.Clone(this);
|
1553
|
-
} else {
|
1554
|
-
jax = script.MathJax.elementJax = this;
|
1555
|
-
if (script.id) {this.inputID = script.id}
|
1556
|
-
else {script.id = this.inputID = BASE.ElementJax.GetID(); this.newID = 1}
|
1557
|
-
}
|
1558
|
-
jax.originalText = (script.text == "" ? script.innerHTML : script.text);
|
1559
|
-
jax.inputJax = inputJax;
|
1560
|
-
},
|
1561
|
-
Detach: function () {
|
1562
|
-
var script = this.SourceElement(); if (!script) return;
|
1563
|
-
try {delete script.MathJax} catch(err) {script.MathJax = null}
|
1564
|
-
if (this.newID) {script.id = ""}
|
1565
|
-
},
|
1566
|
-
Clone: function (jax) {
|
1567
|
-
for (var id in this) {
|
1568
|
-
if (!this.hasOwnProperty(id)) continue;
|
1569
|
-
if (typeof(jax[id]) === 'undefined' && id !== 'newID') {delete this[id]}
|
1570
|
-
}
|
1571
|
-
for (var id in jax) {
|
1572
|
-
if (!this.hasOwnProperty(id)) continue;
|
1573
|
-
if (typeof(this[id]) === 'undefined' || (this[id] !== jax[id] && id !== 'inputID'))
|
1574
|
-
{this[id] = jax[id]}
|
1575
|
-
}
|
1576
|
-
}
|
1577
|
-
},{
|
1578
|
-
version: 1.0,
|
1579
|
-
directory: JAX.directory+"/element",
|
1580
|
-
extensionDir: JAX.extensionDir,
|
1581
|
-
ID: 0, // jax counter (for IDs)
|
1582
|
-
STATE: {
|
1583
|
-
PENDING: 1, // script is identified as math but not yet processed
|
1584
|
-
PROCESSED: 2, // script has been processed
|
1585
|
-
UPDATE: 3 // elementJax should be updated
|
1586
|
-
},
|
1587
|
-
|
1588
|
-
GetID: function () {this.ID++; return "MathJax-Element-"+this.ID},
|
1589
|
-
Subclass: function () {
|
1590
|
-
var obj = JAX.Subclass.apply(this,arguments);
|
1591
|
-
obj.loadComplete = this.prototype.loadComplete;
|
1592
|
-
return obj;
|
1593
|
-
}
|
1594
|
-
});
|
1595
|
-
BASE.ElementJax.prototype.STATE = BASE.ElementJax.STATE;
|
1596
|
-
|
1597
|
-
})("MathJax");
|
1598
|
-
|
1599
|
-
/**********************************************************/
|
1600
|
-
|
1601
|
-
(function (BASENAME) {
|
1602
|
-
var BASE = window[BASENAME];
|
1603
|
-
if (!BASE) {BASE = window[BASENAME] = {}}
|
1604
|
-
|
1605
|
-
var HUB = BASE.Hub; var STARTUP = HUB.Startup; var CONFIG = HUB.config;
|
1606
|
-
var HEAD = document.getElementsByTagName("head")[0];
|
1607
|
-
if (!HEAD) {HEAD = document.childNodes[0]};
|
1608
|
-
var scripts = (document.documentElement || document).getElementsByTagName("script");
|
1609
|
-
var namePattern = new RegExp("(^|/)"+BASENAME+"\\.js$");
|
1610
|
-
for (var i = scripts.length-1; i >= 0; i--) {
|
1611
|
-
if (scripts[i].src.match(namePattern)) {
|
1612
|
-
STARTUP.script = scripts[i].innerHTML;
|
1613
|
-
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*$/,'');
|
1614
|
-
break;
|
1615
|
-
}
|
1616
|
-
}
|
1617
|
-
BASE.Ajax.config = CONFIG;
|
1618
|
-
|
1619
|
-
var BROWSERS = {
|
1620
|
-
isMac: (navigator.platform.substr(0,3) === "Mac"),
|
1621
|
-
isPC: (navigator.platform.substr(0,3) === "Win"),
|
1622
|
-
isMSIE: (document.all != null && !window.opera),
|
1623
|
-
isFirefox: (document.ATTRIBUTE_NODE != null && window.directories != null),
|
1624
|
-
isSafari: (navigator.vendor != null && navigator.vendor.match(/Apple/) != null && !navigator.omniWebString),
|
1625
|
-
isOpera: (window.opera != null && window.opera.version != null),
|
1626
|
-
isChrome: (navigator.vendor != null && navigator.vendor.match(/Google/) != null),
|
1627
|
-
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror")),
|
1628
|
-
versionAtLeast: function (v) {
|
1629
|
-
var bv = (this.version).split('.'); v = (new String(v)).split('.');
|
1630
|
-
for (var i = 0, m = v.length; i < m; i++)
|
1631
|
-
{if (bv[i] != v[i]) {return parseInt(bv[i]||"0") >= parseInt(v[i])}}
|
1632
|
-
return true;
|
1633
|
-
},
|
1634
|
-
Select: function (choices) {
|
1635
|
-
var browser = choices[HUB.Browser];
|
1636
|
-
if (browser) {return browser(HUB.Browser)}
|
1637
|
-
return null;
|
1638
|
-
}
|
1639
|
-
};
|
1640
|
-
|
1641
|
-
var AGENT = navigator.userAgent
|
1642
|
-
.replace(/^Mozilla\/(\d+\.)+\d+ /,"") // remove initial Mozilla, which is never right
|
1643
|
-
.replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"") // remove linux version
|
1644
|
-
.replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,""); // special case for these
|
1645
|
-
|
1646
|
-
HUB.Browser = HUB.Insert(HUB.Insert(new String("Unknown"),{version: "0.0"}),BROWSERS);
|
1647
|
-
for (var browser in BROWSERS) {if (BROWSERS.hasOwnProperty(browser)) {
|
1648
|
-
if (BROWSERS[browser] && browser.substr(0,2) === "is") {
|
1649
|
-
browser = browser.slice(2);
|
1650
|
-
if (browser === "Mac" || browser === "PC") continue;
|
1651
|
-
HUB.Browser = HUB.Insert(new String(browser),BROWSERS);
|
1652
|
-
var VERSION = new RegExp(
|
1653
|
-
".*(Version)/((?:\\d+\\.)+\\d+)|" + // for Safari and Opera10
|
1654
|
-
".*("+browser+")"+(browser == "MSIE" ? " " : "/")+"((?:\\d+\\.)*\\d+)|"+ // for one of the main browser
|
1655
|
-
"(?:^|\\(| )([a-z][-a-z0-9._: ]+)/((?:\\d+\\.)+\\d+)"); // for unrecognized browser
|
1656
|
-
var MATCH = VERSION.exec(AGENT) || ["","","","unknown","0.0"];
|
1657
|
-
HUB.Browser.name = (MATCH[1] == "Version" ? browser : (MATCH[3] || MATCH[5]));
|
1658
|
-
HUB.Browser.version = MATCH[2] || MATCH[4] || MATCH[6];
|
1659
|
-
break;
|
1660
|
-
}
|
1661
|
-
}};
|
1662
|
-
|
1663
|
-
//
|
1664
|
-
// Initial browser-specific info (e.g., touch up version or name)
|
1665
|
-
//
|
1666
|
-
HUB.Browser.Select({
|
1667
|
-
Safari: function (browser) {
|
1668
|
-
var v = parseInt((String(browser.version).split("."))[0]);
|
1669
|
-
if (v >= 526) {browser.version = "4.0"}
|
1670
|
-
else if (v >= 525) {browser.version = "3.1"}
|
1671
|
-
else if (v > 500) {browser.version = "3.0"}
|
1672
|
-
else if (v > 400) {browser.version = "2.0"}
|
1673
|
-
else if (v > 85) {browser.version = "1.0"}
|
1674
|
-
},
|
1675
|
-
Firefox: function (browser) {
|
1676
|
-
if (browser.version === "0.0" && navigator.product === "Gecko" && navigator.productSub) {
|
1677
|
-
var date = navigator.productSub.substr(0,8);
|
1678
|
-
if (date >= "20090630") {browser.version = "3.5"}
|
1679
|
-
else if (date >= "20080617") {browser.version = "3.0"}
|
1680
|
-
else if (date >= "20061024") {browser.version = "2.0"}
|
1681
|
-
}
|
1682
|
-
},
|
1683
|
-
Opera: function (browser) {browser.verion = opera.version()}
|
1684
|
-
});
|
1685
|
-
HUB.Browser.Select(MathJax.Message.browsers);
|
1686
|
-
|
1687
|
-
BASE.CallBack.Queue(
|
1688
|
-
["Post",STARTUP.signal,"Begin"],
|
1689
|
-
["Config",STARTUP],
|
1690
|
-
["Styles",STARTUP],
|
1691
|
-
["Jax",STARTUP],
|
1692
|
-
["Extensions",STARTUP],
|
1693
|
-
STARTUP.onLoad(),
|
1694
|
-
["Browser",STARTUP],
|
1695
|
-
function () {MathJax.isReady = true}, // indicates that MathJax is ready to process math
|
1696
|
-
["Typeset",STARTUP],
|
1697
|
-
["Post",STARTUP.signal,"End"]
|
1698
|
-
);
|
1699
|
-
|
1700
|
-
})("MathJax");
|
1701
|
-
|
1702
|
-
}
|
1703
|
-
|
1704
|
-
/**********************************************************/
|