ace-rails-ap 4.1.3 → 4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitmodules +1 -1
- data/Gemfile +2 -3
- data/ace-rails-ap.gemspec +0 -2
- data/lib/ace/rails/version.rb +1 -1
- data/update.sh +1 -1
- data/vendor/assets/javascripts/ace/ace.js +5192 -3414
- data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
- data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
- data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
- data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
- data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
- data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
- data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
- data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
- data/vendor/assets/javascripts/ace/ext-options.js +793 -0
- data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
- data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
- data/vendor/assets/javascripts/ace/ext-split.js +7 -46
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
- data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
- data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
- data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
- data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
- data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
- data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
- data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
- data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
- data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
- data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
- data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
- data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
- data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
- data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
- data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
- data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
- data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
- data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
- data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
- data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
- data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
- data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
- data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
- data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
- data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
- data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
- data/vendor/assets/javascripts/ace/mode-css.js +48 -27
- data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
- data/vendor/assets/javascripts/ace/mode-d.js +12 -5
- data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
- data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
- data/vendor/assets/javascripts/ace/mode-django.js +164 -134
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
- data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
- data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
- data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
- data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
- data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
- data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
- data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
- data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
- data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
- data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
- data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
- data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
- data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
- data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
- data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
- data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
- data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
- data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
- data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
- data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
- data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
- data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
- data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
- data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
- data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
- data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
- data/vendor/assets/javascripts/ace/mode-html.js +162 -133
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
- data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
- data/vendor/assets/javascripts/ace/mode-io.js +14 -12
- data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
- data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
- data/vendor/assets/javascripts/ace/mode-java.js +110 -7
- data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
- data/vendor/assets/javascripts/ace/mode-json.js +13 -3
- data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
- data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
- data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
- data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
- data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
- data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
- data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
- data/vendor/assets/javascripts/ace/mode-less.js +47 -27
- data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
- data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
- data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
- data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
- data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
- data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
- data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
- data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
- data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
- data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
- data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
- data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
- data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
- data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
- data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
- data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
- data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
- data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
- data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
- data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
- data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
- data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
- data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
- data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
- data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
- data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
- data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
- data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
- data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
- data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
- data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
- data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
- data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
- data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
- data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
- data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
- data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
- data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
- data/vendor/assets/javascripts/ace/mode-python.js +306 -63
- data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
- data/vendor/assets/javascripts/ace/mode-r.js +15 -4
- data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
- data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
- data/vendor/assets/javascripts/ace/mode-red.js +450 -0
- data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
- data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
- data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
- data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
- data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
- data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
- data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
- data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
- data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
- data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
- data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
- data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
- data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
- data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
- data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
- data/vendor/assets/javascripts/ace/mode-space.js +8 -1
- data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
- data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
- data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
- data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
- data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
- data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
- data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
- data/vendor/assets/javascripts/ace/mode-text.js +8 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
- data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
- data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
- data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
- data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
- data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
- data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
- data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
- data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
- data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
- data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
- data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
- data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
- data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
- data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
- data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
- data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
- data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
- data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
- data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
- data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
- data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
- data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
- data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
- data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
- data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
- data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
- data/vendor/assets/javascripts/ace/theme-github.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
- data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
- data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
- data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
- data/vendor/assets/javascripts/ace/worker-css.js +66 -739
- data/vendor/assets/javascripts/ace/worker-html.js +55 -738
- data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
- data/vendor/assets/javascripts/ace/worker-json.js +56 -737
- data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
- data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
- data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
- data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
- metadata +74 -19
- data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
- data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
- data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
- data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
- data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
- data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
- data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -1,5 +1,5 @@
|
|
1
1
|
"no use strict";
|
2
|
-
|
2
|
+
!(function(window) {
|
3
3
|
if (typeof window.window != "undefined" && window.document)
|
4
4
|
return;
|
5
5
|
if (window.require && window.define)
|
@@ -134,7 +134,7 @@ window.define = function(id, deps, factory) {
|
|
134
134
|
exports: {},
|
135
135
|
factory: function() {
|
136
136
|
var module = this;
|
137
|
-
var returnExports = factory.apply(this, deps.map(function(dep) {
|
137
|
+
var returnExports = factory.apply(this, deps.slice(0, factory.length).map(function(dep) {
|
138
138
|
switch (dep) {
|
139
139
|
// Because "require", "exports" and "module" aren't actual
|
140
140
|
// dependencies, we must handle them seperately.
|
@@ -209,7 +209,6 @@ window.onmessage = function(e) {
|
|
209
209
|
}
|
210
210
|
else if (msg.init) {
|
211
211
|
window.initBaseUrls(msg.tlns);
|
212
|
-
require("ace/lib/es5-shim");
|
213
212
|
sender = window.sender = window.initSender();
|
214
213
|
var clazz = require(msg.module)[msg.classname];
|
215
214
|
main = window.main = new clazz(sender);
|
@@ -217,7 +216,7 @@ window.onmessage = function(e) {
|
|
217
216
|
};
|
218
217
|
})(this);
|
219
218
|
|
220
|
-
define("ace/lib/oop",[
|
219
|
+
define("ace/lib/oop",[], function(require, exports, module) {
|
221
220
|
"use strict";
|
222
221
|
|
223
222
|
exports.inherits = function(ctor, superCtor) {
|
@@ -245,7 +244,7 @@ exports.implement = function(proto, mixin) {
|
|
245
244
|
|
246
245
|
});
|
247
246
|
|
248
|
-
define("ace/lib/lang",[
|
247
|
+
define("ace/lib/lang",[], function(require, exports, module) {
|
249
248
|
"use strict";
|
250
249
|
|
251
250
|
exports.last = function(a) {
|
@@ -347,7 +346,7 @@ exports.escapeRegExp = function(str) {
|
|
347
346
|
};
|
348
347
|
|
349
348
|
exports.escapeHTML = function(str) {
|
350
|
-
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<");
|
349
|
+
return ("" + str).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<");
|
351
350
|
};
|
352
351
|
|
353
352
|
exports.getMatchOffsets = function(string, regExp) {
|
@@ -433,7 +432,7 @@ exports.delayedCall = function(fcn, defaultTimeout) {
|
|
433
432
|
};
|
434
433
|
});
|
435
434
|
|
436
|
-
define("ace/range",[
|
435
|
+
define("ace/range",[], function(require, exports, module) {
|
437
436
|
"use strict";
|
438
437
|
var comparePoints = function(p1, p2) {
|
439
438
|
return p1.row - p2.row || p1.column - p2.column;
|
@@ -638,9 +637,9 @@ var Range = function(startRow, startColumn, endRow, endColumn) {
|
|
638
637
|
};
|
639
638
|
this.collapseRows = function() {
|
640
639
|
if (this.end.column == 0)
|
641
|
-
return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0)
|
640
|
+
return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0);
|
642
641
|
else
|
643
|
-
return new Range(this.start.row, 0, this.end.row, 0)
|
642
|
+
return new Range(this.start.row, 0, this.end.row, 0);
|
644
643
|
};
|
645
644
|
this.toScreenRange = function(session) {
|
646
645
|
var screenPosStart = session.documentToScreenPosition(this.start);
|
@@ -672,7 +671,7 @@ Range.comparePoints = function(p1, p2) {
|
|
672
671
|
exports.Range = Range;
|
673
672
|
});
|
674
673
|
|
675
|
-
define("ace/apply_delta",[
|
674
|
+
define("ace/apply_delta",[], function(require, exports, module) {
|
676
675
|
"use strict";
|
677
676
|
|
678
677
|
function throwDeltaError(delta, errorText){
|
@@ -734,10 +733,10 @@ exports.applyDelta = function(docLines, delta, doNotValidate) {
|
|
734
733
|
}
|
735
734
|
break;
|
736
735
|
}
|
737
|
-
}
|
736
|
+
};
|
738
737
|
});
|
739
738
|
|
740
|
-
define("ace/lib/event_emitter",[
|
739
|
+
define("ace/lib/event_emitter",[], function(require, exports, module) {
|
741
740
|
"use strict";
|
742
741
|
|
743
742
|
var EventEmitter = {};
|
@@ -787,15 +786,20 @@ EventEmitter._signal = function(eventName, e) {
|
|
787
786
|
|
788
787
|
EventEmitter.once = function(eventName, callback) {
|
789
788
|
var _self = this;
|
790
|
-
|
791
|
-
_self.
|
789
|
+
this.on(eventName, function newCallback() {
|
790
|
+
_self.off(eventName, newCallback);
|
792
791
|
callback.apply(null, arguments);
|
793
792
|
});
|
793
|
+
if (!callback) {
|
794
|
+
return new Promise(function(resolve) {
|
795
|
+
callback = resolve;
|
796
|
+
});
|
797
|
+
}
|
794
798
|
};
|
795
799
|
|
796
800
|
|
797
801
|
EventEmitter.setDefaultHandler = function(eventName, callback) {
|
798
|
-
var handlers = this._defaultHandlers
|
802
|
+
var handlers = this._defaultHandlers;
|
799
803
|
if (!handlers)
|
800
804
|
handlers = this._defaultHandlers = {_disabled_: {}};
|
801
805
|
|
@@ -812,13 +816,12 @@ EventEmitter.setDefaultHandler = function(eventName, callback) {
|
|
812
816
|
handlers[eventName] = callback;
|
813
817
|
};
|
814
818
|
EventEmitter.removeDefaultHandler = function(eventName, callback) {
|
815
|
-
var handlers = this._defaultHandlers
|
819
|
+
var handlers = this._defaultHandlers;
|
816
820
|
if (!handlers)
|
817
821
|
return;
|
818
822
|
var disabled = handlers._disabled_[eventName];
|
819
823
|
|
820
824
|
if (handlers[eventName] == callback) {
|
821
|
-
var old = handlers[eventName];
|
822
825
|
if (disabled)
|
823
826
|
this.setDefaultHandler(eventName, disabled.pop());
|
824
827
|
} else if (disabled) {
|
@@ -856,14 +859,16 @@ EventEmitter.removeEventListener = function(eventName, callback) {
|
|
856
859
|
};
|
857
860
|
|
858
861
|
EventEmitter.removeAllListeners = function(eventName) {
|
859
|
-
if (this._eventRegistry
|
862
|
+
if (!eventName) this._eventRegistry = this._defaultHandlers = undefined;
|
863
|
+
if (this._eventRegistry) this._eventRegistry[eventName] = undefined;
|
864
|
+
if (this._defaultHandlers) this._defaultHandlers[eventName] = undefined;
|
860
865
|
};
|
861
866
|
|
862
867
|
exports.EventEmitter = EventEmitter;
|
863
868
|
|
864
869
|
});
|
865
870
|
|
866
|
-
define("ace/anchor",[
|
871
|
+
define("ace/anchor",[], function(require, exports, module) {
|
867
872
|
"use strict";
|
868
873
|
|
869
874
|
var oop = require("./lib/oop");
|
@@ -956,7 +961,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
|
|
956
961
|
});
|
957
962
|
};
|
958
963
|
this.detach = function() {
|
959
|
-
this.document.
|
964
|
+
this.document.off("change", this.$onChange);
|
960
965
|
};
|
961
966
|
this.attach = function(doc) {
|
962
967
|
this.document = doc || this.document;
|
@@ -988,7 +993,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
|
|
988
993
|
|
989
994
|
});
|
990
995
|
|
991
|
-
define("ace/document",[
|
996
|
+
define("ace/document",[], function(require, exports, module) {
|
992
997
|
"use strict";
|
993
998
|
|
994
999
|
var oop = require("./lib/oop");
|
@@ -1279,28 +1284,33 @@ var Document = function(textOrLines) {
|
|
1279
1284
|
return;
|
1280
1285
|
}
|
1281
1286
|
|
1282
|
-
if (isInsert && delta.lines.length > 20000)
|
1287
|
+
if (isInsert && delta.lines.length > 20000) {
|
1283
1288
|
this.$splitAndapplyLargeDelta(delta, 20000);
|
1284
|
-
|
1285
|
-
|
1289
|
+
}
|
1290
|
+
else {
|
1291
|
+
applyDelta(this.$lines, delta, doNotValidate);
|
1292
|
+
this._signal("change", delta);
|
1293
|
+
}
|
1294
|
+
};
|
1295
|
+
|
1296
|
+
this.$safeApplyDelta = function(delta) {
|
1297
|
+
var docLength = this.$lines.length;
|
1298
|
+
if (
|
1299
|
+
delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength
|
1300
|
+
|| delta.action == "insert" && delta.start.row <= docLength
|
1301
|
+
) {
|
1302
|
+
this.applyDelta(delta);
|
1303
|
+
}
|
1286
1304
|
};
|
1287
1305
|
|
1288
1306
|
this.$splitAndapplyLargeDelta = function(delta, MAX) {
|
1289
1307
|
var lines = delta.lines;
|
1290
|
-
var l = lines.length;
|
1308
|
+
var l = lines.length - MAX + 1;
|
1291
1309
|
var row = delta.start.row;
|
1292
1310
|
var column = delta.start.column;
|
1293
|
-
var from = 0, to = 0;
|
1294
|
-
do {
|
1295
|
-
from = to;
|
1311
|
+
for (var from = 0, to = 0; from < l; from = to) {
|
1296
1312
|
to += MAX - 1;
|
1297
1313
|
var chunk = lines.slice(from, to);
|
1298
|
-
if (to > l) {
|
1299
|
-
delta.lines = chunk;
|
1300
|
-
delta.start.row = row + from;
|
1301
|
-
delta.start.column = column;
|
1302
|
-
break;
|
1303
|
-
}
|
1304
1314
|
chunk.push("");
|
1305
1315
|
this.applyDelta({
|
1306
1316
|
start: this.pos(row + from, column),
|
@@ -1308,10 +1318,14 @@ var Document = function(textOrLines) {
|
|
1308
1318
|
action: delta.action,
|
1309
1319
|
lines: chunk
|
1310
1320
|
}, true);
|
1311
|
-
}
|
1321
|
+
}
|
1322
|
+
delta.lines = lines.slice(from);
|
1323
|
+
delta.start.row = row + from;
|
1324
|
+
delta.start.column = column;
|
1325
|
+
this.applyDelta(delta, true);
|
1312
1326
|
};
|
1313
1327
|
this.revertDelta = function(delta) {
|
1314
|
-
this
|
1328
|
+
this.$safeApplyDelta({
|
1315
1329
|
start: this.clonePos(delta.start),
|
1316
1330
|
end: this.clonePos(delta.end),
|
1317
1331
|
action: (delta.action == "insert" ? "remove" : "insert"),
|
@@ -1326,7 +1340,7 @@ var Document = function(textOrLines) {
|
|
1326
1340
|
if (index < 0)
|
1327
1341
|
return {row: i, column: index + lines[i].length + newlineLength};
|
1328
1342
|
}
|
1329
|
-
return {row: l-1, column: lines[l-1].length};
|
1343
|
+
return {row: l-1, column: index + lines[l-1].length + newlineLength};
|
1330
1344
|
};
|
1331
1345
|
this.positionToIndex = function(pos, startRow) {
|
1332
1346
|
var lines = this.$lines || this.getAllLines();
|
@@ -1344,7 +1358,7 @@ var Document = function(textOrLines) {
|
|
1344
1358
|
exports.Document = Document;
|
1345
1359
|
});
|
1346
1360
|
|
1347
|
-
define("ace/worker/mirror",[
|
1361
|
+
define("ace/worker/mirror",[], function(require, exports, module) {
|
1348
1362
|
"use strict";
|
1349
1363
|
|
1350
1364
|
var Range = require("../range").Range;
|
@@ -1406,7 +1420,7 @@ var Mirror = exports.Mirror = function(sender) {
|
|
1406
1420
|
|
1407
1421
|
});
|
1408
1422
|
|
1409
|
-
define("ace/mode/css/csslint",[
|
1423
|
+
define("ace/mode/css/csslint",[], function(require, exports, module) {
|
1410
1424
|
var parserlib = {};
|
1411
1425
|
(function(){
|
1412
1426
|
function EventTarget(){
|
@@ -2390,6 +2404,7 @@ Parser.prototype = function(){
|
|
2390
2404
|
expression = null;
|
2391
2405
|
|
2392
2406
|
tokenStream.mustMatch(Tokens.LPAREN);
|
2407
|
+
this._readWhitespace();
|
2393
2408
|
|
2394
2409
|
feature = this._media_feature();
|
2395
2410
|
this._readWhitespace();
|
@@ -3915,8 +3930,13 @@ var Properties = {
|
|
3915
3930
|
"grid-row" : 1,
|
3916
3931
|
"grid-rows" : 1,
|
3917
3932
|
"grid-row-align" : "start | end | center | stretch",
|
3933
|
+
"grid-row-gap" : 1,
|
3918
3934
|
"grid-row-span" : "<integer>",
|
3919
3935
|
"grid-row-sizing" : 1,
|
3936
|
+
"grid-template" : 1,
|
3937
|
+
"grid-template-areas" : 1,
|
3938
|
+
"grid-template-columns" : 1,
|
3939
|
+
"grid-template-rows" : 1,
|
3920
3940
|
"hanging-punctuation" : 1,
|
3921
3941
|
"height" : "<margin-width> | <content-sizing> | inherit",
|
3922
3942
|
"hyphenate-after" : "<integer> | auto",
|
@@ -3959,8 +3979,10 @@ var Properties = {
|
|
3959
3979
|
"marquee-style" : 1,
|
3960
3980
|
"max-height" : "<length> | <percentage> | <content-sizing> | none | inherit",
|
3961
3981
|
"max-width" : "<length> | <percentage> | <content-sizing> | none | inherit",
|
3982
|
+
"max-zoom" : "<number> | <percentage> | auto",
|
3962
3983
|
"min-height" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit",
|
3963
3984
|
"min-width" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit",
|
3985
|
+
"min-zoom" : "<number> | <percentage> | auto",
|
3964
3986
|
"move-to" : 1,
|
3965
3987
|
"nav-down" : 1,
|
3966
3988
|
"nav-index" : 1,
|
@@ -4061,6 +4083,7 @@ var Properties = {
|
|
4061
4083
|
"unicode-bidi" : "normal | embed | isolate | bidi-override | isolate-override | plaintext | inherit",
|
4062
4084
|
"user-modify" : "read-only | read-write | write-only | inherit",
|
4063
4085
|
"user-select" : "none | text | toggle | element | elements | all | inherit",
|
4086
|
+
"user-zoom" : "zoom | fixed",
|
4064
4087
|
"vertical-align" : "auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",
|
4065
4088
|
"visibility" : "visible | hidden | collapse | inherit",
|
4066
4089
|
"voice-balance" : 1,
|
@@ -4161,6 +4184,7 @@ function PropertyValuePart(text, line, col){
|
|
4161
4184
|
case "ch":
|
4162
4185
|
case "vh":
|
4163
4186
|
case "vw":
|
4187
|
+
case "fr":
|
4164
4188
|
case "vmax":
|
4165
4189
|
case "vmin":
|
4166
4190
|
this.type = "length";
|
@@ -4749,7 +4773,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
|
|
4749
4773
|
ident = this.readName(reader.read());
|
4750
4774
|
value += ident;
|
4751
4775
|
|
4752
|
-
if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)){
|
4776
|
+
if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^fr$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)){
|
4753
4777
|
tt = Tokens.LENGTH;
|
4754
4778
|
} else if (/^deg|^rad$|^grad$/i.test(ident)){
|
4755
4779
|
tt = Tokens.ANGLE;
|
@@ -7991,7 +8015,7 @@ module.exports.CSSLint = CSSLint;
|
|
7991
8015
|
|
7992
8016
|
});
|
7993
8017
|
|
7994
|
-
define("ace/mode/css_worker",[
|
8018
|
+
define("ace/mode/css_worker",[], function(require, exports, module) {
|
7995
8019
|
"use strict";
|
7996
8020
|
|
7997
8021
|
var oop = require("../lib/oop");
|
@@ -8054,707 +8078,10 @@ oop.inherits(Worker, Mirror);
|
|
8054
8078
|
text: msg.message,
|
8055
8079
|
type: infoRules[msg.rule.id] ? "info" : msg.type,
|
8056
8080
|
rule: msg.rule.name
|
8057
|
-
}
|
8081
|
+
};
|
8058
8082
|
}));
|
8059
8083
|
};
|
8060
8084
|
|
8061
8085
|
}).call(Worker.prototype);
|
8062
8086
|
|
8063
8087
|
});
|
8064
|
-
|
8065
|
-
define("ace/lib/es5-shim",["require","exports","module"], function(require, exports, module) {
|
8066
|
-
|
8067
|
-
function Empty() {}
|
8068
|
-
|
8069
|
-
if (!Function.prototype.bind) {
|
8070
|
-
Function.prototype.bind = function bind(that) { // .length is 1
|
8071
|
-
var target = this;
|
8072
|
-
if (typeof target != "function") {
|
8073
|
-
throw new TypeError("Function.prototype.bind called on incompatible " + target);
|
8074
|
-
}
|
8075
|
-
var args = slice.call(arguments, 1); // for normal call
|
8076
|
-
var bound = function () {
|
8077
|
-
|
8078
|
-
if (this instanceof bound) {
|
8079
|
-
|
8080
|
-
var result = target.apply(
|
8081
|
-
this,
|
8082
|
-
args.concat(slice.call(arguments))
|
8083
|
-
);
|
8084
|
-
if (Object(result) === result) {
|
8085
|
-
return result;
|
8086
|
-
}
|
8087
|
-
return this;
|
8088
|
-
|
8089
|
-
} else {
|
8090
|
-
return target.apply(
|
8091
|
-
that,
|
8092
|
-
args.concat(slice.call(arguments))
|
8093
|
-
);
|
8094
|
-
|
8095
|
-
}
|
8096
|
-
|
8097
|
-
};
|
8098
|
-
if(target.prototype) {
|
8099
|
-
Empty.prototype = target.prototype;
|
8100
|
-
bound.prototype = new Empty();
|
8101
|
-
Empty.prototype = null;
|
8102
|
-
}
|
8103
|
-
return bound;
|
8104
|
-
};
|
8105
|
-
}
|
8106
|
-
var call = Function.prototype.call;
|
8107
|
-
var prototypeOfArray = Array.prototype;
|
8108
|
-
var prototypeOfObject = Object.prototype;
|
8109
|
-
var slice = prototypeOfArray.slice;
|
8110
|
-
var _toString = call.bind(prototypeOfObject.toString);
|
8111
|
-
var owns = call.bind(prototypeOfObject.hasOwnProperty);
|
8112
|
-
var defineGetter;
|
8113
|
-
var defineSetter;
|
8114
|
-
var lookupGetter;
|
8115
|
-
var lookupSetter;
|
8116
|
-
var supportsAccessors;
|
8117
|
-
if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
|
8118
|
-
defineGetter = call.bind(prototypeOfObject.__defineGetter__);
|
8119
|
-
defineSetter = call.bind(prototypeOfObject.__defineSetter__);
|
8120
|
-
lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
|
8121
|
-
lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
|
8122
|
-
}
|
8123
|
-
if ([1,2].splice(0).length != 2) {
|
8124
|
-
if(function() { // test IE < 9 to splice bug - see issue #138
|
8125
|
-
function makeArray(l) {
|
8126
|
-
var a = new Array(l+2);
|
8127
|
-
a[0] = a[1] = 0;
|
8128
|
-
return a;
|
8129
|
-
}
|
8130
|
-
var array = [], lengthBefore;
|
8131
|
-
|
8132
|
-
array.splice.apply(array, makeArray(20));
|
8133
|
-
array.splice.apply(array, makeArray(26));
|
8134
|
-
|
8135
|
-
lengthBefore = array.length; //46
|
8136
|
-
array.splice(5, 0, "XXX"); // add one element
|
8137
|
-
|
8138
|
-
lengthBefore + 1 == array.length
|
8139
|
-
|
8140
|
-
if (lengthBefore + 1 == array.length) {
|
8141
|
-
return true;// has right splice implementation without bugs
|
8142
|
-
}
|
8143
|
-
}()) {//IE 6/7
|
8144
|
-
var array_splice = Array.prototype.splice;
|
8145
|
-
Array.prototype.splice = function(start, deleteCount) {
|
8146
|
-
if (!arguments.length) {
|
8147
|
-
return [];
|
8148
|
-
} else {
|
8149
|
-
return array_splice.apply(this, [
|
8150
|
-
start === void 0 ? 0 : start,
|
8151
|
-
deleteCount === void 0 ? (this.length - start) : deleteCount
|
8152
|
-
].concat(slice.call(arguments, 2)))
|
8153
|
-
}
|
8154
|
-
};
|
8155
|
-
} else {//IE8
|
8156
|
-
Array.prototype.splice = function(pos, removeCount){
|
8157
|
-
var length = this.length;
|
8158
|
-
if (pos > 0) {
|
8159
|
-
if (pos > length)
|
8160
|
-
pos = length;
|
8161
|
-
} else if (pos == void 0) {
|
8162
|
-
pos = 0;
|
8163
|
-
} else if (pos < 0) {
|
8164
|
-
pos = Math.max(length + pos, 0);
|
8165
|
-
}
|
8166
|
-
|
8167
|
-
if (!(pos+removeCount < length))
|
8168
|
-
removeCount = length - pos;
|
8169
|
-
|
8170
|
-
var removed = this.slice(pos, pos+removeCount);
|
8171
|
-
var insert = slice.call(arguments, 2);
|
8172
|
-
var add = insert.length;
|
8173
|
-
if (pos === length) {
|
8174
|
-
if (add) {
|
8175
|
-
this.push.apply(this, insert);
|
8176
|
-
}
|
8177
|
-
} else {
|
8178
|
-
var remove = Math.min(removeCount, length - pos);
|
8179
|
-
var tailOldPos = pos + remove;
|
8180
|
-
var tailNewPos = tailOldPos + add - remove;
|
8181
|
-
var tailCount = length - tailOldPos;
|
8182
|
-
var lengthAfterRemove = length - remove;
|
8183
|
-
|
8184
|
-
if (tailNewPos < tailOldPos) { // case A
|
8185
|
-
for (var i = 0; i < tailCount; ++i) {
|
8186
|
-
this[tailNewPos+i] = this[tailOldPos+i];
|
8187
|
-
}
|
8188
|
-
} else if (tailNewPos > tailOldPos) { // case B
|
8189
|
-
for (i = tailCount; i--; ) {
|
8190
|
-
this[tailNewPos+i] = this[tailOldPos+i];
|
8191
|
-
}
|
8192
|
-
} // else, add == remove (nothing to do)
|
8193
|
-
|
8194
|
-
if (add && pos === lengthAfterRemove) {
|
8195
|
-
this.length = lengthAfterRemove; // truncate array
|
8196
|
-
this.push.apply(this, insert);
|
8197
|
-
} else {
|
8198
|
-
this.length = lengthAfterRemove + add; // reserves space
|
8199
|
-
for (i = 0; i < add; ++i) {
|
8200
|
-
this[pos+i] = insert[i];
|
8201
|
-
}
|
8202
|
-
}
|
8203
|
-
}
|
8204
|
-
return removed;
|
8205
|
-
};
|
8206
|
-
}
|
8207
|
-
}
|
8208
|
-
if (!Array.isArray) {
|
8209
|
-
Array.isArray = function isArray(obj) {
|
8210
|
-
return _toString(obj) == "[object Array]";
|
8211
|
-
};
|
8212
|
-
}
|
8213
|
-
var boxedString = Object("a"),
|
8214
|
-
splitString = boxedString[0] != "a" || !(0 in boxedString);
|
8215
|
-
|
8216
|
-
if (!Array.prototype.forEach) {
|
8217
|
-
Array.prototype.forEach = function forEach(fun /*, thisp*/) {
|
8218
|
-
var object = toObject(this),
|
8219
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8220
|
-
this.split("") :
|
8221
|
-
object,
|
8222
|
-
thisp = arguments[1],
|
8223
|
-
i = -1,
|
8224
|
-
length = self.length >>> 0;
|
8225
|
-
if (_toString(fun) != "[object Function]") {
|
8226
|
-
throw new TypeError(); // TODO message
|
8227
|
-
}
|
8228
|
-
|
8229
|
-
while (++i < length) {
|
8230
|
-
if (i in self) {
|
8231
|
-
fun.call(thisp, self[i], i, object);
|
8232
|
-
}
|
8233
|
-
}
|
8234
|
-
};
|
8235
|
-
}
|
8236
|
-
if (!Array.prototype.map) {
|
8237
|
-
Array.prototype.map = function map(fun /*, thisp*/) {
|
8238
|
-
var object = toObject(this),
|
8239
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8240
|
-
this.split("") :
|
8241
|
-
object,
|
8242
|
-
length = self.length >>> 0,
|
8243
|
-
result = Array(length),
|
8244
|
-
thisp = arguments[1];
|
8245
|
-
if (_toString(fun) != "[object Function]") {
|
8246
|
-
throw new TypeError(fun + " is not a function");
|
8247
|
-
}
|
8248
|
-
|
8249
|
-
for (var i = 0; i < length; i++) {
|
8250
|
-
if (i in self)
|
8251
|
-
result[i] = fun.call(thisp, self[i], i, object);
|
8252
|
-
}
|
8253
|
-
return result;
|
8254
|
-
};
|
8255
|
-
}
|
8256
|
-
if (!Array.prototype.filter) {
|
8257
|
-
Array.prototype.filter = function filter(fun /*, thisp */) {
|
8258
|
-
var object = toObject(this),
|
8259
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8260
|
-
this.split("") :
|
8261
|
-
object,
|
8262
|
-
length = self.length >>> 0,
|
8263
|
-
result = [],
|
8264
|
-
value,
|
8265
|
-
thisp = arguments[1];
|
8266
|
-
if (_toString(fun) != "[object Function]") {
|
8267
|
-
throw new TypeError(fun + " is not a function");
|
8268
|
-
}
|
8269
|
-
|
8270
|
-
for (var i = 0; i < length; i++) {
|
8271
|
-
if (i in self) {
|
8272
|
-
value = self[i];
|
8273
|
-
if (fun.call(thisp, value, i, object)) {
|
8274
|
-
result.push(value);
|
8275
|
-
}
|
8276
|
-
}
|
8277
|
-
}
|
8278
|
-
return result;
|
8279
|
-
};
|
8280
|
-
}
|
8281
|
-
if (!Array.prototype.every) {
|
8282
|
-
Array.prototype.every = function every(fun /*, thisp */) {
|
8283
|
-
var object = toObject(this),
|
8284
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8285
|
-
this.split("") :
|
8286
|
-
object,
|
8287
|
-
length = self.length >>> 0,
|
8288
|
-
thisp = arguments[1];
|
8289
|
-
if (_toString(fun) != "[object Function]") {
|
8290
|
-
throw new TypeError(fun + " is not a function");
|
8291
|
-
}
|
8292
|
-
|
8293
|
-
for (var i = 0; i < length; i++) {
|
8294
|
-
if (i in self && !fun.call(thisp, self[i], i, object)) {
|
8295
|
-
return false;
|
8296
|
-
}
|
8297
|
-
}
|
8298
|
-
return true;
|
8299
|
-
};
|
8300
|
-
}
|
8301
|
-
if (!Array.prototype.some) {
|
8302
|
-
Array.prototype.some = function some(fun /*, thisp */) {
|
8303
|
-
var object = toObject(this),
|
8304
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8305
|
-
this.split("") :
|
8306
|
-
object,
|
8307
|
-
length = self.length >>> 0,
|
8308
|
-
thisp = arguments[1];
|
8309
|
-
if (_toString(fun) != "[object Function]") {
|
8310
|
-
throw new TypeError(fun + " is not a function");
|
8311
|
-
}
|
8312
|
-
|
8313
|
-
for (var i = 0; i < length; i++) {
|
8314
|
-
if (i in self && fun.call(thisp, self[i], i, object)) {
|
8315
|
-
return true;
|
8316
|
-
}
|
8317
|
-
}
|
8318
|
-
return false;
|
8319
|
-
};
|
8320
|
-
}
|
8321
|
-
if (!Array.prototype.reduce) {
|
8322
|
-
Array.prototype.reduce = function reduce(fun /*, initial*/) {
|
8323
|
-
var object = toObject(this),
|
8324
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8325
|
-
this.split("") :
|
8326
|
-
object,
|
8327
|
-
length = self.length >>> 0;
|
8328
|
-
if (_toString(fun) != "[object Function]") {
|
8329
|
-
throw new TypeError(fun + " is not a function");
|
8330
|
-
}
|
8331
|
-
if (!length && arguments.length == 1) {
|
8332
|
-
throw new TypeError("reduce of empty array with no initial value");
|
8333
|
-
}
|
8334
|
-
|
8335
|
-
var i = 0;
|
8336
|
-
var result;
|
8337
|
-
if (arguments.length >= 2) {
|
8338
|
-
result = arguments[1];
|
8339
|
-
} else {
|
8340
|
-
do {
|
8341
|
-
if (i in self) {
|
8342
|
-
result = self[i++];
|
8343
|
-
break;
|
8344
|
-
}
|
8345
|
-
if (++i >= length) {
|
8346
|
-
throw new TypeError("reduce of empty array with no initial value");
|
8347
|
-
}
|
8348
|
-
} while (true);
|
8349
|
-
}
|
8350
|
-
|
8351
|
-
for (; i < length; i++) {
|
8352
|
-
if (i in self) {
|
8353
|
-
result = fun.call(void 0, result, self[i], i, object);
|
8354
|
-
}
|
8355
|
-
}
|
8356
|
-
|
8357
|
-
return result;
|
8358
|
-
};
|
8359
|
-
}
|
8360
|
-
if (!Array.prototype.reduceRight) {
|
8361
|
-
Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
|
8362
|
-
var object = toObject(this),
|
8363
|
-
self = splitString && _toString(this) == "[object String]" ?
|
8364
|
-
this.split("") :
|
8365
|
-
object,
|
8366
|
-
length = self.length >>> 0;
|
8367
|
-
if (_toString(fun) != "[object Function]") {
|
8368
|
-
throw new TypeError(fun + " is not a function");
|
8369
|
-
}
|
8370
|
-
if (!length && arguments.length == 1) {
|
8371
|
-
throw new TypeError("reduceRight of empty array with no initial value");
|
8372
|
-
}
|
8373
|
-
|
8374
|
-
var result, i = length - 1;
|
8375
|
-
if (arguments.length >= 2) {
|
8376
|
-
result = arguments[1];
|
8377
|
-
} else {
|
8378
|
-
do {
|
8379
|
-
if (i in self) {
|
8380
|
-
result = self[i--];
|
8381
|
-
break;
|
8382
|
-
}
|
8383
|
-
if (--i < 0) {
|
8384
|
-
throw new TypeError("reduceRight of empty array with no initial value");
|
8385
|
-
}
|
8386
|
-
} while (true);
|
8387
|
-
}
|
8388
|
-
|
8389
|
-
do {
|
8390
|
-
if (i in this) {
|
8391
|
-
result = fun.call(void 0, result, self[i], i, object);
|
8392
|
-
}
|
8393
|
-
} while (i--);
|
8394
|
-
|
8395
|
-
return result;
|
8396
|
-
};
|
8397
|
-
}
|
8398
|
-
if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {
|
8399
|
-
Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {
|
8400
|
-
var self = splitString && _toString(this) == "[object String]" ?
|
8401
|
-
this.split("") :
|
8402
|
-
toObject(this),
|
8403
|
-
length = self.length >>> 0;
|
8404
|
-
|
8405
|
-
if (!length) {
|
8406
|
-
return -1;
|
8407
|
-
}
|
8408
|
-
|
8409
|
-
var i = 0;
|
8410
|
-
if (arguments.length > 1) {
|
8411
|
-
i = toInteger(arguments[1]);
|
8412
|
-
}
|
8413
|
-
i = i >= 0 ? i : Math.max(0, length + i);
|
8414
|
-
for (; i < length; i++) {
|
8415
|
-
if (i in self && self[i] === sought) {
|
8416
|
-
return i;
|
8417
|
-
}
|
8418
|
-
}
|
8419
|
-
return -1;
|
8420
|
-
};
|
8421
|
-
}
|
8422
|
-
if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {
|
8423
|
-
Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {
|
8424
|
-
var self = splitString && _toString(this) == "[object String]" ?
|
8425
|
-
this.split("") :
|
8426
|
-
toObject(this),
|
8427
|
-
length = self.length >>> 0;
|
8428
|
-
|
8429
|
-
if (!length) {
|
8430
|
-
return -1;
|
8431
|
-
}
|
8432
|
-
var i = length - 1;
|
8433
|
-
if (arguments.length > 1) {
|
8434
|
-
i = Math.min(i, toInteger(arguments[1]));
|
8435
|
-
}
|
8436
|
-
i = i >= 0 ? i : length - Math.abs(i);
|
8437
|
-
for (; i >= 0; i--) {
|
8438
|
-
if (i in self && sought === self[i]) {
|
8439
|
-
return i;
|
8440
|
-
}
|
8441
|
-
}
|
8442
|
-
return -1;
|
8443
|
-
};
|
8444
|
-
}
|
8445
|
-
if (!Object.getPrototypeOf) {
|
8446
|
-
Object.getPrototypeOf = function getPrototypeOf(object) {
|
8447
|
-
return object.__proto__ || (
|
8448
|
-
object.constructor ?
|
8449
|
-
object.constructor.prototype :
|
8450
|
-
prototypeOfObject
|
8451
|
-
);
|
8452
|
-
};
|
8453
|
-
}
|
8454
|
-
if (!Object.getOwnPropertyDescriptor) {
|
8455
|
-
var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a " +
|
8456
|
-
"non-object: ";
|
8457
|
-
Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
|
8458
|
-
if ((typeof object != "object" && typeof object != "function") || object === null)
|
8459
|
-
throw new TypeError(ERR_NON_OBJECT + object);
|
8460
|
-
if (!owns(object, property))
|
8461
|
-
return;
|
8462
|
-
|
8463
|
-
var descriptor, getter, setter;
|
8464
|
-
descriptor = { enumerable: true, configurable: true };
|
8465
|
-
if (supportsAccessors) {
|
8466
|
-
var prototype = object.__proto__;
|
8467
|
-
object.__proto__ = prototypeOfObject;
|
8468
|
-
|
8469
|
-
var getter = lookupGetter(object, property);
|
8470
|
-
var setter = lookupSetter(object, property);
|
8471
|
-
object.__proto__ = prototype;
|
8472
|
-
|
8473
|
-
if (getter || setter) {
|
8474
|
-
if (getter) descriptor.get = getter;
|
8475
|
-
if (setter) descriptor.set = setter;
|
8476
|
-
return descriptor;
|
8477
|
-
}
|
8478
|
-
}
|
8479
|
-
descriptor.value = object[property];
|
8480
|
-
return descriptor;
|
8481
|
-
};
|
8482
|
-
}
|
8483
|
-
if (!Object.getOwnPropertyNames) {
|
8484
|
-
Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
|
8485
|
-
return Object.keys(object);
|
8486
|
-
};
|
8487
|
-
}
|
8488
|
-
if (!Object.create) {
|
8489
|
-
var createEmpty;
|
8490
|
-
if (Object.prototype.__proto__ === null) {
|
8491
|
-
createEmpty = function () {
|
8492
|
-
return { "__proto__": null };
|
8493
|
-
};
|
8494
|
-
} else {
|
8495
|
-
createEmpty = function () {
|
8496
|
-
var empty = {};
|
8497
|
-
for (var i in empty)
|
8498
|
-
empty[i] = null;
|
8499
|
-
empty.constructor =
|
8500
|
-
empty.hasOwnProperty =
|
8501
|
-
empty.propertyIsEnumerable =
|
8502
|
-
empty.isPrototypeOf =
|
8503
|
-
empty.toLocaleString =
|
8504
|
-
empty.toString =
|
8505
|
-
empty.valueOf =
|
8506
|
-
empty.__proto__ = null;
|
8507
|
-
return empty;
|
8508
|
-
}
|
8509
|
-
}
|
8510
|
-
|
8511
|
-
Object.create = function create(prototype, properties) {
|
8512
|
-
var object;
|
8513
|
-
if (prototype === null) {
|
8514
|
-
object = createEmpty();
|
8515
|
-
} else {
|
8516
|
-
if (typeof prototype != "object")
|
8517
|
-
throw new TypeError("typeof prototype["+(typeof prototype)+"] != 'object'");
|
8518
|
-
var Type = function () {};
|
8519
|
-
Type.prototype = prototype;
|
8520
|
-
object = new Type();
|
8521
|
-
object.__proto__ = prototype;
|
8522
|
-
}
|
8523
|
-
if (properties !== void 0)
|
8524
|
-
Object.defineProperties(object, properties);
|
8525
|
-
return object;
|
8526
|
-
};
|
8527
|
-
}
|
8528
|
-
|
8529
|
-
function doesDefinePropertyWork(object) {
|
8530
|
-
try {
|
8531
|
-
Object.defineProperty(object, "sentinel", {});
|
8532
|
-
return "sentinel" in object;
|
8533
|
-
} catch (exception) {
|
8534
|
-
}
|
8535
|
-
}
|
8536
|
-
if (Object.defineProperty) {
|
8537
|
-
var definePropertyWorksOnObject = doesDefinePropertyWork({});
|
8538
|
-
var definePropertyWorksOnDom = typeof document == "undefined" ||
|
8539
|
-
doesDefinePropertyWork(document.createElement("div"));
|
8540
|
-
if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
|
8541
|
-
var definePropertyFallback = Object.defineProperty;
|
8542
|
-
}
|
8543
|
-
}
|
8544
|
-
|
8545
|
-
if (!Object.defineProperty || definePropertyFallback) {
|
8546
|
-
var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ";
|
8547
|
-
var ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: "
|
8548
|
-
var ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined " +
|
8549
|
-
"on this javascript engine";
|
8550
|
-
|
8551
|
-
Object.defineProperty = function defineProperty(object, property, descriptor) {
|
8552
|
-
if ((typeof object != "object" && typeof object != "function") || object === null)
|
8553
|
-
throw new TypeError(ERR_NON_OBJECT_TARGET + object);
|
8554
|
-
if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null)
|
8555
|
-
throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
|
8556
|
-
if (definePropertyFallback) {
|
8557
|
-
try {
|
8558
|
-
return definePropertyFallback.call(Object, object, property, descriptor);
|
8559
|
-
} catch (exception) {
|
8560
|
-
}
|
8561
|
-
}
|
8562
|
-
if (owns(descriptor, "value")) {
|
8563
|
-
|
8564
|
-
if (supportsAccessors && (lookupGetter(object, property) ||
|
8565
|
-
lookupSetter(object, property)))
|
8566
|
-
{
|
8567
|
-
var prototype = object.__proto__;
|
8568
|
-
object.__proto__ = prototypeOfObject;
|
8569
|
-
delete object[property];
|
8570
|
-
object[property] = descriptor.value;
|
8571
|
-
object.__proto__ = prototype;
|
8572
|
-
} else {
|
8573
|
-
object[property] = descriptor.value;
|
8574
|
-
}
|
8575
|
-
} else {
|
8576
|
-
if (!supportsAccessors)
|
8577
|
-
throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
|
8578
|
-
if (owns(descriptor, "get"))
|
8579
|
-
defineGetter(object, property, descriptor.get);
|
8580
|
-
if (owns(descriptor, "set"))
|
8581
|
-
defineSetter(object, property, descriptor.set);
|
8582
|
-
}
|
8583
|
-
|
8584
|
-
return object;
|
8585
|
-
};
|
8586
|
-
}
|
8587
|
-
if (!Object.defineProperties) {
|
8588
|
-
Object.defineProperties = function defineProperties(object, properties) {
|
8589
|
-
for (var property in properties) {
|
8590
|
-
if (owns(properties, property))
|
8591
|
-
Object.defineProperty(object, property, properties[property]);
|
8592
|
-
}
|
8593
|
-
return object;
|
8594
|
-
};
|
8595
|
-
}
|
8596
|
-
if (!Object.seal) {
|
8597
|
-
Object.seal = function seal(object) {
|
8598
|
-
return object;
|
8599
|
-
};
|
8600
|
-
}
|
8601
|
-
if (!Object.freeze) {
|
8602
|
-
Object.freeze = function freeze(object) {
|
8603
|
-
return object;
|
8604
|
-
};
|
8605
|
-
}
|
8606
|
-
try {
|
8607
|
-
Object.freeze(function () {});
|
8608
|
-
} catch (exception) {
|
8609
|
-
Object.freeze = (function freeze(freezeObject) {
|
8610
|
-
return function freeze(object) {
|
8611
|
-
if (typeof object == "function") {
|
8612
|
-
return object;
|
8613
|
-
} else {
|
8614
|
-
return freezeObject(object);
|
8615
|
-
}
|
8616
|
-
};
|
8617
|
-
})(Object.freeze);
|
8618
|
-
}
|
8619
|
-
if (!Object.preventExtensions) {
|
8620
|
-
Object.preventExtensions = function preventExtensions(object) {
|
8621
|
-
return object;
|
8622
|
-
};
|
8623
|
-
}
|
8624
|
-
if (!Object.isSealed) {
|
8625
|
-
Object.isSealed = function isSealed(object) {
|
8626
|
-
return false;
|
8627
|
-
};
|
8628
|
-
}
|
8629
|
-
if (!Object.isFrozen) {
|
8630
|
-
Object.isFrozen = function isFrozen(object) {
|
8631
|
-
return false;
|
8632
|
-
};
|
8633
|
-
}
|
8634
|
-
if (!Object.isExtensible) {
|
8635
|
-
Object.isExtensible = function isExtensible(object) {
|
8636
|
-
if (Object(object) === object) {
|
8637
|
-
throw new TypeError(); // TODO message
|
8638
|
-
}
|
8639
|
-
var name = '';
|
8640
|
-
while (owns(object, name)) {
|
8641
|
-
name += '?';
|
8642
|
-
}
|
8643
|
-
object[name] = true;
|
8644
|
-
var returnValue = owns(object, name);
|
8645
|
-
delete object[name];
|
8646
|
-
return returnValue;
|
8647
|
-
};
|
8648
|
-
}
|
8649
|
-
if (!Object.keys) {
|
8650
|
-
var hasDontEnumBug = true,
|
8651
|
-
dontEnums = [
|
8652
|
-
"toString",
|
8653
|
-
"toLocaleString",
|
8654
|
-
"valueOf",
|
8655
|
-
"hasOwnProperty",
|
8656
|
-
"isPrototypeOf",
|
8657
|
-
"propertyIsEnumerable",
|
8658
|
-
"constructor"
|
8659
|
-
],
|
8660
|
-
dontEnumsLength = dontEnums.length;
|
8661
|
-
|
8662
|
-
for (var key in {"toString": null}) {
|
8663
|
-
hasDontEnumBug = false;
|
8664
|
-
}
|
8665
|
-
|
8666
|
-
Object.keys = function keys(object) {
|
8667
|
-
|
8668
|
-
if (
|
8669
|
-
(typeof object != "object" && typeof object != "function") ||
|
8670
|
-
object === null
|
8671
|
-
) {
|
8672
|
-
throw new TypeError("Object.keys called on a non-object");
|
8673
|
-
}
|
8674
|
-
|
8675
|
-
var keys = [];
|
8676
|
-
for (var name in object) {
|
8677
|
-
if (owns(object, name)) {
|
8678
|
-
keys.push(name);
|
8679
|
-
}
|
8680
|
-
}
|
8681
|
-
|
8682
|
-
if (hasDontEnumBug) {
|
8683
|
-
for (var i = 0, ii = dontEnumsLength; i < ii; i++) {
|
8684
|
-
var dontEnum = dontEnums[i];
|
8685
|
-
if (owns(object, dontEnum)) {
|
8686
|
-
keys.push(dontEnum);
|
8687
|
-
}
|
8688
|
-
}
|
8689
|
-
}
|
8690
|
-
return keys;
|
8691
|
-
};
|
8692
|
-
|
8693
|
-
}
|
8694
|
-
if (!Date.now) {
|
8695
|
-
Date.now = function now() {
|
8696
|
-
return new Date().getTime();
|
8697
|
-
};
|
8698
|
-
}
|
8699
|
-
var ws = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" +
|
8700
|
-
"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028" +
|
8701
|
-
"\u2029\uFEFF";
|
8702
|
-
if (!String.prototype.trim || ws.trim()) {
|
8703
|
-
ws = "[" + ws + "]";
|
8704
|
-
var trimBeginRegexp = new RegExp("^" + ws + ws + "*"),
|
8705
|
-
trimEndRegexp = new RegExp(ws + ws + "*$");
|
8706
|
-
String.prototype.trim = function trim() {
|
8707
|
-
return String(this).replace(trimBeginRegexp, "").replace(trimEndRegexp, "");
|
8708
|
-
};
|
8709
|
-
}
|
8710
|
-
|
8711
|
-
function toInteger(n) {
|
8712
|
-
n = +n;
|
8713
|
-
if (n !== n) { // isNaN
|
8714
|
-
n = 0;
|
8715
|
-
} else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
|
8716
|
-
n = (n > 0 || -1) * Math.floor(Math.abs(n));
|
8717
|
-
}
|
8718
|
-
return n;
|
8719
|
-
}
|
8720
|
-
|
8721
|
-
function isPrimitive(input) {
|
8722
|
-
var type = typeof input;
|
8723
|
-
return (
|
8724
|
-
input === null ||
|
8725
|
-
type === "undefined" ||
|
8726
|
-
type === "boolean" ||
|
8727
|
-
type === "number" ||
|
8728
|
-
type === "string"
|
8729
|
-
);
|
8730
|
-
}
|
8731
|
-
|
8732
|
-
function toPrimitive(input) {
|
8733
|
-
var val, valueOf, toString;
|
8734
|
-
if (isPrimitive(input)) {
|
8735
|
-
return input;
|
8736
|
-
}
|
8737
|
-
valueOf = input.valueOf;
|
8738
|
-
if (typeof valueOf === "function") {
|
8739
|
-
val = valueOf.call(input);
|
8740
|
-
if (isPrimitive(val)) {
|
8741
|
-
return val;
|
8742
|
-
}
|
8743
|
-
}
|
8744
|
-
toString = input.toString;
|
8745
|
-
if (typeof toString === "function") {
|
8746
|
-
val = toString.call(input);
|
8747
|
-
if (isPrimitive(val)) {
|
8748
|
-
return val;
|
8749
|
-
}
|
8750
|
-
}
|
8751
|
-
throw new TypeError();
|
8752
|
-
}
|
8753
|
-
var toObject = function (o) {
|
8754
|
-
if (o == null) { // this matches both null and undefined
|
8755
|
-
throw new TypeError("can't convert "+o+" to object");
|
8756
|
-
}
|
8757
|
-
return Object(o);
|
8758
|
-
};
|
8759
|
-
|
8760
|
-
});
|