glebtv-ckeditor 4.11.1 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +13 -12
- data/README.md +358 -2
- data/Rakefile +17 -8
- data/app/assets/javascripts/ckeditor/filebrowser/javascripts/fileuploader.js +313 -317
- data/app/controllers/ckeditor/application_controller.rb +3 -0
- data/app/controllers/ckeditor/attachment_files_controller.rb +2 -2
- data/app/controllers/ckeditor/pictures_controller.rb +2 -2
- data/app/helpers/ckeditor/application_helper.rb +2 -0
- data/app/views/ckeditor/shared/_asset.html.erb +1 -3
- data/app/views/ckeditor/shared/_asset_tmpl.html.erb +0 -2
- data/config/locales/da.ckeditor.yml +9 -0
- data/config/routes.rb +2 -0
- data/lib/ckeditor.rb +13 -19
- data/lib/ckeditor/asset_response.rb +17 -10
- data/lib/ckeditor/backend/active_storage.rb +68 -0
- data/lib/ckeditor/backend/carrierwave.rb +2 -12
- data/lib/ckeditor/backend/dragonfly.rb +2 -0
- data/lib/ckeditor/backend/paperclip.rb +2 -15
- data/lib/ckeditor/backend/shrine.rb +29 -0
- data/lib/ckeditor/helpers/controllers.rb +2 -0
- data/lib/ckeditor/helpers/form_builder.rb +2 -0
- data/lib/ckeditor/helpers/form_helper.rb +2 -0
- data/lib/ckeditor/helpers/view_helper.rb +2 -0
- data/lib/ckeditor/hooks/cancan.rb +4 -1
- data/lib/ckeditor/hooks/formtastic.rb +2 -0
- data/lib/ckeditor/hooks/pundit.rb +2 -0
- data/lib/ckeditor/hooks/simple_form.rb +2 -0
- data/lib/ckeditor/http.rb +14 -9
- data/lib/ckeditor/orm/active_record.rb +2 -0
- data/lib/ckeditor/orm/base.rb +11 -2
- data/lib/ckeditor/orm/mongoid.rb +2 -0
- data/lib/ckeditor/paginatable.rb +2 -0
- data/lib/ckeditor/rails.rb +2 -0
- data/lib/ckeditor/rails_admin/field.rb +16 -3
- data/lib/ckeditor/text_area.rb +2 -0
- data/lib/ckeditor/utils.rb +3 -16
- data/lib/ckeditor/utils/javascript_code.rb +1 -1
- data/lib/ckeditor/version.rb +4 -2
- data/lib/generators/ckeditor/install_generator.rb +16 -19
- data/lib/generators/ckeditor/pundit_policy_generator.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/asset.rb +10 -0
- data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/ckeditor/attachment_file.rb +3 -1
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb +13 -0
- data/lib/generators/ckeditor/templates/active_record/{carrierwave/migration_versioned.rb → active_storage/migration.rb} +8 -5
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +8 -6
- data/lib/generators/ckeditor/templates/active_record/{refile → shrine}/ckeditor/asset.rb +3 -1
- data/lib/generators/ckeditor/templates/active_record/shrine/ckeditor/attachment_file.rb +21 -0
- data/lib/generators/ckeditor/templates/active_record/shrine/ckeditor/picture.rb +49 -0
- data/lib/generators/ckeditor/templates/active_record/shrine/migration.rb +22 -0
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +2 -1
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +2 -3
- data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +2 -0
- data/lib/generators/ckeditor/templates/base/shrine/initializer.rb +25 -0
- data/lib/generators/ckeditor/templates/ckeditor.rb +3 -6
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/asset.rb +8 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/attachment_file.rb +21 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/picture.rb +47 -0
- data/lib/generators/ckeditor/templates/pundit_policy/attachment_file_policy.rb +2 -0
- data/lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb +2 -0
- data/lib/tasks/ckeditor.rake +2 -0
- data/test/controllers/attachment_files_controller_test.rb +17 -15
- data/test/controllers/pictures_controller_test.rb +17 -15
- data/test/dummy/Rakefile +2 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -2
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/posts_controller.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/posts/index.html.erb +0 -3
- data/test/dummy/app/views/posts/show.html.erb +3 -0
- data/test/dummy/config.ru +2 -0
- data/test/dummy/config/application.rb +5 -1
- data/test/dummy/config/boot.rb +2 -0
- data/test/dummy/config/environment.rb +2 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +5 -3
- data/test/dummy/config/initializers/assets.rb +2 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
- data/test/dummy/config/initializers/ckeditor.rb +2 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/inflections.rb +2 -0
- data/test/dummy/config/initializers/mime_types.rb +2 -0
- data/test/dummy/config/initializers/paperclip.rb +2 -0
- data/test/dummy/config/initializers/session_store.rb +2 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/config/storage.yml +3 -0
- data/test/dummy/db/migrate/20110623120047_create_posts.rb +5 -3
- data/test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb +26 -0
- data/test/dummy/script/rails +2 -0
- data/test/functional/posts_controller_test.rb +18 -16
- data/test/generators/install_generator_test.rb +58 -56
- data/test/integration/navigation_test.rb +2 -0
- data/test/models/attachment_file_test.rb +4 -4
- data/test/models/ckeditor_test.rb +3 -21
- data/test/models/picture_test.rb +12 -10
- data/test/models/utils_test.rb +2 -0
- data/test/orm/active_record.rb +11 -1
- data/test/orm/mongoid.rb +2 -0
- data/test/support/helpers.rb +2 -0
- data/test/support/integration_case.rb +2 -0
- data/test/test_helper.rb +15 -9
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +178 -2
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +3 -2
- data/vendor/assets/javascripts/ckeditor/README.md +6 -6
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +6 -6
- data/vendor/assets/javascripts/ckeditor/build-config.js +3 -4
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +851 -816
- data/vendor/assets/javascripts/ckeditor/config.js +1 -1
- data/vendor/assets/javascripts/ckeditor/contents.css +1 -1
- data/vendor/assets/javascripts/ckeditor/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +4 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +7 -3
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-day.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-night.css +39 -39
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/abcdef.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +74 -74
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-dark.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/bespin.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/colorforth.css +33 -33
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +51 -46
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/dracula.css +40 -40
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-dark.css +35 -35
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-light.css +36 -36
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +23 -23
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +13 -13
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +37 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/hopscotch.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/icecoder.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/isotope.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +47 -47
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/liquibyte.css +95 -95
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/material.css +53 -53
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mbo.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mdn-like.css +46 -46
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +41 -41
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +12 -12
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neo.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +27 -27
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/nord.css +42 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/panda-syntax.css +85 -85
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-dark.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-light.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/pastel-on-dark.css +52 -52
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/railscasts.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/seti.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -52
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +168 -168
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -16
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/the-matrix.css +30 -30
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-bright.css +35 -35
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css +38 -38
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ttcn.css +64 -64
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +34 -34
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +53 -53
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +43 -43
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yeti.css +44 -44
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yonce.css +59 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/zenburn.css +37 -37
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +11 -11
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +16 -16
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +5 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +16 -16
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -5
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +8 -8
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +8 -7
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +13 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image/plugin.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +2 -2
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/image2/plugin.js +95 -32
- data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +3 -3
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +4 -4
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +25 -25
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +7 -7
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +40 -52
- data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +19 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +63 -7
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -32
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -18
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
- data/vendor/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +13 -7
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +62 -7
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +4 -4
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor.css +1 -123
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_gecko.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/minimalist/skin.js +10 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/skin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +1 -1
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +2 -2
- data/vendor/assets/javascripts/ckeditor/skins/moono/skin.js +1 -1
- data/vendor/assets/javascripts/ckeditor/styles.js +1 -1
- data/vendor/assets/javascripts/ckeditor/vendor/promise.js +13 -0
- metadata +65 -121
- data/lib/ckeditor/backend/refile.rb +0 -39
- data/lib/ckeditor/utils/content_type_detector.rb +0 -38
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration_versioned.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration_versioned.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/picture.rb +0 -11
- data/lib/generators/ckeditor/templates/active_record/refile/migration.rb +0 -23
- data/lib/generators/ckeditor/templates/active_record/refile/migration_versioned.rb +0 -23
- data/test/support/raw_post.rb +0 -9
- data/vendor/assets/javascripts/ckeditor/samples/css/samples.css +0 -1637
- data/vendor/assets/javascripts/ckeditor/samples/img/github-top.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/header-bg.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/header-separator.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/img/logo.svg +0 -13
- data/vendor/assets/javascripts/ckeditor/samples/img/navigation-tip.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +0 -128
- data/vendor/assets/javascripts/ckeditor/samples/js/sample.js +0 -53
- data/vendor/assets/javascripts/ckeditor/samples/js/sf.js +0 -17
- data/vendor/assets/javascripts/ckeditor/samples/old/ajax.html +0 -85
- data/vendor/assets/javascripts/ckeditor/samples/old/api.html +0 -210
- data/vendor/assets/javascripts/ckeditor/samples/old/appendto.html +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +0 -204
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/posteddata.php +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/assets/uilanguages/languages.js +0 -7
- data/vendor/assets/javascripts/ckeditor/samples/old/datafiltering.html +0 -508
- data/vendor/assets/javascripts/ckeditor/samples/old/dialog/assets/my_dialog.js +0 -48
- data/vendor/assets/javascripts/ckeditor/samples/old/dialog/dialog.html +0 -190
- data/vendor/assets/javascripts/ckeditor/samples/old/divreplace.html +0 -144
- data/vendor/assets/javascripts/ckeditor/samples/old/enterkey/enterkey.html +0 -106
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -283
- data/vendor/assets/javascripts/ckeditor/samples/old/htmlwriter/outputhtml.html +0 -224
- data/vendor/assets/javascripts/ckeditor/samples/old/index.html +0 -134
- data/vendor/assets/javascripts/ckeditor/samples/old/inlineall.html +0 -314
- data/vendor/assets/javascripts/ckeditor/samples/old/inlinebycode.html +0 -124
- data/vendor/assets/javascripts/ckeditor/samples/old/inlinetextarea.html +0 -113
- data/vendor/assets/javascripts/ckeditor/samples/old/jquery.html +0 -103
- data/vendor/assets/javascripts/ckeditor/samples/old/magicline/magicline.html +0 -209
- data/vendor/assets/javascripts/ckeditor/samples/old/readonly.html +0 -76
- data/vendor/assets/javascripts/ckeditor/samples/old/replacebyclass.html +0 -60
- data/vendor/assets/javascripts/ckeditor/samples/old/replacebycode.html +0 -59
- data/vendor/assets/javascripts/ckeditor/samples/old/sample.css +0 -357
- data/vendor/assets/javascripts/ckeditor/samples/old/sample.js +0 -50
- data/vendor/assets/javascripts/ckeditor/samples/old/sample_posteddata.php +0 -16
- data/vendor/assets/javascripts/ckeditor/samples/old/stylesheetparser/assets/sample.css +0 -70
- data/vendor/assets/javascripts/ckeditor/samples/old/stylesheetparser/stylesheetparser.html +0 -85
- data/vendor/assets/javascripts/ckeditor/samples/old/tabindex.html +0 -78
- data/vendor/assets/javascripts/ckeditor/samples/old/toolbar/toolbar.html +0 -235
- data/vendor/assets/javascripts/ckeditor/samples/old/uicolor.html +0 -72
- data/vendor/assets/javascripts/ckeditor/samples/old/uilanguages.html +0 -122
- data/vendor/assets/javascripts/ckeditor/samples/old/wysiwygarea/fullpage.html +0 -80
- data/vendor/assets/javascripts/ckeditor/samples/old/xhtmlstyle.html +0 -234
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/css/fontello.css +0 -55
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +0 -10
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/config.json +0 -28
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.svg +0 -14
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/index.html +0 -446
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +0 -13
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +0 -9
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +0 -33
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +0 -14
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +0 -19
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +0 -325
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +0 -288
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +0 -25
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +0 -36
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +0 -38
- data/vendor/assets/javascripts/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +0 -16
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
@@ -2,4 +2,4 @@
|
|
2
2
|
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/license
|
4
4
|
*/
|
5
|
-
CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","left":"Left","right":"Right","center":"Center","justify":"Justify","alignLeft":"Align Left","alignRight":"Align Right","alignCenter":"Align Center","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidLength":"Value specified for the \"%1\" field must be a positive number with or without a valid measurement unit (%2).","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>","keyboard":{"8":"Backspace","13":"Enter","16":"Shift","17":"Ctrl","18":"Alt","32":"Space","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Keyboard shortcut","optionDefault":"Default"},"about":{"copy":"Copyright © $1. All rights reserved.","dlgTitle":"About CKEditor 4","moreInfo":"For licensing information please visit our web site:"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"notification":{"closed":"Notification closed."},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","pasteArea":"Paste Area","pasteMsg":"Paste your content inside the area below and press OK."},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White","1ABC9C":"Strong Cyan","2ECC71":"Emerald","3498DB":"Bright Blue","9B59B6":"Amethyst","4E5F70":"Grayish Blue","F1C40F":"Vivid Yellow","16A085":"Dark Cyan","27AE60":"Dark Emerald","2980B9":"Strong Blue","8E44AD":"Dark Violet","2C3E50":"Desaturated Blue","F39C12":"Orange","E67E22":"Carrot","E74C3C":"Pale Red","ECF0F1":"Bright Silver","95A5A6":"Light Grayish Cyan","DDD":"Light Gray","D35400":"Pumpkin","C0392B":"Strong Red","BDC3C7":"Silver","7F8C8D":"Grayish Cyan","999":"Dark Gray"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Advisory Title","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"Left to Right (LTR)","langDirLabel":"Language Direction","langDirRTLLabel":"Right to Left (RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"Style","title":"Create Div Container","toolbar":"Create Div Container"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"filetools":{"loadError":"Error occurred during file read.","networkError":"Network error occurred during file upload.","httpError404":"HTTP error occurred during file upload (404: File not found).","httpError403":"HTTP error occurred during file upload (403: Forbidden).","httpError":"HTTP error occurred during file upload (error status: %1).","noUrlError":"Upload URL is not defined.","responseError":"Incorrect server response."},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Top","bgcolor":"Background color","chkFull":"Allow Fullscreen","chkLoop":"Loop","chkMenu":"Enable Flash Menu","chkPlay":"Auto Play","flashvars":"Variables for Flash","hSpace":"HSpace","properties":"Flash Properties","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"Scale","scaleAll":"Show all","scaleFit":"Exact Fit","scaleNoBorder":"No Border","title":"Flash Properties","vSpace":"VSpace","validateHSpace":"HSpace must be a number.","validateSrc":"URL must not be empty.","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"Size","voiceLabel":"Font Size","panelTitle":"Font Size"},"label":"Font","panelTitle":"Font Name","voiceLabel":"Font"},"forms":{"button":{"title":"Button Properties","text":"Text (Value)","type":"Type","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"Checkbox Properties","radioTitle":"Radio Button Properties","value":"Value","selected":"Selected","required":"Required"},"form":{"title":"Form Properties","menu":"Form Properties","action":"Action","method":"Method","encoding":"Encoding"},"hidden":{"title":"Hidden Field Properties","name":"Name","value":"Value"},"select":{"title":"Selection Field Properties","selectInfo":"Select Info","opAvail":"Available Options","value":"Value","size":"Size","lines":"lines","chkMulti":"Allow multiple selections","required":"Required","opText":"Text","opValue":"Value","btnAdd":"Add","btnModify":"Modify","btnUp":"Up","btnDown":"Down","btnSetValue":"Set as selected value","btnDelete":"Delete"},"textarea":{"title":"Textarea Properties","cols":"Columns","rows":"Rows"},"textfield":{"title":"Text Field Properties","name":"Name","value":"Value","charWidth":"Character Width","maxChars":"Maximum Characters","required":"Required","type":"Type","typeText":"Text","typePass":"Password","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"smiley":{"options":"Smiley Options","title":"Insert a Smiley","toolbar":"Smiley"},"language":{"button":"Set language","remove":"Remove language"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","download":"Force Download","displayText":"Display Text","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","noTel":"Please type the phone number","other":"<other>","phoneNumber":"Phone number","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toPhone":"Phone","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","disc":"Disc","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maximize","minimize":"Minimize"},"newpage":{"toolbar":"New Page"},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastetext":{"button":"Paste as plain text","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Paste as Plain Text"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"preview":{"preview":"Preview"},"print":{"toolbar":"Print"},"removeformat":{"toolbar":"Remove Format"},"save":{"toolbar":"Save"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"specialchar":{"options":"Special Character Options","title":"Select Special Character","toolbar":"Insert Special Character"},"scayt":{"btn_about":"About SCAYT","btn_dictionaries":"Dictionaries","btn_disable":"Disable SCAYT","btn_enable":"Enable SCAYT","btn_langs":"Languages","btn_options":"Options","text_title":"Spell Check As You Type"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"undo":{"redo":"Redo","undo":"Undo"},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spell checker not installed. Do you want to download it now?","manyChanges":"Spell check complete: %1 words changed","noChanges":"Spell check complete: No words changed","noMispell":"Spell check complete: No misspellings found","noSuggestions":"- No suggestions -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"Not in dictionary","oneChange":"Spell check complete: One word changed","progress":"Spell check in progress...","title":"Spell Checker","toolbar":"Check Spelling"},"widget":{"move":"Click and drag to move","label":"%1 widget"},"uploadwidget":{"abort":"Upload aborted by the user.","doneOne":"File successfully uploaded.","doneMany":"Successfully uploaded %1 files.","uploadOne":"Uploading file ({percentage}%)...","uploadMany":"Uploading files, {current} of {max} done ({percentage}%)..."}};
|
5
|
+
CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","left":"Left","right":"Right","center":"Center","justify":"Justify","alignLeft":"Align Left","alignRight":"Align Right","alignCenter":"Align Center","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidLength":"Value specified for the \"%1\" field must be a positive number with or without a valid measurement unit (%2).","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>","keyboard":{"8":"Backspace","13":"Enter","16":"Shift","17":"Ctrl","18":"Alt","32":"Space","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Keyboard shortcut","optionDefault":"Default"},"about":{"copy":"Copyright © $1. All rights reserved.","dlgTitle":"About CKEditor 4","moreInfo":"For licensing information please visit our web site:"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"notification":{"closed":"Notification closed."},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","pasteArea":"Paste Area","pasteMsg":"Paste your content inside the area below and press OK."},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White","1ABC9C":"Strong Cyan","2ECC71":"Emerald","3498DB":"Bright Blue","9B59B6":"Amethyst","4E5F70":"Grayish Blue","F1C40F":"Vivid Yellow","16A085":"Dark Cyan","27AE60":"Dark Emerald","2980B9":"Strong Blue","8E44AD":"Dark Violet","2C3E50":"Desaturated Blue","F39C12":"Orange","E67E22":"Carrot","E74C3C":"Pale Red","ECF0F1":"Bright Silver","95A5A6":"Light Grayish Cyan","DDD":"Light Gray","D35400":"Pumpkin","C0392B":"Strong Red","BDC3C7":"Silver","7F8C8D":"Grayish Cyan","999":"Dark Gray"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Advisory Title","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"Left to Right (LTR)","langDirLabel":"Language Direction","langDirRTLLabel":"Right to Left (RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"Style","title":"Create Div Container","toolbar":"Create Div Container"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"filetools":{"loadError":"Error occurred during file read.","networkError":"Network error occurred during file upload.","httpError404":"HTTP error occurred during file upload (404: File not found).","httpError403":"HTTP error occurred during file upload (403: Forbidden).","httpError":"HTTP error occurred during file upload (error status: %1).","noUrlError":"Upload URL is not defined.","responseError":"Incorrect server response."},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Top","bgcolor":"Background color","chkFull":"Allow Fullscreen","chkLoop":"Loop","chkMenu":"Enable Flash Menu","chkPlay":"Auto Play","flashvars":"Variables for Flash","hSpace":"HSpace","properties":"Flash Properties","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"Scale","scaleAll":"Show all","scaleFit":"Exact Fit","scaleNoBorder":"No Border","title":"Flash Properties","vSpace":"VSpace","validateHSpace":"HSpace must be a number.","validateSrc":"URL must not be empty.","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"Size","voiceLabel":"Font Size","panelTitle":"Font Size"},"label":"Font","panelTitle":"Font Name","voiceLabel":"Font"},"forms":{"button":{"title":"Button Properties","text":"Text (Value)","type":"Type","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"Checkbox Properties","radioTitle":"Radio Button Properties","value":"Value","selected":"Selected","required":"Required"},"form":{"title":"Form Properties","menu":"Form Properties","action":"Action","method":"Method","encoding":"Encoding"},"hidden":{"title":"Hidden Field Properties","name":"Name","value":"Value"},"select":{"title":"Selection Field Properties","selectInfo":"Select Info","opAvail":"Available Options","value":"Value","size":"Size","lines":"lines","chkMulti":"Allow multiple selections","required":"Required","opText":"Text","opValue":"Value","btnAdd":"Add","btnModify":"Modify","btnUp":"Up","btnDown":"Down","btnSetValue":"Set as selected value","btnDelete":"Delete"},"textarea":{"title":"Textarea Properties","cols":"Columns","rows":"Rows"},"textfield":{"title":"Text Field Properties","name":"Name","value":"Value","charWidth":"Character Width","maxChars":"Maximum Characters","required":"Required","type":"Type","typeText":"Text","typePass":"Password","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"smiley":{"options":"Smiley Options","title":"Insert a Smiley","toolbar":"Smiley"},"language":{"button":"Set language","remove":"Remove language"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","download":"Force Download","displayText":"Display Text","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","noTel":"Please type the phone number","other":"<other>","phoneNumber":"Phone number","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toPhone":"Phone","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","disc":"Disc","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maximize","minimize":"Minimize"},"newpage":{"toolbar":"New Page"},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastetext":{"button":"Paste as plain text","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Paste as Plain Text"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"preview":{"preview":"Preview"},"print":{"toolbar":"Print"},"removeformat":{"toolbar":"Remove Format"},"save":{"toolbar":"Save"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"specialchar":{"options":"Special Character Options","title":"Select Special Character","toolbar":"Insert Special Character"},"scayt":{"btn_about":"About SCAYT","btn_dictionaries":"Dictionaries","btn_disable":"Disable SCAYT","btn_enable":"Enable SCAYT","btn_langs":"Languages","btn_options":"Options","text_title":"Spell Check As You Type"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","heightUnit":"height unit","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"undo":{"redo":"Redo","undo":"Undo"},"widget":{"move":"Click and drag to move","label":"%1 widget"},"uploadwidget":{"abort":"Upload aborted by the user.","doneOne":"File successfully uploaded.","doneMany":"Successfully uploaded %1 files.","uploadOne":"Uploading file ({percentage}%)...","uploadMany":"Uploading files, {current} of {max} done ({percentage}%)..."},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spell checker not installed. Do you want to download it now?","manyChanges":"Spell check complete: %1 words changed","noChanges":"Spell check complete: No words changed","noMispell":"Spell check complete: No misspellings found","noSuggestions":"- No suggestions -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"Not in dictionary","oneChange":"Spell check complete: One word changed","progress":"Spell check in progress...","title":"Spell Checker","toolbar":"Check Spelling"}};
|
@@ -2,4 +2,4 @@
|
|
2
2
|
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/license
|
4
4
|
*/
|
5
|
-
CKEDITOR.lang['ru']={"editor":"Визуальный текстовый редактор","editorPanel":"Визуальный редактор текста","common":{"editorHelp":"Нажмите ALT-0 для открытия справки","browseServer":"Выбор на сервере","url":"Ссылка","protocol":"Протокол","upload":"Загрузка файла","uploadSubmit":"Загрузить на сервер","image":"Изображение","flash":"Flash","form":"Форма","checkbox":"Чекбокс","radio":"Радиокнопка","textField":"Текстовое поле","textarea":"Многострочное текстовое поле","hiddenField":"Скрытое поле","button":"Кнопка","select":"Выпадающий список","imageButton":"Кнопка-изображение","notSet":"<не указано>","id":"Идентификатор","name":"Имя","langDir":"Направление текста","langDirLtr":"Слева направо (LTR)","langDirRtl":"Справа налево (RTL)","langCode":"Код языка","longDescr":"Длинное описание ссылки","cssClass":"Класс CSS","advisoryTitle":"Заголовок","cssStyle":"Стиль","ok":"ОК","cancel":"Отмена","close":"Закрыть","preview":"Предпросмотр","resize":"Перетащите для изменения размера","generalTab":"Основное","advancedTab":"Дополнительно","validateNumberFailed":"Это значение не является числом.","confirmNewPage":"Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?","confirmCancel":"Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?","options":"Параметры","target":"Цель","targetNew":"Новое окно (_blank)","targetTop":"Главное окно (_top)","targetSelf":"Текущее окно (_self)","targetParent":"Родительское окно (_parent)","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","styles":"Стиль","cssClasses":"CSS классы","width":"Ширина","height":"Высота","align":"Выравнивание","left":"По левому краю","right":"По правому краю","center":"По центру","justify":"По ширине","alignLeft":"По левому краю","alignRight":"По правому краю","alignCenter":"По центру","alignTop":"Поверху","alignMiddle":"Посередине","alignBottom":"Понизу","alignNone":"Нет","invalidValue":"Недопустимое значение.","invalidHeight":"Высота задается числом.","invalidWidth":"Ширина задается числом.","invalidLength":"Указанное значение для поля \"%1\" должно быть положительным числом без или с корректным символом единицы измерения (%2)","invalidCssLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","invalidHtmlLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).","invalidInlineStyle":"Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате \"параметр : значение\", разделённых точкой с запятой.","cssLengthTooltip":"Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","unavailable":"%1<span class=\"cke_accessibility\">, недоступно</span>","keyboard":{"8":"Backspace","13":"Ввод","16":"Shift","17":"Ctrl","18":"Alt","32":"Пробел","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Комбинация клавиш","optionDefault":"По умолчанию"},"about":{"copy":"Copyright © $1. Все права защищены.","dlgTitle":"О CKEditor 4","moreInfo":"Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:"},"basicstyles":{"bold":"Полужирный","italic":"Курсив","strike":"Зачеркнутый","subscript":"Подстрочный индекс","superscript":"Надстрочный индекс","underline":"Подчеркнутый"},"bidi":{"ltr":"Направление текста слева направо","rtl":"Направление текста справа налево"},"blockquote":{"toolbar":"Цитата"},"notification":{"closed":"Уведомление закрыто"},"toolbar":{"toolbarCollapse":"Свернуть панель инструментов","toolbarExpand":"Развернуть панель инструментов","toolbarGroups":{"document":"Документ","clipboard":"Буфер обмена / Отмена действий","editing":"Корректировка","forms":"Формы","basicstyles":"Простые стили","paragraph":"Абзац","links":"Ссылки","insert":"Вставка","styles":"Стили","colors":"Цвета","tools":"Инструменты"},"toolbars":"Панели инструментов редактора"},"clipboard":{"copy":"Копировать","copyError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).","cut":"Вырезать","cutError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).","paste":"Вставить","pasteNotification":"Для вставки нажмите %1. Ваш браузер не поддерживает возможность вставки через панель инструментов или контекстное меню","pasteArea":"Область вставки","pasteMsg":"Вставьте контент в эту область и нажмите OK"},"colorbutton":{"auto":"Автоматически","bgColorTitle":"Цвет фона","colors":{"000":"Чёрный","800000":"Бордовый","8B4513":"Кожано-коричневый","2F4F4F":"Темный синевато-серый","008080":"Сине-зелёный","000080":"Тёмно-синий","4B0082":"Индиго","696969":"Тёмно-серый","B22222":"Кирпичный","A52A2A":"Коричневый","DAA520":"Золотисто-берёзовый","006400":"Темно-зелёный","40E0D0":"Бирюзовый","0000CD":"Умеренно синий","800080":"Пурпурный","808080":"Серый","F00":"Красный","FF8C00":"Темно-оранжевый","FFD700":"Золотистый","008000":"Зелёный","0FF":"Васильковый","00F":"Синий","EE82EE":"Фиолетовый","A9A9A9":"Тускло-серый","FFA07A":"Светло-лососевый","FFA500":"Оранжевый","FFFF00":"Жёлтый","00FF00":"Лайма","AFEEEE":"Бледно-синий","ADD8E6":"Свелто-голубой","DDA0DD":"Сливовый","D3D3D3":"Светло-серый","FFF0F5":"Розово-лавандовый","FAEBD7":"Античный белый","FFFFE0":"Светло-жёлтый","F0FFF0":"Медвяной росы","F0FFFF":"Лазурный","F0F8FF":"Бледно-голубой","E6E6FA":"Лавандовый","FFF":"Белый","1ABC9C":"Насыщенный голубой","2ECC71":"Изумрудный","3498DB":"Светло-синий","9B59B6":"Аметист","4E5F70":"Сине-серый","F1C40F":"Ярко-желтый","16A085":"Тёмно-голубой","27AE60":"Тёмно-изумрудный","2980B9":"Насыщенный синий","8E44AD":"Тёмно-фиолетовый","2C3E50":"Ненасыщенный синий","F39C12":"Оранжевый","E67E22":"Морковный","E74C3C":"Бледно-красный","ECF0F1":"Яркий серебристый","95A5A6":"Светлый серо-голубой","DDD":"Светло-серый","D35400":"Цвет тыквы","C0392B":"Насыщенный красный","BDC3C7":"Серебристый","7F8C8D":"Серо-голубой","999":"Тёмно-серый"},"more":"Ещё цвета...","panelTitle":"Цвета","textColorTitle":"Цвет текста"},"colordialog":{"clear":"Очистить","highlight":"Под курсором","options":"Настройки цвета","selected":"Выбранный цвет","title":"Выберите цвет"},"templates":{"button":"Шаблоны","emptyListMsg":"(не определено ни одного шаблона)","insertOption":"Заменить текущее содержимое","options":"Параметры шаблона","selectPromptMsg":"Пожалуйста, выберите, какой шаблон следует открыть в редакторе","title":"Шаблоны содержимого"},"contextmenu":{"options":"Параметры контекстного меню"},"div":{"IdInputLabel":"Идентификатор","advisoryTitleInputLabel":"Заголовок","cssClassInputLabel":"Классы CSS","edit":"Редактировать контейнер","inlineStyleInputLabel":"Стиль элемента","langDirLTRLabel":"Слева направо (LTR)","langDirLabel":"Направление текста","langDirRTLLabel":"Справа налево (RTL)","languageCodeInputLabel":"Код языка","remove":"Удалить контейнер","styleSelectLabel":"Стиль","title":"Создать Div-контейнер","toolbar":"Создать Div-контейнер"},"elementspath":{"eleLabel":"Путь элементов","eleTitle":"Элемент %1"},"filetools":{"loadError":"Ошибка при чтении файла","networkError":"Сетевая ошибка при загрузке файла","httpError404":"HTTP ошибка при загрузке файла (404: Файл не найден)","httpError403":"HTTP ошибка при загрузке файла (403: Запрещено)","httpError":"HTTP ошибка при загрузке файла (%1)","noUrlError":"Не определен URL для загрузки файлов","responseError":"Некорректный ответ сервера"},"find":{"find":"Найти","findOptions":"Опции поиска","findWhat":"Найти:","matchCase":"Учитывать регистр","matchCyclic":"По всему тексту","matchWord":"Только слово целиком","notFoundMsg":"Искомый текст не найден.","replace":"Заменить","replaceAll":"Заменить всё","replaceSuccessMsg":"Успешно заменено %1 раз(а).","replaceWith":"Заменить на:","title":"Поиск и замена"},"fakeobjects":{"anchor":"Якорь","flash":"Flash анимация","hiddenfield":"Скрытое поле","iframe":"iFrame","unknown":"Неизвестный объект"},"flash":{"access":"Доступ к скриптам","accessAlways":"Всегда","accessNever":"Никогда","accessSameDomain":"В том же домене","alignAbsBottom":"По низу текста","alignAbsMiddle":"По середине текста","alignBaseline":"По базовой линии","alignTextTop":"По верху текста","bgcolor":"Цвет фона","chkFull":"Разрешить полноэкранный режим","chkLoop":"Повторять","chkMenu":"Включить меню Flash","chkPlay":"Автоматическое воспроизведение","flashvars":"Переменные для Flash","hSpace":"Гориз. отступ","properties":"Свойства Flash","propertiesTab":"Свойства","quality":"Качество","qualityAutoHigh":"Запуск на высоком","qualityAutoLow":"Запуск на низком","qualityBest":"Лучшее","qualityHigh":"Высокое","qualityLow":"Низкое","qualityMedium":"Среднее","scale":"Масштабировать","scaleAll":"Пропорционально","scaleFit":"Заполнять","scaleNoBorder":"Заходить за границы","title":"Свойства Flash","vSpace":"Вертик. отступ","validateHSpace":"Горизонтальный отступ задается числом.","validateSrc":"Вы должны ввести ссылку","validateVSpace":"Вертикальный отступ задается числом.","windowMode":"Взаимодействие с окном","windowModeOpaque":"Непрозрачный","windowModeTransparent":"Прозрачный","windowModeWindow":"Обычный"},"font":{"fontSize":{"label":"Размер","voiceLabel":"Размер шрифта","panelTitle":"Размер шрифта"},"label":"Шрифт","panelTitle":"Шрифт","voiceLabel":"Шрифт"},"forms":{"button":{"title":"Свойства кнопки","text":"Текст (Значение)","type":"Тип","typeBtn":"Кнопка","typeSbm":"Отправка","typeRst":"Сброс"},"checkboxAndRadio":{"checkboxTitle":"Свойства флаговой кнопки","radioTitle":"Свойства кнопки выбора","value":"Значение","selected":"Выбрано","required":"Обязательное поле"},"form":{"title":"Свойства формы","menu":"Свойства формы","action":"Действие","method":"Метод","encoding":"Кодировка"},"hidden":{"title":"Свойства скрытого поля","name":"Имя","value":"Значение"},"select":{"title":"Свойства списка выбора","selectInfo":"Информация о списке выбора","opAvail":"Доступные варианты","value":"Значение","size":"Размер","lines":"строк(и)","chkMulti":"Разрешить выбор нескольких вариантов","required":"Обязательное поле","opText":"Текст","opValue":"Значение","btnAdd":"Добавить","btnModify":"Изменить","btnUp":"Поднять","btnDown":"Опустить","btnSetValue":"Пометить как выбранное","btnDelete":"Удалить"},"textarea":{"title":"Свойства многострочного текстового поля","cols":"Колонок","rows":"Строк"},"textfield":{"title":"Свойства текстового поля","name":"Имя","value":"Значение","charWidth":"Ширина поля (в символах)","maxChars":"Макс. количество символов","required":"Обязательное поле","type":"Тип содержимого","typeText":"Текст","typePass":"Пароль","typeEmail":"Email","typeSearch":"Поиск","typeTel":"Номер телефона","typeUrl":"Ссылка"}},"format":{"label":"Форматирование","panelTitle":"Форматирование","tag_address":"Адрес","tag_div":"Обычное (div)","tag_h1":"Заголовок 1","tag_h2":"Заголовок 2","tag_h3":"Заголовок 3","tag_h4":"Заголовок 4","tag_h5":"Заголовок 5","tag_h6":"Заголовок 6","tag_p":"Обычное","tag_pre":"Моноширинное"},"horizontalrule":{"toolbar":"Вставить горизонтальную линию"},"iframe":{"border":"Показать границы фрейма","noUrl":"Пожалуйста, введите ссылку фрейма","scrolling":"Отображать полосы прокрутки","title":"Свойства iFrame","toolbar":"iFrame"},"indent":{"indent":"Увеличить отступ","outdent":"Уменьшить отступ"},"smiley":{"options":"Выбор смайла","title":"Вставить смайл","toolbar":"Смайлы"},"language":{"button":"Установка языка","remove":"Удалить язык"},"link":{"acccessKey":"Клавиша доступа","advanced":"Дополнительно","advisoryContentType":"Тип содержимого","advisoryTitle":"Заголовок","anchor":{"toolbar":"Вставить / редактировать якорь","menu":"Изменить якорь","title":"Свойства якоря","name":"Имя якоря","errorName":"Пожалуйста, введите имя якоря","remove":"Удалить якорь"},"anchorId":"По идентификатору","anchorName":"По имени","charset":"Кодировка ресурса","cssClasses":"Классы CSS","download":"Скачать как файл","displayText":"Отображаемый текст","emailAddress":"Email адрес","emailBody":"Текст сообщения","emailSubject":"Тема сообщения","id":"Идентификатор","info":"Информация о ссылке","langCode":"Код языка","langDir":"Направление текста","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","menu":"Редактировать ссылку","name":"Имя","noAnchors":"(В документе нет ни одного якоря)","noEmail":"Пожалуйста, введите email адрес","noUrl":"Пожалуйста, введите ссылку","noTel":"Please type the phone number","other":"<другой>","phoneNumber":"Phone number","popupDependent":"Зависимое (Netscape)","popupFeatures":"Параметры всплывающего окна","popupFullScreen":"Полноэкранное (IE)","popupLeft":"Отступ слева","popupLocationBar":"Панель адреса","popupMenuBar":"Панель меню","popupResizable":"Изменяемый размер","popupScrollBars":"Полосы прокрутки","popupStatusBar":"Строка состояния","popupToolbar":"Панель инструментов","popupTop":"Отступ сверху","rel":"Отношение","selectAnchor":"Выберите якорь","styles":"Стиль","tabIndex":"Последовательность перехода","target":"Цель","targetFrame":"<фрейм>","targetFrameName":"Имя целевого фрейма","targetPopup":"<всплывающее окно>","targetPopupName":"Имя всплывающего окна","title":"Ссылка","toAnchor":"Ссылка на якорь в тексте","toEmail":"Email","toUrl":"Ссылка","toPhone":"Phone","toolbar":"Вставить/Редактировать ссылку","type":"Тип ссылки","unlink":"Убрать ссылку","upload":"Загрузка"},"list":{"bulletedlist":"Вставить / удалить маркированный список","numberedlist":"Вставить / удалить нумерованный список"},"liststyle":{"bulletedTitle":"Свойства маркированного списка","circle":"Круг","decimal":"Десятичные (1, 2, 3, и т.д.)","disc":"Окружность","lowerAlpha":"Строчные латинские (a, b, c, d, e, и т.д.)","lowerRoman":"Строчные римские (i, ii, iii, iv, v, и т.д.)","none":"Нет","notset":"<не указано>","numberedTitle":"Свойства нумерованного списка","square":"Квадрат","start":"Начиная с","type":"Тип","upperAlpha":"Заглавные латинские (A, B, C, D, E, и т.д.)","upperRoman":"Заглавные римские (I, II, III, IV, V, и т.д.)","validateStartNumber":"Первый номер списка должен быть задан обычным целым числом."},"magicline":{"title":"Вставить здесь параграф"},"maximize":{"maximize":"Развернуть","minimize":"Свернуть"},"newpage":{"toolbar":"Новая страница"},"pagebreak":{"alt":"Разрыв страницы","toolbar":"Вставить разрыв страницы для печати"},"pastetext":{"button":"Вставить только текст","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Вставить только текст"},"pastefromword":{"confirmCleanup":"Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?","error":"Невозможно очистить вставленные данные из-за внутренней ошибки","title":"Вставить из Word","toolbar":"Вставить из Word"},"preview":{"preview":"Предварительный просмотр"},"print":{"toolbar":"Печать"},"removeformat":{"toolbar":"Убрать форматирование"},"save":{"toolbar":"Сохранить"},"selectall":{"toolbar":"Выделить все"},"showblocks":{"toolbar":"Отображать блоки"},"sourcearea":{"toolbar":"Источник"},"specialchar":{"options":"Выбор специального символа","title":"Выберите специальный символ","toolbar":"Вставить специальный символ"},"scayt":{"btn_about":"О SCAYT","btn_dictionaries":"Словари","btn_disable":"Отключить SCAYT","btn_enable":"Включить SCAYT","btn_langs":"Языки","btn_options":"Настройки","text_title":"Проверка орфографии по мере ввода (SCAYT)"},"stylescombo":{"label":"Стили","panelTitle":"Стили форматирования","panelTitle1":"Стили блока","panelTitle2":"Стили элемента","panelTitle3":"Стили объекта"},"table":{"border":"Размер границ","caption":"Заголовок","cell":{"menu":"Ячейка","insertBefore":"Вставить ячейку слева","insertAfter":"Вставить ячейку справа","deleteCell":"Удалить ячейки","merge":"Объединить ячейки","mergeRight":"Объединить с правой","mergeDown":"Объединить с нижней","splitHorizontal":"Разделить ячейку по вертикали","splitVertical":"Разделить ячейку по горизонтали","title":"Свойства ячейки","cellType":"Тип ячейки","rowSpan":"Объединяет строк","colSpan":"Объединяет колонок","wordWrap":"Перенос по словам","hAlign":"Горизонтальное выравнивание","vAlign":"Вертикальное выравнивание","alignBaseline":"По базовой линии","bgColor":"Цвет фона","borderColor":"Цвет границ","data":"Данные","header":"Заголовок","yes":"Да","no":"Нет","invalidWidth":"Ширина ячейки должна быть числом.","invalidHeight":"Высота ячейки должна быть числом.","invalidRowSpan":"Количество объединяемых строк должно быть задано числом.","invalidColSpan":"Количество объединяемых колонок должно быть задано числом.","chooseColor":"Выберите"},"cellPad":"Внутренний отступ ячеек","cellSpace":"Внешний отступ ячеек","column":{"menu":"Колонка","insertBefore":"Вставить колонку слева","insertAfter":"Вставить колонку справа","deleteColumn":"Удалить колонки"},"columns":"Колонки","deleteTable":"Удалить таблицу","headers":"Заголовки","headersBoth":"Сверху и слева","headersColumn":"Левая колонка","headersNone":"Без заголовков","headersRow":"Верхняя строка","invalidBorder":"Размер границ должен быть числом.","invalidCellPadding":"Внутренний отступ ячеек (cellpadding) должен быть числом.","invalidCellSpacing":"Внешний отступ ячеек (cellspacing) должен быть числом.","invalidCols":"Количество столбцов должно быть больше 0.","invalidHeight":"Высота таблицы должна быть числом.","invalidRows":"Количество строк должно быть больше 0.","invalidWidth":"Ширина таблицы должна быть числом.","menu":"Свойства таблицы","row":{"menu":"Строка","insertBefore":"Вставить строку сверху","insertAfter":"Вставить строку снизу","deleteRow":"Удалить строки"},"rows":"Строки","summary":"Итоги","title":"Свойства таблицы","toolbar":"Таблица","widthPc":"процентов","widthPx":"пикселей","widthUnit":"единица измерения"},"undo":{"redo":"Повторить","undo":"Отменить"},"wsc":{"btnIgnore":"Пропустить","btnIgnoreAll":"Пропустить всё","btnReplace":"Заменить","btnReplaceAll":"Заменить всё","btnUndo":"Отменить","changeTo":"Изменить на","errorLoading":"Произошла ошибка при подключении к серверу проверки орфографии: %s.","ieSpellDownload":"Модуль проверки орфографии не установлен. Хотите скачать его?","manyChanges":"Проверка орфографии завершена. Изменено слов: %1","noChanges":"Проверка орфографии завершена. Не изменено ни одного слова","noMispell":"Проверка орфографии завершена. Ошибок не найдено","noSuggestions":"- Варианты отсутствуют -","notAvailable":"Извините, но в данный момент сервис недоступен.","notInDic":"Отсутствует в словаре","oneChange":"Проверка орфографии завершена. Изменено одно слово","progress":"Орфография проверяется...","title":"Проверка орфографии","toolbar":"Проверить орфографию"},"widget":{"move":"Нажмите и перетащите, чтобы переместить","label":"%1 виджет"},"uploadwidget":{"abort":"Загрузка отменена пользователем","doneOne":"Файл успешно загружен","doneMany":"Успешно загружено файлов: %1","uploadOne":"Загрузка файла ({percentage}%)","uploadMany":"Загрузка файлов, {current} из {max} загружено ({percentage}%)..."}};
|
5
|
+
CKEDITOR.lang['ru']={"editor":"Визуальный текстовый редактор","editorPanel":"Визуальный редактор текста","common":{"editorHelp":"Нажмите ALT-0 для открытия справки","browseServer":"Выбор на сервере","url":"Ссылка","protocol":"Протокол","upload":"Загрузка файла","uploadSubmit":"Загрузить на сервер","image":"Изображение","flash":"Flash","form":"Форма","checkbox":"Чекбокс","radio":"Радиокнопка","textField":"Текстовое поле","textarea":"Многострочное текстовое поле","hiddenField":"Скрытое поле","button":"Кнопка","select":"Выпадающий список","imageButton":"Кнопка-изображение","notSet":"<не указано>","id":"Идентификатор","name":"Имя","langDir":"Направление текста","langDirLtr":"Слева направо (LTR)","langDirRtl":"Справа налево (RTL)","langCode":"Код языка","longDescr":"Длинное описание ссылки","cssClass":"Класс CSS","advisoryTitle":"Заголовок","cssStyle":"Стиль","ok":"ОК","cancel":"Отмена","close":"Закрыть","preview":"Предпросмотр","resize":"Перетащите для изменения размера","generalTab":"Основное","advancedTab":"Дополнительно","validateNumberFailed":"Это значение не является числом.","confirmNewPage":"Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?","confirmCancel":"Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?","options":"Параметры","target":"Цель","targetNew":"Новое окно (_blank)","targetTop":"Главное окно (_top)","targetSelf":"Текущее окно (_self)","targetParent":"Родительское окно (_parent)","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","styles":"Стиль","cssClasses":"CSS классы","width":"Ширина","height":"Высота","align":"Выравнивание","left":"По левому краю","right":"По правому краю","center":"По центру","justify":"По ширине","alignLeft":"По левому краю","alignRight":"По правому краю","alignCenter":"По центру","alignTop":"Поверху","alignMiddle":"Посередине","alignBottom":"Понизу","alignNone":"Нет","invalidValue":"Недопустимое значение.","invalidHeight":"Высота задается числом.","invalidWidth":"Ширина задается числом.","invalidLength":"Указанное значение для поля \"%1\" должно быть положительным числом без или с корректным символом единицы измерения (%2)","invalidCssLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","invalidHtmlLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).","invalidInlineStyle":"Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате \"параметр : значение\", разделённых точкой с запятой.","cssLengthTooltip":"Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","unavailable":"%1<span class=\"cke_accessibility\">, недоступно</span>","keyboard":{"8":"Backspace","13":"Ввод","16":"Shift","17":"Ctrl","18":"Alt","32":"Пробел","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Комбинация клавиш","optionDefault":"По умолчанию"},"about":{"copy":"Copyright © $1. Все права защищены.","dlgTitle":"О CKEditor 4","moreInfo":"Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:"},"basicstyles":{"bold":"Полужирный","italic":"Курсив","strike":"Зачеркнутый","subscript":"Подстрочный индекс","superscript":"Надстрочный индекс","underline":"Подчеркнутый"},"bidi":{"ltr":"Направление текста слева направо","rtl":"Направление текста справа налево"},"blockquote":{"toolbar":"Цитата"},"notification":{"closed":"Уведомление закрыто"},"toolbar":{"toolbarCollapse":"Свернуть панель инструментов","toolbarExpand":"Развернуть панель инструментов","toolbarGroups":{"document":"Документ","clipboard":"Буфер обмена / Отмена действий","editing":"Корректировка","forms":"Формы","basicstyles":"Простые стили","paragraph":"Абзац","links":"Ссылки","insert":"Вставка","styles":"Стили","colors":"Цвета","tools":"Инструменты"},"toolbars":"Панели инструментов редактора"},"clipboard":{"copy":"Копировать","copyError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).","cut":"Вырезать","cutError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).","paste":"Вставить","pasteNotification":"Для вставки нажмите %1. Ваш браузер не поддерживает возможность вставки через панель инструментов или контекстное меню","pasteArea":"Область вставки","pasteMsg":"Вставьте контент в эту область и нажмите OK"},"colorbutton":{"auto":"Автоматически","bgColorTitle":"Цвет фона","colors":{"000":"Чёрный","800000":"Бордовый","8B4513":"Кожано-коричневый","2F4F4F":"Темный синевато-серый","008080":"Сине-зелёный","000080":"Тёмно-синий","4B0082":"Индиго","696969":"Тёмно-серый","B22222":"Кирпичный","A52A2A":"Коричневый","DAA520":"Золотисто-берёзовый","006400":"Темно-зелёный","40E0D0":"Бирюзовый","0000CD":"Умеренно синий","800080":"Пурпурный","808080":"Серый","F00":"Красный","FF8C00":"Темно-оранжевый","FFD700":"Золотистый","008000":"Зелёный","0FF":"Васильковый","00F":"Синий","EE82EE":"Фиолетовый","A9A9A9":"Тускло-серый","FFA07A":"Светло-лососевый","FFA500":"Оранжевый","FFFF00":"Жёлтый","00FF00":"Лайма","AFEEEE":"Бледно-синий","ADD8E6":"Свелто-голубой","DDA0DD":"Сливовый","D3D3D3":"Светло-серый","FFF0F5":"Розово-лавандовый","FAEBD7":"Античный белый","FFFFE0":"Светло-жёлтый","F0FFF0":"Медвяной росы","F0FFFF":"Лазурный","F0F8FF":"Бледно-голубой","E6E6FA":"Лавандовый","FFF":"Белый","1ABC9C":"Насыщенный голубой","2ECC71":"Изумрудный","3498DB":"Светло-синий","9B59B6":"Аметист","4E5F70":"Сине-серый","F1C40F":"Ярко-желтый","16A085":"Тёмно-голубой","27AE60":"Тёмно-изумрудный","2980B9":"Насыщенный синий","8E44AD":"Тёмно-фиолетовый","2C3E50":"Ненасыщенный синий","F39C12":"Оранжевый","E67E22":"Морковный","E74C3C":"Бледно-красный","ECF0F1":"Яркий серебристый","95A5A6":"Светлый серо-голубой","DDD":"Светло-серый","D35400":"Цвет тыквы","C0392B":"Насыщенный красный","BDC3C7":"Серебристый","7F8C8D":"Серо-голубой","999":"Тёмно-серый"},"more":"Ещё цвета...","panelTitle":"Цвета","textColorTitle":"Цвет текста"},"colordialog":{"clear":"Очистить","highlight":"Под курсором","options":"Настройки цвета","selected":"Выбранный цвет","title":"Выберите цвет"},"templates":{"button":"Шаблоны","emptyListMsg":"(не определено ни одного шаблона)","insertOption":"Заменить текущее содержимое","options":"Параметры шаблона","selectPromptMsg":"Пожалуйста, выберите, какой шаблон следует открыть в редакторе","title":"Шаблоны содержимого"},"contextmenu":{"options":"Параметры контекстного меню"},"div":{"IdInputLabel":"Идентификатор","advisoryTitleInputLabel":"Заголовок","cssClassInputLabel":"Классы CSS","edit":"Редактировать контейнер","inlineStyleInputLabel":"Стиль элемента","langDirLTRLabel":"Слева направо (LTR)","langDirLabel":"Направление текста","langDirRTLLabel":"Справа налево (RTL)","languageCodeInputLabel":"Код языка","remove":"Удалить контейнер","styleSelectLabel":"Стиль","title":"Создать Div-контейнер","toolbar":"Создать Div-контейнер"},"elementspath":{"eleLabel":"Путь элементов","eleTitle":"Элемент %1"},"filetools":{"loadError":"Ошибка при чтении файла","networkError":"Сетевая ошибка при загрузке файла","httpError404":"HTTP ошибка при загрузке файла (404: Файл не найден)","httpError403":"HTTP ошибка при загрузке файла (403: Запрещено)","httpError":"HTTP ошибка при загрузке файла (%1)","noUrlError":"Не определен URL для загрузки файлов","responseError":"Некорректный ответ сервера"},"find":{"find":"Найти","findOptions":"Опции поиска","findWhat":"Найти:","matchCase":"Учитывать регистр","matchCyclic":"По всему тексту","matchWord":"Только слово целиком","notFoundMsg":"Искомый текст не найден.","replace":"Заменить","replaceAll":"Заменить всё","replaceSuccessMsg":"Успешно заменено %1 раз(а).","replaceWith":"Заменить на:","title":"Поиск и замена"},"fakeobjects":{"anchor":"Якорь","flash":"Flash анимация","hiddenfield":"Скрытое поле","iframe":"iFrame","unknown":"Неизвестный объект"},"flash":{"access":"Доступ к скриптам","accessAlways":"Всегда","accessNever":"Никогда","accessSameDomain":"В том же домене","alignAbsBottom":"По низу текста","alignAbsMiddle":"По середине текста","alignBaseline":"По базовой линии","alignTextTop":"По верху текста","bgcolor":"Цвет фона","chkFull":"Разрешить полноэкранный режим","chkLoop":"Повторять","chkMenu":"Включить меню Flash","chkPlay":"Автоматическое воспроизведение","flashvars":"Переменные для Flash","hSpace":"Гориз. отступ","properties":"Свойства Flash","propertiesTab":"Свойства","quality":"Качество","qualityAutoHigh":"Запуск на высоком","qualityAutoLow":"Запуск на низком","qualityBest":"Лучшее","qualityHigh":"Высокое","qualityLow":"Низкое","qualityMedium":"Среднее","scale":"Масштабировать","scaleAll":"Пропорционально","scaleFit":"Заполнять","scaleNoBorder":"Заходить за границы","title":"Свойства Flash","vSpace":"Вертик. отступ","validateHSpace":"Горизонтальный отступ задается числом.","validateSrc":"Вы должны ввести ссылку","validateVSpace":"Вертикальный отступ задается числом.","windowMode":"Взаимодействие с окном","windowModeOpaque":"Непрозрачный","windowModeTransparent":"Прозрачный","windowModeWindow":"Обычный"},"font":{"fontSize":{"label":"Размер","voiceLabel":"Размер шрифта","panelTitle":"Размер шрифта"},"label":"Шрифт","panelTitle":"Шрифт","voiceLabel":"Шрифт"},"forms":{"button":{"title":"Свойства кнопки","text":"Текст (Значение)","type":"Тип","typeBtn":"Кнопка","typeSbm":"Отправка","typeRst":"Сброс"},"checkboxAndRadio":{"checkboxTitle":"Свойства флаговой кнопки","radioTitle":"Свойства кнопки выбора","value":"Значение","selected":"Выбрано","required":"Обязательное поле"},"form":{"title":"Свойства формы","menu":"Свойства формы","action":"Действие","method":"Метод","encoding":"Кодировка"},"hidden":{"title":"Свойства скрытого поля","name":"Имя","value":"Значение"},"select":{"title":"Свойства списка выбора","selectInfo":"Информация о списке выбора","opAvail":"Доступные варианты","value":"Значение","size":"Размер","lines":"строк(и)","chkMulti":"Разрешить выбор нескольких вариантов","required":"Обязательное поле","opText":"Текст","opValue":"Значение","btnAdd":"Добавить","btnModify":"Изменить","btnUp":"Поднять","btnDown":"Опустить","btnSetValue":"Пометить как выбранное","btnDelete":"Удалить"},"textarea":{"title":"Свойства многострочного текстового поля","cols":"Колонок","rows":"Строк"},"textfield":{"title":"Свойства текстового поля","name":"Имя","value":"Значение","charWidth":"Ширина поля (в символах)","maxChars":"Макс. количество символов","required":"Обязательное поле","type":"Тип содержимого","typeText":"Текст","typePass":"Пароль","typeEmail":"Email","typeSearch":"Поиск","typeTel":"Номер телефона","typeUrl":"Ссылка"}},"format":{"label":"Форматирование","panelTitle":"Форматирование","tag_address":"Адрес","tag_div":"Обычное (div)","tag_h1":"Заголовок 1","tag_h2":"Заголовок 2","tag_h3":"Заголовок 3","tag_h4":"Заголовок 4","tag_h5":"Заголовок 5","tag_h6":"Заголовок 6","tag_p":"Обычное","tag_pre":"Моноширинное"},"horizontalrule":{"toolbar":"Вставить горизонтальную линию"},"iframe":{"border":"Показать границы фрейма","noUrl":"Пожалуйста, введите ссылку фрейма","scrolling":"Отображать полосы прокрутки","title":"Свойства iFrame","toolbar":"iFrame"},"indent":{"indent":"Увеличить отступ","outdent":"Уменьшить отступ"},"smiley":{"options":"Выбор смайла","title":"Вставить смайл","toolbar":"Смайлы"},"language":{"button":"Установка языка","remove":"Удалить язык"},"link":{"acccessKey":"Клавиша доступа","advanced":"Дополнительно","advisoryContentType":"Тип содержимого","advisoryTitle":"Заголовок","anchor":{"toolbar":"Вставить / редактировать якорь","menu":"Изменить якорь","title":"Свойства якоря","name":"Имя якоря","errorName":"Пожалуйста, введите имя якоря","remove":"Удалить якорь"},"anchorId":"По идентификатору","anchorName":"По имени","charset":"Кодировка ресурса","cssClasses":"Классы CSS","download":"Скачать как файл","displayText":"Отображаемый текст","emailAddress":"Email адрес","emailBody":"Текст сообщения","emailSubject":"Тема сообщения","id":"Идентификатор","info":"Информация о ссылке","langCode":"Код языка","langDir":"Направление текста","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","menu":"Редактировать ссылку","name":"Имя","noAnchors":"(В документе нет ни одного якоря)","noEmail":"Пожалуйста, введите email адрес","noUrl":"Пожалуйста, введите ссылку","noTel":"Please type the phone number","other":"<другой>","phoneNumber":"Phone number","popupDependent":"Зависимое (Netscape)","popupFeatures":"Параметры всплывающего окна","popupFullScreen":"Полноэкранное (IE)","popupLeft":"Отступ слева","popupLocationBar":"Панель адреса","popupMenuBar":"Панель меню","popupResizable":"Изменяемый размер","popupScrollBars":"Полосы прокрутки","popupStatusBar":"Строка состояния","popupToolbar":"Панель инструментов","popupTop":"Отступ сверху","rel":"Отношение","selectAnchor":"Выберите якорь","styles":"Стиль","tabIndex":"Последовательность перехода","target":"Цель","targetFrame":"<фрейм>","targetFrameName":"Имя целевого фрейма","targetPopup":"<всплывающее окно>","targetPopupName":"Имя всплывающего окна","title":"Ссылка","toAnchor":"Ссылка на якорь в тексте","toEmail":"Email","toUrl":"Ссылка","toPhone":"Phone","toolbar":"Вставить/Редактировать ссылку","type":"Тип ссылки","unlink":"Убрать ссылку","upload":"Загрузка"},"list":{"bulletedlist":"Вставить / удалить маркированный список","numberedlist":"Вставить / удалить нумерованный список"},"liststyle":{"bulletedTitle":"Свойства маркированного списка","circle":"Круг","decimal":"Десятичные (1, 2, 3, и т.д.)","disc":"Окружность","lowerAlpha":"Строчные латинские (a, b, c, d, e, и т.д.)","lowerRoman":"Строчные римские (i, ii, iii, iv, v, и т.д.)","none":"Нет","notset":"<не указано>","numberedTitle":"Свойства нумерованного списка","square":"Квадрат","start":"Начиная с","type":"Тип","upperAlpha":"Заглавные латинские (A, B, C, D, E, и т.д.)","upperRoman":"Заглавные римские (I, II, III, IV, V, и т.д.)","validateStartNumber":"Первый номер списка должен быть задан обычным целым числом."},"magicline":{"title":"Вставить здесь параграф"},"maximize":{"maximize":"Развернуть","minimize":"Свернуть"},"newpage":{"toolbar":"Новая страница"},"pagebreak":{"alt":"Разрыв страницы","toolbar":"Вставить разрыв страницы для печати"},"pastetext":{"button":"Вставить только текст","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Вставить только текст"},"pastefromword":{"confirmCleanup":"Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?","error":"Невозможно очистить вставленные данные из-за внутренней ошибки","title":"Вставить из Word","toolbar":"Вставить из Word"},"preview":{"preview":"Предварительный просмотр"},"print":{"toolbar":"Печать"},"removeformat":{"toolbar":"Убрать форматирование"},"save":{"toolbar":"Сохранить"},"selectall":{"toolbar":"Выделить все"},"showblocks":{"toolbar":"Отображать блоки"},"sourcearea":{"toolbar":"Источник"},"specialchar":{"options":"Выбор специального символа","title":"Выберите специальный символ","toolbar":"Вставить специальный символ"},"scayt":{"btn_about":"О SCAYT","btn_dictionaries":"Словари","btn_disable":"Отключить SCAYT","btn_enable":"Включить SCAYT","btn_langs":"Языки","btn_options":"Настройки","text_title":"Проверка орфографии по мере ввода (SCAYT)"},"stylescombo":{"label":"Стили","panelTitle":"Стили форматирования","panelTitle1":"Стили блока","panelTitle2":"Стили элемента","panelTitle3":"Стили объекта"},"table":{"border":"Размер границ","caption":"Заголовок","cell":{"menu":"Ячейка","insertBefore":"Вставить ячейку слева","insertAfter":"Вставить ячейку справа","deleteCell":"Удалить ячейки","merge":"Объединить ячейки","mergeRight":"Объединить с правой","mergeDown":"Объединить с нижней","splitHorizontal":"Разделить ячейку по вертикали","splitVertical":"Разделить ячейку по горизонтали","title":"Свойства ячейки","cellType":"Тип ячейки","rowSpan":"Объединяет строк","colSpan":"Объединяет колонок","wordWrap":"Перенос по словам","hAlign":"Горизонтальное выравнивание","vAlign":"Вертикальное выравнивание","alignBaseline":"По базовой линии","bgColor":"Цвет фона","borderColor":"Цвет границ","data":"Данные","header":"Заголовок","yes":"Да","no":"Нет","invalidWidth":"Ширина ячейки должна быть числом.","invalidHeight":"Высота ячейки должна быть числом.","invalidRowSpan":"Количество объединяемых строк должно быть задано числом.","invalidColSpan":"Количество объединяемых колонок должно быть задано числом.","chooseColor":"Выберите"},"cellPad":"Внутренний отступ ячеек","cellSpace":"Внешний отступ ячеек","column":{"menu":"Колонка","insertBefore":"Вставить колонку слева","insertAfter":"Вставить колонку справа","deleteColumn":"Удалить колонки"},"columns":"Колонки","deleteTable":"Удалить таблицу","headers":"Заголовки","headersBoth":"Сверху и слева","headersColumn":"Левая колонка","headersNone":"Без заголовков","headersRow":"Верхняя строка","heightUnit":"height unit","invalidBorder":"Размер границ должен быть числом.","invalidCellPadding":"Внутренний отступ ячеек (cellpadding) должен быть числом.","invalidCellSpacing":"Внешний отступ ячеек (cellspacing) должен быть числом.","invalidCols":"Количество столбцов должно быть больше 0.","invalidHeight":"Высота таблицы должна быть числом.","invalidRows":"Количество строк должно быть больше 0.","invalidWidth":"Ширина таблицы должна быть числом.","menu":"Свойства таблицы","row":{"menu":"Строка","insertBefore":"Вставить строку сверху","insertAfter":"Вставить строку снизу","deleteRow":"Удалить строки"},"rows":"Строки","summary":"Итоги","title":"Свойства таблицы","toolbar":"Таблица","widthPc":"процентов","widthPx":"пикселей","widthUnit":"единица измерения"},"undo":{"redo":"Повторить","undo":"Отменить"},"widget":{"move":"Нажмите и перетащите, чтобы переместить","label":"%1 виджет"},"uploadwidget":{"abort":"Загрузка отменена пользователем","doneOne":"Файл успешно загружен","doneMany":"Успешно загружено файлов: %1","uploadOne":"Загрузка файла ({percentage}%)","uploadMany":"Загрузка файлов, {current} из {max} загружено ({percentage}%)..."},"wsc":{"btnIgnore":"Пропустить","btnIgnoreAll":"Пропустить всё","btnReplace":"Заменить","btnReplaceAll":"Заменить всё","btnUndo":"Отменить","changeTo":"Изменить на","errorLoading":"Произошла ошибка при подключении к серверу проверки орфографии: %s.","ieSpellDownload":"Модуль проверки орфографии не установлен. Хотите скачать его?","manyChanges":"Проверка орфографии завершена. Изменено слов: %1","noChanges":"Проверка орфографии завершена. Не изменено ни одного слова","noMispell":"Проверка орфографии завершена. Ошибок не найдено","noSuggestions":"- Варианты отсутствуют -","notAvailable":"Извините, но в данный момент сервис недоступен.","notInDic":"Отсутствует в словаре","oneChange":"Проверка орфографии завершена. Изменено одно слово","progress":"Орфография проверяется...","title":"Проверка орфографии","toolbar":"Проверить орфографию"}};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.dialog.add("a11yHelp",function(f){function m(a){for(var b,c,h=[],d=0;d<g.length;d++)c=g[d],b=a/g[d],1<b&&2>=b&&(a-=c,h.push(e[c]));h.push(e[a]||String.fromCharCode(a));return h.join("+")}function t(a,b){var c=f.getCommandKeystroke(b,!0);return c.length?CKEDITOR.tools.array.map(c,m).join(" / "):a}var a=f.lang.a11yhelp,b=f.lang.common.keyboard,p=CKEDITOR.tools.getNextId(),q=/\$\{(.*?)\}/g,g=[CKEDITOR.ALT,CKEDITOR.SHIFT,CKEDITOR.CTRL],e={8:b[8],9:a.tab,13:b[13],16:b[16],17:b[17],18:b[18],19:a.pause,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"Editor Toolbar",legend:"Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT+TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button."},{name:"Editor Dialog",legend:"Inside a dialog, press TAB to navigate to the next dialog element, press SHIFT+TAB to move to the previous dialog element, press ENTER to submit the dialog, press ESC to cancel the dialog. When a dialog has multiple tabs, the tab list can be reached either with ALT+F10 or with TAB as part of the dialog tabbing order. With tab list focused, move to the next and previous tab with RIGHT and LEFT ARROW, respectively."},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.plugins.setLang("a11yhelp","ru",{title:"Горячие клавиши",contents:"Помощь. Для закрытия этого окна нажмите ESC.",legend:[{name:"Основное",items:[{name:"Панель инструментов",legend:"Нажмите ${toolbarFocus} для перехода к панели инструментов. Для перемещения между группами панели инструментов используйте TAB и SHIFT+TAB. Для перемещения между кнопками панели иструментов используйте кнопки ВПРАВО или ВЛЕВО. Нажмите ПРОБЕЛ или ENTER для запуска кнопки панели инструментов."},{name:"Диалоги",legend:'Внутри диалога, нажмите TAB чтобы перейти к следующему элементу диалога, нажмите SHIFT+TAB чтобы перейти к предыдущему элементу диалога, нажмите ENTER чтобы отправить диалог, нажмите ESC чтобы отменить диалог. Когда диалоговое окно имеет несколько вкладок, получить доступ к панели вкладок как части диалога можно нажатием или сочетания ALT+F10 или TAB, при этом активные элементы диалога будут перебираться с учетом порядка табуляции. При активной панели вкладок, переход к следующей или предыдущей вкладке осуществляется нажатием стрелки "ВПРАВО" или стрелки "ВЛЕВО" соответственно.'},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.dialog.add("about",function(a){a=a.lang.about;var b=CKEDITOR.getUrl(CKEDITOR.plugins.get("about").path+"dialogs/"+(CKEDITOR.env.hidpi?"hidpi/":"")+"logo_ckeditor.png");return{title:a.dlgTitle,minWidth:390,minHeight:210,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[{type:"html",html:'\x3cstyle type\x3d"text/css"\x3e.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
CKEDITOR.dialog.add("paste",function(c){function k(a){var b=new CKEDITOR.dom.document(a.document),g=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();g.setAttribute("contenteditable",!0);g.on(e.mainPasteEvent,function(a){a=e.initPasteDataTransfer(a);f?a!=f&&(f=e.initPasteDataTransfer()):f=a});if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){a=a.data;var b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+
|
@@ -1 +1 @@
|
|
1
|
-
.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:0;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:blue;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,0.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../images/searchcode.png") no-repeat}.autoFormat span{background:url("../images/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../images/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../images/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539!important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539!important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b!important}.cm-s-monokai .CodeMirror-selected{background:#49483e!important}.cm-s-night .CodeMirror-selected{background:#447!important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f!important}.cm-s-twilight .CodeMirror-selected{background:#323232!important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f!important}.cm-s-the-matrix .CodeMirror-selected{background:#494949!important}.cm-s-mbo .CodeMirror-selected{background:#716c62!important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:black;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:white}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:0;outline:0;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}
|
1
|
+
.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:0;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:blue;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,0.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../images/searchcode.png") no-repeat}.autoFormat span{background:url("../images/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../images/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../images/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539!important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539!important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b!important}.cm-s-monokai .CodeMirror-selected{background:#49483e!important}.cm-s-night .CodeMirror-selected{background:#447!important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f!important}.cm-s-twilight .CodeMirror-selected{background:#323232!important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f!important}.cm-s-the-matrix .CodeMirror-selected{background:#494949!important}.cm-s-mbo .CodeMirror-selected{background:#716c62!important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:black;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:white}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:0;outline:0;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:black;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:white}.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}
|
@@ -1,2 +1,4 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/comment/continuecomment.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var i,r=t.listSelections(),o=[],a=0;a<r.length;a++){var l=r[a].head;if(!/\bcomment\b/.test(t.getTokenTypeAt(l)))return e.Pass;var s=t.getModeAt(l);if(i){if(i!=s)return e.Pass}else i=s;var c=null;if(i.blockCommentStart&&i.blockCommentContinue){var f,u=t.getLine(l.line).slice(0,l.ch),d=u.lastIndexOf(i.blockCommentEnd);if(-1!=d&&d==l.ch-i.blockCommentEnd.length);else if((f=u.lastIndexOf(i.blockCommentStart))>-1&&f>d){if(c=u.slice(0,f),/\S/.test(c)){c="";for(var h=0;h<f;++h)c+=" "}}else(f=u.indexOf(i.blockCommentContinue))>-1&&!/\S/.test(u.slice(0,f))&&(c=u.slice(0,f));null!=c&&(c+=i.blockCommentContinue)}if(null==c&&i.lineComment&&n(t)){var u=t.getLine(l.line),f=u.indexOf(i.lineComment);f>-1&&(c=u.slice(0,f),/\S/.test(c)?c=null:c+=i.lineComment+u.slice(f+i.lineComment.length).match(/^\s*/)[0])}if(null==c)return e.Pass;o[a]="\n"+c}t.operation(function(){for(var e=r.length-1;e>=0;e--)t.replaceRange(o[e],r[e].from(),r[e].to(),"+insert")})}function n(e){var t=e.getOption("continueComments");return!t||"object"!=typeof t||!1!==t.continueLineComment}e.defineOption("continueComments",null,function(n,i,r){if(r&&r!=e.Init&&n.removeKeyMap("continueComment"),i){var o="Enter";"string"==typeof i?o=i:"object"==typeof i&&i.key&&(o=i.key);var a={name:"continueComment"};a[o]=t,n.addKeyMap(a)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/closebrackets.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:d[t]}function n(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";m[r]||(m[r]=i(n))}}function i(e){return function(t){return s(t,e)}}function r(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(n){var i=r(n);if(!i||n.getOption("disableInput"))return e.Pass;for(var o=t(i,"pairs"),a=n.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var s=f(n,a[l].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}for(var l=a.length-1;l>=0;l--){var c=a[l].head;n.replaceRange("",h(c.line,c.ch-1),h(c.line,c.ch+1),"+delete")}}function a(n){var i=r(n),o=i&&t(i,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var s=f(n,a[l].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),n.execCommand("goCharLeft"),a=n.listSelections();for(var t=0;t<a.length;t++){var i=a[t].head.line;n.indentLine(i,null,!0),n.indentLine(i+1,null,!0)}})}function l(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new h(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new h(t.head.line,t.head.ch+(n?1:-1))}}function s(n,i){var o=r(n);if(!o||n.getOption("disableInput"))return e.Pass;var a=t(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var f,d=t(o,"triples"),m=a.charAt(s+1)==i,g=n.listSelections(),p=s%2==0,v=0;v<g.length;v++){var b,x=g[v],y=x.head,C=n.getRange(y,h(y.line,y.ch+1));if(p&&!x.empty())b="surround";else if(!m&&p||C!=i)if(m&&y.ch>1&&d.indexOf(i)>=0&&n.getRange(h(y.line,y.ch-2),y)==i+i){if(y.ch>2&&/\bstring/.test(n.getTokenTypeAt(h(y.line,y.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==y.ch?" ":n.getRange(h(y.line,y.ch-1),y);if(e.isWordChar(C)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!p||n.getLine(y.line).length!=y.ch&&!c(C,a)&&!/\s/.test(C))return e.Pass;b="both"}else b=m&&u(n,y)?"both":d.indexOf(i)>=0&&n.getRange(y,h(y.line,y.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var L=s%2?a.charAt(s-1):i,S=s%2?i:a.charAt(s+1);n.operation(function(){if("skip"==f)n.execCommand("goCharRight");else if("skipThree"==f)for(var e=0;e<3;e++)n.execCommand("goCharRight");else if("surround"==f){for(var t=n.getSelections(),e=0;e<t.length;e++)t[e]=L+t[e]+S;n.replaceSelections(t,"around"),t=n.listSelections().slice();for(var e=0;e<t.length;e++)t[e]=l(t[e]);n.setSelections(t)}else"both"==f?(n.replaceSelection(L+S,null),n.triggerElectric(L+S),n.execCommand("goCharLeft")):"addFour"==f&&(n.replaceSelection(L+L+L+L,"before"),n.execCommand("goCharRight"))})}function c(e,t){var n=t.lastIndexOf(e);return n>-1&&n%2==1}function f(e,t){var n=e.getRange(h(t.line,t.ch-1),h(t.line,t.ch+1));return 2==n.length?n:null}function u(e,t){var n=e.getTokenAt(h(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var d={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},h=e.Pos;e.defineOption("autoCloseBrackets",!1,function(i,r,o){o&&o!=e.Init&&(i.removeKeyMap(m),i.state.closeBrackets=null),r&&(n(t(r,"pairs")),i.state.closeBrackets=r,i.addKeyMap(m))});var m={Backspace:o,Enter:a};n(d.pairs+"`")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/xml-fold",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function n(e,t,n,i){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=i?Math.max(i.from,e.firstLine()):e.firstLine(),this.max=i?Math.min(i.to-1,e.lastLine()):e.lastLine()}function i(e,t){var n=e.cm.getTokenTypeAt(d(e.line,t));return n&&/\btag\b/.test(n)}function r(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function o(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}{if(i(e,t+1)){var n=e.text.lastIndexOf("/",t),o=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}}function l(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(i(e,t+1)){m.lastIndex=t,e.ch=t;var n=m.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function s(e){for(;;){m.lastIndex=e.ch;var t=m.exec(e.text);if(!t){if(r(e))continue;return}{if(i(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}{if(i(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}}function f(e,t){for(var n=[];;){var i,r=s(e),o=e.line,l=e.ch-(r?r[0].length:0);if(!r||!(i=a(e)))return;if("selfClose"!=i)if(r[1]){for(var c=n.length-1;c>=0;--c)if(n[c]==r[2]){n.length=c;break}if(c<0&&(!t||t==r[2]))return{tag:r[2],from:d(o,l),to:d(e.line,e.ch)}}else n.push(r[2])}}function u(e,t){for(var n=[];;){var i=c(e);if(!i)return;if("selfClose"!=i){var r=e.line,o=e.ch,a=l(e);if(!a)return;if(a[1])n.push(a[2]);else{for(var s=n.length-1;s>=0;--s)if(n[s]==a[2]){n.length=s;break}if(s<0&&(!t||t==a[2]))return{tag:a[2],from:d(e.line,e.ch),to:d(r,o)}}}else l(e)}}var d=e.Pos,h="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=new RegExp("<(/?)(["+h+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,i){for(var r=new n(e,i.line,0);;){var o=s(r);if(!o||r.line!=i.line)return;var l=a(r);if(!l)return;if(!o[1]&&"selfClose"!=l){var c=d(r.line,r.ch),u=f(r,o[2]);return u&&t(u.from,c)>0?{from:c,to:u.from}:null}}}),e.findMatchingTag=function(e,i,r){var o=new n(e,i.line,i.ch,r);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=a(o),c=s&&d(o.line,o.ch),h=s&&l(o);if(s&&h&&!(t(o,i)>0)){var m={from:d(o.line,o.ch),to:c,tag:h[2]};return"selfClose"==s?{open:m,close:null,at:"open"}:h[1]?{open:u(o,h[2]),close:m,at:"close"}:(o=new n(e,c.line,c.ch,r),{open:m,close:f(o,h[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,i,r){for(var o=new n(e,t.line,t.ch,i);;){var a=u(o,r);if(!a)break;var l=new n(e,t.line,t.ch,i),s=f(l,a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,i,r){return f(new n(e,t.line,t.ch,r?{from:0,to:r}:null),i)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("addon/edit/closetag.js",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var n=t.listSelections(),i=[],s=t.getOption("autoCloseTags"),c=0;c<n.length;c++){if(!n[c].empty())return e.Pass;var f=n[c].head,u=t.getTokenAt(f),d=e.innerMode(t.getMode(),u.state),h=d.state;if("xml"!=d.mode.name||!h.tagName)return e.Pass;var m="html"==d.mode.configuration,g="object"==typeof s&&s.dontCloseTags||m&&a,p="object"==typeof s&&s.indentTags||m&&l,v=h.tagName;u.end>f.ch&&(v=v.slice(0,v.length-u.end+f.ch));var b=v.toLowerCase();if(!v||"string"==u.type&&(u.end!=f.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&"closeTag"==h.type||u.string.indexOf("/")==u.string.length-1||g&&r(g,b)>-1||o(t,v,f,h,!0))return e.Pass;var x=p&&r(p,b)>-1;i[c]={indent:x,text:">"+(x?"\n\n":"")+"</"+v+">",newPos:x?e.Pos(f.line+1,0):e.Pos(f.line,f.ch+1)}}for(var y="object"==typeof s&&s.dontIndentOnAutoClose,c=n.length-1;c>=0;c--){var C=i[c];t.replaceRange(C.text,n[c].head,n[c].anchor,"+insert");var k=t.listSelections().slice(0);k[c]={head:C.newPos,anchor:C.newPos},t.setSelections(k),!y&&C.indent&&(t.indentLine(C.newPos.line,null,!0),t.indentLine(C.newPos.line+1,null,!0))}}function n(t,n){for(var i=t.listSelections(),r=[],a=n?"/":"</",l=t.getOption("autoCloseTags"),s="object"==typeof l&&l.dontIndentOnSlash,c=0;c<i.length;c++){if(!i[c].empty())return e.Pass;var f=i[c].head,u=t.getTokenAt(f),d=e.innerMode(t.getMode(),u.state),h=d.state;if(n&&("string"==u.type||"<"!=u.string.charAt(0)||u.start!=f.ch-1))return e.Pass;var m;if("xml"!=d.mode.name)if("htmlmixed"==t.getMode().name&&"javascript"==d.mode.name)m=a+"script";else{if("htmlmixed"!=t.getMode().name||"css"!=d.mode.name)return e.Pass;m=a+"style"}else{if(!h.context||!h.context.tagName||o(t,h.context.tagName,f,h))return e.Pass;m=a+h.context.tagName}">"!=t.getLine(f.line).charAt(u.end)&&(m+=">"),r[c]=m}if(t.replaceSelections(r),i=t.listSelections(),!s)for(var c=0;c<i.length;c++)(c==i.length-1||i[c].head.line<i[c+1].head.line)&&t.indentLine(i[c].head.line)}function i(t){return t.getOption("disableInput")?e.Pass:n(t,!0)}function r(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;++n)if(e[n]==t)return n;return-1}function o(t,n,i,r,o){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,i.line+500),l=e.scanForClosingTag(t,i,null,a);if(!l||l.tag!=n)return!1;for(var s=r.context,c=o?1:0;s&&s.tagName==n;s=s.prev)++c;i=l.to;for(var f=1;f<c;f++){var u=e.scanForClosingTag(t,i,null,a);if(!u||u.tag!=n)return!1;i=u.to}return!0}e.defineOption("autoCloseTags",!1,function(n,r,o){if(o!=e.Init&&o&&n.removeKeyMap("autoCloseTags"),r){var a={name:"autoCloseTags"};("object"!=typeof r||r.whenClosing)&&(a["'/'"]=function(e){return i(e)}),("object"!=typeof r||r.whenOpening)&&(a["'>'"]=function(e){return t(e)}),n.addKeyMap(a)}});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],l=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];e.commands.closeTag=function(e){return n(e)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/matchbrackets.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,i){var r=e.getLineHandle(t.line),o=t.ch-1,s=i&&i.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=!s&&o>=0&&l[r.text.charAt(o)]||l[r.text.charAt(++o)];if(!c)return null;var f=">"==c.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(o==t.ch))return null;var u=e.getTokenTypeAt(a(t.line,o+1)),d=n(e,a(t.line,o+(f>0?1:0)),f,u||null,i);return null==d?null:{from:a(t.line,o),to:d&&d.pos,match:d&&d.ch==c.charAt(0),forward:f>0}}function n(e,t,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,s=r&&r.maxScanLines||1e3,c=[],f=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,u=n>0?Math.min(t.line+s,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-s),d=t.line;d!=u;d+=n){var h=e.getLine(d);if(h){var m=n>0?0:h.length-1,g=n>0?h.length:-1;if(!(h.length>o))for(d==t.line&&(m=t.ch-(n<0?1:0));m!=g;m+=n){var p=h.charAt(m);if(f.test(p)&&(void 0===i||e.getTokenTypeAt(a(d,m+1))==i)){var v=l[p];if(">"==v.charAt(1)==n>0)c.push(p);else{if(!c.length)return{pos:a(d,m),ch:p};c.pop()}}}}}return d-n!=(n>0?e.lastLine():e.firstLine())&&null}function i(e,n,i){for(var r=e.state.matchBrackets.maxHighlightLineLength||1e3,l=[],s=e.listSelections(),c=0;c<s.length;c++){var f=s[c].empty()&&t(e,s[c].head,i);if(f&&e.getLine(f.from.line).length<=r){var u=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(f.from,a(f.from.line,f.from.ch+1),{className:u})),f.to&&e.getLine(f.to.line).length<=r&&l.push(e.markText(f.to,a(f.to.line,f.to.ch+1),{className:u}))}}if(l.length){o&&e.state.focused&&e.focus();var d=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!n)return d;setTimeout(d,800)}}function r(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=i(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),a=e.Pos,l={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};e.defineOption("matchBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.off("cursorActivity",r),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",r))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,i){return(i||"boolean"==typeof n)&&(i?(i.strict=n,n=i):n=n?{strict:!0}:null),t(this,e,n)}),e.defineExtension("scanForBracket",function(e,t,i,r){return n(this,e,t,i,r)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("addon/edit/matchtags.js",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){"use strict";function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation(function(){if(t(n),!n.somethingSelected()){var i=n.getCursor(),r=n.getViewport();r.from=Math.min(r.from,i.line),r.to=Math.max(i.line+1,r.to);var o=e.findMatchingTag(n,i,r);if(o){if(n.state.matchBothTags){var a="open"==o.at?o.open:o.close;a&&(n.state.tagHit=n.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}))}var l="close"==o.at?o.open:o.close;l?n.state.tagOther=n.markText(l.from,l.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}})}function i(e){e.state.failedTagMatch&&n(e)}e.defineOption("matchTags",!1,function(r,o,a){a&&a!=e.Init&&(r.off("cursorActivity",n),r.off("viewportChange",i),t(r)),o&&(r.state.matchBothTags="object"==typeof o&&o.bothTags,r.on("cursorActivity",n),r.on("viewportChange",i),n(r))}),e.commands.toMatchingTag=function(t){var n=e.findMatchingTag(t,t.getCursor());if(n){var i="close"==n.at?n.open:n.close;i&&t.extendSelection(i.to,i.from)}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/trailingspace.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineOption("showTrailingSpace",!1,function(t,n,i){i==e.Init&&(i=!1),i&&!n?t.removeOverlay("trailingspace"):!i&&n&&t.addOverlay({token:function(e){for(var t=e.string.length,n=t;n&&/\s/.test(e.string.charAt(n-1));--n);return n>e.pos?(e.pos=n,null):(e.pos=t,"trailingspace")},name:"trailingspace"})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/foldcode",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,r,o,a){function l(e){var n=s(t,r);if(!n||n.to.line-n.from.line<c)return null;for(var i=t.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold&&"fold"!==a){if(!e)return null;n.cleared=!0,i[o].clear()}return n}if(o&&o.call){var s=o;o=null}else var s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var c=i(t,o,"minFoldSize"),f=l(!0);if(i(t,o,"scanUp"))for(;!f&&r.line>t.firstLine();)r=e.Pos(r.line-1,0),f=l(!1);if(f&&!f.cleared&&"unfold"!==a){var u=n(t,o);e.on(u,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(f.from,f.to,{replacedWith:u,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,i){e.signal(t,"unfold",t,n,i)}),e.signal(t,"fold",t,f.from,f.to)}}function n(e,t){var n=i(e,t,"widget");if("string"==typeof n){var r=document.createTextNode(n);n=document.createElement("span"),n.appendChild(r),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.newFoldFunction=function(e,n){return function(i,r){t(i,r,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,i){t(this,e,n,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),i=t.lastLine();n<=i;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),i=t.lastLine();n<=i;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var i=0;i<e.length;++i){var r=e[i](t,n);if(r)return r}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),i=0;i<n.length;i++){var r=n[i](e,t);if(r)return r}});var r={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return i(this,e,t)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define("addon/fold/foldgutter.js",["../../lib/codemirror","./foldcode"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,t){for(var n=e.findMarks(u(t,0),u(t+1,0)),i=0;i<n.length;++i)if(n[i].__isFold&&n[i].find().from.line==t)return n[i]}function r(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,t,n){var o=e.state.foldGutter.options,a=t,l=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder");e.eachLine(t,n,function(t){var n=null;if(i(e,a))n=r(o.indicatorFolded);else{var c=u(a,0),f=s&&s(e,c);f&&f.to.line-f.from.line>=l&&(n=r(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++a})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,t,n){var r=e.state.foldGutter;if(r){var o=r.options;if(n==o.gutter){var a=i(e,t);a?a.clear():e.foldCode(u(t,0),o.rangeFinder)}}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&i<n.to&&o(e,i,i+1)}}e.defineOption("foldGutter",!1,function(i,r,o){o&&o!=e.Init&&(i.clearGutter(i.state.foldGutter.options.gutter),i.state.foldGutter=null,i.off("gutterClick",l),i.off("change",s),i.off("viewportChange",c),i.off("fold",f),i.off("unfold",f),i.off("swapDoc",s)),r&&(i.state.foldGutter=new t(n(r)),a(i),i.on("gutterClick",l),i.on("change",s),i.on("viewportChange",c),i.on("fold",f),i.on("unfold",f),i.on("swapDoc",s))});var u=e.Pos}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/brace-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){function i(i){for(var l=n.ch,s=0;;){var c=l<=0?-1:a.lastIndexOf(i,l-1);if(-1!=c){if(1==s&&c<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(o,c+1)),!/^(comment|string)/.test(r))return c+1;l=c-1}else{if(1==s)break;s=1,l=a.length}}}var r,o=n.line,a=t.getLine(o),l="{",s="}",c=i("{");if(null==c&&(l="[",s="]",c=i("[")),null!=c){var f,u,d=1,h=t.lastLine();e:for(var m=o;m<=h;++m)for(var g=t.getLine(m),p=m==o?c:0;;){var v=g.indexOf(l,p),b=g.indexOf(s,p);if(v<0&&(v=g.length),b<0&&(b=g.length),(p=Math.min(v,b))==g.length)break;if(t.getTokenTypeAt(e.Pos(m,p+1))==r)if(p==v)++d;else if(!--d){f=m,u=p;break e}++p}if(null!=f&&(o!=f||u!=c))return{from:e.Pos(o,c),to:e.Pos(f,u)}}}),e.registerHelper("fold","import",function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(t.lastLine(),n+10);r<=o;++r){var a=t.getLine(r),l=a.indexOf(";");if(-1!=l)return{startCh:i.end,end:e.Pos(r,l)}}}var r,o=n.line,a=i(o);if(!a||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var l=a.end;;){var s=i(l.line+1);if(null==s)break;l=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:l}}),e.registerHelper("fold","include",function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var a=r;;){if(null==i(a+1))break;++a}return{from:e.Pos(r,o+1),to:t.clipPos(e.Pos(a))}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/comment-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var i=t.getModeAt(n),r=i.blockCommentStart,o=i.blockCommentEnd;if(r&&o){for(var a,l=n.line,s=t.getLine(l),c=n.ch,f=0;;){var u=c<=0?-1:s.lastIndexOf(r,c-1);if(-1!=u){if(1==f&&u<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(l,u+1)))&&(0==u||s.slice(u-o.length,u)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(l,u))))){a=u+r.length;break}c=u-1}else{if(1==f)return;f=1,c=s.length}}var d,h,m=1,g=t.lastLine();e:for(var p=l;p<=g;++p)for(var v=t.getLine(p),b=p==l?a:0;;){var x=v.indexOf(r,b),y=v.indexOf(o,b);if(x<0&&(x=v.length),y<0&&(y=v.length),(b=Math.min(x,y))==v.length)break;if(b==x)++m;else if(!--m){d=p,h=b;break e}++b}if(null!=d&&(l!=d||h!=a))return{from:e.Pos(l,a),to:e.Pos(d,h)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/indent-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n){var i=t.getLine(n),r=i.search(/\S/);return-1==r||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,r+1)))?-1:e.countColumn(i,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",function(n,i){var r=t(n,i.line);if(!(r<0)){for(var o=null,a=i.line+1,l=n.lastLine();a<=l;++a){var s=t(n,a);if(-1==s);else{if(!(s>r))break;o=a}}return o?{from:e.Pos(i.line,n.getLine(i.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/format/autoFormatAll.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineExtension("autoFormatAll",function(t,n){function i(){c+="\n",u=!0,++f}for(var r=this,o=r.getMode(),a=r.getRange(t,n).split("\n"),l=e.copyState(o,r.getTokenAt(t).state),s=r.getOption("tabSize"),c="",f=0,u=0==t.ch,d=0;d<a.length;++d){for(var h=new e.StringStream(a[d],s);!h.eol();){var m=e.innerMode(o,l),g=o.token(h,l),p=h.current();h.start=h.pos,u&&!/\S/.test(p)||(c+=p,u=!1),!u&&m.mode.newlineAfterToken&&m.mode.newlineAfterToken(g,p,h.string.slice(h.pos)||a[d+1]||"",m.state)&&i()}!h.pos&&o.blankLine&&o.blankLine(l),!u&&d<a.length-1&&i()}r.operation(function(){r.replaceRange(c,t,n);for(var e=t.line+1,i=t.line+f;e<=i;++e)r.indentLine(e,"smart");r.setCursor({line:0,ch:0})})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/format/formatting.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t=[/for\s*?\((.*?)\)/g,/&#?[a-z0-9]+;[\s\S]/g,/\"(.*?)((\")|$)/g,/\/\*(.*?)(\*\/|$)/g,/^\/\/.*/g],n=[],i=0;i<t.length;i++)for(var r=0;r<e.length;){var o=e.substr(r).match(t[i]);if(null==o)break;n.push({start:r+o.index,end:r+o.index+o[0].length}),r+=o.index+Math.max(1,o[0].length)}return n.sort(function(e,t){return e.start-t.start}),n}e.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,t){return/^[;{}]$/.test(t)}}),e.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(e){var n=0,i=this.jsonMode?function(e){return e.replace(/([,{])/g,"$1\n").replace(/}/g,"\n}")}:function(e){return e.replace(/(;|\{|\})([^\r\n;])/g,"$1\n$2")},r=t(e),o="";if(null!=r){for(var a=0;a<r.length;a++)r[a].start>n&&(o+=i(e.substring(n,r[a].start)),n=r[a].start),r[a].start<=n&&r[a].end>=n&&(o+=e.substring(n,r[a].end),n=r[a].end);n<e.length&&(o+=i(e.substr(n)))}else o=i(e);return o.replace(/^\n*|\n*$/,"")}});e.extendMode("xml",{commentStart:"\x3c!--",commentEnd:"--\x3e",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(e,t,n,i){var r="a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u",o="label|li|option|textarea|title|"+r,a=!1,l=null,s="";if(this.isXML="xml"==this.configuration,"comment"==e||/<!--/.test(n))return!1;if("tag"==e){if(0==t.indexOf("<")&&0==!t.indexOf("</")){this.tagType="open",l=t.match(/^<\s*?([\w]+?)$/i),this.tagName=null!=l?l[1]:"";var s=this.tagName.toLowerCase();-1!=("|"+o+"|").indexOf("|"+s+"|")&&(this.noBreak=!0)}if(0==t.indexOf(">")&&"open"==this.tagType){this.tagType="";var c=this.isXML?"[^<]*?":"";return RegExp("^"+c+"</s*?"+this.tagName+"s*?>","i").test(n)?(this.noBreak=!1,this.isXML||(this.tagName=""),!1):(a=this.noBreak,this.noBreak=!1,!a)}if(0==t.indexOf("</")&&(this.tagType="close",l=t.match(/^<\/\s*?([\w]+?)$/i),null!=l&&(s=l[1].toLowerCase()),-1!=("|"+r+"|").indexOf("|"+s+"|")&&(this.noBreak=!0)),0==t.indexOf(">")&&"close"==this.tagType)return this.tagType="",0==n.indexOf("<")&&(l=n.match(/^<\/?\s*?([\w]+?)(\s|>)/i),s=null!=l?l[1].toLowerCase():"",-1==("|"+o+"|").indexOf("|"+s+"|"))?(this.noBreak=!1,!0):(a=this.noBreak,this.noBreak=!1,!a)}return 0==n.indexOf("<")&&(this.noBreak=!1,this.isXML&&""!=this.tagName?(this.tagName="",!1):(l=n.match(/^<\/?\s*?([\w]+?)(\s|>)/i),s=null!=l?l[1].toLowerCase():"",-1==("|"+o+"|").indexOf("|"+s+"|")))}}),e.defineExtension("commentRange",function(t,n,i){var r=this,o=e.innerMode(r.getMode(),r.getTokenAt(n).state).mode;r.operation(function(){if(t)r.replaceRange(o.commentEnd,i),r.replaceRange(o.commentStart,n),r.setSelection(n,{line:i.line,ch:i.ch+o.commentStart.length+o.commentEnd.length}),n.line==i.line&&n.ch==i.ch&&r.setCursor(n.line,n.ch+o.commentStart.length);else{var e=r.getRange(n,i),a=e.indexOf(o.commentStart),l=e.lastIndexOf(o.commentEnd);a>-1&&l>-1&&l>a&&(e=e.substr(0,a)+e.substring(a+o.commentStart.length,l)+e.substr(l+o.commentEnd.length)),r.replaceRange(e,n,i),r.setSelection(n,{line:i.line,ch:i.ch-o.commentStart.length-o.commentEnd.length})}})}),e.defineExtension("autoIndentRange",function(e,t){var n=this;this.operation(function(){for(var i=e.line;i<=t.line;i++)n.indentLine(i,"smart")})}),e.defineExtension("autoFormatRange",function(t,n){function i(){c+="\n",u=!0,++f}for(var r=this,o=r.getMode(),a=r.getRange(t,n).split("\n"),l=e.copyState(o,r.getTokenAt(t).state),s=r.getOption("tabSize"),c="",f=0,u=0==t.ch,d=0;d<a.length;++d){for(var h=new e.StringStream(a[d],s);!h.eol();){var m=e.innerMode(o,l),g=o.token(h,l),p=h.current();h.start=h.pos,u&&!/\S/.test(p)||(c+=p,u=!1),!u&&m.mode.newlineAfterToken&&m.mode.newlineAfterToken(g,p,h.string.slice(h.pos)||a[d+1]||"",m.state)&&i()}!h.pos&&o.blankLine&&o.blankLine(l),!u&&d<a.length-1&&i()}r.operation(function(){r.replaceRange(c,t,n);for(var e=t.line+1,i=t.line+f;e<=i;++e)r.indentLine(e,"smart");r.setSelection(t,r.getCursor(!1))})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/selection/active-line.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",o),e.removeLineClass(e.state.activeLines[t],"background",a),e.removeLineClass(e.state.activeLines[t],"gutter",l)}function n(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function i(e,i){for(var r=[],s=0;s<i.length;s++){var c=i[s],f=e.getOption("styleActiveLine");if("object"==typeof f&&f.nonEmpty?c.anchor.line==c.head.line:c.empty()){var u=e.getLineHandleVisualStart(c.head.line);r[r.length-1]!=u&&r.push(u)}}n(e.state.activeLines,r)||e.operation(function(){t(e);for(var n=0;n<r.length;n++)e.addLineClass(r[n],"wrap",o),e.addLineClass(r[n],"background",a),e.addLineClass(r[n],"gutter",l);e.state.activeLines=r})}function r(e,t){i(e,t.ranges)}var o="CodeMirror-activeline",a="CodeMirror-activeline-background",l="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(n,o,a){var l=a!=e.Init&&a;o!=l&&(l&&(n.off("beforeSelectionChange",r),t(n),delete n.state.activeLines),o&&(n.state.activeLines=[],i(n,n.listSelections()),n.on("beforeSelectionChange",r)))})}),function(e){
|
2
|
-
"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/search/searchcursor",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function n(e,n){for(var i=t(e),r=i,o=0;o<n.length;o++)-1==r.indexOf(n.charAt(o))&&(r+=n.charAt(o));return i==r?e:new RegExp(e.source,r)}function i(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function r(e,t,i){t=n(t,"g");for(var r=i.line,o=i.ch,a=e.lastLine();r<=a;r++,o=0){t.lastIndex=o;var l=e.getLine(r),s=t.exec(l);if(s)return{from:g(r,s.index),to:g(r,s.index+s[0].length),match:s}}}function o(e,t,o){if(!i(t))return r(e,t,o);t=n(t,"gm");for(var a,l=1,s=o.line,c=e.lastLine();s<=c;){for(var f=0;f<l&&!(s>c);f++){var u=e.getLine(s++);a=null==a?u:a+"\n"+u}l*=2,t.lastIndex=o.ch;var d=t.exec(a);if(d){var h=a.slice(0,d.index).split("\n"),m=d[0].split("\n"),p=o.line+h.length-1,v=h[h.length-1].length;return{from:g(p,v),to:g(p+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:d}}}}function a(e,t){for(var n,i=0;;){t.lastIndex=i;var r=t.exec(e);if(!r)return n;if(n=r,(i=n.index+(n[0].length||1))==e.length)return n}}function l(e,t,i){t=n(t,"g");for(var r=i.line,o=i.ch,l=e.firstLine();r>=l;r--,o=-1){var s=e.getLine(r);o>-1&&(s=s.slice(0,o));var c=a(s,t);if(c)return{from:g(r,c.index),to:g(r,c.index+c[0].length),match:c}}}function s(e,t,i){t=n(t,"gm");for(var r,o=1,l=i.line,s=e.firstLine();l>=s;){for(var c=0;c<o;c++){var f=e.getLine(l--);r=null==r?f.slice(0,i.ch):f+"\n"+r}o*=2;var u=a(r,t);if(u){var d=r.slice(0,u.index).split("\n"),h=u[0].split("\n"),m=l+d.length,p=d[d.length-1].length;return{from:g(m,p),to:g(m+h.length-1,1==h.length?p+h[0].length:h[h.length-1].length),match:u}}}}function c(e,t,n,i){if(e.length==t.length)return n;for(var r=0,o=n+Math.max(0,e.length-t.length);;){if(r==o)return r;var a=r+o>>1,l=i(e.slice(0,a)).length;if(l==n)return a;l>n?o=a:r=a+1}}function f(e,t,n,i){if(!t.length)return null;var r=i?h:m,o=r(t).split(/\r|\n\r?/);e:for(var a=n.line,l=n.ch,s=e.lastLine()+1-o.length;a<=s;a++,l=0){var f=e.getLine(a).slice(l),u=r(f);if(1==o.length){var d=u.indexOf(o[0]);if(-1==d)continue e;var n=c(f,u,d,r)+l;return{from:g(a,c(f,u,d,r)+l),to:g(a,c(f,u,d+o[0].length,r)+l)}}var p=u.length-o[0].length;if(u.slice(p)==o[0]){for(var v=1;v<o.length-1;v++)if(r(e.getLine(a+v))!=o[v])continue e;var b=e.getLine(a+o.length-1),x=r(b),y=o[o.length-1];if(x.slice(0,y.length)==y)return{from:g(a,c(f,u,p,r)+l),to:g(a+o.length-1,c(b,x,y.length,r))}}}}function u(e,t,n,i){if(!t.length)return null;var r=i?h:m,o=r(t).split(/\r|\n\r?/);e:for(var a=n.line,l=n.ch,s=e.firstLine()-1+o.length;a>=s;a--,l=-1){var f=e.getLine(a);l>-1&&(f=f.slice(0,l));var u=r(f);if(1==o.length){var d=u.lastIndexOf(o[0]);if(-1==d)continue e;return{from:g(a,c(f,u,d,r)),to:g(a,c(f,u,d+o[0].length,r))}}var p=o[o.length-1];if(u.slice(0,p.length)==p){for(var v=1,n=a-o.length+1;v<o.length-1;v++)if(r(e.getLine(n+v))!=o[v])continue e;var b=e.getLine(a+1-o.length),x=r(b);if(x.slice(x.length-o[0].length)==o[0])return{from:g(a+1-o.length,c(b,x,b.length-o[0].length,r)),to:g(a,c(f,u,p.length,r))}}}}function d(e,t,i,a){this.atOccurrence=!1,this.doc=e,i=i?e.clipPos(i):g(0,0),this.pos={from:i,to:i};var c;"object"==typeof a?c=a.caseFold:(c=a,a=null),"string"==typeof t?(null==c&&(c=!1),this.matches=function(n,i){return(n?u:f)(e,t,i,c)}):(t=n(t,"gm"),a&&!1===a.multiline?this.matches=function(n,i){return(n?l:r)(e,t,i)}:this.matches=function(n,i){return(n?s:o)(e,t,i)})}var h,m,g=e.Pos;String.prototype.normalize?(h=function(e){return e.normalize("NFD").toLowerCase()},m=function(e){return e.normalize("NFD")}):(h=function(e){return e.toLowerCase()},m=function(e){return e}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=g(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(g(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=g(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,g(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=g(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=g(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new d(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new d(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var i=[],r=this.getSearchCursor(t,this.getCursor("from"),n);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/scroll/annotatescrollbar",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){function n(e){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var i=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("change",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){function t(e,t){return s!=e.line&&(s=e.line,c=n.getLineHandle(s)),c.widgets&&c.widgets.length||a&&c.height>l?n.charCoords(e,"local")[t?"top":"bottom"]:n.heightAtLine(c,"local")+(t?0:c.height)}!1!==e&&this.computeScale();var n=this.cm,i=this.hScale,r=document.createDocumentFragment(),o=this.annotations,a=n.getOption("lineWrapping"),l=a&&1.5*n.defaultTextHeight(),s=null,c=null,f=n.lastLine();if(n.display.barWidth)for(var u,d=0;d<o.length;d++){var h=o[d];if(!(h.to.line>f)){for(var m=u||t(h.from,!0)*i,g=t(h.to,!1)*i;d<o.length-1&&!(o[d+1].to.line>f)&&!((u=t(o[d+1].from,!0)*i)>g+.9);)h=o[++d],g=t(h.to,!1)*i;if(g!=m){var p=Math.max(g-m,3),v=r.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(n.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+p+"px",v.className=this.options.className,h.id&&v.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define("addon/search/matchesonscrollbar",["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,i){this.cm=e,this.options=i;var r={listenForChanges:!1};for(var o in i)r[o]=i[o];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new t(this,e,n,i)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var n=this.matches[t];if(n.from.line>=this.gap.to)break;n.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var i=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold),r=this.options&&this.options.maxMatches||1e3;i.findNext();){var n={from:i.from(),to:i.to()};if(n.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,n),this.matches.length>r)break}this.gap=null}},t.prototype.onChange=function(t){var i=t.from.line,r=e.changeEnd(t).line,o=r-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,i,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,i,o),t.from.line)):this.gap={from:t.from.line,to:r+1},o)for(var a=0;a<this.matches.length;a++){var l=this.matches[a],s=n(l.from.line,i,o);s!=l.from.line&&(l.from=e.Pos(s,l.from.ch));var c=n(l.to.line,i,o);c!=l.to.line&&(l.to=e.Pos(c,l.to.ch))}clearTimeout(this.update);var f=this;this.update=setTimeout(function(){f.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./matchesonscrollbar")):"function"==typeof define&&define.amd?define("addon/search/match-highlighter.js",["../../lib/codemirror","./matchesonscrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options={};for(var t in u)this.options[t]=(e&&e.hasOwnProperty(t)?e:u)[t];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function n(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&r(e,t)}function i(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,r(e,t))}function r(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay)}function o(e,t,n,i){var r=e.state.matchHighlighter;if(e.addOverlay(r.overlay=f(t,n,i)),r.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp("\\b"+t.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+"\\b"):t;r.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function l(e){e.operation(function(){var t=e.state.matchHighlighter;if(a(e),!e.somethingSelected()&&t.options.showToken){for(var n=!0===t.options.showToken?/[\w$]/:t.options.showToken,i=e.getCursor(),r=e.getLine(i.line),l=i.ch,c=l;l&&n.test(r.charAt(l-1));)--l;for(;c<r.length&&n.test(r.charAt(c));)++c;return void(l<c&&o(e,r.slice(l,c),n,t.options.style))}var f=e.getCursor("from"),u=e.getCursor("to");if(f.line==u.line&&(!t.options.wordsOnly||s(e,f,u))){var d=e.getRange(f,u);t.options.trim&&(d=d.replace(/^\s+|\s+$/g,"")),d.length>=t.options.minChars&&o(e,d,!1,t.options.style)}})}function s(e,t,n){if(null!==e.getRange(t,n).match(/^\w+$/)){if(t.ch>0){var i={line:t.line,ch:t.ch-1},r=e.getRange(i,t);if(null===r.match(/\W/))return!1}if(n.ch<e.getLine(t.line).length){var i={line:n.line,ch:n.ch+1},r=e.getRange(n,i);if(null===r.match(/\W/))return!1}return!0}return!1}function c(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}function f(e,t,n){return{token:function(i){if(i.match(e)&&(!t||c(i,t)))return n;i.next(),i.skipTo(e.charAt(0))||i.skipToEnd()}}}var u={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};e.defineOption("highlightSelectionMatches",!1,function(r,o,s){if(s&&s!=e.Init&&(a(r),clearTimeout(r.state.matchHighlighter.timeout),r.state.matchHighlighter=null,r.off("cursorActivity",n),r.off("focus",i)),o){var c=r.state.matchHighlighter=new t(o);r.hasFocus()?(c.active=!0,l(r)):r.on("focus",i),r.on("cursorActivity",n)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){function n(e,t,n,i){if("string"==typeof t){var r=e.indexOf(t,n);return i&&r>-1?r+t.length:r}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(i?o[0].length:0):-1}var i=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(r,o){if(o.innerActive){var a=o.innerActive,l=r.string;if(!a.close&&r.sol())return o.innerActive=o.inner=null,this.token(r,o);var s=a.close?n(l,a.close,r.pos,a.parseDelimiters):-1;if(s==r.pos&&!a.parseDelimiters)return r.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";s>-1&&(r.string=l.slice(0,s));var c=a.mode.token(r,o.inner);return s>-1&&(r.string=l),s==r.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(c=c?c+" "+a.innerStyle:a.innerStyle),c}for(var f=1/0,l=r.string,u=0;u<i.length;++u){var d=i[u],s=n(l,d.open,r.pos);if(s==r.pos){d.parseDelimiters||r.match(d.open),o.innerActive=d;var h=0;if(t.indent){var m=t.indent(o.outer,"");m!==e.Pass&&(h=m)}return o.inner=e.startState(d.mode,h),d.delimStyle&&d.delimStyle+" "+d.delimStyle+"-open"}-1!=s&&s<f&&(f=s)}f!=1/0&&(r.string=l.slice(0,f));var g=t.token(r,o.outer);return f!=1/0&&(r.string=l),g},indent:function(n,i){var r=n.innerActive?n.innerActive.mode:t;return r.indent?r.indent(n.innerActive?n.inner:n.outer,i):e.Pass},blankLine:function(n){var r=n.innerActive?n.innerActive.mode:t;if(r.blankLine&&r.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var o=0;o<i.length;++o){var a=i[o];"\n"===a.open&&(n.innerActive=a,n.inner=e.startState(a.mode,r.indent?r.indent(n.outer,""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"function"==typeof e.define&&e.define("addons",["addon/comment/continuecomment.js","addon/edit/closebrackets.js","addon/edit/closetag.js","addon/edit/matchbrackets.js","addon/edit/matchtags.js","addon/edit/trailingspace.js","addon/fold/foldgutter.js","addon/fold/brace-fold.js","addon/fold/comment-fold.js","addon/fold/indent-fold.js","addon/format/autoFormatAll.js","addon/format/formatting.js","addon/selection/active-line.js","addon/search/match-highlighter.js","addon/mode/multiplex.js"],function(){})}(this);
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/comment/continuecomment.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var r,i=t.listSelections(),o=[],a=0;a<i.length;a++){var l=i[a].head;if(!/\bcomment\b/.test(t.getTokenTypeAt(l)))return e.Pass;var s=t.getModeAt(l);if(r){if(r!=s)return e.Pass}else r=s;var c=null;if(r.blockCommentStart&&r.blockCommentContinue){var u,d=t.getLine(l.line).slice(0,l.ch),f=d.lastIndexOf(r.blockCommentEnd);if(-1!=f&&f==l.ch-r.blockCommentEnd.length);else if((u=d.lastIndexOf(r.blockCommentStart))>-1&&u>f){if(c=d.slice(0,u),/\S/.test(c)){c="";for(var h=0;h<u;++h)c+=" "}}else(u=d.indexOf(r.blockCommentContinue))>-1&&!/\S/.test(d.slice(0,u))&&(c=d.slice(0,u));null!=c&&(c+=r.blockCommentContinue)}if(null==c&&r.lineComment&&n(t)){var d=t.getLine(l.line),u=d.indexOf(r.lineComment);u>-1&&(c=d.slice(0,u),/\S/.test(c)?c=null:c+=r.lineComment+d.slice(u+r.lineComment.length).match(/^\s*/)[0])}if(null==c)return e.Pass;o[a]="\n"+c}t.operation(function(){for(var e=i.length-1;e>=0;e--)t.replaceRange(o[e],i[e].from(),i[e].to(),"+insert")})}function n(e){var t=e.getOption("continueComments");return!t||"object"!=typeof t||!1!==t.continueLineComment}e.defineOption("continueComments",null,function(n,r,i){if(i&&i!=e.Init&&n.removeKeyMap("continueComment"),r){var o="Enter";"string"==typeof r?o=r:"object"==typeof r&&r.key&&(o=r.key);var a={name:"continueComment"};a[o]=t,n.addKeyMap(a)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/closebrackets.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:d[t]}function n(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";h[i]||(h[i]=r(n))}}function r(e){return function(t){return s(t,e)}}function i(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),a=n.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var s=c(n,a[l].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}for(var l=a.length-1;l>=0;l--){var u=a[l].head;n.replaceRange("",f(u.line,u.ch-1),f(u.line,u.ch+1),"+delete")}}function a(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var s=c(n,a[l].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),n.execCommand("goCharLeft"),a=n.listSelections();for(var t=0;t<a.length;t++){var r=a[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}})}function l(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new f(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new f(t.head.line,t.head.ch+(n?1:-1))}}function s(n,r){var o=i(n);if(!o||n.getOption("disableInput"))return e.Pass;var a=t(o,"pairs"),s=a.indexOf(r);if(-1==s)return e.Pass;for(var c,d=t(o,"closeBefore"),h=t(o,"triples"),m=a.charAt(s+1)==r,p=n.listSelections(),g=s%2==0,v=0;v<p.length;v++){var b,y=p[v],k=y.head,x=n.getRange(k,f(k.line,k.ch+1));if(g&&!y.empty())b="surround";else if(!m&&g||x!=r)if(m&&k.ch>1&&h.indexOf(r)>=0&&n.getRange(f(k.line,k.ch-2),k)==r+r){if(k.ch>2&&/\bstring/.test(n.getTokenTypeAt(f(k.line,k.ch-2))))return e.Pass;b="addFour"}else if(m){var w=0==k.ch?" ":n.getRange(f(k.line,k.ch-1),k);if(e.isWordChar(x)||w==r||e.isWordChar(w))return e.Pass;b="both"}else{if(!g||!(0===x.length||/\s/.test(x)||d.indexOf(x)>-1))return e.Pass;b="both"}else b=m&&u(n,k)?"both":h.indexOf(r)>=0&&n.getRange(k,f(k.line,k.ch+3))==r+r+r?"skipThree":"skip";if(c){if(c!=b)return e.Pass}else c=b}var C=s%2?a.charAt(s-1):r,O=s%2?r:a.charAt(s+1);n.operation(function(){if("skip"==c)n.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)n.execCommand("goCharRight");else if("surround"==c){for(var t=n.getSelections(),e=0;e<t.length;e++)t[e]=C+t[e]+O;n.replaceSelections(t,"around"),t=n.listSelections().slice();for(var e=0;e<t.length;e++)t[e]=l(t[e]);n.setSelections(t)}else"both"==c?(n.replaceSelection(C+O,null),n.triggerElectric(C+O),n.execCommand("goCharLeft")):"addFour"==c&&(n.replaceSelection(C+C+C+C,"before"),n.execCommand("goCharRight"))})}function c(e,t){var n=e.getRange(f(t.line,t.ch-1),f(t.line,t.ch+1));return 2==n.length?n:null}function u(e,t){var n=e.getTokenAt(f(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var d={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},f=e.Pos;e.defineOption("autoCloseBrackets",!1,function(r,i,o){o&&o!=e.Init&&(r.removeKeyMap(h),r.state.closeBrackets=null),i&&(n(t(i,"pairs")),r.state.closeBrackets=i,r.addKeyMap(h))});var h={Backspace:o,Enter:a};n(d.pairs+"`")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/xml-fold",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function n(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function r(e,t){var n=e.cm.getTokenTypeAt(f(e.line,t));return n&&/\btag\b/.test(n)}function i(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function o(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(i(e))continue;return}{if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),o=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}}function l(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(r(e,t+1)){m.lastIndex=t,e.ch=t;var n=m.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function s(e){for(;;){m.lastIndex=e.ch;var t=m.exec(e.text);if(!t){if(i(e))continue;return}{if(r(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}{if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}}function u(e,t){for(var n=[];;){var r,i=s(e),o=e.line,l=e.ch-(i?i[0].length:0);if(!i||!(r=a(e)))return;if("selfClose"!=r)if(i[1]){for(var c=n.length-1;c>=0;--c)if(n[c]==i[2]){n.length=c;break}if(c<0&&(!t||t==i[2]))return{tag:i[2],from:f(o,l),to:f(e.line,e.ch)}}else n.push(i[2])}}function d(e,t){for(var n=[];;){var r=c(e);if(!r)return;if("selfClose"!=r){var i=e.line,o=e.ch,a=l(e);if(!a)return;if(a[1])n.push(a[2]);else{for(var s=n.length-1;s>=0;--s)if(n[s]==a[2]){n.length=s;break}if(s<0&&(!t||t==a[2]))return{tag:a[2],from:f(e.line,e.ch),to:f(i,o)}}}else l(e)}}var f=e.Pos,h="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=new RegExp("<(/?)(["+h+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,r){for(var i=new n(e,r.line,0);;){var o=s(i);if(!o||i.line!=r.line)return;var l=a(i);if(!l)return;if(!o[1]&&"selfClose"!=l){var c=f(i.line,i.ch),d=u(i,o[2]);return d&&t(d.from,c)>0?{from:c,to:d.from}:null}}}),e.findMatchingTag=function(e,r,i){var o=new n(e,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=a(o),c=s&&f(o.line,o.ch),h=s&&l(o);if(s&&h&&!(t(o,r)>0)){var m={from:f(o.line,o.ch),to:c,tag:h[2]};return"selfClose"==s?{open:m,close:null,at:"open"}:h[1]?{open:d(o,h[2]),close:m,at:"close"}:(o=new n(e,c.line,c.ch,i),{open:m,close:u(o,h[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,r,i){for(var o=new n(e,t.line,t.ch,r);;){var a=d(o,i);if(!a)break;var l=new n(e,t.line,t.ch,r),s=u(l,a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,r,i){return u(new n(e,t.line,t.ch,i?{from:0,to:i}:null),r)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("addon/edit/closetag.js",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var n=t.listSelections(),r=[],s=t.getOption("autoCloseTags"),c=0;c<n.length;c++){if(!n[c].empty())return e.Pass;var u=n[c].head,d=t.getTokenAt(u),f=e.innerMode(t.getMode(),d.state),h=f.state;if("xml"!=f.mode.name||!h.tagName)return e.Pass;var m="html"==f.mode.configuration,p="object"==typeof s&&s.dontCloseTags||m&&a,g="object"==typeof s&&s.indentTags||m&&l,v=h.tagName;d.end>u.ch&&(v=v.slice(0,v.length-d.end+u.ch));var b=v.toLowerCase();if(!v||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&"closeTag"==h.type||d.string.indexOf("/")==d.string.length-1||p&&i(p,b)>-1||o(t,v,u,h,!0))return e.Pass;var y="object"==typeof s&&s.emptyTags;if(y&&i(y,v)>-1)r[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var k=g&&i(g,b)>-1;r[c]={indent:k,text:">"+(k?"\n\n":"")+"</"+v+">",newPos:k?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}for(var x="object"==typeof s&&s.dontIndentOnAutoClose,c=n.length-1;c>=0;c--){var w=r[c];t.replaceRange(w.text,n[c].head,n[c].anchor,"+insert");var C=t.listSelections().slice(0);C[c]={head:w.newPos,anchor:w.newPos},t.setSelections(C),!x&&w.indent&&(t.indentLine(w.newPos.line,null,!0),t.indentLine(w.newPos.line+1,null,!0))}}function n(t,n){for(var r=t.listSelections(),i=[],a=n?"/":"</",l=t.getOption("autoCloseTags"),s="object"==typeof l&&l.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return e.Pass;var u=r[c].head,d=t.getTokenAt(u),f=e.innerMode(t.getMode(),d.state),h=f.state;if(n&&("string"==d.type||"<"!=d.string.charAt(0)||d.start!=u.ch-1))return e.Pass;var m;if("xml"!=f.mode.name)if("htmlmixed"==t.getMode().name&&"javascript"==f.mode.name)m=a+"script";else{if("htmlmixed"!=t.getMode().name||"css"!=f.mode.name)return e.Pass;m=a+"style"}else{if(!h.context||!h.context.tagName||o(t,h.context.tagName,u,h))return e.Pass;m=a+h.context.tagName}">"!=t.getLine(u.line).charAt(d.end)&&(m+=">"),i[c]=m}if(t.replaceSelections(i),r=t.listSelections(),!s)for(var c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&t.indentLine(r[c].head.line)}function r(t){return t.getOption("disableInput")?e.Pass:n(t,!0)}function i(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;++n)if(e[n]==t)return n;return-1}function o(t,n,r,i,o){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,r.line+500),l=e.scanForClosingTag(t,r,null,a);if(!l||l.tag!=n)return!1;for(var s=i.context,c=o?1:0;s&&s.tagName==n;s=s.prev)++c;r=l.to;for(var u=1;u<c;u++){var d=e.scanForClosingTag(t,r,null,a);if(!d||d.tag!=n)return!1;r=d.to}return!0}e.defineOption("autoCloseTags",!1,function(n,i,o){if(o!=e.Init&&o&&n.removeKeyMap("autoCloseTags"),i){var a={name:"autoCloseTags"};("object"!=typeof i||i.whenClosing)&&(a["'/'"]=function(e){return r(e)}),("object"!=typeof i||i.whenOpening)&&(a["'>'"]=function(e){return t(e)}),n.addKeyMap(a)}});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],l=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];e.commands.closeTag=function(e){return n(e)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/matchbrackets.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){return e&&e.bracketRegex||/[(){}[\]]/}function n(e,n,i){var o=e.getLineHandle(n.line),a=n.ch-1,c=i&&i.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=t(i),d=!c&&a>=0&&u.test(o.text.charAt(a))&&s[o.text.charAt(a)]||u.test(o.text.charAt(a+1))&&s[o.text.charAt(++a)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(a==n.ch))return null;var h=e.getTokenTypeAt(l(n.line,a+1)),m=r(e,l(n.line,a+(f>0?1:0)),f,h||null,i);return null==m?null:{from:l(n.line,a),to:m&&m.pos,match:m&&m.ch==d.charAt(0),forward:f>0}}function r(e,n,r,i,o){for(var a=o&&o.maxScanLineLength||1e4,c=o&&o.maxScanLines||1e3,u=[],d=t(o),f=r>0?Math.min(n.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,n.line-c),h=n.line;h!=f;h+=r){var m=e.getLine(h);if(m){var p=r>0?0:m.length-1,g=r>0?m.length:-1;if(!(m.length>a))for(h==n.line&&(p=n.ch-(r<0?1:0));p!=g;p+=r){var v=m.charAt(p);if(d.test(v)&&(void 0===i||e.getTokenTypeAt(l(h,p+1))==i)){var b=s[v];if(b&&">"==b.charAt(1)==r>0)u.push(v);else{if(!u.length)return{pos:l(h,p),ch:v};u.pop()}}}}}return h-r!=(r>0?e.lastLine():e.firstLine())&&null}function i(e,t,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,o=[],s=e.listSelections(),c=0;c<s.length;c++){var u=s[c].empty()&&n(e,s[c].head,r);if(u&&e.getLine(u.from.line).length<=i){var d=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";o.push(e.markText(u.from,l(u.from.line,u.from.ch+1),{className:d})),u.to&&e.getLine(u.to.line).length<=i&&o.push(e.markText(u.to,l(u.to.line,u.to.ch+1),{className:d}))}}if(o.length){a&&e.state.focused&&e.focus();var f=function(){e.operation(function(){for(var e=0;e<o.length;e++)o[e].clear()})};if(!t)return f;setTimeout(f,800)}}function o(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=i(e,!1,e.state.matchBrackets)})}var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),l=e.Pos,s={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",o),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",o))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,r){return(r||"boolean"==typeof t)&&(r?(r.strict=t,t=r):t=t?{strict:!0}:null),n(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,i){return r(this,e,t,n,i)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("addon/edit/matchtags.js",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){"use strict";function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation(function(){if(t(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var o=e.findMatchingTag(n,r,i);if(o){if(n.state.matchBothTags){var a="open"==o.at?o.open:o.close;a&&(n.state.tagHit=n.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}))}var l="close"==o.at?o.open:o.close;l?n.state.tagOther=n.markText(l.from,l.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}})}function r(e){e.state.failedTagMatch&&n(e)}e.defineOption("matchTags",!1,function(i,o,a){a&&a!=e.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),t(i)),o&&(i.state.matchBothTags="object"==typeof o&&o.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))}),e.commands.toMatchingTag=function(t){var n=e.findMatchingTag(t,t.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&t.extendSelection(r.to,r.from)}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/edit/trailingspace.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineOption("showTrailingSpace",!1,function(t,n,r){r==e.Init&&(r=!1),r&&!n?t.removeOverlay("trailingspace"):!r&&n&&t.addOverlay({token:function(e){for(var t=e.string.length,n=t;n&&/\s/.test(e.string.charAt(n-1));--n);return n>e.pos?(e.pos=n,null):(e.pos=t,"trailingspace")},name:"trailingspace"})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/foldcode",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,i,o,a){function l(e){var n=s(t,i);if(!n||n.to.line-n.from.line<c)return null;for(var r=t.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold&&"fold"!==a){if(!e)return null;n.cleared=!0,r[o].clear()}return n}if(o&&o.call){var s=o;o=null}else var s=r(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var c=r(t,o,"minFoldSize"),u=l(!0);if(r(t,o,"scanUp"))for(;!u&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==a){var d=n(t,o);e.on(d,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(u.from,u.to,{replacedWith:d,clearOnEnter:r(t,o,"clearOnEnter"),__isFold:!0});f.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}function n(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);n=document.createElement("span"),n.appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}function r(e,t,n){if(t&&void 0!==t[n])return t[n];var r=e.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define("addon/fold/foldgutter.js",["../../lib/codemirror","./foldcode"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function r(e,t){for(var n=e.findMarks(d(t,0),d(t+1,0)),r=0;r<n.length;++r)if(n[r].__isFold&&n[r].find().from.line==t)return n[r]}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,t,n){var o=e.state.foldGutter.options,a=t,l=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder");e.eachLine(t,n,function(t){var n=null;if(r(e,a))n=i(o.indicatorFolded);else{var c=d(a,0),u=s&&s(e,c);u&&u.to.line-u.from.line>=l&&(n=i(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++a})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,t,n){var i=e.state.foldGutter;if(i){var o=i.options;if(n==o.gutter){var a=r(e,t);a?a.clear():e.foldCode(d(t,0),o.rangeFinder)}}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function u(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}e.defineOption("foldGutter",!1,function(r,i,o){o&&o!=e.Init&&(r.clearGutter(r.state.foldGutter.options.gutter),r.state.foldGutter=null,r.off("gutterClick",l),r.off("change",s),r.off("viewportChange",c),r.off("fold",u),r.off("unfold",u),r.off("swapDoc",s)),i&&(r.state.foldGutter=new t(n(i)),a(r),r.on("gutterClick",l),r.on("change",s),r.on("viewportChange",c),r.on("fold",u),r.on("unfold",u),r.on("swapDoc",s))});var d=e.Pos}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/brace-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.registerHelper("fold","brace",function(t,n){function r(r){for(var l=n.ch,s=0;;){var c=l<=0?-1:a.lastIndexOf(r,l-1);if(-1!=c){if(1==s&&c<n.ch)break;if(i=t.getTokenTypeAt(e.Pos(o,c+1)),!/^(comment|string)/.test(i))return c+1;l=c-1}else{if(1==s)break;s=1,l=a.length}}}var i,o=n.line,a=t.getLine(o),l="{",s="}",c=r("{");if(null==c&&(l="[",s="]",c=r("[")),null!=c){var u,d,f=1,h=t.lastLine();e:for(var m=o;m<=h;++m)for(var p=t.getLine(m),g=m==o?c:0;;){var v=p.indexOf(l,g),b=p.indexOf(s,g);if(v<0&&(v=p.length),b<0&&(b=p.length),(g=Math.min(v,b))==p.length)break;if(t.getTokenTypeAt(e.Pos(m,g+1))==i)if(g==v)++f;else if(!--f){u=m,d=g;break e}++g}if(null!=u&&o!=u)return{from:e.Pos(o,c),to:e.Pos(u,d)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i),l=a.indexOf(";");if(-1!=l)return{startCh:r.end,end:e.Pos(i,l)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var l=a.end;;){var s=r(l.line+1);if(null==s)break;l=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:l}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){if(null==r(a+1))break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/comment-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a,l=n.line,s=t.getLine(l),c=n.ch,u=0;;){var d=c<=0?-1:s.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(l,d+1)))&&(0==d||s.slice(d-o.length,d)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(l,d))))){a=d+i.length;break}c=d-1}else{if(1==u)return;u=1,c=s.length}}var f,h,m=1,p=t.lastLine();e:for(var g=l;g<=p;++g)for(var v=t.getLine(g),b=g==l?a:0;;){var y=v.indexOf(i,b),k=v.indexOf(o,b);if(y<0&&(y=v.length),k<0&&(k=v.length),(b=Math.min(y,k))==v.length)break;if(b==y)++m;else if(!--m){f=g,h=b;break e}++b}if(null!=f&&(l!=f||h!=a))return{from:e.Pos(l,a),to:e.Pos(f,h)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/fold/indent-fold.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(t,n){var r=t.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,i+1)))?-1:e.countColumn(r,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",function(n,r){var i=t(n,r.line);if(!(i<0)){for(var o=null,a=r.line+1,l=n.lastLine();a<=l;++a){var s=t(n,a);if(-1==s);else{if(!(s>i))break;o=a}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/hint/show-hint.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,t,n){var r=e.options.hintOptions,i={};for(var o in m)i[o]=m[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function r(e){return"string"==typeof e?e:e.text}function i(e,t){function n(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:r;if(i)for(var a in i)i.hasOwnProperty(a)&&n(a,i[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&n(a,l[a]);return o}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var a=this,l=t.cm,s=l.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,f=this.hints=s.createElement("ul"),h=t.cm.options.theme;f.className="CodeMirror-hints "+h,this.selectedHint=n.selectedHint||0;for(var m=n.list,p=0;p<m.length;++p){var g=f.appendChild(s.createElement("li")),v=m[p],b=u+(p!=this.selectedHint?"":" "+d);null!=v.className&&(b=v.className+" "+b),g.className=b,v.render?v.render(g,n,v):g.appendChild(s.createTextNode(v.displayText||r(v))),g.hintId=p}var y=l.cursorCoords(t.options.alignWithWord?n.from:null),k=y.left,x=y.bottom,w=!0;f.style.left=k+"px",f.style.top=x+"px";var C=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),O=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);(t.options.container||s.body).appendChild(f);var j=f.getBoundingClientRect(),A=j.bottom-O,M=f.scrollHeight>f.clientHeight+1,S=l.getScrollInfo();if(A>0){var T=j.bottom-j.top;if(y.top-(y.bottom-j.top)-T>0)f.style.top=(x=y.top-T)+"px",w=!1;else if(T>O){f.style.height=O-5+"px",f.style.top=(x=y.bottom-j.top)+"px";var L=l.getCursor();n.from.ch!=L.ch&&(y=l.cursorCoords(L),f.style.left=(k=y.left)+"px",j=f.getBoundingClientRect())}}var P=j.right-C;if(P>0&&(j.right-j.left>C&&(f.style.width=C-5+"px",P-=j.right-j.left-C),f.style.left=(k=y.left-P)+"px"),M)for(var F=f.firstChild;F;F=F.nextSibling)F.style.paddingRight=l.display.nativeBarWidth+"px";if(l.addKeyMap(this.keyMap=i(t,{moveFocus:function(e,t){a.changeActive(a.selectedHint+e,t)},setFocus:function(e){a.changeActive(e)},menuSize:function(){return a.screenAmount()},length:m.length,close:function(){t.close()},pick:function(){a.pick()},data:n})),t.options.closeOnUnfocus){var H;l.on("blur",this.onBlur=function(){H=setTimeout(function(){t.close()},100)}),l.on("focus",this.onFocus=function(){clearTimeout(H)})}return l.on("scroll",this.onScroll=function(){var e=l.getScrollInfo(),n=l.getWrapperElement().getBoundingClientRect(),r=x+S.top-e.top,i=r-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(w||(i+=f.offsetHeight),i<=n.top||i>=n.bottom)return t.close();f.style.top=r+"px",f.style.left=k+S.left-e.left+"px"}),e.on(f,"dblclick",function(e){var t=o(f,e.target||e.srcElement);t&&null!=t.hintId&&(a.changeActive(t.hintId),a.pick())}),e.on(f,"click",function(e){var n=o(f,e.target||e.srcElement);n&&null!=n.hintId&&(a.changeActive(n.hintId),t.options.completeOnSingleClick&&a.pick())}),e.on(f,"mousedown",function(){setTimeout(function(){l.focus()},20)}),e.signal(n,"select",m[this.selectedHint],f.childNodes[this.selectedHint]),!0}function l(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function c(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){function r(i){if(i==o.length)return t(null);s(o[i],e,n,function(e){e&&e.list.length>0?t(e):r(i+1)})}var o=l(e,i);r(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var u="CodeMirror-hint",d="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(r){r=n(this,this.getCursor("start"),r);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new t(this,r);a.options.hint&&(e.signal(this,"startCompletion",this),a.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var f=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},h=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(h(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line)
|
2
|
+
;if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=f(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+d,"")),r=this.hints.childNodes[this.selectedHint=t],r.className+=" "+d,r.offsetTop<this.hints.scrollTop?this.hints.scrollTop=r.offsetTop-3:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:c}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),l=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var s=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,r.length)==r&&s.push(u)}if(s.length)return{list:s,from:a,to:l}}),e.commands.autocomplete=e.showHint;var m={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/hint/javascript-hint.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){for(var n=0,r=e.length;n<r;++n)t(e[n])}function n(e,t){if(!Array.prototype.indexOf){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}function r(t,n,r,i){var o=t.getCursor(),a=r(t,o);if(!/\b(?:string|comment)\b/.test(a.type)){var l=e.innerMode(t.getMode(),a.state);if("json"!==l.mode.helperType){a.state=l.state,/^[\w$_]*$/.test(a.string)?a.end>o.ch&&(a.end=o.ch,a.string=a.string.slice(0,o.ch-a.start)):a={start:o.ch,end:o.ch,string:"",state:a.state,type:"."==a.string?"property":null};for(var u=a;"property"==u.type;){if(u=r(t,c(o.line,u.start)),"."!=u.string)return;if(u=r(t,c(o.line,u.start)),!d)var d=[];d.push(u)}return{list:s(a,d,n,i),from:c(o.line,a.start),to:c(o.line,a.end)}}}}function i(e,t){return r(e,h,function(e,t){return e.getTokenAt(t)},t)}function o(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function a(e,t){return r(e,m,o,t)}function l(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var r in e)t(r)}function s(e,r,i,o){function a(e){0!=e.lastIndexOf(h,0)||n(c,e)||c.push(e)}function s(e){"string"==typeof e?t(u,a):e instanceof Array?t(d,a):e instanceof Function&&t(f,a),l(e,a)}var c=[],h=e.string,m=o&&o.globalScope||window;if(r&&r.length){var p,g=r.pop();for(g.type&&0===g.type.indexOf("variable")?(o&&o.additionalContext&&(p=o.additionalContext[g.string]),o&&!1===o.useGlobalScope||(p=p||m[g.string])):"string"==g.type?p="":"atom"==g.type?p=1:"function"==g.type&&(null==m.jQuery||"$"!=g.string&&"jQuery"!=g.string||"function"!=typeof m.jQuery?null!=m._&&"_"==g.string&&"function"==typeof m._&&(p=m._()):p=m.jQuery());null!=p&&r.length;)p=p[r.pop().string];null!=p&&s(p)}else{for(var v=e.state.localVars;v;v=v.next)a(v.name);for(var v=e.state.globalVars;v;v=v.next)a(v.name);o&&!1===o.useGlobalScope||s(m),t(i,a)}return c}var c=e.Pos;e.registerHelper("hint","javascript",i),e.registerHelper("hint","coffeescript",a);var u="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),d="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),f="prototype apply call bind".split(" "),h="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),m="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}function n(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.defineMode("css",function(t,n){function r(e,t){return m=t,e}function i(e,t){var n=e.next();if(v[n]){var i=v[n](e,t);if(!1!==i)return i}return"@"==n?(e.eatWhile(/[\w\\\-]/),r("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?r(null,"compare"):'"'==n||"'"==n?(t.tokenize=o(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),r("atom","hash")):"!"==n?(e.match(/^\s*\w*/),r("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),r("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?r(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?r("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?r(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=a),r("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),r("property","word")):r(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),r("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?r("variable-2","variable-definition"):r("variable-2","variable")):e.match(/^\w+-/)?r("meta","meta"):void 0}function o(e){return function(t,n){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==i}return(i==e||!o&&")"!=e)&&(n.tokenize=null),r("string","string")}}function a(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),r(null,"(")}function l(e,t,n){this.type=e,this.indent=t,this.prev=n}function s(e,t,n,r){return e.context=new l(n,t.indentation()+(!1===r?0:g),e.context),n}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function u(e,t,n){return P[n.context.type](e,t,n)}function d(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return u(e,t,n)}function f(e){var t=e.current().toLowerCase();p=M.hasOwnProperty(t)?"atom":A.hasOwnProperty(t)?"keyword":"variable"}var h=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var m,p,g=t.indentUnit,v=n.tokenHooks,b=n.documentTypes||{},y=n.mediaTypes||{},k=n.mediaFeatures||{},x=n.mediaValueKeywords||{},w=n.propertyKeywords||{},C=n.nonStandardPropertyKeywords||{},O=n.fontProperties||{},j=n.counterDescriptors||{},A=n.colorKeywords||{},M=n.valueKeywords||{},S=n.allowNested,T=n.lineComment,L=!0===n.supportsAtComponent,P={};return P.top=function(e,t,n){if("{"==e)return s(n,t,"block");if("}"==e&&n.context.prev)return c(n);if(L&&/@component/i.test(e))return s(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(n,t,"at");if("hash"==e)p="builtin";else if("word"==e)p="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(n,t,"interpolation");if(":"==e)return"pseudo";if(S&&"("==e)return s(n,t,"parens")}return n.context.type},P.block=function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return w.hasOwnProperty(r)?(p="property","maybeprop"):C.hasOwnProperty(r)?(p="string-2","maybeprop"):S?(p=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(p+=" error","maybeprop")}return"meta"==e?"block":S||"hash"!=e&&"qualifier"!=e?P.top(e,t,n):(p="error","block")},P.maybeprop=function(e,t,n){return":"==e?s(n,t,"prop"):u(e,t,n)},P.prop=function(e,t,n){if(";"==e)return c(n);if("{"==e&&S)return s(n,t,"propBlock");if("}"==e||"{"==e)return d(e,t,n);if("("==e)return s(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)f(t);else if("interpolation"==e)return s(n,t,"interpolation")}else p+=" error";return"prop"},P.propBlock=function(e,t,n){return"}"==e?c(n):"word"==e?(p="property","maybeprop"):n.context.type},P.parens=function(e,t,n){return"{"==e||"}"==e?d(e,t,n):")"==e?c(n):"("==e?s(n,t,"parens"):"interpolation"==e?s(n,t,"interpolation"):("word"==e&&f(t),"parens")},P.pseudo=function(e,t,n){return"meta"==e?"pseudo":"word"==e?(p="variable-3",n.context.type):u(e,t,n)},P.documentTypes=function(e,t,n){return"word"==e&&b.hasOwnProperty(t.current())?(p="tag",n.context.type):P.atBlock(e,t,n)},P.atBlock=function(e,t,n){if("("==e)return s(n,t,"atBlock_parens");if("}"==e||";"==e)return d(e,t,n);if("{"==e)return c(n)&&s(n,t,S?"block":"top");if("interpolation"==e)return s(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();p="only"==r||"not"==r||"and"==r||"or"==r?"keyword":y.hasOwnProperty(r)?"attribute":k.hasOwnProperty(r)?"property":x.hasOwnProperty(r)?"keyword":w.hasOwnProperty(r)?"property":C.hasOwnProperty(r)?"string-2":M.hasOwnProperty(r)?"atom":A.hasOwnProperty(r)?"keyword":"error"}return n.context.type},P.atComponentBlock=function(e,t,n){return"}"==e?d(e,t,n):"{"==e?c(n)&&s(n,t,S?"block":"top",!1):("word"==e&&(p="error"),n.context.type)},P.atBlock_parens=function(e,t,n){return")"==e?c(n):"{"==e||"}"==e?d(e,t,n,2):P.atBlock(e,t,n)},P.restricted_atBlock_before=function(e,t,n){return"{"==e?s(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(p="variable","restricted_atBlock_before"):u(e,t,n)},P.restricted_atBlock=function(e,t,n){return"}"==e?(n.stateArg=null,c(n)):"word"==e?(p="@font-face"==n.stateArg&&!O.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,n){return"word"==e?(p="variable","keyframes"):"{"==e?s(n,t,"top"):u(e,t,n)},P.at=function(e,t,n){return";"==e?c(n):"{"==e||"}"==e?d(e,t,n):("word"==e?p="tag":"hash"==e&&(p="builtin"),"at")},P.interpolation=function(e,t,n){return"}"==e?c(n):"{"==e||";"==e?d(e,t,n):("word"==e?p="variable":"variable"!=e&&"("!=e&&")"!=e&&(p="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:h?"block":"top",stateArg:null,context:new l(h?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||i)(e,t);return n&&"object"==typeof n&&(m=n[1],n=n[0]),p=n,"comment"!=m&&(t.state=P[t.state](m,e,t)),p},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-g)):(n=n.prev,i=n.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:T,fold:"brace"}});var r=["domain","regexp","url","url-prefix"],i=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(c),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(d),h=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],m=t(h),p=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=t(p),v=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],b=t(v),y=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(y),x=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],w=t(x),C=r.concat(o).concat(l).concat(c).concat(d).concat(h).concat(y).concat(x);e.registerHelper("hintWords","css",C),e.defineMIME("text/css",{documentTypes:i,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:m,fontProperties:g,counterDescriptors:b,colorKeywords:k,valueKeywords:w,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:m,colorKeywords:k,valueKeywords:w,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:m,colorKeywords:k,valueKeywords:w,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:a,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:m,fontProperties:g,counterDescriptors:b,colorKeywords:k,valueKeywords:w,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../../mode/css/css")):"function"==typeof define&&define.amd?define("addon/hint/css-hint.js",["../../lib/codemirror","../../mode/css/css"],e):e(CodeMirror)}(function(e){"use strict";var t={link:1,visited:1,active:1,hover:1,focus:1,"first-letter":1,"first-line":1,"first-child":1,before:1,after:1,lang:1};e.registerHelper("hint","css",function(n){function r(e){for(var t in e)c&&0!=t.lastIndexOf(c,0)||d.push(t)}var i=n.getCursor(),o=n.getTokenAt(i),a=e.innerMode(n.getMode(),o.state);if("css"==a.mode.name){if("keyword"==o.type&&0=="!important".indexOf(o.string))return{list:["!important"],from:e.Pos(i.line,o.start),to:e.Pos(i.line,o.end)};var l=o.start,s=i.ch,c=o.string.slice(0,s-l);/[^\w$_-]/.test(c)&&(c="",l=s=i.ch);var u=e.resolveMode("text/css"),d=[],f=a.state.state;return"pseudo"==f||"variable-3"==o.type?r(t):"block"==f||"maybeprop"==f?r(u.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(r(u.valueKeywords),r(u.colorKeywords)):"media"!=f&&"media_parens"!=f||(r(u.mediaTypes),r(u.mediaFeatures)),d.length?{list:d,from:e.Pos(i.line,l),to:e.Pos(i.line,s)}:void 0}})}),function(e){
|
3
|
+
"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/hint/xml-hint",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n){return n?e.indexOf(t)>=0:0==e.lastIndexOf(t,0)}function n(n,i){var o=i&&i.schemaInfo,a=i&&i.quoteChar||'"',l=i&&i.matchInMiddle;if(o){var s=n.getCursor(),c=n.getTokenAt(s);c.end>s.ch&&(c.end=s.ch,c.string=c.string.slice(0,s.ch-c.start));var u=e.innerMode(n.getMode(),c.state);if("xml"==u.mode.name){var d,f,h=[],m=!1,p=/\btag\b/.test(c.type)&&!/>$/.test(c.string),g=p&&/^\w/.test(c.string);if(g){var v=n.getLine(s.line).slice(Math.max(0,c.start-2),c.start),b=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;b&&(f=c.start-("close"==b?2:1))}else p&&"<"==c.string?b="open":p&&"</"==c.string&&(b="close");if(!p&&!u.state.tagName||b){g&&(d=c.string),m=b;var y=u.state.context,k=y&&o[y.tagName],x=y?k&&k.children:o["!top"];if(x&&"close"!=b)for(var w=0;w<x.length;++w)d&&!t(x[w],d,l)||h.push("<"+x[w]);else if("close"!=b)for(var C in o)!o.hasOwnProperty(C)||"!top"==C||"!attrs"==C||d&&!t(C,d,l)||h.push("<"+C);y&&(!d||"close"==b&&t(y.tagName,d,l))&&h.push("</"+y.tagName+">")}else{var k=o[u.state.tagName],O=k&&k.attrs,j=o["!attrs"];if(!O&&!j)return;if(O){if(j){var A={};for(var M in j)j.hasOwnProperty(M)&&(A[M]=j[M]);for(var M in O)O.hasOwnProperty(M)&&(A[M]=O[M]);O=A}}else O=j;if("string"==c.type||"="==c.string){var S,v=n.getRange(r(s.line,Math.max(0,s.ch-60)),r(s.line,"string"==c.type?c.start:c.end)),T=v.match(/([^\s\u00a0=<>\"\']+)=$/);if(!T||!O.hasOwnProperty(T[1])||!(S=O[T[1]]))return;if("function"==typeof S&&(S=S.call(this,n)),"string"==c.type){d=c.string;var L=0;/['"]/.test(c.string.charAt(0))&&(a=c.string.charAt(0),d=c.string.slice(1),L++);var P=c.string.length;if(/['"]/.test(c.string.charAt(P-1))&&(a=c.string.charAt(P-1),d=c.string.substr(L,P-2)),L){var F=n.getLine(s.line);F.length>c.end&&F.charAt(c.end)==a&&c.end++}m=!0}for(var w=0;w<S.length;++w)d&&!t(S[w],d,l)||h.push(a+S[w]+a)}else{"attribute"==c.type&&(d=c.string,m=!0);for(var H in O)!O.hasOwnProperty(H)||d&&!t(H,d,l)||h.push(H)}}return{list:h,from:m?r(s.line,null==f?c.start:f):s,to:m?r(s.line,c.end):s}}}}var r=e.Pos;e.registerHelper("hint","xml",n)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./xml-hint")):"function"==typeof define&&define.amd?define("addon/hint/html-hint.js",["../../lib/codemirror","./xml-hint"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t in d)d.hasOwnProperty(t)&&(e.attrs[t]=d[t])}function n(t,n){var r={schemaInfo:u};if(n)for(var i in n)r[i]=n[i];return e.hint.xml(t,r)}var r="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),i=["_blank","_self","_top","_parent"],o=["ascii","utf-8","utf-16","latin1","latin1"],a=["get","post","put","delete"],l=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],s=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],c={attrs:{}},u={a:{attrs:{href:null,ping:null,type:null,media:s,target:i,hreflang:r}},abbr:c,acronym:c,address:c,applet:c,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:s,hreflang:r,type:null,shape:["default","rect","circle","poly"]}},article:c,aside:c,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:c,base:{attrs:{href:null,target:i}},basefont:c,bdi:c,bdo:c,big:c,blockquote:{attrs:{cite:null}},body:c,br:c,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:l,formmethod:a,formnovalidate:["","novalidate"],formtarget:i,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:c,center:c,cite:c,code:c,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:c,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:c,dir:c,div:c,dl:c,dt:c,em:c,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:c,figure:c,font:c,footer:c,form:{attrs:{action:null,name:null,"accept-charset":o,autocomplete:["on","off"],enctype:l,method:a,novalidate:["","novalidate"],target:i}},frame:c,frameset:c,h1:c,h2:c,h3:c,h4:c,h5:c,h6:c,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:c,hgroup:c,hr:c,html:{attrs:{manifest:null},children:["head","body"]},i:c,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:l,formmethod:a,formnovalidate:["","novalidate"],formtarget:i,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:c,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:c,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:r,media:s,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:c,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:o,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:c,noframes:c,noscript:c,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:c,param:{attrs:{name:null,value:null}},pre:c,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:c,rt:c,ruby:c,s:c,samp:c,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:o}},section:c,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:c,source:{attrs:{src:null,type:null,media:null}},span:c,strike:c,strong:c,style:{attrs:{type:["text/css"],media:s,scoped:null}},sub:c,summary:c,sup:c,table:c,tbody:c,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:c,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:c,time:{attrs:{datetime:null}},title:c,tr:c,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:r}},tt:c,u:c,ul:c,var:c,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:c},d={accesskey:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],autocorrect:["true","false"],autocapitalize:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};t(c);for(var f in u)u.hasOwnProperty(f)&&u[f]!=c&&t(u[f]);e.htmlSchema=u,e.registerHelper("hint","html",n)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/format/autoFormatAll.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineExtension("autoFormatAll",function(t,n){function r(){c+="\n",d=!0,++u}for(var i=this,o=i.getMode(),a=i.getRange(t,n).split("\n"),l=e.copyState(o,i.getTokenAt(t).state),s=i.getOption("tabSize"),c="",u=0,d=0==t.ch,f=0;f<a.length;++f){for(var h=new e.StringStream(a[f],s);!h.eol();){var m=e.innerMode(o,l),p=o.token(h,l),g=h.current();h.start=h.pos,d&&!/\S/.test(g)||(c+=g,d=!1),!d&&m.mode.newlineAfterToken&&m.mode.newlineAfterToken(p,g,h.string.slice(h.pos)||a[f+1]||"",m.state)&&r()}!h.pos&&o.blankLine&&o.blankLine(l),!d&&f<a.length-1&&r()}i.operation(function(){i.replaceRange(c,t,n);for(var e=t.line+1,r=t.line+u;e<=r;++e)i.indentLine(e,"smart");i.setCursor({line:0,ch:0})})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/format/formatting.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t=[/for\s*?\((.*?)\)/g,/&#?[a-z0-9]+;[\s\S]/g,/\"(.*?)((\")|$)/g,/\/\*(.*?)(\*\/|$)/g,/^\/\/.*/g],n=[],r=0;r<t.length;r++)for(var i=0;i<e.length;){var o=e.substr(i).match(t[r]);if(null==o)break;n.push({start:i+o.index,end:i+o.index+o[0].length}),i+=o.index+Math.max(1,o[0].length)}return n.sort(function(e,t){return e.start-t.start}),n}e.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,t){return/^[;{}]$/.test(t)}}),e.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(e){var n=0,r=this.jsonMode?function(e){return e.replace(/([,{])/g,"$1\n").replace(/}/g,"\n}")}:function(e){return e.replace(/(;|\{|\})([^\r\n;])/g,"$1\n$2")},i=t(e),o="";if(null!=i){for(var a=0;a<i.length;a++)i[a].start>n&&(o+=r(e.substring(n,i[a].start)),n=i[a].start),i[a].start<=n&&i[a].end>=n&&(o+=e.substring(n,i[a].end),n=i[a].end);n<e.length&&(o+=r(e.substr(n)))}else o=r(e);return o.replace(/^\n*|\n*$/,"")}});e.extendMode("xml",{commentStart:"\x3c!--",commentEnd:"--\x3e",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(e,t,n,r){var i="a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u",o="label|li|option|textarea|title|"+i,a=!1,l=null,s="";if(this.isXML="xml"==this.configuration,"comment"==e||/<!--/.test(n))return!1;if("tag"==e){if(0==t.indexOf("<")&&0==!t.indexOf("</")){this.tagType="open",l=t.match(/^<\s*?([\w]+?)$/i),this.tagName=null!=l?l[1]:"";var s=this.tagName.toLowerCase();-1!=("|"+o+"|").indexOf("|"+s+"|")&&(this.noBreak=!0)}if(0==t.indexOf(">")&&"open"==this.tagType){this.tagType="";var c=this.isXML?"[^<]*?":"";return RegExp("^"+c+"</s*?"+this.tagName+"s*?>","i").test(n)?(this.noBreak=!1,this.isXML||(this.tagName=""),!1):(a=this.noBreak,this.noBreak=!1,!a)}if(0==t.indexOf("</")&&(this.tagType="close",l=t.match(/^<\/\s*?([\w]+?)$/i),null!=l&&(s=l[1].toLowerCase()),-1!=("|"+i+"|").indexOf("|"+s+"|")&&(this.noBreak=!0)),0==t.indexOf(">")&&"close"==this.tagType)return this.tagType="",0==n.indexOf("<")&&(l=n.match(/^<\/?\s*?([\w]+?)(\s|>)/i),s=null!=l?l[1].toLowerCase():"",-1==("|"+o+"|").indexOf("|"+s+"|"))?(this.noBreak=!1,!0):(a=this.noBreak,this.noBreak=!1,!a)}return 0==n.indexOf("<")&&(this.noBreak=!1,this.isXML&&""!=this.tagName?(this.tagName="",!1):(l=n.match(/^<\/?\s*?([\w]+?)(\s|>)/i),s=null!=l?l[1].toLowerCase():"",-1==("|"+o+"|").indexOf("|"+s+"|")))}}),e.defineExtension("commentRange",function(t,n,r){var i=this,o=e.innerMode(i.getMode(),i.getTokenAt(n).state).mode;i.operation(function(){if(t)i.replaceRange(o.commentEnd,r),i.replaceRange(o.commentStart,n),i.setSelection(n,{line:r.line,ch:r.ch+o.commentStart.length+o.commentEnd.length}),n.line==r.line&&n.ch==r.ch&&i.setCursor(n.line,n.ch+o.commentStart.length);else{var e=i.getRange(n,r),a=e.indexOf(o.commentStart),l=e.lastIndexOf(o.commentEnd);a>-1&&l>-1&&l>a&&(e=e.substr(0,a)+e.substring(a+o.commentStart.length,l)+e.substr(l+o.commentEnd.length)),i.replaceRange(e,n,r),i.setSelection(n,{line:r.line,ch:r.ch-o.commentStart.length-o.commentEnd.length})}})}),e.defineExtension("autoIndentRange",function(e,t){var n=this;this.operation(function(){for(var r=e.line;r<=t.line;r++)n.indentLine(r,"smart")})}),e.defineExtension("autoFormatRange",function(t,n){function r(){c+="\n",d=!0,++u}for(var i=this,o=i.getMode(),a=i.getRange(t,n).split("\n"),l=e.copyState(o,i.getTokenAt(t).state),s=i.getOption("tabSize"),c="",u=0,d=0==t.ch,f=0;f<a.length;++f){for(var h=new e.StringStream(a[f],s);!h.eol();){var m=e.innerMode(o,l),p=o.token(h,l),g=h.current();h.start=h.pos,d&&!/\S/.test(g)||(c+=g,d=!1),!d&&m.mode.newlineAfterToken&&m.mode.newlineAfterToken(p,g,h.string.slice(h.pos)||a[f+1]||"",m.state)&&r()}!h.pos&&o.blankLine&&o.blankLine(l),!d&&f<a.length-1&&r()}i.operation(function(){i.replaceRange(c,t,n);for(var e=t.line+1,r=t.line+u;e<=r;++e)i.indentLine(e,"smart");i.setSelection(t,i.getCursor(!1))})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/selection/active-line.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",o),e.removeLineClass(e.state.activeLines[t],"background",a),e.removeLineClass(e.state.activeLines[t],"gutter",l)}function n(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function r(e,r){for(var i=[],s=0;s<r.length;s++){var c=r[s],u=e.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var d=e.getLineHandleVisualStart(c.head.line);i[i.length-1]!=d&&i.push(d)}}n(e.state.activeLines,i)||e.operation(function(){t(e);for(var n=0;n<i.length;n++)e.addLineClass(i[n],"wrap",o),e.addLineClass(i[n],"background",a),e.addLineClass(i[n],"gutter",l);e.state.activeLines=i})}function i(e,t){r(e,t.ranges)}var o="CodeMirror-activeline",a="CodeMirror-activeline-background",l="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(n,o,a){var l=a!=e.Init&&a;o!=l&&(l&&(n.off("beforeSelectionChange",i),t(n),delete n.state.activeLines),o&&(n.state.activeLines=[],r(n,n.listSelections()),n.on("beforeSelectionChange",i)))})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/search/searchcursor",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function n(e,n){for(var r=t(e),i=r,o=0;o<n.length;o++)-1==i.indexOf(n.charAt(o))&&(i+=n.charAt(o));return r==i?e:new RegExp(e.source,i)}function r(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function i(e,t,r){t=n(t,"g");for(var i=r.line,o=r.ch,a=e.lastLine();i<=a;i++,o=0){t.lastIndex=o;var l=e.getLine(i),s=t.exec(l);if(s)return{from:p(i,s.index),to:p(i,s.index+s[0].length),match:s}}}function o(e,t,o){if(!r(t))return i(e,t,o);t=n(t,"gm");for(var a,l=1,s=o.line,c=e.lastLine();s<=c;){for(var u=0;u<l&&!(s>c);u++){var d=e.getLine(s++);a=null==a?d:a+"\n"+d}l*=2,t.lastIndex=o.ch;var f=t.exec(a);if(f){var h=a.slice(0,f.index).split("\n"),m=f[0].split("\n"),g=o.line+h.length-1,v=h[h.length-1].length;return{from:p(g,v),to:p(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:f}}}}function a(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if(n=i,(r=n.index+(n[0].length||1))==e.length)return n}}function l(e,t,r){t=n(t,"g");for(var i=r.line,o=r.ch,l=e.firstLine();i>=l;i--,o=-1){var s=e.getLine(i);o>-1&&(s=s.slice(0,o));var c=a(s,t);if(c)return{from:p(i,c.index),to:p(i,c.index+c[0].length),match:c}}}function s(e,t,r){t=n(t,"gm");for(var i,o=1,l=r.line,s=e.firstLine();l>=s;){for(var c=0;c<o;c++){var u=e.getLine(l--);i=null==i?u.slice(0,r.ch):u+"\n"+i}o*=2;var d=a(i,t);if(d){var f=i.slice(0,d.index).split("\n"),h=d[0].split("\n"),m=l+f.length,g=f[f.length-1].length;return{from:p(m,g),to:p(m+h.length-1,1==h.length?g+h[0].length:h[h.length-1].length),match:d}}}}function c(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,l=r(e.slice(0,a)).length;if(l==n)return a;l>n?o=a:i=a+1}}function u(e,t,n,r){if(!t.length)return null;var i=r?h:m,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,l=n.ch,s=e.lastLine()+1-o.length;a<=s;a++,l=0){var u=e.getLine(a).slice(l),d=i(u);if(1==o.length){var f=d.indexOf(o[0]);if(-1==f)continue e;var n=c(u,d,f,i)+l;return{from:p(a,c(u,d,f,i)+l),to:p(a,c(u,d,f+o[0].length,i)+l)}}var g=d.length-o[0].length;if(d.slice(g)==o[0]){for(var v=1;v<o.length-1;v++)if(i(e.getLine(a+v))!=o[v])continue e;var b=e.getLine(a+o.length-1),y=i(b),k=o[o.length-1];if(y.slice(0,k.length)==k)return{from:p(a,c(u,d,g,i)+l),to:p(a+o.length-1,c(b,y,k.length,i))}}}}function d(e,t,n,r){if(!t.length)return null;var i=r?h:m,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,l=n.ch,s=e.firstLine()-1+o.length;a>=s;a--,l=-1){var u=e.getLine(a);l>-1&&(u=u.slice(0,l));var d=i(u);if(1==o.length){var f=d.lastIndexOf(o[0]);if(-1==f)continue e;return{from:p(a,c(u,d,f,i)),to:p(a,c(u,d,f+o[0].length,i))}}var g=o[o.length-1];if(d.slice(0,g.length)==g){for(var v=1,n=a-o.length+1;v<o.length-1;v++)if(i(e.getLine(n+v))!=o[v])continue e;var b=e.getLine(a+1-o.length),y=i(b);if(y.slice(y.length-o[0].length)==o[0])return{from:p(a+1-o.length,c(b,y,b.length-o[0].length,i)),to:p(a,c(u,d,g.length,i))}}}}function f(e,t,r,a){this.atOccurrence=!1,this.doc=e,r=r?e.clipPos(r):p(0,0),this.pos={from:r,to:r};var c;"object"==typeof a?c=a.caseFold:(c=a,a=null),"string"==typeof t?(null==c&&(c=!1),this.matches=function(n,r){return(n?d:u)(e,t,r,c)}):(t=n(t,"gm"),a&&!1===a.multiline?this.matches=function(n,r){return(n?l:i)(e,t,r)}:this.matches=function(n,r){return(n?s:o)(e,t,r)})}var h,m,p=e.Pos;String.prototype.normalize?(h=function(e){return e.normalize("NFD").toLowerCase()},m=function(e){return e.normalize("NFD")}):(h=function(e){return e.toLowerCase()},m=function(e){return e}),f.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=p(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(p(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=p(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,p(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var r=p(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:r,to:r},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=p(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new f(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new f(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/scroll/annotatescrollbar",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout(function(){r.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout(function(){r.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("change",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){function t(e,t){return s!=e.line&&(s=e.line,c=n.getLineHandle(s)),c.widgets&&c.widgets.length||a&&c.height>l?n.charCoords(e,"local")[t?"top":"bottom"]:n.heightAtLine(c,"local")+(t?0:c.height)}!1!==e&&this.computeScale();var n=this.cm,r=this.hScale,i=document.createDocumentFragment(),o=this.annotations,a=n.getOption("lineWrapping"),l=a&&1.5*n.defaultTextHeight(),s=null,c=null,u=n.lastLine();if(n.display.barWidth)for(var d,f=0;f<o.length;f++){var h=o[f];if(!(h.to.line>u)){for(var m=d||t(h.from,!0)*r,p=t(h.to,!1)*r;f<o.length-1&&!(o[f+1].to.line>u)&&!((d=t(o[f+1].from,!0)*r)>p+.9);)h=o[++f],p=t(h.to,!1)*r;if(p!=m){var g=Math.max(p-m,3),v=i.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(n.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+g+"px",v.className=this.options.className,h.id&&v.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define("addon/search/matchesonscrollbar",["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var n=this.matches[t];if(n.from.line>=this.gap.to)break;n.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||1e3;r.findNext();){var n={from:r.from(),to:r.to()};if(n.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,n),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;a<this.matches.length;a++){var l=this.matches[a],s=n(l.from.line,r,o);s!=l.from.line&&(l.from=e.Pos(s,l.from.ch));var c=n(l.to.line,r,o);c!=l.to.line&&(l.to=e.Pos(c,l.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout(function(){u.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./matchesonscrollbar")):"function"==typeof define&&define.amd?define("addon/search/match-highlighter.js",["../../lib/codemirror","./matchesonscrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options={};for(var t in d)this.options[t]=(e&&e.hasOwnProperty(t)?e:d)[t];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function n(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&i(e,t)}function r(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,i(e,t))}function i(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay)}function o(e,t,n,r){var i=e.state.matchHighlighter;if(e.addOverlay(i.overlay=u(t,n,r)),i.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp("\\b"+t.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+"\\b"):t;i.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function l(e){e.operation(function(){var t=e.state.matchHighlighter;if(a(e),!e.somethingSelected()&&t.options.showToken){for(var n=!0===t.options.showToken?/[\w$]/:t.options.showToken,r=e.getCursor(),i=e.getLine(r.line),l=r.ch,c=l;l&&n.test(i.charAt(l-1));)--l;for(;c<i.length&&n.test(i.charAt(c));)++c;return void(l<c&&o(e,i.slice(l,c),n,t.options.style))}var u=e.getCursor("from"),d=e.getCursor("to");if(u.line==d.line&&(!t.options.wordsOnly||s(e,u,d))){var f=e.getRange(u,d);t.options.trim&&(f=f.replace(/^\s+|\s+$/g,"")),f.length>=t.options.minChars&&o(e,f,!1,t.options.style)}})}function s(e,t,n){if(null!==e.getRange(t,n).match(/^\w+$/)){if(t.ch>0){var r={line:t.line,ch:t.ch-1},i=e.getRange(r,t);if(null===i.match(/\W/))return!1}if(n.ch<e.getLine(t.line).length){var r={line:n.line,ch:n.ch+1},i=e.getRange(n,r);if(null===i.match(/\W/))return!1}return!0}return!1}function c(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}function u(e,t,n){return{token:function(r){if(r.match(e)&&(!t||c(r,t)))return n;r.next(),r.skipTo(e.charAt(0))||r.skipToEnd()}}}var d={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};e.defineOption("highlightSelectionMatches",!1,function(i,o,s){if(s&&s!=e.Init&&(a(i),clearTimeout(i.state.matchHighlighter.timeout),i.state.matchHighlighter=null,i.off("cursorActivity",n),i.off("focus",r)),o){var c=i.state.matchHighlighter=new t(o);i.hasFocus()?(c.active=!0,l(i)):i.on("focus",r),i.on("cursorActivity",n)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.multiplexingMode=function(t){function n(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var a=o.innerActive,l=i.string;if(!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);var s=a.close?n(l,a.close,i.pos,a.parseDelimiters):-1;if(s==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";s>-1&&(i.string=l.slice(0,s));var c=a.mode.token(i,o.inner);return s>-1&&(i.string=l),s==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(c=c?c+" "+a.innerStyle:a.innerStyle),c}for(var u=1/0,l=i.string,d=0;d<r.length;++d){var f=r[d],s=n(l,f.open,i.pos);if(s==i.pos){f.parseDelimiters||i.match(f.open),o.innerActive=f;var h=0;if(t.indent){var m=t.indent(o.outer,"","");m!==e.Pass&&(h=m)}return o.inner=e.startState(f.mode,h),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=s&&s<u&&(u=s)}u!=1/0&&(i.string=l.slice(0,u));var p=t.token(i,o.outer);return u!=1/0&&(i.string=l),p},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(n){var i=n.innerActive?n.innerActive.mode:t;if(i.blankLine&&i.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var o=0;o<r.length;++o){var a=r[o];"\n"===a.open&&(n.innerActive=a,n.inner=e.startState(a.mode,i.indent?i.indent(n.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){
|
4
|
+
"function"==typeof e.define&&e.define("addons",["addon/comment/continuecomment.js","addon/edit/closebrackets.js","addon/edit/closetag.js","addon/edit/matchbrackets.js","addon/edit/matchtags.js","addon/edit/trailingspace.js","addon/fold/foldgutter.js","addon/fold/brace-fold.js","addon/fold/comment-fold.js","addon/fold/indent-fold.js","addon/hint/show-hint.js","addon/hint/javascript-hint.js","addon/hint/css-hint.js","addon/hint/xml-hint.js","addon/hint/html-hint.js","addon/format/autoFormatAll.js","addon/format/formatting.js","addon/selection/active-line.js","addon/search/match-highlighter.js","addon/mode/multiplex.js"],function(){})}(this);
|
data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/search/searchcursor",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function n(e){var n=e.flags;return null!=n?n:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function t(e,t){for(var o=n(e),r=o,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return o==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function r(e,n,o){n=t(n,"g");for(var r=o.line,i=o.ch,s=e.lastLine();r<=s;r++,i=0){n.lastIndex=i;var l=e.getLine(r),c=n.exec(l);if(c)return{from:g(r,c.index),to:g(r,c.index+c[0].length),match:c}}}function i(e,n,i){if(!o(n))return r(e,n,i);n=t(n,"gm");for(var s,l=1,c=i.line,a=e.lastLine();c<=a;){for(var u=0;u<l&&!(c>a);u++){var f=e.getLine(c++);s=null==s?f:s+"\n"+f}l*=2,n.lastIndex=i.ch;var h=n.exec(s);if(h){var d=s.slice(0,h.index).split("\n"),p=h[0].split("\n"),m=i.line+d.length-1,v=d[d.length-1].length;return{from:g(m,v),to:g(m+p.length-1,1==p.length?v+p[0].length:p[p.length-1].length),match:h}}}}function s(e,n){for(var t,o=0;;){n.lastIndex=o;var r=n.exec(e);if(!r)return t;if(t=r,(o=t.index+(t[0].length||1))==e.length)return t}}function l(e,n,o){n=t(n,"g");for(var r=o.line,i=o.ch,l=e.firstLine();r>=l;r--,i=-1){var c=e.getLine(r);i>-1&&(c=c.slice(0,i));var a=s(c,n);if(a)return{from:g(r,a.index),to:g(r,a.index+a[0].length),match:a}}}function c(e,n,o){n=t(n,"gm");for(var r,i=1,l=o.line,c=e.firstLine();l>=c;){for(var a=0;a<i;a++){var u=e.getLine(l--);r=null==r?u.slice(0,o.ch):u+"\n"+r}i*=2;var f=s(r,n);if(f){var h=r.slice(0,f.index).split("\n"),d=f[0].split("\n"),p=l+h.length,m=h[h.length-1].length;return{from:g(p,m),to:g(p+d.length-1,1==d.length?m+d[0].length:d[d.length-1].length),match:f}}}}function a(e,n,t,o){if(e.length==n.length)return t;for(var r=0,i=t+Math.max(0,e.length-n.length);;){if(r==i)return r;var s=r+i>>1,l=o(e.slice(0,s)).length;if(l==t)return s;l>t?i=s:r=s+1}}function u(e,n,t,o){if(!n.length)return null;var r=o?d:p,i=r(n).split(/\r|\n\r?/);e:for(var s=t.line,l=t.ch,c=e.lastLine()+1-i.length;s<=c;s++,l=0){var u=e.getLine(s).slice(l),f=r(u);if(1==i.length){var h=f.indexOf(i[0]);if(-1==h)continue e;var t=a(u,f,h,r)+l;return{from:g(s,a(u,f,h,r)+l),to:g(s,a(u,f,h+i[0].length,r)+l)}}var m=f.length-i[0].length;if(f.slice(m)==i[0]){for(var v=1;v<i.length-1;v++)if(r(e.getLine(s+v))!=i[v])continue e;var y=e.getLine(s+i.length-1),x=r(y),C=i[i.length-1];if(x.slice(0,C.length)==C)return{from:g(s,a(u,f,m,r)+l),to:g(s+i.length-1,a(y,x,C.length,r))}}}}function f(e,n,t,o){if(!n.length)return null;var r=o?d:p,i=r(n).split(/\r|\n\r?/);e:for(var s=t.line,l=t.ch,c=e.firstLine()-1+i.length;s>=c;s--,l=-1){var u=e.getLine(s);l>-1&&(u=u.slice(0,l));var f=r(u);if(1==i.length){var h=f.lastIndexOf(i[0]);if(-1==h)continue e;return{from:g(s,a(u,f,h,r)),to:g(s,a(u,f,h+i[0].length,r))}}var m=i[i.length-1];if(f.slice(0,m.length)==m){for(var v=1,t=s-i.length+1;v<i.length-1;v++)if(r(e.getLine(t+v))!=i[v])continue e;var y=e.getLine(s+1-i.length),x=r(y);if(x.slice(x.length-i[0].length)==i[0])return{from:g(s+1-i.length,a(y,x,y.length-i[0].length,r)),to:g(s,a(u,f,m.length,r))}}}}function h(e,n,o,s){this.atOccurrence=!1,this.doc=e,o=o?e.clipPos(o):g(0,0),this.pos={from:o,to:o};var a;"object"==typeof s?a=s.caseFold:(a=s,s=null),"string"==typeof n?(null==a&&(a=!1),this.matches=function(t,o){return(t?f:u)(e,n,o,a)}):(n=t(n,"gm"),s&&!1===s.multiline?this.matches=function(t,o){return(t?l:r)(e,n,o)}:this.matches=function(t,o){return(t?c:i)(e,n,o)})}var d,p,g=e.Pos;String.prototype.normalize?(d=function(e){return e.normalize("NFD").toLowerCase()},p=function(e){return e.normalize("NFD")}):(d=function(e){return e.toLowerCase()},p=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){for(var t=this.matches(n,this.doc.clipPos(n?this.pos.from:this.pos.to));t&&0==e.cmpPos(t.from,t.to);)n?t.from.ch?t.from=g(t.from.line,t.from.ch-1):t=t.from.line==this.doc.firstLine()?null:this.matches(n,this.doc.clipPos(g(t.from.line-1))):t.to.ch<this.doc.getLine(t.to.line).length?t.to=g(t.to.line,t.to.ch+1):t=t.to.line==this.doc.lastLine()?null:this.matches(n,g(t.to.line+1,0));if(t)return this.pos=t,this.atOccurrence=!0,this.pos.match||!0;var o=g(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,t){if(this.atOccurrence){var o=e.splitLines(n);this.doc.replaceRange(o,this.pos.from,this.pos.to,t),this.pos.to=g(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,n,t){return new h(this.doc,e,n,t)}),e.defineDocExtension("getSearchCursor",function(e,n,t){return new h(this,e,n,t)}),e.defineExtension("selectMatches",function(n,t){for(var o=[],r=this.getSearchCursor(n,this.getCursor("from"),t);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)o.push({anchor:r.from(),head:r.to()});o.length&&this.setSelections(o,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/dialog/dialog",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function n(n,t,o){var r,i=n.getWrapperElement();return r=i.appendChild(document.createElement("div")),r.className=o?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",function(o,r,i){function s(n){if("string"==typeof n)f.value=n;else{if(a)return;a=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),u.focus(),i.onClose&&i.onClose(c)}}i||(i={}),t(this,null);var l,c=n(this,o,i.bottom),a=!1,u=this,f=c.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",function(e){i.onInput(e,f.value,s)}),i.onKeyUp&&e.on(f,"keyup",function(e){i.onKeyUp(e,f.value,s)}),e.on(f,"keydown",function(n){i&&i.onKeyDown&&i.onKeyDown(n,f.value,s)||((27==n.keyCode||!1!==i.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),s()),13==n.keyCode&&r(f.value,n))}),!1!==i.closeOnBlur&&e.on(f,"blur",s)):(l=c.getElementsByTagName("button")[0])&&(e.on(l,"click",function(){s(),u.focus()}),!1!==i.closeOnBlur&&e.on(l,"blur",s),l.focus()),s}),e.defineExtension("openConfirm",function(o,r,i){function s(){a||(a=!0,e.rmClass(l.parentNode,"dialog-opened"),l.parentNode.removeChild(l),u.focus())}t(this,null);var l=n(this,o,i&&i.bottom),c=l.getElementsByTagName("button"),a=!1,u=this,f=1;c[0].focus();for(var h=0;h<c.length;++h){var d=c[h];!function(n){e.on(d,"click",function(t){e.e_preventDefault(t),s(),n&&n(u)})}(r[h]),e.on(d,"blur",function(){--f,setTimeout(function(){f<=0&&s()},200)}),e.on(d,"focus",function(){++f})}}),e.defineExtension("openNotification",function(o,r){function i(){c||(c=!0,clearTimeout(s),e.rmClass(l.parentNode,"dialog-opened"),l.parentNode.removeChild(l))}t(this,i);var s,l=n(this,o,r&&r.bottom),c=!1,a=r&&void 0!==r.duration?r.duration:5e3;return e.on(l,"click",function(n){e.e_preventDefault(n),i()}),a&&(s=setTimeout(i,a)),i})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define("addon/search/search.js",["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function n(e,n){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(n){e.lastIndex=n.pos;var t=e.exec(n.string);if(t&&t.index==n.pos)return n.pos+=t[0].length||1,"searching";t?n.pos=t.index:n.skipToEnd()}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,n,t){return e.getSearchCursor(n,t,{caseFold:r(n),multiline:!0})}function s(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:r})}function l(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0}):r(prompt(t,o))}function c(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function a(e){return e.replace(/\\(.)/g,function(e,n){return"n"==n?"\n":"r"==n?"\r":n})}function u(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],-1==n[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,o){t.queryText=o,t.query=u(o),e.removeOverlay(t.overlay,r(t.query)),t.overlay=n(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function h(n,t,r,i){var c=o(n);if(c.query)return d(n,t);var a=n.getSelection()||c.lastQuery;if(a instanceof RegExp&&"x^"==a.source&&(a=null),r&&n.openDialog){var u=null,h=function(t,o){e.e_stop(o),t&&(t!=c.queryText&&(f(n,c,t),c.posFrom=c.posTo=n.getCursor()),u&&(u.style.opacity=1),d(n,o.shiftKey,function(e,t){var o;t.line<3&&document.querySelector&&(o=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&o.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((u=o).style.opacity=.4)}))};s(n,v,a,h,function(t,r){var i=e.keyName(t),s=n.getOption("extraKeys"),l=s&&s[i]||e.keyMap[n.getOption("keyMap")][i];"findNext"==l||"findPrev"==l||"findPersistentNext"==l||"findPersistentPrev"==l?(e.e_stop(t),f(n,o(n),r),n.execCommand(l)):"find"!=l&&"findPersistent"!=l||(e.e_stop(t),h(r,t))}),i&&a&&(f(n,c,a),d(n,t))}else l(n,v,"Search for:",a,function(e){e&&!c.query&&n.operation(function(){f(n,c,e),c.posFrom=c.posTo=n.getCursor(),d(n,t)})})}function d(n,t,r){n.operation(function(){var s=o(n),l=i(n,s.query,t?s.posFrom:s.posTo);(l.find(t)||(l=i(n,s.query,t?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0)),l.find(t)))&&(n.setSelection(l.from(),l.to()),n.scrollIntoView({from:l.from(),to:l.to()},20),s.posFrom=l.from(),s.posTo=l.to(),r&&r(l.from(),l.to()))})}function p(e){e.operation(function(){var n=o(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}function g(e,n,t){e.operation(function(){for(var o=i(e,n);o.findNext();)if("string"!=typeof n){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,function(e,n){return r[n]}))}else o.replace(t)})}function m(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||o(e).lastQuery,r='<span class="CodeMirror-search-label">'+(n?"Replace all:":"Replace:")+"</span>";l(e,r+y,r,t,function(t){t&&(t=u(t),l(e,x,"Replace with:","",function(o){if(o=a(o),n)g(e,t,o);else{p(e);var r=i(e,t,e.getCursor("from")),s=function(){var n,a=r.from();!(n=r.findNext())&&(r=i(e,t),!(n=r.findNext())||a&&r.from().line==a.line&&r.from().ch==a.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),c(e,C,"Replace?",[function(){l(n)},s,function(){g(e,t,o)}]))},l=function(e){r.replace("string"==typeof t?o:o.replace(/\$(\d)/g,function(n,t){return e[t]})),s()};s()}}))})}}var v='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',x='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',C='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';e.commands.find=function(e){p(e),h(e)},e.commands.findPersistent=function(e){p(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=p,e.commands.replace=m,e.commands.replaceAll=function(e){m(e,!0)}}),function(e){"function"==typeof e.define&&e.define("addonSearch",["addon/search/search.js"],function(){})}(this);
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/search/searchcursor",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function n(e){var n=e.flags;return null!=n?n:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function t(e,t){for(var o=n(e),r=o,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return o==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function r(e,n,o){n=t(n,"g");for(var r=o.line,i=o.ch,s=e.lastLine();r<=s;r++,i=0){n.lastIndex=i;var a=e.getLine(r),l=n.exec(a);if(l)return{from:g(r,l.index),to:g(r,l.index+l[0].length),match:l}}}function i(e,n,i){if(!o(n))return r(e,n,i);n=t(n,"gm");for(var s,a=1,l=i.line,c=e.lastLine();l<=c;){for(var u=0;u<a&&!(l>c);u++){var f=e.getLine(l++);s=null==s?f:s+"\n"+f}a*=2,n.lastIndex=i.ch;var h=n.exec(s);if(h){var p=s.slice(0,h.index).split("\n"),d=h[0].split("\n"),m=i.line+p.length-1,v=p[p.length-1].length;return{from:g(m,v),to:g(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:h}}}}function s(e,n){for(var t,o=0;;){n.lastIndex=o;var r=n.exec(e);if(!r)return t;if(t=r,(o=t.index+(t[0].length||1))==e.length)return t}}function a(e,n,o){n=t(n,"g");for(var r=o.line,i=o.ch,a=e.firstLine();r>=a;r--,i=-1){var l=e.getLine(r);i>-1&&(l=l.slice(0,i));var c=s(l,n);if(c)return{from:g(r,c.index),to:g(r,c.index+c[0].length),match:c}}}function l(e,n,o){n=t(n,"gm");for(var r,i=1,a=o.line,l=e.firstLine();a>=l;){for(var c=0;c<i;c++){var u=e.getLine(a--);r=null==r?u.slice(0,o.ch):u+"\n"+r}i*=2;var f=s(r,n);if(f){var h=r.slice(0,f.index).split("\n"),p=f[0].split("\n"),d=a+h.length,m=h[h.length-1].length;return{from:g(d,m),to:g(d+p.length-1,1==p.length?m+p[0].length:p[p.length-1].length),match:f}}}}function c(e,n,t,o){if(e.length==n.length)return t;for(var r=0,i=t+Math.max(0,e.length-n.length);;){if(r==i)return r;var s=r+i>>1,a=o(e.slice(0,s)).length;if(a==t)return s;a>t?i=s:r=s+1}}function u(e,n,t,o){if(!n.length)return null;var r=o?p:d,i=r(n).split(/\r|\n\r?/);e:for(var s=t.line,a=t.ch,l=e.lastLine()+1-i.length;s<=l;s++,a=0){var u=e.getLine(s).slice(a),f=r(u);if(1==i.length){var h=f.indexOf(i[0]);if(-1==h)continue e;var t=c(u,f,h,r)+a;return{from:g(s,c(u,f,h,r)+a),to:g(s,c(u,f,h+i[0].length,r)+a)}}var m=f.length-i[0].length;if(f.slice(m)==i[0]){for(var v=1;v<i.length-1;v++)if(r(e.getLine(s+v))!=i[v])continue e;var y=e.getLine(s+i.length-1),x=r(y),C=i[i.length-1];if(x.slice(0,C.length)==C)return{from:g(s,c(u,f,m,r)+a),to:g(s+i.length-1,c(y,x,C.length,r))}}}}function f(e,n,t,o){if(!n.length)return null;var r=o?p:d,i=r(n).split(/\r|\n\r?/);e:for(var s=t.line,a=t.ch,l=e.firstLine()-1+i.length;s>=l;s--,a=-1){var u=e.getLine(s);a>-1&&(u=u.slice(0,a));var f=r(u);if(1==i.length){var h=f.lastIndexOf(i[0]);if(-1==h)continue e;return{from:g(s,c(u,f,h,r)),to:g(s,c(u,f,h+i[0].length,r))}}var m=i[i.length-1];if(f.slice(0,m.length)==m){for(var v=1,t=s-i.length+1;v<i.length-1;v++)if(r(e.getLine(t+v))!=i[v])continue e;var y=e.getLine(s+1-i.length),x=r(y);if(x.slice(x.length-i[0].length)==i[0])return{from:g(s+1-i.length,c(y,x,y.length-i[0].length,r)),to:g(s,c(u,f,m.length,r))}}}}function h(e,n,o,s){this.atOccurrence=!1,this.doc=e,o=o?e.clipPos(o):g(0,0),this.pos={from:o,to:o};var c;"object"==typeof s?c=s.caseFold:(c=s,s=null),"string"==typeof n?(null==c&&(c=!1),this.matches=function(t,o){return(t?f:u)(e,n,o,c)}):(n=t(n,"gm"),s&&!1===s.multiline?this.matches=function(t,o){return(t?a:r)(e,n,o)}:this.matches=function(t,o){return(t?l:i)(e,n,o)})}var p,d,g=e.Pos;String.prototype.normalize?(p=function(e){return e.normalize("NFD").toLowerCase()},d=function(e){return e.normalize("NFD")}):(p=function(e){return e.toLowerCase()},d=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){for(var t=this.matches(n,this.doc.clipPos(n?this.pos.from:this.pos.to));t&&0==e.cmpPos(t.from,t.to);)n?t.from.ch?t.from=g(t.from.line,t.from.ch-1):t=t.from.line==this.doc.firstLine()?null:this.matches(n,this.doc.clipPos(g(t.from.line-1))):t.to.ch<this.doc.getLine(t.to.line).length?t.to=g(t.to.line,t.to.ch+1):t=t.to.line==this.doc.lastLine()?null:this.matches(n,g(t.to.line+1,0));if(t)return this.pos=t,this.atOccurrence=!0,this.pos.match||!0;var o=g(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,t){if(this.atOccurrence){var o=e.splitLines(n);this.doc.replaceRange(o,this.pos.from,this.pos.to,t),this.pos.to=g(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,n,t){return new h(this.doc,e,n,t)}),e.defineDocExtension("getSearchCursor",function(e,n,t){return new h(this,e,n,t)}),e.defineExtension("selectMatches",function(n,t){for(var o=[],r=this.getSearchCursor(n,this.getCursor("from"),t);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)o.push({anchor:r.from(),head:r.to()});o.length&&this.setSelections(o,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/dialog/dialog",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function n(n,t,o){var r,i=n.getWrapperElement();return r=i.appendChild(document.createElement("div")),r.className=o?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",function(o,r,i){function s(n){if("string"==typeof n)f.value=n;else{if(c)return;c=!0,e.rmClass(l.parentNode,"dialog-opened"),l.parentNode.removeChild(l),u.focus(),i.onClose&&i.onClose(l)}}i||(i={}),t(this,null);var a,l=n(this,o,i.bottom),c=!1,u=this,f=l.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",function(e){i.onInput(e,f.value,s)}),i.onKeyUp&&e.on(f,"keyup",function(e){i.onKeyUp(e,f.value,s)}),e.on(f,"keydown",function(n){i&&i.onKeyDown&&i.onKeyDown(n,f.value,s)||((27==n.keyCode||!1!==i.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),s()),13==n.keyCode&&r(f.value,n))}),!1!==i.closeOnBlur&&e.on(f,"blur",s)):(a=l.getElementsByTagName("button")[0])&&(e.on(a,"click",function(){s(),u.focus()}),!1!==i.closeOnBlur&&e.on(a,"blur",s),a.focus()),s}),e.defineExtension("openConfirm",function(o,r,i){function s(){c||(c=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}t(this,null);var a=n(this,o,i&&i.bottom),l=a.getElementsByTagName("button"),c=!1,u=this,f=1;l[0].focus();for(var h=0;h<l.length;++h){var p=l[h];!function(n){e.on(p,"click",function(t){e.e_preventDefault(t),s(),n&&n(u)})}(r[h]),e.on(p,"blur",function(){--f,setTimeout(function(){f<=0&&s()},200)}),e.on(p,"focus",function(){++f})}}),e.defineExtension("openNotification",function(o,r){function i(){l||(l=!0,clearTimeout(s),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}t(this,i);var s,a=n(this,o,r&&r.bottom),l=!1,c=r&&void 0!==r.duration?r.duration:5e3;return e.on(a,"click",function(n){e.e_preventDefault(n),i()}),c&&(s=setTimeout(i,c)),i})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define("addon/search/search.js",["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function n(e,n){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(n){e.lastIndex=n.pos;var t=e.exec(n.string);if(t&&t.index==n.pos)return n.pos+=t[0].length||1,"searching";t?n.pos=t.index:n.skipToEnd()}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,n,t){return e.getSearchCursor(n,t,{caseFold:r(n),multiline:!0})}function s(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:r})}function a(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0}):r(prompt(t,o))}function l(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function c(e){return e.replace(/\\(.)/g,function(e,n){return"n"==n?"\n":"r"==n?"\r":n})}function u(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],-1==n[2].indexOf("i")?"":"i")}catch(e){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,o){t.queryText=o,t.query=u(o),e.removeOverlay(t.overlay,r(t.query)),t.overlay=n(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function h(n,t,r,i){var l=o(n);if(l.query)return p(n,t);var c=n.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),r&&n.openDialog){var u=null,h=function(t,o){e.e_stop(o),t&&(t!=l.queryText&&(f(n,l,t),l.posFrom=l.posTo=n.getCursor()),u&&(u.style.opacity=1),p(n,o.shiftKey,function(e,t){var o;t.line<3&&document.querySelector&&(o=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&o.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((u=o).style.opacity=.4)}))};s(n,g(n),c,h,function(t,r){var i=e.keyName(t),s=n.getOption("extraKeys"),a=s&&s[i]||e.keyMap[n.getOption("keyMap")][i];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(t),f(n,o(n),r),n.execCommand(a)):"find"!=a&&"findPersistent"!=a||(e.e_stop(t),h(r,t))}),i&&c&&(f(n,l,c),p(n,t))}else a(n,g(n),"Search for:",c,function(e){e&&!l.query&&n.operation(function(){f(n,l,e),l.posFrom=l.posTo=n.getCursor(),p(n,t)})})}function p(n,t,r){n.operation(function(){var s=o(n),a=i(n,s.query,t?s.posFrom:s.posTo);(a.find(t)||(a=i(n,s.query,t?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0)),a.find(t)))&&(n.setSelection(a.from(),a.to()),n.scrollIntoView({from:a.from(),to:a.to()},20),s.posFrom=a.from(),s.posTo=a.to(),r&&r(a.from(),a.to()))})}function d(e){e.operation(function(){var n=o(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}function g(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function m(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function v(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}function y(e){return'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}function x(e,n,t){e.operation(function(){for(var o=i(e,n);o.findNext();)if("string"!=typeof n){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,function(e,n){return r[n]}))}else o.replace(t)})}function C(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||o(e).lastQuery,r='<span class="CodeMirror-search-label">'+(n?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";a(e,r+m(e),r,t,function(t){t&&(t=u(t),a(e,v(e),e.phrase("Replace with:"),"",function(o){if(o=c(o),n)x(e,t,o);else{d(e);var r=i(e,t,e.getCursor("from")),s=function(){var n,c=r.from();!(n=r.findNext())&&(r=i(e,t),!(n=r.findNext())||c&&r.from().line==c.line&&r.from().ch==c.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),l(e,y(e),e.phrase("Replace?"),[function(){a(n)},s,function(){x(e,t,o)}]))},a=function(e){r.replace("string"==typeof t?o:o.replace(/\$(\d)/g,function(n,t){return e[t]})),s()};s()}}))})}}e.commands.find=function(e){d(e),h(e)},e.commands.findPersistent=function(e){d(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=d,e.commands.replace=C,e.commands.replaceAll=function(e){C(e,!0)}}),function(e){"function"==typeof e.define&&e.define("addonSearch",["addon/search/search.js"],function(){})}(this);
|
@@ -1 +1 @@
|
|
1
|
-
(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define("codemirror.js",a):(b.CodeMirror=a())}(this,(function(){var eC=navigator.userAgent;var eN=navigator.platform;var cR=/gecko\/\d/i.test(eC);var fw=/MSIE \d/.test(eC);var b4=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(eC);var c5=/Edge\/(\d+)/.exec(eC);var ei=fw||b4||c5;var m=ei&&(fw?document.documentMode||6:+(c5||b4)[1]);var dv=!c5&&/WebKit\//.test(eC);var el=dv&&/Qt\/\d+\.\d+/.test(eC);var dL=!c5&&/Chrome\//.test(eC);var eE=/Opera\//.test(eC);var aM=/Apple Computer/.test(navigator.vendor);var dD=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(eC);var gi=/PhantomJS/.test(eC);var fQ=!c5&&/AppleWebKit/.test(eC)&&/Mobile\/\w+/.test(eC);var aY=/Android/.test(eC);var eT=fQ||aY||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(eC);var cu=fQ||/Mac/.test(eN);var gC=/\bCrOS\b/.test(eC);var a1=/win/i.test(eN);var bc=eE&&eC.match(/Version\/(\d*\.\d*)/);if(bc){bc=Number(bc[1])}if(bc&&bc>=15){eE=false;dv=true}var cc=cu&&(el||eE&&(bc==null||bc<12.11));var hf=cR||(ei&&m>=9);function Y(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var h=function(hr,i){var hs=hr.className;var hq=Y(i).exec(hs);if(hq){var ht=hs.slice(hq.index+hq[0].length);hr.className=hs.slice(0,hq.index)+(ht?hq[1]+ht:"")}};function eD(hq){for(var i=hq.childNodes.length;i>0;--i){hq.removeChild(hq.firstChild)}return hq}function ce(i,hq){return eD(i).appendChild(hq)}function g5(hq,hu,ht,hs){var hv=document.createElement(hq);if(ht){hv.className=ht}if(hs){hv.style.cssText=hs}if(typeof hu=="string"){hv.appendChild(document.createTextNode(hu))}else{if(hu){for(var hr=0;hr<hu.length;++hr){hv.appendChild(hu[hr])}}}return hv}function hc(i,hs,hr,hq){var ht=g5(i,hs,hr,hq);ht.setAttribute("role","presentation");return ht}var cO;if(document.createRange){cO=function(hs,ht,hq,i){var hr=document.createRange();hr.setEnd(i||hs,hq);hr.setStart(hs,ht);return hr}}else{cO=function(hr,ht,i){var hq=document.body.createTextRange();try{hq.moveToElementText(hr.parentNode)}catch(hs){return hq}hq.collapse(true);hq.moveEnd("character",i);hq.moveStart("character",ht);return hq}}function hg(i,hq){if(hq.nodeType==3){hq=hq.parentNode}if(i.contains){return i.contains(hq)}do{if(hq.nodeType==11){hq=hq.host}if(hq==i){return true}}while(hq=hq.parentNode)}function em(){var i;try{i=document.activeElement}catch(hq){i=document.body||null}while(i&&i.shadowRoot&&i.shadowRoot.activeElement){i=i.shadowRoot.activeElement}return i}function gs(hq,i){var hr=hq.className;if(!Y(i).test(hr)){hq.className+=(hr?" ":"")+i}}function gS(hs,hq){var hr=hs.split(" ");for(var ht=0;ht<hr.length;ht++){if(hr[ht]&&!Y(hr[ht]).test(hq)){hq+=" "+hr[ht]}}return hq}var ej=function(i){i.select()};if(fQ){ej=function(i){i.selectionStart=0;i.selectionEnd=i.value.length}}else{if(ei){ej=function(hq){try{hq.select()}catch(i){}}}}function cY(hq){var i=Array.prototype.slice.call(arguments,1);return function(){return hq.apply(null,i)}}function aZ(hr,hq,i){if(!hq){hq={}}for(var hs in hr){if(hr.hasOwnProperty(hs)&&(i!==false||!hq.hasOwnProperty(hs))){hq[hs]=hr[hs]}}return hq}function cd(ht,hr,hv,hw,hs){if(hr==null){hr=ht.search(/[^\s\u00a0]/);if(hr==-1){hr=ht.length}}for(var hu=hw||0,hx=hs||0;;){var hq=ht.indexOf("\t",hu);if(hq<0||hq>=hr){return hx+(hr-hu)}hx+=hq-hu;hx+=hv-(hx%hv);hu=hq+1}}var hp=function(){this.id=null};hp.prototype.set=function(i,hq){clearTimeout(this.id);this.id=setTimeout(hq,i)};function dR(hs,hq){for(var hr=0;hr<hs.length;++hr){if(hs[hr]==hq){return hr}}return -1}var eg=30;var cz={toString:function(){return"CodeMirror.Pass"}};var ah={scroll:false};var R={origin:"*mouse"};var dr={origin:"+move"};function e5(ht,hs,hu){for(var hv=0,hr=0;;){var hq=ht.indexOf("\t",hv);if(hq==-1){hq=ht.length}var i=hq-hv;if(hq==ht.length||hr+i>=hs){return hv+Math.min(i,hs-hr)}hr+=hq-hv;hr+=hu-(hr%hu);hv=hq+1;if(hr>=hs){return hv}}}var bd=[""];function cS(i){while(bd.length<=i){bd.push(gy(bd)+" ")}return bd[i]}function gy(i){return i[i.length-1]}function cf(ht,hs){var hq=[];for(var hr=0;hr<ht.length;hr++){hq[hr]=hs(ht[hr],hr)}return hq}function cx(ht,hq,hr){var hs=0,i=hr(hq);while(hs<ht.length&&hr(ht[hs])<=i){hs++}ht.splice(hs,0,hq)}function gT(){}function cM(hr,i){var hq;if(Object.create){hq=Object.create(hr)}else{gT.prototype=hr;hq=new gT()}if(i){aZ(i,hq)}return hq}var bp=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function gv(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||bp.test(i))}function c3(i,hq){if(!hq){return gv(i)}if(hq.source.indexOf("\\w")>-1&&gv(i)){return true}return hq.test(i)}function fI(i){for(var hq in i){if(i.hasOwnProperty(hq)&&i[hq]){return false}}return true}var fv=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gd(i){return i.charCodeAt(0)>=768&&fv.test(i)}function eX(hq,hr,i){while((i<0?hr>0:hr<hq.length)&&gd(hq.charAt(hr))){hr+=i}return hr}function cP(i,hu,ht){var hr=hu>ht?-1:1;for(;;){if(hu==ht){return hu}var hs=(hu+ht)/2,hq=hr<0?Math.ceil(hs):Math.floor(hs);if(hq==hu){return i(hq)?hu:ht}if(i(hq)){ht=hq}else{hu=hq+hr}}}function ft(hq,hs,hr){var ht=this;this.input=hr;ht.scrollbarFiller=g5("div",null,"CodeMirror-scrollbar-filler");ht.scrollbarFiller.setAttribute("cm-not-content","true");ht.gutterFiller=g5("div",null,"CodeMirror-gutter-filler");ht.gutterFiller.setAttribute("cm-not-content","true");ht.lineDiv=hc("div",null,"CodeMirror-code");ht.selectionDiv=g5("div",null,null,"position: relative; z-index: 1");ht.cursorDiv=g5("div",null,"CodeMirror-cursors");ht.measure=g5("div",null,"CodeMirror-measure");ht.lineMeasure=g5("div",null,"CodeMirror-measure");ht.lineSpace=hc("div",[ht.measure,ht.lineMeasure,ht.selectionDiv,ht.cursorDiv,ht.lineDiv],null,"position: relative; outline: none");var i=hc("div",[ht.lineSpace],"CodeMirror-lines");ht.mover=g5("div",[i],null,"position: relative");ht.sizer=g5("div",[ht.mover],"CodeMirror-sizer");ht.sizerWidth=null;ht.heightForcer=g5("div",null,null,"position: absolute; height: "+eg+"px; width: 1px;");ht.gutters=g5("div",null,"CodeMirror-gutters");ht.lineGutter=null;ht.scroller=g5("div",[ht.sizer,ht.heightForcer,ht.gutters],"CodeMirror-scroll");ht.scroller.setAttribute("tabIndex","-1");ht.wrapper=g5("div",[ht.scrollbarFiller,ht.gutterFiller,ht.scroller],"CodeMirror");if(ei&&m<8){ht.gutters.style.zIndex=-1;ht.scroller.style.paddingRight=0}if(!dv&&!(cR&&eT)){ht.scroller.draggable=true}if(hq){if(hq.appendChild){hq.appendChild(ht.wrapper)}else{hq(ht.wrapper)}}ht.viewFrom=ht.viewTo=hs.first;ht.reportedViewFrom=ht.reportedViewTo=hs.first;ht.view=[];ht.renderedView=null;ht.externalMeasured=null;ht.viewOffset=0;ht.lastWrapHeight=ht.lastWrapWidth=0;ht.updateLineNumbers=null;ht.nativeBarWidth=ht.barHeight=ht.barWidth=0;ht.scrollbarsClipped=false;ht.lineNumWidth=ht.lineNumInnerWidth=ht.lineNumChars=null;ht.alignWidgets=false;ht.cachedCharWidth=ht.cachedTextHeight=ht.cachedPaddingH=null;ht.maxLine=null;ht.maxLineLength=0;ht.maxLineChanged=false;ht.wheelDX=ht.wheelDY=ht.wheelStartX=ht.wheelStartY=null;ht.shift=false;ht.selForContextMenu=null;ht.activeTouch=null;hr.init(ht)}function f4(ht,hv){hv-=ht.first;if(hv<0||hv>=ht.size){throw new Error("There is no line "+(hv+ht.first)+" in the document.")}var hq=ht;while(!hq.lines){for(var hr=0;;++hr){var hu=hq.children[hr],hs=hu.chunkSize();if(hv<hs){hq=hu;break}hv-=hs}}return hq.lines[hv]}function g8(hr,ht,i){var hq=[],hs=ht.line;hr.iter(ht.line,i.line+1,function(hu){var hv=hu.text;if(hs==i.line){hv=hv.slice(0,i.ch)}if(hs==ht.line){hv=hv.slice(ht.ch)}hq.push(hv);++hs});return hq}function bf(hq,hs,hr){var i=[];hq.iter(hs,hr,function(ht){i.push(ht.text)});return i}function hb(hq,i){var hr=i-hq.height;if(hr){for(var hs=hq;hs;hs=hs.parent){hs.height+=hr}}}function b8(hq){if(hq.parent==null){return null}var hu=hq.parent,ht=dR(hu.lines,hq);for(var hr=hu.parent;hr;hu=hr,hr=hr.parent){for(var hs=0;;++hs){if(hr.children[hs]==hu){break}ht+=hr.children[hs].chunkSize()}}return ht+hu.first}function b1(hw,hv){var ht=hw.first;outer:do{for(var hs=0;hs<hw.children.length;++hs){var hr=hw.children[hs],hq=hr.height;if(hv<hq){hw=hr;continue outer}hv-=hq;ht+=hr.chunkSize()}return ht}while(!hw.lines);var hu=0;for(;hu<hw.lines.length;++hu){var hy=hw.lines[hu],hx=hy.height;if(hv<hx){break}hv-=hx}return ht+hu}function cw(hq,i){return i>=hq.first&&i<hq.first+hq.size}function e8(hq,hr){return String(hq.lineNumberFormatter(hr+hq.firstLineNumber))}function ac(i,hq,hr){if(hr===void 0){hr=null}if(!(this instanceof ac)){return new ac(i,hq,hr)}this.line=i;this.ch=hq;this.sticky=hr}function cF(hq,i){return hq.line-i.line||hq.ch-i.ch}function ad(hq,i){return hq.sticky==i.sticky&&cF(hq,i)==0}function cI(i){return ac(i.line,i.ch)}function bR(hq,i){return cF(hq,i)<0?i:hq}function aB(hq,i){return cF(hq,i)<0?hq:i}function dA(i,hq){return Math.max(i.first,Math.min(hq,i.first+i.size-1))}function gD(hq,hr){if(hr.line<hq.first){return ac(hq.first,0)}var i=hq.first+hq.size-1;if(hr.line>i){return ac(i,f4(hq,i).text.length)}return gg(hr,f4(hq,hr.line).text.length)}function gg(hr,hq){var i=hr.ch;if(i==null||i>hq){return ac(hr.line,hq)}else{if(i<0){return ac(hr.line,0)}else{return hr}}}function eB(hs,ht){var hq=[];for(var hr=0;hr<ht.length;hr++){hq[hr]=gD(hs,ht[hr])}return hq}var hk=false;var bk=false;function gq(){hk=true}function bQ(){bk=true}function eW(i,hr,hq){this.marker=i;this.from=hr;this.to=hq}function fZ(hs,hq){if(hs){for(var hr=0;hr<hs.length;++hr){var ht=hs[hr];if(ht.marker==hq){return ht}}}}function fs(hr,hs){var ht;for(var hq=0;hq<hr.length;++hq){if(hr[hq]!=hs){(ht||(ht=[])).push(hr[hq])}}return ht}function cC(i,hq){i.markedSpans=i.markedSpans?i.markedSpans.concat([hq]):[hq];hq.marker.attachLine(i)}function a3(hr,hs,hw){var hx;if(hr){for(var hu=0;hu<hr.length;++hu){var hy=hr[hu],hv=hy.marker;var hq=hy.from==null||(hv.inclusiveLeft?hy.from<=hs:hy.from<hs);if(hq||hy.from==hs&&hv.type=="bookmark"&&(!hw||!hy.marker.insertLeft)){var ht=hy.to==null||(hv.inclusiveRight?hy.to>=hs:hy.to>hs);(hx||(hx=[])).push(new eW(hv,hy.from,ht?null:hy.to))}}}return hx}function aL(hr,ht,hw){var hx;if(hr){for(var hu=0;hu<hr.length;++hu){var hy=hr[hu],hv=hy.marker;var hs=hy.to==null||(hv.inclusiveRight?hy.to>=ht:hy.to>ht);if(hs||hy.from==ht&&hv.type=="bookmark"&&(!hw||hy.marker.insertLeft)){var hq=hy.from==null||(hv.inclusiveLeft?hy.from<=ht:hy.from<ht);(hx||(hx=[])).push(new eW(hv,hq?null:hy.from-ht,hy.to==null?null:hy.to-ht))}}}return hx}function eY(hL,hB){if(hB.full){return null}var hs=cw(hL,hB.from.line)&&f4(hL,hB.from.line).markedSpans;var hz=cw(hL,hB.to.line)&&f4(hL,hB.to.line).markedSpans;if(!hs&&!hz){return null}var hy=hB.from.ch,hG=hB.to.ch,hD=cF(hB.from,hB.to)==0;var hx=a3(hs,hy,hD);var hA=aL(hz,hG,hD);var hE=hB.text.length==1,hv=gy(hB.text).length+(hE?hy:0);if(hx){for(var hJ=0;hJ<hx.length;++hJ){var hI=hx[hJ];if(hI.to==null){var hC=fZ(hA,hI.marker);if(!hC){hI.to=hy}else{if(hE){hI.to=hC.to==null?null:hC.to+hv}}}}}if(hA){for(var hw=0;hw<hA.length;++hw){var hH=hA[hw];if(hH.to!=null){hH.to+=hv}if(hH.from==null){var hr=fZ(hx,hH.marker);if(!hr){hH.from=hv;if(hE){(hx||(hx=[])).push(hH)}}}else{hH.from+=hv;if(hE){(hx||(hx=[])).push(hH)}}}}if(hx){hx=s(hx)}if(hA&&hA!=hx){hA=s(hA)}var hK=[hx];if(!hE){var hF=hB.text.length-2,hq;if(hF>0&&hx){for(var hu=0;hu<hx.length;++hu){if(hx[hu].to==null){(hq||(hq=[])).push(new eW(hx[hu].marker,null,null))}}}for(var ht=0;ht<hF;++ht){hK.push(hq)}hK.push(hA)}return hK}function s(hr){for(var hq=0;hq<hr.length;++hq){var hs=hr[hq];if(hs.from!=null&&hs.from==hs.to&&hs.marker.clearWhenEmpty!==false){hr.splice(hq--,1)}}if(!hr.length){return null}return hr}function dc(hC,hA,hB){var hu=null;hC.iter(hA.line,hB.line+1,function(hD){if(hD.markedSpans){for(var hE=0;hE<hD.markedSpans.length;++hE){var hF=hD.markedSpans[hE].marker;if(hF.readOnly&&(!hu||dR(hu,hF)==-1)){(hu||(hu=[])).push(hF)}}}});if(!hu){return null}var hv=[{from:hA,to:hB}];for(var hw=0;hw<hu.length;++hw){var hx=hu[hw],hs=hx.find(0);for(var ht=0;ht<hv.length;++ht){var hr=hv[ht];if(cF(hr.to,hs.from)<0||cF(hr.from,hs.to)>0){continue}var hz=[ht,1],hq=cF(hr.from,hs.from),hy=cF(hr.to,hs.to);if(hq<0||!hx.inclusiveLeft&&!hq){hz.push({from:hr.from,to:hs.from})}if(hy>0||!hx.inclusiveRight&&!hy){hz.push({from:hs.to,to:hr.to})}hv.splice.apply(hv,hz);ht+=hz.length-3}}return hv}function he(hq){var hs=hq.markedSpans;if(!hs){return}for(var hr=0;hr<hs.length;++hr){hs[hr].marker.detachLine(hq)}hq.markedSpans=null}function dy(hq,hs){if(!hs){return}for(var hr=0;hr<hs.length;++hr){hs[hr].marker.attachLine(hq)}hq.markedSpans=hs}function w(i){return i.inclusiveLeft?-1:0}function ci(i){return i.inclusiveRight?1:0}function eq(hs,hq){var hu=hs.lines.length-hq.lines.length;if(hu!=0){return hu}var hr=hs.find(),hv=hq.find();var i=cF(hr.from,hv.from)||w(hs)-w(hq);if(i){return -i}var ht=cF(hr.to,hv.to)||ci(hs)-ci(hq);if(ht){return ht}return hq.id-hs.id}function bj(hr,hv){var hq=bk&&hr.markedSpans,hu;if(hq){for(var ht=(void 0),hs=0;hs<hq.length;++hs){ht=hq[hs];if(ht.marker.collapsed&&(hv?ht.from:ht.to)==null&&(!hu||eq(hu,ht.marker)<0)){hu=ht.marker}}}return hu}function fC(i){return bj(i,true)}function fd(i){return bj(i,false)}function cE(hr,ht){var hq=bk&&hr.markedSpans,hv;if(hq){for(var hs=0;hs<hq.length;++hs){var hu=hq[hs];if(hu.marker.collapsed&&(hu.from==null||hu.from<ht)&&(hu.to==null||hu.to>ht)&&(!hv||eq(hv,hu.marker)<0)){hv=hu.marker}}}return hv}function A(hy,hs,hw,hx,hu){var hB=f4(hy,hs);var hq=bk&&hB.markedSpans;if(hq){for(var ht=0;ht<hq.length;++ht){var hr=hq[ht];if(!hr.marker.collapsed){continue}var hA=hr.marker.find(0);var hz=cF(hA.from,hw)||w(hr.marker)-w(hu);var hv=cF(hA.to,hx)||ci(hr.marker)-ci(hu);if(hz>=0&&hv<=0||hz<=0&&hv>=0){continue}if(hz<=0&&(hr.marker.inclusiveRight&&hu.inclusiveLeft?cF(hA.to,hw)>=0:cF(hA.to,hw)>0)||hz>=0&&(hr.marker.inclusiveRight&&hu.inclusiveLeft?cF(hA.from,hx)<=0:cF(hA.from,hx)<0)){return true}}}}function z(hq){var i;while(i=fC(hq)){hq=i.find(-1,true).line}return hq}function cL(hq){var i;while(i=fd(hq)){hq=i.find(1,true).line}return hq}function g(hr){var i,hq;while(i=fd(hr)){hr=i.find(1,true).line;(hq||(hq=[])).push(hr)}return hq}function a9(hs,hq){var i=f4(hs,hq),hr=z(i);if(i==hr){return hq}return b8(hr)}function eF(hs,hr){if(hr>hs.lastLine()){return hr}var hq=f4(hs,hr),i;if(!gl(hs,hq)){return hr}while(i=fd(hq)){hq=i.find(1,true).line}return b8(hq)+1}function gl(hu,hr){var hq=bk&&hr.markedSpans;if(hq){for(var ht=(void 0),hs=0;hs<hq.length;++hs){ht=hq[hs];if(!ht.marker.collapsed){continue}if(ht.from==null){return true}if(ht.marker.widgetNode){continue}if(ht.from==0&&ht.marker.inclusiveLeft&&Z(hu,hr,ht)){return true}}}}function Z(hv,hr,ht){if(ht.to==null){var hq=ht.marker.find(1,true);return Z(hv,hq.line,fZ(hq.line.markedSpans,ht.marker))}if(ht.marker.inclusiveRight&&ht.to==hr.text.length){return true}for(var hu=(void 0),hs=0;hs<hr.markedSpans.length;++hs){hu=hr.markedSpans[hs];if(hu.marker.collapsed&&!hu.marker.widgetNode&&hu.from==ht.to&&(hu.to==null||hu.to!=ht.from)&&(hu.marker.inclusiveLeft||ht.marker.inclusiveRight)&&Z(hv,hr,hu)){return true}}}function b7(hs){hs=z(hs);var hu=0,hr=hs.parent;for(var ht=0;ht<hr.lines.length;++ht){var hq=hr.lines[ht];if(hq==hs){break}else{hu+=hq.height}}for(var hv=hr.parent;hv;hr=hv,hv=hr.parent){for(var hx=0;hx<hv.children.length;++hx){var hw=hv.children[hx];if(hw==hr){break}else{hu+=hw.height}}}return hu}function e1(hr){if(hr.height==0){return 0}var hq=hr.text.length,i,hu=hr;while(i=fC(hu)){var hs=i.find(0,true);hu=hs.from.line;hq+=hs.from.ch-hs.to.ch}hu=hr;while(i=fd(hu)){var ht=i.find(0,true);hq-=hu.text.length-ht.from.ch;hu=ht.to.line;hq+=hu.text.length-ht.to.ch}return hq}function f(i){var hr=i.display,hq=i.doc;hr.maxLine=f4(hq,hq.first);hr.maxLineLength=e1(hr.maxLine);hr.maxLineChanged=true;hq.iter(function(ht){var hs=e1(ht);if(hs>hr.maxLineLength){hr.maxLineLength=hs;hr.maxLine=ht}})}function eG(hq,hw,hv,hu){if(!hq){return hu(hw,hv,"ltr",0)}var ht=false;for(var hs=0;hs<hq.length;++hs){var hr=hq[hs];if(hr.from<hv&&hr.to>hw||hw==hv&&hr.to==hw){hu(Math.max(hr.from,hw),Math.min(hr.to,hv),hr.level==1?"rtl":"ltr",hs);ht=true}}if(!ht){hu(hw,hv,"ltr")}}var fS=null;function aS(hq,hs,hu){var ht;fS=null;for(var hr=0;hr<hq.length;++hr){var hv=hq[hr];if(hv.from<hs&&hv.to>hs){return hr}if(hv.to==hs){if(hv.from!=hv.to&&hu=="before"){ht=hr}else{fS=hr}}if(hv.from==hs){if(hv.from!=hv.to&&hu!="before"){ht=hr}else{fS=hr}}}return ht!=null?ht:fS}var bv=(function(){var hv="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var ht="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function hs(hy){if(hy<=247){return hv.charAt(hy)}else{if(1424<=hy&&hy<=1524){return"R"}else{if(1536<=hy&&hy<=1785){return ht.charAt(hy-1536)}else{if(1774<=hy&&hy<=2220){return"r"}else{if(8192<=hy&&hy<=8203){return"w"}else{if(hy==8204){return"b"}else{return"L"}}}}}}}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var hx=/[stwN]/,hr=/[LRr]/,hq=/[Lb1n]/,hu=/[1n]/;function hw(hA,hz,hy){this.level=hA;this.from=hz;this.to=hy}return function(hV,hB){var hK=hB=="ltr"?"L":"R";if(hV.length==0||hB=="ltr"&&!i.test(hV)){return false}var hE=hV.length,h4=[];for(var h7=0;h7<hE;++h7){h4.push(hs(hV.charCodeAt(h7)))}for(var hS=0,hR=hK;hS<hE;++hS){var h8=h4[hS];if(h8=="m"){h4[hS]=hR}else{hR=h8}}for(var hQ=0,hA=hK;hQ<hE;++hQ){var h3=h4[hQ];if(h3=="1"&&hA=="r"){h4[hQ]="n"}else{if(hr.test(h3)){hA=h3;if(h3=="r"){h4[hQ]="R"}}}}for(var hP=1,hz=h4[0];hP<hE-1;++hP){var h2=h4[hP];if(h2=="+"&&hz=="1"&&h4[hP+1]=="1"){h4[hP]="1"}else{if(h2==","&&hz==h4[hP+1]&&(hz=="1"||hz=="n")){h4[hP]=hz}}hz=h2}for(var hO=0;hO<hE;++hO){var h1=h4[hO];if(h1==","){h4[hO]="N"}else{if(h1=="%"){var hD=(void 0);for(hD=hO+1;hD<hE&&h4[hD]=="%";++hD){}var hI=(hO&&h4[hO-1]=="!")||(hD<hE&&h4[hD]=="1")?"1":"N";for(var h6=hO;h6<hD;++h6){h4[h6]=hI}hO=hD-1}}}for(var hN=0,hH=hK;hN<hE;++hN){var hZ=h4[hN];if(hH=="L"&&hZ=="1"){h4[hN]="L"}else{if(hr.test(hZ)){hH=hZ}}}for(var hM=0;hM<hE;++hM){if(hx.test(h4[hM])){var hW=(void 0);for(hW=hM+1;hW<hE&&hx.test(h4[hW]);++hW){}var hY=(hM?h4[hM-1]:hK)=="L";var h0=(hW<hE?h4[hW]:hK)=="L";var hU=hY==h0?(hY?"L":"R"):hK;for(var hG=hM;hG<hW;++hG){h4[hG]=hU}hM=hW-1}}var hX=[],h5;for(var hL=0;hL<hE;){if(hq.test(h4[hL])){var hJ=hL;for(++hL;hL<hE&&hq.test(h4[hL]);++hL){}hX.push(new hw(0,hJ,hL))}else{var hT=hL,hy=hX.length;for(++hL;hL<hE&&h4[hL]!="L";++hL){}for(var hF=hT;hF<hL;){if(hu.test(h4[hF])){if(hT<hF){hX.splice(hy,0,new hw(1,hT,hF))}var hC=hF;for(++hF;hF<hL&&hu.test(h4[hF]);++hF){}hX.splice(hy,0,new hw(2,hC,hF));hT=hF}else{++hF}}if(hT<hL){hX.splice(hy,0,new hw(1,hT,hL))}}}if(hB=="ltr"){if(hX[0].level==1&&(h5=hV.match(/^\s+/))){hX[0].from=h5[0].length;hX.unshift(new hw(0,0,h5[0].length))}if(gy(hX).level==1&&(h5=hV.match(/\s+$/))){gy(hX).to-=h5[0].length;hX.push(new hw(0,hE-h5[0].length,hE))}}return hB=="rtl"?hX.reverse():hX}})();function a(hq,hr){var i=hq.order;if(i==null){i=hq.order=bv(hq.text,hr)}return i}var fV=[];var cj=function(hr,i,hq){if(hr.addEventListener){hr.addEventListener(i,hq,false)}else{if(hr.attachEvent){hr.attachEvent("on"+i,hq)}else{var hs=hr._handlers||(hr._handlers={});hs[i]=(hs[i]||fV).concat(hq)}}};function eZ(hq,i){return hq._handlers&&hq._handlers[i]||fV}function eS(ht,hr,hs){if(ht.removeEventListener){ht.removeEventListener(hr,hs,false)}else{if(ht.detachEvent){ht.detachEvent("on"+hr,hs)}else{var hu=ht._handlers,i=hu&&hu[hr];if(i){var hq=dR(i,hs);if(hq>-1){hu[hr]=i.slice(0,hq).concat(i.slice(hq+1))}}}}}function aO(hu,ht){var hq=eZ(hu,ht);if(!hq.length){return}var hr=Array.prototype.slice.call(arguments,2);for(var hs=0;hs<hq.length;++hs){hq[hs].apply(null,hr)}}function a4(i,hr,hq){if(typeof hr=="string"){hr={type:hr,preventDefault:function(){this.defaultPrevented=true}}}aO(i,hq||hr.type,i,hr);return b6(hr)||hr.codemirrorIgnore}function ab(hr){var hq=hr._handlers&&hr._handlers.cursorActivity;if(!hq){return}var ht=hr.curOp.cursorActivityHandlers||(hr.curOp.cursorActivityHandlers=[]);for(var hs=0;hs<hq.length;++hs){if(dR(ht,hq[hs])==-1){ht.push(hq[hs])}}}function f9(hq,i){return eZ(hq,i).length>0}function bT(i){i.prototype.on=function(hq,hr){cj(this,hq,hr)};i.prototype.off=function(hq,hr){eS(this,hq,hr)}}function c9(i){if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}}function dZ(i){if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}}function b6(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==false}function e6(i){c9(i);dZ(i)}function Q(i){return i.target||i.srcElement}function gJ(hq){var i=hq.which;if(i==null){if(hq.button&1){i=1}else{if(hq.button&2){i=3}else{if(hq.button&4){i=2}}}}if(cu&&hq.ctrlKey&&i==1){i=3}return i}var fx=function(){if(ei&&m<9){return false}var i=g5("div");return"draggable" in i||"dragDrop" in i}();var gH;function bF(i){if(gH==null){var hr=g5("span","\u200b");ce(i,g5("span",[hr,document.createTextNode("x")]));if(i.firstChild.offsetHeight!=0){gH=hr.offsetWidth<=1&&hr.offsetHeight>2&&!(ei&&m<8)}}var hq=gH?g5("span","\u200b"):g5("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");hq.setAttribute("cm-text","");return hq}var gI;function b9(hs){if(gI!=null){return gI}var i=ce(hs,document.createTextNode("A\u062eA"));var hr=cO(i,0,1).getBoundingClientRect();var hq=cO(i,1,2).getBoundingClientRect();eD(hs);if(!hr||hr.left==hr.right){return false}return gI=(hq.right-hr.right<3)}var gO="\n\nb".split(/\n/).length!=3?function(hu){var hv=0,i=[],ht=hu.length;while(hv<=ht){var hs=hu.indexOf("\n",hv);if(hs==-1){hs=hu.length}var hr=hu.slice(hv,hu.charAt(hs-1)=="\r"?hs-1:hs);var hq=hr.indexOf("\r");if(hq!=-1){i.push(hr.slice(0,hq));hv+=hq+1}else{i.push(hr);hv=hs+1}}return i}:function(i){return i.split(/\r\n?|\n/)};var bL=window.getSelection?function(hq){try{return hq.selectionStart!=hq.selectionEnd}catch(i){return false}}:function(hr){var i;try{i=hr.ownerDocument.selection.createRange()}catch(hq){}if(!i||i.parentElement()!=hr){return false}return i.compareEndPoints("StartToEnd",i)!=0};var dI=(function(){var i=g5("div");if("oncopy" in i){return true}i.setAttribute("oncopy","return;");return typeof i.oncopy=="function"})();var fW=null;function aW(hq){if(fW!=null){return fW}var hr=ce(hq,g5("span","x"));var hs=hr.getBoundingClientRect();var i=cO(hr,0,1).getBoundingClientRect();return fW=Math.abs(hs.left-i.left)>1}var d1={};var a5={};function fa(i,hq){if(arguments.length>2){hq.dependencies=Array.prototype.slice.call(arguments,2)}d1[i]=hq}function bE(hq,i){a5[hq]=i}function hh(i){if(typeof i=="string"&&a5.hasOwnProperty(i)){i=a5[i]}else{if(i&&typeof i.name=="string"&&a5.hasOwnProperty(i.name)){var hq=a5[i.name];if(typeof hq=="string"){hq={name:hq}}i=cM(hq,i);i.name=hq.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i)){return hh("application/xml")}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i)){return hh("application/json")}}}}if(typeof i=="string"){return{name:i}}else{return i||{name:"null"}}}function gr(hr,hq){hq=hh(hq);var ht=d1[hq.name];if(!ht){return gr(hr,"text/plain")}var hu=ht(hr,hq);if(dY.hasOwnProperty(hq.name)){var hs=dY[hq.name];for(var hv in hs){if(!hs.hasOwnProperty(hv)){continue}if(hu.hasOwnProperty(hv)){hu["_"+hv]=hu[hv]}hu[hv]=hs[hv]}}hu.name=hq.name;if(hq.helperType){hu.helperType=hq.helperType}if(hq.modeProps){for(var i in hq.modeProps){hu[i]=hq.modeProps[i]}}return hu}var dY={};function fn(hr,hq){var i=dY.hasOwnProperty(hr)?dY[hr]:(dY[hr]={});aZ(hq,i)}function cq(hs,i){if(i===true){return i}if(hs.copyState){return hs.copyState(i)}var hr={};for(var ht in i){var hq=i[ht];if(hq instanceof Array){hq=hq.concat([])}hr[ht]=hq}return hr}function hd(hr,i){var hq;while(hr.innerMode){hq=hr.innerMode(i);if(!hq||hq.mode==hr){break}i=hq.state;hr=hq.mode}return hq||{mode:hr,state:i}}function cn(hr,hq,i){return hr.startState?hr.startState(hq,i):true}var fH=function(i,hr,hq){this.pos=this.start=0;this.string=i;this.tabSize=hr||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0;this.lineOracle=hq};fH.prototype.eol=function(){return this.pos>=this.string.length};fH.prototype.sol=function(){return this.pos==this.lineStart};fH.prototype.peek=function(){return this.string.charAt(this.pos)||undefined};fH.prototype.next=function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}};fH.prototype.eat=function(i){var hr=this.string.charAt(this.pos);var hq;if(typeof i=="string"){hq=hr==i}else{hq=hr&&(i.test?i.test(hr):i(hr))}if(hq){++this.pos;return hr}};fH.prototype.eatWhile=function(i){var hq=this.pos;while(this.eat(i)){}return this.pos>hq};fH.prototype.eatSpace=function(){var hq=this;var i=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++hq.pos}return this.pos>i};fH.prototype.skipToEnd=function(){this.pos=this.string.length};fH.prototype.skipTo=function(i){var hq=this.string.indexOf(i,this.pos);if(hq>-1){this.pos=hq;return true}};fH.prototype.backUp=function(i){this.pos-=i};fH.prototype.column=function(){if(this.lastColumnPos<this.start){this.lastColumnValue=cd(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?cd(this.string,this.lineStart,this.tabSize):0)};fH.prototype.indentation=function(){return cd(this.string,null,this.tabSize)-(this.lineStart?cd(this.string,this.lineStart,this.tabSize):0)};fH.prototype.match=function(ht,hq,i){if(typeof ht=="string"){var hu=function(hv){return i?hv.toLowerCase():hv};var hs=this.string.substr(this.pos,ht.length);if(hu(hs)==hu(ht)){if(hq!==false){this.pos+=ht.length}return true}}else{var hr=this.string.slice(this.pos).match(ht);if(hr&&hr.index>0){return null}if(hr&&hq!==false){this.pos+=hr[0].length}return hr}};fH.prototype.current=function(){return this.string.slice(this.start,this.pos)};fH.prototype.hideFirstChars=function(hq,i){this.lineStart+=hq;try{return i()}finally{this.lineStart-=hq}};fH.prototype.lookAhead=function(hq){var i=this.lineOracle;return i&&i.lookAhead(hq)};fH.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};var aQ=function(hq,i){this.state=hq;this.lookAhead=i};var ag=function(hs,hr,i,hq){this.state=hr;this.doc=hs;this.line=i;this.maxLookAhead=hq||0;this.baseTokens=null;this.baseTokenPos=1};ag.prototype.lookAhead=function(hq){var i=this.doc.getLine(this.line+hq);if(i!=null&&hq>this.maxLookAhead){this.maxLookAhead=hq}return i};ag.prototype.baseToken=function(hr){var hq=this;if(!this.baseTokens){return null}while(this.baseTokens[this.baseTokenPos]<=hr){hq.baseTokenPos+=2}var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-hr}};ag.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0){this.maxLookAhead--}};ag.fromSaved=function(hr,hq,i){if(hq instanceof aQ){return new ag(hr,cq(hr.mode,hq.state),i,hq.lookAhead)}else{return new ag(hr,cq(hr.mode,hq),i)}};ag.prototype.save=function(hq){var i=hq!==false?cq(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new aQ(i,this.maxLookAhead):i};function gp(hv,hx,hq,ht){var hw=[hv.state.modeGen],hs={};x(hv,hx.text,hv.doc.mode,hq,function(hy,hz){return hw.push(hy,hz)},hs,ht);var i=hq.state;var hu=function(hB){hq.baseTokens=hw;var hz=hv.state.overlays[hB],hA=1,hy=0;hq.state=true;x(hv,hx.text,hz.mode,hq,function(hC,hE){var hG=hA;while(hy<hC){var hD=hw[hA];if(hD>hC){hw.splice(hA,1,hC,hw[hA+1],hD)}hA+=2;hy=Math.min(hC,hD)}if(!hE){return}if(hz.opaque){hw.splice(hG,hA-hG,hC,"overlay "+hE);hA=hG+2}else{for(;hG<hA;hG+=2){var hF=hw[hG+1];hw[hG+1]=(hF?hF+" ":"")+"overlay "+hE}}},hs);hq.state=i;hq.baseTokens=null;hq.baseTokenPos=1};for(var hr=0;hr<hv.state.overlays.length;++hr){hu(hr)}return{styles:hw,classes:hs.bgClass||hs.textClass?hs:null}}function dE(hq,hs,hu){if(!hs.styles||hs.styles[0]!=hq.state.modeGen){var ht=fL(hq,b8(hs));var hr=hs.text.length>hq.options.maxHighlightLength&&cq(hq.doc.mode,ht.state);var i=gp(hq,hs,ht);if(hr){ht.state=hr}hs.stateAfter=ht.save(!hr);hs.styles=i.styles;if(i.classes){hs.styleClasses=i.classes}else{if(hs.styleClasses){hs.styleClasses=null}}if(hu===hq.doc.highlightFrontier){hq.doc.modeFrontier=Math.max(hq.doc.modeFrontier,++hq.doc.highlightFrontier)}}return hs.styles}function fL(i,hw,hq){var hu=i.doc,ht=i.display;if(!hu.mode.startState){return new ag(hu,true,hw)}var hv=c1(i,hw,hq);var hs=hv>hu.first&&f4(hu,hv-1).stateAfter;var hr=hs?ag.fromSaved(hu,hs,hv):new ag(hu,cn(hu.mode),hv);hu.iter(hv,hw,function(hx){d6(i,hx.text,hr);var hy=hr.line;hx.stateAfter=hy==hw-1||hy%5==0||hy>=ht.viewFrom&&hy<ht.viewTo?hr.save():null;hr.nextLine()});if(hq){hu.modeFrontier=hr.line}return hr}function d6(i,hu,hr,hq){var ht=i.doc.mode;var hs=new fH(hu,i.options.tabSize,hr);hs.start=hs.pos=hq||0;if(hu==""){ge(ht,hr.state)}while(!hs.eol()){fl(ht,hs,hr.state);hs.start=hs.pos}}function ge(hr,hq){if(hr.blankLine){return hr.blankLine(hq)}if(!hr.innerMode){return}var i=hd(hr,hq);if(i.mode.blankLine){return i.mode.blankLine(i.state)}}function fl(hv,hu,ht,hq){for(var hr=0;hr<10;hr++){if(hq){hq[0]=hd(hv,ht).mode}var hs=hv.token(hu,ht);if(hu.pos>hu.start){return hs}}throw new Error("Mode "+hv.name+" failed to advance stream.")}var dH=function(hr,i,hq){this.start=hr.start;this.end=hr.pos;this.string=hr.current();this.type=i||null;this.state=hq};function cT(hx,hv,hs,hr){var hw=hx.doc,ht=hw.mode,i;hv=gD(hw,hv);var hz=f4(hw,hv.line),hq=fL(hx,hv.line,hs);var hy=new fH(hz.text,hx.options.tabSize,hq),hu;if(hr){hu=[]}while((hr||hy.pos<hv.ch)&&!hy.eol()){hy.start=hy.pos;i=fl(ht,hy,hq.state);if(hr){hu.push(new dH(hy,i,cq(hw.mode,hq.state)))}}return hr?hu:new dH(hy,i,hq.state)}function dS(hr,hq){if(hr){for(;;){var i=hr.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i){break}hr=hr.slice(0,i.index)+hr.slice(i.index+i[0].length);var hs=i[1]?"bgClass":"textClass";if(hq[hs]==null){hq[hs]=i[2]}else{if(!(new RegExp("(?:^|s)"+i[2]+"(?:$|s)")).test(hq[hs])){hq[hs]+=" "+i[2]}}}}return hr}function x(hz,hB,hu,hr,hv,hs,ht){var hq=hu.flattenSpans;if(hq==null){hq=hz.options.flattenSpans}var hx=0,hw=null;var hA=new fH(hB,hz.options.tabSize,hr),i;var hD=hz.options.addModeClass&&[null];if(hB==""){dS(ge(hu,hr.state),hs)}while(!hA.eol()){if(hA.pos>hz.options.maxHighlightLength){hq=false;if(ht){d6(hz,hB,hr,hA.pos)}hA.pos=hB.length;i=null}else{i=dS(fl(hu,hA,hr.state,hD),hs)}if(hD){var hC=hD[0].name;if(hC){i="m-"+(i?hC+" "+i:hC)}}if(!hq||hw!=i){while(hx<hA.start){hx=Math.min(hA.start,hx+5000);hv(hx,hw)}hw=i}hA.start=hA.pos}while(hx<hA.pos){var hy=Math.min(hA.pos,hx+5000);hv(hy,hw);hx=hy}}function c1(hw,hq,ht){var hr,hu,hv=hw.doc;var hs=ht?-1:hq-(hw.doc.mode.innerMode?1000:100);for(var hz=hq;hz>hs;--hz){if(hz<=hv.first){return hv.first}var hy=f4(hv,hz-1),i=hy.stateAfter;if(i&&(!ht||hz+(i instanceof aQ?i.lookAhead:0)<=hv.modeFrontier)){return hz}var hx=cd(hy.text,null,hw.options.tabSize);if(hu==null||hr>hx){hu=hz-1;hr=hx}}return hu}function hj(hr,ht){hr.modeFrontier=Math.min(hr.modeFrontier,ht);if(hr.highlightFrontier<ht-10){return}var hs=hr.first;for(var i=ht-1;i>hs;i--){var hq=f4(hr,i).stateAfter;if(hq&&(!(hq instanceof aQ)||i+hq.lookAhead<ht)){hs=i+1;break}}hr.highlightFrontier=Math.min(hr.highlightFrontier,hs)}var ha=function(hr,hq,i){this.text=hr;dy(this,hq);this.height=i?i(this):1};ha.prototype.lineNo=function(){return b8(this)};bT(ha);function e2(hq,ht,hr,i){hq.text=ht;if(hq.stateAfter){hq.stateAfter=null}if(hq.styles){hq.styles=null}if(hq.order!=null){hq.order=null}he(hq);dy(hq,hr);var hs=i?i(hq):1;if(hs!=hq.height){hb(hq,hs)}}function bV(i){i.parent=null;he(i)}var ew={};var cp={};function fK(hr,hq){if(!hr||/^\s*$/.test(hr)){return null}var i=hq.addModeClass?cp:ew;return i[hr]||(i[hr]=hr.replace(/\S+/g,"cm-$&"))}function fF(hw,hv){var hu=hc("span",null,null,dv?"padding-right: .1px":null);var ht={pre:hc("pre",[hu],"CodeMirror-line"),content:hu,col:0,pos:0,cm:hw,trailingSpace:false,splitSpaces:(ei||dv)&&hw.getOption("lineWrapping")};hv.measure={};for(var hs=0;hs<=(hv.rest?hv.rest.length:0);hs++){var hy=hs?hv.rest[hs-1]:hv.line,hr=(void 0);ht.pos=0;ht.addToken=u;if(b9(hw.display.measure)&&(hr=a(hy,hw.doc.direction))){ht.addToken=aa(ht.addToken,hr)}ht.map=[];var hq=hv!=hw.display.externalMeasured&&b8(hy);bG(hy,ht,dE(hw,hy,hq));if(hy.styleClasses){if(hy.styleClasses.bgClass){ht.bgClass=gS(hy.styleClasses.bgClass,ht.bgClass||"")}if(hy.styleClasses.textClass){ht.textClass=gS(hy.styleClasses.textClass,ht.textClass||"")}}if(ht.map.length==0){ht.map.push(0,0,ht.content.appendChild(bF(hw.display.measure)))}if(hs==0){hv.measure.map=ht.map;hv.measure.cache={}}else{(hv.measure.maps||(hv.measure.maps=[])).push(ht.map);(hv.measure.caches||(hv.measure.caches=[])).push({})}}if(dv){var hx=ht.content.lastChild;if(/\bcm-tab\b/.test(hx.className)||(hx.querySelector&&hx.querySelector(".cm-tab"))){ht.content.className="cm-tab-wrap-hack"}}aO(hw,"renderLine",hw,hv.line,ht.pre);if(ht.pre.className){ht.textClass=gS(ht.pre.className,ht.textClass||"")}return ht}function f3(hq){var i=g5("span","\u2022","cm-invalidchar");i.title="\\u"+hq.charCodeAt(0).toString(16);i.setAttribute("aria-label",i.title);return i}function u(hA,hv,hF,hC,hy,hI,hu){if(!hv){return}var hE=hA.splitSpaces?c8(hv,hA.trailingSpace):hv;var i=hA.cm.state.specialChars,hq=false;var hD;if(!i.test(hv)){hA.col+=hv.length;hD=document.createTextNode(hE);hA.map.push(hA.pos,hA.pos+hv.length,hD);if(ei&&m<9){hq=true}hA.pos+=hv.length}else{hD=document.createDocumentFragment();var hs=0;while(true){i.lastIndex=hs;var hB=i.exec(hv);var hH=hB?hB.index-hs:hv.length-hs;if(hH){var hx=document.createTextNode(hE.slice(hs,hs+hH));if(ei&&m<9){hD.appendChild(g5("span",[hx]))}else{hD.appendChild(hx)}hA.map.push(hA.pos,hA.pos+hH,hx);hA.col+=hH;hA.pos+=hH}if(!hB){break}hs+=hH+1;var hG=(void 0);if(hB[0]=="\t"){var hz=hA.cm.options.tabSize,hw=hz-hA.col%hz;hG=hD.appendChild(g5("span",cS(hw),"cm-tab"));hG.setAttribute("role","presentation");hG.setAttribute("cm-text","\t");hA.col+=hw}else{if(hB[0]=="\r"||hB[0]=="\n"){hG=hD.appendChild(g5("span",hB[0]=="\r"?"\u240d":"\u2424","cm-invalidchar"));hG.setAttribute("cm-text",hB[0]);hA.col+=1}else{hG=hA.cm.options.specialCharPlaceholder(hB[0]);hG.setAttribute("cm-text",hB[0]);if(ei&&m<9){hD.appendChild(g5("span",[hG]))}else{hD.appendChild(hG)}hA.col+=1}}hA.map.push(hA.pos,hA.pos+1,hG);hA.pos++}}hA.trailingSpace=hE.charCodeAt(hv.length-1)==32;if(hF||hC||hy||hq||hu){var hr=hF||"";if(hC){hr+=hC}if(hy){hr+=hy}var ht=g5("span",[hD],hr,hu);if(hI){ht.title=hI}return hA.content.appendChild(ht)}hA.content.appendChild(hD)}function c8(hv,hu){if(hv.length>1&&!/ /.test(hv)){return hv}var hr=hu,hq="";for(var hs=0;hs<hv.length;hs++){var ht=hv.charAt(hs);if(ht==" "&&hr&&(hs==hv.length-1||hv.charCodeAt(hs+1)==32)){ht="\u00a0"}hq+=ht;hr=ht==" "}return hq}function aa(hq,i){return function(hy,hA,hr,hv,hB,hz,hx){hr=hr?hr+" cm-force-border":"cm-force-border";var hs=hy.pos,hu=hs+hA.length;for(;;){var ht=(void 0);for(var hw=0;hw<i.length;hw++){ht=i[hw];if(ht.to>hs&&ht.from<=hs){break}}if(ht.to>=hu){return hq(hy,hA,hr,hv,hB,hz,hx)}hq(hy,hA.slice(0,ht.to-hs),hr,hv,null,hz,hx);hv=null;hA=hA.slice(ht.to-hs);hs=ht.to}}}function al(hq,hs,i,hr){var ht=!hr&&i.widgetNode;if(ht){hq.map.push(hq.pos,hq.pos+hs,ht)}if(!hr&&hq.cm.display.input.needsContentAttribute){if(!ht){ht=hq.content.appendChild(document.createElement("span"))}ht.setAttribute("cm-marker",i.id)}if(ht){hq.cm.display.input.setUneditable(ht);hq.content.appendChild(ht)}hq.pos+=hs;hq.trailingSpace=false}function bG(hB,hI,hA){var hv=hB.markedSpans,hy=hB.text,hG=0;if(!hv){for(var hw=1;hw<hA.length;hw+=2){hI.addToken(hI,hy.slice(hG,hG=hA[hw]),fK(hA[hw+1],hI.cm.options))}return}var hM=hy.length,hu=0,hL=1,hE="",hN,hC;var hR=0,hq,hQ,hF,hS,hs;for(;;){if(hR==hu){hq=hQ=hF=hS=hC="";hs=null;hR=Infinity;var hx=[],hz=(void 0);for(var hJ=0;hJ<hv.length;++hJ){var hK=hv[hJ],hH=hK.marker;if(hH.type=="bookmark"&&hK.from==hu&&hH.widgetNode){hx.push(hH)}else{if(hK.from<=hu&&(hK.to==null||hK.to>hu||hH.collapsed&&hK.to==hu&&hK.from==hu)){if(hK.to!=null&&hK.to!=hu&&hR>hK.to){hR=hK.to;hQ=""}if(hH.className){hq+=" "+hH.className}if(hH.css){hC=(hC?hC+";":"")+hH.css}if(hH.startStyle&&hK.from==hu){hF+=" "+hH.startStyle}if(hH.endStyle&&hK.to==hR){(hz||(hz=[])).push(hH.endStyle,hK.to)}if(hH.title&&!hS){hS=hH.title}if(hH.collapsed&&(!hs||eq(hs.marker,hH)<0)){hs=hK}}else{if(hK.from>hu&&hR>hK.from){hR=hK.from}}}}if(hz){for(var hP=0;hP<hz.length;hP+=2){if(hz[hP+1]==hR){hQ+=" "+hz[hP]}}}if(!hs||hs.from==hu){for(var hO=0;hO<hx.length;++hO){al(hI,0,hx[hO])}}if(hs&&(hs.from||0)==hu){al(hI,(hs.to==null?hM+1:hs.to)-hu,hs.marker,hs.from==null);if(hs.to==null){return}if(hs.to==hu){hs=false}}}if(hu>=hM){break}var hD=Math.min(hM,hR);while(true){if(hE){var hr=hu+hE.length;if(!hs){var ht=hr>hD?hE.slice(0,hD-hu):hE;hI.addToken(hI,ht,hN?hN+hq:hq,hF,hu+ht.length==hR?hQ:"",hS,hC)}if(hr>=hD){hE=hE.slice(hD-hu);hu=hD;break}hu=hr;hF=""}hE=hy.slice(hG,hG=hA[hL++]);hN=fK(hA[hL++],hI.cm.options)}}}function bO(hr,i,hq){this.line=i;this.rest=g(i);this.size=this.rest?b8(gy(this.rest))-hq+1:1;this.node=this.text=null;this.hidden=gl(hr,i)}function fJ(i,hv,hu){var ht=[],hr;for(var hs=hv;hs<hu;hs=hr){var hq=new bO(i.doc,f4(i.doc,hs),hs);hr=hs+hq.size;ht.push(hq)}return ht}var bI=null;function fg(i){if(bI){bI.ops.push(i)}else{i.ownsGroup=bI={ops:[i],delayedCallbacks:[]}}}function dp(ht){var hs=ht.delayedCallbacks,hr=0;do{for(;hr<hs.length;hr++){hs[hr].call(null)}for(var hq=0;hq<ht.ops.length;hq++){var hu=ht.ops[hq];if(hu.cursorActivityHandlers){while(hu.cursorActivityCalled<hu.cursorActivityHandlers.length){hu.cursorActivityHandlers[hu.cursorActivityCalled++].call(null,hu.cm)}}}}while(hr<hs.length)}function ck(hr,hq){var i=hr.ownsGroup;if(!i){return}try{dp(i)}finally{bI=null;hq(i)}}var bS=null;function am(hw,hu){var hq=eZ(hw,hu);if(!hq.length){return}var hs=Array.prototype.slice.call(arguments,2),hv;if(bI){hv=bI.delayedCallbacks}else{if(bS){hv=bS}else{hv=bS=[];setTimeout(aX,0)}}var hr=function(hx){hv.push(function(){return hq[hx].apply(null,hs)})};for(var ht=0;ht<hq.length;++ht){hr(ht)}}function aX(){var hq=bS;bS=null;for(var hr=0;hr<hq.length;++hr){hq[hr]()}}function aj(i,hr,ht,hu){for(var hq=0;hq<hr.changes.length;hq++){var hs=hr.changes[hq];if(hs=="text"){ga(i,hr)}else{if(hs=="gutter"){dO(i,hr,ht,hu)}else{if(hs=="class"){ed(i,hr)}else{if(hs=="widget"){ax(i,hr,hu)}}}}}hr.changes=null}function gA(i){if(i.node==i.text){i.node=g5("div",null,null,"position: relative");if(i.text.parentNode){i.text.parentNode.replaceChild(i.node,i.text)}i.node.appendChild(i.text);if(ei&&m<8){i.node.style.zIndex=2}}return i.node}function fc(i,hr){var hq=hr.bgClass?hr.bgClass+" "+(hr.line.bgClass||""):hr.line.bgClass;if(hq){hq+=" CodeMirror-linebackground"}if(hr.background){if(hq){hr.background.className=hq}else{hr.background.parentNode.removeChild(hr.background);hr.background=null}}else{if(hq){var hs=gA(hr);hr.background=hs.insertBefore(g5("div",null,hq),hs.firstChild);i.display.input.setUneditable(hr.background)}}}function ev(i,hq){var hr=i.display.externalMeasured;if(hr&&hr.line==hq.line){i.display.externalMeasured=null;hq.measure=hr.measure;return hr.built}return fF(i,hq)}function ga(i,hs){var hq=hs.text.className;var hr=ev(i,hs);if(hs.text==hs.node){hs.node=hr.pre}hs.text.parentNode.replaceChild(hr.pre,hs.text);hs.text=hr.pre;if(hr.bgClass!=hs.bgClass||hr.textClass!=hs.textClass){hs.bgClass=hr.bgClass;hs.textClass=hr.textClass;ed(i,hs)}else{if(hq){hs.text.className=hq}}}function ed(hq,hr){fc(hq,hr);if(hr.line.wrapClass){gA(hr).className=hr.line.wrapClass}else{if(hr.node!=hr.text){hr.node.className=""}}var i=hr.textClass?hr.textClass+" "+(hr.line.textClass||""):hr.line.textClass;hr.text.className=i||""}function dO(hx,hv,hu,hw){if(hv.gutter){hv.node.removeChild(hv.gutter);hv.gutter=null}if(hv.gutterBackground){hv.node.removeChild(hv.gutterBackground);hv.gutterBackground=null}if(hv.line.gutterClass){var hq=gA(hv);hv.gutterBackground=g5("div",null,"CodeMirror-gutter-background "+hv.line.gutterClass,("left: "+(hx.options.fixedGutter?hw.fixedPos:-hw.gutterTotalWidth)+"px; width: "+(hw.gutterTotalWidth)+"px"));hx.display.input.setUneditable(hv.gutterBackground);hq.insertBefore(hv.gutterBackground,hv.text)}var hs=hv.line.gutterMarkers;if(hx.options.lineNumbers||hs){var hy=gA(hv);var ht=hv.gutter=g5("div",null,"CodeMirror-gutter-wrapper",("left: "+(hx.options.fixedGutter?hw.fixedPos:-hw.gutterTotalWidth)+"px"));hx.display.input.setUneditable(ht);hy.insertBefore(ht,hv.text);if(hv.line.gutterClass){ht.className+=" "+hv.line.gutterClass}if(hx.options.lineNumbers&&(!hs||!hs["CodeMirror-linenumbers"])){hv.lineNumber=ht.appendChild(g5("div",e8(hx.options,hu),"CodeMirror-linenumber CodeMirror-gutter-elt",("left: "+(hw.gutterLeft["CodeMirror-linenumbers"])+"px; width: "+(hx.display.lineNumInnerWidth)+"px")))}if(hs){for(var hr=0;hr<hx.options.gutters.length;++hr){var i=hx.options.gutters[hr],hz=hs.hasOwnProperty(i)&&hs[i];if(hz){ht.appendChild(g5("div",[hz],"CodeMirror-gutter-elt",("left: "+(hw.gutterLeft[i])+"px; width: "+(hw.gutterWidth[i])+"px")))}}}}}function ax(i,hq,ht){if(hq.alignable){hq.alignable=null}for(var hs=hq.node.firstChild,hr=(void 0);hs;hs=hr){hr=hs.nextSibling;if(hs.className=="CodeMirror-linewidget"){hq.node.removeChild(hs)}}gh(i,hq,ht)}function aP(i,hr,hs,ht){var hq=ev(i,hr);hr.text=hr.node=hq.pre;if(hq.bgClass){hr.bgClass=hq.bgClass}if(hq.textClass){hr.textClass=hq.textClass}ed(i,hr);dO(i,hr,hs,ht);gh(i,hr,ht);return hr.node}function gh(hq,hs,ht){g9(hq,hs.line,hs,ht,true);if(hs.rest){for(var hr=0;hr<hs.rest.length;hr++){g9(hq,hs.rest[hr],hs,ht,false)}}}function g9(hy,hz,hv,hx,ht){if(!hz.widgets){return}var hq=gA(hv);for(var hs=0,hw=hz.widgets;hs<hw.length;++hs){var hu=hw[hs],hr=g5("div",[hu.node],"CodeMirror-linewidget");if(!hu.handleMouseEvents){hr.setAttribute("cm-ignore-events","true")}bZ(hu,hr,hv,hx);hy.display.input.setUneditable(hr);if(ht&&hu.above){hq.insertBefore(hr,hv.gutter||hv.text)}else{hq.appendChild(hr)}am(hu,"redraw")}}function bZ(hs,hr,i,ht){if(hs.noHScroll){(i.alignable||(i.alignable=[])).push(hr);var hq=ht.wrapperWidth;hr.style.left=ht.fixedPos+"px";if(!hs.coverGutter){hq-=ht.gutterTotalWidth;hr.style.paddingLeft=ht.gutterTotalWidth+"px"}hr.style.width=hq+"px"}if(hs.coverGutter){hr.style.zIndex=5;hr.style.position="relative";if(!hs.noHScroll){hr.style.marginLeft=-ht.gutterTotalWidth+"px"}}}function dt(hr){if(hr.height!=null){return hr.height}var i=hr.doc.cm;if(!i){return 0}if(!hg(document.body,hr.node)){var hq="position: relative;";if(hr.coverGutter){hq+="margin-left: -"+i.display.gutters.offsetWidth+"px;"}if(hr.noHScroll){hq+="width: "+i.display.wrapper.clientWidth+"px;"}ce(i.display.measure,g5("div",[hr.node],null,hq))}return hr.height=hr.node.parentNode.offsetHeight}function bo(hq,i){for(var hr=Q(i);hr!=hq.wrapper;hr=hr.parentNode){if(!hr||(hr.nodeType==1&&hr.getAttribute("cm-ignore-events")=="true")||(hr.parentNode==hq.sizer&&hr!=hq.mover)){return true}}}function fY(i){return i.lineSpace.offsetTop}function b2(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function fU(hs){if(hs.cachedPaddingH){return hs.cachedPaddingH}var hr=ce(hs.measure,g5("pre","x"));var i=window.getComputedStyle?window.getComputedStyle(hr):hr.currentStyle;var hq={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};if(!isNaN(hq.left)&&!isNaN(hq.right)){hs.cachedPaddingH=hq}return hq}function dn(i){return eg-i.display.nativeBarWidth}function dU(i){return i.display.scroller.clientWidth-dn(i)-i.display.barWidth}function dq(i){return i.display.scroller.clientHeight-dn(i)-i.display.barHeight}function cH(hx,ht,hw){var hs=hx.options.lineWrapping;var hu=hs&&dU(hx);if(!ht.measure.heights||hs&&ht.measure.width!=hu){var hv=ht.measure.heights=[];if(hs){ht.measure.width=hu;var hz=ht.text.firstChild.getClientRects();for(var hq=0;hq<hz.length-1;hq++){var hy=hz[hq],hr=hz[hq+1];if(Math.abs(hy.bottom-hr.bottom)>2){hv.push((hy.bottom+hr.top)/2-hw.top)}}}hv.push(hw.bottom-hw.top)}}function cW(hs,hq,ht){if(hs.line==hq){return{map:hs.measure.map,cache:hs.measure.cache}}for(var hr=0;hr<hs.rest.length;hr++){if(hs.rest[hr]==hq){return{map:hs.measure.maps[hr],cache:hs.measure.caches[hr]}}}for(var hu=0;hu<hs.rest.length;hu++){if(b8(hs.rest[hu])>ht){return{map:hs.measure.maps[hu],cache:hs.measure.caches[hu],before:true}}}}function dx(i,hr){hr=z(hr);var ht=b8(hr);var hq=i.display.externalMeasured=new bO(i.doc,hr,ht);hq.lineN=ht;var hs=hq.built=fF(i,hq);hq.text=hs.pre;ce(i.display.lineMeasure,hs.pre);return hq}function eU(i,hq,hs,hr){return F(i,bi(i,hq),hs,hr)}function f1(i,hr){if(hr>=i.display.viewFrom&&hr<i.display.viewTo){return i.display.view[d0(i,hr)]}var hq=i.display.externalMeasured;if(hq&&hr>=hq.lineN&&hr<hq.lineN+hq.size){return hq}}function bi(i,hr){var hs=b8(hr);var hq=f1(i,hs);if(hq&&!hq.text){hq=null}else{if(hq&&hq.changes){aj(i,hq,hs,f2(i));i.curOp.forceUpdate=true}}if(!hq){hq=dx(i,hr)}var ht=cW(hq,hr,hs);return{line:hr,view:hq,rect:null,map:ht.map,cache:ht.cache,before:ht.before,hasHeights:false}}function F(i,hv,ht,hq,hs){if(hv.before){ht=-1}var hr=ht+(hq||""),hu;if(hv.cache.hasOwnProperty(hr)){hu=hv.cache[hr]}else{if(!hv.rect){hv.rect=hv.view.text.getBoundingClientRect()}if(!hv.hasHeights){cH(i,hv.view,hv.rect);hv.hasHeights=true}hu=l(i,hv,ht,hq);if(!hu.bogus){hv.cache[hr]=hu}}return{left:hu.left,right:hu.right,top:hs?hu.rtop:hu.top,bottom:hs?hu.rbottom:hu.bottom}}var fk={left:0,right:0,top:0,bottom:0};function aV(hr,hq,hx){var ht,hs,hv,hy,hu,hz;for(var hw=0;hw<hr.length;hw+=3){hu=hr[hw];hz=hr[hw+1];if(hq<hu){hs=0;hv=1;hy="left"}else{if(hq<hz){hs=hq-hu;hv=hs+1}else{if(hw==hr.length-3||hq==hz&&hr[hw+3]>hq){hv=hz-hu;hs=hv-1;if(hq>=hz){hy="right"}}}}if(hs!=null){ht=hr[hw+2];if(hu==hz&&hx==(ht.insertLeft?"left":"right")){hy=hx}if(hx=="left"&&hs==0){while(hw&&hr[hw-2]==hr[hw-3]&&hr[hw-1].insertLeft){ht=hr[(hw-=3)+2];hy="left"}}if(hx=="right"&&hs==hz-hu){while(hw<hr.length-3&&hr[hw+3]==hr[hw+4]&&!hr[hw+5].insertLeft){ht=hr[(hw+=3)+2];hy="right"}}break}}return{node:ht,start:hs,end:hv,collapse:hy,coverStart:hu,coverEnd:hz}}function fG(hr,hq){var ht=fk;if(hq=="left"){for(var hs=0;hs<hr.length;hs++){if((ht=hr[hs]).left!=ht.right){break}}}else{for(var hu=hr.length-1;hu>=0;hu--){if((ht=hr[hu]).left!=ht.right){break}}}return ht}function l(hy,hI,hB,hv){var hz=aV(hI.map,hB,hv);var hG=hz.node,hu=hz.start,ht=hz.end,hq=hz.collapse;var hr;if(hG.nodeType==3){for(var hw=0;hw<4;hw++){while(hu&&gd(hI.line.text.charAt(hz.coverStart+hu))){--hu}while(hz.coverStart+ht<hz.coverEnd&&gd(hI.line.text.charAt(hz.coverStart+ht))){++ht}if(ei&&m<9&&hu==0&&ht==hz.coverEnd-hz.coverStart){hr=hG.parentNode.getBoundingClientRect()}else{hr=fG(cO(hG,hu,ht).getClientRects(),hv)}if(hr.left||hr.right||hu==0){break}ht=hu;hu=hu-1;hq="right"}if(ei&&m<11){hr=fA(hy.display.measure,hr)}}else{if(hu>0){hq=hv="right"}var hs;if(hy.options.lineWrapping&&(hs=hG.getClientRects()).length>1){hr=hs[hv=="right"?hs.length-1:0]}else{hr=hG.getBoundingClientRect()}}if(ei&&m<9&&!hu&&(!hr||!hr.left&&!hr.right)){var hx=hG.parentNode.getClientRects()[0];if(hx){hr={left:hx.left,right:hx.left+ea(hy.display),top:hx.top,bottom:hx.bottom}}else{hr=fk}}var hE=hr.top-hI.rect.top,hC=hr.bottom-hI.rect.top;var hK=(hE+hC)/2;var hJ=hI.view.measure.heights;var hH=0;for(;hH<hJ.length-1;hH++){if(hK<hJ[hH]){break}}var hF=hH?hJ[hH-1]:0,hD=hJ[hH];var hA={left:(hq=="right"?hr.right:hr.left)-hI.rect.left,right:(hq=="left"?hr.left:hr.right)-hI.rect.left,top:hF,bottom:hD};if(!hr.left&&!hr.right){hA.bogus=true}if(!hy.options.singleCursorHeightPerLine){hA.rtop=hE;hA.rbottom=hC}return hA}function fA(hr,hs){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!aW(hr)){return hs}var hq=screen.logicalXDPI/screen.deviceXDPI;var i=screen.logicalYDPI/screen.deviceYDPI;return{left:hs.left*hq,right:hs.right*hq,top:hs.top*i,bottom:hs.bottom*i}}function aE(hr){if(hr.measure){hr.measure.cache={};hr.measure.heights=null;if(hr.rest){for(var hq=0;hq<hr.rest.length;hq++){hr.measure.caches[hq]={}}}}}function a0(hq){hq.display.externalMeasure=null;eD(hq.display.lineMeasure);for(var hr=0;hr<hq.display.view.length;hr++){aE(hq.display.view[hr])}}function ar(i){a0(i);i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null;if(!i.options.lineWrapping){i.display.maxLineChanged=true}i.display.lineNumChars=null}function cX(){if(dL&&aY){return -(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft))}return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function cV(){if(dL&&aY){return -(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop))}return window.pageYOffset||(document.documentElement||document.body).scrollTop}function eh(hr){var hq=0;if(hr.widgets){for(var hs=0;hs<hr.widgets.length;++hs){if(hr.widgets[hs].above){hq+=dt(hr.widgets[hs])}}}return hq}function fD(hv,hs,hu,hq,hr){if(!hr){var hw=eh(hs);hu.top+=hw;hu.bottom+=hw}if(hq=="line"){return hu}if(!hq){hq="local"}var ht=b7(hs);if(hq=="local"){ht+=fY(hv.display)}else{ht-=hv.display.viewOffset}if(hq=="page"||hq=="window"){var i=hv.display.lineSpace.getBoundingClientRect();ht+=i.top+(hq=="window"?0:cV());var hx=i.left+(hq=="window"?0:cX());hu.left+=hx;hu.right+=hx}hu.top+=ht;hu.bottom+=ht;return hu}function hl(hq,ht,hr){if(hr=="div"){return ht}var hv=ht.left,hu=ht.top;if(hr=="page"){hv-=cX();hu-=cV()}else{if(hr=="local"||!hr){var hs=hq.display.sizer.getBoundingClientRect();hv+=hs.left;hu+=hs.top}}var i=hq.display.lineSpace.getBoundingClientRect();return{left:hv-i.left,top:hu-i.top}}function de(i,ht,hs,hr,hq){if(!hr){hr=f4(i.doc,ht.line)}return fD(i,hr,eU(i,hr,ht.ch,hq),hs)}function eu(hA,hy,hr,hv,hC,hw){hv=hv||f4(hA.doc,hy.line);if(!hC){hC=bi(hA,hv)}function ht(hF,hE){var hD=F(hA,hC,hF,hE?"right":"left",hw);if(hE){hD.left=hD.right}else{hD.right=hD.left}return fD(hA,hv,hD,hr)}var hu=a(hv,hA.doc.direction),i=hy.ch,hz=hy.sticky;if(i>=hv.text.length){i=hv.text.length;hz="before"}else{if(i<=0){i=0;hz="after"}}if(!hu){return ht(hz=="before"?i-1:i,hz=="before")}function hB(hG,hD,hH){var hE=hu[hD],hF=hE.level==1;return ht(hH?hG-1:hG,hF!=hH)}var hq=aS(hu,i,hz);var hx=fS;var hs=hB(i,hq,hz=="before");if(hx!=null){hs.other=hB(i,hx,hz!="before")}return hs}function ee(i,ht){var hs=0;ht=gD(i.doc,ht);if(!i.options.lineWrapping){hs=ea(i.display)*ht.ch}var hq=f4(i.doc,ht.line);var hr=b7(hq)+fY(i.display);return{left:hs,right:hs,top:hr,bottom:hr+hq.height}}function g3(i,hq,hs,hr,hu){var ht=ac(i,hq,hs);ht.xRel=hu;if(hr){ht.outside=true}return ht}function gL(hw,hu,ht){var hv=hw.doc;ht+=hw.display.viewOffset;if(ht<0){return g3(hv.first,0,null,true,-1)}var hs=b1(hv,ht),hx=hv.first+hv.size-1;if(hs>hx){return g3(hv.first+hv.size-1,f4(hv,hx).text.length,null,true,1)}if(hu<0){hu=0}var hr=f4(hv,hs);for(;;){var hy=du(hw,hr,hs,hu,ht);var hq=cE(hr,hy.ch+(hy.xRel>0?1:0));if(!hq){return hy}var i=hq.find(1);if(i.line==hs){return i}hr=f4(hv,hs=i.line)}}function bD(i,hr,ht,hu){hu-=eh(hr);var hq=hr.text.length;var hs=cP(function(hv){return F(i,ht,hv-1).bottom<=hu},hq,0);hq=cP(function(hv){return F(i,ht,hv).top>hu},hs,hq);return{begin:hs,end:hq}}function bB(i,hq,hs,ht){if(!hs){hs=bi(i,hq)}var hr=fD(i,hq,F(i,hs,ht),"line").top;return bD(i,hq,hs,hr)}function aA(hq,i,hs,hr){return hq.bottom<=hs?false:hq.top>hs?true:(hr?hq.left:hq.right)>i}function du(hs,hq,hw,hv,hu){hu-=b7(hq);var hA=bi(hs,hq);var hJ=eh(hq);var hH=0,hr=hq.text.length,hE=true;var hC=a(hq,hs.doc.direction);if(hC){var hB=(hs.options.lineWrapping?g0:gF)(hs,hq,hw,hA,hC,hv,hu);hE=hB.level!=1;hH=hE?hB.from:hB.to-1;hr=hE?hB.to:hB.from-1}var ht=null,hy=null;var hz=cP(function(hK){var hL=F(hs,hA,hK);hL.top+=hJ;hL.bottom+=hJ;if(!aA(hL,hv,hu,false)){return false}if(hL.top<=hu&&hL.left<=hv){ht=hK;hy=hL}return true},hH,hr);var i,hI,hG=false;if(hy){var hF=hv-hy.left<hy.right-hv,hx=hF==hE;hz=ht+(hx?0:1);hI=hx?"after":"before";i=hF?hy.left:hy.right}else{if(!hE&&(hz==hr||hz==hH)){hz++}hI=hz==0?"after":hz==hq.text.length?"before":(F(hs,hA,hz-(hE?1:0)).bottom+hJ<=hu)==hE?"after":"before";var hD=eu(hs,ac(hw,hz,hI),"line",hq,hA);i=hD.left;hG=hu<hD.top||hu>=hD.bottom}hz=eX(hq.text,hz,1);return g3(hw,hz,hI,hG,hv-i)}function gF(hy,hu,ht,hz,hs,hx,hw){var hv=cP(function(hC){var hA=hs[hC],hB=hA.level!=1;return aA(eu(hy,ac(ht,hB?hA.to:hA.from,hB?"before":"after"),"line",hu,hz),hx,hw,true)},0,hs.length-1);var hr=hs[hv];if(hv>0){var hq=hr.level!=1;var i=eu(hy,ac(ht,hq?hr.from:hr.to,hq?"after":"before"),"line",hu,hz);if(aA(i,hx,hw,true)&&i.top>hw){hr=hs[hv-1]}}return hr}function g0(hD,hy,hB,hG,hv,hC,hA){var hu=bD(hD,hy,hG,hA);var ht=hu.begin;var hw=hu.end;if(/\s/.test(hy.text.charAt(hw-1))){hw--}var hs=null,hE=null;for(var hx=0;hx<hv.length;hx++){var hq=hv[hx];if(hq.from>=hw||hq.to<=ht){continue}var hr=hq.level!=1;var hF=F(hD,hG,hr?Math.min(hw,hq.to)-1:Math.max(ht,hq.from)).right;var hz=hF<hC?hC-hF+1000000000:hF-hC;if(!hs||hE>hz){hs=hq;hE=hz}}if(!hs){hs=hv[hv.length-1]}if(hs.from<ht){hs={from:ht,to:hs.to,level:hs.level}}if(hs.to>hw){hs={from:hs.from,to:hw,level:hs.level}}return hs}var aR;function bb(hs){if(hs.cachedTextHeight!=null){return hs.cachedTextHeight}if(aR==null){aR=g5("pre");for(var hr=0;hr<49;++hr){aR.appendChild(document.createTextNode("x"));aR.appendChild(g5("br"))}aR.appendChild(document.createTextNode("x"))}ce(hs.measure,aR);var hq=aR.offsetHeight/50;if(hq>3){hs.cachedTextHeight=hq}eD(hs.measure);return hq||1}function ea(ht){if(ht.cachedCharWidth!=null){return ht.cachedCharWidth}var i=g5("span","xxxxxxxxxx");var hs=g5("pre",[i]);ce(ht.measure,hs);var hr=i.getBoundingClientRect(),hq=(hr.right-hr.left)/10;if(hq>2){ht.cachedCharWidth=hq}return hq||10}function f2(hq){var hv=hq.display,ht={},hs={};var hu=hv.gutters.clientLeft;for(var hw=hv.gutters.firstChild,hr=0;hw;hw=hw.nextSibling,++hr){ht[hq.options.gutters[hr]]=hw.offsetLeft+hw.clientLeft+hu;hs[hq.options.gutters[hr]]=hw.clientWidth}return{fixedPos:ey(hv),gutterTotalWidth:hv.gutters.offsetWidth,gutterLeft:ht,gutterWidth:hs,wrapperWidth:hv.wrapper.clientWidth}}function ey(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function br(i){var hr=bb(i.display),hq=i.options.lineWrapping;var hs=hq&&Math.max(5,i.display.scroller.clientWidth/ea(i.display)-3);return function(hu){if(gl(i.doc,hu)){return 0}var ht=0;if(hu.widgets){for(var hv=0;hv<hu.widgets.length;hv++){if(hu.widgets[hv].height){ht+=hu.widgets[hv].height}}}if(hq){return ht+(Math.ceil(hu.text.length/hs)||1)*hr}else{return ht+hr}}}function af(i){var hr=i.doc,hq=br(i);hr.iter(function(hs){var ht=hq(hs);if(ht!=hs.height){hb(hs,ht)}})}function cQ(hy,ht,hq,hr){var hu=hy.display;if(!hq&&Q(ht).getAttribute("cm-not-content")=="true"){return null}var hx,hv,i=hu.lineSpace.getBoundingClientRect();try{hx=ht.clientX-i.left;hv=ht.clientY-i.top}catch(ht){return null}var hw=gL(hy,hx,hv),hz;if(hr&&hw.xRel==1&&(hz=f4(hy.doc,hw.line).text).length==hw.ch){var hs=cd(hz,hz.length,hy.options.tabSize)-hz.length;hw=ac(hw.line,Math.max(0,Math.round((hx-fU(hy.display).left)/ea(hy.display))-hs))}return hw}function d0(hq,ht){if(ht>=hq.display.viewTo){return null}ht-=hq.display.viewFrom;if(ht<0){return null}var hr=hq.display.view;for(var hs=0;hs<hr.length;hs++){ht-=hr[hs].size;if(ht<0){return hs}}}function bW(i){i.display.input.showSelection(i.display.input.prepareSelection())}function gB(hx,hq){if(hq===void 0){hq=true}var hw=hx.doc,hy={};var hv=hy.cursors=document.createDocumentFragment();var hr=hy.selection=document.createDocumentFragment();for(var ht=0;ht<hw.sel.ranges.length;ht++){if(!hq&&ht==hw.sel.primIndex){continue}var hu=hw.sel.ranges[ht];if(hu.from().line>=hx.display.viewTo||hu.to().line<hx.display.viewFrom){continue}var hs=hu.empty();if(hs||hx.options.showCursorWhenSelecting){C(hx,hu.head,hv)}if(!hs){bX(hx,hu,hr)}}return hy}function C(i,hs,hr){var hu=eu(i,hs,"div",null,null,!i.options.singleCursorHeightPerLine);var ht=hr.appendChild(g5("div","\u00a0","CodeMirror-cursor"));ht.style.left=hu.left+"px";ht.style.top=hu.top+"px";ht.style.height=Math.max(0,hu.bottom-hu.top)*i.options.cursorHeight+"px";if(hu.other){var hq=hr.appendChild(g5("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));hq.style.display="";hq.style.left=hu.other.left+"px";hq.style.top=hu.other.top+"px";hq.style.height=(hu.other.bottom-hu.other.top)*0.85+"px"}}function gV(hq,i){return hq.top-i.top||hq.left-i.left}function bX(hu,hA,hv){var hD=hu.display,hH=hu.doc;var i=document.createDocumentFragment();var hz=fU(hu.display),hs=hz.left;var hE=Math.max(hD.sizerWidth,dU(hu)-hD.sizer.offsetLeft)-hz.right;var ht=hH.direction=="ltr";function hB(hL,hK,hJ,hI){if(hK<0){hK=0}hK=Math.round(hK);hI=Math.round(hI);i.appendChild(g5("div",null,"CodeMirror-selected",("position: absolute; left: "+hL+"px;\n top: "+hK+"px; width: "+(hJ==null?hE-hL:hJ)+"px;\n height: "+(hI-hK)+"px")))}function hq(hR,hJ,hQ){var hN=f4(hH,hR);var hO=hN.text.length;var hI,hM;function hP(hT,hS){return de(hu,ac(hR,hT),"div",hN,hS)}function hK(hX,hS,hT){var hV=bB(hu,hN,null,hX);var hW=(hS=="ltr")==(hT=="after")?"left":"right";var hU=hT=="after"?hV.begin:hV.end-(/\s/.test(hN.text.charAt(hV.end-1))?2:1);return hP(hU,hW)[hW]}var hL=a(hN,hH.direction);eG(hL,hJ||0,hQ==null?hO:hQ,function(h3,hS,hY,h6){var h9=hY=="ltr";var h4=hP(h3,h9?"left":"right");var h2=hP(hS-1,h9?"right":"left");var h8=hJ==null&&h3==0,h5=hQ==null&&hS==hO;var hU=h6==0,hW=!hL||h6==hL.length-1;if(h2.top-h4.top<=3){var hV=(ht?h8:h5)&&hU;var hX=(ht?h5:h8)&&hW;var hT=hV?hs:(h9?h4:h2).left;var ia=hX?hE:(h9?h2:h4).right;hB(hT,h4.top,ia-hT,h4.bottom)}else{var h0,hZ,h7,h1;if(h9){h0=ht&&h8&&hU?hs:h4.left;hZ=ht?hE:hK(h3,hY,"before");h7=ht?hs:hK(hS,hY,"after");h1=ht&&h5&&hW?hE:h2.right}else{h0=!ht?hs:hK(h3,hY,"before");hZ=!ht&&h8&&hU?hE:h4.right;h7=!ht&&h5&&hW?hs:h2.left;h1=!ht?hE:hK(hS,hY,"after")}hB(h0,h4.top,hZ-h0,h4.bottom);if(h4.bottom<h2.top){hB(hs,h4.bottom,null,h2.top)}hB(h7,h2.top,h1-h7,h2.bottom)}if(!hI||gV(h4,hI)<0){hI=h4}if(gV(h2,hI)<0){hI=h2}if(!hM||gV(h4,hM)<0){hM=h4}if(gV(h2,hM)<0){hM=h2}});return{start:hI,end:hM}}var hG=hA.from(),hF=hA.to();if(hG.line==hF.line){hq(hG.line,hG.ch,hF.ch)}else{var hr=f4(hH,hG.line),hx=f4(hH,hF.line);var hw=z(hr)==z(hx);var hy=hq(hG.line,hG.ch,hw?hr.text.length+1:null).end;var hC=hq(hF.line,hw?0:null,hF.ch).start;if(hw){if(hy.top<hC.top-2){hB(hy.right,hy.top,null,hy.bottom);hB(hs,hC.top,hC.left,hC.bottom)}else{hB(hy.right,hy.top,hC.left-hy.right,hy.bottom)}}if(hy.bottom<hC.top){hB(hs,hy.bottom,null,hC.top)}}hv.appendChild(i)}function q(i){if(!i.state.focused){return}var hr=i.display;clearInterval(hr.blinker);var hq=true;hr.cursorDiv.style.visibility="";if(i.options.cursorBlinkRate>0){hr.blinker=setInterval(function(){return hr.cursorDiv.style.visibility=(hq=!hq)?"":"hidden"},i.options.cursorBlinkRate)}else{if(i.options.cursorBlinkRate<0){hr.cursorDiv.style.visibility="hidden"}}}function t(i){if(!i.state.focused){i.display.input.focus();c4(i)}}function at(i){i.state.delayingBlurEvent=true;setTimeout(function(){if(i.state.delayingBlurEvent){i.state.delayingBlurEvent=false;a8(i)}},100)}function c4(i,hq){if(i.state.delayingBlurEvent){i.state.delayingBlurEvent=false}if(i.options.readOnly=="nocursor"){return}if(!i.state.focused){aO(i,"focus",i,hq);i.state.focused=true;gs(i.display.wrapper,"CodeMirror-focused");if(!i.curOp&&i.display.selForContextMenu!=i.doc.sel){i.display.input.reset();if(dv){setTimeout(function(){return i.display.input.reset(true)},20)}}i.display.input.receivedFocus()}q(i)}function a8(i,hq){if(i.state.delayingBlurEvent){return}if(i.state.focused){aO(i,"blur",i,hq);i.state.focused=false;h(i.display.wrapper,"CodeMirror-focused")}clearInterval(i.display.blinker);setTimeout(function(){if(!i.state.focused){i.display.shift=false}},150)}function bm(hx){var hv=hx.display;var hr=hv.lineDiv.offsetTop;for(var hs=0;hs<hv.view.length;hs++){var hy=hv.view[hs],hz=(void 0);if(hy.hidden){continue}if(ei&&m<8){var hu=hy.node.offsetTop+hy.node.offsetHeight;hz=hu-hr;hr=hu}else{var ht=hy.node.getBoundingClientRect();hz=ht.bottom-ht.top}var hw=hy.line.height-hz;if(hz<2){hz=bb(hv)}if(hw>0.005||hw<-0.005){hb(hy.line,hz);cy(hy.line);if(hy.rest){for(var hq=0;hq<hy.rest.length;hq++){cy(hy.rest[hq])}}}}}function cy(hr){if(hr.widgets){for(var hs=0;hs<hr.widgets.length;++hs){var hq=hr.widgets[hs],ht=hq.node.parentNode;if(ht){hq.height=ht.offsetHeight}}}}function ct(hs,hw,hr){var ht=hr&&hr.top!=null?Math.max(0,hr.top):hs.scroller.scrollTop;ht=Math.floor(ht-fY(hs));var i=hr&&hr.bottom!=null?hr.bottom:ht+hs.wrapper.clientHeight;var hu=b1(hw,ht),hv=b1(hw,i);if(hr&&hr.ensure){var hq=hr.ensure.from.line,hx=hr.ensure.to.line;if(hq<hu){hu=hq;hv=b1(hw,b7(f4(hw,hq))+hs.wrapper.clientHeight)}else{if(Math.min(hx,hw.lastLine())>=hv){hu=b1(hw,b7(f4(hw,hx))-hs.wrapper.clientHeight);hv=hx}}}return{from:hu,to:Math.max(hv,hu+1)}}function fo(hy){var hw=hy.display,hx=hw.view;if(!hw.alignWidgets&&(!hw.gutters.firstChild||!hy.options.fixedGutter)){return}var hu=ey(hw)-hw.scroller.scrollLeft+hy.doc.scrollLeft;var hq=hw.gutters.offsetWidth,hr=hu+"px";for(var ht=0;ht<hx.length;ht++){if(!hx[ht].hidden){if(hy.options.fixedGutter){if(hx[ht].gutter){hx[ht].gutter.style.left=hr}if(hx[ht].gutterBackground){hx[ht].gutterBackground.style.left=hr}}var hv=hx[ht].alignable;if(hv){for(var hs=0;hs<hv.length;hs++){hv[hs].style.left=hr}}}}if(hy.options.fixedGutter){hw.gutters.style.left=(hu+hq)+"px"}}function eH(i){if(!i.options.lineNumbers){return false}var hu=i.doc,hq=e8(i.options,hu.first+hu.size-1),ht=i.display;if(hq.length!=ht.lineNumChars){var hv=ht.measure.appendChild(g5("div",[g5("div",hq)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var hr=hv.firstChild.offsetWidth,hs=hv.offsetWidth-hr;ht.lineGutter.style.width="";ht.lineNumInnerWidth=Math.max(hr,ht.lineGutter.offsetWidth-hs)+1;ht.lineNumWidth=ht.lineNumInnerWidth+hs;ht.lineNumChars=ht.lineNumInnerWidth?hq.length:-1;ht.lineGutter.style.width=ht.lineNumWidth+"px";dz(i);return true}return false}function eI(hq,hs){if(a4(hq,"scrollCursorIntoView")){return}var hu=hq.display,hr=hu.sizer.getBoundingClientRect(),i=null;if(hs.top+hr.top<0){i=true}else{if(hs.bottom+hr.top>(window.innerHeight||document.documentElement.clientHeight)){i=false}}if(i!=null&&!gi){var ht=g5("div","\u200b",null,("position: absolute;\n top: "+(hs.top-hu.viewOffset-fY(hq.display))+"px;\n height: "+(hs.bottom-hs.top+dn(hq)+hu.barHeight)+"px;\n left: "+(hs.left)+"px; width: "+(Math.max(2,hs.right-hs.left))+"px;"));hq.display.lineSpace.appendChild(ht);ht.scrollIntoView(i);hq.display.lineSpace.removeChild(ht)}}function G(hA,hx,ht,hs){if(hs==null){hs=0}var hy;if(!hA.options.lineWrapping&&hx==ht){hx=hx.ch?ac(hx.line,hx.sticky=="before"?hx.ch-1:hx.ch,"after"):hx;ht=hx.sticky=="before"?ac(hx.line,hx.ch+1,"before"):hx}for(var hu=0;hu<5;hu++){var hv=false;var hz=eu(hA,hx);var i=!ht||ht==hx?hz:eu(hA,ht);hy={left:Math.min(hz.left,i.left),top:Math.min(hz.top,i.top)-hs,right:Math.max(hz.left,i.left),bottom:Math.max(hz.bottom,i.bottom)+hs};var hr=L(hA,hy);var hw=hA.doc.scrollTop,hq=hA.doc.scrollLeft;if(hr.scrollTop!=null){B(hA,hr.scrollTop);if(Math.abs(hA.doc.scrollTop-hw)>1){hv=true}}if(hr.scrollLeft!=null){bY(hA,hr.scrollLeft);if(Math.abs(hA.doc.scrollLeft-hq)>1){hv=true}}if(!hv){break}}return hy}function H(i,hq){var hr=L(i,hq);if(hr.scrollTop!=null){B(i,hr.scrollTop)}if(hr.scrollLeft!=null){bY(i,hr.scrollLeft)}}function L(hy,hx){var hv=hy.display,ht=bb(hy.display);if(hx.top<0){hx.top=0}var hr=hy.curOp&&hy.curOp.scrollTop!=null?hy.curOp.scrollTop:hv.scroller.scrollTop;var hA=dq(hy),hC={};if(hx.bottom-hx.top>hA){hx.bottom=hx.top+hA}var hq=hy.doc.height+b2(hv);var i=hx.top<ht,hu=hx.bottom>hq-ht;if(hx.top<hr){hC.scrollTop=i?0:hx.top}else{if(hx.bottom>hr+hA){var hw=Math.min(hx.top,(hu?hq:hx.bottom)-hA);if(hw!=hr){hC.scrollTop=hw}}}var hB=hy.curOp&&hy.curOp.scrollLeft!=null?hy.curOp.scrollLeft:hv.scroller.scrollLeft;var hz=dU(hy)-(hy.options.fixedGutter?hv.gutters.offsetWidth:0);var hs=hx.right-hx.left>hz;if(hs){hx.right=hx.left+hz}if(hx.left<10){hC.scrollLeft=0}else{if(hx.left<hB){hC.scrollLeft=Math.max(0,hx.left-(hs?0:10))}else{if(hx.right>hz+hB-3){hC.scrollLeft=hx.right+(hs?0:10)-hz}}}return hC}function db(i,hq){if(hq==null){return}gu(i);i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+hq}function gx(i){gu(i);var hq=i.getCursor();i.curOp.scrollToPos={from:hq,to:hq,margin:i.options.cursorScrollMargin}}function fy(hq,i,hr){if(i!=null||hr!=null){gu(hq)}if(i!=null){hq.curOp.scrollLeft=i}if(hr!=null){hq.curOp.scrollTop=hr}}function cB(i,hq){gu(i);i.curOp.scrollToPos=hq}function gu(i){var hq=i.curOp.scrollToPos;if(hq){i.curOp.scrollToPos=null;var hs=ee(i,hq.from),hr=ee(i,hq.to);cb(i,hs,hr,hq.margin)}}function cb(i,ht,hs,hr){var hq=L(i,{left:Math.min(ht.left,hs.left),top:Math.min(ht.top,hs.top)-hr,right:Math.max(ht.right,hs.right),bottom:Math.max(ht.bottom,hs.bottom)+hr});fy(i,hq.scrollLeft,hq.scrollTop)}function B(i,hq){if(Math.abs(i.doc.scrollTop-hq)<2){return}if(!cR){et(i,{top:hq})}T(i,hq,true);if(cR){et(i)}eR(i,100)}function T(i,hr,hq){hr=Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,hr);if(i.display.scroller.scrollTop==hr&&!hq){return}i.doc.scrollTop=hr;i.display.scrollbars.setScrollTop(hr);if(i.display.scroller.scrollTop!=hr){i.display.scroller.scrollTop=hr}}function bY(i,hs,hr,hq){hs=Math.min(hs,i.display.scroller.scrollWidth-i.display.scroller.clientWidth);if((hr?hs==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-hs)<2)&&!hq){return}i.doc.scrollLeft=hs;fo(i);if(i.display.scroller.scrollLeft!=hs){i.display.scroller.scrollLeft=hs}i.display.scrollbars.setScrollLeft(hs)}function d8(i){var hs=i.display,hr=hs.gutters.offsetWidth;var hq=Math.round(i.doc.height+b2(i.display));return{clientHeight:hs.scroller.clientHeight,viewHeight:hs.wrapper.clientHeight,scrollWidth:hs.scroller.scrollWidth,clientWidth:hs.scroller.clientWidth,viewWidth:hs.wrapper.clientWidth,barLeft:i.options.fixedGutter?hr:0,docHeight:hq,scrollHeight:hq+dn(i)+hs.barHeight,nativeBarWidth:hs.nativeBarWidth,gutterWidth:hr}}var dT=function(hr,hq,i){this.cm=i;var hs=this.vert=g5("div",[g5("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var ht=this.horiz=g5("div",[g5("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");hs.tabIndex=ht.tabIndex=-1;hr(hs);hr(ht);cj(hs,"scroll",function(){if(hs.clientHeight){hq(hs.scrollTop,"vertical")}});cj(ht,"scroll",function(){if(ht.clientWidth){hq(ht.scrollLeft,"horizontal")}});this.checkedZeroWidth=false;if(ei&&m<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}};dT.prototype.update=function(hs){var ht=hs.scrollWidth>hs.clientWidth+1;var hr=hs.scrollHeight>hs.clientHeight+1;var hu=hs.nativeBarWidth;if(hr){this.vert.style.display="block";this.vert.style.bottom=ht?hu+"px":"0";var hq=hs.viewHeight-(ht?hu:0);this.vert.firstChild.style.height=Math.max(0,hs.scrollHeight-hs.clientHeight+hq)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(ht){this.horiz.style.display="block";this.horiz.style.right=hr?hu+"px":"0";this.horiz.style.left=hs.barLeft+"px";var i=hs.viewWidth-hs.barLeft-(hr?hu:0);this.horiz.firstChild.style.width=Math.max(0,hs.scrollWidth-hs.clientWidth+i)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&hs.clientHeight>0){if(hu==0){this.zeroWidthHack()}this.checkedZeroWidth=true}return{right:hr?hu:0,bottom:ht?hu:0}};dT.prototype.setScrollLeft=function(i){if(this.horiz.scrollLeft!=i){this.horiz.scrollLeft=i}if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}};dT.prototype.setScrollTop=function(i){if(this.vert.scrollTop!=i){this.vert.scrollTop=i}if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}};dT.prototype.zeroWidthHack=function(){var i=cu&&!dD?"12px":"18px";this.horiz.style.height=this.vert.style.width=i;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new hp;this.disableVert=new hp};dT.prototype.enableZeroWidthBar=function(hr,i,hq){hr.style.pointerEvents="auto";function hs(){var hu=hr.getBoundingClientRect();var ht=hq=="vert"?document.elementFromPoint(hu.right-1,(hu.top+hu.bottom)/2):document.elementFromPoint((hu.right+hu.left)/2,hu.bottom-1);if(ht!=hr){hr.style.pointerEvents="none"}else{i.set(1000,hs)}}i.set(1000,hs)};dT.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz);i.removeChild(this.vert)};var fT=function(){};fT.prototype.update=function(){return{bottom:0,right:0}};fT.prototype.setScrollLeft=function(){};fT.prototype.setScrollTop=function(){};fT.prototype.clear=function(){};function fN(hs,hu){if(!hu){hu=d8(hs)}var hr=hs.display.barWidth,hq=hs.display.barHeight;a7(hs,hu);for(var ht=0;ht<4&&hr!=hs.display.barWidth||hq!=hs.display.barHeight;ht++){if(hr!=hs.display.barWidth&&hs.options.lineWrapping){bm(hs)}a7(hs,d8(hs));hr=hs.display.barWidth;hq=hs.display.barHeight}}function a7(i,hq){var hs=i.display;var hr=hs.scrollbars.update(hq);hs.sizer.style.paddingRight=(hs.barWidth=hr.right)+"px";hs.sizer.style.paddingBottom=(hs.barHeight=hr.bottom)+"px";hs.heightForcer.style.borderBottom=hr.bottom+"px solid transparent";if(hr.right&&hr.bottom){hs.scrollbarFiller.style.display="block";hs.scrollbarFiller.style.height=hr.bottom+"px";hs.scrollbarFiller.style.width=hr.right+"px"}else{hs.scrollbarFiller.style.display=""}if(hr.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter){hs.gutterFiller.style.display="block";hs.gutterFiller.style.height=hr.bottom+"px";hs.gutterFiller.style.width=hq.gutterWidth+"px"}else{hs.gutterFiller.style.display=""}}var bA={"native":dT,"null":fT};function aN(i){if(i.display.scrollbars){i.display.scrollbars.clear();if(i.display.scrollbars.addClass){h(i.display.wrapper,i.display.scrollbars.addClass)}}i.display.scrollbars=new bA[i.options.scrollbarStyle](function(hq){i.display.wrapper.insertBefore(hq,i.display.scrollbarFiller);cj(hq,"mousedown",function(){if(i.state.focused){setTimeout(function(){return i.display.input.focus()},0)}});hq.setAttribute("cm-not-content","true")},function(hr,hq){if(hq=="horizontal"){bY(i,hr)}else{B(i,hr)}},i);if(i.display.scrollbars.addClass){gs(i.display.wrapper,i.display.scrollbars.addClass)}}var eM=0;function dd(i){i.curOp={cm:i,viewChanged:false,startHeight:i.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++eM};fg(i.curOp)}function aw(i){var hq=i.curOp;ck(hq,function(hs){for(var hr=0;hr<hs.ops.length;hr++){hs.ops[hr].cm.curOp=null}dg(hs)})}function dg(hv){var hr=hv.ops;for(var hq=0;hq<hr.length;hq++){cs(hr[hq])}for(var hw=0;hw<hr.length;hw++){az(hr[hw])}for(var hu=0;hu<hr.length;hu++){co(hr[hu])}for(var ht=0;ht<hr.length;ht++){ay(hr[ht])}for(var hs=0;hs<hr.length;hs++){fP(hr[hs])}}function cs(hr){var i=hr.cm,hq=i.display;N(i);if(hr.updateMaxLine){f(i)}hr.mustUpdate=hr.viewChanged||hr.forceUpdate||hr.scrollTop!=null||hr.scrollToPos&&(hr.scrollToPos.from.line<hq.viewFrom||hr.scrollToPos.to.line>=hq.viewTo)||hq.maxLineChanged&&i.options.lineWrapping;hr.update=hr.mustUpdate&&new aU(i,hr.mustUpdate&&{top:hr.scrollTop,ensure:hr.scrollToPos},hr.forceUpdate)}function az(i){i.updatedDisplay=i.mustUpdate&&E(i.cm,i.update)}function co(hr){var i=hr.cm,hq=i.display;if(hr.updatedDisplay){bm(i)}hr.barMeasure=d8(i);if(hq.maxLineChanged&&!i.options.lineWrapping){hr.adjustWidthTo=eU(i,hq.maxLine,hq.maxLine.text.length).left+3;i.display.sizerWidth=hr.adjustWidthTo;hr.barMeasure.scrollWidth=Math.max(hq.scroller.clientWidth,hq.sizer.offsetLeft+hr.adjustWidthTo+dn(i)+i.display.barWidth);hr.maxScrollLeft=Math.max(0,hq.sizer.offsetLeft+hr.adjustWidthTo-dU(i))}if(hr.updatedDisplay||hr.selectionChanged){hr.preparedSelection=hq.input.prepareSelection()}}function ay(hr){var i=hr.cm;if(hr.adjustWidthTo!=null){i.display.sizer.style.minWidth=hr.adjustWidthTo+"px";if(hr.maxScrollLeft<i.doc.scrollLeft){bY(i,Math.min(i.display.scroller.scrollLeft,hr.maxScrollLeft),true)}i.display.maxLineChanged=false}var hq=hr.focus&&hr.focus==em();if(hr.preparedSelection){i.display.input.showSelection(hr.preparedSelection,hq)}if(hr.updatedDisplay||hr.startHeight!=i.doc.height){fN(i,hr.barMeasure)}if(hr.updatedDisplay){d7(i,hr.barMeasure)}if(hr.selectionChanged){q(i)}if(i.state.focused&&hr.updateInput){i.display.input.reset(hr.typing)}if(hq){t(hr.cm)}}function fP(ht){var hy=ht.cm,hv=hy.display,hx=hy.doc;if(ht.updatedDisplay){cK(hy,ht.update)}if(hv.wheelStartX!=null&&(ht.scrollTop!=null||ht.scrollLeft!=null||ht.scrollToPos)){hv.wheelStartX=hv.wheelStartY=null}if(ht.scrollTop!=null){T(hy,ht.scrollTop,ht.forceScroll)}if(ht.scrollLeft!=null){bY(hy,ht.scrollLeft,true,true)}if(ht.scrollToPos){var hw=G(hy,gD(hx,ht.scrollToPos.from),gD(hx,ht.scrollToPos.to),ht.scrollToPos.margin);eI(hy,hw)}var hu=ht.maybeHiddenMarkers,hq=ht.maybeUnhiddenMarkers;if(hu){for(var hs=0;hs<hu.length;++hs){if(!hu[hs].lines.length){aO(hu[hs],"hide")}}}if(hq){for(var hr=0;hr<hq.length;++hr){if(hq[hr].lines.length){aO(hq[hr],"unhide")}}}if(hv.wrapper.offsetHeight){hx.scrollTop=hy.display.scroller.scrollTop}if(ht.changeObjs){aO(hy,"changes",hy,ht.changeObjs)}if(ht.update){ht.update.finish()}}function dh(i,hq){if(i.curOp){return hq()}dd(i);try{return hq()}finally{aw(i)}}function dw(i,hq){return function(){if(i.curOp){return hq.apply(i,arguments)}dd(i);try{return hq.apply(i,arguments)}finally{aw(i)}}}function dG(i){return function(){if(this.curOp){return i.apply(this,arguments)}dd(this);try{return i.apply(this,arguments)}finally{aw(this)}}}function c7(i){return function(){var hq=this.cm;if(!hq||hq.curOp){return i.apply(this,arguments)}dd(hq);try{return i.apply(this,arguments)}finally{aw(hq)}}}function ap(hx,hv,hw,hy){if(hv==null){hv=hx.doc.first}if(hw==null){hw=hx.doc.first+hx.doc.size}if(!hy){hy=0}var hs=hx.display;if(hy&&hw<hs.viewTo&&(hs.updateLineNumbers==null||hs.updateLineNumbers>hv)){hs.updateLineNumbers=hv}hx.curOp.viewChanged=true;if(hv>=hs.viewTo){if(bk&&a9(hx.doc,hv)<hs.viewTo){fe(hx)}}else{if(hw<=hs.viewFrom){if(bk&&eF(hx.doc,hw+hy)>hs.viewFrom){fe(hx)}else{hs.viewFrom+=hy;hs.viewTo+=hy}}else{if(hv<=hs.viewFrom&&hw>=hs.viewTo){fe(hx)}else{if(hv<=hs.viewFrom){var hu=dN(hx,hw,hw+hy,1);if(hu){hs.view=hs.view.slice(hu.index);hs.viewFrom=hu.lineN;hs.viewTo+=hy}else{fe(hx)}}else{if(hw>=hs.viewTo){var hq=dN(hx,hv,hv,-1);if(hq){hs.view=hs.view.slice(0,hq.index);hs.viewTo=hq.lineN}else{fe(hx)}}else{var ht=dN(hx,hv,hv,-1);var hr=dN(hx,hw,hw+hy,1);if(ht&&hr){hs.view=hs.view.slice(0,ht.index).concat(fJ(hx,ht.lineN,hr.lineN)).concat(hs.view.slice(hr.index));hs.viewTo+=hy}else{fe(hx)}}}}}}var i=hs.externalMeasured;if(i){if(hw<i.lineN){i.lineN+=hy}else{if(hv<i.lineN+i.size){hs.externalMeasured=null}}}}function W(hq,hr,hu){hq.curOp.viewChanged=true;var hv=hq.display,ht=hq.display.externalMeasured;if(ht&&hr>=ht.lineN&&hr<ht.lineN+ht.size){hv.externalMeasured=null}if(hr<hv.viewFrom||hr>=hv.viewTo){return}var hs=hv.view[d0(hq,hr)];if(hs.node==null){return}var i=hs.changes||(hs.changes=[]);if(dR(i,hu)==-1){i.push(hu)}}function fe(i){i.display.viewFrom=i.display.viewTo=i.doc.first;i.display.view=[];i.display.viewOffset=0}function dN(hy,hs,hu,hr){var hv=d0(hy,hs),hx,hw=hy.display.view;if(!bk||hu==hy.doc.first+hy.doc.size){return{index:hv,lineN:hu}}var hq=hy.display.viewFrom;for(var ht=0;ht<hv;ht++){hq+=hw[ht].size}if(hq!=hs){if(hr>0){if(hv==hw.length-1){return null}hx=(hq+hw[hv].size)-hs;hv++}else{hx=hq-hs}hs+=hx;hu+=hx}while(a9(hy.doc,hu)!=hu){if(hv==(hr<0?0:hw.length-1)){return null}hu+=hr*hw[hv-(hr<0?1:0)].size;hv+=hr}return{index:hv,lineN:hu}}function dm(i,ht,hs){var hr=i.display,hq=hr.view;if(hq.length==0||ht>=hr.viewTo||hs<=hr.viewFrom){hr.view=fJ(i,ht,hs);hr.viewFrom=ht}else{if(hr.viewFrom>ht){hr.view=fJ(i,ht,hr.viewFrom).concat(hr.view)}else{if(hr.viewFrom<ht){hr.view=hr.view.slice(d0(i,ht))}}hr.viewFrom=ht;if(hr.viewTo<hs){hr.view=hr.view.concat(fJ(i,hr.viewTo,hs))}else{if(hr.viewTo>hs){hr.view=hr.view.slice(0,d0(i,hs))}}}hr.viewTo=hs}function dK(hq){var hr=hq.display.view,hu=0;for(var ht=0;ht<hr.length;ht++){var hs=hr[ht];if(!hs.hidden&&(!hs.node||hs.changes)){++hu}}return hu}function eR(i,hq){if(i.doc.highlightFrontier<i.display.viewTo){i.state.highlight.set(hq,cY(dl,i))}}function dl(i){var ht=i.doc;if(ht.highlightFrontier>=i.display.viewTo){return}var hr=+new Date+i.options.workTime;var hs=fL(i,ht.highlightFrontier);var hq=[];ht.iter(hs.line,Math.min(ht.first+ht.size,i.display.viewTo+500),function(hv){if(hs.line>=i.display.viewFrom){var hy=hv.styles;var hu=hv.text.length>i.options.maxHighlightLength?cq(ht.mode,hs.state):null;var hA=gp(i,hv,hs,true);if(hu){hs.state=hu}hv.styles=hA.styles;var hx=hv.styleClasses,hz=hA.classes;if(hz){hv.styleClasses=hz}else{if(hx){hv.styleClasses=null}}var hB=!hy||hy.length!=hv.styles.length||hx!=hz&&(!hx||!hz||hx.bgClass!=hz.bgClass||hx.textClass!=hz.textClass);for(var hw=0;!hB&&hw<hy.length;++hw){hB=hy[hw]!=hv.styles[hw]}if(hB){hq.push(hs.line)}hv.stateAfter=hs.save();hs.nextLine()}else{if(hv.text.length<=i.options.maxHighlightLength){d6(i,hv.text,hs)}hv.stateAfter=hs.line%5==0?hs.save():null;hs.nextLine()}if(+new Date>hr){eR(i,i.options.workDelay);return true}});ht.highlightFrontier=hs.line;ht.modeFrontier=Math.max(ht.modeFrontier,hs.line);if(hq.length){dh(i,function(){for(var hu=0;hu<hq.length;hu++){W(i,hq[hu],"text")}})}}var aU=function(hq,i,hr){var hs=hq.display;this.viewport=i;this.visible=ct(hs,hq.doc,i);this.editorIsHidden=!hs.wrapper.offsetWidth;this.wrapperHeight=hs.wrapper.clientHeight;this.wrapperWidth=hs.wrapper.clientWidth;this.oldDisplayWidth=dU(hq);this.force=hr;this.dims=f2(hq);this.events=[]};aU.prototype.signal=function(hq,i){if(f9(hq,i)){this.events.push(arguments)}};aU.prototype.finish=function(){var hr=this;for(var hq=0;hq<this.events.length;hq++){aO.apply(null,hr.events[hq])}};function N(i){var hq=i.display;if(!hq.scrollbarsClipped&&hq.scroller.offsetWidth){hq.nativeBarWidth=hq.scroller.offsetWidth-hq.scroller.clientWidth;hq.heightForcer.style.height=dn(i)+"px";hq.sizer.style.marginBottom=-hq.nativeBarWidth+"px";hq.sizer.style.borderRightWidth=dn(i)+"px";hq.scrollbarsClipped=true}}function bC(hq){if(hq.hasFocus()){return null}var hs=em();if(!hs||!hg(hq.display.lineDiv,hs)){return null}var i={activeElt:hs};if(window.getSelection){var hr=window.getSelection();if(hr.anchorNode&&hr.extend&&hg(hq.display.lineDiv,hr.anchorNode)){i.anchorNode=hr.anchorNode;i.anchorOffset=hr.anchorOffset;i.focusNode=hr.focusNode;i.focusOffset=hr.focusOffset}}return i}function j(hq){if(!hq||!hq.activeElt||hq.activeElt==em()){return}hq.activeElt.focus();if(hq.anchorNode&&hg(document.body,hq.anchorNode)&&hg(document.body,hq.focusNode)){var hr=window.getSelection(),i=document.createRange();i.setEnd(hq.anchorNode,hq.anchorOffset);i.collapse(false);hr.removeAllRanges();hr.addRange(i);hr.extend(hq.focusNode,hq.focusOffset)}}function E(hy,hs){var ht=hy.display,hx=hy.doc;if(hs.editorIsHidden){fe(hy);return false}if(!hs.force&&hs.visible.from>=ht.viewFrom&&hs.visible.to<=ht.viewTo&&(ht.updateLineNumbers==null||ht.updateLineNumbers>=ht.viewTo)&&ht.renderedView==ht.view&&dK(hy)==0){return false}if(eH(hy)){fe(hy);hs.dims=f2(hy)}var hr=hx.first+hx.size;var hv=Math.max(hs.visible.from-hy.options.viewportMargin,hx.first);var hw=Math.min(hr,hs.visible.to+hy.options.viewportMargin);if(ht.viewFrom<hv&&hv-ht.viewFrom<20){hv=Math.max(hx.first,ht.viewFrom)}if(ht.viewTo>hw&&ht.viewTo-hw<20){hw=Math.min(hr,ht.viewTo)}if(bk){hv=a9(hy.doc,hv);hw=eF(hy.doc,hw)}var hq=hv!=ht.viewFrom||hw!=ht.viewTo||ht.lastWrapHeight!=hs.wrapperHeight||ht.lastWrapWidth!=hs.wrapperWidth;dm(hy,hv,hw);ht.viewOffset=b7(f4(hy.doc,ht.viewFrom));hy.display.mover.style.top=ht.viewOffset+"px";var i=dK(hy);if(!hq&&i==0&&!hs.force&&ht.renderedView==ht.view&&(ht.updateLineNumbers==null||ht.updateLineNumbers>=ht.viewTo)){return false}var hu=bC(hy);if(i>4){ht.lineDiv.style.display="none"}cN(hy,ht.updateLineNumbers,hs.dims);if(i>4){ht.lineDiv.style.display=""}ht.renderedView=ht.view;j(hu);eD(ht.cursorDiv);eD(ht.selectionDiv);ht.gutters.style.height=ht.sizer.style.minHeight=0;if(hq){ht.lastWrapHeight=hs.wrapperHeight;ht.lastWrapWidth=hs.wrapperWidth;eR(hy,400)}ht.updateLineNumbers=null;return true}function cK(hq,ht){var i=ht.viewport;for(var hs=true;;hs=false){if(!hs||!hq.options.lineWrapping||ht.oldDisplayWidth==dU(hq)){if(i&&i.top!=null){i={top:Math.min(hq.doc.height+b2(hq.display)-dq(hq),i.top)}}ht.visible=ct(hq.display,hq.doc,i);if(ht.visible.from>=hq.display.viewFrom&&ht.visible.to<=hq.display.viewTo){break}}if(!E(hq,ht)){break}bm(hq);var hr=d8(hq);bW(hq);fN(hq,hr);d7(hq,hr);ht.force=false}ht.signal(hq,"update",hq);if(hq.display.viewFrom!=hq.display.reportedViewFrom||hq.display.viewTo!=hq.display.reportedViewTo){ht.signal(hq,"viewportChange",hq,hq.display.viewFrom,hq.display.viewTo);hq.display.reportedViewFrom=hq.display.viewFrom;hq.display.reportedViewTo=hq.display.viewTo}}function et(hq,i){var hs=new aU(hq,i);if(E(hq,hs)){bm(hq);cK(hq,hs);var hr=d8(hq);bW(hq);fN(hq,hr);d7(hq,hr);hs.finish()}}function cN(hB,hs,hA){var hx=hB.display,hD=hB.options.lineNumbers;var hq=hx.lineDiv,hC=hq.firstChild;function hw(hE){var i=hE.nextSibling;if(dv&&cu&&hB.display.currentWheelTarget==hE){hE.style.display="none"}else{hE.parentNode.removeChild(hE)}return i}var hy=hx.view,hv=hx.viewFrom;for(var ht=0;ht<hy.length;ht++){var hu=hy[ht];if(hu.hidden){}else{if(!hu.node||hu.node.parentNode!=hq){var hr=aP(hB,hu,hv,hA);hq.insertBefore(hr,hC)}else{while(hC!=hu.node){hC=hw(hC)}var hz=hD&&hs!=null&&hs<=hv&&hu.lineNumber;if(hu.changes){if(dR(hu.changes,"gutter")>-1){hz=false}aj(hB,hu,hv,hA)}if(hz){eD(hu.lineNumber);hu.lineNumber.appendChild(document.createTextNode(e8(hB.options,hv)))}hC=hu.node.nextSibling}}hv+=hu.size}while(hC){hC=hw(hC)}}function dz(i){var hq=i.display.gutters.offsetWidth;i.display.sizer.style.marginLeft=hq+"px"}function d7(i,hq){i.display.sizer.style.minHeight=hq.docHeight+"px";i.display.heightForcer.style.top=hq.docHeight+"px";i.display.gutters.style.height=(hq.docHeight+i.display.barHeight+dn(i))+"px"}function eP(hq){var hr=hq.display.gutters,hv=hq.options.gutters;eD(hr);var hs=0;for(;hs<hv.length;++hs){var ht=hv[hs];var hu=hr.appendChild(g5("div",null,"CodeMirror-gutter "+ht));if(ht=="CodeMirror-linenumbers"){hq.display.lineGutter=hu;hu.style.width=(hq.display.lineNumWidth||1)+"px"}}hr.style.display=hs?"":"none";dz(hq)}function cD(i){var hq=dR(i.gutters,"CodeMirror-linenumbers");if(hq==-1&&i.lineNumbers){i.gutters=i.gutters.concat(["CodeMirror-linenumbers"])}else{if(hq>-1&&!i.lineNumbers){i.gutters=i.gutters.slice(0);i.gutters.splice(hq,1)}}}var gb=0;var cG=null;if(ei){cG=-0.53}else{if(cR){cG=15}else{if(dL){cG=-0.7}else{if(aM){cG=-1/3}}}}function dk(hr){var hq=hr.wheelDeltaX,i=hr.wheelDeltaY;if(hq==null&&hr.detail&&hr.axis==hr.HORIZONTAL_AXIS){hq=hr.detail}if(i==null&&hr.detail&&hr.axis==hr.VERTICAL_AXIS){i=hr.detail}else{if(i==null){i=hr.wheelDelta}}return{x:hq,y:i}}function aJ(i){var hq=dk(i);hq.x*=cG;hq.y*=cG;return hq}function c(hA,hu){var hC=dk(hu),hE=hC.x,hD=hC.y;var hw=hA.display,hz=hw.scroller;var ht=hz.scrollWidth>hz.clientWidth;var hs=hz.scrollHeight>hz.clientHeight;if(!(hE&&ht||hD&&hs)){return}if(hD&&cu&&dv){outer:for(var hB=hu.target,hy=hw.view;hB!=hz;hB=hB.parentNode){for(var hr=0;hr<hy.length;hr++){if(hy[hr].node==hB){hA.display.currentWheelTarget=hB;break outer}}}}if(hE&&!cR&&!eE&&cG!=null){if(hD&&hs){B(hA,Math.max(0,hz.scrollTop+hD*cG))}bY(hA,Math.max(0,hz.scrollLeft+hE*cG));if(!hD||(hD&&hs)){c9(hu)}hw.wheelStartX=null;return}if(hD&&cG!=null){var hq=hD*cG;var hx=hA.doc.scrollTop,hv=hx+hw.wrapper.clientHeight;if(hq<0){hx=Math.max(0,hx+hq-50)}else{hv=Math.min(hA.doc.height,hv+hq+50)}et(hA,{top:hx,bottom:hv})}if(gb<20){if(hw.wheelStartX==null){hw.wheelStartX=hz.scrollLeft;hw.wheelStartY=hz.scrollTop;hw.wheelDX=hE;hw.wheelDY=hD;setTimeout(function(){if(hw.wheelStartX==null){return}var i=hz.scrollLeft-hw.wheelStartX;var hG=hz.scrollTop-hw.wheelStartY;var hF=(hG&&hw.wheelDY&&hG/hw.wheelDY)||(i&&hw.wheelDX&&i/hw.wheelDX);hw.wheelStartX=hw.wheelStartY=null;if(!hF){return}cG=(cG*gb+hF)/(gb+1);++gb},200)}else{hw.wheelDX+=hE;hw.wheelDY+=hD}}}var g4=function(i,hq){this.ranges=i;this.primIndex=hq};g4.prototype.primary=function(){return this.ranges[this.primIndex]};g4.prototype.equals=function(hq){var hu=this;if(hq==this){return true}if(hq.primIndex!=this.primIndex||hq.ranges.length!=this.ranges.length){return false}for(var hs=0;hs<this.ranges.length;hs++){var hr=hu.ranges[hs],ht=hq.ranges[hs];if(!ad(hr.anchor,ht.anchor)||!ad(hr.head,ht.head)){return false}}return true};g4.prototype.deepCopy=function(){var hs=this;var hq=[];for(var hr=0;hr<this.ranges.length;hr++){hq[hr]=new ex(cI(hs.ranges[hr].anchor),cI(hs.ranges[hr].head))}return new g4(hq,this.primIndex)};g4.prototype.somethingSelected=function(){var hr=this;for(var hq=0;hq<this.ranges.length;hq++){if(!hr.ranges[hq].empty()){return true}}return false};g4.prototype.contains=function(hu,hq){var ht=this;if(!hq){hq=hu}for(var hs=0;hs<this.ranges.length;hs++){var hr=ht.ranges[hs];if(cF(hq,hr.from())>=0&&cF(hu,hr.to())<=0){return hs}}return -1};var ex=function(i,hq){this.anchor=i;this.head=hq};ex.prototype.from=function(){return aB(this.anchor,this.head)};ex.prototype.to=function(){return bR(this.anchor,this.head)};ex.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function cZ(hq,hx){var hs=hq[hx];hq.sort(function(hz,i){return cF(hz.from(),i.from())});hx=dR(hq,hs);for(var hu=1;hu<hq.length;hu++){var hy=hq[hu],hr=hq[hu-1];if(cF(hr.to(),hy.from())>=0){var hv=aB(hr.from(),hy.from()),hw=bR(hr.to(),hy.to());var ht=hr.empty()?hy.from()==hy.head:hr.from()==hr.head;if(hu<=hx){--hx}hq.splice(--hu,2,new ex(ht?hw:hv,ht?hv:hw))}}return new g4(hq,hx)}function fE(i,hq){return new g4([new ex(i,hq||i)],0)}function ds(i){if(!i.text){return i.to}return ac(i.from.line+i.text.length-1,gy(i.text).length+(i.text.length==1?i.from.ch:0))}function cm(hs,hr){if(cF(hs,hr.from)<0){return hs}if(cF(hs,hr.to)<=0){return ds(hr)}var i=hs.line+hr.text.length-(hr.to.line-hr.from.line)-1,hq=hs.ch;if(hs.line==hr.to.line){hq+=ds(hr).ch-hr.to.ch}return ac(i,hq)}function f8(ht,hu){var hr=[];for(var hs=0;hs<ht.sel.ranges.length;hs++){var hq=ht.sel.ranges[hs];hr.push(new ex(cm(hq.anchor,hu),cm(hq.head,hu)))}return cZ(hr,ht.sel.primIndex)}function bN(hr,hq,i){if(hr.line==hq.line){return ac(i.line,hr.ch-hq.ch+i.ch)}else{return ac(i.line+(hr.line-hq.line),hr.ch)}}function an(hA,hx,hr){var hs=[];var hq=ac(hA.first,0),hB=hq;for(var hu=0;hu<hx.length;hu++){var hw=hx[hu];var hz=bN(hw.from,hq,hB);var hy=bN(ds(hw),hq,hB);hq=hw.to;hB=hy;if(hr=="around"){var hv=hA.sel.ranges[hu],ht=cF(hv.head,hv.anchor)<0;hs[hu]=new ex(ht?hy:hz,ht?hz:hy)}else{hs[hu]=new ex(hz,hz)}}return new g4(hs,hA.sel.primIndex)}function bK(i){i.doc.mode=gr(i.options,i.doc.modeOption);e0(i)}function e0(i){i.doc.iter(function(hq){if(hq.stateAfter){hq.stateAfter=null}if(hq.styles){hq.styles=null}});i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first;eR(i,100);i.state.modeGen++;if(i.curOp){ap(i)}}function er(i,hq){return hq.from.ch==0&&hq.to.ch==0&&gy(hq.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function go(hG,hz,ht,hx){function hs(hH){return ht?ht[hH]:null}function hy(hH,hJ,hI){e2(hH,hJ,hI,hx);am(hH,"change",hH,hz)}function hD(hK,hI){var hH=[];for(var hJ=hK;hJ<hI;++hJ){hH.push(new ha(hB[hJ],hs(hJ),hx))}return hH}var hE=hz.from,hq=hz.to,hB=hz.text;var hA=f4(hG,hE.line),i=f4(hG,hq.line);var hr=gy(hB),hF=hs(hB.length-1),hC=hq.line-hE.line;if(hz.full){hG.insert(0,hD(0,hB.length));hG.remove(hB.length,hG.size-hB.length)}else{if(er(hG,hz)){var hw=hD(0,hB.length-1);hy(i,i.text,hF);if(hC){hG.remove(hE.line,hC)}if(hw.length){hG.insert(hE.line,hw)}}else{if(hA==i){if(hB.length==1){hy(hA,hA.text.slice(0,hE.ch)+hr+hA.text.slice(hq.ch),hF)}else{var hv=hD(1,hB.length-1);hv.push(new ha(hr+hA.text.slice(hq.ch),hF,hx));hy(hA,hA.text.slice(0,hE.ch)+hB[0],hs(0));hG.insert(hE.line+1,hv)}}else{if(hB.length==1){hy(hA,hA.text.slice(0,hE.ch)+hB[0]+i.text.slice(hq.ch),hs(0));hG.remove(hE.line+1,hC)}else{hy(hA,hA.text.slice(0,hE.ch)+hB[0],hs(0));hy(i,hr+i.text.slice(hq.ch),hF);var hu=hD(1,hB.length-1);if(hC>1){hG.remove(hE.line+1,hC-1)}hG.insert(hE.line+1,hu)}}}}am(hG,"change",hG,hz)}function eJ(hs,hr,hq){function i(hy,hw,hu){if(hy.linked){for(var hv=0;hv<hy.linked.length;++hv){var ht=hy.linked[hv];if(ht.doc==hw){continue}var hx=hu&&ht.sharedHist;if(hq&&!hx){continue}hr(ht.doc,hx);i(ht.doc,hy,hx)}}}i(hs,null,true)}function eO(i,hq){if(hq.cm){throw new Error("This document is already in use.")}i.doc=hq;hq.cm=i;af(i);bK(i);D(i);if(!i.options.lineWrapping){f(i)}i.options.mode=hq.modeOption;ap(i)}function D(i){(i.doc.direction=="rtl"?gs:h)(i.display.lineDiv,"CodeMirror-rtl")}function eA(i){dh(i,function(){D(i);ap(i)})}function gR(i){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=i||1}function d4(i,hr){var hq={from:cI(hr.from),to:ds(hr),text:g8(i,hr.from,hr.to)};cl(i,hq,hr.from.line,hr.to.line+1);eJ(i,function(hs){return cl(hs,hq,hr.from.line,hr.to.line+1)},true);return hq}function gt(hq){while(hq.length){var i=gy(hq);if(i.ranges){hq.pop()}else{break}}}function fz(hq,i){if(i){gt(hq.done);return gy(hq.done)}else{if(hq.done.length&&!gy(hq.done).ranges){return gy(hq.done)}else{if(hq.done.length>1&&!hq.done[hq.done.length-2].ranges){hq.done.pop();return gy(hq.done)}}}}function gG(hv,ht,i,hs){var hr=hv.history;hr.undone.length=0;var hq=+new Date,hw;var hx;if((hr.lastOp==hs||hr.lastOrigin==ht.origin&&ht.origin&&((ht.origin.charAt(0)=="+"&&hr.lastModTime>hq-(hv.cm?hv.cm.options.historyEventDelay:500))||ht.origin.charAt(0)=="*"))&&(hw=fz(hr,hr.lastOp==hs))){hx=gy(hw.changes);if(cF(ht.from,ht.to)==0&&cF(ht.from,hx.to)==0){hx.to=ds(ht)}else{hw.changes.push(d4(hv,ht))}}else{var hu=gy(hr.done);if(!hu||!hu.ranges){dj(hv.sel,hr.done)}hw={changes:[d4(hv,ht)],generation:hr.generation};hr.done.push(hw);while(hr.done.length>hr.undoDepth){hr.done.shift();if(!hr.done[0].ranges){hr.done.shift()}}}hr.done.push(i);hr.generation=++hr.maxGeneration;hr.lastModTime=hr.lastSelTime=hq;hr.lastOp=hr.lastSelOp=hs;hr.lastOrigin=hr.lastSelOrigin=ht.origin;if(!hx){aO(hv,"historyAdded")}}function bU(ht,i,hr,hs){var hq=i.charAt(0);return hq=="*"||hq=="+"&&hr.ranges.length==hs.ranges.length&&hr.somethingSelected()==hs.somethingSelected()&&new Date-ht.history.lastSelTime<=(ht.cm?ht.cm.options.historyEventDelay:500)}function hi(hu,hs,i,hr){var ht=hu.history,hq=hr&&hr.origin;if(i==ht.lastSelOp||(hq&&ht.lastSelOrigin==hq&&(ht.lastModTime==ht.lastSelTime&&ht.lastOrigin==hq||bU(hu,hq,gy(ht.done),hs)))){ht.done[ht.done.length-1]=hs}else{dj(hs,ht.done)}ht.lastSelTime=+new Date;ht.lastSelOrigin=hq;ht.lastSelOp=i;if(hr&&hr.clearRedo!==false){gt(ht.undone)}}function dj(hq,i){var hr=gy(i);if(!(hr&&hr.ranges&&hr.equals(hq))){i.push(hq)}}function cl(hq,hu,ht,hs){var i=hu["spans_"+hq.id],hr=0;hq.iter(Math.max(hq.first,ht),Math.min(hq.first+hq.size,hs),function(hv){if(hv.markedSpans){(i||(i=hu["spans_"+hq.id]={}))[hr]=hv.markedSpans}++hr})}function by(hs){if(!hs){return null}var hq;for(var hr=0;hr<hs.length;++hr){if(hs[hr].marker.explicitlyCleared){if(!hq){hq=hs.slice(0,hr)}}else{if(hq){hq.push(hs[hr])}}}return !hq?hs:hq.length?hq:null}function cr(ht,hu){var hs=hu["spans_"+ht.id];if(!hs){return null}var hq=[];for(var hr=0;hr<hu.text.length;++hr){hq.push(by(hs[hr]))}return hq}function eL(hy,hw){var hq=cr(hy,hw);var hz=eY(hy,hw);if(!hq){return hz}if(!hz){return hq}for(var ht=0;ht<hq.length;++ht){var hu=hq[ht],hv=hz[ht];if(hu&&hv){spans:for(var hs=0;hs<hv.length;++hs){var hx=hv[hs];for(var hr=0;hr<hu.length;++hr){if(hu[hr].marker==hx.marker){continue spans}}hu.push(hx)}}else{if(hv){hq[ht]=hv}}}return hq}function ca(hB,ht,hA){var hr=[];for(var hw=0;hw<hB.length;++hw){var hs=hB[hw];if(hs.ranges){hr.push(hA?g4.prototype.deepCopy.call(hs):hs);continue}var hy=hs.changes,hz=[];hr.push({changes:hz});for(var hv=0;hv<hy.length;++hv){var hx=hy[hv],hu=(void 0);hz.push({from:hx.from,to:hx.to,text:hx.text});if(ht){for(var hq in hx){if(hu=hq.match(/^spans_(\d+)$/)){if(dR(ht,Number(hu[1]))>-1){gy(hz)[hq]=hx[hq];delete hx[hq]}}}}}}return hr}function gj(hq,ht,i,hu){if(hu){var hs=hq.anchor;if(i){var hr=cF(ht,hs)<0;if(hr!=(cF(i,hs)<0)){hs=ht;ht=i}else{if(hr!=(cF(ht,i)<0)){ht=i}}}return new ex(hs,ht)}else{return new ex(i||ht,ht)}}function gX(hs,hr,i,hq,ht){if(ht==null){ht=hs.cm&&(hs.cm.display.shift||hs.extend)}cg(hs,new g4([gj(hs.sel.primary(),hr,i,ht)],0),hq)}function aF(hv,hu,hs){var hr=[];var hw=hv.cm&&(hv.cm.display.shift||hv.extend);for(var ht=0;ht<hv.sel.ranges.length;ht++){hr[ht]=gj(hv.sel.ranges[ht],hu[ht],null,hw)}var hq=cZ(hr,hv.sel.primIndex);cg(hv,hq,hs)}function e(hu,ht,hr,hs){var hq=hu.sel.ranges.slice(0);hq[ht]=hr;cg(hu,cZ(hq,hu.sel.primIndex),hs)}function J(hs,hq,hr,i){cg(hs,fE(hq,hr),i)}function b(hs,hq,i){var hr={ranges:hq.ranges,update:function(ht){var hv=this;this.ranges=[];for(var hu=0;hu<ht.length;hu++){hv.ranges[hu]=new ex(gD(hs,ht[hu].anchor),gD(hs,ht[hu].head))}},origin:i&&i.origin};aO(hs,"beforeSelectionChange",hs,hr);if(hs.cm){aO(hs.cm,"beforeSelectionChange",hs.cm,hr)}if(hr.ranges!=hq.ranges){return cZ(hr.ranges,hr.ranges.length-1)}else{return hq}}function fX(ht,hs,hq){var i=ht.history.done,hr=gy(i);if(hr&&hr.ranges){i[i.length-1]=hs;e4(ht,hs,hq)}else{cg(ht,hs,hq)}}function cg(hr,hq,i){e4(hr,hq,i);hi(hr,hr.sel,hr.cm?hr.cm.curOp.id:NaN,i)}function e4(hs,hr,hq){if(f9(hs,"beforeSelectionChange")||hs.cm&&f9(hs.cm,"beforeSelectionChange")){hr=b(hs,hr,hq)}var i=hq&&hq.bias||(cF(hr.primary().head,hs.sel.primary().head)<0?-1:1);dF(hs,p(hs,hr,i,true));if(!(hq&&hq.scroll===false)&&hs.cm){gx(hs.cm)}}function dF(hq,i){if(i.equals(hq.sel)){return}hq.sel=i;if(hq.cm){hq.cm.curOp.updateInput=hq.cm.curOp.selectionChanged=true;ab(hq.cm)}am(hq,"cursorActivity",hq)}function ff(i){dF(i,p(i,i.sel,null,false))}function p(hz,hq,hw,hx){var ht;for(var hu=0;hu<hq.ranges.length;hu++){var hv=hq.ranges[hu];var hr=hq.ranges.length==hz.sel.ranges.length&&hz.sel.ranges[hu];var hy=ch(hz,hv.anchor,hr&&hr.anchor,hw,hx);var hs=ch(hz,hv.head,hr&&hr.head,hw,hx);if(ht||hy!=hv.anchor||hs!=hv.head){if(!ht){ht=hq.ranges.slice(0,hu)}ht[hu]=new ex(hy,hs)}}return ht?cZ(ht,hq.primIndex):hq}function fu(hA,hy,ht,hs,hw){var hB=f4(hA,hy.line);if(hB.markedSpans){for(var hu=0;hu<hB.markedSpans.length;++hu){var hq=hB.markedSpans[hu],hr=hq.marker;if((hq.from==null||(hr.inclusiveLeft?hq.from<=hy.ch:hq.from<hy.ch))&&(hq.to==null||(hr.inclusiveRight?hq.to>=hy.ch:hq.to>hy.ch))){if(hw){aO(hr,"beforeCursorEnter");if(hr.explicitlyCleared){if(!hB.markedSpans){break}else{--hu;continue}}}if(!hr.atomic){continue}if(ht){var hx=hr.find(hs<0?1:-1),hz=(void 0);if(hs<0?hr.inclusiveRight:hr.inclusiveLeft){hx=hm(hA,hx,-hs,hx&&hx.line==hy.line?hB:null)}if(hx&&hx.line==hy.line&&(hz=cF(hx,ht))&&(hs<0?hz<0:hz>0)){return fu(hA,hx,hy,hs,hw)}}var hv=hr.find(hs<0?-1:1);if(hs<0?hr.inclusiveLeft:hr.inclusiveRight){hv=hm(hA,hv,hs,hv.line==hy.line?hB:null)}return hv?fu(hA,hv,hy,hs,hw):null}}}return hy}function ch(hu,hv,hs,hq,i){var hr=hq||1;var ht=fu(hu,hv,hs,hr,i)||(!i&&fu(hu,hv,hs,hr,true))||fu(hu,hv,hs,-hr,i)||(!i&&fu(hu,hv,hs,-hr,true));if(!ht){hu.cantEdit=true;return ac(hu.first,0)}return ht}function hm(hr,hs,hq,i){if(hq<0&&hs.ch==0){if(hs.line>hr.first){return gD(hr,ac(hs.line-1))}else{return null}}else{if(hq>0&&hs.ch==(i||f4(hr,hs.line)).text.length){if(hs.line<hr.first+hr.size-1){return ac(hs.line+1,0)}else{return null}}else{return new ac(hs.line,hs.ch+hq)}}}function av(i){i.setSelection(ac(i.firstLine(),0),ac(i.lastLine()),ah)}function ep(hq,hs,hr){var i={canceled:false,from:hs.from,to:hs.to,text:hs.text,origin:hs.origin,cancel:function(){return i.canceled=true}};if(hr){i.update=function(hw,hv,hu,ht){if(hw){i.from=gD(hq,hw)}if(hv){i.to=gD(hq,hv)}if(hu){i.text=hu}if(ht!==undefined){i.origin=ht}}}aO(hq,"beforeChange",hq,i);if(hq.cm){aO(hq.cm,"beforeChange",hq.cm,i)}if(i.canceled){return null}return{from:i.from,to:i.to,text:i.text,origin:i.origin}}function bt(ht,hu,hs){if(ht.cm){if(!ht.cm.curOp){return dw(ht.cm,bt)(ht,hu,hs)}if(ht.cm.state.suppressEdits){return}}if(f9(ht,"beforeChange")||ht.cm&&f9(ht.cm,"beforeChange")){hu=ep(ht,hu,true);if(!hu){return}}var hr=hk&&!hs&&dc(ht,hu.from,hu.to);if(hr){for(var hq=hr.length-1;hq>=0;--hq){P(ht,{from:hr[hq].from,to:hr[hq].to,text:hq?[""]:hu.text,origin:hu.origin})}}else{P(ht,hu)}}function P(hr,hs){if(hs.text.length==1&&hs.text[0]==""&&cF(hs.from,hs.to)==0){return}var hq=f8(hr,hs);gG(hr,hs,hq,hr.cm?hr.cm.curOp.id:NaN);eQ(hr,hs,hq,eY(hr,hs));var i=[];eJ(hr,function(hu,ht){if(!ht&&dR(i,hu.history)==-1){eb(hu.history,hs);i.push(hu.history)}eQ(hu,hs,null,eY(hu,hs))})}function cv(hD,hA,hE){var hB=hD.cm&&hD.cm.state.suppressEdits;if(hB&&!hE){return}var hz=hD.history,hr,ht=hD.sel;var hq=hA=="undo"?hz.done:hz.undone,hC=hA=="undo"?hz.undone:hz.done;var hw=0;for(;hw<hq.length;hw++){hr=hq[hw];if(hE?hr.ranges&&!hr.equals(hD.sel):!hr.ranges){break}}if(hw==hq.length){return}hz.lastOrigin=hz.lastSelOrigin=null;for(;;){hr=hq.pop();if(hr.ranges){dj(hr,hC);if(hE&&!hr.equals(hD.sel)){cg(hD,hr,{clearRedo:false});return}ht=hr}else{if(hB){hq.push(hr);return}else{break}}}var hy=[];dj(ht,hC);hC.push({changes:hy,generation:hz.generation});hz.generation=hr.generation||++hz.maxGeneration;var hs=f9(hD,"beforeChange")||hD.cm&&f9(hD.cm,"beforeChange");var hx=function(hF){var hI=hr.changes[hF];hI.origin=hA;if(hs&&!ep(hD,hI,false)){hq.length=0;return{}}hy.push(d4(hD,hI));var hH=hF?f8(hD,hI):gy(hq);eQ(hD,hI,hH,eL(hD,hI));if(!hF&&hD.cm){hD.cm.scrollIntoView({from:hI.from,to:ds(hI)})}var hG=[];eJ(hD,function(hJ,i){if(!i&&dR(hG,hJ.history)==-1){eb(hJ.history,hI);hG.push(hJ.history)}eQ(hJ,hI,null,eL(hJ,hI))})};for(var hu=hr.changes.length-1;hu>=0;--hu){var hv=hx(hu);if(hv){return hv.v}}}function gc(hq,hs){if(hs==0){return}hq.first+=hs;hq.sel=new g4(cf(hq.sel.ranges,function(ht){return new ex(ac(ht.anchor.line+hs,ht.anchor.ch),ac(ht.head.line+hs,ht.head.ch))}),hq.sel.primIndex);if(hq.cm){ap(hq.cm,hq.first,hq.first-hs,hs);for(var hr=hq.cm.display,i=hr.viewFrom;i<hr.viewTo;i++){W(hq.cm,i,"gutter")}}}function eQ(ht,hu,hs,hq){if(ht.cm&&!ht.cm.curOp){return dw(ht.cm,eQ)(ht,hu,hs,hq)}if(hu.to.line<ht.first){gc(ht,hu.text.length-1-(hu.to.line-hu.from.line));return}if(hu.from.line>ht.lastLine()){return}if(hu.from.line<ht.first){var i=hu.text.length-1-(ht.first-hu.from.line);gc(ht,i);hu={from:ac(ht.first,0),to:ac(hu.to.line+i,hu.to.ch),text:[gy(hu.text)],origin:hu.origin}}var hr=ht.lastLine();if(hu.to.line>hr){hu={from:hu.from,to:ac(hr,f4(ht,hr).text.length),text:[hu.text[0]],origin:hu.origin}}hu.removed=g8(ht,hu.from,hu.to);if(!hs){hs=f8(ht,hu)}if(ht.cm){aT(ht.cm,hu,hq)}else{go(ht,hu,hq)}e4(ht,hs,ah)}function aT(hA,hw,hu){var hz=hA.doc,hv=hA.display,hx=hw.from,hy=hw.to;var i=false,ht=hx.line;if(!hA.options.lineWrapping){ht=b8(z(f4(hz,hx.line)));hz.iter(ht,hy.line+1,function(hC){if(hC==hv.maxLine){i=true;return true}})}if(hz.sel.contains(hw.from,hw.to)>-1){ab(hA)}go(hz,hw,hu,br(hA));if(!hA.options.lineWrapping){hz.iter(ht,hx.line+hw.text.length,function(hD){var hC=e1(hD);if(hC>hv.maxLineLength){hv.maxLine=hD;hv.maxLineLength=hC;hv.maxLineChanged=true;i=false}});if(i){hA.curOp.updateMaxLine=true}}hj(hz,hx.line);eR(hA,400);var hB=hw.text.length-(hy.line-hx.line)-1;if(hw.full){ap(hA)}else{if(hx.line==hy.line&&hw.text.length==1&&!er(hA.doc,hw)){W(hA,hx.line,"text")}else{ap(hA,hx.line,hy.line+1,hB)}}var hr=f9(hA,"changes"),hs=f9(hA,"change");if(hs||hr){var hq={from:hx,to:hy,text:hw.text,removed:hw.removed,origin:hw.origin};if(hs){am(hA,"change",hA,hq)}if(hr){(hA.curOp.changeObjs||(hA.curOp.changeObjs=[])).push(hq)}}hA.display.selForContextMenu=null}function be(hs,hr,hu,ht,hq){if(!ht){ht=hu}if(cF(ht,hu)<0){var i;(i=[ht,hu],hu=i[0],ht=i[1],i)}if(typeof hr=="string"){hr=hs.splitLines(hr)}bt(hs,{from:hu,to:ht,text:hr,origin:hq})}function M(hs,hr,hq,i){if(hq<hs.line){hs.line+=i}else{if(hr<hs.line){hs.line=hr;hs.ch=0}}}function f6(hu,hw,hx,hy){for(var ht=0;ht<hu.length;++ht){var hq=hu[ht],hv=true;if(hq.ranges){if(!hq.copied){hq=hu[ht]=hq.deepCopy();hq.copied=true}for(var hs=0;hs<hq.ranges.length;hs++){M(hq.ranges[hs].anchor,hw,hx,hy);M(hq.ranges[hs].head,hw,hx,hy)}continue}for(var hr=0;hr<hq.changes.length;++hr){var hz=hq.changes[hr];if(hx<hz.from.line){hz.from=ac(hz.from.line+hy,hz.from.ch);hz.to=ac(hz.to.line+hy,hz.to.ch)}else{if(hw<=hz.to.line){hv=false;break}}}if(!hv){hu.splice(0,ht+1);ht=0}}}function eb(hq,ht){var hs=ht.from.line,hr=ht.to.line,i=ht.text.length-(hr-hs)-1;f6(hq.done,hs,hr,i);f6(hq.undone,hs,hr,i)}function fi(hs,hr,i,hu){var ht=hr,hq=hr;if(typeof hr=="number"){hq=f4(hs,dA(hs,hr))}else{ht=b8(hr)}if(ht==null){return null}if(hu(hq,ht)&&hs.cm){W(hs.cm,ht,i)}return hq}function fO(hr){var ht=this;this.lines=hr;this.parent=null;var hq=0;for(var hs=0;hs<hr.length;++hs){hr[hs].parent=ht;hq+=hr[hs].height}this.height=hq}fO.prototype={chunkSize:function X(){return this.lines.length},removeInner:function O(hq,hv){var hu=this;for(var hs=hq,ht=hq+hv;hs<ht;++hs){var hr=hu.lines[hs];hu.height-=hr.height;bV(hr);am(hr,"delete")}this.lines.splice(hq,hv)},collapse:function gk(i){i.push.apply(i,this.lines)},insertInner:function a2(hr,hs,hq){var hu=this;this.height+=hq;this.lines=this.lines.slice(0,hr).concat(hs).concat(this.lines.slice(hr));for(var ht=0;ht<hs.length;++ht){hs[ht].parent=hu}},iterN:function g6(i,ht,hs){var hr=this;for(var hq=i+ht;i<hq;++i){if(hs(hr.lines[i])){return true}}}};function gn(ht){var hv=this;this.children=ht;var hs=0,hq=0;for(var hr=0;hr<ht.length;++hr){var hu=ht[hr];hs+=hu.chunkSize();hq+=hu.height;hu.parent=hv}this.size=hs;this.height=hq;this.parent=null}gn.prototype={chunkSize:function X(){return this.size},removeInner:function O(hs,hr){var hu=this;this.size-=hr;for(var ht=0;ht<this.children.length;++ht){var hq=hu.children[ht],hw=hq.chunkSize();if(hs<hw){var hv=Math.min(hr,hw-hs),hx=hq.height;hq.removeInner(hs,hv);hu.height-=hx-hq.height;if(hw==hv){hu.children.splice(ht--,1);hq.parent=null}if((hr-=hv)==0){break}hs=0}else{hs-=hw}}if(this.size-hr<25&&(this.children.length>1||!(this.children[0] instanceof fO))){var hy=[];this.collapse(hy);this.children=[new fO(hy)];this.children[0].parent=this}},collapse:function gk(hq){var hs=this;for(var hr=0;hr<this.children.length;++hr){hs.children[hr].collapse(hq)}},insertInner:function a2(hr,hz,hy){var hu=this;this.size+=hz.length;this.height+=hy;for(var ht=0;ht<this.children.length;++ht){var hq=hu.children[ht],hw=hq.chunkSize();if(hr<=hw){hq.insertInner(hr,hz,hy);if(hq.lines&&hq.lines.length>50){var hs=hq.lines.length%25+25;for(var hx=hs;hx<hq.lines.length;){var hv=new fO(hq.lines.slice(hx,hx+=25));hq.height-=hv.height;hu.children.splice(++ht,0,hv);hv.parent=hu}hq.lines=hq.lines.slice(0,hs);hu.maybeSpill()}break}hr-=hw}},maybeSpill:function e9(){if(this.children.length<=10){return}var hs=this;do{var hq=hs.children.splice(hs.children.length-5,5);var hr=new gn(hq);if(!hs.parent){var ht=new gn(hs.children);ht.parent=hs;hs.children=[ht,hr];hs=ht}else{hs.size-=hr.size;hs.height-=hr.height;var i=dR(hs.parent.children,hs);hs.parent.children.splice(i+1,0,hr)}hr.parent=hs.parent}while(hs.children.length>10);hs.parent.maybeSpill()},iterN:function g6(hq,hx,hw){var hv=this;for(var hr=0;hr<this.children.length;++hr){var hu=hv.children[hr],ht=hu.chunkSize();if(hq<ht){var hs=Math.min(hx,ht-hq);if(hu.iterN(hq,hs,hw)){return true}if((hx-=hs)==0){break}hq=0}else{hq-=ht}}}};var d9=function(hs,hr,i){var ht=this;if(i){for(var hq in i){if(i.hasOwnProperty(hq)){ht[hq]=i[hq]}}}this.doc=hs;this.node=hr};d9.prototype.clear=function(){var hw=this;var hr=this.doc.cm,ht=this.line.widgets,hs=this.line,hv=b8(hs);if(hv==null||!ht){return}for(var hu=0;hu<ht.length;++hu){if(ht[hu]==hw){ht.splice(hu--,1)}}if(!ht.length){hs.widgets=null}var hq=dt(this);hb(hs,Math.max(0,hs.height-hq));if(hr){dh(hr,function(){ez(hr,hs,-hq);W(hr,hv,"widget")});am(hr,"lineWidgetCleared",hr,this,hv)}};d9.prototype.changed=function(){var ht=this;var hq=this.height,i=this.doc.cm,hr=this.line;this.height=null;var hs=dt(this)-hq;if(!hs){return}hb(hr,hr.height+hs);if(i){dh(i,function(){i.curOp.forceUpdate=true;ez(i,hr,hs);am(i,"lineWidgetChanged",i,ht,b8(hr))})}};bT(d9);function ez(i,hq,hr){if(b7(hq)<((i.curOp&&i.curOp.scrollTop)||i.doc.scrollTop)){db(i,hr)}}function b0(hu,ht,hr,hq){var hs=new d9(hu,hr,hq);var i=hu.cm;if(i&&hs.noHScroll){i.display.alignWidgets=true}fi(hu,ht,"widget",function(hw){var hx=hw.widgets||(hw.widgets=[]);if(hs.insertAt==null){hx.push(hs)}else{hx.splice(Math.min(hx.length-1,Math.max(0,hs.insertAt)),0,hs)}hs.line=hw;if(i&&!gl(hu,hw)){var hv=b7(hw)<hu.scrollTop;hb(hw,hw.height+dt(hs));if(hv){db(i,hs.height)}i.curOp.forceUpdate=true}return true});if(i){am(i,"lineWidgetAdded",i,hs,typeof ht=="number"?ht:b8(ht))}return hs}var bh=0;var V=function(hq,i){this.lines=[];this.type=i;this.doc=hq;this.id=++bh};V.prototype.clear=function(){var hv=this;if(this.explicitlyCleared){return}var hz=this.doc.cm,hs=hz&&!hz.curOp;if(hs){dd(hz)}if(f9(this,"clear")){var hA=this.find();if(hA){am(this,"clear",hA.from,hA.to)}}var ht=null,hx=null;for(var hu=0;hu<this.lines.length;++hu){var hB=hv.lines[hu];var hy=fZ(hB.markedSpans,hv);if(hz&&!hv.collapsed){W(hz,b8(hB),"text")}else{if(hz){if(hy.to!=null){hx=b8(hB)}if(hy.from!=null){ht=b8(hB)}}}hB.markedSpans=fs(hB.markedSpans,hy);if(hy.from==null&&hv.collapsed&&!gl(hv.doc,hB)&&hz){hb(hB,bb(hz.display))}}if(hz&&this.collapsed&&!hz.options.lineWrapping){for(var hr=0;hr<this.lines.length;++hr){var hq=z(hv.lines[hr]),hw=e1(hq);if(hw>hz.display.maxLineLength){hz.display.maxLine=hq;hz.display.maxLineLength=hw;hz.display.maxLineChanged=true}}}if(ht!=null&&hz&&this.collapsed){ap(hz,ht,hx+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(hz){ff(hz.doc)}}if(hz){am(hz,"markerCleared",hz,this,ht,hx)}if(hs){aw(hz)}if(this.parent){this.parent.clear()}};V.prototype.find=function(ht,hr){var hx=this;if(ht==null&&this.type=="bookmark"){ht=1}var hw,hv;for(var hs=0;hs<this.lines.length;++hs){var hq=hx.lines[hs];var hu=fZ(hq.markedSpans,hx);if(hu.from!=null){hw=ac(hr?hq:b8(hq),hu.from);if(ht==-1){return hw}}if(hu.to!=null){hv=ac(hr?hq:b8(hq),hu.to);if(ht==1){return hv}}}return hw&&{from:hw,to:hv}};V.prototype.changed=function(){var hs=this;var hr=this.find(-1,true),hq=this,i=this.doc.cm;if(!hr||!i){return}dh(i,function(){var hu=hr.line,hv=b8(hr.line);var ht=f1(i,hv);if(ht){aE(ht);i.curOp.selectionChanged=i.curOp.forceUpdate=true}i.curOp.updateMaxLine=true;if(!gl(hq.doc,hu)&&hq.height!=null){var hx=hq.height;hq.height=null;var hw=dt(hq)-hx;if(hw){hb(hu,hu.height+hw)}}am(i,"markerChanged",i,hs)})};V.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var hq=this.doc.cm.curOp;if(!hq.maybeHiddenMarkers||dR(hq.maybeHiddenMarkers,this)==-1){(hq.maybeUnhiddenMarkers||(hq.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(i)};V.prototype.detachLine=function(i){this.lines.splice(dR(this.lines,i),1);if(!this.lines.length&&this.doc.cm){var hq=this.doc.cm.curOp;(hq.maybeHiddenMarkers||(hq.maybeHiddenMarkers=[])).push(this)}};bT(V);function fp(hy,hw,hx,hA,hu){if(hA&&hA.shared){return S(hy,hw,hx,hA,hu)}if(hy.cm&&!hy.cm.curOp){return dw(hy.cm,fp)(hy,hw,hx,hA,hu)}var ht=new V(hy,hu),hz=cF(hw,hx);if(hA){aZ(hA,ht,false)}if(hz>0||hz==0&&ht.clearWhenEmpty!==false){return ht}if(ht.replacedWith){ht.collapsed=true;ht.widgetNode=hc("span",[ht.replacedWith],"CodeMirror-widget");if(!hA.handleMouseEvents){ht.widgetNode.setAttribute("cm-ignore-events","true")}if(hA.insertLeft){ht.widgetNode.insertLeft=true}}if(ht.collapsed){if(A(hy,hw.line,hw,hx,ht)||hw.line!=hx.line&&A(hy,hx.line,hw,hx,ht)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}bQ()}if(ht.addToHistory){gG(hy,{from:hw,to:hx,origin:"markText"},hy.sel,NaN)}var hr=hw.line,hv=hy.cm,hq;hy.iter(hr,hx.line+1,function(i){if(hv&&ht.collapsed&&!hv.options.lineWrapping&&z(i)==hv.display.maxLine){hq=true}if(ht.collapsed&&hr!=hw.line){hb(i,0)}cC(i,new eW(ht,hr==hw.line?hw.ch:null,hr==hx.line?hx.ch:null));++hr});if(ht.collapsed){hy.iter(hw.line,hx.line+1,function(i){if(gl(hy,i)){hb(i,0)}})}if(ht.clearOnEnter){cj(ht,"beforeCursorEnter",function(){return ht.clear()})}if(ht.readOnly){gq();if(hy.history.done.length||hy.history.undone.length){hy.clearHistory()}}if(ht.collapsed){ht.id=++bh;ht.atomic=true}if(hv){if(hq){hv.curOp.updateMaxLine=true}if(ht.collapsed){ap(hv,hw.line,hx.line+1)}else{if(ht.className||ht.title||ht.startStyle||ht.endStyle||ht.css){for(var hs=hw.line;hs<=hx.line;hs++){W(hv,hs,"text")}}}if(ht.atomic){ff(hv.doc)}am(hv,"markerAdded",hv,ht)}return ht}var y=function(hs,hr){var ht=this;this.markers=hs;this.primary=hr;for(var hq=0;hq<hs.length;++hq){hs[hq].parent=ht}};y.prototype.clear=function(){var hr=this;if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var hq=0;hq<this.markers.length;++hq){hr.markers[hq].clear()}am(this,"clear")};y.prototype.find=function(hq,i){return this.primary.find(hq,i)};bT(y);function S(ht,hw,hv,i,hr){i=aZ(i);i.shared=false;var hu=[fp(ht,hw,hv,i,hr)],hq=hu[0];var hs=i.widgetNode;eJ(ht,function(hy){if(hs){i.widgetNode=hs.cloneNode(true)}hu.push(fp(hy,gD(hy,hw),gD(hy,hv),i,hr));for(var hx=0;hx<hy.linked.length;++hx){if(hy.linked[hx].isParent){return}}hq=gy(hu)});return new y(hu,hq)}function fB(i){return i.findMarks(ac(i.first,0),i.clipPos(ac(i.lastLine())),function(hq){return hq.parent})}function ec(hv,hw){for(var ht=0;ht<hw.length;ht++){var hr=hw[ht],hx=hr.find();var hq=hv.clipPos(hx.from),hu=hv.clipPos(hx.to);if(cF(hq,hu)){var hs=fp(hv,hq,hu,hr.primary,hr.primary.type);hr.markers.push(hs);hs.parent=hr}}}function e3(hs){var hq=function(hv){var ht=hs[hv],hx=[ht.primary.doc];eJ(ht.primary.doc,function(i){return hx.push(i)});for(var hu=0;hu<ht.markers.length;hu++){var hw=ht.markers[hu];if(dR(hx,hw.doc)==-1){hw.parent=null;ht.markers.splice(hu--,1)}}};for(var hr=0;hr<hs.length;hr++){hq(hr)}}var cU=0;var aD=function(ht,hs,i,hr,hq){if(!(this instanceof aD)){return new aD(ht,hs,i,hr,hq)}if(i==null){i=0}gn.call(this,[new fO([new ha("",null)])]);this.first=i;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=i;var hu=ac(i,0);this.sel=fE(hu);this.history=new gR(null);this.id=++cU;this.modeOption=hs;this.lineSep=hr;this.direction=(hq=="rtl")?"rtl":"ltr";this.extend=false;if(typeof ht=="string"){ht=this.splitLines(ht)}go(this,{from:hu,to:hu,text:ht});cg(this,fE(hu),ah)};aD.prototype=cM(gn.prototype,{constructor:aD,iter:function(hr,hq,i){if(i){this.iterN(hr-this.first,hq-hr,i)}else{this.iterN(this.first,this.first+this.size,hr)}},insert:function(hr,hs){var hq=0;for(var ht=0;ht<hs.length;++ht){hq+=hs[ht].height}this.insertInner(hr-this.first,hs,hq)},remove:function(i,hq){this.removeInner(i-this.first,hq)},getValue:function(hq){var i=bf(this,this.first,this.first+this.size);if(hq===false){return i}return i.join(hq||this.lineSeparator())},setValue:c7(function(hq){var hr=ac(this.first,0),i=this.first+this.size-1;bt(this,{from:hr,to:ac(i,f4(this,i).text.length),text:this.splitLines(hq),origin:"setValue",full:true},true);if(this.cm){fy(this.cm,0,0)}cg(this,fE(hr),ah)}),replaceRange:function(hq,hs,hr,i){hs=gD(this,hs);hr=hr?gD(this,hr):hs;be(this,hq,hs,hr,i)},getRange:function(hs,hr,hq){var i=g8(this,gD(this,hs),gD(this,hr));if(hq===false){return i}return i.join(hq||this.lineSeparator())},getLine:function(hq){var i=this.getLineHandle(hq);return i&&i.text},getLineHandle:function(i){if(cw(this,i)){return f4(this,i)}},getLineNumber:function(i){return b8(i)},getLineHandleVisualStart:function(i){if(typeof i=="number"){i=f4(this,i)}return z(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return gD(this,i)},getCursor:function(hr){var i=this.sel.primary(),hq;if(hr==null||hr=="head"){hq=i.head}else{if(hr=="anchor"){hq=i.anchor}else{if(hr=="end"||hr=="to"||hr===false){hq=i.to()}else{hq=i.from()}}}return hq},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:c7(function(i,hr,hq){J(this,gD(this,typeof i=="number"?ac(i,hr||0):i),null,hq)}),setSelection:c7(function(hq,hr,i){J(this,gD(this,hq),gD(this,hr||hq),i)}),extendSelection:c7(function(hr,i,hq){gX(this,gD(this,hr),i&&gD(this,i),hq)}),extendSelections:c7(function(hq,i){aF(this,eB(this,hq),i)}),extendSelectionsBy:c7(function(hr,i){var hq=cf(this.sel.ranges,hr);aF(this,eB(this,hq),i)}),setSelections:c7(function(hq,hu,hs){var hv=this;if(!hq.length){return}var hr=[];for(var ht=0;ht<hq.length;ht++){hr[ht]=new ex(gD(hv,hq[ht].anchor),gD(hv,hq[ht].head))}if(hu==null){hu=Math.min(hq.length-1,this.sel.primIndex)}cg(this,cZ(hr,hu),hs)}),addSelection:c7(function(hr,hs,hq){var i=this.sel.ranges.slice(0);i.push(new ex(gD(this,hr),gD(this,hs||hr)));cg(this,cZ(i,i.length-1),hq)}),getSelection:function(hu){var hv=this;var hr=this.sel.ranges,hq;for(var hs=0;hs<hr.length;hs++){var ht=g8(hv,hr[hs].from(),hr[hs].to());hq=hq?hq.concat(ht):ht}if(hu===false){return hq}else{return hq.join(hu||this.lineSeparator())}},getSelections:function(hu){var hv=this;var ht=[],hq=this.sel.ranges;for(var hr=0;hr<hq.length;hr++){var hs=g8(hv,hq[hr].from(),hq[hr].to());if(hu!==false){hs=hs.join(hu||hv.lineSeparator())}ht[hr]=hs}return ht},replaceSelection:function(hs,hu,hq){var ht=[];for(var hr=0;hr<this.sel.ranges.length;hr++){ht[hr]=hs}this.replaceSelections(ht,hu,hq||"+input")},replaceSelections:c7(function(hr,hx,hz){var hv=this;var hy=[],ht=this.sel;for(var hu=0;hu<ht.ranges.length;hu++){var hw=ht.ranges[hu];hy[hu]={from:hw.from(),to:hw.to(),text:hv.splitLines(hr[hu]),origin:hz}}var hq=hx&&hx!="end"&&an(this,hy,hx);for(var hs=hy.length-1;hs>=0;hs--){bt(hv,hy[hs])}if(hq){fX(this,hq)}else{if(this.cm){gx(this.cm)}}}),undo:c7(function(){cv(this,"undo")}),redo:c7(function(){cv(this,"redo")}),undoSelection:c7(function(){cv(this,"undo",true)}),redoSelection:c7(function(){cv(this,"redo",true)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){var ht=this.history,hq=0,hs=0;for(var hr=0;hr<ht.done.length;hr++){if(!ht.done[hr].ranges){++hq}}for(var hu=0;hu<ht.undone.length;hu++){if(!ht.undone[hu].ranges){++hs}}return{undo:hq,redo:hs}},clearHistory:function(){this.history=new gR(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(i){if(i){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:ca(this.history.done),undone:ca(this.history.undone)}},setHistory:function(hq){var i=this.history=new gR(this.history.maxGeneration);i.done=ca(hq.done.slice(0),null,true);i.undone=ca(hq.undone.slice(0),null,true)},setGutterMarker:c7(function(i,hq,hr){return fi(this,i,"gutter",function(hs){var ht=hs.gutterMarkers||(hs.gutterMarkers={});ht[hq]=hr;if(!hr&&fI(ht)){hs.gutterMarkers=null}return true})}),clearGutter:c7(function(i){var hq=this;this.iter(function(hr){if(hr.gutterMarkers&&hr.gutterMarkers[i]){fi(hq,hr,"gutter",function(){hr.gutterMarkers[i]=null;if(fI(hr.gutterMarkers)){hr.gutterMarkers=null}return true})}})}),lineInfo:function(i){var hq;if(typeof i=="number"){if(!cw(this,i)){return null}hq=i;i=f4(this,i);if(!i){return null}}else{hq=b8(i);if(hq==null){return null}}return{line:hq,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:c7(function(hr,hq,i){return fi(this,hr,hq=="gutter"?"gutter":"class",function(hs){var ht=hq=="text"?"textClass":hq=="background"?"bgClass":hq=="gutter"?"gutterClass":"wrapClass";if(!hs[ht]){hs[ht]=i}else{if(Y(i).test(hs[ht])){return false}else{hs[ht]+=" "+i}}return true})}),removeLineClass:c7(function(hr,hq,i){return fi(this,hr,hq=="gutter"?"gutter":"class",function(ht){var hw=hq=="text"?"textClass":hq=="background"?"bgClass":hq=="gutter"?"gutterClass":"wrapClass";var hv=ht[hw];if(!hv){return false}else{if(i==null){ht[hw]=null}else{var hu=hv.match(Y(i));if(!hu){return false}var hs=hu.index+hu[0].length;ht[hw]=hv.slice(0,hu.index)+(!hu.index||hs==hv.length?"":" ")+hv.slice(hs)||null}}return true})}),addLineWidget:c7(function(hr,hq,i){return b0(this,hr,hq,i)}),removeLineWidget:function(i){i.clear()},markText:function(hr,hq,i){return fp(this,gD(this,hr),gD(this,hq),i,i&&i.type||"range")},setBookmark:function(hr,i){var hq={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:false,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};hr=gD(this,hr);return fp(this,hr,hr,hq,"bookmark")},findMarksAt:function(hu){hu=gD(this,hu);var ht=[],hr=f4(this,hu.line).markedSpans;if(hr){for(var hq=0;hq<hr.length;++hq){var hs=hr[hq];if((hs.from==null||hs.from<=hu.ch)&&(hs.to==null||hs.to>=hu.ch)){ht.push(hs.marker.parent||hs.marker)}}}return ht},findMarks:function(ht,hs,i){ht=gD(this,ht);hs=gD(this,hs);var hq=[],hr=ht.line;this.iter(ht.line,hs.line+1,function(hu){var hw=hu.markedSpans;if(hw){for(var hv=0;hv<hw.length;hv++){var hx=hw[hv];if(!(hx.to!=null&&hr==ht.line&&ht.ch>=hx.to||hx.from==null&&hr!=ht.line||hx.from!=null&&hr==hs.line&&hx.from>=hs.ch)&&(!i||i(hx.marker))){hq.push(hx.marker.parent||hx.marker)}}}++hr});return hq},getAllMarks:function(){var i=[];this.iter(function(hr){var hq=hr.markedSpans;if(hq){for(var hs=0;hs<hq.length;++hs){if(hq[hs].from!=null){i.push(hq[hs].marker)}}}});return i},posFromIndex:function(hr){var i,hs=this.first,hq=this.lineSeparator().length;this.iter(function(ht){var hu=ht.text.length+hq;if(hu>hr){i=hr;return true}hr-=hu;++hs});return gD(this,ac(hs,i))},indexFromPos:function(hr){hr=gD(this,hr);var i=hr.ch;if(hr.line<this.first||hr.ch<0){return 0}var hq=this.lineSeparator().length;this.iter(this.first,hr.line,function(hs){i+=hs.text.length+hq});return i},copy:function(i){var hq=new aD(bf(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);hq.scrollTop=this.scrollTop;hq.scrollLeft=this.scrollLeft;hq.sel=this.sel;hq.extend=false;if(i){hq.history.undoDepth=this.history.undoDepth;hq.setHistory(this.getHistory())}return hq},linkedDoc:function(i){if(!i){i={}}var hs=this.first,hr=this.first+this.size;if(i.from!=null&&i.from>hs){hs=i.from}if(i.to!=null&&i.to<hr){hr=i.to}var hq=new aD(bf(this,hs,hr),i.mode||this.modeOption,hs,this.lineSep,this.direction);if(i.sharedHist){hq.history=this.history}(this.linked||(this.linked=[])).push({doc:hq,sharedHist:i.sharedHist});hq.linked=[{doc:this,isParent:true,sharedHist:i.sharedHist}];ec(hq,fB(this));return hq},unlinkDoc:function(hr){var hu=this;if(hr instanceof K){hr=hr.doc}if(this.linked){for(var hs=0;hs<this.linked.length;++hs){var ht=hu.linked[hs];if(ht.doc!=hr){continue}hu.linked.splice(hs,1);hr.unlinkDoc(hu);e3(fB(hu));break}}if(hr.history==this.history){var hq=[hr.id];eJ(hr,function(i){return hq.push(i.id)},true);hr.history=new gR(null);hr.history.done=ca(this.history.done,hq);hr.history.undone=ca(this.history.undone,hq)}},iterLinkedDocs:function(i){eJ(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){if(this.lineSep){return i.split(this.lineSep)}return gO(i)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:c7(function(i){if(i!="rtl"){i="ltr"}if(i==this.direction){return}this.direction=i;this.iter(function(hq){return hq.order=null});if(this.cm){eA(this.cm)}})});aD.prototype.eachLine=aD.prototype.iter;var ao=0;function bx(hy){var hA=this;dJ(hA);if(a4(hA,hy)||bo(hA.display,hy)){return}c9(hy);if(ei){ao=+new Date}var hz=cQ(hA,hy,true),hr=hy.dataTransfer.files;if(!hz||hA.isReadOnly()){return}if(hr&&hr.length&&window.FileReader&&window.File){var hu=hr.length,hB=Array(hu),hs=0;var hw=function(hE,hD){if(hA.options.allowDropFileTypes&&dR(hA.options.allowDropFileTypes,hE.type)==-1){return}var hC=new FileReader;hC.onload=dw(hA,function(){var i=hC.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(i)){i=""}hB[hD]=i;if(++hs==hu){hz=gD(hA.doc,hz);var hF={from:hz,to:hz,text:hA.doc.splitLines(hB.join(hA.doc.lineSeparator())),origin:"paste"};bt(hA.doc,hF);fX(hA.doc,fE(hz,ds(hF)))}});hC.readAsText(hE)};for(var hx=0;hx<hu;++hx){hw(hr[hx],hx)}}else{if(hA.state.draggingText&&hA.doc.sel.contains(hz)>-1){hA.state.draggingText(hy);setTimeout(function(){return hA.display.input.focus()},20);return}try{var hq=hy.dataTransfer.getData("Text");if(hq){var hv;if(hA.state.draggingText&&!hA.state.draggingText.copy){hv=hA.listSelections()}e4(hA.doc,fE(hz,hz));if(hv){for(var ht=0;ht<hv.length;++ht){be(hA.doc,"",hv[ht].anchor,hv[ht].head,"drag")}}hA.replaceSelection(hq,"around","paste");hA.display.input.focus()}}catch(hy){}}}function U(i,hr){if(ei&&(!i.state.draggingText||+new Date-ao<100)){e6(hr);return}if(a4(i,hr)||bo(i.display,hr)){return}hr.dataTransfer.setData("Text",i.getSelection());hr.dataTransfer.effectAllowed="copyMove";if(hr.dataTransfer.setDragImage&&!aM){var hq=g5("img",null,null,"position: fixed; left: 0; top: 0;");hq.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(eE){hq.width=hq.height=1;i.display.wrapper.appendChild(hq);hq._top=hq.offsetTop}hr.dataTransfer.setDragImage(hq,0,0);if(eE){hq.parentNode.removeChild(hq)}}}function hn(i,hq){var hs=cQ(i,hq);if(!hs){return}var hr=document.createDocumentFragment();C(i,hs,hr);if(!i.display.dragCursor){i.display.dragCursor=g5("div",null,"CodeMirror-cursors CodeMirror-dragcursors");i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)}ce(i.display.dragCursor,hr)}function dJ(i){if(i.display.dragCursor){i.display.lineSpace.removeChild(i.display.dragCursor);i.display.dragCursor=null}}function aK(ht){if(!document.getElementsByClassName){return}var hs=document.getElementsByClassName("CodeMirror");for(var hr=0;hr<hs.length;hr++){var hq=hs[hr].CodeMirror;if(hq){ht(hq)}}}var c6=false;function bw(){if(c6){return}gw();c6=true}function gw(){var i;cj(window,"resize",function(){if(i==null){i=setTimeout(function(){i=null;aK(a6)},100)}});cj(window,"blur",function(){return aK(a8)})}function a6(i){var hq=i.display;hq.cachedCharWidth=hq.cachedTextHeight=hq.cachedPaddingH=null;hq.scrollbarsClipped=false;i.setSize()}var f5={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(var gm=0;gm<10;gm++){f5[gm+48]=f5[gm+96]=String(gm)}for(var gQ=65;gQ<=90;gQ++){f5[gQ]=String.fromCharCode(gQ)}for(var gP=1;gP<=12;gP++){f5[gP+111]=f5[gP+63235]="F"+gP}var f0={};f0.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};f0.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};f0.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};f0.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};f0["default"]=cu?f0.macDefault:f0.pcDefault;function d2(hr){var hx=hr.split(/-(?!$)/);hr=hx[hx.length-1];var hw,hv,hq,hu;for(var ht=0;ht<hx.length-1;ht++){var hs=hx[ht];if(/^(cmd|meta|m)$/i.test(hs)){hu=true}else{if(/^a(lt)?$/i.test(hs)){hw=true}else{if(/^(c|ctrl|control)$/i.test(hs)){hv=true}else{if(/^s(hift)?$/i.test(hs)){hq=true}else{throw new Error("Unrecognized modifier name: "+hs)}}}}}if(hw){hr="Alt-"+hr}if(hv){hr="Ctrl-"+hr}if(hu){hr="Cmd-"+hr}if(hq){hr="Shift-"+hr}return hr}function da(hx){var hr={};for(var hw in hx){if(hx.hasOwnProperty(hw)){var hy=hx[hw];if(/^(name|fallthrough|(de|at)tach)$/.test(hw)){continue}if(hy=="..."){delete hx[hw];continue}var hz=cf(hw.split(" "),d2);for(var hv=0;hv<hz.length;hv++){var ht=(void 0),hs=(void 0);if(hv==hz.length-1){hs=hz.join(" ");ht=hy}else{hs=hz.slice(0,hv+1).join(" ");ht="..."}var hu=hr[hs];if(!hu){hr[hs]=ht}else{if(hu!=ht){throw new Error("Inconsistent bindings for "+hs)}}}delete hx[hw]}}for(var hq in hr){hx[hq]=hr[hq]}return hx}function k(ht,hw,hv,hs){hw=gW(hw);var hu=hw.call?hw.call(ht,hs):hw[ht];if(hu===false){return"nothing"}if(hu==="..."){return"multi"}if(hu!=null&&hv(hu)){return"handled"}if(hw.fallthrough){if(Object.prototype.toString.call(hw.fallthrough)!="[object Array]"){return k(ht,hw.fallthrough,hv,hs)}for(var hr=0;hr<hw.fallthrough.length;hr++){var hq=k(ht,hw.fallthrough[hr],hv,hs);if(hq){return hq}}}}function fj(hq){var i=typeof hq=="string"?hq:f5[hq.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function gZ(i,hq,hs){var hr=i;if(hq.altKey&&hr!="Alt"){i="Alt-"+i}if((cc?hq.metaKey:hq.ctrlKey)&&hr!="Ctrl"){i="Ctrl-"+i}if((cc?hq.ctrlKey:hq.metaKey)&&hr!="Cmd"){i="Cmd-"+i}if(!hs&&hq.shiftKey&&hr!="Shift"){i="Shift-"+i}return i}function gf(hq,hr){if(eE&&hq.keyCode==34&&hq["char"]){return false}var i=f5[hq.keyCode];if(i==null||hq.altGraphKey){return false}if(hq.keyCode==3&&hq.code){i=hq.code}return gZ(i,hq,hr)}function gW(i){return typeof i=="string"?f0[i]:i}function fM(hq,hw){var hr=hq.doc.sel.ranges,hu=[];for(var ht=0;ht<hr.length;ht++){var hs=hw(hr[ht]);while(hu.length&&cF(hs.from,gy(hu).to)<=0){var hv=hu.pop();if(cF(hv.from,hs.from)<0){hs.from=hv.from;break}}hu.push(hs)}dh(hq,function(){for(var hx=hu.length-1;hx>=0;hx--){be(hq.doc,"",hu[hx].from,hu[hx].to,"+delete")}gx(hq)})}function bH(i,hr,hq){var hs=eX(i.text,hr+hq,hq);return hs<0||hs>i.text.length?null:hs}function aq(i,hs,hq){var hr=bH(i,hs.ch,hq);return hr==null?null:new ac(hs.line,hr,hq<0?"after":"before")}function fh(hq,hy,hv,hu,hs){if(hq){var ht=a(hv,hy.doc.direction);if(ht){var hr=hs<0?gy(ht):ht[0];var hA=(hs<0)==(hr.level==1);var hx=hA?"after":"before";var i;if(hr.level>0||hy.doc.direction=="rtl"){var hw=bi(hy,hv);i=hs<0?hv.text.length-1:0;var hz=F(hy,hw,i).top;i=cP(function(hB){return F(hy,hw,hB).top==hz},(hs<0)==(hr.level==1)?hr.from:hr.to-1,i);if(hx=="before"){i=bH(hv,i,1)}}else{i=hs<0?hr.to:hr.from}return new ac(hu,i,hx)}}return new ac(hu,hs<0?hv.text.length:0,hs<0?"before":"after")}function v(hA,hF,ht,hw){var hC=a(hF,hA.doc.direction);if(!hC){return aq(hF,ht,hw)}if(ht.ch>=hF.text.length){ht.ch=hF.text.length;ht.sticky="before"}else{if(ht.ch<=0){ht.ch=0;ht.sticky="after"}}var hs=aS(hC,ht.ch,ht.sticky),hu=hC[hs];if(hA.doc.direction=="ltr"&&hu.level%2==0&&(hw>0?hu.to>ht.ch:hu.from<ht.ch)){return aq(hF,ht,hw)}var hD=function(hH,hG){return bH(hF,hH instanceof ac?hH.ch:hH,hG)};var hx;var hB=function(hG){if(!hA.options.lineWrapping){return{begin:0,end:hF.text.length}}hx=hx||bi(hA,hF);return bB(hA,hF,hx,hG)};var hv=hB(ht.sticky=="before"?hD(ht,-1):ht.ch);if(hA.doc.direction=="rtl"||hu.level==1){var hE=(hu.level==1)==(hw<0);var hq=hD(ht,hE?1:-1);if(hq!=null&&(!hE?hq>=hu.from&&hq>=hv.begin:hq<=hu.to&&hq<=hv.end)){var hz=hE?"before":"after";return new ac(ht.line,hq,hz)}}var hr=function(hG,hJ,hM){var hI=function(hO,hN){return hN?new ac(ht.line,hD(hO,1),"before"):new ac(ht.line,hO,"after")};for(;hG>=0&&hG<hC.length;hG+=hJ){var hH=hC[hG];var hK=(hJ>0)==(hH.level!=1);var hL=hK?hM.begin:hD(hM.end,-1);if(hH.from<=hL&&hL<hH.to){return hI(hL,hK)}hL=hK?hH.from:hD(hH.to,-1);if(hM.begin<=hL&&hL<hM.end){return hI(hL,hK)}}};var hy=hr(hs+hw,hw,hv);if(hy){return hy}var i=hw>0?hv.end:hD(hv.begin,-1);if(i!=null&&!(hw>0&&i==hF.text.length)){hy=hr(hw>0?0:hC.length-1,hw,hB(i));if(hy){return hy}}return null}var fm={selectAll:av,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),ah)},killLine:function(i){return fM(i,function(hr){if(hr.empty()){var hq=f4(i.doc,hr.head.line).text.length;if(hr.head.ch==hq&&hr.head.line<i.lastLine()){return{from:hr.head,to:ac(hr.head.line+1,0)}}else{return{from:hr.head,to:ac(hr.head.line,hq)}}}else{return{from:hr.from(),to:hr.to()}}})},deleteLine:function(i){return fM(i,function(hq){return({from:ac(hq.from().line,0),to:gD(i.doc,ac(hq.to().line+1,0))})})},delLineLeft:function(i){return fM(i,function(hq){return({from:ac(hq.from().line,0),to:hq.from()})})},delWrappedLineLeft:function(i){return fM(i,function(hq){var hs=i.charCoords(hq.head,"div").top+5;var hr=i.coordsChar({left:0,top:hs},"div");return{from:hr,to:hq.from()}})},delWrappedLineRight:function(i){return fM(i,function(hq){var hs=i.charCoords(hq.head,"div").top+5;var hr=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:hs},"div");return{from:hq.from(),to:hr}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(ac(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(ac(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(hq){return bM(i,hq.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(hq){return ef(i,hq.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(hq){return eo(i,hq.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(hq){var hr=i.cursorCoords(hq.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:hr},"div")},dr)},goLineLeft:function(i){return i.extendSelectionsBy(function(hq){var hr=i.cursorCoords(hq.head,"div").top+5;return i.coordsChar({left:0,top:hr},"div")},dr)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(hq){var hr=i.cursorCoords(hq.head,"div").top+5;var hs=i.coordsChar({left:0,top:hr},"div");if(hs.ch<i.getLine(hs.line).search(/\S/)){return ef(i,hq.head)}return hs},dr)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"char")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection("\t")},insertSoftTab:function(hq){var hs=[],hr=hq.listSelections(),hv=hq.options.tabSize;for(var hu=0;hu<hr.length;hu++){var hw=hr[hu].from();var ht=cd(hq.getLine(hw.line),hw.ch,hv);hs.push(cS(hv-ht%hv))}hq.replaceSelections(hs)},defaultTab:function(i){if(i.somethingSelected()){i.indentSelection("add")}else{i.execCommand("insertTab")}},transposeChars:function(i){return dh(i,function(){var hs=i.listSelections(),hr=[];for(var ht=0;ht<hs.length;ht++){if(!hs[ht].empty()){continue}var hv=hs[ht].head,hq=f4(i.doc,hv.line).text;if(hq){if(hv.ch==hq.length){hv=new ac(hv.line,hv.ch-1)}if(hv.ch>0){hv=new ac(hv.line,hv.ch+1);i.replaceRange(hq.charAt(hv.ch-1)+hq.charAt(hv.ch-2),ac(hv.line,hv.ch-2),hv,"+transpose")}else{if(hv.line>i.doc.first){var hu=f4(i.doc,hv.line-1).text;if(hu){hv=new ac(hv.line,1);i.replaceRange(hq.charAt(0)+i.doc.lineSeparator()+hu.charAt(hu.length-1),ac(hv.line-1,hu.length-1),hv,"+transpose")}}}}hr.push(new ex(hv,hv))}i.setSelections(hr)})},newlineAndIndent:function(i){return dh(i,function(){var hq=i.listSelections();for(var hr=hq.length-1;hr>=0;hr--){i.replaceRange(i.doc.lineSeparator(),hq[hr].anchor,hq[hr].head,"+input")}hq=i.listSelections();for(var hs=0;hs<hq.length;hs++){i.indentLine(hq[hs].from().line,null,true)}gx(i)})},openLine:function(i){return i.replaceSelection("\n","start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function bM(i,hr){var hq=f4(i.doc,hr);var hs=z(hq);if(hs!=hq){hr=b8(hs)}return fh(true,i,hs,hr,1)}function eo(i,hr){var hq=f4(i.doc,hr);var hs=cL(hq);if(hs!=hq){hr=b8(hs)}return fh(true,i,hq,hr,-1)}function ef(hq,hv){var hu=bM(hq,hv.line);var hr=f4(hq.doc,hu.line);var i=a(hr,hq.doc.direction);if(!i||i[0].level==0){var ht=Math.max(0,hr.text.search(/\S/));var hs=hv.line==hu.line&&hv.ch<=ht&&hv.ch;return ac(hu.line,hs?0:ht,hu.sticky)}return hu}function gN(hq,ht,i){if(typeof ht=="string"){ht=fm[ht];if(!ht){return false}}hq.display.input.ensurePolled();var hs=hq.display.shift,hr=false;try{if(hq.isReadOnly()){hq.state.suppressEdits=true}if(i){hq.display.shift=false}hr=ht(hq)!=cz}finally{hq.display.shift=hs;hq.state.suppressEdits=false}return hr}function eK(hr,hs,hu){for(var ht=0;ht<hr.state.keyMaps.length;ht++){var hq=k(hs,hr.state.keyMaps[ht],hu,hr);if(hq){return hq}}return(hr.options.extraKeys&&k(hs,hr.options.extraKeys,hu,hr))||k(hs,hr.options.keyMap,hu,hr)}var ek=new hp;function bq(i,hr,ht,hs){var hq=i.state.keySeq;if(hq){if(fj(hr)){return"handled"}if(/\'$/.test(hr)){i.state.keySeq=null}else{ek.set(50,function(){if(i.state.keySeq==hq){i.state.keySeq=null;i.display.input.reset()}})}if(cJ(i,hq+" "+hr,ht,hs)){return true}}return cJ(i,hr,ht,hs)}function cJ(hq,hr,ht,hs){var i=eK(hq,hr,hs);if(i=="multi"){hq.state.keySeq=hr}if(i=="handled"){am(hq,"keyHandled",hq,hr,ht)}if(i=="handled"||i=="multi"){c9(ht);q(hq)}return !!i}function f7(i,hr){var hq=gf(hr,true);if(!hq){return false}if(hr.shiftKey&&!i.state.keySeq){return bq(i,"Shift-"+hq,hr,function(hs){return gN(i,hs,true)})||bq(i,hq,hr,function(hs){if(typeof hs=="string"?/^go[A-Z]/.test(hs):hs.motion){return gN(i,hs)}})}else{return bq(i,hq,hr,function(hs){return gN(i,hs)})}}function eV(i,hr,hq){return bq(i,"'"+hq+"'",hr,function(hs){return gN(i,hs,true)})}var dX=null;function r(hs){var i=this;i.curOp.focus=em();if(a4(i,hs)){return}if(ei&&m<11&&hs.keyCode==27){hs.returnValue=false}var hq=hs.keyCode;i.display.shift=hq==16||hs.shiftKey;var hr=f7(i,hs);if(eE){dX=hr?hq:null;if(!hr&&hq==88&&!dI&&(cu?hs.metaKey:hs.ctrlKey)){i.replaceSelection("",null,"cut")}}if(hq==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)){aC(i)}}function aC(hq){var hr=hq.display.lineDiv;gs(hr,"CodeMirror-crosshair");function i(hs){if(hs.keyCode==18||!hs.altKey){h(hr,"CodeMirror-crosshair");eS(document,"keyup",i);eS(document,"mouseover",i)}}cj(document,"keyup",i);cj(document,"mouseover",i)}function bu(i){if(i.keyCode==16){this.doc.sel.shift=false}a4(this,i)}function c0(ht){var i=this;if(bo(i.display,ht)||a4(i,ht)||ht.ctrlKey&&!ht.altKey||cu&&ht.metaKey){return}var hs=ht.keyCode,hq=ht.charCode;if(eE&&hs==dX){dX=null;c9(ht);return}if((eE&&(!ht.which||ht.which<10))&&f7(i,ht)){return}var hr=String.fromCharCode(hq==null?hs:hq);if(hr=="\x08"){return}if(eV(i,ht,hr)){return}i.display.input.onKeyPress(ht)}var dB=400;var dV=function(hq,hr,i){this.time=hq;this.pos=hr;this.button=i};dV.prototype.compare=function(hq,hr,i){return this.time+dB>hq&&cF(hr,this.pos)==0&&i==this.button};var dW;var dM;function I(hr,hq){var i=+new Date;if(dM&&dM.compare(i,hr,hq)){dW=dM=null;return"triple"}else{if(dW&&dW.compare(i,hr,hq)){dM=new dV(i,hr,hq);dW=null;return"double"}else{dW=new dV(i,hr,hq);dM=null;return"single"}}}function fb(ht){var i=this,hs=i.display;if(a4(i,ht)||hs.activeTouch&&hs.input.supportsTouch()){return}hs.input.ensurePolled();hs.shift=ht.shiftKey;if(bo(hs,ht)){if(!dv){hs.scroller.draggable=false;setTimeout(function(){return hs.scroller.draggable=true},100)}return}if(n(i,ht)){return}var hu=cQ(i,ht),hq=gJ(ht),hr=hu?I(hu,hq):"single";window.focus();if(hq==1&&i.state.selectingText){i.state.selectingText(ht)}if(hu&&df(i,hq,hu,hr,ht)){return}if(hq==1){if(hu){aG(i,hu,hr,ht)}else{if(Q(ht)==hs.scroller){c9(ht)}}}else{if(hq==2){if(hu){gX(i.doc,hu)}setTimeout(function(){return hs.input.focus()},20)}else{if(hq==3){if(hf){aH(i,ht)}else{at(i)}}}}}function df(i,hr,hu,ht,hs){var hq="Click";if(ht=="double"){hq="Double"+hq}else{if(ht=="triple"){hq="Triple"+hq}}hq=(hr==1?"Left":hr==2?"Middle":"Right")+hq;return bq(i,gZ(hq,hs),hs,function(hw){if(typeof hw=="string"){hw=fm[hw]}if(!hw){return false}var hv=false;try{if(i.isReadOnly()){i.state.suppressEdits=true}hv=hw(i,hu)!=cz}finally{i.state.suppressEdits=false}return hv})}function b3(i,hu,hs){var hq=i.getOption("configureMouse");var ht=hq?hq(i,hu,hs):{};if(ht.unit==null){var hr=gC?hs.shiftKey&&hs.metaKey:hs.altKey;ht.unit=hr?"rectangle":hu=="single"?"char":hu=="double"?"word":"line"}if(ht.extend==null||i.doc.extend){ht.extend=i.doc.extend||hs.shiftKey}if(ht.addNew==null){ht.addNew=cu?hs.metaKey:hs.ctrlKey}if(ht.moveOnDrag==null){ht.moveOnDrag=!(cu?hs.altKey:hs.ctrlKey)}return ht}function aG(i,hv,hu,hs){if(ei){setTimeout(cY(t,i),0)}else{i.curOp.focus=em()}var hr=b3(i,hu,hs);var ht=i.doc.sel,hq;if(i.options.dragDrop&&fx&&!i.isReadOnly()&&hu=="single"&&(hq=ht.contains(hv))>-1&&(cF((hq=ht.ranges[hq]).from(),hv)<0||hv.xRel>0)&&(cF(hq.to(),hv)>0||hv.xRel<0)){bg(i,hs,hv,hr)}else{o(i,hs,hv,hr)}}function bg(hw,i,ht,hq){var hs=hw.display,hu=false;var hr=dw(hw,function(hy){if(dv){hs.scroller.draggable=false}hw.state.draggingText=false;eS(hs.wrapper.ownerDocument,"mouseup",hr);eS(hs.wrapper.ownerDocument,"mousemove",hx);eS(hs.scroller,"dragstart",hv);eS(hs.scroller,"drop",hr);if(!hu){c9(hy);if(!hq.addNew){gX(hw.doc,ht,null,null,hq.extend)}if(dv||ei&&m==9){setTimeout(function(){hs.wrapper.ownerDocument.body.focus();hs.input.focus()},20)}else{hs.input.focus()}}});var hx=function(hy){hu=hu||Math.abs(i.clientX-hy.clientX)+Math.abs(i.clientY-hy.clientY)>=10};var hv=function(){return hu=true};if(dv){hs.scroller.draggable=true}hw.state.draggingText=hr;hr.copy=!hq.moveOnDrag;if(hs.scroller.dragDrop){hs.scroller.dragDrop()}cj(hs.wrapper.ownerDocument,"mouseup",hr);cj(hs.wrapper.ownerDocument,"mousemove",hx);cj(hs.scroller,"dragstart",hv);cj(hs.scroller,"drop",hr);at(hw);setTimeout(function(){return hs.input.focus()},20)}function es(hq,hs,hr){if(hr=="char"){return new ex(hs,hs)}if(hr=="word"){return hq.findWordAt(hs)}if(hr=="line"){return new ex(ac(hs.line,0),gD(hq.doc,ac(hs.line+1,0)))}var i=hr(hq,hs);return new ex(i.from,i.to)}function o(hs,hE,hr,hw){var hD=hs.display,hH=hs.doc;c9(hE);var hq,hG,ht=hH.sel,i=ht.ranges;if(hw.addNew&&!hw.extend){hG=hH.sel.contains(hr);if(hG>-1){hq=i[hG]}else{hq=new ex(hr,hr)}}else{hq=hH.sel.primary();hG=hH.sel.primIndex}if(hw.unit=="rectangle"){if(!hw.addNew){hq=new ex(hr,hr)}hr=cQ(hs,hE,true,true);hG=-1}else{var hx=es(hs,hr,hw.unit);if(hw.extend){hq=gj(hq,hx.anchor,hx.head,hw.extend)}else{hq=hx}}if(!hw.addNew){hG=0;cg(hH,new g4([hq],0),R);ht=hH.sel}else{if(hG==-1){hG=i.length;cg(hH,cZ(i.concat([hq]),hG),{scroll:false,origin:"*mouse"})}else{if(i.length>1&&i[hG].empty()&&hw.unit=="char"&&!hw.extend){cg(hH,cZ(i.slice(0,hG).concat(i.slice(hG+1)),0),{scroll:false,origin:"*mouse"});ht=hH.sel}else{e(hH,hG,hq,R)}}}var hC=hr;function hB(hT){if(cF(hC,hT)==0){return}hC=hT;if(hw.unit=="rectangle"){var hK=[],hQ=hs.options.tabSize;var hJ=cd(f4(hH,hr.line).text,hr.ch,hQ);var hW=cd(f4(hH,hT.line).text,hT.ch,hQ);var hL=Math.min(hJ,hW),hU=Math.max(hJ,hW);for(var hX=Math.min(hr.line,hT.line),hN=Math.min(hs.lastLine(),Math.max(hr.line,hT.line));hX<=hN;hX++){var hV=f4(hH,hX).text,hM=e5(hV,hL,hQ);if(hL==hU){hK.push(new ex(ac(hX,hM),ac(hX,hM)))}else{if(hV.length>hM){hK.push(new ex(ac(hX,hM),ac(hX,e5(hV,hU,hQ))))}}}if(!hK.length){hK.push(new ex(hr,hr))}cg(hH,cZ(ht.ranges.slice(0,hG).concat(hK),hG),{origin:"*mouse",scroll:false});hs.scrollIntoView(hT)}else{var hR=hq;var hP=es(hs,hT,hw.unit);var hO=hR.anchor,hS;if(cF(hP.anchor,hO)>0){hS=hP.head;hO=aB(hR.from(),hP.anchor)}else{hS=hP.anchor;hO=bR(hR.to(),hP.head)}var hI=ht.ranges.slice(0);hI[hG]=au(hs,new ex(gD(hH,hO),hS));cg(hH,cZ(hI,hG),R)}}var hz=hD.wrapper.getBoundingClientRect();var hu=0;function hF(hK){var hI=++hu;var hM=cQ(hs,hK,true,hw.unit=="rectangle");if(!hM){return}if(cF(hM,hC)!=0){hs.curOp.focus=em();hB(hM);var hL=ct(hD,hH);if(hM.line>=hL.to||hM.line<hL.from){setTimeout(dw(hs,function(){if(hu==hI){hF(hK)}}),150)}}else{var hJ=hK.clientY<hz.top?-20:hK.clientY>hz.bottom?20:0;if(hJ){setTimeout(dw(hs,function(){if(hu!=hI){return}hD.scroller.scrollTop+=hJ;hF(hK)}),50)}}}function hy(hI){hs.state.selectingText=false;hu=Infinity;c9(hI);hD.input.focus();eS(hD.wrapper.ownerDocument,"mousemove",hA);eS(hD.wrapper.ownerDocument,"mouseup",hv);hH.history.lastSelOrigin=null}var hA=dw(hs,function(hI){if(hI.buttons===0||!gJ(hI)){hy(hI)}else{hF(hI)}});var hv=dw(hs,hy);hs.state.selectingText=hv;cj(hD.wrapper.ownerDocument,"mousemove",hA);cj(hD.wrapper.ownerDocument,"mouseup",hv)}function au(hE,hx){var hw=hx.anchor;var hB=hx.head;var hA=f4(hE.doc,hw.line);if(cF(hw,hB)==0&&hw.sticky==hB.sticky){return hx}var ht=a(hA);if(!ht){return hx}var hz=aS(ht,hw.ch,hw.sticky),hr=ht[hz];if(hr.from!=hw.ch&&hr.to!=hw.ch){return hx}var hq=hz+((hr.from==hw.ch)==(hr.level!=1)?0:1);if(hq==0||hq==ht.length){return hx}var hy;if(hB.line!=hw.line){hy=(hB.line-hw.line)*(hE.doc.direction=="ltr"?1:-1)>0}else{var hv=aS(ht,hB.ch,hB.sticky);var hs=hv-hz||(hB.ch-hw.ch)*(hr.level==1?-1:1);if(hv==hq-1||hv==hq){hy=hs<0}else{hy=hs>0}}var hu=ht[hq+(hy?-1:0)];var hD=hy==(hu.level==1);var i=hD?hu.from:hu.to,hC=hD?"after":"before";return hw.ch==i&&hw.sticky==hC?hx:new ex(new ac(hw.line,i,hC),hB)}function ho(hA,hw,hy,hz){var hr,hq;if(hw.touches){hr=hw.touches[0].clientX;hq=hw.touches[0].clientY}else{try{hr=hw.clientX;hq=hw.clientY}catch(hw){return false}}if(hr>=Math.floor(hA.display.gutters.getBoundingClientRect().right)){return false}if(hz){c9(hw)}var hx=hA.display;var hv=hx.lineDiv.getBoundingClientRect();if(hq>hv.bottom||!f9(hA,hy)){return b6(hw)}hq-=hv.top-hx.viewOffset;for(var ht=0;ht<hA.options.gutters.length;++ht){var hu=hx.gutters.childNodes[ht];if(hu&&hu.getBoundingClientRect().right>=hr){var hB=b1(hA.doc,hq);var hs=hA.options.gutters[ht];aO(hA,hy,hA,hB,hs,hw);return b6(hw)}}}function n(i,hq){return ho(i,hq,"gutterClick",true)}function aH(i,hq){if(bo(i.display,hq)||dP(i,hq)){return}if(a4(i,hq,"contextmenu")){return}i.display.input.onContextMenu(hq)}function dP(i,hq){if(!f9(i,"gutterContextMenu")){return false}return ho(i,hq,"gutterContextMenu",false)}function di(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-");ar(i)}var cA={toString:function(){return"CodeMirror.Init"}};var fR={};var bs={};function fr(i){var hr=i.optionHandlers;function hq(hs,hv,hu,ht){i.defaults[hs]=hv;if(hu){hr[hs]=ht?function(hw,hy,hx){if(hx!=cA){hu(hw,hy,hx)}}:hu}}i.defineOption=hq;i.Init=cA;hq("value","",function(hs,ht){return hs.setValue(ht)},true);hq("mode",null,function(hs,ht){hs.doc.modeOption=ht;bK(hs)},true);hq("indentUnit",2,bK,true);hq("indentWithTabs",false);hq("smartIndent",true);hq("tabSize",4,function(hs){e0(hs);ar(hs);ap(hs)},true);hq("lineSeparator",null,function(hs,hv){hs.doc.lineSep=hv;if(!hv){return}var hu=[],hw=hs.doc.first;hs.doc.iter(function(hx){for(var hz=0;;){var hy=hx.text.indexOf(hv,hz);if(hy==-1){break}hz=hy+hv.length;hu.push(ac(hw,hy))}hw++});for(var ht=hu.length-1;ht>=0;ht--){be(hs.doc,hv,hu[ht],ac(hu[ht].line,hu[ht].ch+hv.length))}});hq("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(hs,hu,ht){hs.state.specialChars=new RegExp(hu.source+(hu.test("\t")?"":"|\t"),"g");if(ht!=cA){hs.refresh()}});hq("specialCharPlaceholder",f3,function(hs){return hs.refresh()},true);hq("electricChars",true);hq("inputStyle",eT?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);hq("spellcheck",false,function(hs,ht){return hs.getInputField().spellcheck=ht},true);hq("rtlMoveVisually",!a1);hq("wholeLineUpdateBefore",true);hq("theme","default",function(hs){di(hs);d5(hs)},true);hq("keyMap","default",function(hs,hw,ht){var hu=gW(hw);var hv=ht!=cA&&gW(ht);if(hv&&hv.detach){hv.detach(hs,hu)}if(hu.attach){hu.attach(hs,hv||null)}});hq("extraKeys",null);hq("configureMouse",null);hq("lineWrapping",false,fq,true);hq("gutters",[],function(hs){cD(hs.options);d5(hs)},true);hq("fixedGutter",true,function(hs,ht){hs.display.gutters.style.left=ht?ey(hs.display)+"px":"0";hs.refresh()},true);hq("coverGutterNextToScrollbar",false,function(hs){return fN(hs)},true);hq("scrollbarStyle","native",function(hs){aN(hs);fN(hs);hs.display.scrollbars.setScrollTop(hs.doc.scrollTop);hs.display.scrollbars.setScrollLeft(hs.doc.scrollLeft)},true);hq("lineNumbers",false,function(hs){cD(hs.options);d5(hs)},true);hq("firstLineNumber",1,d5,true);hq("lineNumberFormatter",function(hs){return hs},d5,true);hq("showCursorWhenSelecting",false,bW,true);hq("resetSelectionOnContextMenu",true);hq("lineWiseCopyCut",true);hq("pasteLinesPerSelection",true);hq("readOnly",false,function(hs,ht){if(ht=="nocursor"){a8(hs);hs.display.input.blur()}hs.display.input.readOnlyChanged(ht)});hq("disableInput",false,function(hs,ht){if(!ht){hs.display.input.reset()}},true);hq("dragDrop",true,g2);hq("allowDropFileTypes",null);hq("cursorBlinkRate",530);hq("cursorScrollMargin",0);hq("cursorHeight",1,bW,true);hq("singleCursorHeightPerLine",true,bW,true);hq("workTime",100);hq("workDelay",100);hq("flattenSpans",true,e0,true);hq("addModeClass",false,e0,true);hq("pollInterval",100);hq("undoDepth",200,function(hs,ht){return hs.doc.history.undoDepth=ht});hq("historyEventDelay",1250);hq("viewportMargin",10,function(hs){return hs.refresh()},true);hq("maxHighlightLength",10000,e0,true);hq("moveInputWithCursor",true,function(hs,ht){if(!ht){hs.display.input.resetPosition()}});hq("tabindex",null,function(hs,ht){return hs.display.input.getField().tabIndex=ht||""});hq("autofocus",null);hq("direction","ltr",function(hs,ht){return hs.doc.setDirection(ht)},true)}function d5(i){eP(i);ap(i);fo(i)}function g2(hq,ht,hr){var hu=hr&&hr!=cA;if(!ht!=!hu){var hs=hq.display.dragFunctions;var i=ht?cj:eS;i(hq.display.scroller,"dragstart",hs.start);i(hq.display.scroller,"dragenter",hs.enter);i(hq.display.scroller,"dragover",hs.over);i(hq.display.scroller,"dragleave",hs.leave);i(hq.display.scroller,"drop",hs.drop)}}function fq(i){if(i.options.lineWrapping){gs(i.display.wrapper,"CodeMirror-wrap");i.display.sizer.style.minWidth="";i.display.sizerWidth=null}else{h(i.display.wrapper,"CodeMirror-wrap");f(i)}af(i);ap(i);ar(i);setTimeout(function(){return fN(i)},100)}function K(hq,hs){var hx=this;if(!(this instanceof K)){return new K(hq,hs)}this.options=hs=hs?aZ(hs):{};aZ(fR,hs,false);cD(hs);var hw=hs.value;if(typeof hw=="string"){hw=new aD(hw,hs.mode,null,hs.lineSeparator,hs.direction)}this.doc=hw;var hr=new K.inputStyles[hs.inputStyle](this);var hv=this.display=new ft(hq,hw,hr);hv.wrapper.CodeMirror=this;eP(this);di(this);if(hs.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}aN(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,selectingText:false,draggingText:false,highlight:new hp(),keySeq:null,specialChars:null};if(hs.autofocus&&!eT){hv.input.focus()}if(ei&&m<11){setTimeout(function(){return hx.display.input.reset(true)},20)}gM(this);bw();dd(this);this.curOp.forceUpdate=true;eO(this,hw);if((hs.autofocus&&!eT)||this.hasFocus()){setTimeout(cY(c4,this),20)}else{a8(this)}for(var hu in bs){if(bs.hasOwnProperty(hu)){bs[hu](hx,hs[hu],cA)}}eH(this);if(hs.finishInit){hs.finishInit(this)}for(var ht=0;ht<bl.length;++ht){bl[ht](hx)}aw(this);if(dv&&hs.lineWrapping&&getComputedStyle(hv.lineDiv).textRendering=="optimizelegibility"){hv.lineDiv.style.textRendering="auto"}}K.defaults=fR;K.optionHandlers=bs;function gM(hq){var hu=hq.display;cj(hu.scroller,"mousedown",dw(hq,fb));if(ei&&m<11){cj(hu.scroller,"dblclick",dw(hq,function(hy){if(a4(hq,hy)){return}var hz=cQ(hq,hy);if(!hz||n(hq,hy)||bo(hq.display,hy)){return}c9(hy);var hx=hq.findWordAt(hz);gX(hq.doc,hx.anchor,hx.head)}))}else{cj(hu.scroller,"dblclick",function(hx){return a4(hq,hx)||c9(hx)})}if(!hf){cj(hu.scroller,"contextmenu",function(hx){return aH(hq,hx)})}var hw,i={end:0};function hv(){if(hu.activeTouch){hw=setTimeout(function(){return hu.activeTouch=null},1000);i=hu.activeTouch;i.end=+new Date}}function hs(hx){if(hx.touches.length!=1){return false}var hy=hx.touches[0];return hy.radiusX<=1&&hy.radiusY<=1}function hr(hA,hx){if(hx.left==null){return true}var hz=hx.left-hA.left,hy=hx.top-hA.top;return hz*hz+hy*hy>20*20}cj(hu.scroller,"touchstart",function(hy){if(!a4(hq,hy)&&!hs(hy)&&!n(hq,hy)){hu.input.ensurePolled();clearTimeout(hw);var hx=+new Date;hu.activeTouch={start:hx,moved:false,prev:hx-i.end<=300?i:null};if(hy.touches.length==1){hu.activeTouch.left=hy.touches[0].pageX;hu.activeTouch.top=hy.touches[0].pageY}}});cj(hu.scroller,"touchmove",function(){if(hu.activeTouch){hu.activeTouch.moved=true}});cj(hu.scroller,"touchend",function(hy){var hA=hu.activeTouch;if(hA&&!bo(hu,hy)&&hA.left!=null&&!hA.moved&&new Date-hA.start<300){var hz=hq.coordsChar(hu.activeTouch,"page"),hx;if(!hA.prev||hr(hA,hA.prev)){hx=new ex(hz,hz)}else{if(!hA.prev.prev||hr(hA,hA.prev.prev)){hx=hq.findWordAt(hz)}else{hx=new ex(ac(hz.line,0),gD(hq.doc,ac(hz.line+1,0)))}}hq.setSelection(hx.anchor,hx.head);hq.focus();c9(hy)}hv()});cj(hu.scroller,"touchcancel",hv);cj(hu.scroller,"scroll",function(){if(hu.scroller.clientHeight){B(hq,hu.scroller.scrollTop);bY(hq,hu.scroller.scrollLeft,true);aO(hq,"scroll",hq)}});cj(hu.scroller,"mousewheel",function(hx){return c(hq,hx)});cj(hu.scroller,"DOMMouseScroll",function(hx){return c(hq,hx)});cj(hu.wrapper,"scroll",function(){return hu.wrapper.scrollTop=hu.wrapper.scrollLeft=0});hu.dragFunctions={enter:function(hx){if(!a4(hq,hx)){e6(hx)}},over:function(hx){if(!a4(hq,hx)){hn(hq,hx);e6(hx)}},start:function(hx){return U(hq,hx)},drop:dw(hq,bx),leave:function(hx){if(!a4(hq,hx)){dJ(hq)}}};var ht=hu.input.getField();cj(ht,"keyup",function(hx){return bu.call(hq,hx)});cj(ht,"keydown",dw(hq,r));cj(ht,"keypress",dw(hq,c0));cj(ht,"focus",function(hx){return c4(hq,hx)});cj(ht,"blur",function(hx){return a8(hq,hx)})}var bl=[];K.defineInitHook=function(i){return bl.push(i)};function ak(hF,hu,hE,hs){var hD=hF.doc,hr;if(hE==null){hE="add"}if(hE=="smart"){if(!hD.mode.indent){hE="prev"}else{hr=fL(hF,hu).state}}var hy=hF.options.tabSize;var hG=f4(hD,hu),hx=cd(hG.text,null,hy);if(hG.stateAfter){hG.stateAfter=null}var hq=hG.text.match(/^\s*/)[0],hB;if(!hs&&!/\S/.test(hG.text)){hB=0;hE="not"}else{if(hE=="smart"){hB=hD.mode.indent(hr,hG.text.slice(hq.length),hG.text);if(hB==cz||hB>150){if(!hs){return}hE="prev"}}}if(hE=="prev"){if(hu>hD.first){hB=cd(f4(hD,hu-1).text,null,hy)}else{hB=0}}else{if(hE=="add"){hB=hx+hF.options.indentUnit}else{if(hE=="subtract"){hB=hx-hF.options.indentUnit}else{if(typeof hE=="number"){hB=hx+hE}}}}hB=Math.max(0,hB);var hC="",hA=0;if(hF.options.indentWithTabs){for(var hv=Math.floor(hB/hy);hv;--hv){hA+=hy;hC+="\t"}}if(hA<hB){hC+=cS(hB-hA)}if(hC!=hq){be(hD,hC,ac(hu,0),ac(hu,hq.length),"+input");hG.stateAfter=null;return true}else{for(var ht=0;ht<hD.sel.ranges.length;ht++){var hw=hD.sel.ranges[ht];if(hw.head.line==hu&&hw.head.ch<hq.length){var hz=ac(hu,hq.length);e(hD,ht,new ex(hz,hz));break}}}}var bz=null;function dC(i){bz=i}function gY(hF,hv,ht,hs,hE){var hD=hF.doc;hF.display.shift=false;if(!hs){hs=hD.sel}var hu=hF.state.pasteIncoming||hE=="paste";var hy=gO(hv),hq=null;if(hu&&hs.ranges.length>1){if(bz&&bz.text.join("\n")==hv){if(hs.ranges.length%bz.text.length==0){hq=[];for(var hw=0;hw<bz.text.length;hw++){hq.push(hD.splitLines(bz.text[hw]))}}}else{if(hy.length==hs.ranges.length&&hF.options.pasteLinesPerSelection){hq=cf(hy,function(i){return[i]})}}}var hz;for(var hr=hs.ranges.length-1;hr>=0;hr--){var hx=hs.ranges[hr];var hC=hx.from(),hB=hx.to();if(hx.empty()){if(ht&&ht>0){hC=ac(hC.line,hC.ch-ht)}else{if(hF.state.overwrite&&!hu){hB=ac(hB.line,Math.min(f4(hD,hB.line).text.length,hB.ch+gy(hy).length))}else{if(bz&&bz.lineWise&&bz.text.join("\n")==hv){hC=hB=ac(hC.line,0)}}}}hz=hF.curOp.updateInput;var hA={from:hC,to:hB,text:hq?hq[hr%hq.length]:hy,origin:hE||(hu?"paste":hF.state.cutIncoming?"cut":"+input")};bt(hF.doc,hA);am(hF,"inputRead",hF,hA)}if(hv&&!hu){gU(hF,hv)}gx(hF);hF.curOp.updateInput=hz;hF.curOp.typing=true;hF.state.pasteIncoming=hF.state.cutIncoming=false}function bn(hr,i){var hq=hr.clipboardData&&hr.clipboardData.getData("Text");if(hq){hr.preventDefault();if(!i.isReadOnly()&&!i.options.disableInput){dh(i,function(){return gY(i,hq,0,null,"paste")})}return true}}function gU(hq,hu){if(!hq.options.electricChars||!hq.options.smartIndent){return}var hv=hq.doc.sel;for(var ht=hv.ranges.length-1;ht>=0;ht--){var hr=hv.ranges[ht];if(hr.head.ch>100||(ht&&hv.ranges[ht-1].head.line==hr.head.line)){continue}var hw=hq.getModeAt(hr.head);var hx=false;if(hw.electricChars){for(var hs=0;hs<hw.electricChars.length;hs++){if(hu.indexOf(hw.electricChars.charAt(hs))>-1){hx=ak(hq,hr.head.line,"smart");break}}}else{if(hw.electricInput){if(hw.electricInput.test(f4(hq.doc,hr.head.line).text.slice(0,hr.head.ch))){hx=ak(hq,hr.head.line,"smart")}}}if(hx){am(hq,"electricInput",hq,hr.head.line)}}}function dQ(hq){var hv=[],hs=[];for(var ht=0;ht<hq.doc.sel.ranges.length;ht++){var hr=hq.doc.sel.ranges[ht].head.line;var hu={anchor:ac(hr,0),head:ac(hr+1,0)};hs.push(hu);hv.push(hq.getRange(hu.anchor,hu.head))}return{text:hv,ranges:hs}}function gK(hq,i){hq.setAttribute("autocorrect","off");hq.setAttribute("autocapitalize","off");hq.setAttribute("spellcheck",!!i)}function ba(){var i=g5("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none");var hq=g5("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(dv){i.style.width="1000px"}else{i.setAttribute("wrap","off")}if(fQ){i.style.border="1px solid black"}gK(i);return hq}function en(i){var hq=i.optionHandlers;var hr=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus();this.display.input.focus()},setOption:function(hu,hv){var ht=this.options,hs=ht[hu];if(ht[hu]==hv&&hu!="mode"){return}ht[hu]=hv;if(hq.hasOwnProperty(hu)){dw(this,hq[hu])(this,hv,hs)}aO(this,"optionChange",this,hu)},getOption:function(hs){return this.options[hs]},getDoc:function(){return this.doc},addKeyMap:function(ht,hs){this.state.keyMaps[hs?"push":"unshift"](gW(ht))},removeKeyMap:function(ht){var hu=this.state.keyMaps;for(var hs=0;hs<hu.length;++hs){if(hu[hs]==ht||hu[hs].name==ht){hu.splice(hs,1);return true}}},addOverlay:dG(function(hs,ht){var hu=hs.token?hs:i.getMode(this.options,hs);if(hu.startState){throw new Error("Overlays may not be stateful.")}cx(this.state.overlays,{mode:hu,modeSpec:hs,opaque:ht&&ht.opaque,priority:(ht&&ht.priority)||0},function(hv){return hv.priority});this.state.modeGen++;ap(this)}),removeOverlay:dG(function(hs){var hw=this;var hu=this.state.overlays;for(var ht=0;ht<hu.length;++ht){var hv=hu[ht].modeSpec;if(hv==hs||typeof hs=="string"&&hv.name==hs){hu.splice(ht,1);hw.state.modeGen++;ap(hw);return}}}),indentLine:dG(function(hu,hs,ht){if(typeof hs!="string"&&typeof hs!="number"){if(hs==null){hs=this.options.smartIndent?"smart":"prev"}else{hs=hs?"add":"subtract"}}if(cw(this.doc,hu)){ak(this,hu,hs,ht)}}),indentSelection:dG(function(hC){var hy=this;var hs=this.doc.sel.ranges,hv=-1;for(var hx=0;hx<hs.length;hx++){var hz=hs[hx];if(!hz.empty()){var hA=hz.from(),hB=hz.to();var ht=Math.max(hv,hA.line);hv=Math.min(hy.lastLine(),hB.line-(hB.ch?0:1))+1;for(var hw=ht;hw<hv;++hw){ak(hy,hw,hC)}var hu=hy.doc.sel.ranges;if(hA.ch==0&&hs.length==hu.length&&hu[hx].from().ch>0){e(hy.doc,hx,new ex(hA,hu[hx].to()),ah)}}else{if(hz.head.line>hv){ak(hy,hz.head.line,hC,true);hv=hz.head.line;if(hx==hy.doc.sel.primIndex){gx(hy)}}}}}),getTokenAt:function(ht,hs){return cT(this,ht,hs)},getLineTokens:function(ht,hs){return cT(this,ac(ht),hs,true)},getTokenTypeAt:function(hz){hz=gD(this.doc,hz);var hv=dE(this,f4(this.doc,hz.line));var hx=0,hy=(hv.length-1)/2,hu=hz.ch;var ht;if(hu==0){ht=hv[2]}else{for(;;){var hs=(hx+hy)>>1;if((hs?hv[hs*2-1]:0)>=hu){hy=hs}else{if(hv[hs*2+1]<hu){hx=hs+1}else{ht=hv[hs*2+2];break}}}}var hw=ht?ht.indexOf("overlay "):-1;return hw<0?ht:hw==0?null:ht.slice(0,hw-1)},getModeAt:function(ht){var hs=this.doc.mode;if(!hs.innerMode){return hs}return i.innerMode(hs,this.getTokenAt(ht).state).mode},getHelper:function(ht,hs){return this.getHelpers(ht,hs)[0]},getHelpers:function(hz,hy){var hw=this;var hB=[];if(!hr.hasOwnProperty(hy)){return hB}var hu=hr[hy],hx=this.getModeAt(hz);if(typeof hx[hy]=="string"){if(hu[hx[hy]]){hB.push(hu[hx[hy]])}}else{if(hx[hy]){for(var hv=0;hv<hx[hy].length;hv++){var ht=hu[hx[hy][hv]];if(ht){hB.push(ht)}}}else{if(hx.helperType&&hu[hx.helperType]){hB.push(hu[hx.helperType])}else{if(hu[hx.name]){hB.push(hu[hx.name])}}}}for(var hs=0;hs<hu._global.length;hs++){var hA=hu._global[hs];if(hA.pred(hx,hw)&&dR(hB,hA.val)==-1){hB.push(hA.val)}}return hB},getStateAfter:function(ht,hs){var hu=this.doc;ht=dA(hu,ht==null?hu.first+hu.size-1:ht);return fL(this,ht+1,hs).state},cursorCoords:function(hv,ht){var hu,hs=this.doc.sel.primary();if(hv==null){hu=hs.head}else{if(typeof hv=="object"){hu=gD(this.doc,hv)}else{hu=hv?hs.from():hs.to()}}return eu(this,hu,ht||"page")},charCoords:function(ht,hs){return de(this,gD(this.doc,ht),hs||"page")},coordsChar:function(hs,ht){hs=hl(this,hs,ht||"page");return gL(this,hs.left,hs.top)},lineAtHeight:function(hs,ht){hs=hl(this,{top:hs,left:0},ht||"page").top;return b1(this.doc,hs+this.display.viewOffset)},heightAtLine:function(ht,hx,hw){var hs=false,hu;if(typeof ht=="number"){var hv=this.doc.first+this.doc.size-1;if(ht<this.doc.first){ht=this.doc.first}else{if(ht>hv){ht=hv;hs=true}}hu=f4(this.doc,ht)}else{hu=ht}return fD(this,hu,{top:0,left:0},hx||"page",hw||hs).top+(hs?this.doc.height-b7(hu):0)},defaultTextHeight:function(){return bb(this.display)},defaultCharWidth:function(){return ea(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(hx,hu,hz,hv,hB){var hw=this.display;hx=eu(this,gD(this.doc,hx));var hy=hx.bottom,ht=hx.left;hu.style.position="absolute";hu.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(hu);hw.sizer.appendChild(hu);if(hv=="over"){hy=hx.top}else{if(hv=="above"||hv=="near"){var hs=Math.max(hw.wrapper.clientHeight,this.doc.height),hA=Math.max(hw.sizer.clientWidth,hw.lineSpace.clientWidth);if((hv=="above"||hx.bottom+hu.offsetHeight>hs)&&hx.top>hu.offsetHeight){hy=hx.top-hu.offsetHeight}else{if(hx.bottom+hu.offsetHeight<=hs){hy=hx.bottom}}if(ht+hu.offsetWidth>hA){ht=hA-hu.offsetWidth}}}hu.style.top=hy+"px";hu.style.left=hu.style.right="";if(hB=="right"){ht=hw.sizer.clientWidth-hu.offsetWidth;hu.style.right="0px"}else{if(hB=="left"){ht=0}else{if(hB=="middle"){ht=(hw.sizer.clientWidth-hu.offsetWidth)/2}}hu.style.left=ht+"px"}if(hz){H(this,{left:ht,top:hy,right:ht+hu.offsetWidth,bottom:hy+hu.offsetHeight})}},triggerOnKeyDown:dG(r),triggerOnKeyPress:dG(c0),triggerOnKeyUp:bu,triggerOnMouseDown:dG(fb),execCommand:function(hs){if(fm.hasOwnProperty(hs)){return fm[hs].call(null,this)}},triggerElectric:dG(function(hs){gU(this,hs)}),findPosH:function(hz,hv,hw,ht){var hy=this;var hs=1;if(hv<0){hs=-1;hv=-hv}var hx=gD(this.doc,hz);for(var hu=0;hu<hv;++hu){hx=bP(hy.doc,hx,hs,hw,ht);if(hx.hitSide){break}}return hx},moveH:dG(function(hs,ht){var hu=this;this.extendSelectionsBy(function(hv){if(hu.display.shift||hu.doc.extend||hv.empty()){return bP(hu.doc,hv.head,hs,ht,hu.options.rtlMoveVisually)}else{return hs<0?hv.from():hv.to()}},dr)}),deleteH:dG(function(hs,ht){var hu=this.doc.sel,hv=this.doc;if(hu.somethingSelected()){hv.replaceSelection("",null,"+delete")}else{fM(this,function(hx){var hw=bP(hv,hx.head,hs,ht,false);return hs<0?{from:hw,to:hx.head}:{from:hx.head,to:hw}})}}),findPosV:function(hy,hv,hz,hB){var hu=this;var hs=1,hx=hB;if(hv<0){hs=-1;hv=-hv}var hA=gD(this.doc,hy);for(var ht=0;ht<hv;++ht){var hw=eu(hu,hA,"div");if(hx==null){hx=hw.left}else{hw.left=hx}hA=bJ(hu,hw,hs,hz);if(hA.hitSide){break}}return hA},moveV:dG(function(hs,hu){var hy=this;var hw=this.doc,hv=[];var hx=!this.display.shift&&!hw.extend&&hw.sel.somethingSelected();hw.extendSelectionsBy(function(hz){if(hx){return hs<0?hz.from():hz.to()}var hB=eu(hy,hz.head,"div");if(hz.goalColumn!=null){hB.left=hz.goalColumn}hv.push(hB.left);var hA=bJ(hy,hB,hs,hu);if(hu=="page"&&hz==hw.sel.primary()){db(hy,de(hy,hA,"div").top-hB.top)}return hA},dr);if(hv.length){for(var ht=0;ht<hw.sel.ranges.length;ht++){hw.sel.ranges[ht].goalColumn=hv[ht]}}}),findWordAt:function(hz){var hx=this.doc,hv=f4(hx,hz.line).text;var hy=hz.ch,hu=hz.ch;if(hv){var hw=this.getHelper(hz,"wordChars");if((hz.sticky=="before"||hu==hv.length)&&hy){--hy}else{++hu}var ht=hv.charAt(hy);var hs=c3(ht,hw)?function(hA){return c3(hA,hw)}:/\s/.test(ht)?function(hA){return/\s/.test(hA)}:function(hA){return(!/\s/.test(hA)&&!c3(hA))};while(hy>0&&hs(hv.charAt(hy-1))){--hy}while(hu<hv.length&&hs(hv.charAt(hu))){++hu}}return new ex(ac(hz.line,hy),ac(hz.line,hu))},toggleOverwrite:function(hs){if(hs!=null&&hs==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){gs(this.display.cursorDiv,"CodeMirror-overwrite")}else{h(this.display.cursorDiv,"CodeMirror-overwrite")}aO(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==em()},isReadOnly:function(){return !!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dG(function(hs,ht){fy(this,hs,ht)}),getScrollInfo:function(){var hs=this.display.scroller;return{left:hs.scrollLeft,top:hs.scrollTop,height:hs.scrollHeight-dn(this)-this.display.barHeight,width:hs.scrollWidth-dn(this)-this.display.barWidth,clientHeight:dq(this),clientWidth:dU(this)}},scrollIntoView:dG(function(hs,ht){if(hs==null){hs={from:this.doc.sel.primary().head,to:null};if(ht==null){ht=this.options.cursorScrollMargin}}else{if(typeof hs=="number"){hs={from:ac(hs,0),to:null}}else{if(hs.from==null){hs={from:hs,to:null}}}}if(!hs.to){hs.to=hs.from}hs.margin=ht||0;if(hs.from.line!=null){cB(this,hs)}else{cb(this,hs.from,hs.to,hs.margin)}}),setSize:dG(function(hu,hs){var hw=this;var ht=function(hx){return typeof hx=="number"||/^\d+$/.test(String(hx))?hx+"px":hx};if(hu!=null){this.display.wrapper.style.width=ht(hu)}if(hs!=null){this.display.wrapper.style.height=ht(hs)}if(this.options.lineWrapping){a0(this)}var hv=this.display.viewFrom;this.doc.iter(hv,this.display.viewTo,function(hx){if(hx.widgets){for(var hy=0;hy<hx.widgets.length;hy++){if(hx.widgets[hy].noHScroll){W(hw,hv,"widget");break}}}++hv});this.curOp.forceUpdate=true;aO(this,"refresh",this)}),operation:function(hs){return dh(this,hs)},startOperation:function(){return dd(this)},endOperation:function(){return aw(this)},refresh:dG(function(){var hs=this.display.cachedTextHeight;ap(this);this.curOp.forceUpdate=true;ar(this);fy(this,this.doc.scrollLeft,this.doc.scrollTop);dz(this);if(hs==null||Math.abs(hs-bb(this.display))>0.5){af(this)}aO(this,"refresh",this)}),swapDoc:dG(function(ht){var hs=this.doc;hs.cm=null;eO(this,ht);ar(this);this.display.input.reset();fy(this,ht.scrollLeft,ht.scrollTop);this.curOp.forceScroll=true;am(this,"swapDoc",this,hs);return hs}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};bT(i);i.registerHelper=function(ht,hs,hu){if(!hr.hasOwnProperty(ht)){hr[ht]=i[ht]={_global:[]}}hr[ht][hs]=hu};i.registerGlobalHelper=function(hu,ht,hs,hv){i.registerHelper(hu,ht,hv);hr[hu]._global.push({pred:hs,val:hv})}}function bP(hB,hA,hs,hC,hq){var ht=hA;var hx=hs;var hw=f4(hB,hA.line);function i(){var hG=hA.line+hs;if(hG<hB.first||hG>=hB.first+hB.size){return false}hA=new ac(hG,hA.ch,hA.sticky);return hw=f4(hB,hG)}function hu(hH){var hG;if(hq){hG=v(hB.cm,hw,hA,hs)}else{hG=aq(hw,hA,hs)}if(hG==null){if(!hH&&i()){hA=fh(hq,hB.cm,hw,hA.line,hs)}else{return false}}else{hA=hG}return true}if(hC=="char"){hu()}else{if(hC=="column"){hu(true)}else{if(hC=="word"||hC=="group"){var hz=null,hE=hC=="group";var hr=hB.cm&&hB.cm.getHelper(hA,"wordChars");for(var hv=true;;hv=false){if(hs<0&&!hu(!hv)){break}var hD=hw.text.charAt(hA.ch)||"\n";var hy=c3(hD,hr)?"w":hE&&hD=="\n"?"n":!hE||/\s/.test(hD)?null:"p";if(hE&&!hv&&!hy){hy="s"}if(hz&&hz!=hy){if(hs<0){hs=1;hu();hA.sticky="after"}break}if(hy){hz=hy}if(hs>0&&!hu(!hv)){break}}}}}var hF=ch(hB,hA,ht,hx,true);if(ad(ht,hF)){hF.hitSide=true}return hF}function bJ(hy,ht,hq,hx){var hw=hy.doc,hv=ht.left,hu;if(hx=="page"){var hs=Math.min(hy.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var i=Math.max(hs-0.5*bb(hy.display),3);hu=(hq>0?ht.bottom:ht.top)+hq*i}else{if(hx=="line"){hu=hq>0?ht.bottom+3:ht.top-3}}var hr;for(;;){hr=gL(hy,hv,hu);if(!hr.outside){break}if(hq<0?hu<=0:hu>=hw.height){hr.hitSide=true;break}hu+=hq*5}return hr}var d3=function(i){this.cm=i;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new hp();this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};d3.prototype.init=function(hs){var hu=this;var hr=this,i=hr.cm;var ht=hr.div=hs.lineDiv;gK(ht,i.options.spellcheck);cj(ht,"paste",function(hv){if(a4(i,hv)||bn(hv,i)){return}if(m<=11){setTimeout(dw(i,function(){return hu.updateFromDOM()}),20)}});cj(ht,"compositionstart",function(hv){hu.composing={data:hv.data,done:false}});cj(ht,"compositionupdate",function(hv){if(!hu.composing){hu.composing={data:hv.data,done:false}}});cj(ht,"compositionend",function(hv){if(hu.composing){if(hv.data!=hu.composing.data){hu.readFromDOMSoon()}hu.composing.done=true}});cj(ht,"touchstart",function(){return hr.forceCompositionEnd()});cj(ht,"input",function(){if(!hu.composing){hu.readFromDOMSoon()}});function hq(hz){if(a4(i,hz)){return}if(i.somethingSelected()){dC({lineWise:false,text:i.getSelections()});if(hz.type=="cut"){i.replaceSelection("",null,"cut")}}else{if(!i.options.lineWiseCopyCut){return}else{var hw=dQ(i);dC({lineWise:true,text:hw.text});if(hz.type=="cut"){i.operation(function(){i.setSelections(hw.ranges,0,ah);i.replaceSelection("",null,"cut")})}}}if(hz.clipboardData){hz.clipboardData.clearData();var hy=bz.text.join("\n");hz.clipboardData.setData("Text",hy);if(hz.clipboardData.getData("Text")==hy){hz.preventDefault();return}}var hx=ba(),hA=hx.firstChild;i.display.lineSpace.insertBefore(hx,i.display.lineSpace.firstChild);hA.value=bz.text.join("\n");var hv=document.activeElement;ej(hA);setTimeout(function(){i.display.lineSpace.removeChild(hx);hv.focus();if(hv==ht){hr.showPrimarySelection()}},50)}cj(ht,"copy",hq);cj(ht,"cut",hq)};d3.prototype.prepareSelection=function(){var i=gB(this.cm,false);i.focus=this.cm.state.focused;return i};d3.prototype.showSelection=function(hq,i){if(!hq||!this.cm.display.view.length){return}if(hq.focus||i){this.showPrimarySelection()}this.showMultipleSelections(hq)};d3.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()};d3.prototype.showPrimarySelection=function(){var ht=this.getSelection(),hD=this.cm,hw=hD.doc.sel.primary();var hB=hw.from(),hC=hw.to();if(hD.display.viewTo==hD.display.viewFrom||hB.line>=hD.display.viewTo||hC.line<hD.display.viewFrom){ht.removeAllRanges();return}var hu=aI(hD,ht.anchorNode,ht.anchorOffset);var hy=aI(hD,ht.focusNode,ht.focusOffset);if(hu&&!hu.bad&&hy&&!hy.bad&&cF(aB(hu,hy),hB)==0&&cF(bR(hu,hy),hC)==0){return}var hA=hD.display.view;var hs=(hB.line>=hD.display.viewFrom&&c2(hD,hB))||{node:hA[0].measure.map[2],offset:0};var hx=hC.line<hD.display.viewTo&&c2(hD,hC);if(!hx){var hr=hA[hA.length-1].measure;var hq=hr.maps?hr.maps[hr.maps.length-1]:hr.map;hx={node:hq[hq.length-1],offset:hq[hq.length-2]-hq[hq.length-3]}}if(!hs||!hx){ht.removeAllRanges();return}var hv=ht.rangeCount&&ht.getRangeAt(0),i;try{i=cO(hs.node,hs.offset,hx.offset,hx.node)}catch(hz){}if(i){if(!cR&&hD.state.focused){ht.collapse(hs.node,hs.offset);if(!i.collapsed){ht.removeAllRanges();ht.addRange(i)}}else{ht.removeAllRanges();ht.addRange(i)}if(hv&&ht.anchorNode==null){ht.addRange(hv)}else{if(cR){this.startGracePeriod()}}}this.rememberSelection()};d3.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){i.gracePeriod=false;if(i.selectionChanged()){i.cm.operation(function(){return i.cm.curOp.selectionChanged=true})}},20)};d3.prototype.showMultipleSelections=function(i){ce(this.cm.display.cursorDiv,i.cursors);ce(this.cm.display.selectionDiv,i.selection)};d3.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode;this.lastAnchorOffset=i.anchorOffset;this.lastFocusNode=i.focusNode;this.lastFocusOffset=i.focusOffset};d3.prototype.selectionInEditor=function(){var hq=this.getSelection();if(!hq.rangeCount){return false}var i=hq.getRangeAt(0).commonAncestorContainer;return hg(this.div,i)};d3.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"){if(!this.selectionInEditor()){this.showSelection(this.prepareSelection(),true)}this.div.focus()}};d3.prototype.blur=function(){this.div.blur()};d3.prototype.getField=function(){return this.div};d3.prototype.supportsTouch=function(){return true};d3.prototype.receivedFocus=function(){var i=this;if(this.selectionInEditor()){this.pollSelection()}else{dh(this.cm,function(){return i.cm.curOp.selectionChanged=true})}function hq(){if(i.cm.state.focused){i.pollSelection();i.polling.set(i.cm.options.pollInterval,hq)}}this.polling.set(this.cm.options.pollInterval,hq)};d3.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset};d3.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged()){return}var hs=this.getSelection(),i=this.cm;if(aY&&dL&&this.cm.options.gutters.length&&g7(hs.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs});this.blur();this.focus();return}if(this.composing){return}this.rememberSelection();var hq=aI(i,hs.anchorNode,hs.anchorOffset);var hr=aI(i,hs.focusNode,hs.focusOffset);if(hq&&hr){dh(i,function(){cg(i.doc,fE(hq,hr),ah);if(hq.bad||hr.bad){i.curOp.selectionChanged=true}})}};d3.prototype.pollContent=function(){if(this.readDOMTimeout!=null){clearTimeout(this.readDOMTimeout);this.readDOMTimeout=null}var hz=this.cm,hJ=hz.display,hH=hz.doc.sel.primary();var hI=hH.from(),ht=hH.to();if(hI.ch==0&&hI.line>hz.firstLine()){hI=ac(hI.line-1,f4(hz.doc,hI.line-1).length)}if(ht.ch==f4(hz.doc,ht.line).text.length&&ht.line<hz.lastLine()){ht=ac(ht.line+1,0)}if(hI.line<hJ.viewFrom||ht.line>hJ.viewTo-1){return false}var hw,hu,hy;if(hI.line==hJ.viewFrom||(hw=d0(hz,hI.line))==0){hu=b8(hJ.view[0].line);hy=hJ.view[0].node}else{hu=b8(hJ.view[hw].line);hy=hJ.view[hw-1].node.nextSibling}var hG=d0(hz,ht.line);var hB,hE;if(hG==hJ.view.length-1){hB=hJ.viewTo-1;hE=hJ.lineDiv.lastChild}else{hB=b8(hJ.view[hG+1].line)-1;hE=hJ.view[hG+1].node.previousSibling}if(!hy){return false}var hK=hz.doc.splitLines(g1(hz,hy,hE,hu,hB));var hD=g8(hz.doc,ac(hu,0),ac(hB,f4(hz.doc,hB).text.length));while(hK.length>1&&hD.length>1){if(gy(hK)==gy(hD)){hK.pop();hD.pop();hB--}else{if(hK[0]==hD[0]){hK.shift();hD.shift();hu++}else{break}}}var hF=0,hr=0;var hA=hK[0],hq=hD[0],i=Math.min(hA.length,hq.length);while(hF<i&&hA.charCodeAt(hF)==hq.charCodeAt(hF)){++hF}var hx=gy(hK),hL=gy(hD);var hs=Math.min(hx.length-(hK.length==1?hF:0),hL.length-(hD.length==1?hF:0));while(hr<hs&&hx.charCodeAt(hx.length-hr-1)==hL.charCodeAt(hL.length-hr-1)){++hr}if(hK.length==1&&hD.length==1&&hu==hI.line){while(hF&&hF>hI.ch&&hx.charCodeAt(hx.length-hr-1)==hL.charCodeAt(hL.length-hr-1)){hF--;hr++}}hK[hK.length-1]=hx.slice(0,hx.length-hr).replace(/^\u200b+/,"");hK[0]=hK[0].slice(hF).replace(/\u200b+$/,"");var hv=ac(hu,hF);var hC=ac(hB,hD.length?gy(hD).length-hr:0);if(hK.length>1||hK[0]||cF(hv,hC)){be(hz.doc,hK,hv,hC,"+input");return true}};d3.prototype.ensurePolled=function(){this.forceCompositionEnd()};d3.prototype.reset=function(){this.forceCompositionEnd()};d3.prototype.forceCompositionEnd=function(){if(!this.composing){return}clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()};d3.prototype.readFromDOMSoon=function(){var i=this;if(this.readDOMTimeout!=null){return}this.readDOMTimeout=setTimeout(function(){i.readDOMTimeout=null;if(i.composing){if(i.composing.done){i.composing=null}else{return}}i.updateFromDOM()},80)};d3.prototype.updateFromDOM=function(){var i=this;if(this.cm.isReadOnly()||!this.pollContent()){dh(this.cm,function(){return ap(i.cm)})}};d3.prototype.setUneditable=function(i){i.contentEditable="false"};d3.prototype.onKeyPress=function(i){if(i.charCode==0||this.composing){return}i.preventDefault();if(!this.cm.isReadOnly()){dw(this.cm,gY)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0)}};d3.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")};d3.prototype.onContextMenu=function(){};d3.prototype.resetPosition=function(){};d3.prototype.needsContentAttribute=true;function c2(hv,ht){var hu=f1(hv,ht.line);if(!hu||hu.hidden){return null}var hx=f4(hv.doc,ht.line);var hq=cW(hu,hx,ht.line);var hr=a(hx,hv.doc.direction),hs="left";if(hr){var i=aS(hr,ht.ch);hs=i%2?"right":"left"}var hw=aV(hq.map,ht.ch,hs);hw.offset=hw.collapse=="right"?hw.end:hw.start;return hw}function g7(hq){for(var i=hq;i;i=i.parentNode){if(/CodeMirror-gutter-wrapper/.test(i.className)){return true}}return false}function e7(hq,i){if(i){hq.bad=true}return hq}function g1(hy,hw,hx,hs,hq){var hA="",hr=false,i=hy.doc.lineSeparator(),ht=false;function hu(hC){return function(hD){return hD.id==hC}}function hB(){if(hr){hA+=i;if(ht){hA+=i}hr=ht=false}}function hz(hC){if(hC){hB();hA+=hC}}function hv(hH){if(hH.nodeType==1){var hE=hH.getAttribute("cm-text");if(hE){hz(hE);return}var hG=hH.getAttribute("cm-marker"),hD;if(hG){var hI=hy.findMarks(ac(hs,0),ac(hq+1,0),hu(+hG));if(hI.length&&(hD=hI[0].find(0))){hz(g8(hy.doc,hD.from,hD.to).join(i))}return}if(hH.getAttribute("contenteditable")=="false"){return}var hC=/^(pre|div|p|li|table|br)$/i.test(hH.nodeName);if(!/^br$/i.test(hH.nodeName)&&hH.textContent.length==0){return}if(hC){hB()}for(var hF=0;hF<hH.childNodes.length;hF++){hv(hH.childNodes[hF])}if(/^(pre|p)$/i.test(hH.nodeName)){ht=true}if(hC){hr=true}}else{if(hH.nodeType==3){hz(hH.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}}}for(;;){hv(hw);if(hw==hx){break}hw=hw.nextSibling;ht=false}return hA}function aI(hq,ht,hv){var hu;if(ht==hq.display.lineDiv){hu=hq.display.lineDiv.childNodes[hv];if(!hu){return e7(hq.clipPos(ac(hq.display.viewTo-1)),true)}ht=null;hv=0}else{for(hu=ht;;hu=hu.parentNode){if(!hu||hu==hq.display.lineDiv){return null}if(hu.parentNode&&hu.parentNode==hq.display.lineDiv){break}}}for(var hs=0;hs<hq.display.view.length;hs++){var hr=hq.display.view[hs];if(hr.node==hu){return ai(hr,ht,hv)}}}function ai(hy,hu,hw){var hr=hy.text.firstChild,ht=false;if(!hu||!hg(hr,hu)){return e7(ac(b8(hy.line),0),true)}if(hu==hr){ht=true;hu=hr.childNodes[hw];hw=0;if(!hu){var hE=hy.rest?gy(hy.rest):hy.line;return e7(ac(b8(hE),hE.text.length),ht)}}var hv=hu.nodeType==3?hu:null,hC=hu;if(!hv&&hu.childNodes.length==1&&hu.firstChild.nodeType==3){hv=hu.firstChild;if(hw){hw=hv.nodeValue.length}}while(hC.parentNode!=hr){hC=hC.parentNode}var hq=hy.measure,hA=hq.maps;function hx(hH,hM,hJ){for(var hL=-1;hL<(hA?hA.length:0);hL++){var hG=hL<0?hq.map:hA[hL];for(var hK=0;hK<hG.length;hK+=3){var hI=hG[hK+2];if(hI==hH||hI==hM){var hN=b8(hL<0?hy.line:hy.rest[hL]);var hF=hG[hK]+hJ;if(hJ<0||hI!=hH){hF=hG[hK+(hJ?1:0)]}return ac(hN,hF)}}}}var hD=hx(hv,hC,hw);if(hD){return e7(hD,ht)}for(var i=hC.nextSibling,hz=hv?hv.nodeValue.length-hw:0;i;i=i.nextSibling){hD=hx(i,i.firstChild,0);if(hD){return e7(ac(hD.line,hD.ch-hz),ht)}else{hz+=i.textContent.length}}for(var hB=hC.previousSibling,hs=hw;hB;hB=hB.previousSibling){hD=hx(hB,hB.firstChild,-1);if(hD){return e7(ac(hD.line,hD.ch+hs),ht)}else{hs+=hB.textContent.length}}}var ae=function(i){this.cm=i;this.prevInput="";this.pollingFast=false;this.polling=new hp();this.hasSelection=false;this.composing=null};ae.prototype.init=function(hr){var hu=this;var hq=this,i=this.cm;this.createField(hr);var hs=this.textarea;hr.wrapper.insertBefore(this.wrapper,hr.wrapper.firstChild);if(fQ){hs.style.width="0px"}cj(hs,"input",function(){if(ei&&m>=9&&hu.hasSelection){hu.hasSelection=null}hq.poll()});cj(hs,"paste",function(hv){if(a4(i,hv)||bn(hv,i)){return}i.state.pasteIncoming=true;hq.fastPoll()});function ht(hw){if(a4(i,hw)){return}if(i.somethingSelected()){dC({lineWise:false,text:i.getSelections()})}else{if(!i.options.lineWiseCopyCut){return}else{var hv=dQ(i);dC({lineWise:true,text:hv.text});if(hw.type=="cut"){i.setSelections(hv.ranges,null,ah)}else{hq.prevInput="";hs.value=hv.text.join("\n");ej(hs)}}}if(hw.type=="cut"){i.state.cutIncoming=true}}cj(hs,"cut",ht);cj(hs,"copy",ht);cj(hr.scroller,"paste",function(hv){if(bo(hr,hv)||a4(i,hv)){return}i.state.pasteIncoming=true;hq.focus()});cj(hr.lineSpace,"selectstart",function(hv){if(!bo(hr,hv)){c9(hv)}});cj(hs,"compositionstart",function(){var hv=i.getCursor("from");if(hq.composing){hq.composing.range.clear()}hq.composing={start:hv,range:i.markText(hv,i.getCursor("to"),{className:"CodeMirror-composing"})}});cj(hs,"compositionend",function(){if(hq.composing){hq.poll();hq.composing.range.clear();hq.composing=null}})};ae.prototype.createField=function(i){this.wrapper=ba();this.textarea=this.wrapper.firstChild};ae.prototype.prepareSelection=function(){var hq=this.cm,hu=hq.display,ht=hq.doc;var i=gB(hq);if(hq.options.moveInputWithCursor){var hv=eu(hq,ht.sel.primary().head,"div");var hr=hu.wrapper.getBoundingClientRect(),hs=hu.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(hu.wrapper.clientHeight-10,hv.top+hs.top-hr.top));i.teLeft=Math.max(0,Math.min(hu.wrapper.clientWidth-10,hv.left+hs.left-hr.left))}return i};ae.prototype.showSelection=function(hr){var i=this.cm,hq=i.display;ce(hq.cursorDiv,hr.cursors);ce(hq.selectionDiv,hr.selection);if(hr.teTop!=null){this.wrapper.style.top=hr.teTop+"px";this.wrapper.style.left=hr.teLeft+"px"}};ae.prototype.reset=function(hq){if(this.contextMenuPending||this.composing){return}var i=this.cm;if(i.somethingSelected()){this.prevInput="";var hr=i.getSelection();this.textarea.value=hr;if(i.state.focused){ej(this.textarea)}if(ei&&m>=9){this.hasSelection=hr}}else{if(!hq){this.prevInput=this.textarea.value="";if(ei&&m>=9){this.hasSelection=null}}}};ae.prototype.getField=function(){return this.textarea};ae.prototype.supportsTouch=function(){return false};ae.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!eT||em()!=this.textarea)){try{this.textarea.focus()}catch(i){}}};ae.prototype.blur=function(){this.textarea.blur()};ae.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0};ae.prototype.receivedFocus=function(){this.slowPoll()};ae.prototype.slowPoll=function(){var i=this;if(this.pollingFast){return}this.polling.set(this.cm.options.pollInterval,function(){i.poll();if(i.cm.state.focused){i.slowPoll()}})};ae.prototype.fastPoll=function(){var hq=false,i=this;i.pollingFast=true;function hr(){var hs=i.poll();if(!hs&&!hq){hq=true;i.polling.set(60,hr)}else{i.pollingFast=false;i.slowPoll()}}i.polling.set(20,hr)};ae.prototype.poll=function(){var hw=this;var i=this.cm,hr=this.textarea,hs=this.prevInput;if(this.contextMenuPending||!i.state.focused||(bL(hr)&&!hs&&!this.composing)||i.isReadOnly()||i.options.disableInput||i.state.keySeq){return false}var hu=hr.value;if(hu==hs&&!i.somethingSelected()){return false}if(ei&&m>=9&&this.hasSelection===hu||cu&&/[\uf700-\uf7ff]/.test(hu)){i.display.input.reset();return false}if(i.doc.sel==i.display.selForContextMenu){var ht=hu.charCodeAt(0);if(ht==8203&&!hs){hs="\u200b"}if(ht==8666){this.reset();return this.cm.execCommand("undo")}}var hv=0,hq=Math.min(hs.length,hu.length);while(hv<hq&&hs.charCodeAt(hv)==hu.charCodeAt(hv)){++hv}dh(i,function(){gY(i,hu.slice(hv),hs.length-hv,null,hw.composing?"*compose":null);if(hu.length>1000||hu.indexOf("\n")>-1){hr.value=hw.prevInput=""}else{hw.prevInput=hu}if(hw.composing){hw.composing.range.clear();hw.composing.range=i.markText(hw.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"})}});return true};ae.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}};ae.prototype.onKeyPress=function(){if(ei&&m>=9){this.hasSelection=null}this.fastPoll()};ae.prototype.onContextMenu=function(hu){var hz=this,hA=hz.cm,hw=hA.display,hq=hz.textarea;var hy=cQ(hA,hu),i=hw.scroller.scrollTop;if(!hy||eE){return}var ht=hA.options.resetSelectionOnContextMenu;if(ht&&hA.doc.sel.contains(hy)==-1){dw(hA,cg)(hA.doc,fE(hy),ah)}var hv=hq.style.cssText,hD=hz.wrapper.style.cssText;hz.wrapper.style.cssText="position: absolute";var hC=hz.wrapper.getBoundingClientRect();hq.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(hu.clientY-hC.top-5)+"px; left: "+(hu.clientX-hC.left-5)+"px;\n z-index: 1000; background: "+(ei?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var hB;if(dv){hB=window.scrollY}hw.input.focus();if(dv){window.scrollTo(null,hB)}hw.input.reset();if(!hA.somethingSelected()){hq.value=hz.prevInput=" "}hz.contextMenuPending=true;hw.selForContextMenu=hA.doc.sel;clearTimeout(hw.detectingSelectAll);function hs(){if(hq.selectionStart!=null){var hE=hA.somethingSelected();var hF="\u200b"+(hE?hq.value:"");hq.value="\u21da";hq.value=hF;hz.prevInput=hE?"":"\u200b";hq.selectionStart=1;hq.selectionEnd=hF.length;hw.selForContextMenu=hA.doc.sel}}function hx(){hz.contextMenuPending=false;hz.wrapper.style.cssText=hD;hq.style.cssText=hv;if(ei&&m<9){hw.scrollbars.setScrollTop(hw.scroller.scrollTop=i)}if(hq.selectionStart!=null){if(!ei||(ei&&m<9)){hs()}var hE=0,hF=function(){if(hw.selForContextMenu==hA.doc.sel&&hq.selectionStart==0&&hq.selectionEnd>0&&hz.prevInput=="\u200b"){dw(hA,av)(hA)}else{if(hE++<10){hw.detectingSelectAll=setTimeout(hF,500)}else{hw.selForContextMenu=null;hw.input.reset()}}};hw.detectingSelectAll=setTimeout(hF,200)}}if(ei&&m>=9){hs()}if(hf){e6(hu);var hr=function(){eS(window,"mouseup",hr);setTimeout(hx,20)};cj(window,"mouseup",hr)}else{setTimeout(hx,50)}};ae.prototype.readOnlyChanged=function(i){if(!i){this.reset()}this.textarea.disabled=i=="nocursor"};ae.prototype.setUneditable=function(){};ae.prototype.needsContentAttribute=false;function gz(hw,hx){hx=hx?aZ(hx):{};hx.value=hw.value;if(!hx.tabindex&&hw.tabIndex){hx.tabindex=hw.tabIndex}if(!hx.placeholder&&hw.placeholder){hx.placeholder=hw.placeholder}if(hx.autofocus==null){var i=em();hx.autofocus=i==hw||hw.getAttribute("autofocus")!=null&&i==document.body}function ht(){hw.value=hv.getValue()}var hu;if(hw.form){cj(hw.form,"submit",ht);if(!hx.leaveSubmitMethodAlone){var hq=hw.form;hu=hq.submit;try{var hs=hq.submit=function(){ht();hq.submit=hu;hq.submit();hq.submit=hs}}catch(hr){}}}hx.finishInit=function(hy){hy.save=ht;hy.getTextArea=function(){return hw};hy.toTextArea=function(){hy.toTextArea=isNaN;ht();hw.parentNode.removeChild(hy.getWrapperElement());hw.style.display="";if(hw.form){eS(hw.form,"submit",ht);if(typeof hw.form.submit=="function"){hw.form.submit=hu}}}};hw.style.display="none";var hv=K(function(hy){return hw.parentNode.insertBefore(hy,hw.nextSibling)},hx);return hv}function gE(i){i.off=eS;i.on=cj;i.wheelEventPixels=aJ;i.Doc=aD;i.splitLines=gO;i.countColumn=cd;i.findColumn=e5;i.isWordChar=gv;i.Pass=cz;i.signal=aO;i.Line=ha;i.changeEnd=ds;i.scrollbarModel=bA;i.Pos=ac;i.cmpPos=cF;i.modes=d1;i.mimeModes=a5;i.resolveMode=hh;i.getMode=gr;i.modeExtensions=dY;i.extendMode=fn;i.copyState=cq;i.startState=cn;i.innerMode=hd;i.commands=fm;i.keyMap=f0;i.keyName=gf;i.isModifierKey=fj;i.lookupKey=k;i.normalizeKeyMap=da;i.StringStream=fH;i.SharedTextMarker=y;i.TextMarker=V;i.LineWidget=d9;i.e_preventDefault=c9;i.e_stopPropagation=dZ;i.e_stop=e6;i.addClass=gs;i.contains=hg;i.rmClass=h;i.keyNames=f5}fr(K);en(K);var d="iter insert remove copy getEditor constructor".split(" ");for(var b5 in aD.prototype){if(aD.prototype.hasOwnProperty(b5)&&dR(d,b5)<0){K.prototype[b5]=(function(i){return function(){return i.apply(this.doc,arguments)}})(aD.prototype[b5])}}bT(aD);K.inputStyles={textarea:ae,contenteditable:d3};K.defineMode=function(i){if(!K.defaults.mode&&i!="null"){K.defaults.mode=i}fa.apply(this,arguments)};K.defineMIME=bE;K.defineMode("null",function(){return({token:function(i){return i.skipToEnd()}})});K.defineMIME("text/plain","null");K.defineExtension=function(i,hq){K.prototype[i]=hq};K.defineDocExtension=function(i,hq){aD.prototype[i]=hq};K.fromTextArea=gz;gE(K);K.version="5.39.0";return K})));(function(a){"function"==typeof a.define&&a.define("core",["codemirror.js"],function(b){a.CodeMirror=b})})(this);
|
1
|
+
(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define("codemirror.js",a):(b.CodeMirror=a())}(this,(function(){var ez=navigator.userAgent;var eK=navigator.platform;var cP=/gecko\/\d/i.test(ez);var fs=/MSIE \d/.test(ez);var b3=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ez);var c3=/Edge\/(\d+)/.exec(ez);var ef=fs||b3||c3;var n=ef&&(fs?document.documentMode||6:+(c3||b3)[1]);var dt=!c3&&/WebKit\//.test(ez);var ei=dt&&/Qt\/\d+\.\d+/.test(ez);var dJ=!c3&&/Chrome\//.test(ez);var eB=/Opera\//.test(ez);var aM=/Apple Computer/.test(navigator.vendor);var dB=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ez);var ge=/PhantomJS/.test(ez);var fM=!c3&&/AppleWebKit/.test(ez)&&/Mobile\/\w+/.test(ez);var aX=/Android/.test(ez);var eQ=fM||aX||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ez);var ct=fM||/Mac/.test(eK);var gx=/\bCrOS\b/.test(ez);var a0=/win/i.test(eK);var ba=eB&&ez.match(/Version\/(\d*\.\d*)/);if(ba){ba=Number(ba[1])}if(ba&&ba>=15){eB=false;dt=true}var cb=ct&&(ei||eB&&(ba==null||ba<12.11));var g9=cP||(ef&&n>=9);function X(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var h=function(hl,i){var hm=hl.className;var hk=X(i).exec(hm);if(hk){var hn=hm.slice(hk.index+hk[0].length);hl.className=hm.slice(0,hk.index)+(hn?hk[1]+hn:"")}};function eA(hk){for(var i=hk.childNodes.length;i>0;--i){hk.removeChild(hk.firstChild)}return hk}function cd(i,hk){return eA(i).appendChild(hk)}function g0(hk,ho,hn,hm){var hp=document.createElement(hk);if(hn){hp.className=hn}if(hm){hp.style.cssText=hm}if(typeof ho=="string"){hp.appendChild(document.createTextNode(ho))}else{if(ho){for(var hl=0;hl<ho.length;++hl){hp.appendChild(ho[hl])}}}return hp}function g6(i,hm,hl,hk){var hn=g0(i,hm,hl,hk);hn.setAttribute("role","presentation");return hn}var cM;if(document.createRange){cM=function(hm,hn,hk,i){var hl=document.createRange();hl.setEnd(i||hm,hk);hl.setStart(hm,hn);return hl}}else{cM=function(hl,hn,i){var hk=document.body.createTextRange();try{hk.moveToElementText(hl.parentNode)}catch(hm){return hk}hk.collapse(true);hk.moveEnd("character",i);hk.moveStart("character",hn);return hk}}function ha(i,hk){if(hk.nodeType==3){hk=hk.parentNode}if(i.contains){return i.contains(hk)}do{if(hk.nodeType==11){hk=hk.host}if(hk==i){return true}}while(hk=hk.parentNode)}function ej(){var i;try{i=document.activeElement}catch(hk){i=document.body||null}while(i&&i.shadowRoot&&i.shadowRoot.activeElement){i=i.shadowRoot.activeElement}return i}function gn(hk,i){var hl=hk.className;if(!X(i).test(hl)){hk.className+=(hl?" ":"")+i}}function gN(hm,hk){var hl=hm.split(" ");for(var hn=0;hn<hl.length;hn++){if(hl[hn]&&!X(hl[hn]).test(hk)){hk+=" "+hl[hn]}}return hk}var eg=function(i){i.select()};if(fM){eg=function(i){i.selectionStart=0;i.selectionEnd=i.value.length}}else{if(ef){eg=function(hk){try{hk.select()}catch(i){}}}}function cW(hk){var i=Array.prototype.slice.call(arguments,1);return function(){return hk.apply(null,i)}}function aY(hl,hk,i){if(!hk){hk={}}for(var hm in hl){if(hl.hasOwnProperty(hm)&&(i!==false||!hk.hasOwnProperty(hm))){hk[hm]=hl[hm]}}return hk}function cc(hn,hl,hp,hq,hm){if(hl==null){hl=hn.search(/[^\s\u00a0]/);if(hl==-1){hl=hn.length}}for(var ho=hq||0,hr=hm||0;;){var hk=hn.indexOf("\t",ho);if(hk<0||hk>=hl){return hr+(hl-ho)}hr+=hk-ho;hr+=hp-(hr%hp);ho=hk+1}}var hj=function(){this.id=null};hj.prototype.set=function(i,hk){clearTimeout(this.id);this.id=setTimeout(hk,i)};function dP(hm,hk){for(var hl=0;hl<hm.length;++hl){if(hm[hl]==hk){return hl}}return -1}var ed=30;var cy={toString:function(){return"CodeMirror.Pass"}};var ag={scroll:false},R={origin:"*mouse"},dp={origin:"+move"};function e2(hn,hm,ho){for(var hp=0,hl=0;;){var hk=hn.indexOf("\t",hp);if(hk==-1){hk=hn.length}var i=hk-hp;if(hk==hn.length||hl+i>=hm){return hp+Math.min(i,hm-hl)}hl+=hk-hp;hl+=ho-(hl%ho);hp=hk+1;if(hl>=hm){return hp}}}var bb=[""];function cQ(i){while(bb.length<=i){bb.push(gt(bb)+" ")}return bb[i]}function gt(i){return i[i.length-1]}function ce(hn,hm){var hk=[];for(var hl=0;hl<hn.length;hl++){hk[hl]=hm(hn[hl],hl)}return hk}function cw(hn,hk,hl){var hm=0,i=hl(hk);while(hm<hn.length&&hl(hn[hm])<=i){hm++}hn.splice(hm,0,hk)}function gO(){}function cK(hl,i){var hk;if(Object.create){hk=Object.create(hl)}else{gO.prototype=hl;hk=new gO()}if(i){aY(i,hk)}return hk}var bo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function gq(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||bo.test(i))}function c1(i,hk){if(!hk){return gq(i)}if(hk.source.indexOf("\\w")>-1&&gq(i)){return true}return hk.test(i)}function fE(i){for(var hk in i){if(i.hasOwnProperty(hk)&&i[hk]){return false}}return true}var fr=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function f9(i){return i.charCodeAt(0)>=768&&fr.test(i)}function eU(hk,hl,i){while((i<0?hl>0:hl<hk.length)&&f9(hk.charAt(hl))){hl+=i}return hl}function cN(i,ho,hn){var hl=ho>hn?-1:1;for(;;){if(ho==hn){return ho}var hm=(ho+hn)/2,hk=hl<0?Math.ceil(hm):Math.floor(hm);if(hk==ho){return i(hk)?ho:hn}if(i(hk)){hn=hk}else{ho=hk+hl}}}function eE(hk,hq,hp,ho){if(!hk){return ho(hq,hp,"ltr",0)}var hn=false;for(var hm=0;hm<hk.length;++hm){var hl=hk[hm];if(hl.from<hp&&hl.to>hq||hq==hp&&hl.to==hq){ho(Math.max(hl.from,hq),Math.min(hl.to,hp),hl.level==1?"rtl":"ltr",hm);hn=true}}if(!hn){ho(hq,hp,"ltr")}}var fO=null;function aR(hk,hm,ho){var hn;fO=null;for(var hl=0;hl<hk.length;++hl){var hp=hk[hl];if(hp.from<hm&&hp.to>hm){return hl}if(hp.to==hm){if(hp.from!=hp.to&&ho=="before"){hn=hl}else{fO=hl}}if(hp.from==hm){if(hp.from!=hp.to&&ho!="before"){hn=hl}else{fO=hl}}}return hn!=null?hn:fO}var bu=(function(){var hp="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var hn="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function hm(hs){if(hs<=247){return hp.charAt(hs)}else{if(1424<=hs&&hs<=1524){return"R"}else{if(1536<=hs&&hs<=1785){return hn.charAt(hs-1536)}else{if(1774<=hs&&hs<=2220){return"r"}else{if(8192<=hs&&hs<=8203){return"w"}else{if(hs==8204){return"b"}else{return"L"}}}}}}}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var hr=/[stwN]/,hl=/[LRr]/,hk=/[Lb1n]/,ho=/[1n]/;function hq(hu,ht,hs){this.level=hu;this.from=ht;this.to=hs}return function(hP,hv){var hE=hv=="ltr"?"L":"R";if(hP.length==0||hv=="ltr"&&!i.test(hP)){return false}var hy=hP.length,hY=[];for(var h1=0;h1<hy;++h1){hY.push(hm(hP.charCodeAt(h1)))}for(var hM=0,hL=hE;hM<hy;++hM){var h2=hY[hM];if(h2=="m"){hY[hM]=hL}else{hL=h2}}for(var hK=0,hu=hE;hK<hy;++hK){var hX=hY[hK];if(hX=="1"&&hu=="r"){hY[hK]="n"}else{if(hl.test(hX)){hu=hX;if(hX=="r"){hY[hK]="R"}}}}for(var hJ=1,ht=hY[0];hJ<hy-1;++hJ){var hW=hY[hJ];if(hW=="+"&&ht=="1"&&hY[hJ+1]=="1"){hY[hJ]="1"}else{if(hW==","&&ht==hY[hJ+1]&&(ht=="1"||ht=="n")){hY[hJ]=ht}}ht=hW}for(var hI=0;hI<hy;++hI){var hV=hY[hI];if(hV==","){hY[hI]="N"}else{if(hV=="%"){var hx=(void 0);for(hx=hI+1;hx<hy&&hY[hx]=="%";++hx){}var hC=(hI&&hY[hI-1]=="!")||(hx<hy&&hY[hx]=="1")?"1":"N";for(var h0=hI;h0<hx;++h0){hY[h0]=hC}hI=hx-1}}}for(var hH=0,hB=hE;hH<hy;++hH){var hT=hY[hH];if(hB=="L"&&hT=="1"){hY[hH]="L"}else{if(hl.test(hT)){hB=hT}}}for(var hG=0;hG<hy;++hG){if(hr.test(hY[hG])){var hQ=(void 0);for(hQ=hG+1;hQ<hy&&hr.test(hY[hQ]);++hQ){}var hS=(hG?hY[hG-1]:hE)=="L";var hU=(hQ<hy?hY[hQ]:hE)=="L";var hO=hS==hU?(hS?"L":"R"):hE;for(var hA=hG;hA<hQ;++hA){hY[hA]=hO}hG=hQ-1}}var hR=[],hZ;for(var hF=0;hF<hy;){if(hk.test(hY[hF])){var hD=hF;for(++hF;hF<hy&&hk.test(hY[hF]);++hF){}hR.push(new hq(0,hD,hF))}else{var hN=hF,hs=hR.length;for(++hF;hF<hy&&hY[hF]!="L";++hF){}for(var hz=hN;hz<hF;){if(ho.test(hY[hz])){if(hN<hz){hR.splice(hs,0,new hq(1,hN,hz))}var hw=hz;for(++hz;hz<hF&&ho.test(hY[hz]);++hz){}hR.splice(hs,0,new hq(2,hw,hz));hN=hz}else{++hz}}if(hN<hF){hR.splice(hs,0,new hq(1,hN,hF))}}}if(hv=="ltr"){if(hR[0].level==1&&(hZ=hP.match(/^\s+/))){hR[0].from=hZ[0].length;hR.unshift(new hq(0,0,hZ[0].length))}if(gt(hR).level==1&&(hZ=hP.match(/\s+$/))){gt(hR).to-=hZ[0].length;hR.push(new hq(0,hy-hZ[0].length,hy))}}return hv=="rtl"?hR.reverse():hR}})();function a(hk,hl){var i=hk.order;if(i==null){i=hk.order=bu(hk.text,hl)}return i}var fR=[];var ci=function(hm,i,hl){if(hm.addEventListener){hm.addEventListener(i,hl,false)}else{if(hm.attachEvent){hm.attachEvent("on"+i,hl)}else{var hk=hm._handlers||(hm._handlers={});hk[i]=(hk[i]||fR).concat(hl)}}};function eW(hk,i){return hk._handlers&&hk._handlers[i]||fR}function eP(ho,hl,hn){if(ho.removeEventListener){ho.removeEventListener(hl,hn,false)}else{if(ho.detachEvent){ho.detachEvent("on"+hl,hn)}else{var hm=ho._handlers,i=hm&&hm[hl];if(i){var hk=dP(i,hn);if(hk>-1){hm[hl]=i.slice(0,hk).concat(i.slice(hk+1))}}}}}function aN(ho,hn){var hk=eW(ho,hn);if(!hk.length){return}var hl=Array.prototype.slice.call(arguments,2);for(var hm=0;hm<hk.length;++hm){hk[hm].apply(null,hl)}}function a2(i,hl,hk){if(typeof hl=="string"){hl={type:hl,preventDefault:function(){this.defaultPrevented=true}}}aN(i,hk||hl.type,i,hl);return b5(hl)||hl.codemirrorIgnore}function aa(hl){var hk=hl._handlers&&hl._handlers.cursorActivity;if(!hk){return}var hn=hl.curOp.cursorActivityHandlers||(hl.curOp.cursorActivityHandlers=[]);for(var hm=0;hm<hk.length;++hm){if(dP(hn,hk[hm])==-1){hn.push(hk[hm])}}}function f5(hk,i){return eW(hk,i).length>0}function bS(i){i.prototype.on=function(hk,hl){ci(this,hk,hl)};i.prototype.off=function(hk,hl){eP(this,hk,hl)}}function c7(i){if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}}function dX(i){if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}}function b5(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==false}function e3(i){c7(i);dX(i)}function Q(i){return i.target||i.srcElement}function gE(hk){var i=hk.which;if(i==null){if(hk.button&1){i=1}else{if(hk.button&2){i=3}else{if(hk.button&4){i=2}}}}if(ct&&hk.ctrlKey&&i==1){i=3}return i}var ft=function(){if(ef&&n<9){return false}var i=g0("div");return"draggable" in i||"dragDrop" in i}();var gC;function bE(i){if(gC==null){var hl=g0("span","\u200b");cd(i,g0("span",[hl,document.createTextNode("x")]));if(i.firstChild.offsetHeight!=0){gC=hl.offsetWidth<=1&&hl.offsetHeight>2&&!(ef&&n<8)}}var hk=gC?g0("span","\u200b"):g0("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");hk.setAttribute("cm-text","");return hk}var gD;function b8(hm){if(gD!=null){return gD}var i=cd(hm,document.createTextNode("A\u062eA"));var hl=cM(i,0,1).getBoundingClientRect();var hk=cM(i,1,2).getBoundingClientRect();eA(hm);if(!hl||hl.left==hl.right){return false}return gD=(hk.right-hl.right<3)}var gJ="\n\nb".split(/\n/).length!=3?function(ho){var hp=0,i=[],hn=ho.length;while(hp<=hn){var hm=ho.indexOf("\n",hp);if(hm==-1){hm=ho.length}var hl=ho.slice(hp,ho.charAt(hm-1)=="\r"?hm-1:hm);var hk=hl.indexOf("\r");if(hk!=-1){i.push(hl.slice(0,hk));hp+=hk+1}else{i.push(hl);hp=hm+1}}return i}:function(i){return i.split(/\r\n?|\n/)};var bK=window.getSelection?function(hk){try{return hk.selectionStart!=hk.selectionEnd}catch(i){return false}}:function(hl){var hk;try{hk=hl.ownerDocument.selection.createRange()}catch(i){}if(!hk||hk.parentElement()!=hl){return false}return hk.compareEndPoints("StartToEnd",hk)!=0};var dG=(function(){var i=g0("div");if("oncopy" in i){return true}i.setAttribute("oncopy","return;");return typeof i.oncopy=="function"})();var fS=null;function aV(hk){if(fS!=null){return fS}var hl=cd(hk,g0("span","x"));var hm=hl.getBoundingClientRect();var i=cM(hl,0,1).getBoundingClientRect();return fS=Math.abs(hm.left-i.left)>1}var dZ={},a3={};function e6(i,hk){if(arguments.length>2){hk.dependencies=Array.prototype.slice.call(arguments,2)}dZ[i]=hk}function bD(hk,i){a3[hk]=i}function hb(i){if(typeof i=="string"&&a3.hasOwnProperty(i)){i=a3[i]}else{if(i&&typeof i.name=="string"&&a3.hasOwnProperty(i.name)){var hk=a3[i.name];if(typeof hk=="string"){hk={name:hk}}i=cK(hk,i);i.name=hk.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i)){return hb("application/xml")}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i)){return hb("application/json")}}}}if(typeof i=="string"){return{name:i}}else{return i||{name:"null"}}}function gm(hl,hk){hk=hb(hk);var hn=dZ[hk.name];if(!hn){return gm(hl,"text/plain")}var ho=hn(hl,hk);if(dW.hasOwnProperty(hk.name)){var hm=dW[hk.name];for(var hp in hm){if(!hm.hasOwnProperty(hp)){continue}if(ho.hasOwnProperty(hp)){ho["_"+hp]=ho[hp]}ho[hp]=hm[hp]}}ho.name=hk.name;if(hk.helperType){ho.helperType=hk.helperType}if(hk.modeProps){for(var i in hk.modeProps){ho[i]=hk.modeProps[i]}}return ho}var dW={};function fj(hl,hk){var i=dW.hasOwnProperty(hl)?dW[hl]:(dW[hl]={});aY(hk,i)}function cp(hm,i){if(i===true){return i}if(hm.copyState){return hm.copyState(i)}var hl={};for(var hn in i){var hk=i[hn];if(hk instanceof Array){hk=hk.concat([])}hl[hn]=hk}return hl}function g7(hl,i){var hk;while(hl.innerMode){hk=hl.innerMode(i);if(!hk||hk.mode==hl){break}i=hk.state;hl=hk.mode}return hk||{mode:hl,state:i}}function cm(hl,hk,i){return hl.startState?hl.startState(hk,i):true}var fD=function(i,hl,hk){this.pos=this.start=0;this.string=i;this.tabSize=hl||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0;this.lineOracle=hk};fD.prototype.eol=function(){return this.pos>=this.string.length};fD.prototype.sol=function(){return this.pos==this.lineStart};fD.prototype.peek=function(){return this.string.charAt(this.pos)||undefined};fD.prototype.next=function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}};fD.prototype.eat=function(i){var hl=this.string.charAt(this.pos);var hk;if(typeof i=="string"){hk=hl==i}else{hk=hl&&(i.test?i.test(hl):i(hl))}if(hk){++this.pos;return hl}};fD.prototype.eatWhile=function(i){var hk=this.pos;while(this.eat(i)){}return this.pos>hk};fD.prototype.eatSpace=function(){var hk=this;var i=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++hk.pos}return this.pos>i};fD.prototype.skipToEnd=function(){this.pos=this.string.length};fD.prototype.skipTo=function(i){var hk=this.string.indexOf(i,this.pos);if(hk>-1){this.pos=hk;return true}};fD.prototype.backUp=function(i){this.pos-=i};fD.prototype.column=function(){if(this.lastColumnPos<this.start){this.lastColumnValue=cc(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?cc(this.string,this.lineStart,this.tabSize):0)};fD.prototype.indentation=function(){return cc(this.string,null,this.tabSize)-(this.lineStart?cc(this.string,this.lineStart,this.tabSize):0)};fD.prototype.match=function(hn,hk,i){if(typeof hn=="string"){var ho=function(hp){return i?hp.toLowerCase():hp};var hm=this.string.substr(this.pos,hn.length);if(ho(hm)==ho(hn)){if(hk!==false){this.pos+=hn.length}return true}}else{var hl=this.string.slice(this.pos).match(hn);if(hl&&hl.index>0){return null}if(hl&&hk!==false){this.pos+=hl[0].length}return hl}};fD.prototype.current=function(){return this.string.slice(this.start,this.pos)};fD.prototype.hideFirstChars=function(hk,i){this.lineStart+=hk;try{return i()}finally{this.lineStart-=hk}};fD.prototype.lookAhead=function(hk){var i=this.lineOracle;return i&&i.lookAhead(hk)};fD.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function f0(hn,hp){hp-=hn.first;if(hp<0||hp>=hn.size){throw new Error("There is no line "+(hp+hn.first)+" in the document.")}var hk=hn;while(!hk.lines){for(var hl=0;;++hl){var ho=hk.children[hl],hm=ho.chunkSize();if(hp<hm){hk=ho;break}hp-=hm}}return hk.lines[hp]}function g2(hl,hn,i){var hk=[],hm=hn.line;hl.iter(hn.line,i.line+1,function(ho){var hp=ho.text;if(hm==i.line){hp=hp.slice(0,i.ch)}if(hm==hn.line){hp=hp.slice(hn.ch)}hk.push(hp);++hm});return hk}function be(hk,hm,hl){var i=[];hk.iter(hm,hl,function(hn){i.push(hn.text)});return i}function g5(hk,i){var hl=i-hk.height;if(hl){for(var hm=hk;hm;hm=hm.parent){hm.height+=hl}}}function b7(hk){if(hk.parent==null){return null}var ho=hk.parent,hn=dP(ho.lines,hk);for(var hl=ho.parent;hl;ho=hl,hl=hl.parent){for(var hm=0;;++hm){if(hl.children[hm]==ho){break}hn+=hl.children[hm].chunkSize()}}return hn+ho.first}function b0(hq,hp){var hn=hq.first;outer:do{for(var hm=0;hm<hq.children.length;++hm){var hl=hq.children[hm],hk=hl.height;if(hp<hk){hq=hl;continue outer}hp-=hk;hn+=hl.chunkSize()}return hn}while(!hq.lines);var ho=0;for(;ho<hq.lines.length;++ho){var hs=hq.lines[ho],hr=hs.height;if(hp<hr){break}hp-=hr}return hn+ho}function cv(hk,i){return i>=hk.first&&i<hk.first+hk.size}function e5(hk,hl){return String(hk.lineNumberFormatter(hl+hk.firstLineNumber))}function ab(i,hk,hl){if(hl===void 0){hl=null}if(!(this instanceof ab)){return new ab(i,hk,hl)}this.line=i;this.ch=hk;this.sticky=hl}function cD(hk,i){return hk.line-i.line||hk.ch-i.ch}function ac(hk,i){return hk.sticky==i.sticky&&cD(hk,i)==0}function cG(i){return ab(i.line,i.ch)}function bQ(hk,i){return cD(hk,i)<0?i:hk}function aA(hk,i){return cD(hk,i)<0?hk:i}function dy(i,hk){return Math.max(i.first,Math.min(hk,i.first+i.size-1))}function gy(hk,hl){if(hl.line<hk.first){return ab(hk.first,0)}var i=hk.first+hk.size-1;if(hl.line>i){return ab(i,f0(hk,i).text.length)}return gc(hl,f0(hk,hl.line).text.length)}function gc(hl,hk){var i=hl.ch;if(i==null||i>hk){return ab(hl.line,hk)}else{if(i<0){return ab(hl.line,0)}else{return hl}}}function ey(hm,hn){var hk=[];for(var hl=0;hl<hn.length;hl++){hk[hl]=gy(hm,hn[hl])}return hk}var aP=function(hk,i){this.state=hk;this.lookAhead=i};var af=function(hm,hl,i,hk){this.state=hl;this.doc=hm;this.line=i;this.maxLookAhead=hk||0;this.baseTokens=null;this.baseTokenPos=1};af.prototype.lookAhead=function(hk){var i=this.doc.getLine(this.line+hk);if(i!=null&&hk>this.maxLookAhead){this.maxLookAhead=hk}return i};af.prototype.baseToken=function(hl){var hk=this;if(!this.baseTokens){return null}while(this.baseTokens[this.baseTokenPos]<=hl){hk.baseTokenPos+=2}var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-hl}};af.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0){this.maxLookAhead--}};af.fromSaved=function(hl,hk,i){if(hk instanceof aP){return new af(hl,cp(hl.mode,hk.state),i,hk.lookAhead)}else{return new af(hl,cp(hl.mode,hk),i)}};af.prototype.save=function(hk){var i=hk!==false?cp(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new aP(i,this.maxLookAhead):i};function gk(hp,hr,hk,hn){var hq=[hp.state.modeGen],hm={};y(hp,hr.text,hp.doc.mode,hk,function(hs,ht){return hq.push(hs,ht)},hm,hn);var i=hk.state;var ho=function(hv){hk.baseTokens=hq;var ht=hp.state.overlays[hv],hu=1,hs=0;hk.state=true;y(hp,hr.text,ht.mode,hk,function(hw,hy){var hA=hu;while(hs<hw){var hx=hq[hu];if(hx>hw){hq.splice(hu,1,hw,hq[hu+1],hx)}hu+=2;hs=Math.min(hw,hx)}if(!hy){return}if(ht.opaque){hq.splice(hA,hu-hA,hw,"overlay "+hy);hu=hA+2}else{for(;hA<hu;hA+=2){var hz=hq[hA+1];hq[hA+1]=(hz?hz+" ":"")+"overlay "+hy}}},hm);hk.state=i;hk.baseTokens=null;hk.baseTokenPos=1};for(var hl=0;hl<hp.state.overlays.length;++hl){ho(hl)}return{styles:hq,classes:hm.bgClass||hm.textClass?hm:null}}function dC(hk,hm,ho){if(!hm.styles||hm.styles[0]!=hk.state.modeGen){var hn=fH(hk,b7(hm));var hl=hm.text.length>hk.options.maxHighlightLength&&cp(hk.doc.mode,hn.state);var i=gk(hk,hm,hn);if(hl){hn.state=hl}hm.stateAfter=hn.save(!hl);hm.styles=i.styles;if(i.classes){hm.styleClasses=i.classes}else{if(hm.styleClasses){hm.styleClasses=null}}if(ho===hk.doc.highlightFrontier){hk.doc.modeFrontier=Math.max(hk.doc.modeFrontier,++hk.doc.highlightFrontier)}}return hm.styles}function fH(i,hq,hk){var ho=i.doc,hn=i.display;if(!ho.mode.startState){return new af(ho,true,hq)}var hp=cZ(i,hq,hk);var hm=hp>ho.first&&f0(ho,hp-1).stateAfter;var hl=hm?af.fromSaved(ho,hm,hp):new af(ho,cm(ho.mode),hp);ho.iter(hp,hq,function(hr){d3(i,hr.text,hl);var hs=hl.line;hr.stateAfter=hs==hq-1||hs%5==0||hs>=hn.viewFrom&&hs<hn.viewTo?hl.save():null;hl.nextLine()});if(hk){ho.modeFrontier=hl.line}return hl}function d3(i,ho,hl,hk){var hn=i.doc.mode;var hm=new fD(ho,i.options.tabSize,hl);hm.start=hm.pos=hk||0;if(ho==""){ga(hn,hl.state)}while(!hm.eol()){fh(hn,hm,hl.state);hm.start=hm.pos}}function ga(hl,hk){if(hl.blankLine){return hl.blankLine(hk)}if(!hl.innerMode){return}var i=g7(hl,hk);if(i.mode.blankLine){return i.mode.blankLine(i.state)}}function fh(hp,ho,hn,hk){for(var hl=0;hl<10;hl++){if(hk){hk[0]=g7(hp,hn).mode}var hm=hp.token(ho,hn);if(ho.pos>ho.start){return hm}}throw new Error("Mode "+hp.name+" failed to advance stream.")}var dF=function(hl,i,hk){this.start=hl.start;this.end=hl.pos;this.string=hl.current();this.type=i||null;this.state=hk};function cR(hr,hp,hm,hl){var hq=hr.doc,hn=hq.mode,i;hp=gy(hq,hp);var ht=f0(hq,hp.line),hk=fH(hr,hp.line,hm);var hs=new fD(ht.text,hr.options.tabSize,hk),ho;if(hl){ho=[]}while((hl||hs.pos<hp.ch)&&!hs.eol()){hs.start=hs.pos;i=fh(hn,hs,hk.state);if(hl){ho.push(new dF(hs,i,cp(hq.mode,hk.state)))}}return hl?ho:new dF(hs,i,hk.state)}function dQ(hl,hk){if(hl){for(;;){var i=hl.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i){break}hl=hl.slice(0,i.index)+hl.slice(i.index+i[0].length);var hm=i[1]?"bgClass":"textClass";if(hk[hm]==null){hk[hm]=i[2]}else{if(!(new RegExp("(?:^|s)"+i[2]+"(?:$|s)")).test(hk[hm])){hk[hm]+=" "+i[2]}}}}return hl}function y(ht,hv,ho,hl,hp,hm,hn){var hk=ho.flattenSpans;if(hk==null){hk=ht.options.flattenSpans}var hr=0,hq=null;var hu=new fD(hv,ht.options.tabSize,hl),i;var hx=ht.options.addModeClass&&[null];if(hv==""){dQ(ga(ho,hl.state),hm)}while(!hu.eol()){if(hu.pos>ht.options.maxHighlightLength){hk=false;if(hn){d3(ht,hv,hl,hu.pos)}hu.pos=hv.length;i=null}else{i=dQ(fh(ho,hu,hl.state,hx),hm)}if(hx){var hw=hx[0].name;if(hw){i="m-"+(i?hw+" "+i:hw)}}if(!hk||hq!=i){while(hr<hu.start){hr=Math.min(hu.start,hr+5000);hp(hr,hq)}hq=i}hu.start=hu.pos}while(hr<hu.pos){var hs=Math.min(hu.pos,hr+5000);hp(hs,hq);hr=hs}}function cZ(hq,hk,hn){var hl,ho,hp=hq.doc;var hm=hn?-1:hk-(hq.doc.mode.innerMode?1000:100);for(var ht=hk;ht>hm;--ht){if(ht<=hp.first){return hp.first}var hs=f0(hp,ht-1),i=hs.stateAfter;if(i&&(!hn||ht+(i instanceof aP?i.lookAhead:0)<=hp.modeFrontier)){return ht}var hr=cc(hs.text,null,hq.options.tabSize);if(ho==null||hl>hr){ho=ht-1;hl=hr}}return ho}function hd(hl,hn){hl.modeFrontier=Math.min(hl.modeFrontier,hn);if(hl.highlightFrontier<hn-10){return}var hm=hl.first;for(var i=hn-1;i>hm;i--){var hk=f0(hl,i).stateAfter;if(hk&&(!(hk instanceof aP)||i+hk.lookAhead<hn)){hm=i+1;break}}hl.highlightFrontier=Math.min(hl.highlightFrontier,hm)}var he=false,bj=false;function gl(){he=true}function bP(){bj=true}function eT(i,hl,hk){this.marker=i;this.from=hl;this.to=hk}function fV(hm,hk){if(hm){for(var hl=0;hl<hm.length;++hl){var hn=hm[hl];if(hn.marker==hk){return hn}}}}function fp(hl,hm){var hn;for(var hk=0;hk<hl.length;++hk){if(hl[hk]!=hm){(hn||(hn=[])).push(hl[hk])}}return hn}function cB(i,hk){i.markedSpans=i.markedSpans?i.markedSpans.concat([hk]):[hk];hk.marker.attachLine(i)}function a1(hl,hm,hq){var hr;if(hl){for(var ho=0;ho<hl.length;++ho){var hs=hl[ho],hp=hs.marker;var hk=hs.from==null||(hp.inclusiveLeft?hs.from<=hm:hs.from<hm);if(hk||hs.from==hm&&hp.type=="bookmark"&&(!hq||!hs.marker.insertLeft)){var hn=hs.to==null||(hp.inclusiveRight?hs.to>=hm:hs.to>hm);(hr||(hr=[])).push(new eT(hp,hs.from,hn?null:hs.to))}}}return hr}function aK(hl,hn,hq){var hr;if(hl){for(var ho=0;ho<hl.length;++ho){var hs=hl[ho],hp=hs.marker;var hm=hs.to==null||(hp.inclusiveRight?hs.to>=hn:hs.to>hn);if(hm||hs.from==hn&&hp.type=="bookmark"&&(!hq||hs.marker.insertLeft)){var hk=hs.from==null||(hp.inclusiveLeft?hs.from<=hn:hs.from<hn);(hr||(hr=[])).push(new eT(hp,hk?null:hs.from-hn,hs.to==null?null:hs.to-hn))}}}return hr}function eV(hF,hv){if(hv.full){return null}var hm=cv(hF,hv.from.line)&&f0(hF,hv.from.line).markedSpans;var ht=cv(hF,hv.to.line)&&f0(hF,hv.to.line).markedSpans;if(!hm&&!ht){return null}var hs=hv.from.ch,hA=hv.to.ch,hx=cD(hv.from,hv.to)==0;var hr=a1(hm,hs,hx);var hu=aK(ht,hA,hx);var hy=hv.text.length==1,hp=gt(hv.text).length+(hy?hs:0);if(hr){for(var hD=0;hD<hr.length;++hD){var hC=hr[hD];if(hC.to==null){var hw=fV(hu,hC.marker);if(!hw){hC.to=hs}else{if(hy){hC.to=hw.to==null?null:hw.to+hp}}}}}if(hu){for(var hq=0;hq<hu.length;++hq){var hB=hu[hq];if(hB.to!=null){hB.to+=hp}if(hB.from==null){var hl=fV(hr,hB.marker);if(!hl){hB.from=hp;if(hy){(hr||(hr=[])).push(hB)}}}else{hB.from+=hp;if(hy){(hr||(hr=[])).push(hB)}}}}if(hr){hr=t(hr)}if(hu&&hu!=hr){hu=t(hu)}var hE=[hr];if(!hy){var hz=hv.text.length-2,hk;if(hz>0&&hr){for(var ho=0;ho<hr.length;++ho){if(hr[ho].to==null){(hk||(hk=[])).push(new eT(hr[ho].marker,null,null))}}}for(var hn=0;hn<hz;++hn){hE.push(hk)}hE.push(hu)}return hE}function t(hl){for(var hk=0;hk<hl.length;++hk){var hm=hl[hk];if(hm.from!=null&&hm.from==hm.to&&hm.marker.clearWhenEmpty!==false){hl.splice(hk--,1)}}if(!hl.length){return null}return hl}function da(hw,hu,hv){var ho=null;hw.iter(hu.line,hv.line+1,function(hx){if(hx.markedSpans){for(var hy=0;hy<hx.markedSpans.length;++hy){var hz=hx.markedSpans[hy].marker;if(hz.readOnly&&(!ho||dP(ho,hz)==-1)){(ho||(ho=[])).push(hz)}}}});if(!ho){return null}var hp=[{from:hu,to:hv}];for(var hq=0;hq<ho.length;++hq){var hr=ho[hq],hm=hr.find(0);for(var hn=0;hn<hp.length;++hn){var hl=hp[hn];if(cD(hl.to,hm.from)<0||cD(hl.from,hm.to)>0){continue}var ht=[hn,1],hk=cD(hl.from,hm.from),hs=cD(hl.to,hm.to);if(hk<0||!hr.inclusiveLeft&&!hk){ht.push({from:hl.from,to:hm.from})}if(hs>0||!hr.inclusiveRight&&!hs){ht.push({from:hm.to,to:hl.to})}hp.splice.apply(hp,ht);hn+=ht.length-3}}return hp}function g8(hk){var hm=hk.markedSpans;if(!hm){return}for(var hl=0;hl<hm.length;++hl){hm[hl].marker.detachLine(hk)}hk.markedSpans=null}function dw(hk,hm){if(!hm){return}for(var hl=0;hl<hm.length;++hl){hm[hl].marker.attachLine(hk)}hk.markedSpans=hm}function x(i){return i.inclusiveLeft?-1:0}function ch(i){return i.inclusiveRight?1:0}function en(hm,hk){var ho=hm.lines.length-hk.lines.length;if(ho!=0){return ho}var hl=hm.find(),hp=hk.find();var i=cD(hl.from,hp.from)||x(hm)-x(hk);if(i){return -i}var hn=cD(hl.to,hp.to)||ch(hm)-ch(hk);if(hn){return hn}return hk.id-hm.id}function bi(hl,hp){var hk=bj&&hl.markedSpans,ho;if(hk){for(var hn=(void 0),hm=0;hm<hk.length;++hm){hn=hk[hm];if(hn.marker.collapsed&&(hp?hn.from:hn.to)==null&&(!ho||en(ho,hn.marker)<0)){ho=hn.marker}}}return ho}function fy(i){return bi(i,true)}function e9(i){return bi(i,false)}function cC(hl,hn){var hk=bj&&hl.markedSpans,hp;if(hk){for(var hm=0;hm<hk.length;++hm){var ho=hk[hm];if(ho.marker.collapsed&&(ho.from==null||ho.from<hn)&&(ho.to==null||ho.to>hn)&&(!hp||en(hp,ho.marker)<0)){hp=ho.marker}}}return hp}function B(hs,hk,hq,hr,ho){var hv=f0(hs,hk);var hl=bj&&hv.markedSpans;if(hl){for(var hn=0;hn<hl.length;++hn){var hm=hl[hn];if(!hm.marker.collapsed){continue}var hu=hm.marker.find(0);var ht=cD(hu.from,hq)||x(hm.marker)-x(ho);var hp=cD(hu.to,hr)||ch(hm.marker)-ch(ho);if(ht>=0&&hp<=0||ht<=0&&hp>=0){continue}if(ht<=0&&(hm.marker.inclusiveRight&&ho.inclusiveLeft?cD(hu.to,hq)>=0:cD(hu.to,hq)>0)||ht>=0&&(hm.marker.inclusiveRight&&ho.inclusiveLeft?cD(hu.from,hr)<=0:cD(hu.from,hr)<0)){return true}}}}function A(hk){var i;while(i=fy(hk)){hk=i.find(-1,true).line}return hk}function cJ(hk){var i;while(i=e9(hk)){hk=i.find(1,true).line}return hk}function g(hl){var i,hk;while(i=e9(hl)){hl=i.find(1,true).line;(hk||(hk=[])).push(hl)}return hk}function a7(hm,hk){var i=f0(hm,hk),hl=A(i);if(i==hl){return hk}return b7(hl)}function eC(hm,hl){if(hl>hm.lastLine()){return hl}var hk=f0(hm,hl),i;if(!gg(hm,hk)){return hl}while(i=e9(hk)){hk=i.find(1,true).line}return b7(hk)+1}function gg(ho,hl){var hk=bj&&hl.markedSpans;if(hk){for(var hn=(void 0),hm=0;hm<hk.length;++hm){hn=hk[hm];if(!hn.marker.collapsed){continue}if(hn.from==null){return true}if(hn.marker.widgetNode){continue}if(hn.from==0&&hn.marker.inclusiveLeft&&Y(ho,hl,hn)){return true}}}}function Y(hp,hl,hn){if(hn.to==null){var hk=hn.marker.find(1,true);return Y(hp,hk.line,fV(hk.line.markedSpans,hn.marker))}if(hn.marker.inclusiveRight&&hn.to==hl.text.length){return true}for(var ho=(void 0),hm=0;hm<hl.markedSpans.length;++hm){ho=hl.markedSpans[hm];if(ho.marker.collapsed&&!ho.marker.widgetNode&&ho.from==hn.to&&(ho.to==null||ho.to!=hn.from)&&(ho.marker.inclusiveLeft||hn.marker.inclusiveRight)&&Y(hp,hl,ho)){return true}}}function b6(hm){hm=A(hm);var ho=0,hl=hm.parent;for(var hn=0;hn<hl.lines.length;++hn){var hk=hl.lines[hn];if(hk==hm){break}else{ho+=hk.height}}for(var hp=hl.parent;hp;hl=hp,hp=hl.parent){for(var hr=0;hr<hp.children.length;++hr){var hq=hp.children[hr];if(hq==hl){break}else{ho+=hq.height}}}return ho}function eY(hl){if(hl.height==0){return 0}var hk=hl.text.length,i,ho=hl;while(i=fy(ho)){var hm=i.find(0,true);ho=hm.from.line;hk+=hm.from.ch-hm.to.ch}ho=hl;while(i=e9(ho)){var hn=i.find(0,true);hk-=ho.text.length-hn.from.ch;ho=hn.to.line;hk+=ho.text.length-hn.to.ch}return hk}function f(i){var hl=i.display,hk=i.doc;hl.maxLine=f0(hk,hk.first);hl.maxLineLength=eY(hl.maxLine);hl.maxLineChanged=true;hk.iter(function(hn){var hm=eY(hn);if(hm>hl.maxLineLength){hl.maxLineLength=hm;hl.maxLine=hn}})}var g4=function(hl,hk,i){this.text=hl;dw(this,hk);this.height=i?i(this):1};g4.prototype.lineNo=function(){return b7(this)};bS(g4);function eZ(hk,hn,hl,i){hk.text=hn;if(hk.stateAfter){hk.stateAfter=null}if(hk.styles){hk.styles=null}if(hk.order!=null){hk.order=null}g8(hk);dw(hk,hl);var hm=i?i(hk):1;if(hm!=hk.height){g5(hk,hm)}}function bU(i){i.parent=null;g8(i)}var et={},co={};function fG(hl,hk){if(!hl||/^\s*$/.test(hl)){return null}var i=hk.addModeClass?co:et;return i[hl]||(i[hl]=hl.replace(/\S+/g,"cm-$&"))}function fB(hq,hp){var ho=g6("span",null,null,dt?"padding-right: .1px":null);var hn={pre:g6("pre",[ho],"CodeMirror-line"),content:ho,col:0,pos:0,cm:hq,trailingSpace:false,splitSpaces:hq.getOption("lineWrapping")};hp.measure={};for(var hm=0;hm<=(hp.rest?hp.rest.length:0);hm++){var hs=hm?hp.rest[hm-1]:hp.line,hl=(void 0);hn.pos=0;hn.addToken=v;if(b8(hq.display.measure)&&(hl=a(hs,hq.doc.direction))){hn.addToken=Z(hn.addToken,hl)}hn.map=[];var hk=hp!=hq.display.externalMeasured&&b7(hs);bF(hs,hn,dC(hq,hs,hk));if(hs.styleClasses){if(hs.styleClasses.bgClass){hn.bgClass=gN(hs.styleClasses.bgClass,hn.bgClass||"")}if(hs.styleClasses.textClass){hn.textClass=gN(hs.styleClasses.textClass,hn.textClass||"")}}if(hn.map.length==0){hn.map.push(0,0,hn.content.appendChild(bE(hq.display.measure)))}if(hm==0){hp.measure.map=hn.map;hp.measure.cache={}}else{(hp.measure.maps||(hp.measure.maps=[])).push(hn.map);(hp.measure.caches||(hp.measure.caches=[])).push({})}}if(dt){var hr=hn.content.lastChild;if(/\bcm-tab\b/.test(hr.className)||(hr.querySelector&&hr.querySelector(".cm-tab"))){hn.content.className="cm-tab-wrap-hack"}}aN(hq,"renderLine",hq,hp.line,hn.pre);if(hn.pre.className){hn.textClass=gN(hn.pre.className,hn.textClass||"")}return hn}function fZ(hk){var i=g0("span","\u2022","cm-invalidchar");i.title="\\u"+hk.charCodeAt(0).toString(16);i.setAttribute("aria-label",i.title);return i}function v(hw,hq,hB,hy,ht,hp,ho){if(!hq){return}var hA=hw.splitSpaces?c6(hq,hw.trailingSpace):hq;var i=hw.cm.state.specialChars,hk=false;var hz;if(!i.test(hq)){hw.col+=hq.length;hz=document.createTextNode(hA);hw.map.push(hw.pos,hw.pos+hq.length,hz);if(ef&&n<9){hk=true}hw.pos+=hq.length}else{hz=document.createDocumentFragment();var hm=0;while(true){i.lastIndex=hm;var hx=i.exec(hq);var hD=hx?hx.index-hm:hq.length-hm;if(hD){var hs=document.createTextNode(hA.slice(hm,hm+hD));if(ef&&n<9){hz.appendChild(g0("span",[hs]))}else{hz.appendChild(hs)}hw.map.push(hw.pos,hw.pos+hD,hs);hw.col+=hD;hw.pos+=hD}if(!hx){break}hm+=hD+1;var hC=(void 0);if(hx[0]=="\t"){var hu=hw.cm.options.tabSize,hr=hu-hw.col%hu;hC=hz.appendChild(g0("span",cQ(hr),"cm-tab"));hC.setAttribute("role","presentation");hC.setAttribute("cm-text","\t");hw.col+=hr}else{if(hx[0]=="\r"||hx[0]=="\n"){hC=hz.appendChild(g0("span",hx[0]=="\r"?"\u240d":"\u2424","cm-invalidchar"));hC.setAttribute("cm-text",hx[0]);hw.col+=1}else{hC=hw.cm.options.specialCharPlaceholder(hx[0]);hC.setAttribute("cm-text",hx[0]);if(ef&&n<9){hz.appendChild(g0("span",[hC]))}else{hz.appendChild(hC)}hw.col+=1}}hw.map.push(hw.pos,hw.pos+1,hC);hw.pos++}}hw.trailingSpace=hA.charCodeAt(hq.length-1)==32;if(hB||hy||ht||hk||hp){var hl=hB||"";if(hy){hl+=hy}if(ht){hl+=ht}var hn=g0("span",[hz],hl,hp);if(ho){for(var hv in ho){if(ho.hasOwnProperty(hv)&&hv!="style"&&hv!="class"){hn.setAttribute(hv,ho[hv])}}}return hw.content.appendChild(hn)}hw.content.appendChild(hz)}function c6(hp,ho){if(hp.length>1&&!/ /.test(hp)){return hp}var hl=ho,hk="";for(var hm=0;hm<hp.length;hm++){var hn=hp.charAt(hm);if(hn==" "&&hl&&(hm==hp.length-1||hp.charCodeAt(hm+1)==32)){hn="\u00a0"}hk+=hn;hl=hn==" "}return hk}function Z(hk,i){return function(ht,hu,hl,hq,hv,hs,hp){hl=hl?hl+" cm-force-border":"cm-force-border";var hm=ht.pos,ho=hm+hu.length;for(;;){var hn=(void 0);for(var hr=0;hr<i.length;hr++){hn=i[hr];if(hn.to>hm&&hn.from<=hm){break}}if(hn.to>=ho){return hk(ht,hu,hl,hq,hv,hs,hp)}hk(ht,hu.slice(0,hn.to-hm),hl,hq,null,hs,hp);hq=null;hu=hu.slice(hn.to-hm);hm=hn.to}}}function ak(hk,hm,i,hl){var hn=!hl&&i.widgetNode;if(hn){hk.map.push(hk.pos,hk.pos+hm,hn)}if(!hl&&hk.cm.display.input.needsContentAttribute){if(!hn){hn=hk.content.appendChild(document.createElement("span"))}hn.setAttribute("cm-marker",i.id)}if(hn){hk.cm.display.input.setUneditable(hn);hk.content.appendChild(hn)}hk.pos+=hm;hk.trailingSpace=false}function bF(hw,hE,hv){var hp=hw.markedSpans,ht=hw.text,hB=0;if(!hp){for(var hq=1;hq<hv.length;hq+=2){hE.addToken(hE,ht.slice(hB,hB=hv[hq]),fG(hv[hq+1],hE.cm.options))}return}var hI=ht.length,ho=0,hH=1,hz="",hJ,hx;var hN=0,hk,hM,hA,hm,hs;for(;;){if(hN==ho){hk=hM=hA=hx="";hs=null;hm=null;hN=Infinity;var hr=[],hu=(void 0);for(var hF=0;hF<hp.length;++hF){var hG=hp[hF],hD=hG.marker;if(hD.type=="bookmark"&&hG.from==ho&&hD.widgetNode){hr.push(hD)}else{if(hG.from<=ho&&(hG.to==null||hG.to>ho||hD.collapsed&&hG.to==ho&&hG.from==ho)){if(hG.to!=null&&hG.to!=ho&&hN>hG.to){hN=hG.to;hM=""}if(hD.className){hk+=" "+hD.className}if(hD.css){hx=(hx?hx+";":"")+hD.css}if(hD.startStyle&&hG.from==ho){hA+=" "+hD.startStyle}if(hD.endStyle&&hG.to==hN){(hu||(hu=[])).push(hD.endStyle,hG.to)}if(hD.title){(hs||(hs={})).title=hD.title}if(hD.attributes){for(var hC in hD.attributes){(hs||(hs={}))[hC]=hD.attributes[hC]}}if(hD.collapsed&&(!hm||en(hm.marker,hD)<0)){hm=hG}}else{if(hG.from>ho&&hN>hG.from){hN=hG.from}}}}if(hu){for(var hL=0;hL<hu.length;hL+=2){if(hu[hL+1]==hN){hM+=" "+hu[hL]}}}if(!hm||hm.from==ho){for(var hK=0;hK<hr.length;++hK){ak(hE,0,hr[hK])}}if(hm&&(hm.from||0)==ho){ak(hE,(hm.to==null?hI+1:hm.to)-ho,hm.marker,hm.from==null);if(hm.to==null){return}if(hm.to==ho){hm=false}}}if(ho>=hI){break}var hy=Math.min(hI,hN);while(true){if(hz){var hl=ho+hz.length;if(!hm){var hn=hl>hy?hz.slice(0,hy-ho):hz;hE.addToken(hE,hn,hJ?hJ+hk:hk,hA,ho+hn.length==hN?hM:"",hx,hs)}if(hl>=hy){hz=hz.slice(hy-ho);ho=hy;break}ho=hl;hA=""}hz=ht.slice(hB,hB=hv[hH++]);hJ=fG(hv[hH++],hE.cm.options)}}}function bN(hl,i,hk){this.line=i;this.rest=g(i);this.size=this.rest?b7(gt(this.rest))-hk+1:1;this.node=this.text=null;this.hidden=gg(hl,i)}function fF(i,hp,ho){var hn=[],hl;for(var hm=hp;hm<ho;hm=hl){var hk=new bN(i.doc,f0(i.doc,hm),hm);hl=hm+hk.size;hn.push(hk)}return hn}var bH=null;function fc(i){if(bH){bH.ops.push(i)}else{i.ownsGroup=bH={ops:[i],delayedCallbacks:[]}}}function dm(hn){var hm=hn.delayedCallbacks,hl=0;do{for(;hl<hm.length;hl++){hm[hl].call(null)}for(var hk=0;hk<hn.ops.length;hk++){var ho=hn.ops[hk];if(ho.cursorActivityHandlers){while(ho.cursorActivityCalled<ho.cursorActivityHandlers.length){ho.cursorActivityHandlers[ho.cursorActivityCalled++].call(null,ho.cm)}}}}while(hl<hm.length)}function cj(hl,hk){var i=hl.ownsGroup;if(!i){return}try{dm(i)}finally{bH=null;hk(i)}}var bR=null;function al(hq,ho){var hk=eW(hq,ho);if(!hk.length){return}var hm=Array.prototype.slice.call(arguments,2),hp;if(bH){hp=bH.delayedCallbacks}else{if(bR){hp=bR}else{hp=bR=[];setTimeout(aW,0)}}var hl=function(hr){hp.push(function(){return hk[hr].apply(null,hm)})};for(var hn=0;hn<hk.length;++hn){hl(hn)}}function aW(){var hk=bR;bR=null;for(var hl=0;hl<hk.length;++hl){hk[hl]()}}function ai(i,hl,hn,ho){for(var hk=0;hk<hl.changes.length;hk++){var hm=hl.changes[hk];if(hm=="text"){f6(i,hl)}else{if(hm=="gutter"){dM(i,hl,hn,ho)}else{if(hm=="class"){ea(i,hl)}else{if(hm=="widget"){aw(i,hl,ho)}}}}}hl.changes=null}function gv(i){if(i.node==i.text){i.node=g0("div",null,null,"position: relative");if(i.text.parentNode){i.text.parentNode.replaceChild(i.node,i.text)}i.node.appendChild(i.text);if(ef&&n<8){i.node.style.zIndex=2}}return i.node}function e8(i,hl){var hk=hl.bgClass?hl.bgClass+" "+(hl.line.bgClass||""):hl.line.bgClass;if(hk){hk+=" CodeMirror-linebackground"}if(hl.background){if(hk){hl.background.className=hk}else{hl.background.parentNode.removeChild(hl.background);hl.background=null}}else{if(hk){var hm=gv(hl);hl.background=hm.insertBefore(g0("div",null,hk),hm.firstChild);i.display.input.setUneditable(hl.background)}}}function es(i,hk){var hl=i.display.externalMeasured;if(hl&&hl.line==hk.line){i.display.externalMeasured=null;hk.measure=hl.measure;return hl.built}return fB(i,hk)}function f6(i,hm){var hk=hm.text.className;var hl=es(i,hm);if(hm.text==hm.node){hm.node=hl.pre}hm.text.parentNode.replaceChild(hl.pre,hm.text);hm.text=hl.pre;if(hl.bgClass!=hm.bgClass||hl.textClass!=hm.textClass){hm.bgClass=hl.bgClass;hm.textClass=hl.textClass;ea(i,hm)}else{if(hk){hm.text.className=hk}}}function ea(hk,hl){e8(hk,hl);if(hl.line.wrapClass){gv(hl).className=hl.line.wrapClass}else{if(hl.node!=hl.text){hl.node.className=""}}var i=hl.textClass?hl.textClass+" "+(hl.line.textClass||""):hl.line.textClass;hl.text.className=i||""}function dM(hr,hp,ho,hq){if(hp.gutter){hp.node.removeChild(hp.gutter);hp.gutter=null}if(hp.gutterBackground){hp.node.removeChild(hp.gutterBackground);hp.gutterBackground=null}if(hp.line.gutterClass){var hk=gv(hp);hp.gutterBackground=g0("div",null,"CodeMirror-gutter-background "+hp.line.gutterClass,("left: "+(hr.options.fixedGutter?hq.fixedPos:-hq.gutterTotalWidth)+"px; width: "+(hq.gutterTotalWidth)+"px"));hr.display.input.setUneditable(hp.gutterBackground);hk.insertBefore(hp.gutterBackground,hp.text)}var hm=hp.line.gutterMarkers;if(hr.options.lineNumbers||hm){var hs=gv(hp);var hn=hp.gutter=g0("div",null,"CodeMirror-gutter-wrapper",("left: "+(hr.options.fixedGutter?hq.fixedPos:-hq.gutterTotalWidth)+"px"));hr.display.input.setUneditable(hn);hs.insertBefore(hn,hp.text);if(hp.line.gutterClass){hn.className+=" "+hp.line.gutterClass}if(hr.options.lineNumbers&&(!hm||!hm["CodeMirror-linenumbers"])){hp.lineNumber=hn.appendChild(g0("div",e5(hr.options,ho),"CodeMirror-linenumber CodeMirror-gutter-elt",("left: "+(hq.gutterLeft["CodeMirror-linenumbers"])+"px; width: "+(hr.display.lineNumInnerWidth)+"px")))}if(hm){for(var hl=0;hl<hr.display.gutterSpecs.length;++hl){var i=hr.display.gutterSpecs[hl].className,ht=hm.hasOwnProperty(i)&&hm[i];if(ht){hn.appendChild(g0("div",[ht],"CodeMirror-gutter-elt",("left: "+(hq.gutterLeft[i])+"px; width: "+(hq.gutterWidth[i])+"px")))}}}}}function aw(i,hk,hn){if(hk.alignable){hk.alignable=null}for(var hm=hk.node.firstChild,hl=(void 0);hm;hm=hl){hl=hm.nextSibling;if(hm.className=="CodeMirror-linewidget"){hk.node.removeChild(hm)}}gd(i,hk,hn)}function aO(i,hl,hm,hn){var hk=es(i,hl);hl.text=hl.node=hk.pre;if(hk.bgClass){hl.bgClass=hk.bgClass}if(hk.textClass){hl.textClass=hk.textClass}ea(i,hl);dM(i,hl,hm,hn);gd(i,hl,hn);return hl.node}function gd(hk,hm,hn){g3(hk,hm.line,hm,hn,true);if(hm.rest){for(var hl=0;hl<hm.rest.length;hl++){g3(hk,hm.rest[hl],hm,hn,false)}}}function g3(hs,ht,hp,hr,hn){if(!ht.widgets){return}var hk=gv(hp);for(var hm=0,hq=ht.widgets;hm<hq.length;++hm){var ho=hq[hm],hl=g0("div",[ho.node],"CodeMirror-linewidget");if(!ho.handleMouseEvents){hl.setAttribute("cm-ignore-events","true")}bY(ho,hl,hp,hr);hs.display.input.setUneditable(hl);if(hn&&ho.above){hk.insertBefore(hl,hp.gutter||hp.text)}else{hk.appendChild(hl)}al(ho,"redraw")}}function bY(hm,hl,i,hn){if(hm.noHScroll){(i.alignable||(i.alignable=[])).push(hl);var hk=hn.wrapperWidth;hl.style.left=hn.fixedPos+"px";if(!hm.coverGutter){hk-=hn.gutterTotalWidth;hl.style.paddingLeft=hn.gutterTotalWidth+"px"}hl.style.width=hk+"px"}if(hm.coverGutter){hl.style.zIndex=5;hl.style.position="relative";if(!hm.noHScroll){hl.style.marginLeft=-hn.gutterTotalWidth+"px"}}}function dr(hl){if(hl.height!=null){return hl.height}var i=hl.doc.cm;if(!i){return 0}if(!ha(document.body,hl.node)){var hk="position: relative;";if(hl.coverGutter){hk+="margin-left: -"+i.display.gutters.offsetWidth+"px;"}if(hl.noHScroll){hk+="width: "+i.display.wrapper.clientWidth+"px;"}cd(i.display.measure,g0("div",[hl.node],null,hk))}return hl.height=hl.node.parentNode.offsetHeight}function bn(hk,i){for(var hl=Q(i);hl!=hk.wrapper;hl=hl.parentNode){if(!hl||(hl.nodeType==1&&hl.getAttribute("cm-ignore-events")=="true")||(hl.parentNode==hk.sizer&&hl!=hk.mover)){return true}}}function fU(i){return i.lineSpace.offsetTop}function b1(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function fQ(hm){if(hm.cachedPaddingH){return hm.cachedPaddingH}var hl=cd(hm.measure,g0("pre","x"));var i=window.getComputedStyle?window.getComputedStyle(hl):hl.currentStyle;var hk={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};if(!isNaN(hk.left)&&!isNaN(hk.right)){hm.cachedPaddingH=hk}return hk}function dl(i){return ed-i.display.nativeBarWidth}function dS(i){return i.display.scroller.clientWidth-dl(i)-i.display.barWidth}function dn(i){return i.display.scroller.clientHeight-dl(i)-i.display.barHeight}function cF(hr,hn,hq){var hm=hr.options.lineWrapping;var ho=hm&&dS(hr);if(!hn.measure.heights||hm&&hn.measure.width!=ho){var hp=hn.measure.heights=[];if(hm){hn.measure.width=ho;var ht=hn.text.firstChild.getClientRects();for(var hk=0;hk<ht.length-1;hk++){var hs=ht[hk],hl=ht[hk+1];if(Math.abs(hs.bottom-hl.bottom)>2){hp.push((hs.bottom+hl.top)/2-hq.top)}}}hp.push(hq.bottom-hq.top)}}function cU(hm,hk,hn){if(hm.line==hk){return{map:hm.measure.map,cache:hm.measure.cache}}for(var hl=0;hl<hm.rest.length;hl++){if(hm.rest[hl]==hk){return{map:hm.measure.maps[hl],cache:hm.measure.caches[hl]}}}for(var ho=0;ho<hm.rest.length;ho++){if(b7(hm.rest[ho])>hn){return{map:hm.measure.maps[ho],cache:hm.measure.caches[ho],before:true}}}}function dv(i,hl){hl=A(hl);var hn=b7(hl);var hk=i.display.externalMeasured=new bN(i.doc,hl,hn);hk.lineN=hn;var hm=hk.built=fB(i,hk);hk.text=hm.pre;cd(i.display.lineMeasure,hm.pre);return hk}function eR(i,hk,hm,hl){return G(i,bh(i,hk),hm,hl)}function fX(i,hl){if(hl>=i.display.viewFrom&&hl<i.display.viewTo){return i.display.view[dY(i,hl)]}var hk=i.display.externalMeasured;if(hk&&hl>=hk.lineN&&hl<hk.lineN+hk.size){return hk}}function bh(i,hl){var hm=b7(hl);var hk=fX(i,hm);if(hk&&!hk.text){hk=null}else{if(hk&&hk.changes){ai(i,hk,hm,fY(i));i.curOp.forceUpdate=true}}if(!hk){hk=dv(i,hl)}var hn=cU(hk,hl,hm);return{line:hl,view:hk,rect:null,map:hn.map,cache:hn.cache,before:hn.before,hasHeights:false}}function G(i,hp,hn,hk,hm){if(hp.before){hn=-1}var hl=hn+(hk||""),ho;if(hp.cache.hasOwnProperty(hl)){ho=hp.cache[hl]}else{if(!hp.rect){hp.rect=hp.view.text.getBoundingClientRect()}if(!hp.hasHeights){cF(i,hp.view,hp.rect);hp.hasHeights=true}ho=l(i,hp,hn,hk);if(!ho.bogus){hp.cache[hl]=ho}}return{left:ho.left,right:ho.right,top:hm?ho.rtop:ho.top,bottom:hm?ho.rbottom:ho.bottom}}var fg={left:0,right:0,top:0,bottom:0};function aU(ht,hk,hq){var hm,hl,ho,hr,hn,hs;for(var hp=0;hp<ht.length;hp+=3){hn=ht[hp];hs=ht[hp+1];if(hk<hn){hl=0;ho=1;hr="left"}else{if(hk<hs){hl=hk-hn;ho=hl+1}else{if(hp==ht.length-3||hk==hs&&ht[hp+3]>hk){ho=hs-hn;hl=ho-1;if(hk>=hs){hr="right"}}}}if(hl!=null){hm=ht[hp+2];if(hn==hs&&hq==(hm.insertLeft?"left":"right")){hr=hq}if(hq=="left"&&hl==0){while(hp&&ht[hp-2]==ht[hp-3]&&ht[hp-1].insertLeft){hm=ht[(hp-=3)+2];hr="left"}}if(hq=="right"&&hl==hs-hn){while(hp<ht.length-3&&ht[hp+3]==ht[hp+4]&&!ht[hp+5].insertLeft){hm=ht[(hp+=3)+2];hr="right"}}break}}return{node:hm,start:hl,end:ho,collapse:hr,coverStart:hn,coverEnd:hs}}function fC(hl,hk){var hn=fg;if(hk=="left"){for(var hm=0;hm<hl.length;hm++){if((hn=hl[hm]).left!=hn.right){break}}}else{for(var ho=hl.length-1;ho>=0;ho--){if((hn=hl[ho]).left!=hn.right){break}}}return hn}function l(hs,hC,hv,hp){var ht=aU(hC.map,hv,hp);var hA=ht.node,ho=ht.start,hn=ht.end,hk=ht.collapse;var hl;if(hA.nodeType==3){for(var hq=0;hq<4;hq++){while(ho&&f9(hC.line.text.charAt(ht.coverStart+ho))){--ho}while(ht.coverStart+hn<ht.coverEnd&&f9(hC.line.text.charAt(ht.coverStart+hn))){++hn}if(ef&&n<9&&ho==0&&hn==ht.coverEnd-ht.coverStart){hl=hA.parentNode.getBoundingClientRect()}else{hl=fC(cM(hA,ho,hn).getClientRects(),hp)}if(hl.left||hl.right||ho==0){break}hn=ho;ho=ho-1;hk="right"}if(ef&&n<11){hl=fw(hs.display.measure,hl)}}else{if(ho>0){hk=hp="right"}var hm;if(hs.options.lineWrapping&&(hm=hA.getClientRects()).length>1){hl=hm[hp=="right"?hm.length-1:0]}else{hl=hA.getBoundingClientRect()}}if(ef&&n<9&&!ho&&(!hl||!hl.left&&!hl.right)){var hr=hA.parentNode.getClientRects()[0];if(hr){hl={left:hr.left,right:hr.left+d7(hs.display),top:hr.top,bottom:hr.bottom}}else{hl=fg}}var hy=hl.top-hC.rect.top,hw=hl.bottom-hC.rect.top;var hE=(hy+hw)/2;var hD=hC.view.measure.heights;var hB=0;for(;hB<hD.length-1;hB++){if(hE<hD[hB]){break}}var hz=hB?hD[hB-1]:0,hx=hD[hB];var hu={left:(hk=="right"?hl.right:hl.left)-hC.rect.left,right:(hk=="left"?hl.left:hl.right)-hC.rect.left,top:hz,bottom:hx};if(!hl.left&&!hl.right){hu.bogus=true}if(!hs.options.singleCursorHeightPerLine){hu.rtop=hy;hu.rbottom=hw}return hu}function fw(hl,hm){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!aV(hl)){return hm}var hk=screen.logicalXDPI/screen.deviceXDPI;var i=screen.logicalYDPI/screen.deviceYDPI;return{left:hm.left*hk,right:hm.right*hk,top:hm.top*i,bottom:hm.bottom*i}}function aD(hl){if(hl.measure){hl.measure.cache={};hl.measure.heights=null;if(hl.rest){for(var hk=0;hk<hl.rest.length;hk++){hl.measure.caches[hk]={}}}}}function aZ(hk){hk.display.externalMeasure=null;eA(hk.display.lineMeasure);for(var hl=0;hl<hk.display.view.length;hl++){aD(hk.display.view[hl])}}function aq(i){aZ(i);i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null;if(!i.options.lineWrapping){i.display.maxLineChanged=true}i.display.lineNumChars=null}function cV(){if(dJ&&aX){return -(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft))}return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function cT(){if(dJ&&aX){return -(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop))}return window.pageYOffset||(document.documentElement||document.body).scrollTop}function ee(hl){var hk=0;if(hl.widgets){for(var hm=0;hm<hl.widgets.length;++hm){if(hl.widgets[hm].above){hk+=dr(hl.widgets[hm])}}}return hk}function fz(hp,hm,ho,hk,hl){if(!hl){var hq=ee(hm);ho.top+=hq;ho.bottom+=hq}if(hk=="line"){return ho}if(!hk){hk="local"}var hn=b6(hm);if(hk=="local"){hn+=fU(hp.display)}else{hn-=hp.display.viewOffset}if(hk=="page"||hk=="window"){var i=hp.display.lineSpace.getBoundingClientRect();hn+=i.top+(hk=="window"?0:cT());var hr=i.left+(hk=="window"?0:cV());ho.left+=hr;ho.right+=hr}ho.top+=hn;ho.bottom+=hn;return ho}function hf(hk,hn,hl){if(hl=="div"){return hn}var hp=hn.left,ho=hn.top;if(hl=="page"){hp-=cV();ho-=cT()}else{if(hl=="local"||!hl){var hm=hk.display.sizer.getBoundingClientRect();hp+=hm.left;ho+=hm.top}}var i=hk.display.lineSpace.getBoundingClientRect();return{left:hp-i.left,top:ho-i.top}}function dc(i,hn,hm,hl,hk){if(!hl){hl=f0(i.doc,hn.line)}return fz(i,hl,eR(i,hl,hn.ch,hk),hm)}function er(hu,hs,hl,hp,hw,hq){hp=hp||f0(hu.doc,hs.line);if(!hw){hw=bh(hu,hp)}function hn(hz,hy){var hx=G(hu,hw,hz,hy?"right":"left",hq);if(hy){hx.left=hx.right}else{hx.right=hx.left}return fz(hu,hp,hx,hl)}var ho=a(hp,hu.doc.direction),i=hs.ch,ht=hs.sticky;if(i>=hp.text.length){i=hp.text.length;ht="before"}else{if(i<=0){i=0;ht="after"}}if(!ho){return hn(ht=="before"?i-1:i,ht=="before")}function hv(hA,hx,hB){var hy=ho[hx],hz=hy.level==1;return hn(hB?hA-1:hA,hz!=hB)}var hk=aR(ho,i,ht);var hr=fO;var hm=hv(i,hk,ht=="before");if(hr!=null){hm.other=hv(i,hr,ht!="before")}return hm}function eb(i,hn){var hm=0;hn=gy(i.doc,hn);if(!i.options.lineWrapping){hm=d7(i.display)*hn.ch}var hk=f0(i.doc,hn.line);var hl=b6(hk)+fU(i.display);return{left:hm,right:hm,top:hl,bottom:hl+hk.height}}function gY(i,hk,hm,hl,ho){var hn=ab(i,hk,hm);hn.xRel=ho;if(hl){hn.outside=true}return hn}function gG(hq,ho,hn){var hp=hq.doc;hn+=hq.display.viewOffset;if(hn<0){return gY(hp.first,0,null,true,-1)}var hm=b0(hp,hn),hr=hp.first+hp.size-1;if(hm>hr){return gY(hp.first+hp.size-1,f0(hp,hr).text.length,null,true,1)}if(ho<0){ho=0}var hl=f0(hp,hm);for(;;){var hs=ds(hq,hl,hm,ho,hn);var hk=cC(hl,hs.ch+(hs.xRel>0?1:0));if(!hk){return hs}var i=hk.find(1);if(i.line==hm){return i}hl=f0(hp,hm=i.line)}}function bC(i,hl,hn,ho){ho-=ee(hl);var hk=hl.text.length;var hm=cN(function(hp){return G(i,hn,hp-1).bottom<=ho},hk,0);hk=cN(function(hp){return G(i,hn,hp).top>ho},hm,hk);return{begin:hm,end:hk}}function bA(i,hk,hm,hn){if(!hm){hm=bh(i,hk)}var hl=fz(i,hk,G(i,hm,hn),"line").top;return bC(i,hk,hm,hl)}function az(hk,i,hm,hl){return hk.bottom<=hm?false:hk.top>hm?true:(hl?hk.left:hk.right)>i}function ds(hm,hk,hB,hp,ho){ho-=b6(hk);var ht=bh(hm,hk);var hD=ee(hk);var hA=0,hl=hk.text.length,hx=true;var hv=a(hk,hm.doc.direction);if(hv){var hu=(hm.options.lineWrapping?gV:gA)(hm,hk,hB,ht,hv,hp,ho);hx=hu.level!=1;hA=hx?hu.from:hu.to-1;hl=hx?hu.to:hu.from-1}var hn=null,hr=null;var hs=cN(function(hE){var hF=G(hm,ht,hE);hF.top+=hD;hF.bottom+=hD;if(!az(hF,hp,ho,false)){return false}if(hF.top<=ho&&hF.left<=hp){hn=hE;hr=hF}return true},hA,hl);var i,hC,hz=false;if(hr){var hy=hp-hr.left<hr.right-hp,hq=hy==hx;hs=hn+(hq?0:1);hC=hq?"after":"before";i=hy?hr.left:hr.right}else{if(!hx&&(hs==hl||hs==hA)){hs++}hC=hs==0?"after":hs==hk.text.length?"before":(G(hm,ht,hs-(hx?1:0)).bottom+hD<=ho)==hx?"after":"before";var hw=er(hm,ab(hB,hs,hC),"line",hk,ht);i=hw.left;hz=ho<hw.top||ho>=hw.bottom}hs=eU(hk.text,hs,1);return gY(hB,hs,hC,hz,hp-i)}function gA(hs,ho,i,ht,hn,hr,hq){var hp=cN(function(hw){var hu=hn[hw],hv=hu.level!=1;return az(er(hs,ab(i,hv?hu.to:hu.from,hv?"before":"after"),"line",ho,ht),hr,hq,true)},0,hn.length-1);var hm=hn[hp];if(hp>0){var hl=hm.level!=1;var hk=er(hs,ab(i,hl?hm.from:hm.to,hl?"after":"before"),"line",ho,ht);if(az(hk,hr,hq,true)&&hk.top>hq){hm=hn[hp-1]}}return hm}function gV(hx,hs,hv,hA,hp,hw,hu){var ho=bC(hx,hs,hA,hu);var hn=ho.begin;var hq=ho.end;if(/\s/.test(hs.text.charAt(hq-1))){hq--}var hm=null,hy=null;for(var hr=0;hr<hp.length;hr++){var hk=hp[hr];if(hk.from>=hq||hk.to<=hn){continue}var hl=hk.level!=1;var hz=G(hx,hA,hl?Math.min(hq,hk.to)-1:Math.max(hn,hk.from)).right;var ht=hz<hw?hw-hz+1000000000:hz-hw;if(!hm||hy>ht){hm=hk;hy=ht}}if(!hm){hm=hp[hp.length-1]}if(hm.from<hn){hm={from:hn,to:hm.to,level:hm.level}}if(hm.to>hq){hm={from:hm.from,to:hq,level:hm.level}}return hm}var aQ;function a9(hm){if(hm.cachedTextHeight!=null){return hm.cachedTextHeight}if(aQ==null){aQ=g0("pre");for(var hl=0;hl<49;++hl){aQ.appendChild(document.createTextNode("x"));aQ.appendChild(g0("br"))}aQ.appendChild(document.createTextNode("x"))}cd(hm.measure,aQ);var hk=aQ.offsetHeight/50;if(hk>3){hm.cachedTextHeight=hk}eA(hm.measure);return hk||1}function d7(hn){if(hn.cachedCharWidth!=null){return hn.cachedCharWidth}var i=g0("span","xxxxxxxxxx");var hm=g0("pre",[i]);cd(hn.measure,hm);var hl=i.getBoundingClientRect(),hk=(hl.right-hl.left)/10;if(hk>2){hn.cachedCharWidth=hk}return hk||10}function fY(hk){var hp=hk.display,hn={},hm={};var ho=hp.gutters.clientLeft;for(var hr=hp.gutters.firstChild,hl=0;hr;hr=hr.nextSibling,++hl){var hq=hk.display.gutterSpecs[hl].className;hn[hq]=hr.offsetLeft+hr.clientLeft+ho;hm[hq]=hr.clientWidth}return{fixedPos:ev(hp),gutterTotalWidth:hp.gutters.offsetWidth,gutterLeft:hn,gutterWidth:hm,wrapperWidth:hp.wrapper.clientWidth}}function ev(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function bq(i){var hl=a9(i.display),hk=i.options.lineWrapping;var hm=hk&&Math.max(5,i.display.scroller.clientWidth/d7(i.display)-3);return function(ho){if(gg(i.doc,ho)){return 0}var hn=0;if(ho.widgets){for(var hp=0;hp<ho.widgets.length;hp++){if(ho.widgets[hp].height){hn+=ho.widgets[hp].height}}}if(hk){return hn+(Math.ceil(ho.text.length/hm)||1)*hl}else{return hn+hl}}}function ae(i){var hl=i.doc,hk=bq(i);hl.iter(function(hm){var hn=hk(hm);if(hn!=hm.height){g5(hm,hn)}})}function cO(hs,hn,hk,hl){var ho=hs.display;if(!hk&&Q(hn).getAttribute("cm-not-content")=="true"){return null}var hr,hp,i=ho.lineSpace.getBoundingClientRect();try{hr=hn.clientX-i.left;hp=hn.clientY-i.top}catch(hn){return null}var hq=gG(hs,hr,hp),ht;if(hl&&hq.xRel==1&&(ht=f0(hs.doc,hq.line).text).length==hq.ch){var hm=cc(ht,ht.length,hs.options.tabSize)-ht.length;hq=ab(hq.line,Math.max(0,Math.round((hr-fQ(hs.display).left)/d7(hs.display))-hm))}return hq}function dY(hk,hn){if(hn>=hk.display.viewTo){return null}hn-=hk.display.viewFrom;if(hn<0){return null}var hl=hk.display.view;for(var hm=0;hm<hl.length;hm++){hn-=hl[hm].size;if(hn<0){return hm}}}function ao(hr,hp,hq,hs){if(hp==null){hp=hr.doc.first}if(hq==null){hq=hr.doc.first+hr.doc.size}if(!hs){hs=0}var hm=hr.display;if(hs&&hq<hm.viewTo&&(hm.updateLineNumbers==null||hm.updateLineNumbers>hp)){hm.updateLineNumbers=hp}hr.curOp.viewChanged=true;if(hp>=hm.viewTo){if(bj&&a7(hr.doc,hp)<hm.viewTo){fa(hr)}}else{if(hq<=hm.viewFrom){if(bj&&eC(hr.doc,hq+hs)>hm.viewFrom){fa(hr)}else{hm.viewFrom+=hs;hm.viewTo+=hs}}else{if(hp<=hm.viewFrom&&hq>=hm.viewTo){fa(hr)}else{if(hp<=hm.viewFrom){var ho=dL(hr,hq,hq+hs,1);if(ho){hm.view=hm.view.slice(ho.index);hm.viewFrom=ho.lineN;hm.viewTo+=hs}else{fa(hr)}}else{if(hq>=hm.viewTo){var hk=dL(hr,hp,hp,-1);if(hk){hm.view=hm.view.slice(0,hk.index);hm.viewTo=hk.lineN}else{fa(hr)}}else{var hn=dL(hr,hp,hp,-1);var hl=dL(hr,hq,hq+hs,1);if(hn&&hl){hm.view=hm.view.slice(0,hn.index).concat(fF(hr,hn.lineN,hl.lineN)).concat(hm.view.slice(hl.index));hm.viewTo+=hs}else{fa(hr)}}}}}}var i=hm.externalMeasured;if(i){if(hq<i.lineN){i.lineN+=hs}else{if(hp<i.lineN+i.size){hm.externalMeasured=null}}}}function W(hk,hl,ho){hk.curOp.viewChanged=true;var hp=hk.display,hn=hk.display.externalMeasured;if(hn&&hl>=hn.lineN&&hl<hn.lineN+hn.size){hp.externalMeasured=null}if(hl<hp.viewFrom||hl>=hp.viewTo){return}var hm=hp.view[dY(hk,hl)];if(hm.node==null){return}var i=hm.changes||(hm.changes=[]);if(dP(i,ho)==-1){i.push(ho)}}function fa(i){i.display.viewFrom=i.display.viewTo=i.doc.first;i.display.view=[];i.display.viewOffset=0}function dL(hs,hm,ho,hl){var hp=dY(hs,hm),hr,hq=hs.display.view;if(!bj||ho==hs.doc.first+hs.doc.size){return{index:hp,lineN:ho}}var hk=hs.display.viewFrom;for(var hn=0;hn<hp;hn++){hk+=hq[hn].size}if(hk!=hm){if(hl>0){if(hp==hq.length-1){return null}hr=(hk+hq[hp].size)-hm;hp++}else{hr=hk-hm}hm+=hr;ho+=hr}while(a7(hs.doc,ho)!=ho){if(hp==(hl<0?0:hq.length-1)){return null}ho+=hl*hq[hp-(hl<0?1:0)].size;hp+=hl}return{index:hp,lineN:ho}}function dk(i,hn,hm){var hl=i.display,hk=hl.view;if(hk.length==0||hn>=hl.viewTo||hm<=hl.viewFrom){hl.view=fF(i,hn,hm);hl.viewFrom=hn}else{if(hl.viewFrom>hn){hl.view=fF(i,hn,hl.viewFrom).concat(hl.view)}else{if(hl.viewFrom<hn){hl.view=hl.view.slice(dY(i,hn))}}hl.viewFrom=hn;if(hl.viewTo<hm){hl.view=hl.view.concat(fF(i,hl.viewTo,hm))}else{if(hl.viewTo>hm){hl.view=hl.view.slice(0,dY(i,hm))}}}hl.viewTo=hm}function dI(hk){var hl=hk.display.view,ho=0;for(var hn=0;hn<hl.length;hn++){var hm=hl[hn];if(!hm.hidden&&(!hm.node||hm.changes)){++ho}}return ho}function bV(i){i.display.input.showSelection(i.display.input.prepareSelection())}function gw(hq,hk){if(hk===void 0){hk=true}var hp=hq.doc,hs={};var ho=hs.cursors=document.createDocumentFragment();var hl=hs.selection=document.createDocumentFragment();for(var hn=0;hn<hp.sel.ranges.length;hn++){if(!hk&&hn==hp.sel.primIndex){continue}var hr=hp.sel.ranges[hn];if(hr.from().line>=hq.display.viewTo||hr.to().line<hq.display.viewFrom){continue}var hm=hr.empty();if(hm||hq.options.showCursorWhenSelecting){D(hq,hr.head,ho)}if(!hm){bW(hq,hr,hl)}}return hs}function D(i,hm,hl){var ho=er(i,hm,"div",null,null,!i.options.singleCursorHeightPerLine);var hn=hl.appendChild(g0("div","\u00a0","CodeMirror-cursor"));hn.style.left=ho.left+"px";hn.style.top=ho.top+"px";hn.style.height=Math.max(0,ho.bottom-ho.top)*i.options.cursorHeight+"px";if(ho.other){var hk=hl.appendChild(g0("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));hk.style.display="";hk.style.left=ho.other.left+"px";hk.style.top=ho.other.top+"px";hk.style.height=(ho.other.bottom-ho.other.top)*0.85+"px"}}function gQ(hk,i){return hk.top-i.top||hk.left-i.left}function bW(hp,ho,hq){var hx=hp.display,hB=hp.doc;var i=document.createDocumentFragment();var hu=fQ(hp.display),hm=hu.left;var hy=Math.max(hx.sizerWidth,dS(hp)-hx.sizer.offsetLeft)-hu.right;var hn=hB.direction=="ltr";function hv(hF,hE,hD,hC){if(hE<0){hE=0}hE=Math.round(hE);hC=Math.round(hC);i.appendChild(g0("div",null,"CodeMirror-selected",("position: absolute; left: "+hF+"px;\n top: "+hE+"px; width: "+(hD==null?hy-hF:hD)+"px;\n height: "+(hC-hE)+"px")))}function hk(hL,hD,hK){var hH=f0(hB,hL);var hI=hH.text.length;var hC,hG;function hJ(hN,hM){return dc(hp,ab(hL,hN),"div",hH,hM)}function hE(hR,hM,hN){var hP=bA(hp,hH,null,hR);var hQ=(hM=="ltr")==(hN=="after")?"left":"right";var hO=hN=="after"?hP.begin:hP.end-(/\s/.test(hH.text.charAt(hP.end-1))?2:1);return hJ(hO,hQ)[hQ]}var hF=a(hH,hB.direction);eE(hF,hD||0,hK==null?hI:hK,function(hX,hM,hS,h0){var h3=hS=="ltr";var hY=hJ(hX,h3?"left":"right");var hW=hJ(hM-1,h3?"right":"left");var h2=hD==null&&hX==0,hZ=hK==null&&hM==hI;var hO=h0==0,hQ=!hF||h0==hF.length-1;if(hW.top-hY.top<=3){var hP=(hn?h2:hZ)&&hO;var hR=(hn?hZ:h2)&&hQ;var hN=hP?hm:(h3?hY:hW).left;var h4=hR?hy:(h3?hW:hY).right;hv(hN,hY.top,h4-hN,hY.bottom)}else{var hU,hT,h1,hV;if(h3){hU=hn&&h2&&hO?hm:hY.left;hT=hn?hy:hE(hX,hS,"before");h1=hn?hm:hE(hM,hS,"after");hV=hn&&hZ&&hQ?hy:hW.right}else{hU=!hn?hm:hE(hX,hS,"before");hT=!hn&&h2&&hO?hy:hY.right;h1=!hn&&hZ&&hQ?hm:hW.left;hV=!hn?hy:hE(hM,hS,"after")}hv(hU,hY.top,hT-hU,hY.bottom);if(hY.bottom<hW.top){hv(hm,hY.bottom,null,hW.top)}hv(h1,hW.top,hV-h1,hW.bottom)}if(!hC||gQ(hY,hC)<0){hC=hY}if(gQ(hW,hC)<0){hC=hW}if(!hG||gQ(hY,hG)<0){hG=hY}if(gQ(hW,hG)<0){hG=hW}});return{start:hC,end:hG}}var hA=ho.from(),hz=ho.to();if(hA.line==hz.line){hk(hA.line,hA.ch,hz.ch)}else{var hl=f0(hB,hA.line),hs=f0(hB,hz.line);var hr=A(hl)==A(hs);var ht=hk(hA.line,hA.ch,hr?hl.text.length+1:null).end;var hw=hk(hz.line,hr?0:null,hz.ch).start;if(hr){if(ht.top<hw.top-2){hv(ht.right,ht.top,null,ht.bottom);hv(hm,hw.top,hw.left,hw.bottom)}else{hv(ht.right,ht.top,hw.left-ht.right,ht.bottom)}}if(ht.bottom<hw.top){hv(hm,ht.bottom,null,hw.top)}}hq.appendChild(i)}function r(i){if(!i.state.focused){return}var hl=i.display;clearInterval(hl.blinker);var hk=true;hl.cursorDiv.style.visibility="";if(i.options.cursorBlinkRate>0){hl.blinker=setInterval(function(){return hl.cursorDiv.style.visibility=(hk=!hk)?"":"hidden"},i.options.cursorBlinkRate)}else{if(i.options.cursorBlinkRate<0){hl.cursorDiv.style.visibility="hidden"}}}function u(i){if(!i.state.focused){i.display.input.focus();c2(i)}}function ar(i){i.state.delayingBlurEvent=true;setTimeout(function(){if(i.state.delayingBlurEvent){i.state.delayingBlurEvent=false;a6(i)}},100)}function c2(i,hk){if(i.state.delayingBlurEvent){i.state.delayingBlurEvent=false}if(i.options.readOnly=="nocursor"){return}if(!i.state.focused){aN(i,"focus",i,hk);i.state.focused=true;gn(i.display.wrapper,"CodeMirror-focused");if(!i.curOp&&i.display.selForContextMenu!=i.doc.sel){i.display.input.reset();if(dt){setTimeout(function(){return i.display.input.reset(true)},20)}}i.display.input.receivedFocus()}r(i)}function a6(i,hk){if(i.state.delayingBlurEvent){return}if(i.state.focused){aN(i,"blur",i,hk);i.state.focused=false;h(i.display.wrapper,"CodeMirror-focused")}clearInterval(i.display.blinker);setTimeout(function(){if(!i.state.focused){i.display.shift=false}},150)}function bl(hu){var hs=hu.display;var hm=hs.lineDiv.offsetTop;for(var hn=0;hn<hs.view.length;hn++){var hv=hs.view[hn],hp=hu.options.lineWrapping;var hw=(void 0),hk=0;if(hv.hidden){continue}if(ef&&n<8){var hr=hv.node.offsetTop+hv.node.offsetHeight;hw=hr-hm;hm=hr}else{var ho=hv.node.getBoundingClientRect();hw=ho.bottom-ho.top;if(!hp&&hv.text.firstChild){hk=hv.text.firstChild.getBoundingClientRect().right-ho.left-1}}var ht=hv.line.height-hw;if(ht>0.005||ht<-0.005){g5(hv.line,hw);cx(hv.line);if(hv.rest){for(var hl=0;hl<hv.rest.length;hl++){cx(hv.rest[hl])}}}if(hk>hu.display.sizerWidth){var hq=Math.ceil(hk/d7(hu.display));if(hq>hu.display.maxLineLength){hu.display.maxLineLength=hq;hu.display.maxLine=hv.line;hu.display.maxLineChanged=true}}}}function cx(hl){if(hl.widgets){for(var hm=0;hm<hl.widgets.length;++hm){var hk=hl.widgets[hm],hn=hk.node.parentNode;if(hn){hk.height=hn.offsetHeight}}}}function cs(hm,hq,hl){var hn=hl&&hl.top!=null?Math.max(0,hl.top):hm.scroller.scrollTop;hn=Math.floor(hn-fU(hm));var i=hl&&hl.bottom!=null?hl.bottom:hn+hm.wrapper.clientHeight;var ho=b0(hq,hn),hp=b0(hq,i);if(hl&&hl.ensure){var hk=hl.ensure.from.line,hr=hl.ensure.to.line;if(hk<ho){ho=hk;hp=b0(hq,b6(f0(hq,hk))+hm.wrapper.clientHeight)}else{if(Math.min(hr,hq.lastLine())>=hp){ho=b0(hq,b6(f0(hq,hr))-hm.wrapper.clientHeight);hp=hr}}}return{from:ho,to:Math.max(hp,ho+1)}}function eF(hk,hm){if(a2(hk,"scrollCursorIntoView")){return}var ho=hk.display,hl=ho.sizer.getBoundingClientRect(),i=null;if(hm.top+hl.top<0){i=true}else{if(hm.bottom+hl.top>(window.innerHeight||document.documentElement.clientHeight)){i=false}}if(i!=null&&!ge){var hn=g0("div","\u200b",null,("position: absolute;\n top: "+(hm.top-ho.viewOffset-fU(hk.display))+"px;\n height: "+(hm.bottom-hm.top+dl(hk)+ho.barHeight)+"px;\n left: "+(hm.left)+"px; width: "+(Math.max(2,hm.right-hm.left))+"px;"));hk.display.lineSpace.appendChild(hn);hn.scrollIntoView(i);hk.display.lineSpace.removeChild(hn)}}function H(hu,hr,hn,hm){if(hm==null){hm=0}var hs;if(!hu.options.lineWrapping&&hr==hn){hr=hr.ch?ab(hr.line,hr.sticky=="before"?hr.ch-1:hr.ch,"after"):hr;hn=hr.sticky=="before"?ab(hr.line,hr.ch+1,"before"):hr}for(var ho=0;ho<5;ho++){var hp=false;var ht=er(hu,hr);var i=!hn||hn==hr?ht:er(hu,hn);hs={left:Math.min(ht.left,i.left),top:Math.min(ht.top,i.top)-hm,right:Math.max(ht.left,i.left),bottom:Math.max(ht.bottom,i.bottom)+hm};var hl=M(hu,hs);var hq=hu.doc.scrollTop,hk=hu.doc.scrollLeft;if(hl.scrollTop!=null){C(hu,hl.scrollTop);if(Math.abs(hu.doc.scrollTop-hq)>1){hp=true}}if(hl.scrollLeft!=null){bX(hu,hl.scrollLeft);if(Math.abs(hu.doc.scrollLeft-hk)>1){hp=true}}if(!hp){break}}return hs}function I(i,hk){var hl=M(i,hk);if(hl.scrollTop!=null){C(i,hl.scrollTop)}if(hl.scrollLeft!=null){bX(i,hl.scrollLeft)}}function M(hs,hr){var hp=hs.display,hn=a9(hs.display);if(hr.top<0){hr.top=0}var hl=hs.curOp&&hs.curOp.scrollTop!=null?hs.curOp.scrollTop:hp.scroller.scrollTop;var hu=dn(hs),hw={};if(hr.bottom-hr.top>hu){hr.bottom=hr.top+hu}var hk=hs.doc.height+b1(hp);var i=hr.top<hn,ho=hr.bottom>hk-hn;if(hr.top<hl){hw.scrollTop=i?0:hr.top}else{if(hr.bottom>hl+hu){var hq=Math.min(hr.top,(ho?hk:hr.bottom)-hu);if(hq!=hl){hw.scrollTop=hq}}}var hv=hs.curOp&&hs.curOp.scrollLeft!=null?hs.curOp.scrollLeft:hp.scroller.scrollLeft;var ht=dS(hs)-(hs.options.fixedGutter?hp.gutters.offsetWidth:0);var hm=hr.right-hr.left>ht;if(hm){hr.right=hr.left+ht}if(hr.left<10){hw.scrollLeft=0}else{if(hr.left<hv){hw.scrollLeft=Math.max(0,hr.left-(hm?0:10))}else{if(hr.right>ht+hv-3){hw.scrollLeft=hr.right+(hm?0:10)-ht}}}return hw}function c9(i,hk){if(hk==null){return}gp(i);i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+hk}function gs(i){gp(i);var hk=i.getCursor();i.curOp.scrollToPos={from:hk,to:hk,margin:i.options.cursorScrollMargin}}function fu(hk,i,hl){if(i!=null||hl!=null){gp(hk)}if(i!=null){hk.curOp.scrollLeft=i}if(hl!=null){hk.curOp.scrollTop=hl}}function cA(i,hk){gp(i);i.curOp.scrollToPos=hk}function gp(i){var hk=i.curOp.scrollToPos;if(hk){i.curOp.scrollToPos=null;var hm=eb(i,hk.from),hl=eb(i,hk.to);ca(i,hm,hl,hk.margin)}}function ca(i,hn,hm,hl){var hk=M(i,{left:Math.min(hn.left,hm.left),top:Math.min(hn.top,hm.top)-hl,right:Math.max(hn.right,hm.right),bottom:Math.max(hn.bottom,hm.bottom)+hl});fu(i,hk.scrollLeft,hk.scrollTop)}function C(i,hk){if(Math.abs(i.doc.scrollTop-hk)<2){return}if(!cP){eq(i,{top:hk})}T(i,hk,true);if(cP){eq(i)}eO(i,100)}function T(i,hl,hk){hl=Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,hl);if(i.display.scroller.scrollTop==hl&&!hk){return}i.doc.scrollTop=hl;i.display.scrollbars.setScrollTop(hl);if(i.display.scroller.scrollTop!=hl){i.display.scroller.scrollTop=hl}}function bX(i,hm,hl,hk){hm=Math.min(hm,i.display.scroller.scrollWidth-i.display.scroller.clientWidth);if((hl?hm==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-hm)<2)&&!hk){return}i.doc.scrollLeft=hm;fk(i);if(i.display.scroller.scrollLeft!=hm){i.display.scroller.scrollLeft=hm}i.display.scrollbars.setScrollLeft(hm)}function d5(i){var hm=i.display,hl=hm.gutters.offsetWidth;var hk=Math.round(i.doc.height+b1(i.display));return{clientHeight:hm.scroller.clientHeight,viewHeight:hm.wrapper.clientHeight,scrollWidth:hm.scroller.scrollWidth,clientWidth:hm.scroller.clientWidth,viewWidth:hm.wrapper.clientWidth,barLeft:i.options.fixedGutter?hl:0,docHeight:hk,scrollHeight:hk+dl(i)+hm.barHeight,nativeBarWidth:hm.nativeBarWidth,gutterWidth:hl}}var dR=function(hl,hk,i){this.cm=i;var hm=this.vert=g0("div",[g0("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var hn=this.horiz=g0("div",[g0("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");hm.tabIndex=hn.tabIndex=-1;hl(hm);hl(hn);ci(hm,"scroll",function(){if(hm.clientHeight){hk(hm.scrollTop,"vertical")}});ci(hn,"scroll",function(){if(hn.clientWidth){hk(hn.scrollLeft,"horizontal")}});this.checkedZeroWidth=false;if(ef&&n<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}};dR.prototype.update=function(hm){var hn=hm.scrollWidth>hm.clientWidth+1;var hl=hm.scrollHeight>hm.clientHeight+1;var ho=hm.nativeBarWidth;if(hl){this.vert.style.display="block";this.vert.style.bottom=hn?ho+"px":"0";var hk=hm.viewHeight-(hn?ho:0);this.vert.firstChild.style.height=Math.max(0,hm.scrollHeight-hm.clientHeight+hk)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(hn){this.horiz.style.display="block";this.horiz.style.right=hl?ho+"px":"0";this.horiz.style.left=hm.barLeft+"px";var i=hm.viewWidth-hm.barLeft-(hl?ho:0);this.horiz.firstChild.style.width=Math.max(0,hm.scrollWidth-hm.clientWidth+i)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&hm.clientHeight>0){if(ho==0){this.zeroWidthHack()}this.checkedZeroWidth=true}return{right:hl?ho:0,bottom:hn?ho:0}};dR.prototype.setScrollLeft=function(i){if(this.horiz.scrollLeft!=i){this.horiz.scrollLeft=i}if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}};dR.prototype.setScrollTop=function(i){if(this.vert.scrollTop!=i){this.vert.scrollTop=i}if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}};dR.prototype.zeroWidthHack=function(){var i=ct&&!dB?"12px":"18px";this.horiz.style.height=this.vert.style.width=i;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new hj;this.disableVert=new hj};dR.prototype.enableZeroWidthBar=function(hl,i,hk){hl.style.pointerEvents="auto";function hm(){var ho=hl.getBoundingClientRect();var hn=hk=="vert"?document.elementFromPoint(ho.right-1,(ho.top+ho.bottom)/2):document.elementFromPoint((ho.right+ho.left)/2,ho.bottom-1);if(hn!=hl){hl.style.pointerEvents="none"}else{i.set(1000,hm)}}i.set(1000,hm)};dR.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz);i.removeChild(this.vert)};var fP=function(){};fP.prototype.update=function(){return{bottom:0,right:0}};fP.prototype.setScrollLeft=function(){};fP.prototype.setScrollTop=function(){};fP.prototype.clear=function(){};function fJ(hm,ho){if(!ho){ho=d5(hm)}var hl=hm.display.barWidth,hk=hm.display.barHeight;a5(hm,ho);for(var hn=0;hn<4&&hl!=hm.display.barWidth||hk!=hm.display.barHeight;hn++){if(hl!=hm.display.barWidth&&hm.options.lineWrapping){bl(hm)}a5(hm,d5(hm));hl=hm.display.barWidth;hk=hm.display.barHeight}}function a5(i,hk){var hm=i.display;var hl=hm.scrollbars.update(hk);hm.sizer.style.paddingRight=(hm.barWidth=hl.right)+"px";hm.sizer.style.paddingBottom=(hm.barHeight=hl.bottom)+"px";hm.heightForcer.style.borderBottom=hl.bottom+"px solid transparent";if(hl.right&&hl.bottom){hm.scrollbarFiller.style.display="block";hm.scrollbarFiller.style.height=hl.bottom+"px";hm.scrollbarFiller.style.width=hl.right+"px"}else{hm.scrollbarFiller.style.display=""}if(hl.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter){hm.gutterFiller.style.display="block";hm.gutterFiller.style.height=hl.bottom+"px";hm.gutterFiller.style.width=hk.gutterWidth+"px"}else{hm.gutterFiller.style.display=""}}var bz={"native":dR,"null":fP};function aL(i){if(i.display.scrollbars){i.display.scrollbars.clear();if(i.display.scrollbars.addClass){h(i.display.wrapper,i.display.scrollbars.addClass)}}i.display.scrollbars=new bz[i.options.scrollbarStyle](function(hk){i.display.wrapper.insertBefore(hk,i.display.scrollbarFiller);ci(hk,"mousedown",function(){if(i.state.focused){setTimeout(function(){return i.display.input.focus()},0)}});hk.setAttribute("cm-not-content","true")},function(hl,hk){if(hk=="horizontal"){bX(i,hl)}else{C(i,hl)}},i);if(i.display.scrollbars.addClass){gn(i.display.wrapper,i.display.scrollbars.addClass)}}var eJ=0;function db(i){i.curOp={cm:i,viewChanged:false,startHeight:i.doc.height,forceUpdate:false,updateInput:0,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++eJ};fc(i.curOp)}function av(i){var hk=i.curOp;if(hk){cj(hk,function(hm){for(var hl=0;hl<hm.ops.length;hl++){hm.ops[hl].cm.curOp=null}de(hm)})}}function de(hp){var hl=hp.ops;for(var hk=0;hk<hl.length;hk++){cr(hl[hk])}for(var hq=0;hq<hl.length;hq++){ay(hl[hq])}for(var ho=0;ho<hl.length;ho++){cn(hl[ho])}for(var hn=0;hn<hl.length;hn++){ax(hl[hn])}for(var hm=0;hm<hl.length;hm++){fL(hl[hm])}}function cr(hl){var i=hl.cm,hk=i.display;O(i);if(hl.updateMaxLine){f(i)}hl.mustUpdate=hl.viewChanged||hl.forceUpdate||hl.scrollTop!=null||hl.scrollToPos&&(hl.scrollToPos.from.line<hk.viewFrom||hl.scrollToPos.to.line>=hk.viewTo)||hk.maxLineChanged&&i.options.lineWrapping;hl.update=hl.mustUpdate&&new aT(i,hl.mustUpdate&&{top:hl.scrollTop,ensure:hl.scrollToPos},hl.forceUpdate)}function ay(i){i.updatedDisplay=i.mustUpdate&&F(i.cm,i.update)}function cn(hl){var i=hl.cm,hk=i.display;if(hl.updatedDisplay){bl(i)}hl.barMeasure=d5(i);if(hk.maxLineChanged&&!i.options.lineWrapping){hl.adjustWidthTo=eR(i,hk.maxLine,hk.maxLine.text.length).left+3;i.display.sizerWidth=hl.adjustWidthTo;hl.barMeasure.scrollWidth=Math.max(hk.scroller.clientWidth,hk.sizer.offsetLeft+hl.adjustWidthTo+dl(i)+i.display.barWidth);hl.maxScrollLeft=Math.max(0,hk.sizer.offsetLeft+hl.adjustWidthTo-dS(i))}if(hl.updatedDisplay||hl.selectionChanged){hl.preparedSelection=hk.input.prepareSelection()}}function ax(hl){var i=hl.cm;if(hl.adjustWidthTo!=null){i.display.sizer.style.minWidth=hl.adjustWidthTo+"px";if(hl.maxScrollLeft<i.doc.scrollLeft){bX(i,Math.min(i.display.scroller.scrollLeft,hl.maxScrollLeft),true)}i.display.maxLineChanged=false}var hk=hl.focus&&hl.focus==ej();if(hl.preparedSelection){i.display.input.showSelection(hl.preparedSelection,hk)}if(hl.updatedDisplay||hl.startHeight!=i.doc.height){fJ(i,hl.barMeasure)}if(hl.updatedDisplay){d4(i,hl.barMeasure)}if(hl.selectionChanged){r(i)}if(i.state.focused&&hl.updateInput){i.display.input.reset(hl.typing)}if(hk){u(hl.cm)}}function fL(hn){var hs=hn.cm,hp=hs.display,hr=hs.doc;if(hn.updatedDisplay){cI(hs,hn.update)}if(hp.wheelStartX!=null&&(hn.scrollTop!=null||hn.scrollLeft!=null||hn.scrollToPos)){hp.wheelStartX=hp.wheelStartY=null}if(hn.scrollTop!=null){T(hs,hn.scrollTop,hn.forceScroll)}if(hn.scrollLeft!=null){bX(hs,hn.scrollLeft,true,true)}if(hn.scrollToPos){var hq=H(hs,gy(hr,hn.scrollToPos.from),gy(hr,hn.scrollToPos.to),hn.scrollToPos.margin);eF(hs,hq)}var ho=hn.maybeHiddenMarkers,hk=hn.maybeUnhiddenMarkers;if(ho){for(var hm=0;hm<ho.length;++hm){if(!ho[hm].lines.length){aN(ho[hm],"hide")}}}if(hk){for(var hl=0;hl<hk.length;++hl){if(hk[hl].lines.length){aN(hk[hl],"unhide")}}}if(hp.wrapper.offsetHeight){hr.scrollTop=hs.display.scroller.scrollTop}if(hn.changeObjs){aN(hs,"changes",hs,hn.changeObjs)}if(hn.update){hn.update.finish()}}function df(i,hk){if(i.curOp){return hk()}db(i);try{return hk()}finally{av(i)}}function du(i,hk){return function(){if(i.curOp){return hk.apply(i,arguments)}db(i);try{return hk.apply(i,arguments)}finally{av(i)}}}function dE(i){return function(){if(this.curOp){return i.apply(this,arguments)}db(this);try{return i.apply(this,arguments)}finally{av(this)}}}function c5(i){return function(){var hk=this.cm;if(!hk||hk.curOp){return i.apply(this,arguments)}db(hk);try{return i.apply(this,arguments)}finally{av(hk)}}}function eO(i,hk){if(i.doc.highlightFrontier<i.display.viewTo){i.state.highlight.set(hk,cW(dj,i))}}function dj(i){var hn=i.doc;if(hn.highlightFrontier>=i.display.viewTo){return}var hl=+new Date+i.options.workTime;var hm=fH(i,hn.highlightFrontier);var hk=[];hn.iter(hm.line,Math.min(hn.first+hn.size,i.display.viewTo+500),function(hp){if(hm.line>=i.display.viewFrom){var hs=hp.styles;var ho=hp.text.length>i.options.maxHighlightLength?cp(hn.mode,hm.state):null;var hu=gk(i,hp,hm,true);if(ho){hm.state=ho}hp.styles=hu.styles;var hr=hp.styleClasses,ht=hu.classes;if(ht){hp.styleClasses=ht}else{if(hr){hp.styleClasses=null}}var hv=!hs||hs.length!=hp.styles.length||hr!=ht&&(!hr||!ht||hr.bgClass!=ht.bgClass||hr.textClass!=ht.textClass);for(var hq=0;!hv&&hq<hs.length;++hq){hv=hs[hq]!=hp.styles[hq]}if(hv){hk.push(hm.line)}hp.stateAfter=hm.save();hm.nextLine()}else{if(hp.text.length<=i.options.maxHighlightLength){d3(i,hp.text,hm)}hp.stateAfter=hm.line%5==0?hm.save():null;hm.nextLine()}if(+new Date>hl){eO(i,i.options.workDelay);return true}});hn.highlightFrontier=hm.line;hn.modeFrontier=Math.max(hn.modeFrontier,hm.line);if(hk.length){df(i,function(){for(var ho=0;ho<hk.length;ho++){W(i,hk[ho],"text")}})}}var aT=function(hk,i,hl){var hm=hk.display;this.viewport=i;this.visible=cs(hm,hk.doc,i);this.editorIsHidden=!hm.wrapper.offsetWidth;this.wrapperHeight=hm.wrapper.clientHeight;this.wrapperWidth=hm.wrapper.clientWidth;this.oldDisplayWidth=dS(hk);this.force=hl;this.dims=fY(hk);this.events=[]};aT.prototype.signal=function(hk,i){if(f5(hk,i)){this.events.push(arguments)}};aT.prototype.finish=function(){var hl=this;for(var hk=0;hk<this.events.length;hk++){aN.apply(null,hl.events[hk])}};function O(i){var hk=i.display;if(!hk.scrollbarsClipped&&hk.scroller.offsetWidth){hk.nativeBarWidth=hk.scroller.offsetWidth-hk.scroller.clientWidth;hk.heightForcer.style.height=dl(i)+"px";hk.sizer.style.marginBottom=-hk.nativeBarWidth+"px";hk.sizer.style.borderRightWidth=dl(i)+"px";hk.scrollbarsClipped=true}}function bB(hk){if(hk.hasFocus()){return null}var hm=ej();if(!hm||!ha(hk.display.lineDiv,hm)){return null}var i={activeElt:hm};if(window.getSelection){var hl=window.getSelection();if(hl.anchorNode&&hl.extend&&ha(hk.display.lineDiv,hl.anchorNode)){i.anchorNode=hl.anchorNode;i.anchorOffset=hl.anchorOffset;i.focusNode=hl.focusNode;i.focusOffset=hl.focusOffset}}return i}function j(i){if(!i||!i.activeElt||i.activeElt==ej()){return}i.activeElt.focus();if(i.anchorNode&&ha(document.body,i.anchorNode)&&ha(document.body,i.focusNode)){var hk=window.getSelection(),hl=document.createRange();hl.setEnd(i.anchorNode,i.anchorOffset);hl.collapse(false);hk.removeAllRanges();hk.addRange(hl);hk.extend(i.focusNode,i.focusOffset)}}function F(hs,hm){var hn=hs.display,hr=hs.doc;if(hm.editorIsHidden){fa(hs);return false}if(!hm.force&&hm.visible.from>=hn.viewFrom&&hm.visible.to<=hn.viewTo&&(hn.updateLineNumbers==null||hn.updateLineNumbers>=hn.viewTo)&&hn.renderedView==hn.view&&dI(hs)==0){return false}if(eD(hs)){fa(hs);hm.dims=fY(hs)}var hl=hr.first+hr.size;var hp=Math.max(hm.visible.from-hs.options.viewportMargin,hr.first);var hq=Math.min(hl,hm.visible.to+hs.options.viewportMargin);if(hn.viewFrom<hp&&hp-hn.viewFrom<20){hp=Math.max(hr.first,hn.viewFrom)}if(hn.viewTo>hq&&hn.viewTo-hq<20){hq=Math.min(hl,hn.viewTo)}if(bj){hp=a7(hs.doc,hp);hq=eC(hs.doc,hq)}var hk=hp!=hn.viewFrom||hq!=hn.viewTo||hn.lastWrapHeight!=hm.wrapperHeight||hn.lastWrapWidth!=hm.wrapperWidth;dk(hs,hp,hq);hn.viewOffset=b6(f0(hs.doc,hn.viewFrom));hs.display.mover.style.top=hn.viewOffset+"px";var i=dI(hs);if(!hk&&i==0&&!hm.force&&hn.renderedView==hn.view&&(hn.updateLineNumbers==null||hn.updateLineNumbers>=hn.viewTo)){return false}var ho=bB(hs);if(i>4){hn.lineDiv.style.display="none"}cL(hs,hn.updateLineNumbers,hm.dims);if(i>4){hn.lineDiv.style.display=""}hn.renderedView=hn.view;j(ho);eA(hn.cursorDiv);eA(hn.selectionDiv);hn.gutters.style.height=hn.sizer.style.minHeight=0;if(hk){hn.lastWrapHeight=hm.wrapperHeight;hn.lastWrapWidth=hm.wrapperWidth;eO(hs,400)}hn.updateLineNumbers=null;return true}function cI(hk,hn){var i=hn.viewport;for(var hm=true;;hm=false){if(!hm||!hk.options.lineWrapping||hn.oldDisplayWidth==dS(hk)){if(i&&i.top!=null){i={top:Math.min(hk.doc.height+b1(hk.display)-dn(hk),i.top)}}hn.visible=cs(hk.display,hk.doc,i);if(hn.visible.from>=hk.display.viewFrom&&hn.visible.to<=hk.display.viewTo){break}}if(!F(hk,hn)){break}bl(hk);var hl=d5(hk);bV(hk);fJ(hk,hl);d4(hk,hl);hn.force=false}hn.signal(hk,"update",hk);if(hk.display.viewFrom!=hk.display.reportedViewFrom||hk.display.viewTo!=hk.display.reportedViewTo){hn.signal(hk,"viewportChange",hk,hk.display.viewFrom,hk.display.viewTo);hk.display.reportedViewFrom=hk.display.viewFrom;hk.display.reportedViewTo=hk.display.viewTo}}function eq(hk,i){var hm=new aT(hk,i);if(F(hk,hm)){bl(hk);cI(hk,hm);var hl=d5(hk);bV(hk);fJ(hk,hl);d4(hk,hl);hm.finish()}}function cL(hv,hm,hu){var hr=hv.display,hx=hv.options.lineNumbers;var hk=hr.lineDiv,hw=hk.firstChild;function hq(hy){var i=hy.nextSibling;if(dt&&ct&&hv.display.currentWheelTarget==hy){hy.style.display="none"}else{hy.parentNode.removeChild(hy)}return i}var hs=hr.view,hp=hr.viewFrom;for(var hn=0;hn<hs.length;hn++){var ho=hs[hn];if(ho.hidden){}else{if(!ho.node||ho.node.parentNode!=hk){var hl=aO(hv,ho,hp,hu);hk.insertBefore(hl,hw)}else{while(hw!=ho.node){hw=hq(hw)}var ht=hx&&hm!=null&&hm<=hp&&ho.lineNumber;if(ho.changes){if(dP(ho.changes,"gutter")>-1){ht=false}ai(hv,ho,hp,hu)}if(ht){eA(ho.lineNumber);ho.lineNumber.appendChild(document.createTextNode(e5(hv.options,hp)))}hw=ho.node.nextSibling}}hp+=ho.size}while(hw){hw=hq(hw)}}function dx(hk){var i=hk.gutters.offsetWidth;hk.sizer.style.marginLeft=i+"px"}function d4(i,hk){i.display.sizer.style.minHeight=hk.docHeight+"px";i.display.heightForcer.style.top=hk.docHeight+"px";i.display.gutters.style.height=(hk.docHeight+i.display.barHeight+dl(i))+"px"}function fk(hs){var hq=hs.display,hr=hq.view;if(!hq.alignWidgets&&(!hq.gutters.firstChild||!hs.options.fixedGutter)){return}var ho=ev(hq)-hq.scroller.scrollLeft+hs.doc.scrollLeft;var hk=hq.gutters.offsetWidth,hl=ho+"px";for(var hn=0;hn<hr.length;hn++){if(!hr[hn].hidden){if(hs.options.fixedGutter){if(hr[hn].gutter){hr[hn].gutter.style.left=hl}if(hr[hn].gutterBackground){hr[hn].gutterBackground.style.left=hl}}var hp=hr[hn].alignable;if(hp){for(var hm=0;hm<hp.length;hm++){hp[hm].style.left=hl}}}}if(hs.options.fixedGutter){hq.gutters.style.left=(ho+hk)+"px"}}function eD(i){if(!i.options.lineNumbers){return false}var ho=i.doc,hk=e5(i.options,ho.first+ho.size-1),hn=i.display;if(hk.length!=hn.lineNumChars){var hp=hn.measure.appendChild(g0("div",[g0("div",hk)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var hl=hp.firstChild.offsetWidth,hm=hp.offsetWidth-hl;hn.lineGutter.style.width="";hn.lineNumInnerWidth=Math.max(hl,hn.lineGutter.offsetWidth-hm)+1;hn.lineNumWidth=hn.lineNumInnerWidth+hm;hn.lineNumChars=hn.lineNumInnerWidth?hk.length:-1;hn.lineGutter.style.width=hn.lineNumWidth+"px";dx(i.display);return true}return false}function bd(hn,hl){var hk=[],hm=false;for(var hp=0;hp<hn.length;hp++){var ho=hn[hp],hq=null;if(typeof ho!="string"){hq=ho.style;ho=ho.className}if(ho=="CodeMirror-linenumbers"){if(!hl){continue}else{hm=true}}hk.push({className:ho,style:hq})}if(hl&&!hm){hk.push({className:"CodeMirror-linenumbers",style:null})}return hk}function m(hp){var hk=hp.gutters,hr=hp.gutterSpecs;eA(hk);hp.lineGutter=null;for(var hl=0;hl<hr.length;++hl){var ho=hr[hl];var hn=ho.className;var hm=ho.style;var hq=hk.appendChild(g0("div",null,"CodeMirror-gutter "+hn));if(hm){hq.style.cssText=hm}if(hn=="CodeMirror-linenumbers"){hp.lineGutter=hq;hq.style.width=(hp.lineNumWidth||1)+"px"}}hk.style.display=hr.length?"":"none";dx(hp)}function eM(i){m(i.display);ao(i);fk(i)}function fo(hk,hn,hl,hm){var ho=this;this.input=hl;ho.scrollbarFiller=g0("div",null,"CodeMirror-scrollbar-filler");ho.scrollbarFiller.setAttribute("cm-not-content","true");ho.gutterFiller=g0("div",null,"CodeMirror-gutter-filler");ho.gutterFiller.setAttribute("cm-not-content","true");ho.lineDiv=g6("div",null,"CodeMirror-code");ho.selectionDiv=g0("div",null,null,"position: relative; z-index: 1");ho.cursorDiv=g0("div",null,"CodeMirror-cursors");ho.measure=g0("div",null,"CodeMirror-measure");ho.lineMeasure=g0("div",null,"CodeMirror-measure");ho.lineSpace=g6("div",[ho.measure,ho.lineMeasure,ho.selectionDiv,ho.cursorDiv,ho.lineDiv],null,"position: relative; outline: none");var i=g6("div",[ho.lineSpace],"CodeMirror-lines");ho.mover=g0("div",[i],null,"position: relative");ho.sizer=g0("div",[ho.mover],"CodeMirror-sizer");ho.sizerWidth=null;ho.heightForcer=g0("div",null,null,"position: absolute; height: "+ed+"px; width: 1px;");ho.gutters=g0("div",null,"CodeMirror-gutters");ho.lineGutter=null;ho.scroller=g0("div",[ho.sizer,ho.heightForcer,ho.gutters],"CodeMirror-scroll");ho.scroller.setAttribute("tabIndex","-1");ho.wrapper=g0("div",[ho.scrollbarFiller,ho.gutterFiller,ho.scroller],"CodeMirror");if(ef&&n<8){ho.gutters.style.zIndex=-1;ho.scroller.style.paddingRight=0}if(!dt&&!(cP&&eQ)){ho.scroller.draggable=true}if(hk){if(hk.appendChild){hk.appendChild(ho.wrapper)}else{hk(ho.wrapper)}}ho.viewFrom=ho.viewTo=hn.first;ho.reportedViewFrom=ho.reportedViewTo=hn.first;ho.view=[];ho.renderedView=null;ho.externalMeasured=null;ho.viewOffset=0;ho.lastWrapHeight=ho.lastWrapWidth=0;ho.updateLineNumbers=null;ho.nativeBarWidth=ho.barHeight=ho.barWidth=0;ho.scrollbarsClipped=false;ho.lineNumWidth=ho.lineNumInnerWidth=ho.lineNumChars=null;ho.alignWidgets=false;ho.cachedCharWidth=ho.cachedTextHeight=ho.cachedPaddingH=null;ho.maxLine=null;ho.maxLineLength=0;ho.maxLineChanged=false;ho.wheelDX=ho.wheelDY=ho.wheelStartX=ho.wheelStartY=null;ho.shift=false;ho.selForContextMenu=null;ho.activeTouch=null;ho.gutterSpecs=bd(hm.gutters,hm.lineNumbers);m(ho);hl.init(ho)}var f7=0,cE=null;if(ef){cE=-0.53}else{if(cP){cE=15}else{if(dJ){cE=-0.7}else{if(aM){cE=-1/3}}}}function di(hl){var hk=hl.wheelDeltaX,i=hl.wheelDeltaY;if(hk==null&&hl.detail&&hl.axis==hl.HORIZONTAL_AXIS){hk=hl.detail}if(i==null&&hl.detail&&hl.axis==hl.VERTICAL_AXIS){i=hl.detail}else{if(i==null){i=hl.wheelDelta}}return{x:hk,y:i}}function aI(i){var hk=di(i);hk.x*=cE;hk.y*=cE;return hk}function c(hu,ho){var hw=di(ho),hy=hw.x,hx=hw.y;var hq=hu.display,ht=hq.scroller;var hn=ht.scrollWidth>ht.clientWidth;var hm=ht.scrollHeight>ht.clientHeight;if(!(hy&&hn||hx&&hm)){return}if(hx&&ct&&dt){outer:for(var hv=ho.target,hs=hq.view;hv!=ht;hv=hv.parentNode){for(var hl=0;hl<hs.length;hl++){if(hs[hl].node==hv){hu.display.currentWheelTarget=hv;break outer}}}}if(hy&&!cP&&!eB&&cE!=null){if(hx&&hm){C(hu,Math.max(0,ht.scrollTop+hx*cE))}bX(hu,Math.max(0,ht.scrollLeft+hy*cE));if(!hx||(hx&&hm)){c7(ho)}hq.wheelStartX=null;return}if(hx&&cE!=null){var hk=hx*cE;var hr=hu.doc.scrollTop,hp=hr+hq.wrapper.clientHeight;if(hk<0){hr=Math.max(0,hr+hk-50)}else{hp=Math.min(hu.doc.height,hp+hk+50)}eq(hu,{top:hr,bottom:hp})}if(f7<20){if(hq.wheelStartX==null){hq.wheelStartX=ht.scrollLeft;hq.wheelStartY=ht.scrollTop;hq.wheelDX=hy;hq.wheelDY=hx;setTimeout(function(){if(hq.wheelStartX==null){return}var i=ht.scrollLeft-hq.wheelStartX;var hA=ht.scrollTop-hq.wheelStartY;var hz=(hA&&hq.wheelDY&&hA/hq.wheelDY)||(i&&hq.wheelDX&&i/hq.wheelDX);hq.wheelStartX=hq.wheelStartY=null;if(!hz){return}cE=(cE*f7+hz)/(f7+1);++f7},200)}else{hq.wheelDX+=hy;hq.wheelDY+=hx}}}var gZ=function(i,hk){this.ranges=i;this.primIndex=hk};gZ.prototype.primary=function(){return this.ranges[this.primIndex]};gZ.prototype.equals=function(hk){var ho=this;if(hk==this){return true}if(hk.primIndex!=this.primIndex||hk.ranges.length!=this.ranges.length){return false}for(var hm=0;hm<this.ranges.length;hm++){var hl=ho.ranges[hm],hn=hk.ranges[hm];if(!ac(hl.anchor,hn.anchor)||!ac(hl.head,hn.head)){return false}}return true};gZ.prototype.deepCopy=function(){var hm=this;var hk=[];for(var hl=0;hl<this.ranges.length;hl++){hk[hl]=new eu(cG(hm.ranges[hl].anchor),cG(hm.ranges[hl].head))}return new gZ(hk,this.primIndex)};gZ.prototype.somethingSelected=function(){var hl=this;for(var hk=0;hk<this.ranges.length;hk++){if(!hl.ranges[hk].empty()){return true}}return false};gZ.prototype.contains=function(ho,hk){var hn=this;if(!hk){hk=ho}for(var hm=0;hm<this.ranges.length;hm++){var hl=hn.ranges[hm];if(cD(hk,hl.from())>=0&&cD(ho,hl.to())<=0){return hm}}return -1};var eu=function(i,hk){this.anchor=i;this.head=hk};eu.prototype.from=function(){return aA(this.anchor,this.head)};eu.prototype.to=function(){return bQ(this.anchor,this.head)};eu.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function cX(hu,hk,ht){var hp=hu&&hu.options.selectionsMayTouch;var hm=hk[ht];hk.sort(function(hw,i){return cD(hw.from(),i.from())});ht=dP(hk,hm);for(var ho=1;ho<hk.length;ho++){var hv=hk[ho],hl=hk[ho-1];var hs=cD(hl.to(),hv.from());if(hp&&!hv.empty()?hs>0:hs>=0){var hr=aA(hl.from(),hv.from()),hq=bQ(hl.to(),hv.to());var hn=hl.empty()?hv.from()==hv.head:hl.from()==hl.head;if(ho<=ht){--ht}hk.splice(--ho,2,new eu(hn?hq:hr,hn?hr:hq))}}return new gZ(hk,ht)}function fA(i,hk){return new gZ([new eu(i,hk||i)],0)}function dq(i){if(!i.text){return i.to}return ab(i.from.line+i.text.length-1,gt(i.text).length+(i.text.length==1?i.from.ch:0))}function cl(hm,hl){if(cD(hm,hl.from)<0){return hm}if(cD(hm,hl.to)<=0){return dq(hl)}var i=hm.line+hl.text.length-(hl.to.line-hl.from.line)-1,hk=hm.ch;if(hm.line==hl.to.line){hk+=dq(hl).ch-hl.to.ch}return ab(i,hk)}function f4(hn,ho){var hl=[];for(var hm=0;hm<hn.sel.ranges.length;hm++){var hk=hn.sel.ranges[hm];hl.push(new eu(cl(hk.anchor,ho),cl(hk.head,ho)))}return cX(hn.cm,hl,hn.sel.primIndex)}function bM(hl,hk,i){if(hl.line==hk.line){return ab(i.line,hl.ch-hk.ch+i.ch)}else{return ab(i.line+(hl.line-hk.line),hl.ch)}}function am(hu,hr,hl){var hm=[];var hk=ab(hu.first,0),hv=hk;for(var ho=0;ho<hr.length;ho++){var hq=hr[ho];var ht=bM(hq.from,hk,hv);var hs=bM(dq(hq),hk,hv);hk=hq.to;hv=hs;if(hl=="around"){var hp=hu.sel.ranges[ho],hn=cD(hp.head,hp.anchor)<0;hm[ho]=new eu(hn?hs:ht,hn?ht:hs)}else{hm[ho]=new eu(ht,ht)}}return new gZ(hm,hu.sel.primIndex)}function bJ(i){i.doc.mode=gm(i.options,i.doc.modeOption);eX(i)}function eX(i){i.doc.iter(function(hk){if(hk.stateAfter){hk.stateAfter=null}if(hk.styles){hk.styles=null}});i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first;eO(i,100);i.state.modeGen++;if(i.curOp){ao(i)}}function eo(i,hk){return hk.from.ch==0&&hk.to.ch==0&>(hk.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function gj(hA,ht,hn,hs){function hm(hB){return hn?hn[hB]:null}function hr(hB,hD,hC){eZ(hB,hD,hC,hs);al(hB,"change",hB,ht)}function hx(hE,hC){var hB=[];for(var hD=hE;hD<hC;++hD){hB.push(new g4(hv[hD],hm(hD),hs))}return hB}var hy=ht.from,hk=ht.to,hv=ht.text;var hu=f0(hA,hy.line),i=f0(hA,hk.line);var hl=gt(hv),hz=hm(hv.length-1),hw=hk.line-hy.line;if(ht.full){hA.insert(0,hx(0,hv.length));hA.remove(hv.length,hA.size-hv.length)}else{if(eo(hA,ht)){var hq=hx(0,hv.length-1);hr(i,i.text,hz);if(hw){hA.remove(hy.line,hw)}if(hq.length){hA.insert(hy.line,hq)}}else{if(hu==i){if(hv.length==1){hr(hu,hu.text.slice(0,hy.ch)+hl+hu.text.slice(hk.ch),hz)}else{var hp=hx(1,hv.length-1);hp.push(new g4(hl+hu.text.slice(hk.ch),hz,hs));hr(hu,hu.text.slice(0,hy.ch)+hv[0],hm(0));hA.insert(hy.line+1,hp)}}else{if(hv.length==1){hr(hu,hu.text.slice(0,hy.ch)+hv[0]+i.text.slice(hk.ch),hm(0));hA.remove(hy.line+1,hw)}else{hr(hu,hu.text.slice(0,hy.ch)+hv[0],hm(0));hr(i,hl+i.text.slice(hk.ch),hz);var ho=hx(1,hv.length-1);if(hw>1){hA.remove(hy.line+1,hw-1)}hA.insert(hy.line+1,ho)}}}}al(hA,"change",hA,ht)}function eG(hm,hl,hk){function i(hs,hq,ho){if(hs.linked){for(var hp=0;hp<hs.linked.length;++hp){var hn=hs.linked[hp];if(hn.doc==hq){continue}var hr=ho&&hn.sharedHist;if(hk&&!hr){continue}hl(hn.doc,hr);i(hn.doc,hs,hr)}}}i(hm,null,true)}function eL(i,hk){if(hk.cm){throw new Error("This document is already in use.")}i.doc=hk;hk.cm=i;ae(i);bJ(i);E(i);if(!i.options.lineWrapping){f(i)}i.options.mode=hk.modeOption;ao(i)}function E(i){(i.doc.direction=="rtl"?gn:h)(i.display.lineDiv,"CodeMirror-rtl")}function ex(i){df(i,function(){E(i);ao(i)})}function gM(i){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=i||1}function d2(i,hl){var hk={from:cG(hl.from),to:dq(hl),text:g2(i,hl.from,hl.to)};ck(i,hk,hl.from.line,hl.to.line+1);eG(i,function(hm){return ck(hm,hk,hl.from.line,hl.to.line+1)},true);return hk}function go(hk){while(hk.length){var i=gt(hk);if(i.ranges){hk.pop()}else{break}}}function fv(hk,i){if(i){go(hk.done);return gt(hk.done)}else{if(hk.done.length&&!gt(hk.done).ranges){return gt(hk.done)}else{if(hk.done.length>1&&!hk.done[hk.done.length-2].ranges){hk.done.pop();return gt(hk.done)}}}}function gB(hp,hn,i,hm){var hl=hp.history;hl.undone.length=0;var hk=+new Date,hq;var hr;if((hl.lastOp==hm||hl.lastOrigin==hn.origin&&hn.origin&&((hn.origin.charAt(0)=="+"&&hl.lastModTime>hk-(hp.cm?hp.cm.options.historyEventDelay:500))||hn.origin.charAt(0)=="*"))&&(hq=fv(hl,hl.lastOp==hm))){hr=gt(hq.changes);if(cD(hn.from,hn.to)==0&&cD(hn.from,hr.to)==0){hr.to=dq(hn)}else{hq.changes.push(d2(hp,hn))}}else{var ho=gt(hl.done);if(!ho||!ho.ranges){dh(hp.sel,hl.done)}hq={changes:[d2(hp,hn)],generation:hl.generation};hl.done.push(hq);while(hl.done.length>hl.undoDepth){hl.done.shift();if(!hl.done[0].ranges){hl.done.shift()}}}hl.done.push(i);hl.generation=++hl.maxGeneration;hl.lastModTime=hl.lastSelTime=hk;hl.lastOp=hl.lastSelOp=hm;hl.lastOrigin=hl.lastSelOrigin=hn.origin;if(!hr){aN(hp,"historyAdded")}}function bT(hn,i,hl,hm){var hk=i.charAt(0);return hk=="*"||hk=="+"&&hl.ranges.length==hm.ranges.length&&hl.somethingSelected()==hm.somethingSelected()&&new Date-hn.history.lastSelTime<=(hn.cm?hn.cm.options.historyEventDelay:500)}function hc(ho,hm,i,hl){var hn=ho.history,hk=hl&&hl.origin;if(i==hn.lastSelOp||(hk&&hn.lastSelOrigin==hk&&(hn.lastModTime==hn.lastSelTime&&hn.lastOrigin==hk||bT(ho,hk,gt(hn.done),hm)))){hn.done[hn.done.length-1]=hm}else{dh(hm,hn.done)}hn.lastSelTime=+new Date;hn.lastSelOrigin=hk;hn.lastSelOp=i;if(hl&&hl.clearRedo!==false){go(hn.undone)}}function dh(hk,i){var hl=gt(i);if(!(hl&&hl.ranges&&hl.equals(hk))){i.push(hk)}}function ck(hk,ho,hn,hm){var i=ho["spans_"+hk.id],hl=0;hk.iter(Math.max(hk.first,hn),Math.min(hk.first+hk.size,hm),function(hp){if(hp.markedSpans){(i||(i=ho["spans_"+hk.id]={}))[hl]=hp.markedSpans}++hl})}function bx(hm){if(!hm){return null}var hk;for(var hl=0;hl<hm.length;++hl){if(hm[hl].marker.explicitlyCleared){if(!hk){hk=hm.slice(0,hl)}}else{if(hk){hk.push(hm[hl])}}}return !hk?hm:hk.length?hk:null}function cq(hn,ho){var hm=ho["spans_"+hn.id];if(!hm){return null}var hk=[];for(var hl=0;hl<ho.text.length;++hl){hk.push(bx(hm[hl]))}return hk}function eI(hs,hq){var hk=cq(hs,hq);var ht=eV(hs,hq);if(!hk){return ht}if(!ht){return hk}for(var hn=0;hn<hk.length;++hn){var ho=hk[hn],hp=ht[hn];if(ho&&hp){spans:for(var hm=0;hm<hp.length;++hm){var hr=hp[hm];for(var hl=0;hl<ho.length;++hl){if(ho[hl].marker==hr.marker){continue spans}}ho.push(hr)}}else{if(hp){hk[hn]=hp}}}return hk}function b9(hv,hn,hu){var hl=[];for(var hq=0;hq<hv.length;++hq){var hm=hv[hq];if(hm.ranges){hl.push(hu?gZ.prototype.deepCopy.call(hm):hm);continue}var hs=hm.changes,ht=[];hl.push({changes:ht});for(var hp=0;hp<hs.length;++hp){var hr=hs[hp],ho=(void 0);ht.push({from:hr.from,to:hr.to,text:hr.text});if(hn){for(var hk in hr){if(ho=hk.match(/^spans_(\d+)$/)){if(dP(hn,Number(ho[1]))>-1){gt(ht)[hk]=hr[hk];delete hr[hk]}}}}}}return hl}function gf(hk,hn,i,ho){if(ho){var hm=hk.anchor;if(i){var hl=cD(hn,hm)<0;if(hl!=(cD(i,hm)<0)){hm=hn;hn=i}else{if(hl!=(cD(hn,i)<0)){hn=i}}}return new eu(hm,hn)}else{return new eu(i||hn,hn)}}function gS(hm,hl,i,hk,hn){if(hn==null){hn=hm.cm&&(hm.cm.display.shift||hm.extend)}cf(hm,new gZ([gf(hm.sel.primary(),hl,i,hn)],0),hk)}function aE(hp,ho,hm){var hl=[];var hq=hp.cm&&(hp.cm.display.shift||hp.extend);for(var hn=0;hn<hp.sel.ranges.length;hn++){hl[hn]=gf(hp.sel.ranges[hn],ho[hn],null,hq)}var hk=cX(hp.cm,hl,hp.sel.primIndex);cf(hp,hk,hm)}function e(ho,hn,hl,hm){var hk=ho.sel.ranges.slice(0);hk[hn]=hl;cf(ho,cX(ho.cm,hk,ho.sel.primIndex),hm)}function K(hm,hk,hl,i){cf(hm,fA(hk,hl),i)}function b(hm,hk,i){var hl={ranges:hk.ranges,update:function(hn){var hp=this;this.ranges=[];for(var ho=0;ho<hn.length;ho++){hp.ranges[ho]=new eu(gy(hm,hn[ho].anchor),gy(hm,hn[ho].head))}},origin:i&&i.origin};aN(hm,"beforeSelectionChange",hm,hl);if(hm.cm){aN(hm.cm,"beforeSelectionChange",hm.cm,hl)}if(hl.ranges!=hk.ranges){return cX(hm.cm,hl.ranges,hl.ranges.length-1)}else{return hk}}function fT(hn,hm,hk){var i=hn.history.done,hl=gt(i);if(hl&&hl.ranges){i[i.length-1]=hm;e1(hn,hm,hk)}else{cf(hn,hm,hk)}}function cf(hl,hk,i){e1(hl,hk,i);hc(hl,hl.sel,hl.cm?hl.cm.curOp.id:NaN,i)}function e1(hm,hl,hk){if(f5(hm,"beforeSelectionChange")||hm.cm&&f5(hm.cm,"beforeSelectionChange")){hl=b(hm,hl,hk)}var i=hk&&hk.bias||(cD(hl.primary().head,hm.sel.primary().head)<0?-1:1);dD(hm,q(hm,hl,i,true));if(!(hk&&hk.scroll===false)&&hm.cm){gs(hm.cm)}}function dD(hk,i){if(i.equals(hk.sel)){return}hk.sel=i;if(hk.cm){hk.cm.curOp.updateInput=1;hk.cm.curOp.selectionChanged=true;aa(hk.cm)}al(hk,"cursorActivity",hk)}function fb(i){dD(i,q(i,i.sel,null,false))}function q(ht,hk,hq,hr){var hn;for(var ho=0;ho<hk.ranges.length;ho++){var hp=hk.ranges[ho];var hl=hk.ranges.length==ht.sel.ranges.length&&ht.sel.ranges[ho];var hs=cg(ht,hp.anchor,hl&&hl.anchor,hq,hr);var hm=cg(ht,hp.head,hl&&hl.head,hq,hr);if(hn||hs!=hp.anchor||hm!=hp.head){if(!hn){hn=hk.ranges.slice(0,ho)}hn[ho]=new eu(hs,hm)}}return hn?cX(ht.cm,hn,hk.primIndex):hk}function fq(hu,hs,hn,hm,hq){var hv=f0(hu,hs.line);if(hv.markedSpans){for(var ho=0;ho<hv.markedSpans.length;++ho){var hk=hv.markedSpans[ho],hl=hk.marker;if((hk.from==null||(hl.inclusiveLeft?hk.from<=hs.ch:hk.from<hs.ch))&&(hk.to==null||(hl.inclusiveRight?hk.to>=hs.ch:hk.to>hs.ch))){if(hq){aN(hl,"beforeCursorEnter");if(hl.explicitlyCleared){if(!hv.markedSpans){break}else{--ho;continue}}}if(!hl.atomic){continue}if(hn){var hr=hl.find(hm<0?1:-1),ht=(void 0);if(hm<0?hl.inclusiveRight:hl.inclusiveLeft){hr=hg(hu,hr,-hm,hr&&hr.line==hs.line?hv:null)}if(hr&&hr.line==hs.line&&(ht=cD(hr,hn))&&(hm<0?ht<0:ht>0)){return fq(hu,hr,hs,hm,hq)}}var hp=hl.find(hm<0?-1:1);if(hm<0?hl.inclusiveLeft:hl.inclusiveRight){hp=hg(hu,hp,hm,hp.line==hs.line?hv:null)}return hp?fq(hu,hp,hs,hm,hq):null}}}return hs}function cg(ho,hp,hm,hk,i){var hl=hk||1;var hn=fq(ho,hp,hm,hl,i)||(!i&&fq(ho,hp,hm,hl,true))||fq(ho,hp,hm,-hl,i)||(!i&&fq(ho,hp,hm,-hl,true));if(!hn){ho.cantEdit=true;return ab(ho.first,0)}return hn}function hg(hl,hm,hk,i){if(hk<0&&hm.ch==0){if(hm.line>hl.first){return gy(hl,ab(hm.line-1))}else{return null}}else{if(hk>0&&hm.ch==(i||f0(hl,hm.line)).text.length){if(hm.line<hl.first+hl.size-1){return ab(hm.line+1,0)}else{return null}}else{return new ab(hm.line,hm.ch+hk)}}}function au(i){i.setSelection(ab(i.firstLine(),0),ab(i.lastLine()),ag)}function em(hk,hm,hl){var i={canceled:false,from:hm.from,to:hm.to,text:hm.text,origin:hm.origin,cancel:function(){return i.canceled=true}};if(hl){i.update=function(hq,hp,ho,hn){if(hq){i.from=gy(hk,hq)}if(hp){i.to=gy(hk,hp)}if(ho){i.text=ho}if(hn!==undefined){i.origin=hn}}}aN(hk,"beforeChange",hk,i);if(hk.cm){aN(hk.cm,"beforeChange",hk.cm,i)}if(i.canceled){if(hk.cm){hk.cm.curOp.updateInput=2}return null}return{from:i.from,to:i.to,text:i.text,origin:i.origin}}function bs(hn,ho,hm){if(hn.cm){if(!hn.cm.curOp){return du(hn.cm,bs)(hn,ho,hm)}if(hn.cm.state.suppressEdits){return}}if(f5(hn,"beforeChange")||hn.cm&&f5(hn.cm,"beforeChange")){ho=em(hn,ho,true);if(!ho){return}}var hl=he&&!hm&&da(hn,ho.from,ho.to);if(hl){for(var hk=hl.length-1;hk>=0;--hk){P(hn,{from:hl[hk].from,to:hl[hk].to,text:hk?[""]:ho.text,origin:ho.origin})}}else{P(hn,ho)}}function P(hl,hm){if(hm.text.length==1&&hm.text[0]==""&&cD(hm.from,hm.to)==0){return}var hk=f4(hl,hm);gB(hl,hm,hk,hl.cm?hl.cm.curOp.id:NaN);eN(hl,hm,hk,eV(hl,hm));var i=[];eG(hl,function(ho,hn){if(!hn&&dP(i,ho.history)==-1){d8(ho.history,hm);i.push(ho.history)}eN(ho,hm,null,eV(ho,hm))})}function cu(hx,hu,hy){var hv=hx.cm&&hx.cm.state.suppressEdits;if(hv&&!hy){return}var ht=hx.history,hl,hn=hx.sel;var hk=hu=="undo"?ht.done:ht.undone,hw=hu=="undo"?ht.undone:ht.done;var hq=0;for(;hq<hk.length;hq++){hl=hk[hq];if(hy?hl.ranges&&!hl.equals(hx.sel):!hl.ranges){break}}if(hq==hk.length){return}ht.lastOrigin=ht.lastSelOrigin=null;for(;;){hl=hk.pop();if(hl.ranges){dh(hl,hw);if(hy&&!hl.equals(hx.sel)){cf(hx,hl,{clearRedo:false});return}hn=hl}else{if(hv){hk.push(hl);return}else{break}}}var hs=[];dh(hn,hw);hw.push({changes:hs,generation:ht.generation});ht.generation=hl.generation||++ht.maxGeneration;var hm=f5(hx,"beforeChange")||hx.cm&&f5(hx.cm,"beforeChange");var hr=function(hz){var hC=hl.changes[hz];hC.origin=hu;if(hm&&!em(hx,hC,false)){hk.length=0;return{}}hs.push(d2(hx,hC));var hB=hz?f4(hx,hC):gt(hk);eN(hx,hC,hB,eI(hx,hC));if(!hz&&hx.cm){hx.cm.scrollIntoView({from:hC.from,to:dq(hC)})}var hA=[];eG(hx,function(hD,i){if(!i&&dP(hA,hD.history)==-1){d8(hD.history,hC);hA.push(hD.history)}eN(hD,hC,null,eI(hD,hC))})};for(var ho=hl.changes.length-1;ho>=0;--ho){var hp=hr(ho);if(hp){return hp.v}}}function f8(hk,hm){if(hm==0){return}hk.first+=hm;hk.sel=new gZ(ce(hk.sel.ranges,function(hn){return new eu(ab(hn.anchor.line+hm,hn.anchor.ch),ab(hn.head.line+hm,hn.head.ch))}),hk.sel.primIndex);if(hk.cm){ao(hk.cm,hk.first,hk.first-hm,hm);for(var hl=hk.cm.display,i=hl.viewFrom;i<hl.viewTo;i++){W(hk.cm,i,"gutter")}}}function eN(hn,ho,hm,hk){if(hn.cm&&!hn.cm.curOp){return du(hn.cm,eN)(hn,ho,hm,hk)}if(ho.to.line<hn.first){f8(hn,ho.text.length-1-(ho.to.line-ho.from.line));return}if(ho.from.line>hn.lastLine()){return}if(ho.from.line<hn.first){var i=ho.text.length-1-(hn.first-ho.from.line);f8(hn,i);ho={from:ab(hn.first,0),to:ab(ho.to.line+i,ho.to.ch),text:[gt(ho.text)],origin:ho.origin}}var hl=hn.lastLine();if(ho.to.line>hl){ho={from:ho.from,to:ab(hl,f0(hn,hl).text.length),text:[ho.text[0]],origin:ho.origin}}ho.removed=g2(hn,ho.from,ho.to);if(!hm){hm=f4(hn,ho)}if(hn.cm){aS(hn.cm,ho,hk)}else{gj(hn,ho,hk)}e1(hn,hm,ag)}function aS(hu,hq,ho){var ht=hu.doc,hp=hu.display,hr=hq.from,hs=hq.to;var i=false,hn=hr.line;if(!hu.options.lineWrapping){hn=b7(A(f0(ht,hr.line)));ht.iter(hn,hs.line+1,function(hw){if(hw==hp.maxLine){i=true;return true}})}if(ht.sel.contains(hq.from,hq.to)>-1){aa(hu)}gj(ht,hq,ho,bq(hu));if(!hu.options.lineWrapping){ht.iter(hn,hr.line+hq.text.length,function(hx){var hw=eY(hx);if(hw>hp.maxLineLength){hp.maxLine=hx;hp.maxLineLength=hw;hp.maxLineChanged=true;i=false}});if(i){hu.curOp.updateMaxLine=true}}hd(ht,hr.line);eO(hu,400);var hv=hq.text.length-(hs.line-hr.line)-1;if(hq.full){ao(hu)}else{if(hr.line==hs.line&&hq.text.length==1&&!eo(hu.doc,hq)){W(hu,hr.line,"text")}else{ao(hu,hr.line,hs.line+1,hv)}}var hl=f5(hu,"changes"),hm=f5(hu,"change");if(hm||hl){var hk={from:hr,to:hs,text:hq.text,removed:hq.removed,origin:hq.origin};if(hm){al(hu,"change",hu,hk)}if(hl){(hu.curOp.changeObjs||(hu.curOp.changeObjs=[])).push(hk)}}hu.display.selForContextMenu=null}function bc(hm,hl,ho,hn,hk){var i;if(!hn){hn=ho}if(cD(hn,ho)<0){(i=[hn,ho],ho=i[0],hn=i[1])}if(typeof hl=="string"){hl=hm.splitLines(hl)}bs(hm,{from:ho,to:hn,text:hl,origin:hk})}function N(hm,hl,hk,i){if(hk<hm.line){hm.line+=i}else{if(hl<hm.line){hm.line=hl;hm.ch=0}}}function f2(ho,hq,hr,hs){for(var hn=0;hn<ho.length;++hn){var hk=ho[hn],hp=true;if(hk.ranges){if(!hk.copied){hk=ho[hn]=hk.deepCopy();hk.copied=true}for(var hm=0;hm<hk.ranges.length;hm++){N(hk.ranges[hm].anchor,hq,hr,hs);N(hk.ranges[hm].head,hq,hr,hs)}continue}for(var hl=0;hl<hk.changes.length;++hl){var ht=hk.changes[hl];if(hr<ht.from.line){ht.from=ab(ht.from.line+hs,ht.from.ch);ht.to=ab(ht.to.line+hs,ht.to.ch)}else{if(hq<=ht.to.line){hp=false;break}}}if(!hp){ho.splice(0,hn+1);hn=0}}}function d8(hk,hn){var hm=hn.from.line,hl=hn.to.line,i=hn.text.length-(hl-hm)-1;f2(hk.done,hm,hl,i);f2(hk.undone,hm,hl,i)}function fe(hm,hl,i,ho){var hn=hl,hk=hl;if(typeof hl=="number"){hk=f0(hm,dy(hm,hl))}else{hn=b7(hl)}if(hn==null){return null}if(ho(hk,hn)&&hm.cm){W(hm.cm,hn,i)}return hk}function fK(hl){var hn=this;this.lines=hl;this.parent=null;var hk=0;for(var hm=0;hm<hl.length;++hm){hl[hm].parent=hn;hk+=hl[hm].height}this.height=hk}fK.prototype={chunkSize:function(){return this.lines.length},removeInner:function(hk,hp){var ho=this;for(var hm=hk,hn=hk+hp;hm<hn;++hm){var hl=ho.lines[hm];ho.height-=hl.height;bU(hl);al(hl,"delete")}this.lines.splice(hk,hp)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(hl,hm,hk){var ho=this;this.height+=hk;this.lines=this.lines.slice(0,hl).concat(hm).concat(this.lines.slice(hl));for(var hn=0;hn<hm.length;++hn){hm[hn].parent=ho}},iterN:function(i,hn,hm){var hl=this;for(var hk=i+hn;i<hk;++i){if(hm(hl.lines[i])){return true}}}};function gi(hn){var hp=this;this.children=hn;var hm=0,hk=0;for(var hl=0;hl<hn.length;++hl){var ho=hn[hl];hm+=ho.chunkSize();hk+=ho.height;ho.parent=hp}this.size=hm;this.height=hk;this.parent=null}gi.prototype={chunkSize:function(){return this.size},removeInner:function(hm,hl){var ho=this;this.size-=hl;for(var hn=0;hn<this.children.length;++hn){var hk=ho.children[hn],hq=hk.chunkSize();if(hm<hq){var hp=Math.min(hl,hq-hm),hr=hk.height;hk.removeInner(hm,hp);ho.height-=hr-hk.height;if(hq==hp){ho.children.splice(hn--,1);hk.parent=null}if((hl-=hp)==0){break}hm=0}else{hm-=hq}}if(this.size-hl<25&&(this.children.length>1||!(this.children[0] instanceof fK))){var hs=[];this.collapse(hs);this.children=[new fK(hs)];this.children[0].parent=this}},collapse:function(hk){var hm=this;for(var hl=0;hl<this.children.length;++hl){hm.children[hl].collapse(hk)}},insertInner:function(hl,ht,hs){var ho=this;this.size+=ht.length;this.height+=hs;for(var hn=0;hn<this.children.length;++hn){var hk=ho.children[hn],hq=hk.chunkSize();if(hl<=hq){hk.insertInner(hl,ht,hs);if(hk.lines&&hk.lines.length>50){var hm=hk.lines.length%25+25;for(var hr=hm;hr<hk.lines.length;){var hp=new fK(hk.lines.slice(hr,hr+=25));hk.height-=hp.height;ho.children.splice(++hn,0,hp);hp.parent=ho}hk.lines=hk.lines.slice(0,hm);ho.maybeSpill()}break}hl-=hq}},maybeSpill:function(){if(this.children.length<=10){return}var hm=this;do{var hk=hm.children.splice(hm.children.length-5,5);var hl=new gi(hk);if(!hm.parent){var hn=new gi(hm.children);hn.parent=hm;hm.children=[hn,hl];hm=hn}else{hm.size-=hl.size;hm.height-=hl.height;var i=dP(hm.parent.children,hm);hm.parent.children.splice(i+1,0,hl)}hl.parent=hm.parent}while(hm.children.length>10);hm.parent.maybeSpill()},iterN:function(hk,hr,hq){var hp=this;for(var hl=0;hl<this.children.length;++hl){var ho=hp.children[hl],hn=ho.chunkSize();if(hk<hn){var hm=Math.min(hr,hn-hk);if(ho.iterN(hk,hm,hq)){return true}if((hr-=hm)==0){break}hk=0}else{hk-=hn}}}};var d6=function(hm,hl,i){var hn=this;if(i){for(var hk in i){if(i.hasOwnProperty(hk)){hn[hk]=i[hk]}}}this.doc=hm;this.node=hl};d6.prototype.clear=function(){var hq=this;var hl=this.doc.cm,hn=this.line.widgets,hm=this.line,hp=b7(hm);if(hp==null||!hn){return}for(var ho=0;ho<hn.length;++ho){if(hn[ho]==hq){hn.splice(ho--,1)}}if(!hn.length){hm.widgets=null}var hk=dr(this);g5(hm,Math.max(0,hm.height-hk));if(hl){df(hl,function(){ew(hl,hm,-hk);W(hl,hp,"widget")});al(hl,"lineWidgetCleared",hl,this,hp)}};d6.prototype.changed=function(){var hn=this;var hk=this.height,i=this.doc.cm,hl=this.line;this.height=null;var hm=dr(this)-hk;if(!hm){return}if(!gg(this.doc,hl)){g5(hl,hl.height+hm)}if(i){df(i,function(){i.curOp.forceUpdate=true;ew(i,hl,hm);al(i,"lineWidgetChanged",i,hn,b7(hl))})}};bS(d6);function ew(i,hk,hl){if(b6(hk)<((i.curOp&&i.curOp.scrollTop)||i.doc.scrollTop)){c9(i,hl)}}function bZ(ho,hn,hl,hk){var hm=new d6(ho,hl,hk);var i=ho.cm;if(i&&hm.noHScroll){i.display.alignWidgets=true}fe(ho,hn,"widget",function(hq){var hr=hq.widgets||(hq.widgets=[]);if(hm.insertAt==null){hr.push(hm)}else{hr.splice(Math.min(hr.length-1,Math.max(0,hm.insertAt)),0,hm)}hm.line=hq;if(i&&!gg(ho,hq)){var hp=b6(hq)<ho.scrollTop;g5(hq,hq.height+dr(hm));if(hp){c9(i,hm.height)}i.curOp.forceUpdate=true}return true});if(i){al(i,"lineWidgetAdded",i,hm,typeof hn=="number"?hn:b7(hn))}return hm}var bg=0;var V=function(hk,i){this.lines=[];this.type=i;this.doc=hk;this.id=++bg};V.prototype.clear=function(){var hp=this;if(this.explicitlyCleared){return}var ht=this.doc.cm,hm=ht&&!ht.curOp;if(hm){db(ht)}if(f5(this,"clear")){var hu=this.find();if(hu){al(this,"clear",hu.from,hu.to)}}var hn=null,hr=null;for(var ho=0;ho<this.lines.length;++ho){var hv=hp.lines[ho];var hs=fV(hv.markedSpans,hp);if(ht&&!hp.collapsed){W(ht,b7(hv),"text")}else{if(ht){if(hs.to!=null){hr=b7(hv)}if(hs.from!=null){hn=b7(hv)}}}hv.markedSpans=fp(hv.markedSpans,hs);if(hs.from==null&&hp.collapsed&&!gg(hp.doc,hv)&&ht){g5(hv,a9(ht.display))}}if(ht&&this.collapsed&&!ht.options.lineWrapping){for(var hl=0;hl<this.lines.length;++hl){var hk=A(hp.lines[hl]),hq=eY(hk);if(hq>ht.display.maxLineLength){ht.display.maxLine=hk;ht.display.maxLineLength=hq;ht.display.maxLineChanged=true}}}if(hn!=null&&ht&&this.collapsed){ao(ht,hn,hr+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(ht){fb(ht.doc)}}if(ht){al(ht,"markerCleared",ht,this,hn,hr)}if(hm){av(ht)}if(this.parent){this.parent.clear()}};V.prototype.find=function(hn,hl){var hr=this;if(hn==null&&this.type=="bookmark"){hn=1}var hq,hp;for(var hm=0;hm<this.lines.length;++hm){var hk=hr.lines[hm];var ho=fV(hk.markedSpans,hr);if(ho.from!=null){hq=ab(hl?hk:b7(hk),ho.from);if(hn==-1){return hq}}if(ho.to!=null){hp=ab(hl?hk:b7(hk),ho.to);if(hn==1){return hp}}}return hq&&{from:hq,to:hp}};V.prototype.changed=function(){var hm=this;var hl=this.find(-1,true),hk=this,i=this.doc.cm;if(!hl||!i){return}df(i,function(){var ho=hl.line,hp=b7(hl.line);var hn=fX(i,hp);if(hn){aD(hn);i.curOp.selectionChanged=i.curOp.forceUpdate=true}i.curOp.updateMaxLine=true;if(!gg(hk.doc,ho)&&hk.height!=null){var hr=hk.height;hk.height=null;var hq=dr(hk)-hr;if(hq){g5(ho,ho.height+hq)}}al(i,"markerChanged",i,hm)})};V.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var hk=this.doc.cm.curOp;if(!hk.maybeHiddenMarkers||dP(hk.maybeHiddenMarkers,this)==-1){(hk.maybeUnhiddenMarkers||(hk.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(i)};V.prototype.detachLine=function(i){this.lines.splice(dP(this.lines,i),1);if(!this.lines.length&&this.doc.cm){var hk=this.doc.cm.curOp;(hk.maybeHiddenMarkers||(hk.maybeHiddenMarkers=[])).push(this)}};bS(V);function fl(hs,hq,hr,hu,ho){if(hu&&hu.shared){return S(hs,hq,hr,hu,ho)}if(hs.cm&&!hs.cm.curOp){return du(hs.cm,fl)(hs,hq,hr,hu,ho)}var hn=new V(hs,ho),ht=cD(hq,hr);if(hu){aY(hu,hn,false)}if(ht>0||ht==0&&hn.clearWhenEmpty!==false){return hn}if(hn.replacedWith){hn.collapsed=true;hn.widgetNode=g6("span",[hn.replacedWith],"CodeMirror-widget");if(!hu.handleMouseEvents){hn.widgetNode.setAttribute("cm-ignore-events","true")}if(hu.insertLeft){hn.widgetNode.insertLeft=true}}if(hn.collapsed){if(B(hs,hq.line,hq,hr,hn)||hq.line!=hr.line&&B(hs,hr.line,hq,hr,hn)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}bP()}if(hn.addToHistory){gB(hs,{from:hq,to:hr,origin:"markText"},hs.sel,NaN)}var hl=hq.line,hp=hs.cm,hk;hs.iter(hl,hr.line+1,function(i){if(hp&&hn.collapsed&&!hp.options.lineWrapping&&A(i)==hp.display.maxLine){hk=true}if(hn.collapsed&&hl!=hq.line){g5(i,0)}cB(i,new eT(hn,hl==hq.line?hq.ch:null,hl==hr.line?hr.ch:null));++hl});if(hn.collapsed){hs.iter(hq.line,hr.line+1,function(i){if(gg(hs,i)){g5(i,0)}})}if(hn.clearOnEnter){ci(hn,"beforeCursorEnter",function(){return hn.clear()})}if(hn.readOnly){gl();if(hs.history.done.length||hs.history.undone.length){hs.clearHistory()}}if(hn.collapsed){hn.id=++bg;hn.atomic=true}if(hp){if(hk){hp.curOp.updateMaxLine=true}if(hn.collapsed){ao(hp,hq.line,hr.line+1)}else{if(hn.className||hn.startStyle||hn.endStyle||hn.css||hn.attributes||hn.title){for(var hm=hq.line;hm<=hr.line;hm++){W(hp,hm,"text")}}}if(hn.atomic){fb(hp.doc)}al(hp,"markerAdded",hp,hn)}return hn}var z=function(hm,hl){var hn=this;this.markers=hm;this.primary=hl;for(var hk=0;hk<hm.length;++hk){hm[hk].parent=hn}};z.prototype.clear=function(){var hl=this;if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var hk=0;hk<this.markers.length;++hk){hl.markers[hk].clear()}al(this,"clear")};z.prototype.find=function(hk,i){return this.primary.find(hk,i)};bS(z);function S(hn,hq,hp,i,hl){i=aY(i);i.shared=false;var ho=[fl(hn,hq,hp,i,hl)],hk=ho[0];var hm=i.widgetNode;eG(hn,function(hs){if(hm){i.widgetNode=hm.cloneNode(true)}ho.push(fl(hs,gy(hs,hq),gy(hs,hp),i,hl));for(var hr=0;hr<hs.linked.length;++hr){if(hs.linked[hr].isParent){return}}hk=gt(ho)});return new z(ho,hk)}function fx(i){return i.findMarks(ab(i.first,0),i.clipPos(ab(i.lastLine())),function(hk){return hk.parent})}function d9(hp,hq){for(var hn=0;hn<hq.length;hn++){var hl=hq[hn],hr=hl.find();var hk=hp.clipPos(hr.from),ho=hp.clipPos(hr.to);if(cD(hk,ho)){var hm=fl(hp,hk,ho,hl.primary,hl.primary.type);hl.markers.push(hm);hm.parent=hl}}}function e0(hm){var hk=function(hp){var hn=hm[hp],hr=[hn.primary.doc];eG(hn.primary.doc,function(i){return hr.push(i)});for(var ho=0;ho<hn.markers.length;ho++){var hq=hn.markers[ho];if(dP(hr,hq.doc)==-1){hq.parent=null;hn.markers.splice(ho--,1)}}};for(var hl=0;hl<hm.length;hl++){hk(hl)}}var cS=0;var aC=function(hn,hm,i,hl,hk){if(!(this instanceof aC)){return new aC(hn,hm,i,hl,hk)}if(i==null){i=0}gi.call(this,[new fK([new g4("",null)])]);this.first=i;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=i;var ho=ab(i,0);this.sel=fA(ho);this.history=new gM(null);this.id=++cS;this.modeOption=hm;this.lineSep=hl;this.direction=(hk=="rtl")?"rtl":"ltr";this.extend=false;if(typeof hn=="string"){hn=this.splitLines(hn)}gj(this,{from:ho,to:ho,text:hn});cf(this,fA(ho),ag)};aC.prototype=cK(gi.prototype,{constructor:aC,iter:function(hl,hk,i){if(i){this.iterN(hl-this.first,hk-hl,i)}else{this.iterN(this.first,this.first+this.size,hl)}},insert:function(hl,hm){var hk=0;for(var hn=0;hn<hm.length;++hn){hk+=hm[hn].height}this.insertInner(hl-this.first,hm,hk)},remove:function(i,hk){this.removeInner(i-this.first,hk)},getValue:function(hk){var i=be(this,this.first,this.first+this.size);if(hk===false){return i}return i.join(hk||this.lineSeparator())},setValue:c5(function(hk){var hl=ab(this.first,0),i=this.first+this.size-1;bs(this,{from:hl,to:ab(i,f0(this,i).text.length),text:this.splitLines(hk),origin:"setValue",full:true},true);if(this.cm){fu(this.cm,0,0)}cf(this,fA(hl),ag)}),replaceRange:function(hk,hm,hl,i){hm=gy(this,hm);hl=hl?gy(this,hl):hm;bc(this,hk,hm,hl,i)},getRange:function(hm,hl,hk){var i=g2(this,gy(this,hm),gy(this,hl));if(hk===false){return i}return i.join(hk||this.lineSeparator())},getLine:function(hk){var i=this.getLineHandle(hk);return i&&i.text},getLineHandle:function(i){if(cv(this,i)){return f0(this,i)}},getLineNumber:function(i){return b7(i)},getLineHandleVisualStart:function(i){if(typeof i=="number"){i=f0(this,i)}return A(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return gy(this,i)},getCursor:function(hl){var i=this.sel.primary(),hk;if(hl==null||hl=="head"){hk=i.head}else{if(hl=="anchor"){hk=i.anchor}else{if(hl=="end"||hl=="to"||hl===false){hk=i.to()}else{hk=i.from()}}}return hk},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:c5(function(i,hl,hk){K(this,gy(this,typeof i=="number"?ab(i,hl||0):i),null,hk)}),setSelection:c5(function(hk,hl,i){K(this,gy(this,hk),gy(this,hl||hk),i)}),extendSelection:c5(function(hl,i,hk){gS(this,gy(this,hl),i&&gy(this,i),hk)}),extendSelections:c5(function(hk,i){aE(this,ey(this,hk),i)}),extendSelectionsBy:c5(function(hl,i){var hk=ce(this.sel.ranges,hl);aE(this,ey(this,hk),i)}),setSelections:c5(function(hk,ho,hm){var hp=this;if(!hk.length){return}var hl=[];for(var hn=0;hn<hk.length;hn++){hl[hn]=new eu(gy(hp,hk[hn].anchor),gy(hp,hk[hn].head))}if(ho==null){ho=Math.min(hk.length-1,this.sel.primIndex)}cf(this,cX(this.cm,hl,ho),hm)}),addSelection:c5(function(hl,hm,hk){var i=this.sel.ranges.slice(0);i.push(new eu(gy(this,hl),gy(this,hm||hl)));cf(this,cX(this.cm,i,i.length-1),hk)}),getSelection:function(ho){var hp=this;var hl=this.sel.ranges,hk;for(var hm=0;hm<hl.length;hm++){var hn=g2(hp,hl[hm].from(),hl[hm].to());hk=hk?hk.concat(hn):hn}if(ho===false){return hk}else{return hk.join(ho||this.lineSeparator())}},getSelections:function(ho){var hp=this;var hn=[],hk=this.sel.ranges;for(var hl=0;hl<hk.length;hl++){var hm=g2(hp,hk[hl].from(),hk[hl].to());if(ho!==false){hm=hm.join(ho||hp.lineSeparator())}hn[hl]=hm}return hn},replaceSelection:function(hm,ho,hk){var hn=[];for(var hl=0;hl<this.sel.ranges.length;hl++){hn[hl]=hm}this.replaceSelections(hn,ho,hk||"+input")},replaceSelections:c5(function(hl,hq,hs){var hp=this;var hr=[],hn=this.sel;for(var ho=0;ho<hn.ranges.length;ho++){var ht=hn.ranges[ho];hr[ho]={from:ht.from(),to:ht.to(),text:hp.splitLines(hl[ho]),origin:hs}}var hk=hq&&hq!="end"&&am(this,hr,hq);for(var hm=hr.length-1;hm>=0;hm--){bs(hp,hr[hm])}if(hk){fT(this,hk)}else{if(this.cm){gs(this.cm)}}}),undo:c5(function(){cu(this,"undo")}),redo:c5(function(){cu(this,"redo")}),undoSelection:c5(function(){cu(this,"undo",true)}),redoSelection:c5(function(){cu(this,"redo",true)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){var hn=this.history,hk=0,hm=0;for(var hl=0;hl<hn.done.length;hl++){if(!hn.done[hl].ranges){++hk}}for(var ho=0;ho<hn.undone.length;ho++){if(!hn.undone[ho].ranges){++hm}}return{undo:hk,redo:hm}},clearHistory:function(){this.history=new gM(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(i){if(i){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:b9(this.history.done),undone:b9(this.history.undone)}},setHistory:function(hk){var i=this.history=new gM(this.history.maxGeneration);i.done=b9(hk.done.slice(0),null,true);i.undone=b9(hk.undone.slice(0),null,true)},setGutterMarker:c5(function(i,hk,hl){return fe(this,i,"gutter",function(hm){var hn=hm.gutterMarkers||(hm.gutterMarkers={});hn[hk]=hl;if(!hl&&fE(hn)){hm.gutterMarkers=null}return true})}),clearGutter:c5(function(i){var hk=this;this.iter(function(hl){if(hl.gutterMarkers&&hl.gutterMarkers[i]){fe(hk,hl,"gutter",function(){hl.gutterMarkers[i]=null;if(fE(hl.gutterMarkers)){hl.gutterMarkers=null}return true})}})}),lineInfo:function(i){var hk;if(typeof i=="number"){if(!cv(this,i)){return null}hk=i;i=f0(this,i);if(!i){return null}}else{hk=b7(i);if(hk==null){return null}}return{line:hk,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:c5(function(hl,hk,i){return fe(this,hl,hk=="gutter"?"gutter":"class",function(hm){var hn=hk=="text"?"textClass":hk=="background"?"bgClass":hk=="gutter"?"gutterClass":"wrapClass";if(!hm[hn]){hm[hn]=i}else{if(X(i).test(hm[hn])){return false}else{hm[hn]+=" "+i}}return true})}),removeLineClass:c5(function(hl,hk,i){return fe(this,hl,hk=="gutter"?"gutter":"class",function(hn){var hq=hk=="text"?"textClass":hk=="background"?"bgClass":hk=="gutter"?"gutterClass":"wrapClass";var hp=hn[hq];if(!hp){return false}else{if(i==null){hn[hq]=null}else{var ho=hp.match(X(i));if(!ho){return false}var hm=ho.index+ho[0].length;hn[hq]=hp.slice(0,ho.index)+(!ho.index||hm==hp.length?"":" ")+hp.slice(hm)||null}}return true})}),addLineWidget:c5(function(hl,hk,i){return bZ(this,hl,hk,i)}),removeLineWidget:function(i){i.clear()},markText:function(hl,hk,i){return fl(this,gy(this,hl),gy(this,hk),i,i&&i.type||"range")},setBookmark:function(hl,i){var hk={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:false,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};hl=gy(this,hl);return fl(this,hl,hl,hk,"bookmark")},findMarksAt:function(ho){ho=gy(this,ho);var hn=[],hl=f0(this,ho.line).markedSpans;if(hl){for(var hk=0;hk<hl.length;++hk){var hm=hl[hk];if((hm.from==null||hm.from<=ho.ch)&&(hm.to==null||hm.to>=ho.ch)){hn.push(hm.marker.parent||hm.marker)}}}return hn},findMarks:function(hn,hm,hk){hn=gy(this,hn);hm=gy(this,hm);var hl=[],i=hn.line;this.iter(hn.line,hm.line+1,function(ho){var hq=ho.markedSpans;if(hq){for(var hp=0;hp<hq.length;hp++){var hr=hq[hp];if(!(hr.to!=null&&i==hn.line&&hn.ch>=hr.to||hr.from==null&&i!=hn.line||hr.from!=null&&i==hm.line&&hr.from>=hm.ch)&&(!hk||hk(hr.marker))){hl.push(hr.marker.parent||hr.marker)}}}++i});return hl},getAllMarks:function(){var i=[];this.iter(function(hl){var hk=hl.markedSpans;if(hk){for(var hm=0;hm<hk.length;++hm){if(hk[hm].from!=null){i.push(hk[hm].marker)}}}});return i},posFromIndex:function(hm){var hk,i=this.first,hl=this.lineSeparator().length;this.iter(function(hn){var ho=hn.text.length+hl;if(ho>hm){hk=hm;return true}hm-=ho;++i});return gy(this,ab(i,hk))},indexFromPos:function(hl){hl=gy(this,hl);var i=hl.ch;if(hl.line<this.first||hl.ch<0){return 0}var hk=this.lineSeparator().length;this.iter(this.first,hl.line,function(hm){i+=hm.text.length+hk});return i},copy:function(i){var hk=new aC(be(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);hk.scrollTop=this.scrollTop;hk.scrollLeft=this.scrollLeft;hk.sel=this.sel;hk.extend=false;if(i){hk.history.undoDepth=this.history.undoDepth;hk.setHistory(this.getHistory())}return hk},linkedDoc:function(i){if(!i){i={}}var hm=this.first,hl=this.first+this.size;if(i.from!=null&&i.from>hm){hm=i.from}if(i.to!=null&&i.to<hl){hl=i.to}var hk=new aC(be(this,hm,hl),i.mode||this.modeOption,hm,this.lineSep,this.direction);if(i.sharedHist){hk.history=this.history}(this.linked||(this.linked=[])).push({doc:hk,sharedHist:i.sharedHist});hk.linked=[{doc:this,isParent:true,sharedHist:i.sharedHist}];d9(hk,fx(this));return hk},unlinkDoc:function(hl){var ho=this;if(hl instanceof L){hl=hl.doc}if(this.linked){for(var hm=0;hm<this.linked.length;++hm){var hn=ho.linked[hm];if(hn.doc!=hl){continue}ho.linked.splice(hm,1);hl.unlinkDoc(ho);e0(fx(ho));break}}if(hl.history==this.history){var hk=[hl.id];eG(hl,function(i){return hk.push(i.id)},true);hl.history=new gM(null);hl.history.done=b9(this.history.done,hk);hl.history.undone=b9(this.history.undone,hk)}},iterLinkedDocs:function(i){eG(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){if(this.lineSep){return i.split(this.lineSep)}return gJ(i)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:c5(function(i){if(i!="rtl"){i="ltr"}if(i==this.direction){return}this.direction=i;this.iter(function(hk){return hk.order=null});if(this.cm){ex(this.cm)}})});aC.prototype.eachLine=aC.prototype.iter;var an=0;function bw(hs){var hu=this;dH(hu);if(a2(hu,hs)||bn(hu.display,hs)){return}c7(hs);if(ef){an=+new Date}var ht=cO(hu,hs,true),hl=hs.dataTransfer.files;if(!ht||hu.isReadOnly()){return}if(hl&&hl.length&&window.FileReader&&window.File){var ho=hl.length,hv=Array(ho),hm=0;var hq=function(hy,hx){if(hu.options.allowDropFileTypes&&dP(hu.options.allowDropFileTypes,hy.type)==-1){return}var hw=new FileReader;hw.onload=du(hu,function(){var i=hw.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(i)){i=""}hv[hx]=i;if(++hm==ho){ht=gy(hu.doc,ht);var hz={from:ht,to:ht,text:hu.doc.splitLines(hv.join(hu.doc.lineSeparator())),origin:"paste"};bs(hu.doc,hz);fT(hu.doc,fA(ht,dq(hz)))}});hw.readAsText(hy)};for(var hr=0;hr<ho;++hr){hq(hl[hr],hr)}}else{if(hu.state.draggingText&&hu.doc.sel.contains(ht)>-1){hu.state.draggingText(hs);setTimeout(function(){return hu.display.input.focus()},20);return}try{var hk=hs.dataTransfer.getData("Text");if(hk){var hp;if(hu.state.draggingText&&!hu.state.draggingText.copy){hp=hu.listSelections()}e1(hu.doc,fA(ht,ht));if(hp){for(var hn=0;hn<hp.length;++hn){bc(hu.doc,"",hp[hn].anchor,hp[hn].head,"drag")}}hu.replaceSelection(hk,"around","paste");hu.display.input.focus()}}catch(hs){}}}function U(i,hl){if(ef&&(!i.state.draggingText||+new Date-an<100)){e3(hl);return}if(a2(i,hl)||bn(i.display,hl)){return}hl.dataTransfer.setData("Text",i.getSelection());hl.dataTransfer.effectAllowed="copyMove";if(hl.dataTransfer.setDragImage&&!aM){var hk=g0("img",null,null,"position: fixed; left: 0; top: 0;");hk.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(eB){hk.width=hk.height=1;i.display.wrapper.appendChild(hk);hk._top=hk.offsetTop}hl.dataTransfer.setDragImage(hk,0,0);if(eB){hk.parentNode.removeChild(hk)}}}function hh(i,hk){var hm=cO(i,hk);if(!hm){return}var hl=document.createDocumentFragment();D(i,hm,hl);if(!i.display.dragCursor){i.display.dragCursor=g0("div",null,"CodeMirror-cursors CodeMirror-dragcursors");i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)}cd(i.display.dragCursor,hl)}function dH(i){if(i.display.dragCursor){i.display.lineSpace.removeChild(i.display.dragCursor);i.display.dragCursor=null}}function aJ(ho){if(!document.getElementsByClassName){return}var hn=document.getElementsByClassName("CodeMirror"),hm=[];for(var hl=0;hl<hn.length;hl++){var hk=hn[hl].CodeMirror;if(hk){hm.push(hk)}}if(hm.length){hm[0].operation(function(){for(var hp=0;hp<hm.length;hp++){ho(hm[hp])}})}}var c4=false;function bv(){if(c4){return}gr();c4=true}function gr(){var i;ci(window,"resize",function(){if(i==null){i=setTimeout(function(){i=null;aJ(a4)},100)}});ci(window,"blur",function(){return aJ(a6)})}function a4(i){var hk=i.display;hk.cachedCharWidth=hk.cachedTextHeight=hk.cachedPaddingH=null;hk.scrollbarsClipped=false;i.setSize()}var f1={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(var gh=0;gh<10;gh++){f1[gh+48]=f1[gh+96]=String(gh)}for(var gL=65;gL<=90;gL++){f1[gL]=String.fromCharCode(gL)}for(var gK=1;gK<=12;gK++){f1[gK+111]=f1[gK+63235]="F"+gK}var fW={};fW.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};fW.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};fW.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};fW.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};fW["default"]=ct?fW.macDefault:fW.pcDefault;function d0(hl){var hr=hl.split(/-(?!$)/);hl=hr[hr.length-1];var hq,hp,hk,ho;for(var hn=0;hn<hr.length-1;hn++){var hm=hr[hn];if(/^(cmd|meta|m)$/i.test(hm)){ho=true}else{if(/^a(lt)?$/i.test(hm)){hq=true}else{if(/^(c|ctrl|control)$/i.test(hm)){hp=true}else{if(/^s(hift)?$/i.test(hm)){hk=true}else{throw new Error("Unrecognized modifier name: "+hm)}}}}}if(hq){hl="Alt-"+hl}if(hp){hl="Ctrl-"+hl}if(ho){hl="Cmd-"+hl}if(hk){hl="Shift-"+hl}return hl}function c8(hr){var hl={};for(var hq in hr){if(hr.hasOwnProperty(hq)){var hs=hr[hq];if(/^(name|fallthrough|(de|at)tach)$/.test(hq)){continue}if(hs=="..."){delete hr[hq];continue}var ht=ce(hq.split(" "),d0);for(var hp=0;hp<ht.length;hp++){var hn=(void 0),hm=(void 0);if(hp==ht.length-1){hm=ht.join(" ");hn=hs}else{hm=ht.slice(0,hp+1).join(" ");hn="..."}var ho=hl[hm];if(!ho){hl[hm]=hn}else{if(ho!=hn){throw new Error("Inconsistent bindings for "+hm)}}}delete hr[hq]}}for(var hk in hl){hr[hk]=hl[hk]}return hr}function k(hn,ho,hq,hm){ho=gR(ho);var hp=ho.call?ho.call(hn,hm):ho[hn];if(hp===false){return"nothing"}if(hp==="..."){return"multi"}if(hp!=null&&hq(hp)){return"handled"}if(ho.fallthrough){if(Object.prototype.toString.call(ho.fallthrough)!="[object Array]"){return k(hn,ho.fallthrough,hq,hm)}for(var hl=0;hl<ho.fallthrough.length;hl++){var hk=k(hn,ho.fallthrough[hl],hq,hm);if(hk){return hk}}}}function ff(hk){var i=typeof hk=="string"?hk:f1[hk.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function gU(i,hk,hm){var hl=i;if(hk.altKey&&hl!="Alt"){i="Alt-"+i}if((cb?hk.metaKey:hk.ctrlKey)&&hl!="Ctrl"){i="Ctrl-"+i}if((cb?hk.ctrlKey:hk.metaKey)&&hl!="Cmd"){i="Cmd-"+i}if(!hm&&hk.shiftKey&&hl!="Shift"){i="Shift-"+i}return i}function gb(hk,hl){if(eB&&hk.keyCode==34&&hk["char"]){return false}var i=f1[hk.keyCode];if(i==null||hk.altGraphKey){return false}if(hk.keyCode==3&&hk.code){i=hk.code}return gU(i,hk,hl)}function gR(i){return typeof i=="string"?fW[i]:i}function fI(hk,hq){var hl=hk.doc.sel.ranges,ho=[];for(var hn=0;hn<hl.length;hn++){var hm=hq(hl[hn]);while(ho.length&&cD(hm.from,gt(ho).to)<=0){var hp=ho.pop();if(cD(hp.from,hm.from)<0){hm.from=hp.from;break}}ho.push(hm)}df(hk,function(){for(var hr=ho.length-1;hr>=0;hr--){bc(hk.doc,"",ho[hr].from,ho[hr].to,"+delete")}gs(hk)})}function bG(i,hl,hk){var hm=eU(i.text,hl+hk,hk);return hm<0||hm>i.text.length?null:hm}function ap(i,hm,hk){var hl=bG(i,hm.ch,hk);return hl==null?null:new ab(hm.line,hl,hk<0?"after":"before")}function fd(hk,hs,hp,ho,hm){if(hk){var hn=a(hp,hs.doc.direction);if(hn){var hl=hm<0?gt(hn):hn[0];var hu=(hm<0)==(hl.level==1);var hr=hu?"after":"before";var i;if(hl.level>0||hs.doc.direction=="rtl"){var hq=bh(hs,hp);i=hm<0?hp.text.length-1:0;var ht=G(hs,hq,i).top;i=cN(function(hv){return G(hs,hq,hv).top==ht},(hm<0)==(hl.level==1)?hl.from:hl.to-1,i);if(hr=="before"){i=bG(hp,i,1)}}else{i=hm<0?hl.to:hl.from}return new ab(ho,i,hr)}}return new ab(ho,hm<0?hp.text.length:0,hm<0?"before":"after")}function w(hu,hz,hn,hq){var hw=a(hz,hu.doc.direction);if(!hw){return ap(hz,hn,hq)}if(hn.ch>=hz.text.length){hn.ch=hz.text.length;hn.sticky="before"}else{if(hn.ch<=0){hn.ch=0;hn.sticky="after"}}var hm=aR(hw,hn.ch,hn.sticky),ho=hw[hm];if(hu.doc.direction=="ltr"&&ho.level%2==0&&(hq>0?ho.to>hn.ch:ho.from<hn.ch)){return ap(hz,hn,hq)}var hx=function(hB,hA){return bG(hz,hB instanceof ab?hB.ch:hB,hA)};var hr;var hv=function(hA){if(!hu.options.lineWrapping){return{begin:0,end:hz.text.length}}hr=hr||bh(hu,hz);return bA(hu,hz,hr,hA)};var hp=hv(hn.sticky=="before"?hx(hn,-1):hn.ch);if(hu.doc.direction=="rtl"||ho.level==1){var hy=(ho.level==1)==(hq<0);var hk=hx(hn,hy?1:-1);if(hk!=null&&(!hy?hk>=ho.from&&hk>=hp.begin:hk<=ho.to&&hk<=hp.end)){var ht=hy?"before":"after";return new ab(hn.line,hk,ht)}}var hl=function(hA,hD,hG){var hC=function(hI,hH){return hH?new ab(hn.line,hx(hI,1),"before"):new ab(hn.line,hI,"after")};for(;hA>=0&&hA<hw.length;hA+=hD){var hB=hw[hA];var hE=(hD>0)==(hB.level!=1);var hF=hE?hG.begin:hx(hG.end,-1);if(hB.from<=hF&&hF<hB.to){return hC(hF,hE)}hF=hE?hB.from:hx(hB.to,-1);if(hG.begin<=hF&&hF<hG.end){return hC(hF,hE)}}};var hs=hl(hm+hq,hq,hp);if(hs){return hs}var i=hq>0?hp.end:hx(hp.begin,-1);if(i!=null&&!(hq>0&&i==hz.text.length)){hs=hl(hq>0?0:hw.length-1,hq,hv(i));if(hs){return hs}}return null}var fi={selectAll:au,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),ag)},killLine:function(i){return fI(i,function(hl){if(hl.empty()){var hk=f0(i.doc,hl.head.line).text.length;if(hl.head.ch==hk&&hl.head.line<i.lastLine()){return{from:hl.head,to:ab(hl.head.line+1,0)}}else{return{from:hl.head,to:ab(hl.head.line,hk)}}}else{return{from:hl.from(),to:hl.to()}}})},deleteLine:function(i){return fI(i,function(hk){return({from:ab(hk.from().line,0),to:gy(i.doc,ab(hk.to().line+1,0))})})},delLineLeft:function(i){return fI(i,function(hk){return({from:ab(hk.from().line,0),to:hk.from()})})},delWrappedLineLeft:function(i){return fI(i,function(hk){var hm=i.charCoords(hk.head,"div").top+5;var hl=i.coordsChar({left:0,top:hm},"div");return{from:hl,to:hk.from()}})},delWrappedLineRight:function(i){return fI(i,function(hk){var hm=i.charCoords(hk.head,"div").top+5;var hl=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:hm},"div");return{from:hk.from(),to:hl}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(ab(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(ab(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(hk){return bL(i,hk.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(hk){return ec(i,hk.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(hk){return el(i,hk.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(hk){var hl=i.cursorCoords(hk.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:hl},"div")},dp)},goLineLeft:function(i){return i.extendSelectionsBy(function(hk){var hl=i.cursorCoords(hk.head,"div").top+5;return i.coordsChar({left:0,top:hl},"div")},dp)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(hk){var hl=i.cursorCoords(hk.head,"div").top+5;var hm=i.coordsChar({left:0,top:hl},"div");if(hm.ch<i.getLine(hm.line).search(/\S/)){return ec(i,hk.head)}return hm},dp)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"char")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection("\t")},insertSoftTab:function(hk){var hm=[],hl=hk.listSelections(),hp=hk.options.tabSize;for(var ho=0;ho<hl.length;ho++){var hq=hl[ho].from();var hn=cc(hk.getLine(hq.line),hq.ch,hp);hm.push(cQ(hp-hn%hp))}hk.replaceSelections(hm)},defaultTab:function(i){if(i.somethingSelected()){i.indentSelection("add")}else{i.execCommand("insertTab")}},transposeChars:function(i){return df(i,function(){var hm=i.listSelections(),hl=[];for(var hn=0;hn<hm.length;hn++){if(!hm[hn].empty()){continue}var hp=hm[hn].head,hk=f0(i.doc,hp.line).text;if(hk){if(hp.ch==hk.length){hp=new ab(hp.line,hp.ch-1)}if(hp.ch>0){hp=new ab(hp.line,hp.ch+1);i.replaceRange(hk.charAt(hp.ch-1)+hk.charAt(hp.ch-2),ab(hp.line,hp.ch-2),hp,"+transpose")}else{if(hp.line>i.doc.first){var ho=f0(i.doc,hp.line-1).text;if(ho){hp=new ab(hp.line,1);i.replaceRange(hk.charAt(0)+i.doc.lineSeparator()+ho.charAt(ho.length-1),ab(hp.line-1,ho.length-1),hp,"+transpose")}}}}hl.push(new eu(hp,hp))}i.setSelections(hl)})},newlineAndIndent:function(i){return df(i,function(){var hk=i.listSelections();for(var hl=hk.length-1;hl>=0;hl--){i.replaceRange(i.doc.lineSeparator(),hk[hl].anchor,hk[hl].head,"+input")}hk=i.listSelections();for(var hm=0;hm<hk.length;hm++){i.indentLine(hk[hm].from().line,null,true)}gs(i)})},openLine:function(i){return i.replaceSelection("\n","start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function bL(i,hl){var hk=f0(i.doc,hl);var hm=A(hk);if(hm!=hk){hl=b7(hm)}return fd(true,i,hm,hl,1)}function el(i,hl){var hk=f0(i.doc,hl);var hm=cJ(hk);if(hm!=hk){hl=b7(hm)}return fd(true,i,hk,hl,-1)}function ec(hk,hp){var ho=bL(hk,hp.line);var hl=f0(hk.doc,ho.line);var i=a(hl,hk.doc.direction);if(!i||i[0].level==0){var hn=Math.max(0,hl.text.search(/\S/));var hm=hp.line==ho.line&&hp.ch<=hn&&hp.ch;return ab(ho.line,hm?0:hn,ho.sticky)}return ho}function gI(hk,hn,i){if(typeof hn=="string"){hn=fi[hn];if(!hn){return false}}hk.display.input.ensurePolled();var hm=hk.display.shift,hl=false;try{if(hk.isReadOnly()){hk.state.suppressEdits=true}if(i){hk.display.shift=false}hl=hn(hk)!=cy}finally{hk.display.shift=hm;hk.state.suppressEdits=false}return hl}function eH(hl,hm,ho){for(var hn=0;hn<hl.state.keyMaps.length;hn++){var hk=k(hm,hl.state.keyMaps[hn],ho,hl);if(hk){return hk}}return(hl.options.extraKeys&&k(hm,hl.options.extraKeys,ho,hl))||k(hm,hl.options.keyMap,ho,hl)}var eh=new hj;function bp(i,hl,hn,hm){var hk=i.state.keySeq;if(hk){if(ff(hl)){return"handled"}if(/\'$/.test(hl)){i.state.keySeq=null}else{eh.set(50,function(){if(i.state.keySeq==hk){i.state.keySeq=null;i.display.input.reset()}})}if(cH(i,hk+" "+hl,hn,hm)){return true}}return cH(i,hl,hn,hm)}function cH(hk,hl,hn,hm){var i=eH(hk,hl,hm);if(i=="multi"){hk.state.keySeq=hl}if(i=="handled"){al(hk,"keyHandled",hk,hl,hn)}if(i=="handled"||i=="multi"){c7(hn);r(hk)}return !!i}function f3(i,hl){var hk=gb(hl,true);if(!hk){return false}if(hl.shiftKey&&!i.state.keySeq){return bp(i,"Shift-"+hk,hl,function(hm){return gI(i,hm,true)})||bp(i,hk,hl,function(hm){if(typeof hm=="string"?/^go[A-Z]/.test(hm):hm.motion){return gI(i,hm)}})}else{return bp(i,hk,hl,function(hm){return gI(i,hm)})}}function eS(i,hl,hk){return bp(i,"'"+hk+"'",hl,function(hm){return gI(i,hm,true)})}var dV=null;function s(hm){var i=this;i.curOp.focus=ej();if(a2(i,hm)){return}if(ef&&n<11&&hm.keyCode==27){hm.returnValue=false}var hk=hm.keyCode;i.display.shift=hk==16||hm.shiftKey;var hl=f3(i,hm);if(eB){dV=hl?hk:null;if(!hl&&hk==88&&!dG&&(ct?hm.metaKey:hm.ctrlKey)){i.replaceSelection("",null,"cut")}}if(hk==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)){aB(i)}}function aB(hk){var hl=hk.display.lineDiv;gn(hl,"CodeMirror-crosshair");function i(hm){if(hm.keyCode==18||!hm.altKey){h(hl,"CodeMirror-crosshair");eP(document,"keyup",i);eP(document,"mouseover",i)}}ci(document,"keyup",i);ci(document,"mouseover",i)}function bt(i){if(i.keyCode==16){this.doc.sel.shift=false}a2(this,i)}function cY(hn){var i=this;if(bn(i.display,hn)||a2(i,hn)||hn.ctrlKey&&!hn.altKey||ct&&hn.metaKey){return}var hm=hn.keyCode,hk=hn.charCode;if(eB&&hm==dV){dV=null;c7(hn);return}if((eB&&(!hn.which||hn.which<10))&&f3(i,hn)){return}var hl=String.fromCharCode(hk==null?hm:hk);if(hl=="\x08"){return}if(eS(i,hn,hl)){return}i.display.input.onKeyPress(hn)}var dz=400;var dT=function(hk,hl,i){this.time=hk;this.pos=hl;this.button=i};dT.prototype.compare=function(hk,hl,i){return this.time+dz>hk&&cD(hl,this.pos)==0&&i==this.button};var dU,dK;function J(hl,hk){var i=+new Date;if(dK&&dK.compare(i,hl,hk)){dU=dK=null;return"triple"}else{if(dU&&dU.compare(i,hl,hk)){dK=new dT(i,hl,hk);dU=null;return"double"}else{dU=new dT(i,hl,hk);dK=null;return"single"}}}function e7(hn){var i=this,hm=i.display;if(a2(i,hn)||hm.activeTouch&&hm.input.supportsTouch()){return}hm.input.ensurePolled();hm.shift=hn.shiftKey;if(bn(hm,hn)){if(!dt){hm.scroller.draggable=false;setTimeout(function(){return hm.scroller.draggable=true},100)}return}if(o(i,hn)){return}var ho=cO(i,hn),hk=gE(hn),hl=ho?J(ho,hk):"single";window.focus();if(hk==1&&i.state.selectingText){i.state.selectingText(hn)}if(ho&&dd(i,hk,ho,hl,hn)){return}if(hk==1){if(ho){aF(i,ho,hl,hn)}else{if(Q(hn)==hm.scroller){c7(hn)}}}else{if(hk==2){if(ho){gS(i.doc,ho)}setTimeout(function(){return hm.input.focus()},20)}else{if(hk==3){if(g9){i.display.input.onContextMenu(hn)}else{ar(i)}}}}}function dd(i,hl,ho,hn,hm){var hk="Click";if(hn=="double"){hk="Double"+hk}else{if(hn=="triple"){hk="Triple"+hk}}hk=(hl==1?"Left":hl==2?"Middle":"Right")+hk;return bp(i,gU(hk,hm),hm,function(hq){if(typeof hq=="string"){hq=fi[hq]}if(!hq){return false}var hp=false;try{if(i.isReadOnly()){i.state.suppressEdits=true}hp=hq(i,ho)!=cy}finally{i.state.suppressEdits=false}return hp})}function b2(i,ho,hm){var hk=i.getOption("configureMouse");var hn=hk?hk(i,ho,hm):{};if(hn.unit==null){var hl=gx?hm.shiftKey&&hm.metaKey:hm.altKey;hn.unit=hl?"rectangle":ho=="single"?"char":ho=="double"?"word":"line"}if(hn.extend==null||i.doc.extend){hn.extend=i.doc.extend||hm.shiftKey}if(hn.addNew==null){hn.addNew=ct?hm.metaKey:hm.ctrlKey}if(hn.moveOnDrag==null){hn.moveOnDrag=!(ct?hm.altKey:hm.ctrlKey)}return hn}function aF(i,hp,ho,hm){if(ef){setTimeout(cW(u,i),0)}else{i.curOp.focus=ej()}var hl=b2(i,ho,hm);var hn=i.doc.sel,hk;if(i.options.dragDrop&&ft&&!i.isReadOnly()&&ho=="single"&&(hk=hn.contains(hp))>-1&&(cD((hk=hn.ranges[hk]).from(),hp)<0||hp.xRel>0)&&(cD(hk.to(),hp)>0||hp.xRel<0)){bf(i,hm,hp,hl)}else{p(i,hm,hp,hl)}}function bf(hq,i,hn,hk){var hm=hq.display,ho=false;var hl=du(hq,function(hs){if(dt){hm.scroller.draggable=false}hq.state.draggingText=false;eP(hm.wrapper.ownerDocument,"mouseup",hl);eP(hm.wrapper.ownerDocument,"mousemove",hr);eP(hm.scroller,"dragstart",hp);eP(hm.scroller,"drop",hl);if(!ho){c7(hs);if(!hk.addNew){gS(hq.doc,hn,null,null,hk.extend)}if(dt||ef&&n==9){setTimeout(function(){hm.wrapper.ownerDocument.body.focus();hm.input.focus()},20)}else{hm.input.focus()}}});var hr=function(hs){ho=ho||Math.abs(i.clientX-hs.clientX)+Math.abs(i.clientY-hs.clientY)>=10};var hp=function(){return ho=true};if(dt){hm.scroller.draggable=true}hq.state.draggingText=hl;hl.copy=!hk.moveOnDrag;if(hm.scroller.dragDrop){hm.scroller.dragDrop()}ci(hm.wrapper.ownerDocument,"mouseup",hl);ci(hm.wrapper.ownerDocument,"mousemove",hr);ci(hm.scroller,"dragstart",hp);ci(hm.scroller,"drop",hl);ar(hq);setTimeout(function(){return hm.input.focus()},20)}function ep(hk,hm,hl){if(hl=="char"){return new eu(hm,hm)}if(hl=="word"){return hk.findWordAt(hm)}if(hl=="line"){return new eu(ab(hm.line,0),gy(hk.doc,ab(hm.line+1,0)))}var i=hl(hk,hm);return new eu(i.from,i.to)}function p(hn,hy,hl,hr){var hx=hn.display,hB=hn.doc;c7(hy);var hk,hA,ho=hB.sel,i=ho.ranges;if(hr.addNew&&!hr.extend){hA=hB.sel.contains(hl);if(hA>-1){hk=i[hA]}else{hk=new eu(hl,hl)}}else{hk=hB.sel.primary();hA=hB.sel.primIndex}if(hr.unit=="rectangle"){if(!hr.addNew){hk=new eu(hl,hl)}hl=cO(hn,hy,true,true);hA=-1}else{var hm=ep(hn,hl,hr.unit);if(hr.extend){hk=gf(hk,hm.anchor,hm.head,hr.extend)}else{hk=hm}}if(!hr.addNew){hA=0;cf(hB,new gZ([hk],0),R);ho=hB.sel}else{if(hA==-1){hA=i.length;cf(hB,cX(hn,i.concat([hk]),hA),{scroll:false,origin:"*mouse"})}else{if(i.length>1&&i[hA].empty()&&hr.unit=="char"&&!hr.extend){cf(hB,cX(hn,i.slice(0,hA).concat(i.slice(hA+1)),0),{scroll:false,origin:"*mouse"});ho=hB.sel}else{e(hB,hA,hk,R)}}}var hw=hl;function hv(hM){if(cD(hw,hM)==0){return}hw=hM;if(hr.unit=="rectangle"){var hE=[],hJ=hn.options.tabSize;var hD=cc(f0(hB,hl.line).text,hl.ch,hJ);var hQ=cc(f0(hB,hM.line).text,hM.ch,hJ);var hF=Math.min(hD,hQ),hO=Math.max(hD,hQ);for(var hR=Math.min(hl.line,hM.line),hH=Math.min(hn.lastLine(),Math.max(hl.line,hM.line));hR<=hH;hR++){var hP=f0(hB,hR).text,hG=e2(hP,hF,hJ);if(hF==hO){hE.push(new eu(ab(hR,hG),ab(hR,hG)))}else{if(hP.length>hG){hE.push(new eu(ab(hR,hG),ab(hR,e2(hP,hO,hJ))))}}}if(!hE.length){hE.push(new eu(hl,hl))}cf(hB,cX(hn,ho.ranges.slice(0,hA).concat(hE),hA),{origin:"*mouse",scroll:false});hn.scrollIntoView(hM)}else{var hK=hk;var hN=ep(hn,hM,hr.unit);var hI=hK.anchor,hL;if(cD(hN.anchor,hI)>0){hL=hN.head;hI=aA(hK.from(),hN.anchor)}else{hL=hN.anchor;hI=bQ(hK.to(),hN.head)}var hC=ho.ranges.slice(0);hC[hA]=at(hn,new eu(gy(hB,hI),hL));cf(hB,cX(hn,hC,hA),R)}}var ht=hx.wrapper.getBoundingClientRect();var hp=0;function hz(hE){var hC=++hp;var hG=cO(hn,hE,true,hr.unit=="rectangle");if(!hG){return}if(cD(hG,hw)!=0){hn.curOp.focus=ej();hv(hG);var hF=cs(hx,hB);if(hG.line>=hF.to||hG.line<hF.from){setTimeout(du(hn,function(){if(hp==hC){hz(hE)}}),150)}}else{var hD=hE.clientY<ht.top?-20:hE.clientY>ht.bottom?20:0;if(hD){setTimeout(du(hn,function(){if(hp!=hC){return}hx.scroller.scrollTop+=hD;hz(hE)}),50)}}}function hs(hC){hn.state.selectingText=false;hp=Infinity;if(hC){c7(hC);hx.input.focus()}eP(hx.wrapper.ownerDocument,"mousemove",hu);eP(hx.wrapper.ownerDocument,"mouseup",hq);hB.history.lastSelOrigin=null}var hu=du(hn,function(hC){if(hC.buttons===0||!gE(hC)){hs(hC)}else{hz(hC)}});var hq=du(hn,hs);hn.state.selectingText=hq;ci(hx.wrapper.ownerDocument,"mousemove",hu);ci(hx.wrapper.ownerDocument,"mouseup",hq)}function at(hx,hy){var hq=hy.anchor;var hu=hy.head;var ht=f0(hx.doc,hq.line);if(cD(hq,hu)==0&&hq.sticky==hu.sticky){return hy}var hn=a(ht);if(!hn){return hy}var hs=aR(hn,hq.ch,hq.sticky),hl=hn[hs];if(hl.from!=hq.ch&&hl.to!=hq.ch){return hy}var hk=hs+((hl.from==hq.ch)==(hl.level!=1)?0:1);if(hk==0||hk==hn.length){return hy}var hr;if(hu.line!=hq.line){hr=(hu.line-hq.line)*(hx.doc.direction=="ltr"?1:-1)>0}else{var hp=aR(hn,hu.ch,hu.sticky);var hm=hp-hs||(hu.ch-hq.ch)*(hl.level==1?-1:1);if(hp==hk-1||hp==hk){hr=hm<0}else{hr=hm>0}}var ho=hn[hk+(hr?-1:0)];var hw=hr==(ho.level==1);var i=hw?ho.from:ho.to,hv=hw?"after":"before";return hq.ch==i&&hq.sticky==hv?hy:new eu(new ab(hq.line,i,hv),hu)}function hi(hu,hq,hs,ht){var hl,hk;if(hq.touches){hl=hq.touches[0].clientX;hk=hq.touches[0].clientY}else{try{hl=hq.clientX;hk=hq.clientY}catch(hq){return false}}if(hl>=Math.floor(hu.display.gutters.getBoundingClientRect().right)){return false}if(ht){c7(hq)}var hr=hu.display;var hp=hr.lineDiv.getBoundingClientRect();if(hk>hp.bottom||!f5(hu,hs)){return b5(hq)}hk-=hp.top-hr.viewOffset;for(var hn=0;hn<hu.display.gutterSpecs.length;++hn){var ho=hr.gutters.childNodes[hn];if(ho&&ho.getBoundingClientRect().right>=hl){var hv=b0(hu.doc,hk);var hm=hu.display.gutterSpecs[hn];aN(hu,hs,hu,hv,hm.className,hq);return b5(hq)}}}function o(i,hk){return hi(i,hk,"gutterClick",true)}function aG(i,hk){if(bn(i.display,hk)||dN(i,hk)){return}if(a2(i,hk,"contextmenu")){return}if(!g9){i.display.input.onContextMenu(hk)}}function dN(i,hk){if(!f5(i,"gutterContextMenu")){return false}return hi(i,hk,"gutterContextMenu",false)}function dg(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-");aq(i)}var cz={toString:function(){return"CodeMirror.Init"}};var fN={};var br={};function fn(i){var hl=i.optionHandlers;function hk(hm,hp,ho,hn){i.defaults[hm]=hp;if(ho){hl[hm]=hn?function(hq,hs,hr){if(hr!=cz){ho(hq,hs,hr)}}:ho}}i.defineOption=hk;i.Init=cz;hk("value","",function(hm,hn){return hm.setValue(hn)},true);hk("mode",null,function(hm,hn){hm.doc.modeOption=hn;bJ(hm)},true);hk("indentUnit",2,bJ,true);hk("indentWithTabs",false);hk("smartIndent",true);hk("tabSize",4,function(hm){eX(hm);aq(hm);ao(hm)},true);hk("lineSeparator",null,function(hm,hp){hm.doc.lineSep=hp;if(!hp){return}var ho=[],hq=hm.doc.first;hm.doc.iter(function(hr){for(var ht=0;;){var hs=hr.text.indexOf(hp,ht);if(hs==-1){break}ht=hs+hp.length;ho.push(ab(hq,hs))}hq++});for(var hn=ho.length-1;hn>=0;hn--){bc(hm.doc,hp,ho[hn],ab(ho[hn].line,ho[hn].ch+hp.length))}});hk("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(hm,ho,hn){hm.state.specialChars=new RegExp(ho.source+(ho.test("\t")?"":"|\t"),"g");if(hn!=cz){hm.refresh()}});hk("specialCharPlaceholder",fZ,function(hm){return hm.refresh()},true);hk("electricChars",true);hk("inputStyle",eQ?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);hk("spellcheck",false,function(hm,hn){return hm.getInputField().spellcheck=hn},true);hk("autocorrect",false,function(hm,hn){return hm.getInputField().autocorrect=hn},true);hk("autocapitalize",false,function(hm,hn){return hm.getInputField().autocapitalize=hn},true);hk("rtlMoveVisually",!a0);hk("wholeLineUpdateBefore",true);hk("theme","default",function(hm){dg(hm);eM(hm)},true);hk("keyMap","default",function(hm,hq,hn){var ho=gR(hq);var hp=hn!=cz&&gR(hn);if(hp&&hp.detach){hp.detach(hm,ho)}if(ho.attach){ho.attach(hm,hp||null)}});hk("extraKeys",null);hk("configureMouse",null);hk("lineWrapping",false,fm,true);hk("gutters",[],function(hm,hn){hm.display.gutterSpecs=bd(hn,hm.options.lineNumbers);eM(hm)},true);hk("fixedGutter",true,function(hm,hn){hm.display.gutters.style.left=hn?ev(hm.display)+"px":"0";hm.refresh()},true);hk("coverGutterNextToScrollbar",false,function(hm){return fJ(hm)},true);hk("scrollbarStyle","native",function(hm){aL(hm);fJ(hm);hm.display.scrollbars.setScrollTop(hm.doc.scrollTop);hm.display.scrollbars.setScrollLeft(hm.doc.scrollLeft)},true);hk("lineNumbers",false,function(hm,hn){hm.display.gutterSpecs=bd(hm.options.gutters,hn);eM(hm)},true);hk("firstLineNumber",1,eM,true);hk("lineNumberFormatter",function(hm){return hm},eM,true);hk("showCursorWhenSelecting",false,bV,true);hk("resetSelectionOnContextMenu",true);hk("lineWiseCopyCut",true);hk("pasteLinesPerSelection",true);hk("selectionsMayTouch",false);hk("readOnly",false,function(hm,hn){if(hn=="nocursor"){a6(hm);hm.display.input.blur()}hm.display.input.readOnlyChanged(hn)});hk("disableInput",false,function(hm,hn){if(!hn){hm.display.input.reset()}},true);hk("dragDrop",true,gX);hk("allowDropFileTypes",null);hk("cursorBlinkRate",530);hk("cursorScrollMargin",0);hk("cursorHeight",1,bV,true);hk("singleCursorHeightPerLine",true,bV,true);hk("workTime",100);hk("workDelay",100);hk("flattenSpans",true,eX,true);hk("addModeClass",false,eX,true);hk("pollInterval",100);hk("undoDepth",200,function(hm,hn){return hm.doc.history.undoDepth=hn});hk("historyEventDelay",1250);hk("viewportMargin",10,function(hm){return hm.refresh()},true);hk("maxHighlightLength",10000,eX,true);hk("moveInputWithCursor",true,function(hm,hn){if(!hn){hm.display.input.resetPosition()}});hk("tabindex",null,function(hm,hn){return hm.display.input.getField().tabIndex=hn||""});hk("autofocus",null);hk("direction","ltr",function(hm,hn){return hm.doc.setDirection(hn)},true);hk("phrases",null)}function gX(hk,hn,hl){var ho=hl&&hl!=cz;if(!hn!=!ho){var hm=hk.display.dragFunctions;var i=hn?ci:eP;i(hk.display.scroller,"dragstart",hm.start);i(hk.display.scroller,"dragenter",hm.enter);i(hk.display.scroller,"dragover",hm.over);i(hk.display.scroller,"dragleave",hm.leave);i(hk.display.scroller,"drop",hm.drop)}}function fm(i){if(i.options.lineWrapping){gn(i.display.wrapper,"CodeMirror-wrap");i.display.sizer.style.minWidth="";i.display.sizerWidth=null}else{h(i.display.wrapper,"CodeMirror-wrap");f(i)}ae(i);ao(i);aq(i);setTimeout(function(){return fJ(i)},100)}function L(hk,hm){var hr=this;if(!(this instanceof L)){return new L(hk,hm)}this.options=hm=hm?aY(hm):{};aY(fN,hm,false);var hq=hm.value;if(typeof hq=="string"){hq=new aC(hq,hm.mode,null,hm.lineSeparator,hm.direction)}else{if(hm.mode){hq.modeOption=hm.mode}}this.doc=hq;var hl=new L.inputStyles[hm.inputStyle](this);var hp=this.display=new fo(hk,hq,hl,hm);hp.wrapper.CodeMirror=this;dg(this);if(hm.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}aL(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:-1,cutIncoming:-1,selectingText:false,draggingText:false,highlight:new hj(),keySeq:null,specialChars:null};if(hm.autofocus&&!eQ){hp.input.focus()}if(ef&&n<11){setTimeout(function(){return hr.display.input.reset(true)},20)}gH(this);bv();db(this);this.curOp.forceUpdate=true;eL(this,hq);if((hm.autofocus&&!eQ)||this.hasFocus()){setTimeout(cW(c2,this),20)}else{a6(this)}for(var ho in br){if(br.hasOwnProperty(ho)){br[ho](hr,hm[ho],cz)}}eD(this);if(hm.finishInit){hm.finishInit(this)}for(var hn=0;hn<bk.length;++hn){bk[hn](hr)}av(this);if(dt&&hm.lineWrapping&&getComputedStyle(hp.lineDiv).textRendering=="optimizelegibility"){hp.lineDiv.style.textRendering="auto"}}L.defaults=fN;L.optionHandlers=br;function gH(hk){var ho=hk.display;ci(ho.scroller,"mousedown",du(hk,e7));if(ef&&n<11){ci(ho.scroller,"dblclick",du(hk,function(hs){if(a2(hk,hs)){return}var ht=cO(hk,hs);if(!ht||o(hk,hs)||bn(hk.display,hs)){return}c7(hs);var hr=hk.findWordAt(ht);gS(hk.doc,hr.anchor,hr.head)}))}else{ci(ho.scroller,"dblclick",function(hr){return a2(hk,hr)||c7(hr)})}ci(ho.scroller,"contextmenu",function(hr){return aG(hk,hr)});var hq,i={end:0};function hp(){if(ho.activeTouch){hq=setTimeout(function(){return ho.activeTouch=null},1000);i=ho.activeTouch;i.end=+new Date}}function hm(hr){if(hr.touches.length!=1){return false}var hs=hr.touches[0];return hs.radiusX<=1&&hs.radiusY<=1}function hl(hu,hr){if(hr.left==null){return true}var ht=hr.left-hu.left,hs=hr.top-hu.top;return ht*ht+hs*hs>20*20}ci(ho.scroller,"touchstart",function(hs){if(!a2(hk,hs)&&!hm(hs)&&!o(hk,hs)){ho.input.ensurePolled();clearTimeout(hq);var hr=+new Date;ho.activeTouch={start:hr,moved:false,prev:hr-i.end<=300?i:null};if(hs.touches.length==1){ho.activeTouch.left=hs.touches[0].pageX;ho.activeTouch.top=hs.touches[0].pageY}}});ci(ho.scroller,"touchmove",function(){if(ho.activeTouch){ho.activeTouch.moved=true}});ci(ho.scroller,"touchend",function(hs){var hu=ho.activeTouch;if(hu&&!bn(ho,hs)&&hu.left!=null&&!hu.moved&&new Date-hu.start<300){var ht=hk.coordsChar(ho.activeTouch,"page"),hr;if(!hu.prev||hl(hu,hu.prev)){hr=new eu(ht,ht)}else{if(!hu.prev.prev||hl(hu,hu.prev.prev)){hr=hk.findWordAt(ht)}else{hr=new eu(ab(ht.line,0),gy(hk.doc,ab(ht.line+1,0)))}}hk.setSelection(hr.anchor,hr.head);hk.focus();c7(hs)}hp()});ci(ho.scroller,"touchcancel",hp);ci(ho.scroller,"scroll",function(){if(ho.scroller.clientHeight){C(hk,ho.scroller.scrollTop);bX(hk,ho.scroller.scrollLeft,true);aN(hk,"scroll",hk)}});ci(ho.scroller,"mousewheel",function(hr){return c(hk,hr)});ci(ho.scroller,"DOMMouseScroll",function(hr){return c(hk,hr)});ci(ho.wrapper,"scroll",function(){return ho.wrapper.scrollTop=ho.wrapper.scrollLeft=0});ho.dragFunctions={enter:function(hr){if(!a2(hk,hr)){e3(hr)}},over:function(hr){if(!a2(hk,hr)){hh(hk,hr);e3(hr)}},start:function(hr){return U(hk,hr)},drop:du(hk,bw),leave:function(hr){if(!a2(hk,hr)){dH(hk)}}};var hn=ho.input.getField();ci(hn,"keyup",function(hr){return bt.call(hk,hr)});ci(hn,"keydown",du(hk,s));ci(hn,"keypress",du(hk,cY));ci(hn,"focus",function(hr){return c2(hk,hr)});ci(hn,"blur",function(hr){return a6(hk,hr)})}var bk=[];L.defineInitHook=function(i){return bk.push(i)};function aj(hz,ho,hy,hm){var hx=hz.doc,hl;if(hy==null){hy="add"}if(hy=="smart"){if(!hx.mode.indent){hy="prev"}else{hl=fH(hz,ho).state}}var hs=hz.options.tabSize;var hA=f0(hx,ho),hr=cc(hA.text,null,hs);if(hA.stateAfter){hA.stateAfter=null}var hk=hA.text.match(/^\s*/)[0],hv;if(!hm&&!/\S/.test(hA.text)){hv=0;hy="not"}else{if(hy=="smart"){hv=hx.mode.indent(hl,hA.text.slice(hk.length),hA.text);if(hv==cy||hv>150){if(!hm){return}hy="prev"}}}if(hy=="prev"){if(ho>hx.first){hv=cc(f0(hx,ho-1).text,null,hs)}else{hv=0}}else{if(hy=="add"){hv=hr+hz.options.indentUnit}else{if(hy=="subtract"){hv=hr-hz.options.indentUnit}else{if(typeof hy=="number"){hv=hr+hy}}}}hv=Math.max(0,hv);var hw="",hu=0;if(hz.options.indentWithTabs){for(var hp=Math.floor(hv/hs);hp;--hp){hu+=hs;hw+="\t"}}if(hu<hv){hw+=cQ(hv-hu)}if(hw!=hk){bc(hx,hw,ab(ho,0),ab(ho,hk.length),"+input");hA.stateAfter=null;return true}else{for(var hn=0;hn<hx.sel.ranges.length;hn++){var hq=hx.sel.ranges[hn];if(hq.head.line==ho&&hq.head.ch<hk.length){var ht=ab(ho,hk.length);e(hx,hn,new eu(ht,ht));break}}}}var by=null;function dA(i){by=i}function gT(hy,hp,hn,hm,hx){var hw=hy.doc;hy.display.shift=false;if(!hm){hm=hw.sel}var hA=+new Date-200;var ho=hx=="paste"||hy.state.pasteIncoming>hA;var hr=gJ(hp),hk=null;if(ho&&hm.ranges.length>1){if(by&&by.text.join("\n")==hp){if(hm.ranges.length%by.text.length==0){hk=[];for(var hq=0;hq<by.text.length;hq++){hk.push(hw.splitLines(by.text[hq]))}}}else{if(hr.length==hm.ranges.length&&hy.options.pasteLinesPerSelection){hk=ce(hr,function(i){return[i]})}}}var hs=hy.curOp.updateInput;for(var hl=hm.ranges.length-1;hl>=0;hl--){var hz=hm.ranges[hl];var hv=hz.from(),hu=hz.to();if(hz.empty()){if(hn&&hn>0){hv=ab(hv.line,hv.ch-hn)}else{if(hy.state.overwrite&&!ho){hu=ab(hu.line,Math.min(f0(hw,hu.line).text.length,hu.ch+gt(hr).length))}else{if(ho&&by&&by.lineWise&&by.text.join("\n")==hp){hv=hu=ab(hv.line,0)}}}}var ht={from:hv,to:hu,text:hk?hk[hl%hk.length]:hr,origin:hx||(ho?"paste":hy.state.cutIncoming>hA?"cut":"+input")};bs(hy.doc,ht);al(hy,"inputRead",hy,ht)}if(hp&&!ho){gP(hy,hp)}gs(hy);if(hy.curOp.updateInput<2){hy.curOp.updateInput=hs}hy.curOp.typing=true;hy.state.pasteIncoming=hy.state.cutIncoming=-1}function bm(hl,i){var hk=hl.clipboardData&&hl.clipboardData.getData("Text");if(hk){hl.preventDefault();if(!i.isReadOnly()&&!i.options.disableInput){df(i,function(){return gT(i,hk,0,null,"paste")})}return true}}function gP(hk,hn){if(!hk.options.electricChars||!hk.options.smartIndent){return}var ho=hk.doc.sel;for(var hm=ho.ranges.length-1;hm>=0;hm--){var hq=ho.ranges[hm];if(hq.head.ch>100||(hm&&ho.ranges[hm-1].head.line==hq.head.line)){continue}var hp=hk.getModeAt(hq.head);var hr=false;if(hp.electricChars){for(var hl=0;hl<hp.electricChars.length;hl++){if(hn.indexOf(hp.electricChars.charAt(hl))>-1){hr=aj(hk,hq.head.line,"smart");break}}}else{if(hp.electricInput){if(hp.electricInput.test(f0(hk.doc,hq.head.line).text.slice(0,hq.head.ch))){hr=aj(hk,hq.head.line,"smart")}}}if(hr){al(hk,"electricInput",hk,hq.head.line)}}}function dO(hk){var hp=[],hm=[];for(var hn=0;hn<hk.doc.sel.ranges.length;hn++){var hl=hk.doc.sel.ranges[hn].head.line;var ho={anchor:ab(hl,0),head:ab(hl+1,0)};hm.push(ho);hp.push(hk.getRange(ho.anchor,ho.head))}return{text:hp,ranges:hm}}function gF(hm,hk,i,hl){hm.setAttribute("autocorrect",i?"":"off");hm.setAttribute("autocapitalize",hl?"":"off");hm.setAttribute("spellcheck",!!hk)}function a8(){var i=g0("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none");var hk=g0("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(dt){i.style.width="1000px"}else{i.setAttribute("wrap","off")}if(fM){i.style.border="1px solid black"}gF(i);return hk}function ek(i){var hk=i.optionHandlers;var hl=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus();this.display.input.focus()},setOption:function(ho,hp){var hn=this.options,hm=hn[ho];if(hn[ho]==hp&&ho!="mode"){return}hn[ho]=hp;if(hk.hasOwnProperty(ho)){du(this,hk[ho])(this,hp,hm)}aN(this,"optionChange",this,ho)},getOption:function(hm){return this.options[hm]},getDoc:function(){return this.doc},addKeyMap:function(hn,hm){this.state.keyMaps[hm?"push":"unshift"](gR(hn))},removeKeyMap:function(hn){var ho=this.state.keyMaps;for(var hm=0;hm<ho.length;++hm){if(ho[hm]==hn||ho[hm].name==hn){ho.splice(hm,1);return true}}},addOverlay:dE(function(hm,hn){var ho=hm.token?hm:i.getMode(this.options,hm);if(ho.startState){throw new Error("Overlays may not be stateful.")}cw(this.state.overlays,{mode:ho,modeSpec:hm,opaque:hn&&hn.opaque,priority:(hn&&hn.priority)||0},function(hp){return hp.priority});this.state.modeGen++;ao(this)}),removeOverlay:dE(function(hm){var hq=this;var ho=this.state.overlays;for(var hn=0;hn<ho.length;++hn){var hp=ho[hn].modeSpec;if(hp==hm||typeof hm=="string"&&hp.name==hm){ho.splice(hn,1);hq.state.modeGen++;ao(hq);return}}}),indentLine:dE(function(ho,hm,hn){if(typeof hm!="string"&&typeof hm!="number"){if(hm==null){hm=this.options.smartIndent?"smart":"prev"}else{hm=hm?"add":"subtract"}}if(cv(this.doc,ho)){aj(this,ho,hm,hn)}}),indentSelection:dE(function(hv){var hs=this;var hm=this.doc.sel.ranges,hp=-1;for(var hr=0;hr<hm.length;hr++){var hw=hm[hr];if(!hw.empty()){var ht=hw.from(),hu=hw.to();var hn=Math.max(hp,ht.line);hp=Math.min(hs.lastLine(),hu.line-(hu.ch?0:1))+1;for(var hq=hn;hq<hp;++hq){aj(hs,hq,hv)}var ho=hs.doc.sel.ranges;if(ht.ch==0&&hm.length==ho.length&&ho[hr].from().ch>0){e(hs.doc,hr,new eu(ht,ho[hr].to()),ag)}}else{if(hw.head.line>hp){aj(hs,hw.head.line,hv,true);hp=hw.head.line;if(hr==hs.doc.sel.primIndex){gs(hs)}}}}}),getTokenAt:function(hn,hm){return cR(this,hn,hm)},getLineTokens:function(hn,hm){return cR(this,ab(hn),hm,true)},getTokenTypeAt:function(ht){ht=gy(this.doc,ht);var hp=dC(this,f0(this.doc,ht.line));var hr=0,hs=(hp.length-1)/2,ho=ht.ch;var hn;if(ho==0){hn=hp[2]}else{for(;;){var hm=(hr+hs)>>1;if((hm?hp[hm*2-1]:0)>=ho){hs=hm}else{if(hp[hm*2+1]<ho){hr=hm+1}else{hn=hp[hm*2+2];break}}}}var hq=hn?hn.indexOf("overlay "):-1;return hq<0?hn:hq==0?null:hn.slice(0,hq-1)},getModeAt:function(hn){var hm=this.doc.mode;if(!hm.innerMode){return hm}return i.innerMode(hm,this.getTokenAt(hn).state).mode},getHelper:function(hn,hm){return this.getHelpers(hn,hm)[0]},getHelpers:function(ht,hs){var hq=this;var hv=[];if(!hl.hasOwnProperty(hs)){return hv}var ho=hl[hs],hr=this.getModeAt(ht);if(typeof hr[hs]=="string"){if(ho[hr[hs]]){hv.push(ho[hr[hs]])}}else{if(hr[hs]){for(var hp=0;hp<hr[hs].length;hp++){var hn=ho[hr[hs][hp]];if(hn){hv.push(hn)}}}else{if(hr.helperType&&ho[hr.helperType]){hv.push(ho[hr.helperType])}else{if(ho[hr.name]){hv.push(ho[hr.name])}}}}for(var hm=0;hm<ho._global.length;hm++){var hu=ho._global[hm];if(hu.pred(hr,hq)&&dP(hv,hu.val)==-1){hv.push(hu.val)}}return hv},getStateAfter:function(hn,hm){var ho=this.doc;hn=dy(ho,hn==null?ho.first+ho.size-1:hn);return fH(this,hn+1,hm).state},cursorCoords:function(hp,hn){var ho,hm=this.doc.sel.primary();if(hp==null){ho=hm.head}else{if(typeof hp=="object"){ho=gy(this.doc,hp)}else{ho=hp?hm.from():hm.to()}}return er(this,ho,hn||"page")},charCoords:function(hn,hm){return dc(this,gy(this.doc,hn),hm||"page")},coordsChar:function(hm,hn){hm=hf(this,hm,hn||"page");return gG(this,hm.left,hm.top)},lineAtHeight:function(hm,hn){hm=hf(this,{top:hm,left:0},hn||"page").top;return b0(this.doc,hm+this.display.viewOffset)},heightAtLine:function(hn,hr,hq){var hm=false,ho;if(typeof hn=="number"){var hp=this.doc.first+this.doc.size-1;if(hn<this.doc.first){hn=this.doc.first}else{if(hn>hp){hn=hp;hm=true}}ho=f0(this.doc,hn)}else{ho=hn}return fz(this,ho,{top:0,left:0},hr||"page",hq||hm).top+(hm?this.doc.height-b6(ho):0)},defaultTextHeight:function(){return a9(this.display)},defaultCharWidth:function(){return d7(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(hr,ho,ht,hp,hv){var hq=this.display;hr=er(this,gy(this.doc,hr));var hs=hr.bottom,hn=hr.left;ho.style.position="absolute";ho.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(ho);hq.sizer.appendChild(ho);if(hp=="over"){hs=hr.top}else{if(hp=="above"||hp=="near"){var hm=Math.max(hq.wrapper.clientHeight,this.doc.height),hu=Math.max(hq.sizer.clientWidth,hq.lineSpace.clientWidth);if((hp=="above"||hr.bottom+ho.offsetHeight>hm)&&hr.top>ho.offsetHeight){hs=hr.top-ho.offsetHeight}else{if(hr.bottom+ho.offsetHeight<=hm){hs=hr.bottom}}if(hn+ho.offsetWidth>hu){hn=hu-ho.offsetWidth}}}ho.style.top=hs+"px";ho.style.left=ho.style.right="";if(hv=="right"){hn=hq.sizer.clientWidth-ho.offsetWidth;ho.style.right="0px"}else{if(hv=="left"){hn=0}else{if(hv=="middle"){hn=(hq.sizer.clientWidth-ho.offsetWidth)/2}}ho.style.left=hn+"px"}if(ht){I(this,{left:hn,top:hs,right:hn+ho.offsetWidth,bottom:hs+ho.offsetHeight})}},triggerOnKeyDown:dE(s),triggerOnKeyPress:dE(cY),triggerOnKeyUp:bt,triggerOnMouseDown:dE(e7),execCommand:function(hm){if(fi.hasOwnProperty(hm)){return fi[hm].call(null,this)}},triggerElectric:dE(function(hm){gP(this,hm)}),findPosH:function(ht,hp,hq,hn){var hs=this;var hm=1;if(hp<0){hm=-1;hp=-hp}var hr=gy(this.doc,ht);for(var ho=0;ho<hp;++ho){hr=bO(hs.doc,hr,hm,hq,hn);if(hr.hitSide){break}}return hr},moveH:dE(function(hm,hn){var ho=this;this.extendSelectionsBy(function(hp){if(ho.display.shift||ho.doc.extend||hp.empty()){return bO(ho.doc,hp.head,hm,hn,ho.options.rtlMoveVisually)}else{return hm<0?hp.from():hp.to()}},dp)}),deleteH:dE(function(hm,hn){var ho=this.doc.sel,hp=this.doc;if(ho.somethingSelected()){hp.replaceSelection("",null,"+delete")}else{fI(this,function(hr){var hq=bO(hp,hr.head,hm,hn,false);return hm<0?{from:hq,to:hr.head}:{from:hr.head,to:hq}})}}),findPosV:function(hs,hp,ht,hv){var ho=this;var hm=1,hr=hv;if(hp<0){hm=-1;hp=-hp}var hu=gy(this.doc,hs);for(var hn=0;hn<hp;++hn){var hq=er(ho,hu,"div");if(hr==null){hr=hq.left}else{hq.left=hr}hu=bI(ho,hq,hm,ht);if(hu.hitSide){break}}return hu},moveV:dE(function(hm,ho){var hs=this;var hq=this.doc,hp=[];var hr=!this.display.shift&&!hq.extend&&hq.sel.somethingSelected();hq.extendSelectionsBy(function(ht){if(hr){return hm<0?ht.from():ht.to()}var hv=er(hs,ht.head,"div");if(ht.goalColumn!=null){hv.left=ht.goalColumn}hp.push(hv.left);var hu=bI(hs,hv,hm,ho);if(ho=="page"&&ht==hq.sel.primary()){c9(hs,dc(hs,hu,"div").top-hv.top)}return hu},dp);if(hp.length){for(var hn=0;hn<hq.sel.ranges.length;hn++){hq.sel.ranges[hn].goalColumn=hp[hn]}}}),findWordAt:function(ht){var hr=this.doc,hp=f0(hr,ht.line).text;var hs=ht.ch,ho=ht.ch;if(hp){var hq=this.getHelper(ht,"wordChars");if((ht.sticky=="before"||ho==hp.length)&&hs){--hs}else{++ho}var hn=hp.charAt(hs);var hm=c1(hn,hq)?function(hu){return c1(hu,hq)}:/\s/.test(hn)?function(hu){return/\s/.test(hu)}:function(hu){return(!/\s/.test(hu)&&!c1(hu))};while(hs>0&&hm(hp.charAt(hs-1))){--hs}while(ho<hp.length&&hm(hp.charAt(ho))){++ho}}return new eu(ab(ht.line,hs),ab(ht.line,ho))},toggleOverwrite:function(hm){if(hm!=null&&hm==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){gn(this.display.cursorDiv,"CodeMirror-overwrite")}else{h(this.display.cursorDiv,"CodeMirror-overwrite")}aN(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==ej()},isReadOnly:function(){return !!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dE(function(hm,hn){fu(this,hm,hn)}),getScrollInfo:function(){var hm=this.display.scroller;return{left:hm.scrollLeft,top:hm.scrollTop,height:hm.scrollHeight-dl(this)-this.display.barHeight,width:hm.scrollWidth-dl(this)-this.display.barWidth,clientHeight:dn(this),clientWidth:dS(this)}},scrollIntoView:dE(function(hn,hm){if(hn==null){hn={from:this.doc.sel.primary().head,to:null};if(hm==null){hm=this.options.cursorScrollMargin}}else{if(typeof hn=="number"){hn={from:ab(hn,0),to:null}}else{if(hn.from==null){hn={from:hn,to:null}}}}if(!hn.to){hn.to=hn.from}hn.margin=hm||0;if(hn.from.line!=null){cA(this,hn)}else{ca(this,hn.from,hn.to,hn.margin)}}),setSize:dE(function(hp,hm){var hq=this;var ho=function(hr){return typeof hr=="number"||/^\d+$/.test(String(hr))?hr+"px":hr};if(hp!=null){this.display.wrapper.style.width=ho(hp)}if(hm!=null){this.display.wrapper.style.height=ho(hm)}if(this.options.lineWrapping){aZ(this)}var hn=this.display.viewFrom;this.doc.iter(hn,this.display.viewTo,function(hr){if(hr.widgets){for(var hs=0;hs<hr.widgets.length;hs++){if(hr.widgets[hs].noHScroll){W(hq,hn,"widget");break}}}++hn});this.curOp.forceUpdate=true;aN(this,"refresh",this)}),operation:function(hm){return df(this,hm)},startOperation:function(){return db(this)},endOperation:function(){return av(this)},refresh:dE(function(){var hm=this.display.cachedTextHeight;ao(this);this.curOp.forceUpdate=true;aq(this);fu(this,this.doc.scrollLeft,this.doc.scrollTop);dx(this.display);if(hm==null||Math.abs(hm-a9(this.display))>0.5){ae(this)}aN(this,"refresh",this)}),swapDoc:dE(function(hn){var hm=this.doc;hm.cm=null;if(this.state.selectingText){this.state.selectingText()}eL(this,hn);aq(this);this.display.input.reset();fu(this,hn.scrollLeft,hn.scrollTop);this.curOp.forceScroll=true;al(this,"swapDoc",this,hm);return hm}),phrase:function(hn){var hm=this.options.phrases;return hm&&Object.prototype.hasOwnProperty.call(hm,hn)?hm[hn]:hn},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};bS(i);i.registerHelper=function(hn,hm,ho){if(!hl.hasOwnProperty(hn)){hl[hn]=i[hn]={_global:[]}}hl[hn][hm]=ho};i.registerGlobalHelper=function(ho,hn,hm,hp){i.registerHelper(ho,hn,hp);hl[ho]._global.push({pred:hm,val:hp})}}function bO(hv,hu,hm,hw,hk){var hn=hu;var hr=hm;var hq=f0(hv,hu.line);function i(){var hA=hu.line+hm;if(hA<hv.first||hA>=hv.first+hv.size){return false}hu=new ab(hA,hu.ch,hu.sticky);return hq=f0(hv,hA)}function ho(hB){var hA;if(hk){hA=w(hv.cm,hq,hu,hm)}else{hA=ap(hq,hu,hm)}if(hA==null){if(!hB&&i()){hu=fd(hk,hv.cm,hq,hu.line,hm)}else{return false}}else{hu=hA}return true}if(hw=="char"){ho()}else{if(hw=="column"){ho(true)}else{if(hw=="word"||hw=="group"){var ht=null,hy=hw=="group";var hl=hv.cm&&hv.cm.getHelper(hu,"wordChars");for(var hp=true;;hp=false){if(hm<0&&!ho(!hp)){break}var hx=hq.text.charAt(hu.ch)||"\n";var hs=c1(hx,hl)?"w":hy&&hx=="\n"?"n":!hy||/\s/.test(hx)?null:"p";if(hy&&!hp&&!hs){hs="s"}if(ht&&ht!=hs){if(hm<0){hm=1;ho();hu.sticky="after"}break}if(hs){ht=hs}if(hm>0&&!ho(!hp)){break}}}}}var hz=cg(hv,hu,hn,hr,true);if(ac(hn,hz)){hz.hitSide=true}return hz}function bI(hs,hn,hk,hr){var hq=hs.doc,hp=hn.left,ho;if(hr=="page"){var hm=Math.min(hs.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var i=Math.max(hm-0.5*a9(hs.display),3);ho=(hk>0?hn.bottom:hn.top)+hk*i}else{if(hr=="line"){ho=hk>0?hn.bottom+3:hn.top-3}}var hl;for(;;){hl=gG(hs,hp,ho);if(!hl.outside){break}if(hk<0?ho<=0:ho>=hq.height){hl.hitSide=true;break}ho+=hk*5}return hl}var d1=function(i){this.cm=i;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new hj();this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};d1.prototype.init=function(hm){var ho=this;var hl=this,i=hl.cm;var hn=hl.div=hm.lineDiv;gF(hn,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize);ci(hn,"paste",function(hp){if(a2(i,hp)||bm(hp,i)){return}if(n<=11){setTimeout(du(i,function(){return ho.updateFromDOM()}),20)}});ci(hn,"compositionstart",function(hp){ho.composing={data:hp.data,done:false}});ci(hn,"compositionupdate",function(hp){if(!ho.composing){ho.composing={data:hp.data,done:false}}});ci(hn,"compositionend",function(hp){if(ho.composing){if(hp.data!=ho.composing.data){ho.readFromDOMSoon()}ho.composing.done=true}});ci(hn,"touchstart",function(){return hl.forceCompositionEnd()});ci(hn,"input",function(){if(!ho.composing){ho.readFromDOMSoon()}});function hk(ht){if(a2(i,ht)){return}if(i.somethingSelected()){dA({lineWise:false,text:i.getSelections()});if(ht.type=="cut"){i.replaceSelection("",null,"cut")}}else{if(!i.options.lineWiseCopyCut){return}else{var hq=dO(i);dA({lineWise:true,text:hq.text});if(ht.type=="cut"){i.operation(function(){i.setSelections(hq.ranges,0,ag);i.replaceSelection("",null,"cut")})}}}if(ht.clipboardData){ht.clipboardData.clearData();var hs=by.text.join("\n");ht.clipboardData.setData("Text",hs);if(ht.clipboardData.getData("Text")==hs){ht.preventDefault();return}}var hr=a8(),hu=hr.firstChild;i.display.lineSpace.insertBefore(hr,i.display.lineSpace.firstChild);hu.value=by.text.join("\n");var hp=document.activeElement;eg(hu);setTimeout(function(){i.display.lineSpace.removeChild(hr);hp.focus();if(hp==hn){hl.showPrimarySelection()}},50)}ci(hn,"copy",hk);ci(hn,"cut",hk)};d1.prototype.prepareSelection=function(){var i=gw(this.cm,false);i.focus=this.cm.state.focused;return i};d1.prototype.showSelection=function(hk,i){if(!hk||!this.cm.display.view.length){return}if(hk.focus||i){this.showPrimarySelection()}this.showMultipleSelections(hk)};d1.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()};d1.prototype.showPrimarySelection=function(){var hm=this.getSelection(),hw=this.cm,hp=hw.doc.sel.primary();var hu=hp.from(),hv=hp.to();if(hw.display.viewTo==hw.display.viewFrom||hu.line>=hw.display.viewTo||hv.line<hw.display.viewFrom){hm.removeAllRanges();return}var hn=aH(hw,hm.anchorNode,hm.anchorOffset);var hr=aH(hw,hm.focusNode,hm.focusOffset);if(hn&&!hn.bad&&hr&&!hr.bad&&cD(aA(hn,hr),hu)==0&&cD(bQ(hn,hr),hv)==0){return}var ht=hw.display.view;var hl=(hu.line>=hw.display.viewFrom&&c0(hw,hu))||{node:ht[0].measure.map[2],offset:0};var hq=hv.line<hw.display.viewTo&&c0(hw,hv);if(!hq){var hk=ht[ht.length-1].measure;var hx=hk.maps?hk.maps[hk.maps.length-1]:hk.map;hq={node:hx[hx.length-1],offset:hx[hx.length-2]-hx[hx.length-3]}}if(!hl||!hq){hm.removeAllRanges();return}var ho=hm.rangeCount&&hm.getRangeAt(0),i;try{i=cM(hl.node,hl.offset,hq.offset,hq.node)}catch(hs){}if(i){if(!cP&&hw.state.focused){hm.collapse(hl.node,hl.offset);if(!i.collapsed){hm.removeAllRanges();hm.addRange(i)}}else{hm.removeAllRanges();hm.addRange(i)}if(ho&&hm.anchorNode==null){hm.addRange(ho)}else{if(cP){this.startGracePeriod()}}}this.rememberSelection()};d1.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){i.gracePeriod=false;if(i.selectionChanged()){i.cm.operation(function(){return i.cm.curOp.selectionChanged=true})}},20)};d1.prototype.showMultipleSelections=function(i){cd(this.cm.display.cursorDiv,i.cursors);cd(this.cm.display.selectionDiv,i.selection)};d1.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode;this.lastAnchorOffset=i.anchorOffset;this.lastFocusNode=i.focusNode;this.lastFocusOffset=i.focusOffset};d1.prototype.selectionInEditor=function(){var hk=this.getSelection();if(!hk.rangeCount){return false}var i=hk.getRangeAt(0).commonAncestorContainer;return ha(this.div,i)};d1.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"){if(!this.selectionInEditor()){this.showSelection(this.prepareSelection(),true)}this.div.focus()}};d1.prototype.blur=function(){this.div.blur()};d1.prototype.getField=function(){return this.div};d1.prototype.supportsTouch=function(){return true};d1.prototype.receivedFocus=function(){var i=this;if(this.selectionInEditor()){this.pollSelection()}else{df(this.cm,function(){return i.cm.curOp.selectionChanged=true})}function hk(){if(i.cm.state.focused){i.pollSelection();i.polling.set(i.cm.options.pollInterval,hk)}}this.polling.set(this.cm.options.pollInterval,hk)};d1.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset};d1.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged()){return}var hm=this.getSelection(),i=this.cm;if(aX&&dJ&&this.cm.display.gutterSpecs.length&&g1(hm.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs});this.blur();this.focus();return}if(this.composing){return}this.rememberSelection();var hk=aH(i,hm.anchorNode,hm.anchorOffset);var hl=aH(i,hm.focusNode,hm.focusOffset);if(hk&&hl){df(i,function(){cf(i.doc,fA(hk,hl),ag);if(hk.bad||hl.bad){i.curOp.selectionChanged=true}})}};d1.prototype.pollContent=function(){if(this.readDOMTimeout!=null){clearTimeout(this.readDOMTimeout);this.readDOMTimeout=null}var ht=this.cm,hD=ht.display,hB=ht.doc.sel.primary();var hC=hB.from(),hn=hB.to();if(hC.ch==0&&hC.line>ht.firstLine()){hC=ab(hC.line-1,f0(ht.doc,hC.line-1).length)}if(hn.ch==f0(ht.doc,hn.line).text.length&&hn.line<ht.lastLine()){hn=ab(hn.line+1,0)}if(hC.line<hD.viewFrom||hn.line>hD.viewTo-1){return false}var hq,ho,hs;if(hC.line==hD.viewFrom||(hq=dY(ht,hC.line))==0){ho=b7(hD.view[0].line);hs=hD.view[0].node}else{ho=b7(hD.view[hq].line);hs=hD.view[hq-1].node.nextSibling}var hA=dY(ht,hn.line);var hv,hy;if(hA==hD.view.length-1){hv=hD.viewTo-1;hy=hD.lineDiv.lastChild}else{hv=b7(hD.view[hA+1].line)-1;hy=hD.view[hA+1].node.previousSibling}if(!hs){return false}var hE=ht.doc.splitLines(gW(ht,hs,hy,ho,hv));var hx=g2(ht.doc,ab(ho,0),ab(hv,f0(ht.doc,hv).text.length));while(hE.length>1&&hx.length>1){if(gt(hE)==gt(hx)){hE.pop();hx.pop();hv--}else{if(hE[0]==hx[0]){hE.shift();hx.shift();ho++}else{break}}}var hz=0,hl=0;var hu=hE[0],hk=hx[0],i=Math.min(hu.length,hk.length);while(hz<i&&hu.charCodeAt(hz)==hk.charCodeAt(hz)){++hz}var hr=gt(hE),hF=gt(hx);var hm=Math.min(hr.length-(hE.length==1?hz:0),hF.length-(hx.length==1?hz:0));while(hl<hm&&hr.charCodeAt(hr.length-hl-1)==hF.charCodeAt(hF.length-hl-1)){++hl}if(hE.length==1&&hx.length==1&&ho==hC.line){while(hz&&hz>hC.ch&&hr.charCodeAt(hr.length-hl-1)==hF.charCodeAt(hF.length-hl-1)){hz--;hl++}}hE[hE.length-1]=hr.slice(0,hr.length-hl).replace(/^\u200b+/,"");hE[0]=hE[0].slice(hz).replace(/\u200b+$/,"");var hp=ab(ho,hz);var hw=ab(hv,hx.length?gt(hx).length-hl:0);if(hE.length>1||hE[0]||cD(hp,hw)){bc(ht.doc,hE,hp,hw,"+input");return true}};d1.prototype.ensurePolled=function(){this.forceCompositionEnd()};d1.prototype.reset=function(){this.forceCompositionEnd()};d1.prototype.forceCompositionEnd=function(){if(!this.composing){return}clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()};d1.prototype.readFromDOMSoon=function(){var i=this;if(this.readDOMTimeout!=null){return}this.readDOMTimeout=setTimeout(function(){i.readDOMTimeout=null;if(i.composing){if(i.composing.done){i.composing=null}else{return}}i.updateFromDOM()},80)};d1.prototype.updateFromDOM=function(){var i=this;if(this.cm.isReadOnly()||!this.pollContent()){df(this.cm,function(){return ao(i.cm)})}};d1.prototype.setUneditable=function(i){i.contentEditable="false"};d1.prototype.onKeyPress=function(i){if(i.charCode==0||this.composing){return}i.preventDefault();if(!this.cm.isReadOnly()){du(this.cm,gT)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0)}};d1.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")};d1.prototype.onContextMenu=function(){};d1.prototype.resetPosition=function(){};d1.prototype.needsContentAttribute=true;function c0(hp,hn){var ho=fX(hp,hn.line);if(!ho||ho.hidden){return null}var hr=f0(hp.doc,hn.line);var hk=cU(ho,hr,hn.line);var hl=a(hr,hp.doc.direction),hm="left";if(hl){var i=aR(hl,hn.ch);hm=i%2?"right":"left"}var hq=aU(hk.map,hn.ch,hm);hq.offset=hq.collapse=="right"?hq.end:hq.start;return hq}function g1(hk){for(var i=hk;i;i=i.parentNode){if(/CodeMirror-gutter-wrapper/.test(i.className)){return true}}return false}function e4(hk,i){if(i){hk.bad=true}return hk}function gW(hs,hq,hr,hm,hk){var hu="",hl=false,i=hs.doc.lineSeparator(),hn=false;function ho(hw){return function(hx){return hx.id==hw}}function hv(){if(hl){hu+=i;if(hn){hu+=i}hl=hn=false}}function ht(hw){if(hw){hv();hu+=hw}}function hp(hA){if(hA.nodeType==1){var hx=hA.getAttribute("cm-text");if(hx){ht(hx);return}var hz=hA.getAttribute("cm-marker"),hC;if(hz){var hB=hs.findMarks(ab(hm,0),ab(hk+1,0),ho(+hz));if(hB.length&&(hC=hB[0].find(0))){ht(g2(hs.doc,hC.from,hC.to).join(i))}return}if(hA.getAttribute("contenteditable")=="false"){return}var hw=/^(pre|div|p|li|table|br)$/i.test(hA.nodeName);if(!/^br$/i.test(hA.nodeName)&&hA.textContent.length==0){return}if(hw){hv()}for(var hy=0;hy<hA.childNodes.length;hy++){hp(hA.childNodes[hy])}if(/^(pre|p)$/i.test(hA.nodeName)){hn=true}if(hw){hl=true}}else{if(hA.nodeType==3){ht(hA.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}}}for(;;){hp(hq);if(hq==hr){break}hq=hq.nextSibling;hn=false}return hu}function aH(hk,hn,hp){var ho;if(hn==hk.display.lineDiv){ho=hk.display.lineDiv.childNodes[hp];if(!ho){return e4(hk.clipPos(ab(hk.display.viewTo-1)),true)}hn=null;hp=0}else{for(ho=hn;;ho=ho.parentNode){if(!ho||ho==hk.display.lineDiv){return null}if(ho.parentNode&&ho.parentNode==hk.display.lineDiv){break}}}for(var hm=0;hm<hk.display.view.length;hm++){var hl=hk.display.view[hm];if(hl.node==ho){return ah(hl,hn,hp)}}}function ah(hs,ho,hq){var hl=hs.text.firstChild,hn=false;if(!ho||!ha(hl,ho)){return e4(ab(b7(hs.line),0),true)}if(ho==hl){hn=true;ho=hl.childNodes[hq];hq=0;if(!ho){var hy=hs.rest?gt(hs.rest):hs.line;return e4(ab(b7(hy),hy.text.length),hn)}}var hp=ho.nodeType==3?ho:null,hw=ho;if(!hp&&ho.childNodes.length==1&&ho.firstChild.nodeType==3){hp=ho.firstChild;if(hq){hq=hp.nodeValue.length}}while(hw.parentNode!=hl){hw=hw.parentNode}var hk=hs.measure,hu=hk.maps;function hr(hA,hF,hC){for(var hE=-1;hE<(hu?hu.length:0);hE++){var hG=hE<0?hk.map:hu[hE];for(var hD=0;hD<hG.length;hD+=3){var hB=hG[hD+2];if(hB==hA||hB==hF){var hH=b7(hE<0?hs.line:hs.rest[hE]);var hz=hG[hD]+hC;if(hC<0||hB!=hA){hz=hG[hD+(hC?1:0)]}return ab(hH,hz)}}}}var hx=hr(hp,hw,hq);if(hx){return e4(hx,hn)}for(var i=hw.nextSibling,ht=hp?hp.nodeValue.length-hq:0;i;i=i.nextSibling){hx=hr(i,i.firstChild,0);if(hx){return e4(ab(hx.line,hx.ch-ht),hn)}else{ht+=i.textContent.length}}for(var hv=hw.previousSibling,hm=hq;hv;hv=hv.previousSibling){hx=hr(hv,hv.firstChild,-1);if(hx){return e4(ab(hx.line,hx.ch+hm),hn)}else{hm+=hv.textContent.length}}}var ad=function(i){this.cm=i;this.prevInput="";this.pollingFast=false;this.polling=new hj();this.hasSelection=false;this.composing=null};ad.prototype.init=function(hl){var ho=this;var hk=this,i=this.cm;this.createField(hl);var hm=this.textarea;hl.wrapper.insertBefore(this.wrapper,hl.wrapper.firstChild);if(fM){hm.style.width="0px"}ci(hm,"input",function(){if(ef&&n>=9&&ho.hasSelection){ho.hasSelection=null}hk.poll()});ci(hm,"paste",function(hp){if(a2(i,hp)||bm(hp,i)){return}i.state.pasteIncoming=+new Date;hk.fastPoll()});function hn(hq){if(a2(i,hq)){return}if(i.somethingSelected()){dA({lineWise:false,text:i.getSelections()})}else{if(!i.options.lineWiseCopyCut){return}else{var hp=dO(i);dA({lineWise:true,text:hp.text});if(hq.type=="cut"){i.setSelections(hp.ranges,null,ag)}else{hk.prevInput="";hm.value=hp.text.join("\n");eg(hm)}}}if(hq.type=="cut"){i.state.cutIncoming=+new Date}}ci(hm,"cut",hn);ci(hm,"copy",hn);ci(hl.scroller,"paste",function(hq){if(bn(hl,hq)||a2(i,hq)){return}if(!hm.dispatchEvent){i.state.pasteIncoming=+new Date;hk.focus();return}var hp=new Event("paste");hp.clipboardData=hq.clipboardData;hm.dispatchEvent(hp)});ci(hl.lineSpace,"selectstart",function(hp){if(!bn(hl,hp)){c7(hp)}});ci(hm,"compositionstart",function(){var hp=i.getCursor("from");if(hk.composing){hk.composing.range.clear()}hk.composing={start:hp,range:i.markText(hp,i.getCursor("to"),{className:"CodeMirror-composing"})}});ci(hm,"compositionend",function(){if(hk.composing){hk.poll();hk.composing.range.clear();hk.composing=null}})};ad.prototype.createField=function(i){this.wrapper=a8();this.textarea=this.wrapper.firstChild};ad.prototype.prepareSelection=function(){var hk=this.cm,ho=hk.display,hn=hk.doc;var i=gw(hk);if(hk.options.moveInputWithCursor){var hp=er(hk,hn.sel.primary().head,"div");var hl=ho.wrapper.getBoundingClientRect(),hm=ho.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(ho.wrapper.clientHeight-10,hp.top+hm.top-hl.top));i.teLeft=Math.max(0,Math.min(ho.wrapper.clientWidth-10,hp.left+hm.left-hl.left))}return i};ad.prototype.showSelection=function(hl){var i=this.cm,hk=i.display;cd(hk.cursorDiv,hl.cursors);cd(hk.selectionDiv,hl.selection);if(hl.teTop!=null){this.wrapper.style.top=hl.teTop+"px";this.wrapper.style.left=hl.teLeft+"px"}};ad.prototype.reset=function(hk){if(this.contextMenuPending||this.composing){return}var i=this.cm;if(i.somethingSelected()){this.prevInput="";var hl=i.getSelection();this.textarea.value=hl;if(i.state.focused){eg(this.textarea)}if(ef&&n>=9){this.hasSelection=hl}}else{if(!hk){this.prevInput=this.textarea.value="";if(ef&&n>=9){this.hasSelection=null}}}};ad.prototype.getField=function(){return this.textarea};ad.prototype.supportsTouch=function(){return false};ad.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!eQ||ej()!=this.textarea)){try{this.textarea.focus()}catch(i){}}};ad.prototype.blur=function(){this.textarea.blur()};ad.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0};ad.prototype.receivedFocus=function(){this.slowPoll()};ad.prototype.slowPoll=function(){var i=this;if(this.pollingFast){return}this.polling.set(this.cm.options.pollInterval,function(){i.poll();if(i.cm.state.focused){i.slowPoll()}})};ad.prototype.fastPoll=function(){var hk=false,i=this;i.pollingFast=true;function hl(){var hm=i.poll();if(!hm&&!hk){hk=true;i.polling.set(60,hl)}else{i.pollingFast=false;i.slowPoll()}}i.polling.set(20,hl)};ad.prototype.poll=function(){var hq=this;var i=this.cm,hl=this.textarea,hm=this.prevInput;if(this.contextMenuPending||!i.state.focused||(bK(hl)&&!hm&&!this.composing)||i.isReadOnly()||i.options.disableInput||i.state.keySeq){return false}var ho=hl.value;if(ho==hm&&!i.somethingSelected()){return false}if(ef&&n>=9&&this.hasSelection===ho||ct&&/[\uf700-\uf7ff]/.test(ho)){i.display.input.reset();return false}if(i.doc.sel==i.display.selForContextMenu){var hn=ho.charCodeAt(0);if(hn==8203&&!hm){hm="\u200b"}if(hn==8666){this.reset();return this.cm.execCommand("undo")}}var hp=0,hk=Math.min(hm.length,ho.length);while(hp<hk&&hm.charCodeAt(hp)==ho.charCodeAt(hp)){++hp}df(i,function(){gT(i,ho.slice(hp),hm.length-hp,null,hq.composing?"*compose":null);if(ho.length>1000||ho.indexOf("\n")>-1){hl.value=hq.prevInput=""}else{hq.prevInput=ho}if(hq.composing){hq.composing.range.clear();hq.composing.range=i.markText(hq.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"})}});return true};ad.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}};ad.prototype.onKeyPress=function(){if(ef&&n>=9){this.hasSelection=null}this.fastPoll()};ad.prototype.onContextMenu=function(ho){var ht=this,hu=ht.cm,hq=hu.display,hk=ht.textarea;if(ht.contextMenuPending){ht.contextMenuPending()}var hs=cO(hu,ho),i=hq.scroller.scrollTop;if(!hs||eB){return}var hn=hu.options.resetSelectionOnContextMenu;if(hn&&hu.doc.sel.contains(hs)==-1){du(hu,cf)(hu.doc,fA(hs),ag)}var hp=hk.style.cssText,hx=ht.wrapper.style.cssText;var hw=ht.wrapper.offsetParent.getBoundingClientRect();ht.wrapper.style.cssText="position: static";hk.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(ho.clientY-hw.top-5)+"px; left: "+(ho.clientX-hw.left-5)+"px;\n z-index: 1000; background: "+(ef?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var hv;if(dt){hv=window.scrollY}hq.input.focus();if(dt){window.scrollTo(null,hv)}hq.input.reset();if(!hu.somethingSelected()){hk.value=ht.prevInput=" "}ht.contextMenuPending=hr;hq.selForContextMenu=hu.doc.sel;clearTimeout(hq.detectingSelectAll);function hm(){if(hk.selectionStart!=null){var hy=hu.somethingSelected();var hz="\u200b"+(hy?hk.value:"");hk.value="\u21da";hk.value=hz;ht.prevInput=hy?"":"\u200b";hk.selectionStart=1;hk.selectionEnd=hz.length;hq.selForContextMenu=hu.doc.sel}}function hr(){if(ht.contextMenuPending!=hr){return}ht.contextMenuPending=false;ht.wrapper.style.cssText=hx;hk.style.cssText=hp;if(ef&&n<9){hq.scrollbars.setScrollTop(hq.scroller.scrollTop=i)}if(hk.selectionStart!=null){if(!ef||(ef&&n<9)){hm()}var hy=0,hz=function(){if(hq.selForContextMenu==hu.doc.sel&&hk.selectionStart==0&&hk.selectionEnd>0&&ht.prevInput=="\u200b"){du(hu,au)(hu)}else{if(hy++<10){hq.detectingSelectAll=setTimeout(hz,500)}else{hq.selForContextMenu=null;hq.input.reset()}}};hq.detectingSelectAll=setTimeout(hz,200)}}if(ef&&n>=9){hm()}if(g9){e3(ho);var hl=function(){eP(window,"mouseup",hl);setTimeout(hr,20)};ci(window,"mouseup",hl)}else{setTimeout(hr,50)}};ad.prototype.readOnlyChanged=function(i){if(!i){this.reset()}this.textarea.disabled=i=="nocursor"};ad.prototype.setUneditable=function(){};ad.prototype.needsContentAttribute=false;function gu(hq,hr){hr=hr?aY(hr):{};hr.value=hq.value;if(!hr.tabindex&&hq.tabIndex){hr.tabindex=hq.tabIndex}if(!hr.placeholder&&hq.placeholder){hr.placeholder=hq.placeholder}if(hr.autofocus==null){var i=ej();hr.autofocus=i==hq||hq.getAttribute("autofocus")!=null&&i==document.body}function hn(){hq.value=hp.getValue()}var ho;if(hq.form){ci(hq.form,"submit",hn);if(!hr.leaveSubmitMethodAlone){var hk=hq.form;ho=hk.submit;try{var hm=hk.submit=function(){hn();hk.submit=ho;hk.submit();hk.submit=hm}}catch(hl){}}}hr.finishInit=function(hs){hs.save=hn;hs.getTextArea=function(){return hq};hs.toTextArea=function(){hs.toTextArea=isNaN;hn();hq.parentNode.removeChild(hs.getWrapperElement());hq.style.display="";if(hq.form){eP(hq.form,"submit",hn);if(typeof hq.form.submit=="function"){hq.form.submit=ho}}}};hq.style.display="none";var hp=L(function(hs){return hq.parentNode.insertBefore(hs,hq.nextSibling)},hr);return hp}function gz(i){i.off=eP;i.on=ci;i.wheelEventPixels=aI;i.Doc=aC;i.splitLines=gJ;i.countColumn=cc;i.findColumn=e2;i.isWordChar=gq;i.Pass=cy;i.signal=aN;i.Line=g4;i.changeEnd=dq;i.scrollbarModel=bz;i.Pos=ab;i.cmpPos=cD;i.modes=dZ;i.mimeModes=a3;i.resolveMode=hb;i.getMode=gm;i.modeExtensions=dW;i.extendMode=fj;i.copyState=cp;i.startState=cm;i.innerMode=g7;i.commands=fi;i.keyMap=fW;i.keyName=gb;i.isModifierKey=ff;i.lookupKey=k;i.normalizeKeyMap=c8;i.StringStream=fD;i.SharedTextMarker=z;i.TextMarker=V;i.LineWidget=d6;i.e_preventDefault=c7;i.e_stopPropagation=dX;i.e_stop=e3;i.addClass=gn;i.contains=ha;i.rmClass=h;i.keyNames=f1}fn(L);ek(L);var d="iter insert remove copy getEditor constructor".split(" ");for(var b4 in aC.prototype){if(aC.prototype.hasOwnProperty(b4)&&dP(d,b4)<0){L.prototype[b4]=(function(i){return function(){return i.apply(this.doc,arguments)}})(aC.prototype[b4])}}bS(aC);L.inputStyles={textarea:ad,contenteditable:d1};L.defineMode=function(i){if(!L.defaults.mode&&i!="null"){L.defaults.mode=i}e6.apply(this,arguments)};L.defineMIME=bD;L.defineMode("null",function(){return({token:function(i){return i.skipToEnd()}})});L.defineMIME("text/plain","null");L.defineExtension=function(i,hk){L.prototype[i]=hk};L.defineDocExtension=function(i,hk){aC.prototype[i]=hk};L.fromTextArea=gu;gz(L);L.version="5.46.0";return L})));(function(a){"function"==typeof a.define&&a.define("core",["codemirror.js"],function(b){a.CodeMirror=b})})(this);
|
data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){var b={autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true};var c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,allowMissingTagName:false,caseFold:false};a.defineMode("xml",function(m,y){var r=m.indentUnit;var z={};var l=y.htmlMode?b:c;for(var f in l){z[f]=l[f]}for(var f in y){z[f]=y[f]}var g,h;function p(G,F){function D(H){F.tokenize=H;return H(G,F)}var E=G.next();if(E=="<"){if(G.eat("!")){if(G.eat("[")){if(G.match("CDATA[")){return D(x("atom","]]>"))}else{return null}}else{if(G.match("--")){return D(x("comment","-->"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{if(z.allowMissingTagName&&C=="endTag"){h="tag bracket";return e(C,E,D)}else{h="error";return d}}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{if(z.allowMissingTagName&&D=="endTag"){h="tag bracket";return u(D,F,E)}else{h="error";return B}}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/<!\[CDATA\[/.test(D)){return 0}var C=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(C&&C[1]){while(F){if(F.tagName==C[2]){F=F.prev;break}else{if(z.implicitlyClosed.hasOwnProperty(F.tagName)){F=F.prev}else{break}}}}else{if(C){while(F){var E=z.contextGrabbers[F.tagName];if(E&&E.hasOwnProperty(C[2])){F=F.prev}else{break}}}}while(F&&F.prev&&!F.startOfLine){F=F.prev}if(F){return F.indent+r}else{return H.baseIndent||0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(ao,aA){var p=ao.indentUnit;var F=aA.statementIndent;var aT=aA.jsonld;var E=aA.json||aT;var h=aA.typescript;var aL=aA.wordCharacters||/[\w$\xa1-\uffff]/;var aJ=function(){function a7(bb){return{type:bb,style:"keyword"}}var a4=a7("keyword a"),ba=a7("keyword b"),a9=a7("keyword c"),a8=a7("keyword d");var a5=a7("operator"),a6={type:"atom",style:"atom"};return{"if":a7("if"),"while":a4,"with":a4,"else":ba,"do":ba,"try":ba,"finally":ba,"return":a8,"break":a8,"continue":a8,"new":a7("new"),"delete":a9,"void":a9,"throw":a9,"debugger":a7("debugger"),"var":a7("var"),"const":a7("var"),let:a7("var"),"function":a7("function"),"catch":a7("catch"),"for":a7("for"),"switch":a7("switch"),"case":a7("case"),"default":a7("default"),"in":a5,"typeof":a5,"instanceof":a5,"true":a6,"false":a6,"null":a6,"undefined":a6,"NaN":a6,"Infinity":a6,"this":a7("this"),"class":a7("class"),"super":a7("atom"),yield:a9,"export":a7("export"),"import":a7("import"),"extends":a9,await:a9}}();var Z=/[+\-*&%=<>!?|~^@]/;var aI=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function K(a7){var a5=false,a4,a6=false;while((a4=a7.next())!=null){if(!a5){if(a4=="/"&&!a6){return}if(a4=="["){a6=true}else{if(a6&&a4=="]"){a6=false}}}a5=!a5&&a4=="\\"}}var ae,L;function T(a6,a5,a4){ae=a6;L=a4;return a5}function ag(a8,a6){var a4=a8.next();if(a4=='"'||a4=="'"){a6.tokenize=ad(a4);return a6.tokenize(a8,a6)}else{if(a4=="."&&a8.match(/^\d+(?:[eE][+\-]?\d+)?/)){return T("number","number")}else{if(a4=="."&&a8.match("..")){return T("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(a4)){return T(a4)}else{if(a4=="="&&a8.eat(">")){return T("=>","operator")}else{if(a4=="0"&&a8.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i)){return T("number","number")}else{if(/\d/.test(a4)){a8.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/);return T("number","number")}else{if(a4=="/"){if(a8.eat("*")){a6.tokenize=aS;return aS(a8,a6)}else{if(a8.eat("/")){a8.skipToEnd();return T("comment","comment")}else{if(a1(a8,a6,1)){K(a8);a8.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return T("regexp","string-2")}else{a8.eat("=");return T("operator","operator",a8.current())}}}}else{if(a4=="`"){a6.tokenize=aV;return aV(a8,a6)}else{if(a4=="#"){a8.skipToEnd();return T("error","error")}else{if(Z.test(a4)){if(a4!=">"||!a6.lexical||a6.lexical.type!=">"){if(a8.eat("=")){if(a4=="!"||a4=="="){a8.eat("=")}}else{if(/[<>*+\-]/.test(a4)){a8.eat(a4);if(a4==">"){a8.eat(a4)}}}}return T("operator","operator",a8.current())}else{if(aL.test(a4)){a8.eatWhile(aL);var a7=a8.current();if(a6.lastType!="."){if(aJ.propertyIsEnumerable(a7)){var a5=aJ[a7];return T(a5.type,a5.style,a7)}if(a7=="async"&&a8.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,false)){return T("async","keyword",a7)}}return T("variable","variable",a7)}}}}}}}}}}}}}function ad(a4){return function(a8,a6){var a7=false,a5;if(aT&&a8.peek()=="@"&&a8.match(aI)){a6.tokenize=ag;return T("jsonld-keyword","meta")}while((a5=a8.next())!=null){if(a5==a4&&!a7){break}a7=!a7&&a5=="\\"}if(!a7){a6.tokenize=ag}return T("string","string")}}function aS(a7,a6){var a4=false,a5;while(a5=a7.next()){if(a5=="/"&&a4){a6.tokenize=ag;break}a4=(a5=="*")}return T("comment","comment")}function aV(a7,a5){var a6=false,a4;while((a4=a7.next())!=null){if(!a6&&(a4=="`"||a4=="$"&&a7.eat("{"))){a5.tokenize=ag;break}a6=!a6&&a4=="\\"}return T("quasi","string-2",a7.current())}var q="([{}])";function aP(bc,a6){if(a6.fatArrowAt){a6.fatArrowAt=null}var bb=bc.string.indexOf("=>",bc.start);if(bb<0){return}if(h){var a8=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(bc.string.slice(bc.start,bb));if(a8){bb=a8.index}}var a9=0,a7=false;for(var ba=bb-1;ba>=0;--ba){var a4=bc.string.charAt(ba);var a5=q.indexOf(a4);if(a5>=0&&a5<3){if(!a9){++ba;break}if(--a9==0){if(a4=="("){a7=true}break}}else{if(a5>=3&&a5<6){++a9}else{if(aL.test(a4)){a7=true}else{if(/["'\/]/.test(a4)){return}else{if(a7&&!a9){++ba;break}}}}}}if(a7&&!a9){a6.fatArrowAt=ba}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function R(a9,a5,a4,a8,a6,a7){this.indented=a9;this.column=a5;this.type=a4;this.prev=a6;this.info=a7;if(a8!=null){this.align=a8}}function x(a7,a6){for(var a5=a7.localVars;a5;a5=a5.next){if(a5.name==a6){return true}}for(var a4=a7.context;a4;a4=a4.prev){for(var a5=a4.vars;a5;a5=a5.next){if(a5.name==a6){return true}}}}function g(a8,a5,a4,a7,a9){var ba=a8.cc;J.state=a8;J.stream=a9;J.marked=null,J.cc=ba;J.style=a5;if(!a8.lexical.hasOwnProperty("align")){a8.lexical.align=true}while(true){var a6=ba.length?ba.pop():E?aE:aZ;if(a6(a4,a7)){while(ba.length&&ba[ba.length-1].lex){ba.pop()()}if(J.marked){return J.marked}if(a4=="variable"&&x(a8,a7)){return"variable-2"}return a5}}}var J={state:null,column:null,marked:null,cc:null};function ap(){for(var a4=arguments.length-1;a4>=0;a4--){J.cc.push(arguments[a4])}}function av(){ap.apply(null,arguments);return true}function f(a5,a6){for(var a4=a6;a4;a4=a4.next){if(a4.name==a5){return true}}return false}function aO(a4){var a5=J.state;J.marked="def";if(a5.context){if(a5.lexical.info=="var"&&a5.context&&a5.context.block){var a6=aN(a4,a5.context);if(a6!=null){a5.context=a6;return}}else{if(!f(a4,a5.localVars)){a5.localVars=new a0(a4,a5.localVars);return}}}if(aA.globalVars&&!f(a4,a5.globalVars)){a5.globalVars=new a0(a4,a5.globalVars)}}function aN(a5,a6){if(!a6){return null}else{if(a6.block){var a4=aN(a5,a6.prev);if(!a4){return null}if(a4==a6.prev){return a6}return new Q(a4,a6.vars,true)}else{if(f(a5,a6.vars)){return a6}else{return new Q(a6.prev,new a0(a5,a6.vars),false)}}}}function aB(a4){return a4=="public"||a4=="private"||a4=="protected"||a4=="abstract"||a4=="readonly"}function Q(a4,a5,a6){this.prev=a4;this.vars=a5;this.block=a6}function a0(a4,a5){this.name=a4;this.next=a5}var v=new a0("this",new a0("arguments",null));function B(){J.state.context=new Q(J.state.context,J.state.localVars,false);J.state.localVars=v}function am(){J.state.context=new Q(J.state.context,J.state.localVars,true);J.state.localVars=null}function C(){J.state.localVars=J.state.context.vars;J.state.context=J.state.context.prev}C.lex=true;function aX(a5,a6){var a4=function(){var a9=J.state,a7=a9.indented;if(a9.lexical.type=="stat"){a7=a9.lexical.indented}else{for(var a8=a9.lexical;a8&&a8.type==")"&&a8.align;a8=a8.prev){a7=a8.indented}}a9.lexical=new R(a7,J.stream.column(),a5,null,a9.lexical,a6)};a4.lex=true;return a4}function i(){var a4=J.state;if(a4.lexical.prev){if(a4.lexical.type==")"){a4.indented=a4.lexical.indented}a4.lexical=a4.lexical.prev}}i.lex=true;function w(a4){function a5(a6){if(a6==a4){return av()}else{if(a4==";"||a6=="}"||a6==")"||a6=="]"){return ap()}else{return av(a5)}}}return a5}function aZ(a4,a5){if(a4=="var"){return av(aX("vardef",a5),c,w(";"),i)}if(a4=="keyword a"){return av(aX("form"),aF,aZ,i)}if(a4=="keyword b"){return av(aX("form"),aZ,i)}if(a4=="keyword d"){return J.stream.match(/^\s*$/,false)?av():av(aX("stat"),az,w(";"),i)}if(a4=="debugger"){return av(w(";"))}if(a4=="{"){return av(aX("}"),am,D,i,C)}if(a4==";"){return av()}if(a4=="if"){if(J.state.lexical.info=="else"&&J.state.cc[J.state.cc.length-1]==i){J.state.cc.pop()()}return av(aX("form"),aF,aZ,i,d)}if(a4=="function"){return av(U)}if(a4=="for"){return av(aX("form"),z,aZ,i)}if(a4=="class"||(h&&a5=="interface")){J.marked="keyword";return av(aX("form"),aj,i)}if(a4=="variable"){if(h&&a5=="declare"){J.marked="keyword";return av(aZ)}else{if(h&&(a5=="module"||a5=="enum"||a5=="type")&&J.stream.match(/^\s*\w/,false)){J.marked="keyword";if(a5=="enum"){return av(aM)}else{if(a5=="type"){return av(k,w("operator"),k,w(";"))}else{return av(aX("form"),j,w("{"),aX("}"),D,i,i)}}}else{if(h&&a5=="namespace"){J.marked="keyword";return av(aX("form"),aE,D,i)}else{if(h&&a5=="abstract"){J.marked="keyword";return av(aZ)}else{return av(aX("stat"),a2)}}}}}if(a4=="switch"){return av(aX("form"),aF,w("{"),aX("}","switch"),am,D,i,i,C)}if(a4=="case"){return av(aE,w(":"))}if(a4=="default"){return av(w(":"))}if(a4=="catch"){return av(aX("form"),B,X,aZ,i,C)}if(a4=="export"){return av(aX("stat"),aY,i)}if(a4=="import"){return av(aX("stat"),aw,i)}if(a4=="async"){return av(aZ)}if(a5=="@"){return av(aE,aZ)}return ap(aX("stat"),aE,w(";"),i)}function X(a4){if(a4=="("){return av(au,w(")"))}}function aE(a4,a5){return an(a4,a5,false)}function aW(a4,a5){return an(a4,a5,true)}function aF(a4){if(a4!="("){return ap()}return av(aX(")"),aE,w(")"),i)}function an(a5,a6,a8){if(J.state.fatArrowAt==J.stream.start){var a4=a8?V:ak;if(a5=="("){return av(B,aX(")"),aK(au,")"),i,w("=>"),a4,C)}else{if(a5=="variable"){return ap(B,j,w("=>"),a4,C)}}}var a7=a8?l:ar;if(b.hasOwnProperty(a5)){return av(a7)}if(a5=="function"){return av(U,a7)}if(a5=="class"||(h&&a6=="interface")){J.marked="keyword";return av(aX("form"),O,i)}if(a5=="keyword c"||a5=="async"){return av(a8?aW:aE)}if(a5=="("){return av(aX(")"),az,w(")"),i,a7)}if(a5=="operator"||a5=="spread"){return av(a8?aW:aE)}if(a5=="["){return av(aX("]"),r,i,a7)}if(a5=="{"){return aQ(y,"}",null,a7)}if(a5=="quasi"){return ap(aa,a7)}if(a5=="new"){return av(N(a8))}if(a5=="import"){return av(aE)}return av()}function az(a4){if(a4.match(/[;\}\)\],]/)){return ap()}return ap(aE)}function ar(a4,a5){if(a4==","){return av(aE)}return l(a4,a5,false)}function l(a4,a6,a8){var a5=a8==false?ar:l;var a7=a8==false?aE:aW;if(a4=="=>"){return av(B,a8?V:ak,C)}if(a4=="operator"){if(/\+\+|--/.test(a6)||h&&a6=="!"){return av(a5)}if(h&&a6=="<"&&J.stream.match(/^([^>]|<.*?>)*>\s*\(/,false)){return av(aX(">"),aK(k,">"),i,a5)}if(a6=="?"){return av(aE,w(":"),a7)}return av(a7)}if(a4=="quasi"){return ap(aa,a5)}if(a4==";"){return}if(a4=="("){return aQ(aW,")","call",a5)}if(a4=="."){return av(aC,a5)}if(a4=="["){return av(aX("]"),az,w("]"),i,a5)}if(h&&a6=="as"){J.marked="keyword";return av(k,a5)}if(a4=="regexp"){J.state.lastType=J.marked="operator";J.stream.backUp(J.stream.pos-J.stream.start-1);return av(a7)}}function aa(a4,a5){if(a4!="quasi"){return ap()}if(a5.slice(a5.length-2)!="${"){return av(aa)}return av(aE,u)}function u(a4){if(a4=="}"){J.marked="string-2";J.state.tokenize=aV;return av(aa)}}function ak(a4){aP(J.stream,J.state);return ap(a4=="{"?aZ:aE)}function V(a4){aP(J.stream,J.state);return ap(a4=="{"?aZ:aW)}function N(a4){return function(a5){if(a5=="."){return av(a4?s:ai)}else{if(a5=="variable"&&h){return av(e,a4?l:ar)}else{return ap(a4?aW:aE)}}}}function ai(a4,a5){if(a5=="target"){J.marked="keyword";return av(ar)}}function s(a4,a5){if(a5=="target"){J.marked="keyword";return av(l)}}function a2(a4){if(a4==":"){return av(i,aZ)}return ap(ar,w(";"),i)}function aC(a4){if(a4=="variable"){J.marked="property";return av()}}function y(a5,a6){if(a5=="async"){J.marked="property";return av(y)}else{if(a5=="variable"||J.style=="keyword"){J.marked="property";if(a6=="get"||a6=="set"){return av(P)}var a4;if(h&&J.state.fatArrowAt==J.stream.start&&(a4=J.stream.match(/^\s*:\s*/,false))){J.state.fatArrowAt=J.stream.pos+a4[0].length}return av(S)}else{if(a5=="number"||a5=="string"){J.marked=aT?"property":(J.style+" property");return av(S)}else{if(a5=="jsonld-keyword"){return av(S)}else{if(h&&aB(a6)){J.marked="keyword";return av(y)}else{if(a5=="["){return av(aE,af,w("]"),S)}else{if(a5=="spread"){return av(aW,S)}else{if(a6=="*"){J.marked="keyword";return av(y)}else{if(a5==":"){return ap(S)}}}}}}}}}}function P(a4){if(a4!="variable"){return ap(S)}J.marked="property";return av(U)}function S(a4){if(a4==":"){return av(aW)}if(a4=="("){return ap(U)}}function aK(a7,a4,a5){function a6(a9,ba){if(a5?a5.indexOf(a9)>-1:a9==","){var a8=J.state.lexical;if(a8.info=="call"){a8.pos=(a8.pos||0)+1}return av(function(bb,bc){if(bb==a4||bc==a4){return ap()}return ap(a7)},a6)}if(a9==a4||ba==a4){return av()}return av(w(a4))}return function(a8,a9){if(a8==a4||a9==a4){return av()}return ap(a7,a6)}}function aQ(a7,a4,a6){for(var a5=3;a5<arguments.length;a5++){J.cc.push(arguments[a5])}return av(aX(a4,a6),aK(a7,a4),i)}function D(a4){if(a4=="}"){return av()}return ap(aZ,D)}function af(a4,a5){if(h){if(a4==":"){return av(k)}if(a5=="?"){return av(af)}}}function W(a4){if(h&&a4==":"){if(J.stream.match(/^\s*\w+\s+is\b/,false)){return av(aE,ab,k)}else{return av(k)}}}function ab(a4,a5){if(a5=="is"){J.marked="keyword";return av()}}function k(a4,a5){if(a5=="keyof"||a5=="typeof"){J.marked="keyword";return av(a5=="keyof"?k:aW)}if(a4=="variable"||a5=="void"){J.marked="type";return av(M)}if(a4=="string"||a4=="number"||a4=="atom"){return av(M)}if(a4=="["){return av(aX("]"),aK(k,"]",","),i,M)}if(a4=="{"){return av(aX("}"),aK(aD,"}",",;"),i,M)}if(a4=="("){return av(aK(aq,")"),ac)}if(a4=="<"){return av(aK(k,">"),k)}}function ac(a4){if(a4=="=>"){return av(k)}}function aD(a4,a5){if(a4=="variable"||J.style=="keyword"){J.marked="property";return av(aD)}else{if(a5=="?"){return av(aD)}else{if(a4==":"){return av(k)}else{if(a4=="["){return av(aE,af,w("]"),aD)}}}}}function aq(a4,a5){if(a4=="variable"&&J.stream.match(/^\s*[?:]/,false)||a5=="?"){return av(aq)}if(a4==":"){return av(k)}return ap(k)}function M(a4,a5){if(a5=="<"){return av(aX(">"),aK(k,">"),i,M)}if(a5=="|"||a4=="."||a5=="&"){return av(k)}if(a4=="["){return av(w("]"),M)}if(a5=="extends"||a5=="implements"){J.marked="keyword";return av(k)}}function e(a4,a5){if(a5=="<"){return av(aX(">"),aK(k,">"),i,M)}}function o(){return ap(k,ah)}function ah(a4,a5){if(a5=="="){return av(k)}}function c(a4,a5){if(a5=="enum"){J.marked="keyword";return av(aM)}return ap(j,af,at,al)}function j(a4,a5){if(h&&aB(a5)){J.marked="keyword";return av(j)}if(a4=="variable"){aO(a5);return av()}if(a4=="spread"){return av(j)}if(a4=="["){return aQ(j,"]")}if(a4=="{"){return aQ(aU,"}")}}function aU(a4,a5){if(a4=="variable"&&!J.stream.match(/^\s*:/,false)){aO(a5);return av(at)}if(a4=="variable"){J.marked="property"}if(a4=="spread"){return av(j)}if(a4=="}"){return ap()}return av(w(":"),j,at)}function at(a4,a5){if(a5=="="){return av(aW)}}function al(a4){if(a4==","){return av(c)}}function d(a4,a5){if(a4=="keyword b"&&a5=="else"){return av(aX("form","else"),aZ,i)}}function z(a4,a5){if(a5=="await"){return av(z)}if(a4=="("){return av(aX(")"),I,w(")"),i)}}function I(a4){if(a4=="var"){return av(c,w(";"),H)}if(a4==";"){return av(H)}if(a4=="variable"){return av(A)}return ap(aE,w(";"),H)}function A(a4,a5){if(a5=="in"||a5=="of"){J.marked="keyword";return av(aE)}return av(ar,H)}function H(a4,a5){if(a4==";"){return av(G)}if(a5=="in"||a5=="of"){J.marked="keyword";return av(aE)}return ap(aE,w(";"),G)}function G(a4){if(a4!=")"){av(aE)}}function U(a4,a5){if(a5=="*"){J.marked="keyword";return av(U)}if(a4=="variable"){aO(a5);return av(U)}if(a4=="("){return av(B,aX(")"),aK(au,")"),i,W,aZ,C)}if(h&&a5=="<"){return av(aX(">"),aK(o,">"),i,U)}}function au(a4,a5){if(a5=="@"){av(aE,au)}if(a4=="spread"){return av(au)}if(h&&aB(a5)){J.marked="keyword";return av(au)}return ap(j,af,at)}function O(a4,a5){if(a4=="variable"){return aj(a4,a5)}return Y(a4,a5)}function aj(a4,a5){if(a4=="variable"){aO(a5);return av(Y)}}function Y(a4,a5){if(a5=="<"){return av(aX(">"),aK(o,">"),i,Y)}if(a5=="extends"||a5=="implements"||(h&&a4==",")){if(a5=="implements"){J.marked="keyword"}return av(h?k:aE,Y)}if(a4=="{"){return av(aX("}"),t,i)}}function t(a4,a5){if(a4=="async"||(a4=="variable"&&(a5=="static"||a5=="get"||a5=="set"||(h&&aB(a5)))&&J.stream.match(/^\s+[\w$\xa1-\uffff]/,false))){J.marked="keyword";return av(t)}if(a4=="variable"||J.style=="keyword"){J.marked="property";return av(h?a3:U,t)}if(a4=="["){return av(aE,af,w("]"),h?a3:U,t)}if(a5=="*"){J.marked="keyword";return av(t)}if(a4==";"){return av(t)}if(a4=="}"){return av()}if(a5=="@"){return av(aE,t)}}function a3(a4,a5){if(a5=="?"){return av(a3)}if(a4==":"){return av(k,at)}if(a5=="="){return av(aW)}return ap(U)}function aY(a4,a5){if(a5=="*"){J.marked="keyword";return av(ay,w(";"))}if(a5=="default"){J.marked="keyword";return av(aE,w(";"))}if(a4=="{"){return av(aK(ax,"}"),ay,w(";"))}return ap(aZ)}function ax(a4,a5){if(a5=="as"){J.marked="keyword";return av(w("variable"))}if(a4=="variable"){return ap(aW,ax)}}function aw(a4){if(a4=="string"){return av()}if(a4=="("){return ap(aE)}return ap(aH,n,ay)}function aH(a4,a5){if(a4=="{"){return aQ(aH,"}")}if(a4=="variable"){aO(a5)}if(a5=="*"){J.marked="keyword"}return av(m)}function n(a4){if(a4==","){return av(aH,n)}}function m(a4,a5){if(a5=="as"){J.marked="keyword";return av(aH)}}function ay(a4,a5){if(a5=="from"){J.marked="keyword";return av(aE)}}function r(a4){if(a4=="]"){return av()}return ap(aK(aW,"]"))}function aM(){return ap(aX("form"),j,w("{"),aX("}"),aK(aR,"}"),i,i)}function aR(){return ap(j,at)}function aG(a5,a4){return a5.lastType=="operator"||a5.lastType==","||Z.test(a4.charAt(0))||/[,.]/.test(a4.charAt(0))}function a1(a6,a5,a4){return a5.tokenize==ag&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(a5.lastType)||(a5.lastType=="quasi"&&/\{\s*$/.test(a6.string.slice(0,a6.pos-(a4||0))))}return{startState:function(a5){var a4={tokenize:ag,lastType:"sof",cc:[],lexical:new R((a5||0)-p,0,"block",false),localVars:aA.localVars,context:aA.localVars&&new Q(null,null,false),indented:a5||0};if(aA.globalVars&&typeof aA.globalVars=="object"){a4.globalVars=aA.globalVars}return a4},token:function(a6,a5){if(a6.sol()){if(!a5.lexical.hasOwnProperty("align")){a5.lexical.align=false}a5.indented=a6.indentation();aP(a6,a5)}if(a5.tokenize!=aS&&a6.eatSpace()){return null}var a4=a5.tokenize(a6,a5);if(ae=="comment"){return a4}a5.lastType=ae=="operator"&&(L=="++"||L=="--")?"incdec":ae;return g(a5,a4,ae,L,a6)},indent:function(a4,a7){if(a4.tokenize==aS){return a.Pass}if(a4.tokenize!=ag){return 0}var bb=a7&&a7.charAt(0),bc=a4.lexical,ba;if(!/^\s*else\b/.test(a7)){for(var a6=a4.cc.length-1;a6>=0;--a6){var a8=a4.cc[a6];if(a8==i){bc=bc.prev}else{if(a8!=d){break}}}}while((bc.type=="stat"||bc.type=="form")&&(bb=="}"||((ba=a4.cc[a4.cc.length-1])&&(ba==ar||ba==l)&&!/^[,\.=+\-*:?[\(]/.test(a7)))){bc=bc.prev}if(F&&bc.type==")"&&bc.prev.type=="stat"){bc=bc.prev}var a9=bc.type,a5=bb==a9;if(a9=="vardef"){return bc.indented+(a4.lastType=="operator"||a4.lastType==","?bc.info.length+1:0)}else{if(a9=="form"&&bb=="{"){return bc.indented}else{if(a9=="form"){return bc.indented+p}else{if(a9=="stat"){return bc.indented+(aG(a4,a7)?F||p:0)}else{if(bc.info=="switch"&&!a5&&aA.doubleIndentSwitch!=false){return bc.indented+(/^(?:case|default)\b/.test(a7)?p:2*p)}else{if(bc.align){return bc.column+(a5?0:1)}else{return bc.indented+(a5?0:p)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:E?null:"/*",blockCommentEnd:E?null:"*/",blockCommentContinue:E?null:" * ",lineComment:E?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:E?"json":"javascript",jsonldMode:aT,jsonMode:E,expressionAllowed:a1,skipExpression:function(a4){var a5=a4.cc[a4.cc.length-1];if(a5==aE||a5==aW){a4.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Z,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Z.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},Y=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},X=J.counterDescriptors||{},O=J.colorKeywords||{},T=J.valueKeywords||{},M=J.allowNested,S=J.lineComment,V=J.supportsAtComponent===true;var C,N;function aa(ad,ae){C=ae;return ad}function ac(ag,af){var ae=ag.next();if(A[ae]){var ad=A[ae](ag,af);if(ad!==false){return ad}}if(ae=="@"){ag.eatWhile(/[\w\\\-]/);return aa("def",ag.current())}else{if(ae=="="||(ae=="~"||ae=="|")&&ag.eat("=")){return aa(null,"compare")}else{if(ae=='"'||ae=="'"){af.tokenize=K(ae);return af.tokenize(ag,af)}else{if(ae=="#"){ag.eatWhile(/[\w\\\-]/);return aa("atom","hash")}else{if(ae=="!"){ag.match(/^\s*\w*/);return aa("keyword","important")}else{if(/\d/.test(ae)||ae=="."&&ag.eat(/\d/)){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ae==="-"){if(/[\d.]/.test(ag.peek())){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ag.match(/^-[\w\\\-]+/)){ag.eatWhile(/[\w\\\-]/);if(ag.match(/^\s*:/,false)){return aa("variable-2","variable-definition")}return aa("variable-2","variable")}else{if(ag.match(/^\w+-/)){return aa("meta","meta")}}}}else{if(/[,+>*\/]/.test(ae)){return aa(null,"select-op")}else{if(ae=="."&&ag.match(/^-?[_a-z][_a-z0-9-]*/i)){return aa("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ae)){return aa(null,ae)}else{if(((ae=="u"||ae=="U")&&ag.match(/rl(-prefix)?\(/i))||((ae=="d"||ae=="D")&&ag.match("omain(",true,true))||((ae=="r"||ae=="R")&&ag.match("egexp(",true,true))){ag.backUp(1);af.tokenize=ab;return aa("property","word")}else{if(/[\w\\\-]/.test(ae)){ag.eatWhile(/[\w\\\-]/);return aa("property","word")}else{return aa(null,null)}}}}}}}}}}}}}function K(ad){return function(ah,af){var ag=false,ae;while((ae=ah.next())!=null){if(ae==ad&&!ag){if(ad==")"){ah.backUp(1)}break}ag=!ag&&ae=="\\"}if(ae==ad||!ag&&ad!=")"){af.tokenize=null}return aa("string","string")}}function ab(ae,ad){ae.next();if(!ae.match(/\s*[\"\')]/,false)){ad.tokenize=K(")")}else{ad.tokenize=null}return aa(null,"(")}function R(ae,ad,af){this.type=ae;this.indent=ad;this.prev=af}function G(af,ag,ae,ad){af.context=new R(ae,ag.indentation()+(ad===false?0:Q),af.context);return ae}function U(ad){if(ad.context.prev){ad.context=ad.context.prev}return ad.context.type}function z(ad,af,ae){return F[ae.context.type](ad,af,ae)}function W(ae,ag,af,ah){for(var ad=ah||1;ad>0;ad--){af.context=af.context.prev}return z(ae,ag,af)}function H(ae){var ad=ae.current().toLowerCase();if(T.hasOwnProperty(ad)){N="atom"}else{if(O.hasOwnProperty(ad)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ad,af,ae){if(ad=="{"){return G(ae,af,"block")}else{if(ad=="}"&&ae.context.prev){return U(ae)}else{if(V&&/@component/i.test(ad)){return G(ae,af,"atComponentBlock")}else{if(/^@(-moz-)?document$/i.test(ad)){return G(ae,af,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/i.test(ad)){return G(ae,af,"atBlock")}else{if(/^@(font-face|counter-style)/i.test(ad)){ae.stateArg=ad;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ad)){return"keyframes"}else{if(ad&&ad.charAt(0)=="@"){return G(ae,af,"at")}else{if(ad=="hash"){N="builtin"}else{if(ad=="word"){N="tag"}else{if(ad=="variable-definition"){return"maybeprop"}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}else{if(ad==":"){return"pseudo"}else{if(M&&ad=="("){return G(ae,af,"parens")}}}}}}}}}}}}}}return ae.context.type};F.block=function(ad,ag,ae){if(ad=="word"){var af=ag.current().toLowerCase();if(I.hasOwnProperty(af)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(af)){N="string-2";return"maybeprop"}else{if(M){N=ag.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ad=="meta"){return"block"}else{if(!M&&(ad=="hash"||ad=="qualifier")){N="error";return"block"}else{return F.top(ad,ag,ae)}}}};F.maybeprop=function(ad,af,ae){if(ad==":"){return G(ae,af,"prop")}return z(ad,af,ae)};F.prop=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"&&M){return G(ae,af,"propBlock")}if(ad=="}"||ad=="{"){return W(ad,af,ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(af.current())){N+=" error"}else{if(ad=="word"){H(af)}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}}}return"prop"};F.propBlock=function(ae,ad,af){if(ae=="}"){return U(af)}if(ae=="word"){N="property";return"maybeprop"}return af.context.type};F.parens=function(ad,af,ae){if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad==")"){return U(ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="interpolation"){return G(ae,af,"interpolation")}if(ad=="word"){H(af)}return"parens"};F.pseudo=function(ad,af,ae){if(ad=="meta"){return"pseudo"}if(ad=="word"){N="variable-3";return ae.context.type}return z(ad,af,ae)};F.documentTypes=function(ad,af,ae){if(ad=="word"&&y.hasOwnProperty(af.current())){N="tag";return ae.context.type}else{return F.atBlock(ad,af,ae)}};F.atBlock=function(ad,ag,ae){if(ad=="("){return G(ae,ag,"atBlock_parens")}if(ad=="}"||ad==";"){return W(ad,ag,ae)}if(ad=="{"){return U(ae)&&G(ae,ag,M?"block":"top")}if(ad=="interpolation"){return G(ae,ag,"interpolation")}if(ad=="word"){var af=ag.current().toLowerCase();if(af=="only"||af=="not"||af=="and"||af=="or"){N="keyword"}else{if(Y.hasOwnProperty(af)){N="attribute"}else{if(L.hasOwnProperty(af)){N="property"}else{if(P.hasOwnProperty(af)){N="keyword"}else{if(I.hasOwnProperty(af)){N="property"}else{if(B.hasOwnProperty(af)){N="string-2"}else{if(T.hasOwnProperty(af)){N="atom"}else{if(O.hasOwnProperty(af)){N="keyword"}else{N="error"}}}}}}}}}return ae.context.type};F.atComponentBlock=function(ad,af,ae){if(ad=="}"){return W(ad,af,ae)}if(ad=="{"){return U(ae)&&G(ae,af,M?"block":"top",false)}if(ad=="word"){N="error"}return ae.context.type};F.atBlock_parens=function(ad,af,ae){if(ad==")"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae,2)}return F.atBlock(ad,af,ae)};F.restricted_atBlock_before=function(ad,af,ae){if(ad=="{"){return G(ae,af,"restricted_atBlock")}if(ad=="word"&&ae.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ad,af,ae)};F.restricted_atBlock=function(ad,af,ae){if(ad=="}"){ae.stateArg=null;return U(ae)}if(ad=="word"){if((ae.stateArg=="@font-face"&&!E.hasOwnProperty(af.current().toLowerCase()))||(ae.stateArg=="@counter-style"&&!X.hasOwnProperty(af.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ad,af,ae){if(ad=="word"){N="variable";return"keyframes"}if(ad=="{"){return G(ae,af,"top")}return z(ad,af,ae)};F.at=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad=="word"){N="tag"}else{if(ad=="hash"){N="builtin"}}return"at"};F.interpolation=function(ad,af,ae){if(ad=="}"){return U(ae)}if(ad=="{"||ad==";"){return W(ad,af,ae)}if(ad=="word"){N="variable"}else{if(ad!="variable"&&ad!="("&&ad!=")"){N="error"}}return"interpolation"};return{startState:function(ad){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ad||0,null)}},token:function(af,ae){if(!ae.tokenize&&af.eatSpace()){return null}var ad=(ae.tokenize||ac)(af,ae);if(ad&&typeof ad=="object"){C=ad[1];ad=ad[0]}N=ad;if(C!="comment"){ae.state=F[ae.state](C,af,ae)}return N},indent:function(ah,af){var ae=ah.context,ag=af&&af.charAt(0);var ad=ae.indent;if(ae.type=="prop"&&(ag=="}"||ag==")")){ae=ae.prev}if(ae.prev){if(ag=="}"&&(ae.type=="block"||ae.type=="top"||ae.type=="interpolation"||ae.type=="restricted_atBlock")){ae=ae.prev;ad=ae.indent}else{if(ag==")"&&(ae.type=="parens"||ae.type=="atBlock_parens")||ag=="{"&&(ae.type=="at"||ae.type=="atBlock")){ad=Math.max(0,ae.indent-Q)}}}return ad},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:S,fold:"brace"}});function g(A){var z={};for(var y=0;y<A.length;++y){z[A[y].toLowerCase()]=true}return z}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=g(b);var x=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],i=g(x);var l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],p=g(l);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var n=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(n);var t=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(t);var q=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],u=g(q);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],m=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],s=g(j);var o=k.concat(b).concat(x).concat(l).concat(d).concat(n).concat(c).concat(j);r.registerHelper("hintWords","css",o);function w(B,A){var y=false,z;while((z=B.next())!=null){if(y&&z=="/"){A.tokenize=null;break}y=(z=="*")}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:a,mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css"});r.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,lineComment:"//",tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},":":function(y){if(y.match(/\s*\{/,false)){return[null,null]}return false},"$":function(y){y.match(/^[\w-]+/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(y){if(!y.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});r.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,lineComment:"//",tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},"@":function(y){if(y.eat("{")){return[null,"interpolation"]}if(y.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,false)){return false}y.eatWhile(/[\w\\\-]/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"});r.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:v,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,supportsAtComponent:true,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css",helperType:"gss"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(d){var g={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function f(n,j,k){var m=n.current(),l=m.search(j);if(l>-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?/^\s*(.*?)\s*$/.exec(k[2])[1]:""}function i(k,j){return new RegExp((j?"^":"")+"</s*"+k+"s*>","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k<l.length;k++){var j=l[k];if(!j[0]||j[1].test(a(m,j[0]))){return j[2]}}}d.defineMode("htmlmixed",function(k,o){var q=d.getMode(k,{name:"xml",htmlMode:true,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag});var j={};var p=o&&o.tags,n=o&&o.scriptTypes;h(g,j);if(p){h(p,j)}if(n){for(var m=n.length-1;m>=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=d.startState(q);return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(t,s,r){if(!t.localMode||/^\s*<\//.test(s)){return q.indent(t.htmlState,s)}else{if(t.localMode.indent){return t.localMode.indent(t.localState,s,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});CodeMirror.defineMode("bbcodemixed",function(c){var f,e,g,d,h=CodeMirror.getMode(c,"htmlmixed"),b=CodeMirror.getMode(c,"bbcode"),f={bbCodeLiteral:"literal"};if(c.hasOwnProperty("bbCodeLiteral")){f.bbCodeLiteral=c.bbCodeLiteral}function a(i){return i.replace(/([\[\]\.\-\+\<\>\?\:\(\)\{\}])/g,"\\$1")}e={hasLeftDelimeter:/.*\[/,htmlHasLeftDelimeter:/[^\<\>]*\[/,literalOpen:new RegExp(a("["+f.bbCodeLiteral+"]")),literalClose:new RegExp(a("[/"+f.bbCodeLiteral+"]"))};g={chain:function(j,i,k){i.tokenize=k;return k(j,i)},cleanChain:function(j,i,k){i.tokenize=null;i.localState=null;i.localMode=null;return(typeof k=="string")?(k?k:null):k(j,i)},maybeBackup:function(o,j,k){j=a(j);var n=o.current();var l=n.search(j),i;if(l>-1){o.backUp(n.length-l)}else{if(i=n.match(/<\/?$/)){o.backUp(n.length);if(!o.match(j,false)){o.match(n[0])}}}return k}};d={html:function(j,i){if(!i.inLiteral&&j.match(e.htmlHasLeftDelimeter,false)&&i.htmlMixedState.htmlState.tagName===null){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}else{if(!i.inLiteral&&j.match("[",false)){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}}return h.token(j,i.htmlMixedState)},bbcode:function(j,i){if(j.match("]",false)){j.eat("]");i.tokenize=d.html;i.localMode=h;i.localState=i.htmlMixedState;return"tag"}return g.maybeBackup(j,"]",b.token(j,i.localState))},inBlock:function(j,i){return function(l,k){while(!l.eol()){if(l.match(i)){g.cleanChain(l,k,"");break}l.next()}return j}}};return{startState:function(){var i=h.startState();return{token:d.html,localMode:null,localState:null,htmlMixedState:i,tokenize:null,inLiteral:false}},copyState:function(k){var j=null,i=(k.tokenize||k.token);if(k.localState){j=CodeMirror.copyState((i!=d.html?b:h),k.localState)}return{token:k.token,tokenize:k.tokenize,localMode:k.localMode,localState:j,htmlMixedState:CodeMirror.copyState(h,k.htmlMixedState),inLiteral:k.inLiteral}},token:function(k,j){if(k.match("[",false)){if(!j.inLiteral&&k.match(e.literalOpen,true)){j.inLiteral=true;return"keyword"}else{if(j.inLiteral&&k.match(e.literalClose,true)){j.inLiteral=false;return"keyword"}}}if(j.inLiteral&&j.localState!=j.htmlMixedState){j.tokenize=d.html;j.localMode=h;j.localState=j.htmlMixedState}var i=(j.tokenize||j.token)(k,j);return i},indent:function(j,i){if(j.localMode==b||(j.inLiteral&&!j.localMode)||e.hasLeftDelimeter.test(i)){return CodeMirror.Pass}return h.indent(j.htmlMixedState,i)},innerMode:function(i){return{state:i.localState||i.htmlMixedState,mode:i.localMode||h}}}},"xml","javascript","css");CodeMirror.defineMIME("text/x-bbcode","bbcodemixed");
|
1
|
+
(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){var b={autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true};var c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,allowMissingTagName:false,caseFold:false};a.defineMode("xml",function(m,y){var r=m.indentUnit;var z={};var l=y.htmlMode?b:c;for(var f in l){z[f]=l[f]}for(var f in y){z[f]=y[f]}var g,h;function p(G,F){function D(H){F.tokenize=H;return H(G,F)}var E=G.next();if(E=="<"){if(G.eat("!")){if(G.eat("[")){if(G.match("CDATA[")){return D(x("atom","]]>"))}else{return null}}else{if(G.match("--")){return D(x("comment","-->"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{if(z.allowMissingTagName&&C=="endTag"){h="tag bracket";return e(C,E,D)}else{h="error";return d}}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{if(z.allowMissingTagName&&D=="endTag"){h="tag bracket";return u(D,F,E)}else{h="error";return B}}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/<!\[CDATA\[/.test(D)){return 0}var C=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(C&&C[1]){while(F){if(F.tagName==C[2]){F=F.prev;break}else{if(z.implicitlyClosed.hasOwnProperty(F.tagName)){F=F.prev}else{break}}}}else{if(C){while(F){var E=z.contextGrabbers[F.tagName];if(E&&E.hasOwnProperty(C[2])){F=F.prev}else{break}}}}while(F&&F.prev&&!F.startOfLine){F=F.prev}if(F){return F.indent+r}else{return H.baseIndent||0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(an,aA){var p=an.indentUnit;var F=aA.statementIndent;var aT=aA.jsonld;var D=aA.json||aT;var h=aA.typescript;var aL=aA.wordCharacters||/[\w$\xa1-\uffff]/;var aJ=function(){function a8(bc){return{type:bc,style:"keyword"}}var a5=a8("keyword a"),bb=a8("keyword b"),ba=a8("keyword c"),a9=a8("keyword d");var a6=a8("operator"),a7={type:"atom",style:"atom"};return{"if":a8("if"),"while":a5,"with":a5,"else":bb,"do":bb,"try":bb,"finally":bb,"return":a9,"break":a9,"continue":a9,"new":a8("new"),"delete":ba,"void":ba,"throw":ba,"debugger":a8("debugger"),"var":a8("var"),"const":a8("var"),let:a8("var"),"function":a8("function"),"catch":a8("catch"),"for":a8("for"),"switch":a8("switch"),"case":a8("case"),"default":a8("default"),"in":a6,"typeof":a6,"instanceof":a6,"true":a7,"false":a7,"null":a7,"undefined":a7,"NaN":a7,"Infinity":a7,"this":a8("this"),"class":a8("class"),"super":a8("atom"),yield:ba,"export":a8("export"),"import":a8("import"),"extends":ba,await:ba}}();var Y=/[+\-*&%=<>!?|~^@]/;var aI=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function J(a8){var a6=false,a5,a7=false;while((a5=a8.next())!=null){if(!a6){if(a5=="/"&&!a7){return}if(a5=="["){a7=true}else{if(a7&&a5=="]"){a7=false}}}a6=!a6&&a5=="\\"}}var ad,K;function S(a7,a6,a5){ad=a7;K=a5;return a6}function af(a9,a7){var a5=a9.next();if(a5=='"'||a5=="'"){a7.tokenize=ac(a5);return a7.tokenize(a9,a7)}else{if(a5=="."&&a9.match(/^\d+(?:[eE][+\-]?\d+)?/)){return S("number","number")}else{if(a5=="."&&a9.match("..")){return S("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(a5)){return S(a5)}else{if(a5=="="&&a9.eat(">")){return S("=>","operator")}else{if(a5=="0"&&a9.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i)){return S("number","number")}else{if(/\d/.test(a5)){a9.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/);return S("number","number")}else{if(a5=="/"){if(a9.eat("*")){a7.tokenize=aS;return aS(a9,a7)}else{if(a9.eat("/")){a9.skipToEnd();return S("comment","comment")}else{if(a1(a9,a7,1)){J(a9);a9.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return S("regexp","string-2")}else{a9.eat("=");return S("operator","operator",a9.current())}}}}else{if(a5=="`"){a7.tokenize=aV;return aV(a9,a7)}else{if(a5=="#"){a9.skipToEnd();return S("error","error")}else{if(Y.test(a5)){if(a5!=">"||!a7.lexical||a7.lexical.type!=">"){if(a9.eat("=")){if(a5=="!"||a5=="="){a9.eat("=")}}else{if(/[<>*+\-]/.test(a5)){a9.eat(a5);if(a5==">"){a9.eat(a5)}}}}return S("operator","operator",a9.current())}else{if(aL.test(a5)){a9.eatWhile(aL);var a8=a9.current();if(a7.lastType!="."){if(aJ.propertyIsEnumerable(a8)){var a6=aJ[a8];return S(a6.type,a6.style,a8)}if(a8=="async"&&a9.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,false)){return S("async","keyword",a8)}}return S("variable","variable",a8)}}}}}}}}}}}}}function ac(a5){return function(a9,a7){var a8=false,a6;if(aT&&a9.peek()=="@"&&a9.match(aI)){a7.tokenize=af;return S("jsonld-keyword","meta")}while((a6=a9.next())!=null){if(a6==a5&&!a8){break}a8=!a8&&a6=="\\"}if(!a8){a7.tokenize=af}return S("string","string")}}function aS(a8,a7){var a5=false,a6;while(a6=a8.next()){if(a6=="/"&&a5){a7.tokenize=af;break}a5=(a6=="*")}return S("comment","comment")}function aV(a8,a6){var a7=false,a5;while((a5=a8.next())!=null){if(!a7&&(a5=="`"||a5=="$"&&a8.eat("{"))){a6.tokenize=af;break}a7=!a7&&a5=="\\"}return S("quasi","string-2",a8.current())}var q="([{}])";function aP(bd,a7){if(a7.fatArrowAt){a7.fatArrowAt=null}var bc=bd.string.indexOf("=>",bd.start);if(bc<0){return}if(h){var a9=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(bd.string.slice(bd.start,bc));if(a9){bc=a9.index}}var ba=0,a8=false;for(var bb=bc-1;bb>=0;--bb){var a5=bd.string.charAt(bb);var a6=q.indexOf(a5);if(a6>=0&&a6<3){if(!ba){++bb;break}if(--ba==0){if(a5=="("){a8=true}break}}else{if(a6>=3&&a6<6){++ba}else{if(aL.test(a5)){a8=true}else{if(/["'\/]/.test(a5)){return}else{if(a8&&!ba){++bb;break}}}}}}if(a8&&!ba){a7.fatArrowAt=bb}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function Q(ba,a6,a5,a9,a7,a8){this.indented=ba;this.column=a6;this.type=a5;this.prev=a7;this.info=a8;if(a9!=null){this.align=a9}}function x(a8,a7){for(var a6=a8.localVars;a6;a6=a6.next){if(a6.name==a7){return true}}for(var a5=a8.context;a5;a5=a5.prev){for(var a6=a5.vars;a6;a6=a6.next){if(a6.name==a7){return true}}}}function g(a9,a6,a5,a8,ba){var bb=a9.cc;I.state=a9;I.stream=ba;I.marked=null,I.cc=bb;I.style=a6;if(!a9.lexical.hasOwnProperty("align")){a9.lexical.align=true}while(true){var a7=bb.length?bb.pop():D?aE:aZ;if(a7(a5,a8)){while(bb.length&&bb[bb.length-1].lex){bb.pop()()}if(I.marked){return I.marked}if(a5=="variable"&&x(a9,a8)){return"variable-2"}return a6}}}var I={state:null,column:null,marked:null,cc:null};function ap(){for(var a5=arguments.length-1;a5>=0;a5--){I.cc.push(arguments[a5])}}function av(){ap.apply(null,arguments);return true}function f(a6,a7){for(var a5=a7;a5;a5=a5.next){if(a5.name==a6){return true}}return false}function aO(a5){var a6=I.state;I.marked="def";if(a6.context){if(a6.lexical.info=="var"&&a6.context&&a6.context.block){var a7=aN(a5,a6.context);if(a7!=null){a6.context=a7;return}}else{if(!f(a5,a6.localVars)){a6.localVars=new a0(a5,a6.localVars);return}}}if(aA.globalVars&&!f(a5,a6.globalVars)){a6.globalVars=new a0(a5,a6.globalVars)}}function aN(a6,a7){if(!a7){return null}else{if(a7.block){var a5=aN(a6,a7.prev);if(!a5){return null}if(a5==a7.prev){return a7}return new P(a5,a7.vars,true)}else{if(f(a6,a7.vars)){return a7}else{return new P(a7.prev,new a0(a6,a7.vars),false)}}}}function aB(a5){return a5=="public"||a5=="private"||a5=="protected"||a5=="abstract"||a5=="readonly"}function P(a5,a6,a7){this.prev=a5;this.vars=a6;this.block=a7}function a0(a5,a6){this.name=a5;this.next=a6}var v=new a0("this",new a0("arguments",null));function A(){I.state.context=new P(I.state.context,I.state.localVars,false);I.state.localVars=v}function al(){I.state.context=new P(I.state.context,I.state.localVars,true);I.state.localVars=null}function B(){I.state.localVars=I.state.context.vars;I.state.context=I.state.context.prev}B.lex=true;function aX(a6,a7){var a5=function(){var ba=I.state,a8=ba.indented;if(ba.lexical.type=="stat"){a8=ba.lexical.indented}else{for(var a9=ba.lexical;a9&&a9.type==")"&&a9.align;a9=a9.prev){a8=a9.indented}}ba.lexical=new Q(a8,I.stream.column(),a6,null,ba.lexical,a7)};a5.lex=true;return a5}function i(){var a5=I.state;if(a5.lexical.prev){if(a5.lexical.type==")"){a5.indented=a5.lexical.indented}a5.lexical=a5.lexical.prev}}i.lex=true;function w(a5){function a6(a7){if(a7==a5){return av()}else{if(a5==";"||a7=="}"||a7==")"||a7=="]"){return ap()}else{return av(a6)}}}return a6}function aZ(a5,a6){if(a5=="var"){return av(aX("vardef",a6),c,w(";"),i)}if(a5=="keyword a"){return av(aX("form"),aF,aZ,i)}if(a5=="keyword b"){return av(aX("form"),aZ,i)}if(a5=="keyword d"){return I.stream.match(/^\s*$/,false)?av():av(aX("stat"),az,w(";"),i)}if(a5=="debugger"){return av(w(";"))}if(a5=="{"){return av(aX("}"),al,C,i,B)}if(a5==";"){return av()}if(a5=="if"){if(I.state.lexical.info=="else"&&I.state.cc[I.state.cc.length-1]==i){I.state.cc.pop()()}return av(aX("form"),aF,aZ,i,d)}if(a5=="function"){return av(T)}if(a5=="for"){return av(aX("form"),z,aZ,i)}if(a5=="class"||(h&&a6=="interface")){I.marked="keyword";return av(aX("form",a5=="class"?a5:a6),ai,i)}if(a5=="variable"){if(h&&a6=="declare"){I.marked="keyword";return av(aZ)}else{if(h&&(a6=="module"||a6=="enum"||a6=="type")&&I.stream.match(/^\s*\w/,false)){I.marked="keyword";if(a6=="enum"){return av(aM)}else{if(a6=="type"){return av(ao,w("operator"),k,w(";"))}else{return av(aX("form"),j,w("{"),aX("}"),C,i,i)}}}else{if(h&&a6=="namespace"){I.marked="keyword";return av(aX("form"),aE,aZ,i)}else{if(h&&a6=="abstract"){I.marked="keyword";return av(aZ)}else{return av(aX("stat"),a2)}}}}}if(a5=="switch"){return av(aX("form"),aF,w("{"),aX("}","switch"),al,C,i,i,B)}if(a5=="case"){return av(aE,w(":"))}if(a5=="default"){return av(w(":"))}if(a5=="catch"){return av(aX("form"),A,W,aZ,i,B)}if(a5=="export"){return av(aX("stat"),aY,i)}if(a5=="import"){return av(aX("stat"),aw,i)}if(a5=="async"){return av(aZ)}if(a6=="@"){return av(aE,aZ)}return ap(aX("stat"),aE,w(";"),i)}function W(a5){if(a5=="("){return av(au,w(")"))}}function aE(a5,a6){return am(a5,a6,false)}function aW(a5,a6){return am(a5,a6,true)}function aF(a5){if(a5!="("){return ap()}return av(aX(")"),aE,w(")"),i)}function am(a6,a7,a9){if(I.state.fatArrowAt==I.stream.start){var a5=a9?U:aj;if(a6=="("){return av(A,aX(")"),aK(au,")"),i,w("=>"),a5,B)}else{if(a6=="variable"){return ap(A,j,w("=>"),a5,B)}}}var a8=a9?l:ar;if(b.hasOwnProperty(a6)){return av(a8)}if(a6=="function"){return av(T,a8)}if(a6=="class"||(h&&a7=="interface")){I.marked="keyword";return av(aX("form"),N,i)}if(a6=="keyword c"||a6=="async"){return av(a9?aW:aE)}if(a6=="("){return av(aX(")"),az,w(")"),i,a8)}if(a6=="operator"||a6=="spread"){return av(a9?aW:aE)}if(a6=="["){return av(aX("]"),r,i,a8)}if(a6=="{"){return aQ(y,"}",null,a8)}if(a6=="quasi"){return ap(Z,a8)}if(a6=="new"){return av(M(a9))}if(a6=="import"){return av(aE)}return av()}function az(a5){if(a5.match(/[;\}\)\],]/)){return ap()}return ap(aE)}function ar(a5,a6){if(a5==","){return av(aE)}return l(a5,a6,false)}function l(a5,a7,a9){var a6=a9==false?ar:l;var a8=a9==false?aE:aW;if(a5=="=>"){return av(A,a9?U:aj,B)}if(a5=="operator"){if(/\+\+|--/.test(a7)||h&&a7=="!"){return av(a6)}if(h&&a7=="<"&&I.stream.match(/^([^>]|<.*?>)*>\s*\(/,false)){return av(aX(">"),aK(k,">"),i,a6)}if(a7=="?"){return av(aE,w(":"),a8)}return av(a8)}if(a5=="quasi"){return ap(Z,a6)}if(a5==";"){return}if(a5=="("){return aQ(aW,")","call",a6)}if(a5=="."){return av(aC,a6)}if(a5=="["){return av(aX("]"),az,w("]"),i,a6)}if(h&&a7=="as"){I.marked="keyword";return av(k,a6)}if(a5=="regexp"){I.state.lastType=I.marked="operator";I.stream.backUp(I.stream.pos-I.stream.start-1);return av(a8)}}function Z(a5,a6){if(a5!="quasi"){return ap()}if(a6.slice(a6.length-2)!="${"){return av(Z)}return av(aE,u)}function u(a5){if(a5=="}"){I.marked="string-2";I.state.tokenize=aV;return av(Z)}}function aj(a5){aP(I.stream,I.state);return ap(a5=="{"?aZ:aE)}function U(a5){aP(I.stream,I.state);return ap(a5=="{"?aZ:aW)}function M(a5){return function(a6){if(a6=="."){return av(a5?s:ah)}else{if(a6=="variable"&&h){return av(e,a5?l:ar)}else{return ap(a5?aW:aE)}}}}function ah(a5,a6){if(a6=="target"){I.marked="keyword";return av(ar)}}function s(a5,a6){if(a6=="target"){I.marked="keyword";return av(l)}}function a2(a5){if(a5==":"){return av(i,aZ)}return ap(ar,w(";"),i)}function aC(a5){if(a5=="variable"){I.marked="property";return av()}}function y(a6,a7){if(a6=="async"){I.marked="property";return av(y)}else{if(a6=="variable"||I.style=="keyword"){I.marked="property";if(a7=="get"||a7=="set"){return av(O)}var a5;if(h&&I.state.fatArrowAt==I.stream.start&&(a5=I.stream.match(/^\s*:\s*/,false))){I.state.fatArrowAt=I.stream.pos+a5[0].length}return av(R)}else{if(a6=="number"||a6=="string"){I.marked=aT?"property":(I.style+" property");return av(R)}else{if(a6=="jsonld-keyword"){return av(R)}else{if(h&&aB(a7)){I.marked="keyword";return av(y)}else{if(a6=="["){return av(aE,ae,w("]"),R)}else{if(a6=="spread"){return av(aW,R)}else{if(a7=="*"){I.marked="keyword";return av(y)}else{if(a6==":"){return ap(R)}}}}}}}}}}function O(a5){if(a5!="variable"){return ap(R)}I.marked="property";return av(T)}function R(a5){if(a5==":"){return av(aW)}if(a5=="("){return ap(T)}}function aK(a8,a5,a6){function a7(ba,bb){if(a6?a6.indexOf(ba)>-1:ba==","){var a9=I.state.lexical;if(a9.info=="call"){a9.pos=(a9.pos||0)+1}return av(function(bc,bd){if(bc==a5||bd==a5){return ap()}return ap(a8)},a7)}if(ba==a5||bb==a5){return av()}if(a6&&a6.indexOf(";")>-1){return ap(a8)}return av(w(a5))}return function(a9,ba){if(a9==a5||ba==a5){return av()}return ap(a8,a7)}}function aQ(a8,a5,a7){for(var a6=3;a6<arguments.length;a6++){I.cc.push(arguments[a6])}return av(aX(a5,a7),aK(a8,a5),i)}function C(a5){if(a5=="}"){return av()}return ap(aZ,C)}function ae(a5,a6){if(h){if(a5==":"||a6=="in"){return av(k)}if(a6=="?"){return av(ae)}}}function V(a5){if(h&&a5==":"){if(I.stream.match(/^\s*\w+\s+is\b/,false)){return av(aE,aa,k)}else{return av(k)}}}function aa(a5,a6){if(a6=="is"){I.marked="keyword";return av()}}function k(a5,a6){if(a6=="keyof"||a6=="typeof"||a6=="infer"){I.marked="keyword";return av(a6=="typeof"?aW:k)}if(a5=="variable"||a6=="void"){I.marked="type";return av(L)}if(a6=="|"||a6=="&"){return av(k)}if(a5=="string"||a5=="number"||a5=="atom"){return av(L)}if(a5=="["){return av(aX("]"),aK(k,"]",","),i,L)}if(a5=="{"){return av(aX("}"),aK(aD,"}",",;"),i,L)}if(a5=="("){return av(aK(aq,")"),ab,L)}if(a5=="<"){return av(aK(k,">"),k)}}function ab(a5){if(a5=="=>"){return av(k)}}function aD(a5,a6){if(a5=="variable"||I.style=="keyword"){I.marked="property";return av(aD)}else{if(a6=="?"||a5=="number"||a5=="string"){return av(aD)}else{if(a5==":"){return av(k)}else{if(a5=="["){return av(w("variable"),ae,w("]"),aD)}else{if(a5=="("){return ap(a4,aD)}}}}}}function aq(a5,a6){if(a5=="variable"&&I.stream.match(/^\s*[?:]/,false)||a6=="?"){return av(aq)}if(a5==":"){return av(k)}if(a5=="spread"){return av(aq)}return ap(k)}function L(a5,a6){if(a6=="<"){return av(aX(">"),aK(k,">"),i,L)}if(a6=="|"||a5=="."||a6=="&"){return av(k)}if(a5=="["){return av(k,w("]"),L)}if(a6=="extends"||a6=="implements"){I.marked="keyword";return av(k)}if(a6=="?"){return av(k,w(":"),k)}}function e(a5,a6){if(a6=="<"){return av(aX(">"),aK(k,">"),i,L)}}function o(){return ap(k,ag)}function ag(a5,a6){if(a6=="="){return av(k)}}function c(a5,a6){if(a6=="enum"){I.marked="keyword";return av(aM)}return ap(j,ae,at,ak)}function j(a5,a6){if(h&&aB(a6)){I.marked="keyword";return av(j)}if(a5=="variable"){aO(a6);return av()}if(a5=="spread"){return av(j)}if(a5=="["){return aQ(E,"]")}if(a5=="{"){return aQ(aU,"}")}}function aU(a5,a6){if(a5=="variable"&&!I.stream.match(/^\s*:/,false)){aO(a6);return av(at)}if(a5=="variable"){I.marked="property"}if(a5=="spread"){return av(j)}if(a5=="}"){return ap()}if(a5=="["){return av(aE,w("]"),w(":"),aU)}return av(w(":"),j,at)}function E(){return ap(j,at)}function at(a5,a6){if(a6=="="){return av(aW)}}function ak(a5){if(a5==","){return av(c)}}function d(a5,a6){if(a5=="keyword b"&&a6=="else"){return av(aX("form","else"),aZ,i)}}function z(a5,a6){if(a6=="await"){return av(z)}if(a5=="("){return av(aX(")"),H,i)}}function H(a5){if(a5=="var"){return av(c,G)}if(a5=="variable"){return av(G)}return ap(G)}function G(a5,a6){if(a5==")"){return av()}if(a5==";"){return av(G)}if(a6=="in"||a6=="of"){I.marked="keyword";return av(aE,G)}return ap(aE,G)}function T(a5,a6){if(a6=="*"){I.marked="keyword";return av(T)}if(a5=="variable"){aO(a6);return av(T)}if(a5=="("){return av(A,aX(")"),aK(au,")"),i,V,aZ,B)}if(h&&a6=="<"){return av(aX(">"),aK(o,">"),i,T)}}function a4(a5,a6){if(a6=="*"){I.marked="keyword";return av(a4)}if(a5=="variable"){aO(a6);return av(a4)}if(a5=="("){return av(A,aX(")"),aK(au,")"),i,V,B)}if(h&&a6=="<"){return av(aX(">"),aK(o,">"),i,a4)}}function ao(a5,a6){if(a5=="keyword"||a5=="variable"){I.marked="type";return av(ao)}else{if(a6=="<"){return av(aX(">"),aK(o,">"),i)}}}function au(a5,a6){if(a6=="@"){av(aE,au)}if(a5=="spread"){return av(au)}if(h&&aB(a6)){I.marked="keyword";return av(au)}if(h&&a5=="this"){return av(ae,at)}return ap(j,ae,at)}function N(a5,a6){if(a5=="variable"){return ai(a5,a6)}return X(a5,a6)}function ai(a5,a6){if(a5=="variable"){aO(a6);return av(X)}}function X(a5,a6){if(a6=="<"){return av(aX(">"),aK(o,">"),i,X)}if(a6=="extends"||a6=="implements"||(h&&a5==",")){if(a6=="implements"){I.marked="keyword"}return av(h?k:aE,X)}if(a5=="{"){return av(aX("}"),t,i)}}function t(a5,a6){if(a5=="async"||(a5=="variable"&&(a6=="static"||a6=="get"||a6=="set"||(h&&aB(a6)))&&I.stream.match(/^\s+[\w$\xa1-\uffff]/,false))){I.marked="keyword";return av(t)}if(a5=="variable"||I.style=="keyword"){I.marked="property";return av(h?a3:T,t)}if(a5=="number"||a5=="string"){return av(h?a3:T,t)}if(a5=="["){return av(aE,ae,w("]"),h?a3:T,t)}if(a6=="*"){I.marked="keyword";return av(t)}if(h&&a5=="("){return ap(a4,t)}if(a5==";"||a5==","){return av(t)}if(a5=="}"){return av()}if(a6=="@"){return av(aE,t)}}function a3(a6,a8){if(a8=="?"){return av(a3)}if(a6==":"){return av(k,at)}if(a8=="="){return av(aW)}var a5=I.state.lexical.prev,a7=a5&&a5.info=="interface";return ap(a7?a4:T)}function aY(a5,a6){if(a6=="*"){I.marked="keyword";return av(ay,w(";"))}if(a6=="default"){I.marked="keyword";return av(aE,w(";"))}if(a5=="{"){return av(aK(ax,"}"),ay,w(";"))}return ap(aZ)}function ax(a5,a6){if(a6=="as"){I.marked="keyword";return av(w("variable"))}if(a5=="variable"){return ap(aW,ax)}}function aw(a5){if(a5=="string"){return av()}if(a5=="("){return ap(aE)}return ap(aH,n,ay)}function aH(a5,a6){if(a5=="{"){return aQ(aH,"}")}if(a5=="variable"){aO(a6)}if(a6=="*"){I.marked="keyword"}return av(m)}function n(a5){if(a5==","){return av(aH,n)}}function m(a5,a6){if(a6=="as"){I.marked="keyword";return av(aH)}}function ay(a5,a6){if(a6=="from"){I.marked="keyword";return av(aE)}}function r(a5){if(a5=="]"){return av()}return ap(aK(aW,"]"))}function aM(){return ap(aX("form"),j,w("{"),aX("}"),aK(aR,"}"),i,i)}function aR(){return ap(j,at)}function aG(a6,a5){return a6.lastType=="operator"||a6.lastType==","||Y.test(a5.charAt(0))||/[,.]/.test(a5.charAt(0))}function a1(a7,a6,a5){return a6.tokenize==af&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(a6.lastType)||(a6.lastType=="quasi"&&/\{\s*$/.test(a7.string.slice(0,a7.pos-(a5||0))))}return{startState:function(a6){var a5={tokenize:af,lastType:"sof",cc:[],lexical:new Q((a6||0)-p,0,"block",false),localVars:aA.localVars,context:aA.localVars&&new P(null,null,false),indented:a6||0};if(aA.globalVars&&typeof aA.globalVars=="object"){a5.globalVars=aA.globalVars}return a5},token:function(a7,a6){if(a7.sol()){if(!a6.lexical.hasOwnProperty("align")){a6.lexical.align=false}a6.indented=a7.indentation();aP(a7,a6)}if(a6.tokenize!=aS&&a7.eatSpace()){return null}var a5=a6.tokenize(a7,a6);if(ad=="comment"){return a5}a6.lastType=ad=="operator"&&(K=="++"||K=="--")?"incdec":ad;return g(a6,a5,ad,K,a7)},indent:function(a5,a8){if(a5.tokenize==aS){return a.Pass}if(a5.tokenize!=af){return 0}var bc=a8&&a8.charAt(0),bd=a5.lexical,bb;if(!/^\s*else\b/.test(a8)){for(var a7=a5.cc.length-1;a7>=0;--a7){var a9=a5.cc[a7];if(a9==i){bd=bd.prev}else{if(a9!=d){break}}}}while((bd.type=="stat"||bd.type=="form")&&(bc=="}"||((bb=a5.cc[a5.cc.length-1])&&(bb==ar||bb==l)&&!/^[,\.=+\-*:?[\(]/.test(a8)))){bd=bd.prev}if(F&&bd.type==")"&&bd.prev.type=="stat"){bd=bd.prev}var ba=bd.type,a6=bc==ba;if(ba=="vardef"){return bd.indented+(a5.lastType=="operator"||a5.lastType==","?bd.info.length+1:0)}else{if(ba=="form"&&bc=="{"){return bd.indented}else{if(ba=="form"){return bd.indented+p}else{if(ba=="stat"){return bd.indented+(aG(a5,a8)?F||p:0)}else{if(bd.info=="switch"&&!a6&&aA.doubleIndentSwitch!=false){return bd.indented+(/^(?:case|default)\b/.test(a8)?p:2*p)}else{if(bd.align){return bd.column+(a6?0:1)}else{return bd.indented+(a6?0:p)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:D?null:"/*",blockCommentEnd:D?null:"*/",blockCommentContinue:D?null:" * ",lineComment:D?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:D?"json":"javascript",jsonldMode:aT,jsonMode:D,expressionAllowed:a1,skipExpression:function(a5){var a6=a5.cc[a5.cc.length-1];if(a6==aE||a6==aW){a5.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Z,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Z.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},Y=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},X=J.counterDescriptors||{},O=J.colorKeywords||{},T=J.valueKeywords||{},M=J.allowNested,S=J.lineComment,V=J.supportsAtComponent===true;var C,N;function aa(ad,ae){C=ae;return ad}function ac(ag,af){var ae=ag.next();if(A[ae]){var ad=A[ae](ag,af);if(ad!==false){return ad}}if(ae=="@"){ag.eatWhile(/[\w\\\-]/);return aa("def",ag.current())}else{if(ae=="="||(ae=="~"||ae=="|")&&ag.eat("=")){return aa(null,"compare")}else{if(ae=='"'||ae=="'"){af.tokenize=K(ae);return af.tokenize(ag,af)}else{if(ae=="#"){ag.eatWhile(/[\w\\\-]/);return aa("atom","hash")}else{if(ae=="!"){ag.match(/^\s*\w*/);return aa("keyword","important")}else{if(/\d/.test(ae)||ae=="."&&ag.eat(/\d/)){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ae==="-"){if(/[\d.]/.test(ag.peek())){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ag.match(/^-[\w\\\-]*/)){ag.eatWhile(/[\w\\\-]/);if(ag.match(/^\s*:/,false)){return aa("variable-2","variable-definition")}return aa("variable-2","variable")}else{if(ag.match(/^\w+-/)){return aa("meta","meta")}}}}else{if(/[,+>*\/]/.test(ae)){return aa(null,"select-op")}else{if(ae=="."&&ag.match(/^-?[_a-z][_a-z0-9-]*/i)){return aa("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ae)){return aa(null,ae)}else{if(ag.match(/[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/.test(ag.current().toLowerCase())){af.tokenize=ab}return aa("variable callee","variable")}else{if(/[\w\\\-]/.test(ae)){ag.eatWhile(/[\w\\\-]/);return aa("property","word")}else{return aa(null,null)}}}}}}}}}}}}}function K(ad){return function(ah,af){var ag=false,ae;while((ae=ah.next())!=null){if(ae==ad&&!ag){if(ad==")"){ah.backUp(1)}break}ag=!ag&&ae=="\\"}if(ae==ad||!ag&&ad!=")"){af.tokenize=null}return aa("string","string")}}function ab(ae,ad){ae.next();if(!ae.match(/\s*[\"\')]/,false)){ad.tokenize=K(")")}else{ad.tokenize=null}return aa(null,"(")}function R(ae,ad,af){this.type=ae;this.indent=ad;this.prev=af}function G(af,ag,ae,ad){af.context=new R(ae,ag.indentation()+(ad===false?0:Q),af.context);return ae}function U(ad){if(ad.context.prev){ad.context=ad.context.prev}return ad.context.type}function z(ad,af,ae){return F[ae.context.type](ad,af,ae)}function W(ae,ag,af,ah){for(var ad=ah||1;ad>0;ad--){af.context=af.context.prev}return z(ae,ag,af)}function H(ae){var ad=ae.current().toLowerCase();if(T.hasOwnProperty(ad)){N="atom"}else{if(O.hasOwnProperty(ad)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ad,af,ae){if(ad=="{"){return G(ae,af,"block")}else{if(ad=="}"&&ae.context.prev){return U(ae)}else{if(V&&/@component/i.test(ad)){return G(ae,af,"atComponentBlock")}else{if(/^@(-moz-)?document$/i.test(ad)){return G(ae,af,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/i.test(ad)){return G(ae,af,"atBlock")}else{if(/^@(font-face|counter-style)/i.test(ad)){ae.stateArg=ad;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ad)){return"keyframes"}else{if(ad&&ad.charAt(0)=="@"){return G(ae,af,"at")}else{if(ad=="hash"){N="builtin"}else{if(ad=="word"){N="tag"}else{if(ad=="variable-definition"){return"maybeprop"}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}else{if(ad==":"){return"pseudo"}else{if(M&&ad=="("){return G(ae,af,"parens")}}}}}}}}}}}}}}return ae.context.type};F.block=function(ad,ag,ae){if(ad=="word"){var af=ag.current().toLowerCase();if(I.hasOwnProperty(af)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(af)){N="string-2";return"maybeprop"}else{if(M){N=ag.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ad=="meta"){return"block"}else{if(!M&&(ad=="hash"||ad=="qualifier")){N="error";return"block"}else{return F.top(ad,ag,ae)}}}};F.maybeprop=function(ad,af,ae){if(ad==":"){return G(ae,af,"prop")}return z(ad,af,ae)};F.prop=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"&&M){return G(ae,af,"propBlock")}if(ad=="}"||ad=="{"){return W(ad,af,ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(af.current())){N+=" error"}else{if(ad=="word"){H(af)}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}}}return"prop"};F.propBlock=function(ae,ad,af){if(ae=="}"){return U(af)}if(ae=="word"){N="property";return"maybeprop"}return af.context.type};F.parens=function(ad,af,ae){if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad==")"){return U(ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="interpolation"){return G(ae,af,"interpolation")}if(ad=="word"){H(af)}return"parens"};F.pseudo=function(ad,af,ae){if(ad=="meta"){return"pseudo"}if(ad=="word"){N="variable-3";return ae.context.type}return z(ad,af,ae)};F.documentTypes=function(ad,af,ae){if(ad=="word"&&y.hasOwnProperty(af.current())){N="tag";return ae.context.type}else{return F.atBlock(ad,af,ae)}};F.atBlock=function(ad,ag,ae){if(ad=="("){return G(ae,ag,"atBlock_parens")}if(ad=="}"||ad==";"){return W(ad,ag,ae)}if(ad=="{"){return U(ae)&&G(ae,ag,M?"block":"top")}if(ad=="interpolation"){return G(ae,ag,"interpolation")}if(ad=="word"){var af=ag.current().toLowerCase();if(af=="only"||af=="not"||af=="and"||af=="or"){N="keyword"}else{if(Y.hasOwnProperty(af)){N="attribute"}else{if(L.hasOwnProperty(af)){N="property"}else{if(P.hasOwnProperty(af)){N="keyword"}else{if(I.hasOwnProperty(af)){N="property"}else{if(B.hasOwnProperty(af)){N="string-2"}else{if(T.hasOwnProperty(af)){N="atom"}else{if(O.hasOwnProperty(af)){N="keyword"}else{N="error"}}}}}}}}}return ae.context.type};F.atComponentBlock=function(ad,af,ae){if(ad=="}"){return W(ad,af,ae)}if(ad=="{"){return U(ae)&&G(ae,af,M?"block":"top",false)}if(ad=="word"){N="error"}return ae.context.type};F.atBlock_parens=function(ad,af,ae){if(ad==")"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae,2)}return F.atBlock(ad,af,ae)};F.restricted_atBlock_before=function(ad,af,ae){if(ad=="{"){return G(ae,af,"restricted_atBlock")}if(ad=="word"&&ae.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ad,af,ae)};F.restricted_atBlock=function(ad,af,ae){if(ad=="}"){ae.stateArg=null;return U(ae)}if(ad=="word"){if((ae.stateArg=="@font-face"&&!E.hasOwnProperty(af.current().toLowerCase()))||(ae.stateArg=="@counter-style"&&!X.hasOwnProperty(af.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ad,af,ae){if(ad=="word"){N="variable";return"keyframes"}if(ad=="{"){return G(ae,af,"top")}return z(ad,af,ae)};F.at=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad=="word"){N="tag"}else{if(ad=="hash"){N="builtin"}}return"at"};F.interpolation=function(ad,af,ae){if(ad=="}"){return U(ae)}if(ad=="{"||ad==";"){return W(ad,af,ae)}if(ad=="word"){N="variable"}else{if(ad!="variable"&&ad!="("&&ad!=")"){N="error"}}return"interpolation"};return{startState:function(ad){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ad||0,null)}},token:function(af,ae){if(!ae.tokenize&&af.eatSpace()){return null}var ad=(ae.tokenize||ac)(af,ae);if(ad&&typeof ad=="object"){C=ad[1];ad=ad[0]}N=ad;if(C!="comment"){ae.state=F[ae.state](C,af,ae)}return N},indent:function(ah,af){var ae=ah.context,ag=af&&af.charAt(0);var ad=ae.indent;if(ae.type=="prop"&&(ag=="}"||ag==")")){ae=ae.prev}if(ae.prev){if(ag=="}"&&(ae.type=="block"||ae.type=="top"||ae.type=="interpolation"||ae.type=="restricted_atBlock")){ae=ae.prev;ad=ae.indent}else{if(ag==")"&&(ae.type=="parens"||ae.type=="atBlock_parens")||ag=="{"&&(ae.type=="at"||ae.type=="atBlock")){ad=Math.max(0,ae.indent-Q)}}}return ad},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:S,fold:"brace"}});function g(A){var z={};for(var y=0;y<A.length;++y){z[A[y].toLowerCase()]=true}return z}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=g(b);var x=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],i=g(x);var l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],p=g(l);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var n=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(n);var t=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(t);var q=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],u=g(q);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],m=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],s=g(j);var o=k.concat(b).concat(x).concat(l).concat(d).concat(n).concat(c).concat(j);r.registerHelper("hintWords","css",o);function w(B,A){var y=false,z;while((z=B.next())!=null){if(y&&z=="/"){A.tokenize=null;break}y=(z=="*")}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:a,mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css"});r.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,lineComment:"//",tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},":":function(y){if(y.match(/\s*\{/,false)){return[null,null]}return false},"$":function(y){y.match(/^[\w-]+/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(y){if(!y.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});r.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,lineComment:"//",tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},"@":function(y){if(y.eat("{")){return[null,"interpolation"]}if(y.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,false)){return false}y.eatWhile(/[\w\\\-]/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"});r.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:v,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,supportsAtComponent:true,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css",helperType:"gss"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(d){var g={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function f(n,j,k){var m=n.current(),l=m.search(j);if(l>-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?/^\s*(.*?)\s*$/.exec(k[2])[1]:""}function i(k,j){return new RegExp((j?"^":"")+"</s*"+k+"s*>","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k<l.length;k++){var j=l[k];if(!j[0]||j[1].test(a(m,j[0]))){return j[2]}}}d.defineMode("htmlmixed",function(k,o){var q=d.getMode(k,{name:"xml",htmlMode:true,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag});var j={};var p=o&&o.tags,n=o&&o.scriptTypes;h(g,j);if(p){h(p,j)}if(n){for(var m=n.length-1;m>=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,"",""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=d.startState(q);return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(t,s,r){if(!t.localMode||/^\s*<\//.test(s)){return q.indent(t.htmlState,s,r)}else{if(t.localMode.indent){return t.localMode.indent(t.localState,s,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});CodeMirror.defineMode("bbcodemixed",function(c){var f,e,g,d,h=CodeMirror.getMode(c,"htmlmixed"),b=CodeMirror.getMode(c,"bbcode"),f={bbCodeLiteral:"literal"};if(c.hasOwnProperty("bbCodeLiteral")){f.bbCodeLiteral=c.bbCodeLiteral}function a(i){return i.replace(/([\[\]\.\-\+\<\>\?\:\(\)\{\}])/g,"\\$1")}e={hasLeftDelimeter:/.*\[/,htmlHasLeftDelimeter:/[^\<\>]*\[/,literalOpen:new RegExp(a("["+f.bbCodeLiteral+"]")),literalClose:new RegExp(a("[/"+f.bbCodeLiteral+"]"))};g={chain:function(j,i,k){i.tokenize=k;return k(j,i)},cleanChain:function(j,i,k){i.tokenize=null;i.localState=null;i.localMode=null;return(typeof k=="string")?(k?k:null):k(j,i)},maybeBackup:function(o,j,k){j=a(j);var n=o.current();var l=n.search(j),i;if(l>-1){o.backUp(n.length-l)}else{if(i=n.match(/<\/?$/)){o.backUp(n.length);if(!o.match(j,false)){o.match(n[0])}}}return k}};d={html:function(j,i){if(!i.inLiteral&&j.match(e.htmlHasLeftDelimeter,false)&&i.htmlMixedState.htmlState.tagName===null){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}else{if(!i.inLiteral&&j.match("[",false)){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}}return h.token(j,i.htmlMixedState)},bbcode:function(j,i){if(j.match("]",false)){j.eat("]");i.tokenize=d.html;i.localMode=h;i.localState=i.htmlMixedState;return"tag"}return g.maybeBackup(j,"]",b.token(j,i.localState))},inBlock:function(j,i){return function(l,k){while(!l.eol()){if(l.match(i)){g.cleanChain(l,k,"");break}l.next()}return j}}};return{startState:function(){var i=h.startState();return{token:d.html,localMode:null,localState:null,htmlMixedState:i,tokenize:null,inLiteral:false}},copyState:function(k){var j=null,i=(k.tokenize||k.token);if(k.localState){j=CodeMirror.copyState((i!=d.html?b:h),k.localState)}return{token:k.token,tokenize:k.tokenize,localMode:k.localMode,localState:j,htmlMixedState:CodeMirror.copyState(h,k.htmlMixedState),inLiteral:k.inLiteral}},token:function(k,j){if(k.match("[",false)){if(!j.inLiteral&&k.match(e.literalOpen,true)){j.inLiteral=true;return"keyword"}else{if(j.inLiteral&&k.match(e.literalClose,true)){j.inLiteral=false;return"keyword"}}}if(j.inLiteral&&j.localState!=j.htmlMixedState){j.tokenize=d.html;j.localMode=h;j.localState=j.htmlMixedState}var i=(j.tokenize||j.token)(k,j);return i},indent:function(j,i){if(j.localMode==b||(j.inLiteral&&!j.localMode)||e.hasLeftDelimeter.test(i)){return CodeMirror.Pass}return h.indent(j.htmlMixedState,i)},innerMode:function(i){return{state:i.localState||i.htmlMixedState,mode:i.localMode||h}}}},"xml","javascript","css");CodeMirror.defineMIME("text/x-bbcode","bbcodemixed");
|
data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/simple.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}function o(e,o){(e.next||e.push)&&t(o,e.next||e.push),this.regex=n(e.regex),this.token=r(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var o=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=o.text.length,o.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var i=r.local.endToken||null;return r.local=r.localState=null,i}var a,i=r.local.mode.token(n,r.localState);return r.local.endScan&&(a=r.local.endScan.exec(n.current()))&&(n.pos=n.start+a.index),i}for(var d=e[r.state],s=0;s<d.length;s++){var c=d[s],u=(!c.data.sol||n.sol())&&n.match(c.regex);if(u){c.data.next?r.state=c.data.next:c.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=c.data.push):c.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),c.data.mode&&l(t,r,c.data.mode,c.token),c.data.indent&&r.indent.push(n.indentation()+t.indentUnit),c.data.dedent&&r.indent.pop();var f=c.token;if(f&&f.apply&&(f=f(u)),u.length>2&&c.token&&"string"!=typeof c.token){r.pending=[];for(var m=2;m<u.length;m++)u[m]&&r.pending.push({text:u[m],token:c.token[m-1]});return n.backUp(u[0].length-(u[1]?u[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function a(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!a(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function l(t,r,o,i){var l;if(o.persistent)for(var d=r.persistentStates;d&&!l;d=d.next)(o.spec?a(o.spec,d.spec):o.mode==d.mode)&&(l=d);var s=l?l.mode:o.mode||e.getMode(t,o.spec),c=l?l.state:e.startState(s);o.persistent&&!l&&(r.persistentStates={mode:s,spec:o.spec,state:c,next:r.persistentStates}),r.localState=c,r.local={mode:s,end:o.end&&n(o.end),endScan:o.end&&!1!==o.forceEnd&&n(o.end,!1),endToken:i&&i.join?i[i.length-1]:i}}function d(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}function s(t,n){return function(r,o,i){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,o,i);if(null==r.indent||r.local||n.dontIndentStates&&d(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,l=t[r.state];e:for(;;){for(var s=0;s<l.length;s++){var c=l[s];if(c.data.dedent&&!1!==c.data.dedentIfLineStart){var u=c.regex.exec(o);if(u&&u[0]){a--,(c.next||c.push)&&(l=t[c.next||c.push]),o=o.slice(u[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,r){t(r,"start");var a={},l=r.meta||{},d=!1;for(var c in r)if(c!=l&&r.hasOwnProperty(c))for(var u=a[c]=[],f=r[c],m=0;m<f.length;m++){var p=f[m];u.push(new o(p,r)),(p.indent||p.dedent)&&(d=!0)}var g={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:d?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var h in l)l.hasOwnProperty(h)&&(g[h]=l[h]);return g}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){function n(e,t,n,r){if("string"==typeof t){var o=e.indexOf(t,n);return r&&o>-1?o+t.length:o}var i=t.exec(n?e.slice(n):e);return i?i.index+n+(r?i[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(o,i){if(i.innerActive){var a=i.innerActive,l=o.string;if(!a.close&&o.sol())return i.innerActive=i.inner=null,this.token(o,i);var d=a.close?n(l,a.close,o.pos,a.parseDelimiters):-1;if(d==o.pos&&!a.parseDelimiters)return o.match(a.close),i.innerActive=i.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(o.string=l.slice(0,d));var s=a.mode.token(o,i.inner);return d>-1&&(o.string=l),d==o.pos&&a.parseDelimiters&&(i.innerActive=i.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var c=1/0,l=o.string,u=0;u<r.length;++u){var f=r[u],d=n(l,f.open,o.pos);if(d==o.pos){f.parseDelimiters||o.match(f.open),i.innerActive=f;var m=0;if(t.indent){var p=t.indent(i.outer,"");p!==e.Pass&&(m=p)}return i.inner=e.startState(f.mode,m),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=d&&d<c&&(c=d)}c!=1/0&&(o.string=l.slice(0,c));var g=t.token(o,i.outer);return c!=1/0&&(o.string=l),g},indent:function(n,r){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r):e.Pass},blankLine:function(n){var o=n.innerActive?n.innerActive.mode:t;if(o.blankLine&&o.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var i=0;i<r.length;++i){var a=r[i];"\n"===a.open&&(n.innerActive=a,n.inner=e.startState(a.mode,o.indent?o.indent(n.outer,""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../../addon/mode/simple"),require("../../addon/mode/multiplex")):"function"==typeof define&&define.amd?define("mode/handlebars/handlebars.js",["../../lib/codemirror","../../addon/mode/simple","../../addon/mode/multiplex"],e):e(CodeMirror)}(function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:"}}",mode:r,parseDelimiters:!0}):r}),e.defineMIME("text/x-handlebars-template","handlebars")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=i,t.state=m,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=l(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function s(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=s(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=s(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;u(e)}}function m(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?g:m}function p(e,t,n){return"word"==e?(n.tagName=t.current(),C="tag",v):w.allowMissingTagName&&"endTag"==e?(C="tag bracket",v(e,t,n)):(C="error",p)}function g(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&u(n),n.context&&n.context.tagName==r||!1===w.matchClosing?(C="tag",h):(C="tag error",x)}return w.allowMissingTagName&&"endTag"==e?(C="tag bracket",h(e,t,n)):(C="error",x)}function h(e,t,n){return"endTag"!=e?(C="error",h):(u(n),m)}function x(e,t,n){return C="error",h(e,t,n)}function v(e,t,n){if("word"==e)return C="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?f(n,r):(f(n,r),n.context=new c(n,r,o==n.indented)),m}return C="error",v}function k(e,t,n){return"equals"==e?b:(w.allowMissing||(C="error"),v(e,t,n))}function b(e,t,n){return"string"==e?S:"word"==e&&w.allowUnquoted?(C="string",v):(C="error",v(e,t,n))}function S(e,t,n){return"string"==e?S:v(e,t,n)}var y=r.indentUnit,w={},M=o.htmlMode?t:n;for(var A in M)w[A]=M[A];for(var A in o)w[A]=o[A];var T,C;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(C=null,t.state=t.state(T||n,e,t),C&&(n="error"==C?n+" error":C)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+y;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==w.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+y*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var l=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(l&&l[1])for(;o;){if(o.tagName==l[2]){o=o.prev;break}if(!w.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(l)for(;o;){var d=w.contextGrabbers[o.tagName];if(!d||!d.hasOwnProperty(l[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+y:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(e){e.state==b&&(e.state=v)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"function"==typeof e.define&&e.define("modeHandlebars",["mode/handlebars/handlebars.js"],function(){})}(this);
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/simple.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}function o(e,o){(e.next||e.push)&&t(o,e.next||e.push),this.regex=n(e.regex),this.token=r(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var o=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=o.text.length,o.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var i=r.local.endToken||null;return r.local=r.localState=null,i}var a,i=r.local.mode.token(n,r.localState);return r.local.endScan&&(a=r.local.endScan.exec(n.current()))&&(n.pos=n.start+a.index),i}for(var d=e[r.state],s=0;s<d.length;s++){var c=d[s],u=(!c.data.sol||n.sol())&&n.match(c.regex);if(u){c.data.next?r.state=c.data.next:c.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=c.data.push):c.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),c.data.mode&&l(t,r,c.data.mode,c.token),c.data.indent&&r.indent.push(n.indentation()+t.indentUnit),c.data.dedent&&r.indent.pop();var f=c.token;if(f&&f.apply&&(f=f(u)),u.length>2&&c.token&&"string"!=typeof c.token){r.pending=[];for(var m=2;m<u.length;m++)u[m]&&r.pending.push({text:u[m],token:c.token[m-1]});return n.backUp(u[0].length-(u[1]?u[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function a(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!a(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function l(t,r,o,i){var l;if(o.persistent)for(var d=r.persistentStates;d&&!l;d=d.next)(o.spec?a(o.spec,d.spec):o.mode==d.mode)&&(l=d);var s=l?l.mode:o.mode||e.getMode(t,o.spec),c=l?l.state:e.startState(s);o.persistent&&!l&&(r.persistentStates={mode:s,spec:o.spec,state:c,next:r.persistentStates}),r.localState=c,r.local={mode:s,end:o.end&&n(o.end),endScan:o.end&&!1!==o.forceEnd&&n(o.end,!1),endToken:i&&i.join?i[i.length-1]:i}}function d(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}function s(t,n){return function(r,o,i){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,o,i);if(null==r.indent||r.local||n.dontIndentStates&&d(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,l=t[r.state];e:for(;;){for(var s=0;s<l.length;s++){var c=l[s];if(c.data.dedent&&!1!==c.data.dedentIfLineStart){var u=c.regex.exec(o);if(u&&u[0]){a--,(c.next||c.push)&&(l=t[c.next||c.push]),o=o.slice(u[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,r){t(r,"start");var a={},l=r.meta||{},d=!1;for(var c in r)if(c!=l&&r.hasOwnProperty(c))for(var u=a[c]=[],f=r[c],m=0;m<f.length;m++){var p=f[m];u.push(new o(p,r)),(p.indent||p.dedent)&&(d=!0)}var g={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:d?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var h in l)l.hasOwnProperty(h)&&(g[h]=l[h]);return g}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.multiplexingMode=function(t){function n(e,t,n,r){if("string"==typeof t){var o=e.indexOf(t,n);return r&&o>-1?o+t.length:o}var i=t.exec(n?e.slice(n):e);return i?i.index+n+(r?i[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(o,i){if(i.innerActive){var a=i.innerActive,l=o.string;if(!a.close&&o.sol())return i.innerActive=i.inner=null,this.token(o,i);var d=a.close?n(l,a.close,o.pos,a.parseDelimiters):-1;if(d==o.pos&&!a.parseDelimiters)return o.match(a.close),i.innerActive=i.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(o.string=l.slice(0,d));var s=a.mode.token(o,i.inner);return d>-1&&(o.string=l),d==o.pos&&a.parseDelimiters&&(i.innerActive=i.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var c=1/0,l=o.string,u=0;u<r.length;++u){var f=r[u],d=n(l,f.open,o.pos);if(d==o.pos){f.parseDelimiters||o.match(f.open),i.innerActive=f;var m=0;if(t.indent){var p=t.indent(i.outer,"","");p!==e.Pass&&(m=p)}return i.inner=e.startState(f.mode,m),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=d&&d<c&&(c=d)}c!=1/0&&(o.string=l.slice(0,c));var g=t.token(o,i.outer);return c!=1/0&&(o.string=l),g},indent:function(n,r,o){var i=n.innerActive?n.innerActive.mode:t;return i.indent?i.indent(n.innerActive?n.inner:n.outer,r,o):e.Pass},blankLine:function(n){var o=n.innerActive?n.innerActive.mode:t;if(o.blankLine&&o.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var i=0;i<r.length;++i){var a=r[i];"\n"===a.open&&(n.innerActive=a,n.inner=e.startState(a.mode,o.indent?o.indent(n.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../../addon/mode/simple"),require("../../addon/mode/multiplex")):"function"==typeof define&&define.amd?define("mode/handlebars/handlebars.js",["../../lib/codemirror","../../addon/mode/simple","../../addon/mode/multiplex"],e):e(CodeMirror)}(function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:"}}",mode:r,parseDelimiters:!0}):r}),e.defineMIME("text/x-handlebars-template","handlebars")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=i,t.state=m,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=l(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function s(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=s(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=s(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;u(e)}}function m(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?g:m}function p(e,t,n){return"word"==e?(n.tagName=t.current(),C="tag",v):w.allowMissingTagName&&"endTag"==e?(C="tag bracket",v(e,t,n)):(C="error",p)}function g(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&u(n),n.context&&n.context.tagName==r||!1===w.matchClosing?(C="tag",h):(C="tag error",x)}return w.allowMissingTagName&&"endTag"==e?(C="tag bracket",h(e,t,n)):(C="error",x)}function h(e,t,n){return"endTag"!=e?(C="error",h):(u(n),m)}function x(e,t,n){return C="error",h(e,t,n)}function v(e,t,n){if("word"==e)return C="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?f(n,r):(f(n,r),n.context=new c(n,r,o==n.indented)),m}return C="error",v}function k(e,t,n){return"equals"==e?b:(w.allowMissing||(C="error"),v(e,t,n))}function b(e,t,n){return"string"==e?S:"word"==e&&w.allowUnquoted?(C="string",v):(C="error",v(e,t,n))}function S(e,t,n){return"string"==e?S:v(e,t,n)}var y=r.indentUnit,w={},M=o.htmlMode?t:n;for(var A in M)w[A]=M[A];for(var A in o)w[A]=o[A];var T,C;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(C=null,t.state=t.state(T||n,e,t),C&&(n="error"==C?n+" error":C)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+y;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==w.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+y*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var l=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(l&&l[1])for(;o;){if(o.tagName==l[2]){o=o.prev;break}if(!w.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(l)for(;o;){var d=w.contextGrabbers[o.tagName];if(!d||!d.hasOwnProperty(l[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+y:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(e){e.state==b&&(e.state=v)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"function"==typeof e.define&&e.define("modeHandlebars",["mode/handlebars/handlebars.js"],function(){})}(this);
|
data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,o){function a(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=a,S=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return S="equals",null;if("<"==r){t.tokenize=a,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=a;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=a;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function d(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(M.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!M.contextGrabbers.hasOwnProperty(r)||!M.contextGrabbers[r].hasOwnProperty(t))return;u(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?h:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),T="tag",y):M.allowMissingTagName&&"endTag"==e?(T="tag bracket",y(e,t,r)):(T="error",f)}function h(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&M.implicitlyClosed.hasOwnProperty(r.context.tagName)&&u(r),r.context&&r.context.tagName==n||!1===M.matchClosing?(T="tag",g):(T="tag error",b)}return M.allowMissingTagName&&"endTag"==e?(T="tag bracket",g(e,t,r)):(T="error",b)}function g(e,t,r){return"endTag"!=e?(T="error",g):(u(r),m)}function b(e,t,r){return T="error",g(e,t,r)}function y(e,t,r){if("word"==e)return T="attribute",k;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||M.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new d(r,n,o==r.indented)),m}return T="error",y}function k(e,t,r){return"equals"==e?v:(M.allowMissing||(T="error"),y(e,t,r))}function v(e,t,r){return"string"==e?w:"word"==e&&M.allowUnquoted?(T="string",y):(T="error",y(e,t,r))}function w(e,t,r){return"string"==e?w:y(e,t,r)}var x=n.indentUnit,M={},z=o.htmlMode?t:r;for(var j in z)M[j]=z[j];for(var j in o)M[j]=o[j];var S,T;return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;S=null;var r=t.tokenize(e,t);return(r||S)&&"comment"!=r&&(T=null,t.state=t.state(S||r,e,t),T&&(r="error"==T?r+" error":T)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+x;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=a)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==M.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+x*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var l=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(l&&l[1])for(;o;){if(o.tagName==l[2]){o=o.prev;break}if(!M.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(l)for(;o;){var s=M.contextGrabbers[o.tagName];if(!s||!s.hasOwnProperty(l[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+x:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(e){e.state==v&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function o(e,t,r){return Ve=e,Be=r,t}function a(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return o("number","number");if("."==r&&e.match(".."))return o("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return o(r);if("="==r&&e.eat(">"))return o("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return o("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),o("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),o("comment","comment")):$e(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),o("regexp","string-2")):(e.eat("="),o("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),o("error","error");if(Ge.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),o("operator","operator",e.current());if(Ue.test(r)){e.eatWhile(Ue);var a=e.current();if("."!=t.lastType){if(He.propertyIsEnumerable(a)){var c=He[a];return o(c.type,c.style,a)}if("async"==a&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return o("async","keyword",a)}return o("variable","variable",a)}}function i(e){return function(t,r){var n,i=!1;if(Le&&"@"==t.peek()&&t.match(Re))return r.tokenize=a,o("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=a),o("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=a;break}n="*"==r}return o("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=a;break}n=!n&&"\\"==r}return o("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Fe){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,a=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Ye.indexOf(l);if(s>=0&&s<3){if(!o){++i;break}if(0==--o){"("==l&&(a=!0);break}}else if(s>=3&&s<6)++o;else if(Ue.test(l))a=!0;else{if(/["'\/]/.test(l))return;if(a&&!o){++i;break}}}a&&!o&&(t.fatArrowAt=i)}}function d(e,t,r,n,o,a){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=a,null!=n&&(this.align=n)}function u(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,o){var a=e.cc;for(Ze.state=e,Ze.stream=o,Ze.marked=null,Ze.cc=a,Ze.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():De?C:T)(r,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return Ze.marked?Ze.marked:"variable"==r&&u(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Ze.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function h(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function g(e){var t=Ze.state;if(Ze.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=b(e,t.context);if(null!=n)return void(t.context=n)}else if(!h(e,t.localVars))return void(t.localVars=new v(e,t.localVars));r.globalVars&&!h(e,t.globalVars)&&(t.globalVars=new v(e,t.globalVars))}function b(e,t){if(t){if(t.block){var r=b(e,t.prev);return r?r==t.prev?t:new k(r,t.vars,!0):null}return h(e,t.vars)?t:new k(t.prev,new v(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function k(e,t,r){this.prev=e,this.vars=t,this.block=r}function v(e,t){this.name=e,this.next=t}function w(){Ze.state.context=new k(Ze.state.context,Ze.state.localVars,!1),Ze.state.localVars=Je}function x(){Ze.state.context=new k(Ze.state.context,Ze.state.localVars,!0),Ze.state.localVars=null}function M(){Ze.state.localVars=Ze.state.context.vars,Ze.state.context=Ze.state.context.prev}function z(e,t){var r=function(){var r=Ze.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new d(n,Ze.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function j(){var e=Ze.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function S(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function T(e,t){return"var"==e?f(z("vardef",t),se,S(";"),j):"keyword a"==e?f(z("form"),P,T,j):"keyword b"==e?f(z("form"),T,j):"keyword d"==e?Ze.stream.match(/^\s*$/,!1)?f():f(z("stat"),E,S(";"),j):"debugger"==e?f(S(";")):"{"==e?f(z("}"),x,X,j,M):";"==e?f():"if"==e?("else"==Ze.state.lexical.info&&Ze.state.cc[Ze.state.cc.length-1]==j&&Ze.state.cc.pop()(),f(z("form"),P,T,j,me)):"function"==e?f(ke):"for"==e?f(z("form"),fe,T,j):"class"==e||Fe&&"interface"==t?(Ze.marked="keyword",f(z("form"),xe,j)):"variable"==e?Fe&&"declare"==t?(Ze.marked="keyword",f(T)):Fe&&("module"==t||"enum"==t||"type"==t)&&Ze.stream.match(/^\s*\w/,!1)?(Ze.marked="keyword","enum"==t?f(Oe):"type"==t?f(ee,S("operator"),ee,S(";")):f(z("form"),ce,S("{"),z("}"),X,j,j)):Fe&&"namespace"==t?(Ze.marked="keyword",f(z("form"),C,X,j)):Fe&&"abstract"==t?(Ze.marked="keyword",f(T)):f(z("stat"),D):"switch"==e?f(z("form"),P,S("{"),z("}","switch"),x,X,j,j,M):"case"==e?f(C,S(":")):"default"==e?f(S(":")):"catch"==e?f(z("form"),w,A,T,j,M):"export"==e?f(z("stat"),Se,j):"import"==e?f(z("stat"),Ae,j):"async"==e?f(T):"@"==t?f(C,T):m(z("stat"),C,S(";"),j)}function A(e){if("("==e)return f(ve,S(")"))}function C(e,t){return I(e,t,!1)}function q(e,t){return I(e,t,!0)}function P(e){return"("!=e?m():f(z(")"),C,S(")"),j)}function I(e,t,r){if(Ze.state.fatArrowAt==Ze.stream.start){var n=r?B:V;if("("==e)return f(w,z(")"),R(ve,")"),j,S("=>"),n,M);if("variable"==e)return m(w,ce,S("=>"),n,M)}var o=r?N:O;return Xe.hasOwnProperty(e)?f(o):"function"==e?f(ke,o):"class"==e||Fe&&"interface"==t?(Ze.marked="keyword",f(z("form"),we,j)):"keyword c"==e||"async"==e?f(r?q:C):"("==e?f(z(")"),E,S(")"),j,o):"operator"==e||"spread"==e?f(r?q:C):"["==e?f(z("]"),Ee,j,o):"{"==e?Y(U,"}",null,o):"quasi"==e?m(K,o):"new"==e?f(_(r)):"import"==e?f(C):f()}function E(e){return e.match(/[;\}\)\],]/)?m():m(C)}function O(e,t){return","==e?f(C):N(e,t,!1)}function N(e,t,r){var n=0==r?O:N,o=0==r?C:q;return"=>"==e?f(w,r?B:V,M):"operator"==e?/\+\+|--/.test(t)||Fe&&"!"==t?f(n):Fe&&"<"==t&&Ze.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(z(">"),R(ee,">"),j,n):"?"==t?f(C,S(":"),o):f(o):"quasi"==e?m(K,n):";"!=e?"("==e?Y(q,")","call",n):"."==e?f(F,n):"["==e?f(z("]"),E,S("]"),j,n):Fe&&"as"==t?(Ze.marked="keyword",f(ee,n)):"regexp"==e?(Ze.state.lastType=Ze.marked="operator",Ze.stream.backUp(Ze.stream.pos-Ze.stream.start-1),f(o)):void 0:void 0}function K(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f(K):f(C,$)}function $(e){if("}"==e)return Ze.marked="string-2",Ze.state.tokenize=s,f(K)}function V(e){return c(Ze.stream,Ze.state),m("{"==e?T:C)}function B(e){return c(Ze.stream,Ze.state),m("{"==e?T:q)}function _(e){return function(t){return"."==t?f(e?L:W):"variable"==t&&Fe?f(ae,e?N:O):m(e?q:C)}}function W(e,t){if("target"==t)return Ze.marked="keyword",f(O)}function L(e,t){if("target"==t)return Ze.marked="keyword",f(N)}function D(e){return":"==e?f(j,T):m(O,S(";"),j)}function F(e){if("variable"==e)return Ze.marked="property",f()}function U(e,t){if("async"==e)return Ze.marked="property",f(U);if("variable"==e||"keyword"==Ze.style){if(Ze.marked="property","get"==t||"set"==t)return f(H);var r;return Fe&&Ze.state.fatArrowAt==Ze.stream.start&&(r=Ze.stream.match(/^\s*:\s*/,!1))&&(Ze.state.fatArrowAt=Ze.stream.pos+r[0].length),f(G)}return"number"==e||"string"==e?(Ze.marked=Le?"property":Ze.style+" property",f(G)):"jsonld-keyword"==e?f(G):Fe&&y(t)?(Ze.marked="keyword",f(U)):"["==e?f(C,Z,S("]"),G):"spread"==e?f(q,G):"*"==t?(Ze.marked="keyword",f(U)):":"==e?m(G):void 0}function H(e){return"variable"!=e?m(G):(Ze.marked="property",f(ke))}function G(e){return":"==e?f(q):"("==e?m(ke):void 0}function R(e,t,r){function n(o,a){if(r?r.indexOf(o)>-1:","==o){var i=Ze.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return o==t||a==t?f():f(S(t))}return function(r,o){return r==t||o==t?f():m(e,n)}}function Y(e,t,r){for(var n=3;n<arguments.length;n++)Ze.cc.push(arguments[n]);return f(z(t,r),R(e,t),j)}function X(e){return"}"==e?f():m(T,X)}function Z(e,t){if(Fe){if(":"==e)return f(ee);if("?"==t)return f(Z)}}function J(e){if(Fe&&":"==e)return Ze.stream.match(/^\s*\w+\s+is\b/,!1)?f(C,Q,ee):f(ee)}function Q(e,t){if("is"==t)return Ze.marked="keyword",f()}function ee(e,t){return"keyof"==t||"typeof"==t?(Ze.marked="keyword",f("keyof"==t?ee:q)):"variable"==e||"void"==t?(Ze.marked="type",f(oe)):"string"==e||"number"==e||"atom"==e?f(oe):"["==e?f(z("]"),R(ee,"]",","),j,oe):"{"==e?f(z("}"),R(re,"}",",;"),j,oe):"("==e?f(R(ne,")"),te):"<"==e?f(R(ee,">"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Ze.style?(Ze.marked="property",f(re)):"?"==t?f(re):":"==e?f(ee):"["==e?f(C,Z,S("]"),re):void 0}function ne(e,t){return"variable"==e&&Ze.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):m(ee)}function oe(e,t){return"<"==t?f(z(">"),R(ee,">"),j,oe):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(S("]"),oe):"extends"==t||"implements"==t?(Ze.marked="keyword",f(ee)):void 0}function ae(e,t){if("<"==t)return f(z(">"),R(ee,">"),j,oe)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Ze.marked="keyword",f(Oe)):m(ce,Z,ue,pe)}function ce(e,t){return Fe&&y(t)?(Ze.marked="keyword",f(ce)):"variable"==e?(g(t),f()):"spread"==e?f(ce):"["==e?Y(ce,"]"):"{"==e?Y(de,"}"):void 0}function de(e,t){return"variable"!=e||Ze.stream.match(/^\s*:/,!1)?("variable"==e&&(Ze.marked="property"),"spread"==e?f(ce):"}"==e?m():f(S(":"),ce,ue)):(g(t),f(ue))}function ue(e,t){if("="==t)return f(q)}function pe(e){if(","==e)return f(se)}function me(e,t){if("keyword b"==e&&"else"==t)return f(z("form","else"),T,j)}function fe(e,t){return"await"==t?f(fe):"("==e?f(z(")"),he,S(")"),j):void 0}function he(e){return"var"==e?f(se,S(";"),be):";"==e?f(be):"variable"==e?f(ge):m(C,S(";"),be)}function ge(e,t){return"in"==t||"of"==t?(Ze.marked="keyword",f(C)):f(O,be)}function be(e,t){return";"==e?f(ye):"in"==t||"of"==t?(Ze.marked="keyword",f(C)):m(C,S(";"),ye)}function ye(e){")"!=e&&f(C)}function ke(e,t){return"*"==t?(Ze.marked="keyword",f(ke)):"variable"==e?(g(t),f(ke)):"("==e?f(w,z(")"),R(ve,")"),j,J,T,M):Fe&&"<"==t?f(z(">"),R(ie,">"),j,ke):void 0}function ve(e,t){return"@"==t&&f(C,ve),"spread"==e?f(ve):Fe&&y(t)?(Ze.marked="keyword",f(ve)):m(ce,Z,ue)}function we(e,t){return"variable"==e?xe(e,t):Me(e,t)}function xe(e,t){if("variable"==e)return g(t),f(Me)}function Me(e,t){return"<"==t?f(z(">"),R(ie,">"),j,Me):"extends"==t||"implements"==t||Fe&&","==e?("implements"==t&&(Ze.marked="keyword"),f(Fe?ee:C,Me)):"{"==e?f(z("}"),ze,j):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Fe&&y(t))&&Ze.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ze.marked="keyword",f(ze)):"variable"==e||"keyword"==Ze.style?(Ze.marked="property",f(Fe?je:ke,ze)):"["==e?f(C,Z,S("]"),Fe?je:ke,ze):"*"==t?(Ze.marked="keyword",f(ze)):";"==e?f(ze):"}"==e?f():"@"==t?f(C,ze):void 0}function je(e,t){return"?"==t?f(je):":"==e?f(ee,ue):"="==t?f(q):m(ke)}function Se(e,t){return"*"==t?(Ze.marked="keyword",f(Ie,S(";"))):"default"==t?(Ze.marked="keyword",f(C,S(";"))):"{"==e?f(R(Te,"}"),Ie,S(";")):m(T)}function Te(e,t){return"as"==t?(Ze.marked="keyword",f(S("variable"))):"variable"==e?m(q,Te):void 0}function Ae(e){return"string"==e?f():"("==e?m(C):m(Ce,qe,Ie)}function Ce(e,t){return"{"==e?Y(Ce,"}"):("variable"==e&&g(t),"*"==t&&(Ze.marked="keyword"),f(Pe))}function qe(e){if(","==e)return f(Ce,qe)}function Pe(e,t){if("as"==t)return Ze.marked="keyword",f(Ce)}function Ie(e,t){if("from"==t)return Ze.marked="keyword",f(C)}function Ee(e){return"]"==e?f():m(R(q,"]"))}function Oe(){return m(z("form"),ce,S("{"),z("}"),R(Ne,"}"),j,j)}function Ne(){return m(ce,ue)}function Ke(e,t){return"operator"==e.lastType||","==e.lastType||Ge.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function $e(e,t,r){return t.tokenize==a&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Ve,Be,_e=t.indentUnit,We=r.statementIndent,Le=r.jsonld,De=r.json||Le,Fe=r.typescript,Ue=r.wordCharacters||/[\w$\xa1-\uffff]/,He=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),o=e("keyword d"),a=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Ge=/[+\-*&%=<>!?|~^@]/,Re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ye="([{}])",Xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ze={state:null,column:null,marked:null,cc:null},Je=new v("this",new v("arguments",null));return M.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new d((e||0)-_e,0,"block",!1),localVars:r.localVars,context:r.localVars&&new k(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Ve?r:(t.lastType="operator"!=Ve||"++"!=Be&&"--"!=Be?Ve:"incdec",p(t,r,Ve,Be,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=a)return 0;var o,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var d=t.cc[c];if(d==j)s=s.prev;else if(d!=me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(o=t.cc[t.cc.length-1])&&(o==O||o==N)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;We&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var u=s.type,p=i==u;return"vardef"==u?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==u&&"{"==i?s.indented:"form"==u?s.indented+_e:"stat"==u?s.indented+(Ke(t,n)?We||_e:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:_e):s.indented+(/^(?:case|default)\b/.test(n)?_e:2*_e)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:De?null:"/*",blockCommentEnd:De?null:"*/",blockCommentContinue:De?null:" * ",lineComment:De?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:De?"json":"javascript",jsonldMode:Le,jsonMode:De,expressionAllowed:$e,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=q||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function n(e,t){return f=t,e}function o(e,t){var r=e.next();if(b[r]){var o=b[r](e,t);if(!1!==o)return o}return"@"==r?(e.eatWhile(/[\w\\\-]/),n("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?n(null,"compare"):'"'==r||"'"==r?(t.tokenize=a(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),n("atom","hash")):"!"==r?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),n("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=i,n("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function a(e){return function(t,r){for(var o,a=!1;null!=(o=t.next());){if(o==e&&!a){")"==e&&t.backUp(1);break}a=!a&&"\\"==o}return(o==e||!a&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=a(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:g),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function d(e,t,r){return P[r.context.type](e,t,r)}function u(e,t,r,n){for(var o=n||1;o>0;o--)r.context=r.context.prev;return d(e,t,r)}function p(e){var t=e.current().toLowerCase();h=T.hasOwnProperty(t)?"atom":S.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,h,g=t.indentUnit,b=r.tokenHooks,y=r.documentTypes||{},k=r.mediaTypes||{},v=r.mediaFeatures||{},w=r.mediaValueKeywords||{},x=r.propertyKeywords||{},M=r.nonStandardPropertyKeywords||{},z=r.fontProperties||{},j=r.counterDescriptors||{},S=r.colorKeywords||{},T=r.valueKeywords||{},A=r.allowNested,C=r.lineComment,q=!0===r.supportsAtComponent,P={};return P.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(q&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)h="builtin";else if("word"==e)h="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(A&&"("==e)return s(r,t,"parens")}return r.context.type},P.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return x.hasOwnProperty(n)?(h="property","maybeprop"):M.hasOwnProperty(n)?(h="string-2","maybeprop"):A?(h=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(h+=" error","maybeprop")}return"meta"==e?"block":A||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(h="error","block")},P.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):d(e,t,r)},P.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&A)return s(r,t,"propBlock");if("}"==e||"{"==e)return u(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else h+=" error";return"prop"},P.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(h="property","maybeprop"):r.context.type},P.parens=function(e,t,r){return"{"==e||"}"==e?u(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},P.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(h="variable-3",r.context.type):d(e,t,r)},P.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(h="tag",r.context.type):P.atBlock(e,t,r)},P.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return u(e,t,r);if("{"==e)return c(r)&&s(r,t,A?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();h="only"==n||"not"==n||"and"==n||"or"==n?"keyword":k.hasOwnProperty(n)?"attribute":v.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"keyword":x.hasOwnProperty(n)?"property":M.hasOwnProperty(n)?"string-2":T.hasOwnProperty(n)?"atom":S.hasOwnProperty(n)?"keyword":"error"}return r.context.type},P.atComponentBlock=function(e,t,r){return"}"==e?u(e,t,r):"{"==e?c(r)&&s(r,t,A?"block":"top",!1):("word"==e&&(h="error"),r.context.type)},P.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?u(e,t,r,2):P.atBlock(e,t,r)},P.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(h="variable","restricted_atBlock_before"):d(e,t,r)},P.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(h="@font-face"==r.stateArg&&!z.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,r){return"word"==e?(h="variable","keyframes"):"{"==e?s(r,t,"top"):d(e,t,r)},P.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?u(e,t,r):("word"==e?h="tag":"hash"==e&&(h="builtin"),"at")},P.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?u(e,t,r):("word"==e?h="variable":"variable"!=e&&"("!=e&&")"!=e&&(h="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||o)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),h=r,"comment"!=f&&(t.state=P[t.state](f,e,t)),h},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-g)):(r=r.prev,o=r.indent)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}})
|
2
|
-
;var n=["domain","regexp","url","url-prefix"],o=t(n),a=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(a),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],d=t(c),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(u),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),h=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=t(h),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(b),k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(k),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(w),M=n.concat(a).concat(l).concat(c).concat(u).concat(m).concat(k).concat(w);e.registerHelper("hintWords","css",M),e.defineMIME("text/css",{documentTypes:o,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:v,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:v,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function a(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),o=e[r],a=o.length-1;a>=0;a--)n.unshift(o[a])}function i(e,t){for(var r=0;r<e.length;r++){var o=e[r];if(!o[0]||o[1].test(n(t,o[0])))return o[2]}}var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},s={};e.defineMode("htmlmixed",function(r,n){function s(n,a){var l,u=c.token(n,a.htmlState),p=/\btag\b/.test(u);if(p&&!/[<>\s\/]/.test(n.current())&&(l=a.htmlState.tagName&&a.htmlState.tagName.toLowerCase())&&d.hasOwnProperty(l))a.inTag=l+" ";else if(a.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(a.inTag);a.inTag=null;var f=">"==n.current()&&i(d[m[1]],m[2]),h=e.getMode(r,f),g=o(m[1],!0),b=o(m[1],!1);a.token=function(e,r){return e.match(g,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,b,r.localMode.token(e,r.localState))},a.localMode=h,a.localState=e.startState(h,c.indent(a.htmlState,""))}else a.inTag&&(a.inTag+=n.current(),n.eol()&&(a.inTag+=" "));return u}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),d={},u=n&&n.tags,p=n&&n.scriptTypes;if(a(l,d),u&&a(u,d),p)for(var m=p.length-1;m>=0;m--)d.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){function r(e,t,r,n){if("string"==typeof t){var o=e.indexOf(t,r);return n&&o>-1?o+t.length:o}var a=t.exec(r?e.slice(r):e);return a?a.index+r+(n?a[0].length:0):-1}var n=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(o,a){if(a.innerActive){var i=a.innerActive,l=o.string;if(!i.close&&o.sol())return a.innerActive=a.inner=null,this.token(o,a);var s=i.close?r(l,i.close,o.pos,i.parseDelimiters):-1;if(s==o.pos&&!i.parseDelimiters)return o.match(i.close),a.innerActive=a.inner=null,i.delimStyle&&i.delimStyle+" "+i.delimStyle+"-close";s>-1&&(o.string=l.slice(0,s));var c=i.mode.token(o,a.inner);return s>-1&&(o.string=l),s==o.pos&&i.parseDelimiters&&(a.innerActive=a.inner=null),i.innerStyle&&(c=c?c+" "+i.innerStyle:i.innerStyle),c}for(var d=1/0,l=o.string,u=0;u<n.length;++u){var p=n[u],s=r(l,p.open,o.pos);if(s==o.pos){p.parseDelimiters||o.match(p.open),a.innerActive=p;var m=0;if(t.indent){var f=t.indent(a.outer,"");f!==e.Pass&&(m=f)}return a.inner=e.startState(p.mode,m),p.delimStyle&&p.delimStyle+" "+p.delimStyle+"-open"}-1!=s&&s<d&&(d=s)}d!=1/0&&(o.string=l.slice(0,d));var h=t.token(o,a.outer);return d!=1/0&&(o.string=l),h},indent:function(r,n){var o=r.innerActive?r.innerActive.mode:t;return o.indent?o.indent(r.innerActive?r.inner:r.outer,n):e.Pass},blankLine:function(r){var o=r.innerActive?r.innerActive.mode:t;if(o.blankLine&&o.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var a=0;a<n.length;++a){var i=n[a];"\n"===i.open&&(r.innerActive=i,r.inner=e.startState(i.mode,o.indent?o.indent(r.outer,""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex")):"function"==typeof define&&define.amd?define("mode/htmlembedded/htmlembedded.js",["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("htmlembedded",function(t,r){var n=r.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:r.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(e){return e.skipTo(n)||e.skipToEnd(),"comment"}}},{open:r.open||r.scriptStartRegex||"<%",close:r.close||r.scriptEndRegex||"%>",mode:e.getMode(t,r.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}),function(e){"function"==typeof define&&define("modeHtml",["mode/htmlembedded/htmlembedded.js"],function(){})}();
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,o){function a(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=a,S=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return S="equals",null;if("<"==r){t.tokenize=a,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=a;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=a;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function d(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(M.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!M.contextGrabbers.hasOwnProperty(r)||!M.contextGrabbers[r].hasOwnProperty(t))return;u(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?h:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),T="tag",y):M.allowMissingTagName&&"endTag"==e?(T="tag bracket",y(e,t,r)):(T="error",f)}function h(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&M.implicitlyClosed.hasOwnProperty(r.context.tagName)&&u(r),r.context&&r.context.tagName==n||!1===M.matchClosing?(T="tag",g):(T="tag error",b)}return M.allowMissingTagName&&"endTag"==e?(T="tag bracket",g(e,t,r)):(T="error",b)}function g(e,t,r){return"endTag"!=e?(T="error",g):(u(r),m)}function b(e,t,r){return T="error",g(e,t,r)}function y(e,t,r){if("word"==e)return T="attribute",v;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||M.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new d(r,n,o==r.indented)),m}return T="error",y}function v(e,t,r){return"equals"==e?k:(M.allowMissing||(T="error"),y(e,t,r))}function k(e,t,r){return"string"==e?w:"word"==e&&M.allowUnquoted?(T="string",y):(T="error",y(e,t,r))}function w(e,t,r){return"string"==e?w:y(e,t,r)}var x=n.indentUnit,M={},z=o.htmlMode?t:r;for(var j in z)M[j]=z[j];for(var j in o)M[j]=o[j];var S,T;return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;S=null;var r=t.tokenize(e,t);return(r||S)&&"comment"!=r&&(T=null,t.state=t.state(S||r,e,t),T&&(r="error"==T?r+" error":T)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+x;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=a)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==M.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+x*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var l=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(l&&l[1])for(;o;){if(o.tagName==l[2]){o=o.prev;break}if(!M.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(l)for(;o;){var s=M.contextGrabbers[o.tagName];if(!s||!s.hasOwnProperty(l[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+x:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function o(e,t,r){return Be=e,_e=r,t}function a(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return o("number","number");if("."==r&&e.match(".."))return o("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return o(r);if("="==r&&e.eat(">"))return o("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return o("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),o("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),o("comment","comment")):Ve(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),o("regexp","string-2")):(e.eat("="),o("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),o("error","error");if(Ye.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),o("operator","operator",e.current());if(He.test(r)){e.eatWhile(He);var a=e.current();if("."!=t.lastType){if(Ge.propertyIsEnumerable(a)){var c=Ge[a];return o(c.type,c.style,a)}if("async"==a&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return o("async","keyword",a)}return o("variable","variable",a)}}function i(e){return function(t,r){var n,i=!1;if(Fe&&"@"==t.peek()&&t.match(Re))return r.tokenize=a,o("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=a),o("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=a;break}n="*"==r}return o("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=a;break}n=!n&&"\\"==r}return o("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ue){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,a=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Xe.indexOf(l);if(s>=0&&s<3){if(!o){++i;break}if(0==--o){"("==l&&(a=!0);break}}else if(s>=3&&s<6)++o;else if(He.test(l))a=!0;else{if(/["'\/]/.test(l))return;if(a&&!o){++i;break}}}a&&!o&&(t.fatArrowAt=i)}}function d(e,t,r,n,o,a){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=a,null!=n&&(this.align=n)}function u(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,o){var a=e.cc;for(Je.state=e,Je.stream=o,Je.marked=null,Je.cc=a,Je.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():De?C:T)(r,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return Je.marked?Je.marked:"variable"==r&&u(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Je.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function h(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function g(e){var t=Je.state;if(Je.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=b(e,t.context);if(null!=n)return void(t.context=n)}else if(!h(e,t.localVars))return void(t.localVars=new k(e,t.localVars));r.globalVars&&!h(e,t.globalVars)&&(t.globalVars=new k(e,t.globalVars))}function b(e,t){if(t){if(t.block){var r=b(e,t.prev);return r?r==t.prev?t:new v(r,t.vars,!0):null}return h(e,t.vars)?t:new v(t.prev,new k(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function v(e,t,r){this.prev=e,this.vars=t,this.block=r}function k(e,t){this.name=e,this.next=t}function w(){Je.state.context=new v(Je.state.context,Je.state.localVars,!1),Je.state.localVars=Qe}function x(){Je.state.context=new v(Je.state.context,Je.state.localVars,!0),Je.state.localVars=null}function M(){Je.state.localVars=Je.state.context.vars,Je.state.context=Je.state.context.prev}function z(e,t){var r=function(){var r=Je.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new d(n,Je.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function j(){var e=Je.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function S(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function T(e,t){return"var"==e?f(z("vardef",t),se,S(";"),j):"keyword a"==e?f(z("form"),P,T,j):"keyword b"==e?f(z("form"),T,j):"keyword d"==e?Je.stream.match(/^\s*$/,!1)?f():f(z("stat"),E,S(";"),j):"debugger"==e?f(S(";")):"{"==e?f(z("}"),x,X,j,M):";"==e?f():"if"==e?("else"==Je.state.lexical.info&&Je.state.cc[Je.state.cc.length-1]==j&&Je.state.cc.pop()(),f(z("form"),P,T,j,fe)):"function"==e?f(ye):"for"==e?f(z("form"),he,T,j):"class"==e||Ue&&"interface"==t?(Je.marked="keyword",f(z("form","class"==e?e:t),Me,j)):"variable"==e?Ue&&"declare"==t?(Je.marked="keyword",f(T)):Ue&&("module"==t||"enum"==t||"type"==t)&&Je.stream.match(/^\s*\w/,!1)?(Je.marked="keyword","enum"==t?f(Ne):"type"==t?f(ke,S("operator"),ee,S(";")):f(z("form"),ce,S("{"),z("}"),X,j,j)):Ue&&"namespace"==t?(Je.marked="keyword",f(z("form"),C,T,j)):Ue&&"abstract"==t?(Je.marked="keyword",f(T)):f(z("stat"),F):"switch"==e?f(z("form"),P,S("{"),z("}","switch"),x,X,j,j,M):"case"==e?f(C,S(":")):"default"==e?f(S(":")):"catch"==e?f(z("form"),w,A,T,j,M):"export"==e?f(z("stat"),Te,j):"import"==e?f(z("stat"),Ce,j):"async"==e?f(T):"@"==t?f(C,T):m(z("stat"),C,S(";"),j)}function A(e){if("("==e)return f(we,S(")"))}function C(e,t){return I(e,t,!1)}function q(e,t){return I(e,t,!0)}function P(e){return"("!=e?m():f(z(")"),C,S(")"),j)}function I(e,t,r){if(Je.state.fatArrowAt==Je.stream.start){var n=r?B:V;if("("==e)return f(w,z(")"),Y(we,")"),j,S("=>"),n,M);if("variable"==e)return m(w,ce,S("=>"),n,M)}var o=r?N:O;return Ze.hasOwnProperty(e)?f(o):"function"==e?f(ye,o):"class"==e||Ue&&"interface"==t?(Je.marked="keyword",f(z("form"),xe,j)):"keyword c"==e||"async"==e?f(r?q:C):"("==e?f(z(")"),E,S(")"),j,o):"operator"==e||"spread"==e?f(r?q:C):"["==e?f(z("]"),Oe,j,o):"{"==e?R(U,"}",null,o):"quasi"==e?m($,o):"new"==e?f(_(r)):"import"==e?f(C):f()}function E(e){return e.match(/[;\}\)\],]/)?m():m(C)}function O(e,t){return","==e?f(C):N(e,t,!1)}function N(e,t,r){var n=0==r?O:N,o=0==r?C:q;return"=>"==e?f(w,r?B:V,M):"operator"==e?/\+\+|--/.test(t)||Ue&&"!"==t?f(n):Ue&&"<"==t&&Je.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(z(">"),Y(ee,">"),j,n):"?"==t?f(C,S(":"),o):f(o):"quasi"==e?m($,n):";"!=e?"("==e?R(q,")","call",n):"."==e?f(D,n):"["==e?f(z("]"),E,S("]"),j,n):Ue&&"as"==t?(Je.marked="keyword",f(ee,n)):"regexp"==e?(Je.state.lastType=Je.marked="operator",Je.stream.backUp(Je.stream.pos-Je.stream.start-1),f(o)):void 0:void 0}function $(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f($):f(C,K)}function K(e){if("}"==e)return Je.marked="string-2",Je.state.tokenize=s,f($)}function V(e){return c(Je.stream,Je.state),m("{"==e?T:C)}function B(e){return c(Je.stream,Je.state),m("{"==e?T:q)}function _(e){return function(t){return"."==t?f(e?L:W):"variable"==t&&Ue?f(ae,e?N:O):m(e?q:C)}}function W(e,t){if("target"==t)return Je.marked="keyword",f(O)}function L(e,t){if("target"==t)return Je.marked="keyword",f(N)}function F(e){return":"==e?f(j,T):m(O,S(";"),j)}function D(e){if("variable"==e)return Je.marked="property",f()}function U(e,t){if("async"==e)return Je.marked="property",f(U);if("variable"==e||"keyword"==Je.style){if(Je.marked="property","get"==t||"set"==t)return f(H);var r;return Ue&&Je.state.fatArrowAt==Je.stream.start&&(r=Je.stream.match(/^\s*:\s*/,!1))&&(Je.state.fatArrowAt=Je.stream.pos+r[0].length),f(G)}return"number"==e||"string"==e?(Je.marked=Fe?"property":Je.style+" property",f(G)):"jsonld-keyword"==e?f(G):Ue&&y(t)?(Je.marked="keyword",f(U)):"["==e?f(C,Z,S("]"),G):"spread"==e?f(q,G):"*"==t?(Je.marked="keyword",f(U)):":"==e?m(G):void 0}function H(e){return"variable"!=e?m(G):(Je.marked="property",f(ye))}function G(e){return":"==e?f(q):"("==e?m(ye):void 0}function Y(e,t,r){function n(o,a){if(r?r.indexOf(o)>-1:","==o){var i=Je.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return o==t||a==t?f():r&&r.indexOf(";")>-1?m(e):f(S(t))}return function(r,o){return r==t||o==t?f():m(e,n)}}function R(e,t,r){for(var n=3;n<arguments.length;n++)Je.cc.push(arguments[n]);return f(z(t,r),Y(e,t),j)}function X(e){return"}"==e?f():m(T,X)}function Z(e,t){if(Ue){if(":"==e||"in"==t)return f(ee);if("?"==t)return f(Z)}}function J(e){if(Ue&&":"==e)return Je.stream.match(/^\s*\w+\s+is\b/,!1)?f(C,Q,ee):f(ee)}function Q(e,t){if("is"==t)return Je.marked="keyword",f()}function ee(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(Je.marked="keyword",f("typeof"==t?q:ee)):"variable"==e||"void"==t?(Je.marked="type",f(oe)):"|"==t||"&"==t?f(ee):"string"==e||"number"==e||"atom"==e?f(oe):"["==e?f(z("]"),Y(ee,"]",","),j,oe):"{"==e?f(z("}"),Y(re,"}",",;"),j,oe):"("==e?f(Y(ne,")"),te,oe):"<"==e?f(Y(ee,">"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Je.style?(Je.marked="property",f(re)):"?"==t||"number"==e||"string"==e?f(re):":"==e?f(ee):"["==e?f(S("variable"),Z,S("]"),re):"("==e?m(ve,re):void 0}function ne(e,t){return"variable"==e&&Je.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):"spread"==e?f(ne):m(ee)}function oe(e,t){return"<"==t?f(z(">"),Y(ee,">"),j,oe):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(ee,S("]"),oe):"extends"==t||"implements"==t?(Je.marked="keyword",f(ee)):"?"==t?f(ee,S(":"),ee):void 0}function ae(e,t){if("<"==t)return f(z(">"),Y(ee,">"),j,oe)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Je.marked="keyword",f(Ne)):m(ce,Z,pe,me)}function ce(e,t){return Ue&&y(t)?(Je.marked="keyword",f(ce)):"variable"==e?(g(t),f()):"spread"==e?f(ce):"["==e?R(ue,"]"):"{"==e?R(de,"}"):void 0}function de(e,t){return"variable"!=e||Je.stream.match(/^\s*:/,!1)?("variable"==e&&(Je.marked="property"),"spread"==e?f(ce):"}"==e?m():"["==e?f(C,S("]"),S(":"),de):f(S(":"),ce,pe)):(g(t),f(pe))}function ue(){return m(ce,pe)}function pe(e,t){if("="==t)return f(q)}function me(e){if(","==e)return f(se)}function fe(e,t){if("keyword b"==e&&"else"==t)return f(z("form","else"),T,j)}function he(e,t){return"await"==t?f(he):"("==e?f(z(")"),ge,j):void 0}function ge(e){return"var"==e?f(se,be):"variable"==e?f(be):m(be)}function be(e,t){return")"==e?f():";"==e?f(be):"in"==t||"of"==t?(Je.marked="keyword",f(C,be)):m(C,be)}function ye(e,t){return"*"==t?(Je.marked="keyword",f(ye)):"variable"==e?(g(t),f(ye)):"("==e?f(w,z(")"),Y(we,")"),j,J,T,M):Ue&&"<"==t?f(z(">"),Y(ie,">"),j,ye):void 0}function ve(e,t){return"*"==t?(Je.marked="keyword",f(ve)):"variable"==e?(g(t),f(ve)):"("==e?f(w,z(")"),Y(we,")"),j,J,M):Ue&&"<"==t?f(z(">"),Y(ie,">"),j,ve):void 0}function ke(e,t){return"keyword"==e||"variable"==e?(Je.marked="type",f(ke)):"<"==t?f(z(">"),Y(ie,">"),j):void 0}function we(e,t){return"@"==t&&f(C,we),"spread"==e?f(we):Ue&&y(t)?(Je.marked="keyword",f(we)):Ue&&"this"==e?f(Z,pe):m(ce,Z,pe)}function xe(e,t){return"variable"==e?Me(e,t):ze(e,t)}function Me(e,t){if("variable"==e)return g(t),f(ze)}function ze(e,t){return"<"==t?f(z(">"),Y(ie,">"),j,ze):"extends"==t||"implements"==t||Ue&&","==e?("implements"==t&&(Je.marked="keyword"),f(Ue?ee:C,ze)):"{"==e?f(z("}"),je,j):void 0}function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ue&&y(t))&&Je.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Je.marked="keyword",f(je)):"variable"==e||"keyword"==Je.style?(Je.marked="property",f(Ue?Se:ye,je)):"number"==e||"string"==e?f(Ue?Se:ye,je):"["==e?f(C,Z,S("]"),Ue?Se:ye,je):"*"==t?(Je.marked="keyword",f(je)):Ue&&"("==e?m(ve,je):";"==e||","==e?f(je):"}"==e?f():"@"==t?f(C,je):void 0}function Se(e,t){if("?"==t)return f(Se);if(":"==e)return f(ee,pe);if("="==t)return f(q);var r=Je.state.lexical.prev;return m(r&&"interface"==r.info?ve:ye)}function Te(e,t){return"*"==t?(Je.marked="keyword",f(Ee,S(";"))):"default"==t?(Je.marked="keyword",f(C,S(";"))):"{"==e?f(Y(Ae,"}"),Ee,S(";")):m(T)}function Ae(e,t){return"as"==t?(Je.marked="keyword",f(S("variable"))):"variable"==e?m(q,Ae):void 0}function Ce(e){return"string"==e?f():"("==e?m(C):m(qe,Pe,Ee)}function qe(e,t){return"{"==e?R(qe,"}"):("variable"==e&&g(t),"*"==t&&(Je.marked="keyword"),f(Ie))}function Pe(e){if(","==e)return f(qe,Pe)}function Ie(e,t){if("as"==t)return Je.marked="keyword",f(qe)}function Ee(e,t){if("from"==t)return Je.marked="keyword",f(C)}function Oe(e){return"]"==e?f():m(Y(q,"]"))}function Ne(){return m(z("form"),ce,S("{"),z("}"),Y($e,"}"),j,j)}function $e(){return m(ce,pe)}function Ke(e,t){return"operator"==e.lastType||","==e.lastType||Ye.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ve(e,t,r){return t.tokenize==a&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Be,_e,We=t.indentUnit,Le=r.statementIndent,Fe=r.jsonld,De=r.json||Fe,Ue=r.typescript,He=r.wordCharacters||/[\w$\xa1-\uffff]/,Ge=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),o=e("keyword d"),a=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Ye=/[+\-*&%=<>!?|~^@]/,Re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Xe="([{}])",Ze={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Je={state:null,column:null,marked:null,cc:null},Qe=new k("this",new k("arguments",null));return M.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new d((e||0)-We,0,"block",!1),localVars:r.localVars,context:r.localVars&&new v(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Be?r:(t.lastType="operator"!=Be||"++"!=_e&&"--"!=_e?Be:"incdec",p(t,r,Be,_e,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=a)return 0;var o,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var d=t.cc[c];if(d==j)s=s.prev;else if(d!=fe)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(o=t.cc[t.cc.length-1])&&(o==O||o==N)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Le&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var u=s.type,p=i==u;return"vardef"==u?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==u&&"{"==i?s.indented:"form"==u?s.indented+We:"stat"==u?s.indented+(Ke(t,n)?Le||We:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:We):s.indented+(/^(?:case|default)\b/.test(n)?We:2*We)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:De?null:"/*",blockCommentEnd:De?null:"*/",blockCommentContinue:De?null:" * ",lineComment:De?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:De?"json":"javascript",jsonldMode:Fe,jsonMode:De,expressionAllowed:Ve,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=q||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function n(e,t){return f=t,e}function o(e,t){var r=e.next();if(b[r]){var o=b[r](e,t);if(!1!==o)return o}return"@"==r?(e.eatWhile(/[\w\\\-]/),n("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?n(null,"compare"):'"'==r||"'"==r?(t.tokenize=a(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),n("atom","hash")):"!"==r?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),n("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=i),n("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function a(e){return function(t,r){for(var o,a=!1;null!=(o=t.next());){if(o==e&&!a){")"==e&&t.backUp(1);break}a=!a&&"\\"==o}return(o==e||!a&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=a(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:g),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function d(e,t,r){return P[r.context.type](e,t,r)}function u(e,t,r,n){for(var o=n||1;o>0;o--)r.context=r.context.prev;return d(e,t,r)}function p(e){var t=e.current().toLowerCase();h=T.hasOwnProperty(t)?"atom":S.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,h,g=t.indentUnit,b=r.tokenHooks,y=r.documentTypes||{},v=r.mediaTypes||{},k=r.mediaFeatures||{},w=r.mediaValueKeywords||{},x=r.propertyKeywords||{},M=r.nonStandardPropertyKeywords||{},z=r.fontProperties||{},j=r.counterDescriptors||{},S=r.colorKeywords||{},T=r.valueKeywords||{},A=r.allowNested,C=r.lineComment,q=!0===r.supportsAtComponent,P={};return P.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(q&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)h="builtin";else if("word"==e)h="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(A&&"("==e)return s(r,t,"parens")}return r.context.type},P.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return x.hasOwnProperty(n)?(h="property","maybeprop"):M.hasOwnProperty(n)?(h="string-2","maybeprop"):A?(h=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(h+=" error","maybeprop")}return"meta"==e?"block":A||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(h="error","block")},P.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):d(e,t,r)},P.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&A)return s(r,t,"propBlock");if("}"==e||"{"==e)return u(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else h+=" error";return"prop"},P.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(h="property","maybeprop"):r.context.type},P.parens=function(e,t,r){return"{"==e||"}"==e?u(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},P.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(h="variable-3",r.context.type):d(e,t,r)},P.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(h="tag",r.context.type):P.atBlock(e,t,r)},P.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return u(e,t,r);if("{"==e)return c(r)&&s(r,t,A?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();h="only"==n||"not"==n||"and"==n||"or"==n?"keyword":v.hasOwnProperty(n)?"attribute":k.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"keyword":x.hasOwnProperty(n)?"property":M.hasOwnProperty(n)?"string-2":T.hasOwnProperty(n)?"atom":S.hasOwnProperty(n)?"keyword":"error"}return r.context.type},P.atComponentBlock=function(e,t,r){return"}"==e?u(e,t,r):"{"==e?c(r)&&s(r,t,A?"block":"top",!1):("word"==e&&(h="error"),r.context.type)},P.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?u(e,t,r,2):P.atBlock(e,t,r)},P.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(h="variable","restricted_atBlock_before"):d(e,t,r)},P.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(h="@font-face"==r.stateArg&&!z.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,r){return"word"==e?(h="variable","keyframes"):"{"==e?s(r,t,"top"):d(e,t,r)},P.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?u(e,t,r):("word"==e?h="tag":"hash"==e&&(h="builtin"),"at")},P.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?u(e,t,r):("word"==e?h="variable":"variable"!=e&&"("!=e&&")"!=e&&(h="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||o)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),h=r,"comment"!=f&&(t.state=P[t.state](f,e,t)),h},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-g)):(r=r.prev,o=r.indent)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}})
|
2
|
+
;var n=["domain","regexp","url","url-prefix"],o=t(n),a=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(a),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],d=t(c),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(u),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),h=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=t(h),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(b),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(v),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(w),M=n.concat(a).concat(l).concat(c).concat(u).concat(m).concat(v).concat(w);e.registerHelper("hintWords","css",M),e.defineMIME("text/css",{documentTypes:o,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:k,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:k,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function a(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),o=e[r],a=o.length-1;a>=0;a--)n.unshift(o[a])}function i(e,t){for(var r=0;r<e.length;r++){var o=e[r];if(!o[0]||o[1].test(n(t,o[0])))return o[2]}}var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},s={};e.defineMode("htmlmixed",function(r,n){function s(n,a){var l,u=c.token(n,a.htmlState),p=/\btag\b/.test(u);if(p&&!/[<>\s\/]/.test(n.current())&&(l=a.htmlState.tagName&&a.htmlState.tagName.toLowerCase())&&d.hasOwnProperty(l))a.inTag=l+" ";else if(a.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(a.inTag);a.inTag=null;var f=">"==n.current()&&i(d[m[1]],m[2]),h=e.getMode(r,f),g=o(m[1],!0),b=o(m[1],!1);a.token=function(e,r){return e.match(g,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,b,r.localMode.token(e,r.localState))},a.localMode=h,a.localState=e.startState(h,c.indent(a.htmlState,"",""))}else a.inTag&&(a.inTag+=n.current(),n.eol()&&(a.inTag+=" "));return u}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),d={},u=n&&n.tags,p=n&&n.scriptTypes;if(a(l,d),u&&a(u,d),p)for(var m=p.length-1;m>=0;m--)d.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.multiplexingMode=function(t){function r(e,t,r,n){if("string"==typeof t){var o=e.indexOf(t,r);return n&&o>-1?o+t.length:o}var a=t.exec(r?e.slice(r):e);return a?a.index+r+(n?a[0].length:0):-1}var n=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(o,a){if(a.innerActive){var i=a.innerActive,l=o.string;if(!i.close&&o.sol())return a.innerActive=a.inner=null,this.token(o,a);var s=i.close?r(l,i.close,o.pos,i.parseDelimiters):-1;if(s==o.pos&&!i.parseDelimiters)return o.match(i.close),a.innerActive=a.inner=null,i.delimStyle&&i.delimStyle+" "+i.delimStyle+"-close";s>-1&&(o.string=l.slice(0,s));var c=i.mode.token(o,a.inner);return s>-1&&(o.string=l),s==o.pos&&i.parseDelimiters&&(a.innerActive=a.inner=null),i.innerStyle&&(c=c?c+" "+i.innerStyle:i.innerStyle),c}for(var d=1/0,l=o.string,u=0;u<n.length;++u){var p=n[u],s=r(l,p.open,o.pos);if(s==o.pos){p.parseDelimiters||o.match(p.open),a.innerActive=p;var m=0;if(t.indent){var f=t.indent(a.outer,"","");f!==e.Pass&&(m=f)}return a.inner=e.startState(p.mode,m),p.delimStyle&&p.delimStyle+" "+p.delimStyle+"-open"}-1!=s&&s<d&&(d=s)}d!=1/0&&(o.string=l.slice(0,d));var h=t.token(o,a.outer);return d!=1/0&&(o.string=l),h},indent:function(r,n,o){var a=r.innerActive?r.innerActive.mode:t;return a.indent?a.indent(r.innerActive?r.inner:r.outer,n,o):e.Pass},blankLine:function(r){var o=r.innerActive?r.innerActive.mode:t;if(o.blankLine&&o.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var a=0;a<n.length;++a){var i=n[a];"\n"===i.open&&(r.innerActive=i,r.inner=e.startState(i.mode,o.indent?o.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex")):"function"==typeof define&&define.amd?define("mode/htmlembedded/htmlembedded.js",["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("htmlembedded",function(t,r){var n=r.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:r.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(e){return e.skipTo(n)||e.skipToEnd(),"comment"}}},{open:r.open||r.scriptStartRegex||"<%",close:r.close||r.scriptEndRegex||"%>",mode:e.getMode(t,r.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}),function(e){"function"==typeof define&&define("modeHtml",["mode/htmlembedded/htmlembedded.js"],function(){})}();
|
data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return Ue=e,Be=r,t}function i(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=o(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=c,c(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):Ne(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(Le.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(Ge.test(r)){e.eatWhile(Ge);var i=e.current();if("."!=t.lastType){if(Ke.propertyIsEnumerable(i)){var u=Ke[i];return a(u.type,u.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",i)}return a("variable","variable",i)}}function o(e){return function(t,r){var n,o=!1;if(We&&"@"==t.peek()&&t.match(Qe))return r.tokenize=i,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(r.tokenize=i),a("string","string")}}function c(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=i;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=i;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Fe){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=Re.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(Ge.test(c))i=!0;else{if(/["'\/]/.test(c))return;if(i&&!a){++o;break}}}i&&!a&&(t.fatArrowAt=o)}}function f(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function l(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function d(e,t,r,n,a){var i=e.cc;for(Ye.state=e,Ye.stream=a,Ye.marked=null,Ye.cc=i,Ye.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((i.length?i.pop():De?I:E)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return Ye.marked?Ye.marked:"variable"==r&&l(e,n)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Ye.cc.push(arguments[e])}function m(){return p.apply(null,arguments),!0}function v(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function k(e){var t=Ye.state;if(Ye.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=y(e,t.context);if(null!=n)return void(t.context=n)}else if(!v(e,t.localVars))return void(t.localVars=new x(e,t.localVars));r.globalVars&&!v(e,t.globalVars)&&(t.globalVars=new x(e,t.globalVars))}function y(e,t){if(t){if(t.block){var r=y(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return v(e,t.vars)?t:new b(t.prev,new x(e,t.vars),!1)}return null}function w(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function x(e,t){this.name=e,this.next=t}function h(){Ye.state.context=new b(Ye.state.context,Ye.state.localVars,!1),Ye.state.localVars=Ze}function g(){Ye.state.context=new b(Ye.state.context,Ye.state.localVars,!0),Ye.state.localVars=null}function j(){Ye.state.localVars=Ye.state.context.vars,Ye.state.context=Ye.state.context.prev}function M(e,t){var r=function(){var r=Ye.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new f(n,Ye.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function V(){var e=Ye.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function A(e){function t(r){return r==e?m():";"==e||"}"==r||")"==r||"]"==r?p():m(t)}return t}function E(e,t){return"var"==e?m(M("vardef",t),se,A(";"),V):"keyword a"==e?m(M("form"),$,E,V):"keyword b"==e?m(M("form"),E,V):"keyword d"==e?Ye.stream.match(/^\s*$/,!1)?m():m(M("stat"),q,A(";"),V):"debugger"==e?m(A(";")):"{"==e?m(M("}"),g,X,V,j):";"==e?m():"if"==e?("else"==Ye.state.lexical.info&&Ye.state.cc[Ye.state.cc.length-1]==V&&Ye.state.cc.pop()(),m(M("form"),$,E,V,pe)):"function"==e?m(be):"for"==e?m(M("form"),me,E,V):"class"==e||Fe&&"interface"==t?(Ye.marked="keyword",m(M("form"),ge,V)):"variable"==e?Fe&&"declare"==t?(Ye.marked="keyword",m(E)):Fe&&("module"==t||"enum"==t||"type"==t)&&Ye.stream.match(/^\s*\w/,!1)?(Ye.marked="keyword","enum"==t?m(Oe):"type"==t?m(ee,A("operator"),ee,A(";")):m(M("form"),ue,A("{"),M("}"),X,V,V)):Fe&&"namespace"==t?(Ye.marked="keyword",m(M("form"),I,X,V)):Fe&&"abstract"==t?(Ye.marked="keyword",m(E)):m(M("stat"),D):"switch"==e?m(M("form"),$,A("{"),M("}","switch"),g,X,V,V,j):"case"==e?m(I,A(":")):"default"==e?m(A(":")):"catch"==e?m(M("form"),h,z,E,V,j):"export"==e?m(M("stat"),Ae,V):"import"==e?m(M("stat"),ze,V):"async"==e?m(E):"@"==t?m(I,E):p(M("stat"),I,A(";"),V)}function z(e){if("("==e)return m(xe,A(")"))}function I(e,t){return C(e,t,!1)}function T(e,t){return C(e,t,!0)}function $(e){return"("!=e?p():m(M(")"),I,A(")"),V)}function C(e,t,r){if(Ye.state.fatArrowAt==Ye.stream.start){var n=r?B:U;if("("==e)return m(h,M(")"),Q(xe,")"),V,A("=>"),n,j);if("variable"==e)return p(h,ue,A("=>"),n,j)}var a=r?P:O;return Xe.hasOwnProperty(e)?m(a):"function"==e?m(be,a):"class"==e||Fe&&"interface"==t?(Ye.marked="keyword",m(M("form"),he,V)):"keyword c"==e||"async"==e?m(r?T:I):"("==e?m(M(")"),q,A(")"),V,a):"operator"==e||"spread"==e?m(r?T:I):"["==e?m(M("]"),qe,V,a):"{"==e?R(G,"}",null,a):"quasi"==e?p(S,a):"new"==e?m(H(r)):"import"==e?m(I):m()}function q(e){return e.match(/[;\}\)\],]/)?p():p(I)}function O(e,t){return","==e?m(I):P(e,t,!1)}function P(e,t,r){var n=0==r?O:P,a=0==r?I:T;return"=>"==e?m(h,r?B:U,j):"operator"==e?/\+\+|--/.test(t)||Fe&&"!"==t?m(n):Fe&&"<"==t&&Ye.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?m(M(">"),Q(ee,">"),V,n):"?"==t?m(I,A(":"),a):m(a):"quasi"==e?p(S,n):";"!=e?"("==e?R(T,")","call",n):"."==e?m(F,n):"["==e?m(M("]"),q,A("]"),V,n):Fe&&"as"==t?(Ye.marked="keyword",m(ee,n)):"regexp"==e?(Ye.state.lastType=Ye.marked="operator",Ye.stream.backUp(Ye.stream.pos-Ye.stream.start-1),m(a)):void 0:void 0}function S(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?m(S):m(I,N)}function N(e){if("}"==e)return Ye.marked="string-2",Ye.state.tokenize=s,m(S)}function U(e){return u(Ye.stream,Ye.state),p("{"==e?E:I)}function B(e){return u(Ye.stream,Ye.state),p("{"==e?E:T)}function H(e){return function(t){return"."==t?m(e?W:J):"variable"==t&&Fe?m(ie,e?P:O):p(e?T:I)}}function J(e,t){if("target"==t)return Ye.marked="keyword",m(O)}function W(e,t){if("target"==t)return Ye.marked="keyword",m(P)}function D(e){return":"==e?m(V,E):p(O,A(";"),V)}function F(e){if("variable"==e)return Ye.marked="property",m()}function G(e,t){if("async"==e)return Ye.marked="property",m(G);if("variable"==e||"keyword"==Ye.style){if(Ye.marked="property","get"==t||"set"==t)return m(K);var r;return Fe&&Ye.state.fatArrowAt==Ye.stream.start&&(r=Ye.stream.match(/^\s*:\s*/,!1))&&(Ye.state.fatArrowAt=Ye.stream.pos+r[0].length),m(L)}return"number"==e||"string"==e?(Ye.marked=We?"property":Ye.style+" property",m(L)):"jsonld-keyword"==e?m(L):Fe&&w(t)?(Ye.marked="keyword",m(G)):"["==e?m(I,Y,A("]"),L):"spread"==e?m(T,L):"*"==t?(Ye.marked="keyword",m(G)):":"==e?p(L):void 0}function K(e){return"variable"!=e?p(L):(Ye.marked="property",m(be))}function L(e){return":"==e?m(T):"("==e?p(be):void 0}function Q(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=Ye.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),m(function(r,n){return r==t||n==t?p():p(e)},n)}return a==t||i==t?m():m(A(t))}return function(r,a){return r==t||a==t?m():p(e,n)}}function R(e,t,r){for(var n=3;n<arguments.length;n++)Ye.cc.push(arguments[n]);return m(M(t,r),Q(e,t),V)}function X(e){return"}"==e?m():p(E,X)}function Y(e,t){if(Fe){if(":"==e)return m(ee);if("?"==t)return m(Y)}}function Z(e){if(Fe&&":"==e)return Ye.stream.match(/^\s*\w+\s+is\b/,!1)?m(I,_,ee):m(ee)}function _(e,t){if("is"==t)return Ye.marked="keyword",m()}function ee(e,t){return"keyof"==t||"typeof"==t?(Ye.marked="keyword",m("keyof"==t?ee:T)):"variable"==e||"void"==t?(Ye.marked="type",m(ae)):"string"==e||"number"==e||"atom"==e?m(ae):"["==e?m(M("]"),Q(ee,"]",","),V,ae):"{"==e?m(M("}"),Q(re,"}",",;"),V,ae):"("==e?m(Q(ne,")"),te):"<"==e?m(Q(ee,">"),ee):void 0}function te(e){if("=>"==e)return m(ee)}function re(e,t){return"variable"==e||"keyword"==Ye.style?(Ye.marked="property",m(re)):"?"==t?m(re):":"==e?m(ee):"["==e?m(I,Y,A("]"),re):void 0}function ne(e,t){return"variable"==e&&Ye.stream.match(/^\s*[?:]/,!1)||"?"==t?m(ne):":"==e?m(ee):p(ee)}function ae(e,t){return"<"==t?m(M(">"),Q(ee,">"),V,ae):"|"==t||"."==e||"&"==t?m(ee):"["==e?m(A("]"),ae):"extends"==t||"implements"==t?(Ye.marked="keyword",m(ee)):void 0}function ie(e,t){if("<"==t)return m(M(">"),Q(ee,">"),V,ae)}function oe(){return p(ee,ce)}function ce(e,t){if("="==t)return m(ee)}function se(e,t){return"enum"==t?(Ye.marked="keyword",m(Oe)):p(ue,Y,le,de)}function ue(e,t){return Fe&&w(t)?(Ye.marked="keyword",m(ue)):"variable"==e?(k(t),m()):"spread"==e?m(ue):"["==e?R(ue,"]"):"{"==e?R(fe,"}"):void 0}function fe(e,t){return"variable"!=e||Ye.stream.match(/^\s*:/,!1)?("variable"==e&&(Ye.marked="property"),"spread"==e?m(ue):"}"==e?p():m(A(":"),ue,le)):(k(t),m(le))}function le(e,t){if("="==t)return m(T)}function de(e){if(","==e)return m(se)}function pe(e,t){if("keyword b"==e&&"else"==t)return m(M("form","else"),E,V)}function me(e,t){return"await"==t?m(me):"("==e?m(M(")"),ve,A(")"),V):void 0}function ve(e){return"var"==e?m(se,A(";"),ye):";"==e?m(ye):"variable"==e?m(ke):p(I,A(";"),ye)}function ke(e,t){return"in"==t||"of"==t?(Ye.marked="keyword",m(I)):m(O,ye)}function ye(e,t){return";"==e?m(we):"in"==t||"of"==t?(Ye.marked="keyword",m(I)):p(I,A(";"),we)}function we(e){")"!=e&&m(I)}function be(e,t){return"*"==t?(Ye.marked="keyword",m(be)):"variable"==e?(k(t),m(be)):"("==e?m(h,M(")"),Q(xe,")"),V,Z,E,j):Fe&&"<"==t?m(M(">"),Q(oe,">"),V,be):void 0}function xe(e,t){return"@"==t&&m(I,xe),"spread"==e?m(xe):Fe&&w(t)?(Ye.marked="keyword",m(xe)):p(ue,Y,le)}function he(e,t){return"variable"==e?ge(e,t):je(e,t)}function ge(e,t){if("variable"==e)return k(t),m(je)}function je(e,t){return"<"==t?m(M(">"),Q(oe,">"),V,je):"extends"==t||"implements"==t||Fe&&","==e?("implements"==t&&(Ye.marked="keyword"),m(Fe?ee:I,je)):"{"==e?m(M("}"),Me,V):void 0}function Me(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Fe&&w(t))&&Ye.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ye.marked="keyword",m(Me)):"variable"==e||"keyword"==Ye.style?(Ye.marked="property",m(Fe?Ve:be,Me)):"["==e?m(I,Y,A("]"),Fe?Ve:be,Me):"*"==t?(Ye.marked="keyword",m(Me)):";"==e?m(Me):"}"==e?m():"@"==t?m(I,Me):void 0}function Ve(e,t){return"?"==t?m(Ve):":"==e?m(ee,le):"="==t?m(T):p(be)}function Ae(e,t){return"*"==t?(Ye.marked="keyword",m(Ce,A(";"))):"default"==t?(Ye.marked="keyword",m(I,A(";"))):"{"==e?m(Q(Ee,"}"),Ce,A(";")):p(E)}function Ee(e,t){return"as"==t?(Ye.marked="keyword",m(A("variable"))):"variable"==e?p(T,Ee):void 0}function ze(e){return"string"==e?m():"("==e?p(I):p(Ie,Te,Ce)}function Ie(e,t){return"{"==e?R(Ie,"}"):("variable"==e&&k(t),"*"==t&&(Ye.marked="keyword"),m($e))}function Te(e){if(","==e)return m(Ie,Te)}function $e(e,t){if("as"==t)return Ye.marked="keyword",m(Ie)}function Ce(e,t){if("from"==t)return Ye.marked="keyword",m(I)}function qe(e){return"]"==e?m():p(Q(T,"]"))}function Oe(){return p(M("form"),ue,A("{"),M("}"),Q(Pe,"}"),V,V)}function Pe(){return p(ue,le)}function Se(e,t){return"operator"==e.lastType||","==e.lastType||Le.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ne(e,t,r){return t.tokenize==i&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Ue,Be,He=t.indentUnit,Je=r.statementIndent,We=r.jsonld,De=r.json||We,Fe=r.typescript,Ge=r.wordCharacters||/[\w$\xa1-\uffff]/,Ke=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Le=/[+\-*&%=<>!?|~^@]/,Qe=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Re="([{}])",Xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ye={state:null,column:null,marked:null,cc:null},Ze=new x("this",new x("arguments",null));return j.lex=!0,V.lex=!0,{startState:function(e){var t={tokenize:i,lastType:"sof",cc:[],lexical:new f((e||0)-He,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),u(e,t)),t.tokenize!=c&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Ue?r:(t.lastType="operator"!=Ue||"++"!=Be&&"--"!=Be?Ue:"incdec",d(t,r,Ue,Be,e))},indent:function(t,n){if(t.tokenize==c)return e.Pass;if(t.tokenize!=i)return 0;var a,o=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var f=t.cc[u];if(f==V)s=s.prev;else if(f!=pe)break}for(;("stat"==s.type||"form"==s.type)&&("}"==o||(a=t.cc[t.cc.length-1])&&(a==O||a==P)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Je&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var l=s.type,d=o==l;return"vardef"==l?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==l&&"{"==o?s.indented:"form"==l?s.indented+He:"stat"==l?s.indented+(Se(t,n)?Je||He:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:He):s.indented+(/^(?:case|default)\b/.test(n)?He:2*He)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:De?null:"/*",blockCommentEnd:De?null:"*/",blockCommentContinue:De?null:" * ",lineComment:De?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:De?"json":"javascript",jsonldMode:We,jsonMode:De,expressionAllowed:Ne,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=I&&t!=T||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"function"==typeof e.define&&e.define("modeJs",["mode/javascript/javascript.js"],function(){})}(this);
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return Be=e,He=r,t}function i(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=o(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=c,c(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):Ue(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(Qe.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(Ke.test(r)){e.eatWhile(Ke);var i=e.current();if("."!=t.lastType){if(Le.propertyIsEnumerable(i)){var u=Le[i];return a(u.type,u.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",i)}return a("variable","variable",i)}}function o(e){return function(t,r){var n,o=!1;if(De&&"@"==t.peek()&&t.match(Re))return r.tokenize=i,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(r.tokenize=i),a("string","string")}}function c(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=i;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=i;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ge){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=Xe.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(Ke.test(c))i=!0;else{if(/["'\/]/.test(c))return;if(i&&!a){++o;break}}}i&&!a&&(t.fatArrowAt=o)}}function f(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function l(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function d(e,t,r,n,a){var i=e.cc;for(Ze.state=e,Ze.stream=a,Ze.marked=null,Ze.cc=i,Ze.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((i.length?i.pop():Fe?I:E)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return Ze.marked?Ze.marked:"variable"==r&&l(e,n)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Ze.cc.push(arguments[e])}function m(){return p.apply(null,arguments),!0}function v(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function k(e){var t=Ze.state;if(Ze.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=y(e,t.context);if(null!=n)return void(t.context=n)}else if(!v(e,t.localVars))return void(t.localVars=new x(e,t.localVars));r.globalVars&&!v(e,t.globalVars)&&(t.globalVars=new x(e,t.globalVars))}function y(e,t){if(t){if(t.block){var r=y(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return v(e,t.vars)?t:new b(t.prev,new x(e,t.vars),!1)}return null}function w(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function x(e,t){this.name=e,this.next=t}function h(){Ze.state.context=new b(Ze.state.context,Ze.state.localVars,!1),Ze.state.localVars=_e}function g(){Ze.state.context=new b(Ze.state.context,Ze.state.localVars,!0),Ze.state.localVars=null}function j(){Ze.state.localVars=Ze.state.context.vars,Ze.state.context=Ze.state.context.prev}function M(e,t){var r=function(){var r=Ze.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new f(n,Ze.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function V(){var e=Ze.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function A(e){function t(r){return r==e?m():";"==e||"}"==r||")"==r||"]"==r?p():m(t)}return t}function E(e,t){return"var"==e?m(M("vardef",t),se,A(";"),V):"keyword a"==e?m(M("form"),$,E,V):"keyword b"==e?m(M("form"),E,V):"keyword d"==e?Ze.stream.match(/^\s*$/,!1)?m():m(M("stat"),O,A(";"),V):"debugger"==e?m(A(";")):"{"==e?m(M("}"),g,X,V,j):";"==e?m():"if"==e?("else"==Ze.state.lexical.info&&Ze.state.cc[Ze.state.cc.length-1]==V&&Ze.state.cc.pop()(),m(M("form"),$,E,V,me)):"function"==e?m(we):"for"==e?m(M("form"),ve,E,V):"class"==e||Ge&&"interface"==t?(Ze.marked="keyword",m(M("form","class"==e?e:t),je,V)):"variable"==e?Ge&&"declare"==t?(Ze.marked="keyword",m(E)):Ge&&("module"==t||"enum"==t||"type"==t)&&Ze.stream.match(/^\s*\w/,!1)?(Ze.marked="keyword","enum"==t?m(Pe):"type"==t?m(xe,A("operator"),ee,A(";")):m(M("form"),ue,A("{"),M("}"),X,V,V)):Ge&&"namespace"==t?(Ze.marked="keyword",m(M("form"),I,E,V)):Ge&&"abstract"==t?(Ze.marked="keyword",m(E)):m(M("stat"),D):"switch"==e?m(M("form"),$,A("{"),M("}","switch"),g,X,V,V,j):"case"==e?m(I,A(":")):"default"==e?m(A(":")):"catch"==e?m(M("form"),h,z,E,V,j):"export"==e?m(M("stat"),Ee,V):"import"==e?m(M("stat"),Ie,V):"async"==e?m(E):"@"==t?m(I,E):p(M("stat"),I,A(";"),V)}function z(e){if("("==e)return m(he,A(")"))}function I(e,t){return C(e,t,!1)}function T(e,t){return C(e,t,!0)}function $(e){return"("!=e?p():m(M(")"),I,A(")"),V)}function C(e,t,r){if(Ze.state.fatArrowAt==Ze.stream.start){var n=r?B:U;if("("==e)return m(h,M(")"),Q(he,")"),V,A("=>"),n,j);if("variable"==e)return p(h,ue,A("=>"),n,j)}var a=r?P:q;return Ye.hasOwnProperty(e)?m(a):"function"==e?m(we,a):"class"==e||Ge&&"interface"==t?(Ze.marked="keyword",m(M("form"),ge,V)):"keyword c"==e||"async"==e?m(r?T:I):"("==e?m(M(")"),O,A(")"),V,a):"operator"==e||"spread"==e?m(r?T:I):"["==e?m(M("]"),qe,V,a):"{"==e?R(G,"}",null,a):"quasi"==e?p(S,a):"new"==e?m(H(r)):"import"==e?m(I):m()}function O(e){return e.match(/[;\}\)\],]/)?p():p(I)}function q(e,t){return","==e?m(I):P(e,t,!1)}function P(e,t,r){var n=0==r?q:P,a=0==r?I:T;return"=>"==e?m(h,r?B:U,j):"operator"==e?/\+\+|--/.test(t)||Ge&&"!"==t?m(n):Ge&&"<"==t&&Ze.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?m(M(">"),Q(ee,">"),V,n):"?"==t?m(I,A(":"),a):m(a):"quasi"==e?p(S,n):";"!=e?"("==e?R(T,")","call",n):"."==e?m(F,n):"["==e?m(M("]"),O,A("]"),V,n):Ge&&"as"==t?(Ze.marked="keyword",m(ee,n)):"regexp"==e?(Ze.state.lastType=Ze.marked="operator",Ze.stream.backUp(Ze.stream.pos-Ze.stream.start-1),m(a)):void 0:void 0}function S(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?m(S):m(I,N)}function N(e){if("}"==e)return Ze.marked="string-2",Ze.state.tokenize=s,m(S)}function U(e){return u(Ze.stream,Ze.state),p("{"==e?E:I)}function B(e){return u(Ze.stream,Ze.state),p("{"==e?E:T)}function H(e){return function(t){return"."==t?m(e?W:J):"variable"==t&&Ge?m(ie,e?P:q):p(e?T:I)}}function J(e,t){if("target"==t)return Ze.marked="keyword",m(q)}function W(e,t){if("target"==t)return Ze.marked="keyword",m(P)}function D(e){return":"==e?m(V,E):p(q,A(";"),V)}function F(e){if("variable"==e)return Ze.marked="property",m()}function G(e,t){if("async"==e)return Ze.marked="property",m(G);if("variable"==e||"keyword"==Ze.style){if(Ze.marked="property","get"==t||"set"==t)return m(K);var r;return Ge&&Ze.state.fatArrowAt==Ze.stream.start&&(r=Ze.stream.match(/^\s*:\s*/,!1))&&(Ze.state.fatArrowAt=Ze.stream.pos+r[0].length),m(L)}return"number"==e||"string"==e?(Ze.marked=De?"property":Ze.style+" property",m(L)):"jsonld-keyword"==e?m(L):Ge&&w(t)?(Ze.marked="keyword",m(G)):"["==e?m(I,Y,A("]"),L):"spread"==e?m(T,L):"*"==t?(Ze.marked="keyword",m(G)):":"==e?p(L):void 0}function K(e){return"variable"!=e?p(L):(Ze.marked="property",m(we))}function L(e){return":"==e?m(T):"("==e?p(we):void 0}function Q(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=Ze.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),m(function(r,n){return r==t||n==t?p():p(e)},n)}return a==t||i==t?m():r&&r.indexOf(";")>-1?p(e):m(A(t))}return function(r,a){return r==t||a==t?m():p(e,n)}}function R(e,t,r){for(var n=3;n<arguments.length;n++)Ze.cc.push(arguments[n]);return m(M(t,r),Q(e,t),V)}function X(e){return"}"==e?m():p(E,X)}function Y(e,t){if(Ge){if(":"==e||"in"==t)return m(ee);if("?"==t)return m(Y)}}function Z(e){if(Ge&&":"==e)return Ze.stream.match(/^\s*\w+\s+is\b/,!1)?m(I,_,ee):m(ee)}function _(e,t){if("is"==t)return Ze.marked="keyword",m()}function ee(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(Ze.marked="keyword",m("typeof"==t?T:ee)):"variable"==e||"void"==t?(Ze.marked="type",m(ae)):"|"==t||"&"==t?m(ee):"string"==e||"number"==e||"atom"==e?m(ae):"["==e?m(M("]"),Q(ee,"]",","),V,ae):"{"==e?m(M("}"),Q(re,"}",",;"),V,ae):"("==e?m(Q(ne,")"),te,ae):"<"==e?m(Q(ee,">"),ee):void 0}function te(e){if("=>"==e)return m(ee)}function re(e,t){return"variable"==e||"keyword"==Ze.style?(Ze.marked="property",m(re)):"?"==t||"number"==e||"string"==e?m(re):":"==e?m(ee):"["==e?m(A("variable"),Y,A("]"),re):"("==e?p(be,re):void 0}function ne(e,t){return"variable"==e&&Ze.stream.match(/^\s*[?:]/,!1)||"?"==t?m(ne):":"==e?m(ee):"spread"==e?m(ne):p(ee)}function ae(e,t){return"<"==t?m(M(">"),Q(ee,">"),V,ae):"|"==t||"."==e||"&"==t?m(ee):"["==e?m(ee,A("]"),ae):"extends"==t||"implements"==t?(Ze.marked="keyword",m(ee)):"?"==t?m(ee,A(":"),ee):void 0}function ie(e,t){if("<"==t)return m(M(">"),Q(ee,">"),V,ae)}function oe(){return p(ee,ce)}function ce(e,t){if("="==t)return m(ee)}function se(e,t){return"enum"==t?(Ze.marked="keyword",m(Pe)):p(ue,Y,de,pe)}function ue(e,t){return Ge&&w(t)?(Ze.marked="keyword",m(ue)):"variable"==e?(k(t),m()):"spread"==e?m(ue):"["==e?R(le,"]"):"{"==e?R(fe,"}"):void 0}function fe(e,t){return"variable"!=e||Ze.stream.match(/^\s*:/,!1)?("variable"==e&&(Ze.marked="property"),"spread"==e?m(ue):"}"==e?p():"["==e?m(I,A("]"),A(":"),fe):m(A(":"),ue,de)):(k(t),m(de))}function le(){return p(ue,de)}function de(e,t){if("="==t)return m(T)}function pe(e){if(","==e)return m(se)}function me(e,t){if("keyword b"==e&&"else"==t)return m(M("form","else"),E,V)}function ve(e,t){return"await"==t?m(ve):"("==e?m(M(")"),ke,V):void 0}function ke(e){return"var"==e?m(se,ye):"variable"==e?m(ye):p(ye)}function ye(e,t){return")"==e?m():";"==e?m(ye):"in"==t||"of"==t?(Ze.marked="keyword",m(I,ye)):p(I,ye)}function we(e,t){return"*"==t?(Ze.marked="keyword",m(we)):"variable"==e?(k(t),m(we)):"("==e?m(h,M(")"),Q(he,")"),V,Z,E,j):Ge&&"<"==t?m(M(">"),Q(oe,">"),V,we):void 0}function be(e,t){return"*"==t?(Ze.marked="keyword",m(be)):"variable"==e?(k(t),m(be)):"("==e?m(h,M(")"),Q(he,")"),V,Z,j):Ge&&"<"==t?m(M(">"),Q(oe,">"),V,be):void 0}function xe(e,t){return"keyword"==e||"variable"==e?(Ze.marked="type",m(xe)):"<"==t?m(M(">"),Q(oe,">"),V):void 0}function he(e,t){return"@"==t&&m(I,he),"spread"==e?m(he):Ge&&w(t)?(Ze.marked="keyword",m(he)):Ge&&"this"==e?m(Y,de):p(ue,Y,de)}function ge(e,t){return"variable"==e?je(e,t):Me(e,t)}function je(e,t){if("variable"==e)return k(t),m(Me)}function Me(e,t){return"<"==t?m(M(">"),Q(oe,">"),V,Me):"extends"==t||"implements"==t||Ge&&","==e?("implements"==t&&(Ze.marked="keyword"),m(Ge?ee:I,Me)):"{"==e?m(M("}"),Ve,V):void 0}function Ve(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ge&&w(t))&&Ze.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ze.marked="keyword",m(Ve)):"variable"==e||"keyword"==Ze.style?(Ze.marked="property",m(Ge?Ae:we,Ve)):"number"==e||"string"==e?m(Ge?Ae:we,Ve):"["==e?m(I,Y,A("]"),Ge?Ae:we,Ve):"*"==t?(Ze.marked="keyword",m(Ve)):Ge&&"("==e?p(be,Ve):";"==e||","==e?m(Ve):"}"==e?m():"@"==t?m(I,Ve):void 0}function Ae(e,t){if("?"==t)return m(Ae);if(":"==e)return m(ee,de);if("="==t)return m(T);var r=Ze.state.lexical.prev;return p(r&&"interface"==r.info?be:we)}function Ee(e,t){return"*"==t?(Ze.marked="keyword",m(Oe,A(";"))):"default"==t?(Ze.marked="keyword",m(I,A(";"))):"{"==e?m(Q(ze,"}"),Oe,A(";")):p(E)}function ze(e,t){return"as"==t?(Ze.marked="keyword",m(A("variable"))):"variable"==e?p(T,ze):void 0}function Ie(e){return"string"==e?m():"("==e?p(I):p(Te,$e,Oe)}function Te(e,t){return"{"==e?R(Te,"}"):("variable"==e&&k(t),"*"==t&&(Ze.marked="keyword"),m(Ce))}function $e(e){if(","==e)return m(Te,$e)}function Ce(e,t){if("as"==t)return Ze.marked="keyword",m(Te)}function Oe(e,t){if("from"==t)return Ze.marked="keyword",m(I)}function qe(e){return"]"==e?m():p(Q(T,"]"))}function Pe(){return p(M("form"),ue,A("{"),M("}"),Q(Se,"}"),V,V)}function Se(){return p(ue,de)}function Ne(e,t){return"operator"==e.lastType||","==e.lastType||Qe.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ue(e,t,r){return t.tokenize==i&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Be,He,Je=t.indentUnit,We=r.statementIndent,De=r.jsonld,Fe=r.json||De,Ge=r.typescript,Ke=r.wordCharacters||/[\w$\xa1-\uffff]/,Le=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Qe=/[+\-*&%=<>!?|~^@]/,Re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Xe="([{}])",Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ze={state:null,column:null,marked:null,cc:null},_e=new x("this",new x("arguments",null));return j.lex=!0,V.lex=!0,{startState:function(e){var t={tokenize:i,lastType:"sof",cc:[],lexical:new f((e||0)-Je,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),u(e,t)),t.tokenize!=c&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Be?r:(t.lastType="operator"!=Be||"++"!=He&&"--"!=He?Be:"incdec",d(t,r,Be,He,e))},indent:function(t,n){if(t.tokenize==c)return e.Pass;if(t.tokenize!=i)return 0;var a,o=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var f=t.cc[u];if(f==V)s=s.prev;else if(f!=me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==o||(a=t.cc[t.cc.length-1])&&(a==q||a==P)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;We&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var l=s.type,d=o==l;return"vardef"==l?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==l&&"{"==o?s.indented:"form"==l?s.indented+Je:"stat"==l?s.indented+(Ne(t,n)?We||Je:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:Je):s.indented+(/^(?:case|default)\b/.test(n)?Je:2*Je)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Fe?null:"/*",blockCommentEnd:Fe?null:"*/",blockCommentContinue:Fe?null:" * ",lineComment:Fe?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Fe?"json":"javascript",jsonldMode:De,jsonMode:Fe,expressionAllowed:Ue,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=I&&t!=T||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"function"==typeof e.define&&e.define("modeJs",["mode/javascript/javascript.js"],function(){})}(this);
|
@@ -1,3 +1,3 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,a){function o(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(z=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var a;return a=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),a?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=o,z=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return z="equals",null;if("<"==r){t.tokenize=o,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=o;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=o;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function u(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(x.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!x.contextGrabbers.hasOwnProperty(r)||!x.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?g:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),M="tag",y):x.allowMissingTagName&&"endTag"==e?(M="tag bracket",y(e,t,r)):(M="error",f)}function g(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&x.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===x.matchClosing?(M="tag",_):(M="tag error",h)}return x.allowMissingTagName&&"endTag"==e?(M="tag bracket",_(e,t,r)):(M="error",h)}function _(e,t,r){return"endTag"!=e?(M="error",_):(d(r),m)}function h(e,t,r){return M="error",_(e,t,r)}function y(e,t,r){if("word"==e)return M="attribute",b;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,a=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||x.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new u(r,n,a==r.indented)),m}return M="error",y}function b(e,t,r){return"equals"==e?k:(x.allowMissing||(M="error"),y(e,t,r))}function k(e,t,r){return"string"==e?w:"word"==e&&x.allowUnquoted?(M="string",y):(M="error",y(e,t,r))}function w(e,t,r){return"string"==e?w:y(e,t,r)}var v=n.indentUnit,x={},q=a.htmlMode?t:r;for(var S in q)x[S]=q[S];for(var S in a)x[S]=a[S];var z,M;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;z=null;var r=t.tokenize(e,t);return(r||z)&&"comment"!=r&&(M=null,t.state=t.state(z||r,e,t),M&&(r="error"==M?r+" error":M)),r},indent:function(t,r,n){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+v;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=o)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==x.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+v*(x.multilineTagIndentFactor||1);if(x.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var l=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(l&&l[1])for(;a;){if(a.tagName==l[2]){a=a.prev;break}if(!x.implicitlyClosed.hasOwnProperty(a.tagName))break;a=a.prev}else if(l)for(;a;){var s=x.contextGrabbers[a.tagName];if(!s||!s.hasOwnProperty(l[2]))break;a=a.prev}for(;a&&a.prev&&!a.startOfLine;)a=a.prev;return a?a.indent+v:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:x.htmlMode?"html":"xml",helperType:x.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return $e=e,Fe=r,t}function o(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):De(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(He.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(We.test(r)){e.eatWhile(We);var o=e.current();if("."!=t.lastType){if(Re.propertyIsEnumerable(o)){var c=Re[o];return a(c.type,c.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",o)}return a("variable","variable",o)}}function i(e){return function(t,r){var n,i=!1;if(Ke&&"@"==t.peek()&&t.match(Ge))return r.tokenize=o,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=o),a("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ue){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,o=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Ze.indexOf(l);if(s>=0&&s<3){if(!a){++i;break}if(0==--a){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++a;else if(We.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!a){++i;break}}}o&&!a&&(t.fatArrowAt=i)}}function u(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=o,null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,a){var o=e.cc;for(Xe.state=e,Xe.stream=a,Xe.marked=null,Xe.cc=o,Xe.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((o.length?o.pop():Ve?C:M)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Xe.marked?Xe.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Xe.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function g(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function _(e){var t=Xe.state;if(Xe.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=h(e,t.context);if(null!=n)return void(t.context=n)}else if(!g(e,t.localVars))return void(t.localVars=new k(e,t.localVars));r.globalVars&&!g(e,t.globalVars)&&(t.globalVars=new k(e,t.globalVars))}function h(e,t){if(t){if(t.block){var r=h(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return g(e,t.vars)?t:new b(t.prev,new k(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function k(e,t){this.name=e,this.next=t}function w(){Xe.state.context=new b(Xe.state.context,Xe.state.localVars,!1),Xe.state.localVars=Qe}function v(){Xe.state.context=new b(Xe.state.context,Xe.state.localVars,!0),Xe.state.localVars=null}function x(){Xe.state.localVars=Xe.state.context.vars,Xe.state.context=Xe.state.context.prev}function q(e,t){var r=function(){var r=Xe.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new u(n,Xe.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function S(){var e=Xe.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function M(e,t){return"var"==e?f(q("vardef",t),se,z(";"),S):"keyword a"==e?f(q("form"),P,M,S):"keyword b"==e?f(q("form"),M,S):"keyword d"==e?Xe.stream.match(/^\s*$/,!1)?f():f(q("stat"),A,z(";"),S):"debugger"==e?f(z(";")):"{"==e?f(q("}"),v,Y,S,x):";"==e?f():"if"==e?("else"==Xe.state.lexical.info&&Xe.state.cc[Xe.state.cc.length-1]==S&&Xe.state.cc.pop()(),f(q("form"),P,M,S,me)):"function"==e?f(be):"for"==e?f(q("form"),fe,M,S):"class"==e||Ue&&"interface"==t?(Xe.marked="keyword",f(q("form"),ve,S)):"variable"==e?Ue&&"declare"==t?(Xe.marked="keyword",f(M)):Ue&&("module"==t||"enum"==t||"type"==t)&&Xe.stream.match(/^\s*\w/,!1)?(Xe.marked="keyword","enum"==t?f(Ee):"type"==t?f(ee,z("operator"),ee,z(";")):f(q("form"),ce,z("{"),q("}"),Y,S,S)):Ue&&"namespace"==t?(Xe.marked="keyword",f(q("form"),C,Y,S)):Ue&&"abstract"==t?(Xe.marked="keyword",f(M)):f(q("stat"),V):"switch"==e?f(q("form"),P,z("{"),q("}","switch"),v,Y,S,S,x):"case"==e?f(C,z(":")):"default"==e?f(z(":")):"catch"==e?f(q("form"),w,T,M,S,x):"export"==e?f(q("stat"),ze,S):"import"==e?f(q("stat"),Te,S):"async"==e?f(M):"@"==t?f(C,M):m(q("stat"),C,z(";"),S)}function T(e){if("("==e)return f(ke,z(")"))}function C(e,t){return I(e,t,!1)}function j(e,t){return I(e,t,!0)}function P(e){return"("!=e?m():f(q(")"),C,z(")"),S)}function I(e,t,r){if(Xe.state.fatArrowAt==Xe.stream.start){var n=r?F:$;if("("==e)return f(w,q(")"),G(ke,")"),S,z("=>"),n,x);if("variable"==e)return m(w,ce,z("=>"),n,x)}var a=r?L:E;return Ye.hasOwnProperty(e)?f(a):"function"==e?f(be,a):"class"==e||Ue&&"interface"==t?(Xe.marked="keyword",f(q("form"),we,S)):"keyword c"==e||"async"==e?f(r?j:C):"("==e?f(q(")"),A,z(")"),S,a):"operator"==e||"spread"==e?f(r?j:C):"["==e?f(q("]"),Ae,S,a):"{"==e?Z(W,"}",null,a):"quasi"==e?m(O,a):"new"==e?f(B(r)):"import"==e?f(C):f()}function A(e){return e.match(/[;\}\)\],]/)?m():m(C)}function E(e,t){return","==e?f(C):L(e,t,!1)}function L(e,t,r){var n=0==r?E:L,a=0==r?C:j;return"=>"==e?f(w,r?F:$,x):"operator"==e?/\+\+|--/.test(t)||Ue&&"!"==t?f(n):Ue&&"<"==t&&Xe.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(q(">"),G(ee,">"),S,n):"?"==t?f(C,z(":"),a):f(a):"quasi"==e?m(O,n):";"!=e?"("==e?Z(j,")","call",n):"."==e?f(U,n):"["==e?f(q("]"),A,z("]"),S,n):Ue&&"as"==t?(Xe.marked="keyword",f(ee,n)):"regexp"==e?(Xe.state.lastType=Xe.marked="operator",Xe.stream.backUp(Xe.stream.pos-Xe.stream.start-1),f(a)):void 0:void 0}function O(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f(O):f(C,D)}function D(e){if("}"==e)return Xe.marked="string-2",Xe.state.tokenize=s,f(O)}function $(e){return c(Xe.stream,Xe.state),m("{"==e?M:C)}function F(e){return c(Xe.stream,Xe.state),m("{"==e?M:j)}function B(e){return function(t){return"."==t?f(e?K:N):"variable"==t&&Ue?f(oe,e?L:E):m(e?j:C)}}function N(e,t){if("target"==t)return Xe.marked="keyword",f(E)}function K(e,t){if("target"==t)return Xe.marked="keyword",f(L)}function V(e){return":"==e?f(S,M):m(E,z(";"),S)}function U(e){if("variable"==e)return Xe.marked="property",f()}function W(e,t){if("async"==e)return Xe.marked="property",f(W);if("variable"==e||"keyword"==Xe.style){if(Xe.marked="property","get"==t||"set"==t)return f(R);var r;return Ue&&Xe.state.fatArrowAt==Xe.stream.start&&(r=Xe.stream.match(/^\s*:\s*/,!1))&&(Xe.state.fatArrowAt=Xe.stream.pos+r[0].length),f(H)}return"number"==e||"string"==e?(Xe.marked=Ke?"property":Xe.style+" property",f(H)):"jsonld-keyword"==e?f(H):Ue&&y(t)?(Xe.marked="keyword",f(W)):"["==e?f(C,X,z("]"),H):"spread"==e?f(j,H):"*"==t?(Xe.marked="keyword",f(W)):":"==e?m(H):void 0}function R(e){return"variable"!=e?m(H):(Xe.marked="property",f(be))}function H(e){return":"==e?f(j):"("==e?m(be):void 0}function G(e,t,r){function n(a,o){if(r?r.indexOf(a)>-1:","==a){var i=Xe.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return a==t||o==t?f():f(z(t))}return function(r,a){return r==t||a==t?f():m(e,n)}}function Z(e,t,r){for(var n=3;n<arguments.length;n++)Xe.cc.push(arguments[n]);return f(q(t,r),G(e,t),S)}function Y(e){return"}"==e?f():m(M,Y)}function X(e,t){if(Ue){if(":"==e)return f(ee);if("?"==t)return f(X)}}function Q(e){if(Ue&&":"==e)return Xe.stream.match(/^\s*\w+\s+is\b/,!1)?f(C,J,ee):f(ee)}function J(e,t){if("is"==t)return Xe.marked="keyword",f()}function ee(e,t){return"keyof"==t||"typeof"==t?(Xe.marked="keyword",f("keyof"==t?ee:j)):"variable"==e||"void"==t?(Xe.marked="type",f(ae)):"string"==e||"number"==e||"atom"==e?f(ae):"["==e?f(q("]"),G(ee,"]",","),S,ae):"{"==e?f(q("}"),G(re,"}",",;"),S,ae):"("==e?f(G(ne,")"),te):"<"==e?f(G(ee,">"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Xe.style?(Xe.marked="property",f(re)):"?"==t?f(re):":"==e?f(ee):"["==e?f(C,X,z("]"),re):void 0}function ne(e,t){return"variable"==e&&Xe.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):m(ee)}function ae(e,t){return"<"==t?f(q(">"),G(ee,">"),S,ae):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(z("]"),ae):"extends"==t||"implements"==t?(Xe.marked="keyword",f(ee)):void 0}function oe(e,t){if("<"==t)return f(q(">"),G(ee,">"),S,ae)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Xe.marked="keyword",f(Ee)):m(ce,X,de,pe)}function ce(e,t){return Ue&&y(t)?(Xe.marked="keyword",f(ce)):"variable"==e?(_(t),f()):"spread"==e?f(ce):"["==e?Z(ce,"]"):"{"==e?Z(ue,"}"):void 0}function ue(e,t){return"variable"!=e||Xe.stream.match(/^\s*:/,!1)?("variable"==e&&(Xe.marked="property"),"spread"==e?f(ce):"}"==e?m():f(z(":"),ce,de)):(_(t),f(de))}function de(e,t){if("="==t)return f(j)}function pe(e){if(","==e)return f(se)}function me(e,t){if("keyword b"==e&&"else"==t)return f(q("form","else"),M,S)}function fe(e,t){return"await"==t?f(fe):"("==e?f(q(")"),ge,z(")"),S):void 0}function ge(e){return"var"==e?f(se,z(";"),he):";"==e?f(he):"variable"==e?f(_e):m(C,z(";"),he)}function _e(e,t){return"in"==t||"of"==t?(Xe.marked="keyword",f(C)):f(E,he)}function he(e,t){return";"==e?f(ye):"in"==t||"of"==t?(Xe.marked="keyword",f(C)):m(C,z(";"),ye)}function ye(e){")"!=e&&f(C)}function be(e,t){return"*"==t?(Xe.marked="keyword",f(be)):"variable"==e?(_(t),f(be)):"("==e?f(w,q(")"),G(ke,")"),S,Q,M,x):Ue&&"<"==t?f(q(">"),G(ie,">"),S,be):void 0}function ke(e,t){return"@"==t&&f(C,ke),"spread"==e?f(ke):Ue&&y(t)?(Xe.marked="keyword",f(ke)):m(ce,X,de)}function we(e,t){return"variable"==e?ve(e,t):xe(e,t)}function ve(e,t){if("variable"==e)return _(t),f(xe)}function xe(e,t){return"<"==t?f(q(">"),G(ie,">"),S,xe):"extends"==t||"implements"==t||Ue&&","==e?("implements"==t&&(Xe.marked="keyword"),f(Ue?ee:C,xe)):"{"==e?f(q("}"),qe,S):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ue&&y(t))&&Xe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Xe.marked="keyword",f(qe)):"variable"==e||"keyword"==Xe.style?(Xe.marked="property",f(Ue?Se:be,qe)):"["==e?f(C,X,z("]"),Ue?Se:be,qe):"*"==t?(Xe.marked="keyword",f(qe)):";"==e?f(qe):"}"==e?f():"@"==t?f(C,qe):void 0}function Se(e,t){return"?"==t?f(Se):":"==e?f(ee,de):"="==t?f(j):m(be)}function ze(e,t){return"*"==t?(Xe.marked="keyword",f(Ie,z(";"))):"default"==t?(Xe.marked="keyword",f(C,z(";"))):"{"==e?f(G(Me,"}"),Ie,z(";")):m(M)}function Me(e,t){return"as"==t?(Xe.marked="keyword",f(z("variable"))):"variable"==e?m(j,Me):void 0}function Te(e){return"string"==e?f():"("==e?m(C):m(Ce,je,Ie)}function Ce(e,t){return"{"==e?Z(Ce,"}"):("variable"==e&&_(t),"*"==t&&(Xe.marked="keyword"),f(Pe))}function je(e){if(","==e)return f(Ce,je)}function Pe(e,t){if("as"==t)return Xe.marked="keyword",f(Ce)}function Ie(e,t){if("from"==t)return Xe.marked="keyword",f(C)}function Ae(e){return"]"==e?f():m(G(j,"]"))}function Ee(){return m(q("form"),ce,z("{"),q("}"),G(Le,"}"),S,S)}function Le(){return m(ce,de)}function Oe(e,t){return"operator"==e.lastType||","==e.lastType||He.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function De(e,t,r){return t.tokenize==o&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var $e,Fe,Be=t.indentUnit,Ne=r.statementIndent,Ke=r.jsonld,Ve=r.json||Ke,Ue=r.typescript,We=r.wordCharacters||/[\w$\xa1-\uffff]/,Re=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),He=/[+\-*&%=<>!?|~^@]/,Ge=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ze="([{}])",Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Xe={state:null,column:null,marked:null,cc:null},Qe=new k("this",new k("arguments",null));return x.lex=!0,S.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-Be,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==$e?r:(t.lastType="operator"!=$e||"++"!=Fe&&"--"!=Fe?$e:"incdec",p(t,r,$e,Fe,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=o)return 0;var a,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==S)s=s.prev;else if(u!=me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(a=t.cc[t.cc.length-1])&&(a==E||a==L)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Ne&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,p=i==d;return"vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==i?s.indented:"form"==d?s.indented+Be:"stat"==d?s.indented+(Oe(t,n)?Ne||Be:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:Be):s.indented+(/^(?:case|default)\b/.test(n)?Be:2*Be)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Ve?null:"/*",blockCommentEnd:Ve?null:"*/",blockCommentContinue:Ve?null:" * ",lineComment:Ve?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Ve?"json":"javascript",jsonldMode:Ke,jsonMode:Ve,expressionAllowed:De,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=j||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function n(e,t){return f=t,e}function a(e,t){var r=e.next();if(h[r]){var a=h[r](e,t);if(!1!==a)return a}return"@"==r?(e.eatWhile(/[\w\\\-]/),n("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?n(null,"compare"):'"'==r||"'"==r?(t.tokenize=o(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),n("atom","hash")):"!"==r?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),n("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=i,n("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function o(e){return function(t,r){for(var a,o=!1;null!=(a=t.next());){if(a==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==a}return(a==e||!o&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:_),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function u(e,t,r){return P[r.context.type](e,t,r)}function d(e,t,r,n){for(var a=n||1;a>0;a--)r.context=r.context.prev;return u(e,t,r)}function p(e){var t=e.current().toLowerCase();g=M.hasOwnProperty(t)?"atom":z.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,g,_=t.indentUnit,h=r.tokenHooks,y=r.documentTypes||{},b=r.mediaTypes||{},k=r.mediaFeatures||{},w=r.mediaValueKeywords||{},v=r.propertyKeywords||{},x=r.nonStandardPropertyKeywords||{},q=r.fontProperties||{},S=r.counterDescriptors||{},z=r.colorKeywords||{},M=r.valueKeywords||{},T=r.allowNested,C=r.lineComment,j=!0===r.supportsAtComponent,P={};return P.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(j&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)g="builtin";else if("word"==e)g="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(T&&"("==e)return s(r,t,"parens")}return r.context.type},P.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return v.hasOwnProperty(n)?(g="property","maybeprop"):x.hasOwnProperty(n)?(g="string-2","maybeprop"):T?(g=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(g+=" error","maybeprop")}return"meta"==e?"block":T||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(g="error","block")},P.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):u(e,t,r)},P.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&T)return s(r,t,"propBlock");if("}"==e||"{"==e)return d(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else g+=" error";return"prop"},P.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(g="property","maybeprop"):r.context.type},P.parens=function(e,t,r){return"{"==e||"}"==e?d(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},P.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(g="variable-3",r.context.type):u(e,t,r)},P.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(g="tag",r.context.type):P.atBlock(e,t,r)},P.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return d(e,t,r);if("{"==e)return c(r)&&s(r,t,T?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();g="only"==n||"not"==n||"and"==n||"or"==n?"keyword":b.hasOwnProperty(n)?"attribute":k.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"keyword":v.hasOwnProperty(n)?"property":x.hasOwnProperty(n)?"string-2":M.hasOwnProperty(n)?"atom":z.hasOwnProperty(n)?"keyword":"error"}return r.context.type},P.atComponentBlock=function(e,t,r){return"}"==e?d(e,t,r):"{"==e?c(r)&&s(r,t,T?"block":"top",!1):("word"==e&&(g="error"),r.context.type)},P.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?d(e,t,r,2):P.atBlock(e,t,r)},P.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(g="variable","restricted_atBlock_before"):u(e,t,r)},P.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(g="@font-face"==r.stateArg&&!q.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!S.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,r){return"word"==e?(g="variable","keyframes"):"{"==e?s(r,t,"top"):u(e,t,r)},P.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?d(e,t,r):("word"==e?g="tag":"hash"==e&&(g="builtin"),"at")},P.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?d(e,t,r):("word"==e?g="variable":"variable"!=e&&"("!=e&&")"!=e&&(g="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||a)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),g=r,"comment"!=f&&(t.state=P[t.state](f,e,t)),g},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),a=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(a=Math.max(0,r.indent-_)):(r=r.prev,a=r.indent)),a},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}})
|
2
|
-
;var n=["domain","regexp","url","url-prefix"],a=t(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(c),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(d),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=t(g),h=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(h),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(b),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],v=t(w),x=n.concat(o).concat(l).concat(c).concat(d).concat(m).concat(b).concat(w);e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:a,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:v,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:v,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:v,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:v,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),a=n.search(t);return a>-1?e.backUp(n.length-a):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),a=e[r],o=a.length-1;o>=0;o--)n.unshift(a[o])}function i(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(!a[0]||a[1].test(n(t,a[0])))return a[2]}}var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},s={};e.defineMode("htmlmixed",function(r,n){function s(n,o){var l,d=c.token(n,o.htmlState),p=/\btag\b/.test(d);if(p&&!/[<>\s\/]/.test(n.current())&&(l=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(l))o.inTag=l+" ";else if(o.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var f=">"==n.current()&&i(u[m[1]],m[2]),g=e.getMode(r,f),_=a(m[1],!0),h=a(m[1],!1);o.token=function(e,r){return e.match(_,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,h,r.localMode.token(e,r.localState))},o.localMode=g,o.localState=e.startState(g,c.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=n.current(),n.eol()&&(o.inTag+=" "));return d}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),u={},d=n&&n.tags,p=n&&n.scriptTypes;if(o(l,u),d&&o(d,u),p)for(var m=p.length-1;m>=0;m--)u.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/clike/clike",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=a,this.prev=o}function r(e,r,n,a){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new t(o,r,n,a,null,e.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}function l(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}function s(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=s;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function c(e,t){return"type"==t.prevToken&&"type"}function u(e){return e.eatWhile(/[\w\.']/),"number"}function d(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],t.tokenize=f,f(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function p(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function m(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function f(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function g(t,r){function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&a.push(t)}"string"==typeof t&&(t=[t]);var a=[];n(r.keywords),n(r.types),n(r.builtin),n(r.atoms),a.length&&(r.helperType=t[0],e.registerHelper("hintWords",t[0],a));for(var o=0;o<t.length;++o)e.defineMIME(t[o],r)}function _(e,t){for(var r=!1;!e.eol();){if(!r&&e.match('"""')){t.tokenize=null;break}r="\\"==e.next()&&!r}return"string"}function h(e){return function(t,r){for(var n;n=t.next();){if("*"==n&&t.eat("/")){if(1==e){r.tokenize=null;break}return r.tokenize=h(e-1),r.tokenize(t,r)}if("/"==n&&t.eat("*"))return r.tokenize=h(e+1),r.tokenize(t,r)}return"comment"}}function y(e){return function(t,r){for(var n,a=!1,o=!1;!t.eol();){if(!e&&!a&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}n=t.next(),!a&&"$"==n&&t.match("{")&&t.skipTo("}"),a=!a&&"\\"==n&&!e}return!o&&e||(r.tokenize=null),"string"}}function b(e){return function(t,r){for(var n,a=!1,o=!1;!t.eol();){if(!a&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!a&&t.match("``")){v=b(e),o=!0;break}n=t.next(),a="single"==e&&!a&&"\\"==n}return o&&(r.tokenize=null),"string"}}e.defineMode("clike",function(i,s){function c(e,t){var r=e.next();if(q[r]){var n=q[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=u(r),t.tokenize(e,t);if(C.test(r))return m=r,null;if(j.test(r)){if(e.backUp(1),e.match(P))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=d,d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(I.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(I););return"operator"}if(e.eatWhile(A),T)for(;e.match(T);)e.eatWhile(A);var a=e.current();return l(y,a)?(l(w,a)&&(m="newstatement"),l(v,a)&&(f=!0),"keyword"):l(b,a)?"type":l(k,a)?(l(w,a)&&(m="newstatement"),"builtin"):l(x,a)?"atom":"variable"}function u(e){return function(t,r){for(var n,a=!1,o=!1;null!=(n=t.next());){if(n==e&&!a){o=!0;break}a=!a&&"\\"==n}return(o||!a&&!S)&&(r.tokenize=null),"string"}}function d(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function p(e,t){s.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=a(e,t,e.pos))}var m,f,g=i.indentUnit,_=s.statementIndentUnit||g,h=s.dontAlignCalls,y=s.keywords||{},b=s.types||{},k=s.builtin||{},w=s.blockKeywords||{},v=s.defKeywords||{},x=s.atoms||{},q=s.hooks||{},S=s.multiLineStrings,z=!1!==s.indentStatements,M=!1!==s.indentSwitch,T=s.namespaceSeparator,C=s.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,j=s.numberStart||/[\d\.]/,P=s.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,I=s.isOperatorChar||/[+\-*&%=<>!?|\/]/,A=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;return{startState:function(e){return{tokenize:null,context:new t((e||0)-g,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return p(e,t),null;m=f=null;var l=(t.tokenize||c)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==m||":"==m||","==m&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)n(t);else if("{"==m)r(t,e.column(),"}");else if("["==m)r(t,e.column(),"]");else if("("==m)r(t,e.column(),")");else if("}"==m){for(;"statement"==i.type;)i=n(t);for("}"==i.type&&(i=n(t));"statement"==i.type;)i=n(t)}else m==i.type?n(t):z&&(("}"==i.type||"top"==i.type)&&";"!=m||"statement"==i.type&&"newstatement"==m)&&r(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&a(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),q.token){var u=q.token(e,t,l);void 0!==u&&(l=u)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=f?"def":l||m,p(e,t),l},indent:function(t,r){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var n=t.context,a=r&&r.charAt(0);if("statement"==n.type&&"}"==a&&(n=n.prev),s.dontIndentStatements)for(;"statement"==n.type&&s.dontIndentStatements.test(n.info);)n=n.prev;if(q.indent){var o=q.indent(t,n,r);if("number"==typeof o)return o}var i=a==n.type,l=n.prev&&"switch"==n.prev.info;if(s.allmanIndentation&&/[{(]/.test(a)){for(;"top"!=n.type&&"}"!=n.type;)n=n.prev;return n.indented}return"statement"==n.type?n.indented+("{"==a?0:_):!n.align||h&&")"==n.type?")"!=n.type||i?n.indented+(i?0:g)+(i||!l||/^(?:case|default)\b/.test(r)?0:g):n.indented+_:n.column+(i?0:1)},electricInput:M?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var k="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",w="int long char short double float unsigned signed void size_t ptrdiff_t";g(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(k),types:i(w+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:i("case do else for if switch while struct"),defKeywords:i("struct"),typeFirstDefinitions:!0,atoms:i("NULL true false"),hooks:{"#":s,"*":c},modeProps:{fold:["brace","include"]}}),g(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(k+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:i(w+" bool wchar_t"),blockKeywords:i("catch class do else finally for if struct switch try while"),defKeywords:i("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:i("true false NULL"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":s,"*":c,u:d,U:d,L:d,R:d,0:u,1:u,2:u,3:u,4:u,5:u,6:u,7:u,8:u,9:u,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&p(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),g("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface enum @interface"),typeFirstDefinitions:!0,atoms:i("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),g("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=m,m(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),g("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,
|
3
|
-
blockKeywords:i("catch class enum do else finally for forSome if match switch try while"),defKeywords:i("class enum def object package trait type val var"),atoms:i("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=_,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,r){var n=r.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(r.context=new t(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=h(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{triples:'"'}}}),g("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object interface fun"),atoms:i("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=y(e.match('""')),t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),g(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),g("text/x-nesc",{name:"clike",keywords:i(k+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(w),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),g("text/x-objectivec",{name:"clike",keywords:i(k+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(w),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":s,indent:function(e,t,r){if("statement"==t.type&&/^@\w/.test(r))return t.indented}},modeProps:{fold:"brace"}}),g("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i(w),blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var v=null;g("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=b(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!v||!e.match("`"))&&(t.tokenize=v,v=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define("mode/php/php.js",["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}function r(e,t,a){return 0==e.length?n(t):function(o,i){for(var l=e[0],s=0;s<l.length;s++)if(o.match(l[s][0]))return i.tokenize=r(e.slice(1),t),l[s][1];return i.tokenize=n(t,a),"string"}}function n(e,t){return function(r,n){return a(r,n,e,t)}}function a(e,t,n,a){if(!1!==a&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==a&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=r([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],n,a)),e.match(/\-\>\w/,!1)&&(t.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],n,a)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===a||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(n)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",l="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,i,l].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(i),builtin:t(l),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var a=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(r[0].length+(a?2:1));if(a&&e.eat(a),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=n(o,"'"!=a),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=n('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=n(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,r){function n(t,r){var n=r.curMode==o;if(t.sol()&&r.pending&&'"'!=r.pending&&"'"!=r.pending&&(r.pending=null),n)return n&&null==r.php.tokenize&&t.match("?>")?(r.curMode=a,r.curState=r.html,r.php.context.prev||(r.php=null),"meta"):o.token(t,r.curState);if(t.match(/^<\?\w*/))return r.curMode=o,r.php||(r.php=e.startState(o,a.indent(r.html,""))),r.curState=r.php,"meta";if('"'==r.pending||"'"==r.pending){for(;!t.eol()&&t.next()!=r.pending;);var i="string"}else if(r.pending&&t.pos<r.pending.end){t.pos=r.pending.end;var i=r.pending.style}else var i=a.token(t,r.curState);r.pending&&(r.pending=null);var l,s=t.current(),c=s.search(/<\?/);return-1!=c&&("string"==i&&(l=s.match(/[\'\"]$/))&&!/\?>/.test(s)?r.pending=l[0]:r.pending={end:t.pos,style:i},t.backUp(s.length-c)),i}var a=e.getMode(t,r&&r.htmlMode||"text/html"),o=e.getMode(t,s);return{startState:function(){var t=e.startState(a),n=r.startOpen?e.startState(o):null;return{html:t,php:n,curMode:r.startOpen?o:a,curState:r.startOpen?n:t,pending:null}},copyState:function(t){var r,n=t.html,i=e.copyState(a,n),l=t.php,s=l&&e.copyState(o,l);return r=t.curMode==a?i:s,{html:i,php:s,curMode:t.curMode,curState:r,pending:t.pending}},token:n,indent:function(e,t){return e.curMode!=o&&/^\s*<\//.test(t)||e.curMode==o&&/^\?>/.test(t)?a.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}),function(e){"function"==typeof e.define&&e.define("modePHP",["mode/php/php.js"],function(){})}(this);
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,a){function o(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var a;return a=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),a?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=o,T=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return T="equals",null;if("<"==r){t.tokenize=o,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=o;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=o;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function u(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(x.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!x.contextGrabbers.hasOwnProperty(r)||!x.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?g:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),z="tag",y):x.allowMissingTagName&&"endTag"==e?(z="tag bracket",y(e,t,r)):(z="error",f)}function g(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&x.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===x.matchClosing?(z="tag",_):(z="tag error",h)}return x.allowMissingTagName&&"endTag"==e?(z="tag bracket",_(e,t,r)):(z="error",h)}function _(e,t,r){return"endTag"!=e?(z="error",_):(d(r),m)}function h(e,t,r){return z="error",_(e,t,r)}function y(e,t,r){if("word"==e)return z="attribute",b;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,a=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||x.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new u(r,n,a==r.indented)),m}return z="error",y}function b(e,t,r){return"equals"==e?k:(x.allowMissing||(z="error"),y(e,t,r))}function k(e,t,r){return"string"==e?v:"word"==e&&x.allowUnquoted?(z="string",y):(z="error",y(e,t,r))}function v(e,t,r){return"string"==e?v:y(e,t,r)}var w=n.indentUnit,x={},q=a.htmlMode?t:r;for(var S in q)x[S]=q[S];for(var S in a)x[S]=a[S];var T,z;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var r=t.tokenize(e,t);return(r||T)&&"comment"!=r&&(z=null,t.state=t.state(T||r,e,t),z&&(r="error"==z?r+" error":z)),r},indent:function(t,r,n){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+w;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=o)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==x.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+w*(x.multilineTagIndentFactor||1);if(x.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var l=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(l&&l[1])for(;a;){if(a.tagName==l[2]){a=a.prev;break}if(!x.implicitlyClosed.hasOwnProperty(a.tagName))break;a=a.prev}else if(l)for(;a;){var s=x.contextGrabbers[a.tagName];if(!s||!s.hasOwnProperty(l[2]))break;a=a.prev}for(;a&&a.prev&&!a.startOfLine;)a=a.prev;return a?a.indent+w:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:x.htmlMode?"html":"xml",helperType:x.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return Fe=e,$e=r,t}function o(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):De(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(He.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(We.test(r)){e.eatWhile(We);var o=e.current();if("."!=t.lastType){if(Ge.propertyIsEnumerable(o)){var c=Ge[o];return a(c.type,c.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",o)}return a("variable","variable",o)}}function i(e){return function(t,r){var n,i=!1;if(Ue&&"@"==t.peek()&&t.match(Ze))return r.tokenize=o,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=o),a("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ve){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,o=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Xe.indexOf(l);if(s>=0&&s<3){if(!a){++i;break}if(0==--a){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++a;else if(We.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!a){++i;break}}}o&&!a&&(t.fatArrowAt=i)}}function u(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=o,null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,a){var o=e.cc;for(Qe.state=e,Qe.stream=a,Qe.marked=null,Qe.cc=o,Qe.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((o.length?o.pop():Re?C:z)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Qe.marked?Qe.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Qe.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function g(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function _(e){var t=Qe.state;if(Qe.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=h(e,t.context);if(null!=n)return void(t.context=n)}else if(!g(e,t.localVars))return void(t.localVars=new k(e,t.localVars));r.globalVars&&!g(e,t.globalVars)&&(t.globalVars=new k(e,t.globalVars))}function h(e,t){if(t){if(t.block){var r=h(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return g(e,t.vars)?t:new b(t.prev,new k(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function k(e,t){this.name=e,this.next=t}function v(){Qe.state.context=new b(Qe.state.context,Qe.state.localVars,!1),Qe.state.localVars=Je}function w(){Qe.state.context=new b(Qe.state.context,Qe.state.localVars,!0),Qe.state.localVars=null}function x(){Qe.state.localVars=Qe.state.context.vars,Qe.state.context=Qe.state.context.prev}function q(e,t){var r=function(){var r=Qe.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new u(n,Qe.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function S(){var e=Qe.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function T(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function z(e,t){return"var"==e?f(q("vardef",t),se,T(";"),S):"keyword a"==e?f(q("form"),I,z,S):"keyword b"==e?f(q("form"),z,S):"keyword d"==e?Qe.stream.match(/^\s*$/,!1)?f():f(q("stat"),E,T(";"),S):"debugger"==e?f(T(";")):"{"==e?f(q("}"),w,X,S,x):";"==e?f():"if"==e?("else"==Qe.state.lexical.info&&Qe.state.cc[Qe.state.cc.length-1]==S&&Qe.state.cc.pop()(),f(q("form"),I,z,S,fe)):"function"==e?f(ye):"for"==e?f(q("form"),ge,z,S):"class"==e||Ve&&"interface"==t?(Qe.marked="keyword",f(q("form","class"==e?e:t),xe,S)):"variable"==e?Ve&&"declare"==t?(Qe.marked="keyword",f(z)):Ve&&("module"==t||"enum"==t||"type"==t)&&Qe.stream.match(/^\s*\w/,!1)?(Qe.marked="keyword","enum"==t?f(Ae):"type"==t?f(ke,T("operator"),ee,T(";")):f(q("form"),ce,T("{"),q("}"),X,S,S)):Ve&&"namespace"==t?(Qe.marked="keyword",f(q("form"),C,z,S)):Ve&&"abstract"==t?(Qe.marked="keyword",f(z)):f(q("stat"),U):"switch"==e?f(q("form"),I,T("{"),q("}","switch"),w,X,S,S,x):"case"==e?f(C,T(":")):"default"==e?f(T(":")):"catch"==e?f(q("form"),v,M,z,S,x):"export"==e?f(q("stat"),ze,S):"import"==e?f(q("stat"),Ce,S):"async"==e?f(z):"@"==t?f(C,z):m(q("stat"),C,T(";"),S)}function M(e){if("("==e)return f(ve,T(")"))}function C(e,t){return P(e,t,!1)}function j(e,t){return P(e,t,!0)}function I(e){return"("!=e?m():f(q(")"),C,T(")"),S)}function P(e,t,r){if(Qe.state.fatArrowAt==Qe.stream.start){var n=r?F:D;if("("==e)return f(v,q(")"),H(ve,")"),S,T("=>"),n,x);if("variable"==e)return m(v,ce,T("=>"),n,x)}var a=r?A:N;return Ye.hasOwnProperty(e)?f(a):"function"==e?f(ye,a):"class"==e||Ve&&"interface"==t?(Qe.marked="keyword",f(q("form"),we,S)):"keyword c"==e||"async"==e?f(r?j:C):"("==e?f(q(")"),E,T(")"),S,a):"operator"==e||"spread"==e?f(r?j:C):"["==e?f(q("]"),Ne,S,a):"{"==e?Z(V,"}",null,a):"quasi"==e?m(L,a):"new"==e?f($(r)):"import"==e?f(C):f()}function E(e){return e.match(/[;\}\)\],]/)?m():m(C)}function N(e,t){return","==e?f(C):A(e,t,!1)}function A(e,t,r){var n=0==r?N:A,a=0==r?C:j;return"=>"==e?f(v,r?F:D,x):"operator"==e?/\+\+|--/.test(t)||Ve&&"!"==t?f(n):Ve&&"<"==t&&Qe.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(q(">"),H(ee,">"),S,n):"?"==t?f(C,T(":"),a):f(a):"quasi"==e?m(L,n):";"!=e?"("==e?Z(j,")","call",n):"."==e?f(R,n):"["==e?f(q("]"),E,T("]"),S,n):Ve&&"as"==t?(Qe.marked="keyword",f(ee,n)):"regexp"==e?(Qe.state.lastType=Qe.marked="operator",Qe.stream.backUp(Qe.stream.pos-Qe.stream.start-1),f(a)):void 0:void 0}function L(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f(L):f(C,O)}function O(e){if("}"==e)return Qe.marked="string-2",Qe.state.tokenize=s,f(L)}function D(e){return c(Qe.stream,Qe.state),m("{"==e?z:C)}function F(e){return c(Qe.stream,Qe.state),m("{"==e?z:j)}function $(e){return function(t){return"."==t?f(e?K:B):"variable"==t&&Ve?f(oe,e?A:N):m(e?j:C)}}function B(e,t){if("target"==t)return Qe.marked="keyword",f(N)}function K(e,t){if("target"==t)return Qe.marked="keyword",f(A)}function U(e){return":"==e?f(S,z):m(N,T(";"),S)}function R(e){if("variable"==e)return Qe.marked="property",f()}function V(e,t){if("async"==e)return Qe.marked="property",f(V);if("variable"==e||"keyword"==Qe.style){if(Qe.marked="property","get"==t||"set"==t)return f(W);var r;return Ve&&Qe.state.fatArrowAt==Qe.stream.start&&(r=Qe.stream.match(/^\s*:\s*/,!1))&&(Qe.state.fatArrowAt=Qe.stream.pos+r[0].length),f(G)}return"number"==e||"string"==e?(Qe.marked=Ue?"property":Qe.style+" property",f(G)):"jsonld-keyword"==e?f(G):Ve&&y(t)?(Qe.marked="keyword",f(V)):"["==e?f(C,Y,T("]"),G):"spread"==e?f(j,G):"*"==t?(Qe.marked="keyword",f(V)):":"==e?m(G):void 0}function W(e){return"variable"!=e?m(G):(Qe.marked="property",f(ye))}function G(e){return":"==e?f(j):"("==e?m(ye):void 0}function H(e,t,r){function n(a,o){if(r?r.indexOf(a)>-1:","==a){var i=Qe.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return a==t||o==t?f():r&&r.indexOf(";")>-1?m(e):f(T(t))}return function(r,a){return r==t||a==t?f():m(e,n)}}function Z(e,t,r){for(var n=3;n<arguments.length;n++)Qe.cc.push(arguments[n]);return f(q(t,r),H(e,t),S)}function X(e){return"}"==e?f():m(z,X)}function Y(e,t){if(Ve){if(":"==e||"in"==t)return f(ee);if("?"==t)return f(Y)}}function Q(e){if(Ve&&":"==e)return Qe.stream.match(/^\s*\w+\s+is\b/,!1)?f(C,J,ee):f(ee)}function J(e,t){if("is"==t)return Qe.marked="keyword",f()}function ee(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(Qe.marked="keyword",f("typeof"==t?j:ee)):"variable"==e||"void"==t?(Qe.marked="type",f(ae)):"|"==t||"&"==t?f(ee):"string"==e||"number"==e||"atom"==e?f(ae):"["==e?f(q("]"),H(ee,"]",","),S,ae):"{"==e?f(q("}"),H(re,"}",",;"),S,ae):"("==e?f(H(ne,")"),te,ae):"<"==e?f(H(ee,">"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Qe.style?(Qe.marked="property",f(re)):"?"==t||"number"==e||"string"==e?f(re):":"==e?f(ee):"["==e?f(T("variable"),Y,T("]"),re):"("==e?m(be,re):void 0}function ne(e,t){return"variable"==e&&Qe.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):"spread"==e?f(ne):m(ee)}function ae(e,t){return"<"==t?f(q(">"),H(ee,">"),S,ae):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(ee,T("]"),ae):"extends"==t||"implements"==t?(Qe.marked="keyword",f(ee)):"?"==t?f(ee,T(":"),ee):void 0}function oe(e,t){if("<"==t)return f(q(">"),H(ee,">"),S,ae)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Qe.marked="keyword",f(Ae)):m(ce,Y,pe,me)}function ce(e,t){return Ve&&y(t)?(Qe.marked="keyword",f(ce)):"variable"==e?(_(t),f()):"spread"==e?f(ce):"["==e?Z(de,"]"):"{"==e?Z(ue,"}"):void 0}function ue(e,t){return"variable"!=e||Qe.stream.match(/^\s*:/,!1)?("variable"==e&&(Qe.marked="property"),"spread"==e?f(ce):"}"==e?m():"["==e?f(C,T("]"),T(":"),ue):f(T(":"),ce,pe)):(_(t),f(pe))}function de(){return m(ce,pe)}function pe(e,t){if("="==t)return f(j)}function me(e){if(","==e)return f(se)}function fe(e,t){if("keyword b"==e&&"else"==t)return f(q("form","else"),z,S)}function ge(e,t){return"await"==t?f(ge):"("==e?f(q(")"),_e,S):void 0}function _e(e){return"var"==e?f(se,he):"variable"==e?f(he):m(he)}function he(e,t){return")"==e?f():";"==e?f(he):"in"==t||"of"==t?(Qe.marked="keyword",f(C,he)):m(C,he)}function ye(e,t){return"*"==t?(Qe.marked="keyword",f(ye)):"variable"==e?(_(t),f(ye)):"("==e?f(v,q(")"),H(ve,")"),S,Q,z,x):Ve&&"<"==t?f(q(">"),H(ie,">"),S,ye):void 0}function be(e,t){return"*"==t?(Qe.marked="keyword",f(be)):"variable"==e?(_(t),f(be)):"("==e?f(v,q(")"),H(ve,")"),S,Q,x):Ve&&"<"==t?f(q(">"),H(ie,">"),S,be):void 0}function ke(e,t){return"keyword"==e||"variable"==e?(Qe.marked="type",f(ke)):"<"==t?f(q(">"),H(ie,">"),S):void 0}function ve(e,t){return"@"==t&&f(C,ve),"spread"==e?f(ve):Ve&&y(t)?(Qe.marked="keyword",f(ve)):Ve&&"this"==e?f(Y,pe):m(ce,Y,pe)}function we(e,t){return"variable"==e?xe(e,t):qe(e,t)}function xe(e,t){if("variable"==e)return _(t),f(qe)}function qe(e,t){return"<"==t?f(q(">"),H(ie,">"),S,qe):"extends"==t||"implements"==t||Ve&&","==e?("implements"==t&&(Qe.marked="keyword"),f(Ve?ee:C,qe)):"{"==e?f(q("}"),Se,S):void 0}function Se(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ve&&y(t))&&Qe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Qe.marked="keyword",f(Se)):"variable"==e||"keyword"==Qe.style?(Qe.marked="property",f(Ve?Te:ye,Se)):"number"==e||"string"==e?f(Ve?Te:ye,Se):"["==e?f(C,Y,T("]"),Ve?Te:ye,Se):"*"==t?(Qe.marked="keyword",f(Se)):Ve&&"("==e?m(be,Se):";"==e||","==e?f(Se):"}"==e?f():"@"==t?f(C,Se):void 0}function Te(e,t){if("?"==t)return f(Te);if(":"==e)return f(ee,pe);if("="==t)return f(j);var r=Qe.state.lexical.prev;return m(r&&"interface"==r.info?be:ye)}function ze(e,t){return"*"==t?(Qe.marked="keyword",f(Ee,T(";"))):"default"==t?(Qe.marked="keyword",f(C,T(";"))):"{"==e?f(H(Me,"}"),Ee,T(";")):m(z)}function Me(e,t){return"as"==t?(Qe.marked="keyword",f(T("variable"))):"variable"==e?m(j,Me):void 0}function Ce(e){return"string"==e?f():"("==e?m(C):m(je,Ie,Ee)}function je(e,t){return"{"==e?Z(je,"}"):("variable"==e&&_(t),"*"==t&&(Qe.marked="keyword"),f(Pe))}function Ie(e){if(","==e)return f(je,Ie)}function Pe(e,t){if("as"==t)return Qe.marked="keyword",f(je)}function Ee(e,t){if("from"==t)return Qe.marked="keyword",f(C)}function Ne(e){return"]"==e?f():m(H(j,"]"))}function Ae(){return m(q("form"),ce,T("{"),q("}"),H(Le,"}"),S,S)}function Le(){return m(ce,pe)}function Oe(e,t){return"operator"==e.lastType||","==e.lastType||He.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function De(e,t,r){return t.tokenize==o&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Fe,$e,Be=t.indentUnit,Ke=r.statementIndent,Ue=r.jsonld,Re=r.json||Ue,Ve=r.typescript,We=r.wordCharacters||/[\w$\xa1-\uffff]/,Ge=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),He=/[+\-*&%=<>!?|~^@]/,Ze=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Xe="([{}])",Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Qe={state:null,column:null,marked:null,cc:null},Je=new k("this",new k("arguments",null));return x.lex=!0,S.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-Be,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Fe?r:(t.lastType="operator"!=Fe||"++"!=$e&&"--"!=$e?Fe:"incdec",p(t,r,Fe,$e,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=o)return 0;var a,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==S)s=s.prev;else if(u!=fe)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(a=t.cc[t.cc.length-1])&&(a==N||a==A)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Ke&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,p=i==d;return"vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==i?s.indented:"form"==d?s.indented+Be:"stat"==d?s.indented+(Oe(t,n)?Ke||Be:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:Be):s.indented+(/^(?:case|default)\b/.test(n)?Be:2*Be)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Re?null:"/*",blockCommentEnd:Re?null:"*/",blockCommentContinue:Re?null:" * ",lineComment:Re?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Re?"json":"javascript",jsonldMode:Ue,jsonMode:Re,expressionAllowed:De,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=j||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function n(e,t){return f=t,e}function a(e,t){var r=e.next();if(h[r]){var a=h[r](e,t);if(!1!==a)return a}return"@"==r?(e.eatWhile(/[\w\\\-]/),n("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?n(null,"compare"):'"'==r||"'"==r?(t.tokenize=o(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),n("atom","hash")):"!"==r?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),n("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=i),n("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function o(e){return function(t,r){for(var a,o=!1;null!=(a=t.next());){if(a==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==a}return(a==e||!o&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:_),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function u(e,t,r){return I[r.context.type](e,t,r)}function d(e,t,r,n){for(var a=n||1;a>0;a--)r.context=r.context.prev;return u(e,t,r)}function p(e){var t=e.current().toLowerCase();g=z.hasOwnProperty(t)?"atom":T.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,g,_=t.indentUnit,h=r.tokenHooks,y=r.documentTypes||{},b=r.mediaTypes||{},k=r.mediaFeatures||{},v=r.mediaValueKeywords||{},w=r.propertyKeywords||{},x=r.nonStandardPropertyKeywords||{},q=r.fontProperties||{},S=r.counterDescriptors||{},T=r.colorKeywords||{},z=r.valueKeywords||{},M=r.allowNested,C=r.lineComment,j=!0===r.supportsAtComponent,I={};return I.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(j&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)g="builtin";else if("word"==e)g="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(M&&"("==e)return s(r,t,"parens")}return r.context.type},I.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return w.hasOwnProperty(n)?(g="property","maybeprop"):x.hasOwnProperty(n)?(g="string-2","maybeprop"):M?(g=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(g+=" error","maybeprop")}return"meta"==e?"block":M||"hash"!=e&&"qualifier"!=e?I.top(e,t,r):(g="error","block")},I.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):u(e,t,r)},I.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&M)return s(r,t,"propBlock");if("}"==e||"{"==e)return d(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else g+=" error";return"prop"},I.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(g="property","maybeprop"):r.context.type},I.parens=function(e,t,r){return"{"==e||"}"==e?d(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},I.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(g="variable-3",r.context.type):u(e,t,r)},I.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(g="tag",r.context.type):I.atBlock(e,t,r)},I.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return d(e,t,r);if("{"==e)return c(r)&&s(r,t,M?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();g="only"==n||"not"==n||"and"==n||"or"==n?"keyword":b.hasOwnProperty(n)?"attribute":k.hasOwnProperty(n)?"property":v.hasOwnProperty(n)?"keyword":w.hasOwnProperty(n)?"property":x.hasOwnProperty(n)?"string-2":z.hasOwnProperty(n)?"atom":T.hasOwnProperty(n)?"keyword":"error"}return r.context.type},I.atComponentBlock=function(e,t,r){return"}"==e?d(e,t,r):"{"==e?c(r)&&s(r,t,M?"block":"top",!1):("word"==e&&(g="error"),r.context.type)},I.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?d(e,t,r,2):I.atBlock(e,t,r)},I.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(g="variable","restricted_atBlock_before"):u(e,t,r)},I.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(g="@font-face"==r.stateArg&&!q.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!S.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},I.keyframes=function(e,t,r){return"word"==e?(g="variable","keyframes"):"{"==e?s(r,t,"top"):u(e,t,r)},I.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?d(e,t,r):("word"==e?g="tag":"hash"==e&&(g="builtin"),"at")},I.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?d(e,t,r):("word"==e?g="variable":"variable"!=e&&"("!=e&&")"!=e&&(g="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||a)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),g=r,"comment"!=f&&(t.state=I[t.state](f,e,t)),g},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),a=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(a=Math.max(0,r.indent-_)):(r=r.prev,a=r.indent)),a},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}})
|
2
|
+
;var n=["domain","regexp","url","url-prefix"],a=t(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(c),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(d),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=t(g),h=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(h),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(b),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],w=t(v),x=n.concat(o).concat(l).concat(c).concat(d).concat(m).concat(b).concat(v);e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:a,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:w,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:w,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:w,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:w,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),a=n.search(t);return a>-1?e.backUp(n.length-a):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),a=e[r],o=a.length-1;o>=0;o--)n.unshift(a[o])}function i(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(!a[0]||a[1].test(n(t,a[0])))return a[2]}}var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},s={};e.defineMode("htmlmixed",function(r,n){function s(n,o){var l,d=c.token(n,o.htmlState),p=/\btag\b/.test(d);if(p&&!/[<>\s\/]/.test(n.current())&&(l=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(l))o.inTag=l+" ";else if(o.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var f=">"==n.current()&&i(u[m[1]],m[2]),g=e.getMode(r,f),_=a(m[1],!0),h=a(m[1],!1);o.token=function(e,r){return e.match(_,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,h,r.localMode.token(e,r.localState))},o.localMode=g,o.localState=e.startState(g,c.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=n.current(),n.eol()&&(o.inTag+=" "));return d}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),u={},d=n&&n.tags,p=n&&n.scriptTypes;if(o(l,u),d&&o(d,u),p)for(var m=p.length-1;m>=0;m--)u.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/clike/clike",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=a,this.prev=o}function r(e,r,n,a){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new t(o,r,n,a,null,e.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}function l(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}function s(e){return l(q,e)||/.+_t$/.test(e)}function c(e){return s(e)||l(S,e)}function u(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=u;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function d(e,t){return"type"==t.prevToken&&"type"}function p(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function m(e){return e.eatWhile(/[\w\.']/),"number"}function f(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],t.tokenize=h,h(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function g(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function _(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function h(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function y(t,r){function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&a.push(t)}"string"==typeof t&&(t=[t]);var a=[];n(r.keywords),n(r.types),n(r.builtin),n(r.atoms),a.length&&(r.helperType=t[0],e.registerHelper("hintWords",t[0],a));for(var o=0;o<t.length;++o)e.defineMIME(t[o],r)}function b(e,t){for(var r=!1;!e.eol();){if(!r&&e.match('"""')){t.tokenize=null;break}r="\\"==e.next()&&!r}return"string"}function k(e){return function(t,r){for(var n;n=t.next();){if("*"==n&&t.eat("/")){if(1==e){r.tokenize=null;break}return r.tokenize=k(e-1),r.tokenize(t,r)}if("/"==n&&t.eat("*"))return r.tokenize=k(e+1),r.tokenize(t,r)}return"comment"}}function v(e){return function(t,r){for(var n,a=!1,o=!1;!t.eol();){if(!e&&!a&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}n=t.next(),!a&&"$"==n&&t.match("{")&&t.skipTo("}"),a=!a&&"\\"==n&&!e}return!o&&e||(r.tokenize=null),"string"}}function w(e){return function(t,r){for(var n,a=!1,o=!1;!t.eol();){if(!a&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!a&&t.match("``")){z=w(e),o=!0;break}n=t.next(),a="single"==e&&!a&&"\\"==n}return o&&(r.tokenize=null),"string"}}e.defineMode("clike",function(i,s){function c(e,t){var r=e.next();if(q[r]){var n=q[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=u(r),t.tokenize(e,t);if(C.test(r))return m=r,null;if(j.test(r)){if(e.backUp(1),e.match(I))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=d,d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(P.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(P););return"operator"}if(e.eatWhile(E),M)for(;e.match(M);)e.eatWhile(E);var a=e.current();return l(y,a)?(l(v,a)&&(m="newstatement"),l(w,a)&&(f=!0),"keyword"):l(b,a)?"type":l(k,a)||N&&N(a)?(l(v,a)&&(m="newstatement"),"builtin"):l(x,a)?"atom":"variable"}function u(e){return function(t,r){for(var n,a=!1,o=!1;null!=(n=t.next());){if(n==e&&!a){o=!0;break}a=!a&&"\\"==n}return(o||!a&&!S)&&(r.tokenize=null),"string"}}function d(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function p(e,t){s.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=a(e,t,e.pos))}var m,f,g=i.indentUnit,_=s.statementIndentUnit||g,h=s.dontAlignCalls,y=s.keywords||{},b=s.types||{},k=s.builtin||{},v=s.blockKeywords||{},w=s.defKeywords||{},x=s.atoms||{},q=s.hooks||{},S=s.multiLineStrings,T=!1!==s.indentStatements,z=!1!==s.indentSwitch,M=s.namespaceSeparator,C=s.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,j=s.numberStart||/[\d\.]/,I=s.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,P=s.isOperatorChar||/[+\-*&%=<>!?|\/]/,E=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,N=s.isReservedIdentifier||!1;return{startState:function(e){return{tokenize:null,context:new t((e||0)-g,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return p(e,t),null;m=f=null;var l=(t.tokenize||c)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==m||":"==m||","==m&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)n(t);else if("{"==m)r(t,e.column(),"}");else if("["==m)r(t,e.column(),"]");else if("("==m)r(t,e.column(),")");else if("}"==m){for(;"statement"==i.type;)i=n(t);for("}"==i.type&&(i=n(t));"statement"==i.type;)i=n(t)}else m==i.type?n(t):T&&(("}"==i.type||"top"==i.type)&&";"!=m||"statement"==i.type&&"newstatement"==m)&&r(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&a(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),q.token){var u=q.token(e,t,l);void 0!==u&&(l=u)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=f?"def":l||m,p(e,t),l},indent:function(t,r){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var n=t.context,a=r&&r.charAt(0),o=a==n.type;if("statement"==n.type&&"}"==a&&(n=n.prev),s.dontIndentStatements)for(;"statement"==n.type&&s.dontIndentStatements.test(n.info);)n=n.prev;if(q.indent){var i=q.indent(t,n,r,g);if("number"==typeof i)return i}var l=n.prev&&"switch"==n.prev.info;if(s.allmanIndentation&&/[{(]/.test(a)){for(;"top"!=n.type&&"}"!=n.type;)n=n.prev;return n.indented}return"statement"==n.type?n.indented+("{"==a?0:_):!n.align||h&&")"==n.type?")"!=n.type||o?n.indented+(o?0:g)+(o||!l||/^(?:case|default)\b/.test(r)?0:g):n.indented+_:n.column+(o?0:1)},electricInput:z?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var x="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",q=i("int long char short double float unsigned signed void bool"),S=i("SEL instancetype id Class Protocol BOOL"),T="case do else for if switch while struct enum union";y(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(x),types:s,blockKeywords:i(T),defKeywords:i("struct enum union"),typeFirstDefinitions:!0,atoms:i("NULL true false"),isReservedIdentifier:p,hooks:{"#":u,"*":d},modeProps:{fold:["brace","include"]}}),y(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(x+"alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq"),types:s,blockKeywords:i(T+" class try catch"),defKeywords:i("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:i("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:p,hooks:{"#":u,"*":d,u:f,U:f,L:f,R:f,0:m,1:m,2:m,3:m,4:m,5:m,6:m,7:m,8:m,9:m,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&g(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),y("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface enum @interface"),typeFirstDefinitions:!0,atoms:i("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),y("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=_,_(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),y("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),
|
3
|
+
types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:i("catch class enum do else finally for forSome if match switch try while"),defKeywords:i("class enum def object package trait type val var"),atoms:i("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=b,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,r){var n=r.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(r.context=new t(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=k(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),y("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object interface fun"),atoms:i("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=v(e.match('""')),t.tokenize(e,t)},indent:function(e,t,r,n){var a=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r||"variable"==e.prevToken&&"."==a||("}"==e.prevToken||")"==e.prevToken)&&"."==a?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":u},modeProps:{fold:["brace","include"]}}),y("text/x-nesc",{name:"clike",keywords:i(x+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:s,blockKeywords:i(T),atoms:i("null true false"),hooks:{"#":u},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec",{name:"clike",keywords:i(x+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:c,builtin:i("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:i(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:i("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:i("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:p,hooks:{"#":u,"*":d},modeProps:{fold:["brace","include"]}}),y("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:s,blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":u},modeProps:{fold:["brace","include"]}});var z=null;y("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=w(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!z||!e.match("`"))&&(t.tokenize=z,z=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define("mode/php/php.js",["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}function r(e,t,a){return 0==e.length?n(t):function(o,i){for(var l=e[0],s=0;s<l.length;s++)if(o.match(l[s][0]))return i.tokenize=r(e.slice(1),t),l[s][1];return i.tokenize=n(t,a),"string"}}function n(e,t){return function(r,n){return a(r,n,e,t)}}function a(e,t,n,a){if(!1!==a&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==a&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=r([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],n,a)),e.match(/\-\>\w/,!1)&&(t.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],n,a)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===a||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(n)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",l="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,i,l].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(i),builtin:t(l),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var a=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(r[0].length+(a?2:1));if(a&&e.eat(a),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=n(o,"'"!=a),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=n('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=n(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,r){function n(t,r){var n=r.curMode==o;if(t.sol()&&r.pending&&'"'!=r.pending&&"'"!=r.pending&&(r.pending=null),n)return n&&null==r.php.tokenize&&t.match("?>")?(r.curMode=a,r.curState=r.html,r.php.context.prev||(r.php=null),"meta"):o.token(t,r.curState);if(t.match(/^<\?\w*/))return r.curMode=o,r.php||(r.php=e.startState(o,a.indent(r.html,"",""))),r.curState=r.php,"meta";if('"'==r.pending||"'"==r.pending){for(;!t.eol()&&t.next()!=r.pending;);var i="string"}else if(r.pending&&t.pos<r.pending.end){t.pos=r.pending.end;var i=r.pending.style}else var i=a.token(t,r.curState);r.pending&&(r.pending=null);var l,s=t.current(),c=s.search(/<\?/);return-1!=c&&("string"==i&&(l=s.match(/[\'\"]$/))&&!/\?>/.test(s)?r.pending=l[0]:r.pending={end:t.pos,style:i},t.backUp(s.length-c)),i}var a=e.getMode(t,r&&r.htmlMode||"text/html"),o=e.getMode(t,s);return{startState:function(){var t=e.startState(a),n=r.startOpen?e.startState(o):null;return{html:t,php:n,curMode:r.startOpen?o:a,curState:r.startOpen?n:t,pending:null}},copyState:function(t){var r,n=t.html,i=e.copyState(a,n),l=t.php,s=l&&e.copyState(o,l);return r=t.curMode==a?i:s,{html:i,php:s,curMode:t.curMode,curState:r,pending:t.pending}},token:n,indent:function(e,t,r){return e.curMode!=o&&/^\s*<\//.test(t)||e.curMode==o&&/^\?>/.test(t)?a.indent(e.html,t,r):e.curMode.indent(e.curState,t,r)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}),function(e){"function"==typeof e.define&&e.define("modePHP",["mode/php/php.js"],function(){})}(this);
|
@@ -1 +1 @@
|
|
1
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){
|
1
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.multiplexingMode=function(n){function t(e,n,t,i){if("string"==typeof n){var r=e.indexOf(n,t);return i&&r>-1?r+n.length:r}var o=n.exec(t?e.slice(t):e);return o?o.index+t+(i?o[0].length:0):-1}var i=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(n),innerActive:null,inner:null}},copyState:function(t){return{outer:e.copyState(n,t.outer),innerActive:t.innerActive,inner:t.innerActive&&e.copyState(t.innerActive.mode,t.inner)}},token:function(r,o){if(o.innerActive){var a=o.innerActive,c=r.string;if(!a.close&&r.sol())return o.innerActive=o.inner=null,this.token(r,o);var s=a.close?t(c,a.close,r.pos,a.parseDelimiters):-1;if(s==r.pos&&!a.parseDelimiters)return r.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";s>-1&&(r.string=c.slice(0,s));var l=a.mode.token(r,o.inner);return s>-1&&(r.string=c),s==r.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(l=l?l+" "+a.innerStyle:a.innerStyle),l}for(var d=1/0,c=r.string,u=0;u<i.length;++u){var f=i[u],s=t(c,f.open,r.pos);if(s==r.pos){f.parseDelimiters||r.match(f.open),o.innerActive=f;var m=0;if(n.indent){var p=n.indent(o.outer,"","");p!==e.Pass&&(m=p)}return o.inner=e.startState(f.mode,m),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=s&&s<d&&(d=s)}d!=1/0&&(r.string=c.slice(0,d));var v=n.token(r,o.outer);return d!=1/0&&(r.string=c),v},indent:function(t,i,r){var o=t.innerActive?t.innerActive.mode:n;return o.indent?o.indent(t.innerActive?t.inner:t.outer,i,r):e.Pass},blankLine:function(t){var r=t.innerActive?t.innerActive.mode:n;if(r.blankLine&&r.blankLine(t.innerActive?t.inner:t.outer),t.innerActive)"\n"===t.innerActive.close&&(t.innerActive=t.inner=null);else for(var o=0;o<i.length;++o){var a=i[o];"\n"===a.open&&(t.innerActive=a,t.inner=e.startState(a.mode,r.indent?r.indent(t.outer,"",""):0))}},electricChars:n.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:n}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../../addon/mode/multiplex")):"function"==typeof define&&define.amd?define("mode/twig/twig.js",["../../lib/codemirror","../../addon/mode/multiplex"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("twig:inner",function(){function e(e,a){var c=e.peek();if(a.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),a.incomment=!1):e.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,e.match(r))return"atom";if(e.match(o))return"number"}if(a.sign){if(a.sign=!1,e.match(r))return"atom";if(e.match(o))return"number"}if(a.instring)return c==a.instring&&(a.instring=!1),e.next(),"string";if("'"==c||'"'==c)return a.instring=c,e.next(),"string";if(e.match(a.intag+"}")||e.eat("-")&&e.match(a.intag+"}"))return a.intag=!1,"tag";if(e.match(t))return a.operator=!0,"operator";if(e.match(i))a.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(n))return"keyword";if(e.match(r))return"atom";if(e.match(o))return"number";e.sol()&&e.next()}else e.next();return"variable"}if(e.eat("{")){if(e.eat("#"))return a.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),a.incomment=!1):e.skipToEnd(),"comment";if(c=e.eat(/\{|%/))return a.intag=c,"{"==c&&(a.intag="}"),e.eat("-"),"tag"}e.next()}var n=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,i=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],o=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return n=new RegExp("(("+n.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(n,t){return e(n,t)}}}),e.defineMode("twig",function(n,t){var i=e.getMode(n,"twig:inner");return t&&t.base?e.multiplexingMode(e.getMode(n,t.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:i,parseDelimiters:!0}):i}),e.defineMIME("text/x-twig","twig")}),function(e){"function"==typeof e.define&&e.define("modeTwig",["mode/twig/twig.js"],function(){})}(this);
|
@@ -10,7 +10,7 @@
|
|
10
10
|
CKEDITOR.plugins.add("codemirror", {
|
11
11
|
icons: "searchcode,autoformat,commentselectedrange,uncommentselectedrange,autocomplete", // %REMOVE_LINE_CORE%
|
12
12
|
lang: "af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh", // %REMOVE_LINE_CORE%
|
13
|
-
version: "1.17.
|
13
|
+
version: "1.17.11",
|
14
14
|
init: function (editor) {
|
15
15
|
var rootPath = this.path,
|
16
16
|
defaultConfig = {
|
@@ -157,8 +157,9 @@
|
|
157
157
|
showCursorWhenSelecting: true,
|
158
158
|
styleActiveLine: config.styleActiveLine,
|
159
159
|
viewportMargin: Infinity,
|
160
|
-
//extraKeys: {"Ctrl-Space": "autocomplete"},
|
161
160
|
extraKeys: {
|
161
|
+
"Ctrl-Space":
|
162
|
+
"autocomplete",
|
162
163
|
"Ctrl-Q": function (codeMirror_Editor) {
|
163
164
|
if (config.enableCodeFolding) {
|
164
165
|
window["foldFunc_" + editor.id](codeMirror_Editor, codeMirror_Editor.getCursor().line);
|
@@ -530,7 +531,9 @@
|
|
530
531
|
|
531
532
|
editor.commands.replace.exec = function () {
|
532
533
|
if (editor.mode === "wysiwyg") {
|
533
|
-
editor.openDialog("
|
534
|
+
editor.openDialog("find", function () {
|
535
|
+
this.selectPage("replace");
|
536
|
+
});
|
534
537
|
} else {
|
535
538
|
CodeMirror.commands.replace(window["codemirror_" + editor.id]);
|
536
539
|
}
|
@@ -871,6 +874,7 @@
|
|
871
874
|
}
|
872
875
|
|
873
876
|
var extraKeys = {
|
877
|
+
"Ctrl-Space": "autocomplete",
|
874
878
|
"Ctrl-Q": function(codeMirror_Editor) {
|
875
879
|
if (config.enableCodeFolding) {
|
876
880
|
window["foldFunc_" + editor.id](codeMirror_Editor, codeMirror_Editor.getCursor().line);
|
@@ -1,41 +1,41 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Name: 3024 day
|
4
|
-
Author: Jan T. Sott (http://github.com/idleberg)
|
5
|
-
|
6
|
-
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
7
|
-
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
8
|
-
|
9
|
-
*/
|
10
|
-
|
11
|
-
.cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; }
|
12
|
-
.cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; }
|
13
|
-
|
14
|
-
.cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; }
|
15
|
-
.cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; }
|
16
|
-
|
17
|
-
.cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; }
|
18
|
-
.cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
|
19
|
-
.cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
|
20
|
-
.cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; }
|
21
|
-
|
22
|
-
.cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; }
|
23
|
-
|
24
|
-
.cm-s-3024-day span.cm-comment { color: #cdab53; }
|
25
|
-
.cm-s-3024-day span.cm-atom { color: #a16a94; }
|
26
|
-
.cm-s-3024-day span.cm-number { color: #a16a94; }
|
27
|
-
|
28
|
-
.cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; }
|
29
|
-
.cm-s-3024-day span.cm-keyword { color: #db2d20; }
|
30
|
-
.cm-s-3024-day span.cm-string { color: #fded02; }
|
31
|
-
|
32
|
-
.cm-s-3024-day span.cm-variable { color: #01a252; }
|
33
|
-
.cm-s-3024-day span.cm-variable-2 { color: #01a0e4; }
|
34
|
-
.cm-s-3024-day span.cm-def { color: #e8bbd0; }
|
35
|
-
.cm-s-3024-day span.cm-bracket { color: #3a3432; }
|
36
|
-
.cm-s-3024-day span.cm-tag { color: #db2d20; }
|
37
|
-
.cm-s-3024-day span.cm-link { color: #a16a94; }
|
38
|
-
.cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; }
|
39
|
-
|
40
|
-
.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; }
|
41
|
-
.cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; }
|
1
|
+
/*
|
2
|
+
|
3
|
+
Name: 3024 day
|
4
|
+
Author: Jan T. Sott (http://github.com/idleberg)
|
5
|
+
|
6
|
+
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
7
|
+
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
8
|
+
|
9
|
+
*/
|
10
|
+
|
11
|
+
.cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; }
|
12
|
+
.cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; }
|
13
|
+
|
14
|
+
.cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; }
|
15
|
+
.cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; }
|
16
|
+
|
17
|
+
.cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; }
|
18
|
+
.cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
|
19
|
+
.cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
|
20
|
+
.cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; }
|
21
|
+
|
22
|
+
.cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; }
|
23
|
+
|
24
|
+
.cm-s-3024-day span.cm-comment { color: #cdab53; }
|
25
|
+
.cm-s-3024-day span.cm-atom { color: #a16a94; }
|
26
|
+
.cm-s-3024-day span.cm-number { color: #a16a94; }
|
27
|
+
|
28
|
+
.cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; }
|
29
|
+
.cm-s-3024-day span.cm-keyword { color: #db2d20; }
|
30
|
+
.cm-s-3024-day span.cm-string { color: #fded02; }
|
31
|
+
|
32
|
+
.cm-s-3024-day span.cm-variable { color: #01a252; }
|
33
|
+
.cm-s-3024-day span.cm-variable-2 { color: #01a0e4; }
|
34
|
+
.cm-s-3024-day span.cm-def { color: #e8bbd0; }
|
35
|
+
.cm-s-3024-day span.cm-bracket { color: #3a3432; }
|
36
|
+
.cm-s-3024-day span.cm-tag { color: #db2d20; }
|
37
|
+
.cm-s-3024-day span.cm-link { color: #a16a94; }
|
38
|
+
.cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; }
|
39
|
+
|
40
|
+
.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; }
|
41
|
+
.cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; }
|
@@ -1,39 +1,39 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Name: 3024 night
|
4
|
-
Author: Jan T. Sott (http://github.com/idleberg)
|
5
|
-
|
6
|
-
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
7
|
-
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
8
|
-
|
9
|
-
*/
|
10
|
-
|
11
|
-
.cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; }
|
12
|
-
.cm-s-3024-night div.CodeMirror-selected { background: #3a3432; }
|
13
|
-
.cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); }
|
14
|
-
.cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); }
|
15
|
-
.cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; }
|
16
|
-
.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
|
17
|
-
.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
|
18
|
-
.cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; }
|
19
|
-
|
20
|
-
.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; }
|
21
|
-
|
22
|
-
.cm-s-3024-night span.cm-comment { color: #cdab53; }
|
23
|
-
.cm-s-3024-night span.cm-atom { color: #a16a94; }
|
24
|
-
.cm-s-3024-night span.cm-number { color: #a16a94; }
|
25
|
-
|
26
|
-
.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
|
27
|
-
.cm-s-3024-night span.cm-keyword { color: #db2d20; }
|
28
|
-
.cm-s-3024-night span.cm-string { color: #fded02; }
|
29
|
-
|
30
|
-
.cm-s-3024-night span.cm-variable { color: #01a252; }
|
31
|
-
.cm-s-3024-night span.cm-variable-2 { color: #01a0e4; }
|
32
|
-
.cm-s-3024-night span.cm-def { color: #e8bbd0; }
|
33
|
-
.cm-s-3024-night span.cm-bracket { color: #d6d5d4; }
|
34
|
-
.cm-s-3024-night span.cm-tag { color: #db2d20; }
|
35
|
-
.cm-s-3024-night span.cm-link { color: #a16a94; }
|
36
|
-
.cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; }
|
37
|
-
|
38
|
-
.cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; }
|
39
|
-
.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
|
1
|
+
/*
|
2
|
+
|
3
|
+
Name: 3024 night
|
4
|
+
Author: Jan T. Sott (http://github.com/idleberg)
|
5
|
+
|
6
|
+
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
7
|
+
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
8
|
+
|
9
|
+
*/
|
10
|
+
|
11
|
+
.cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; }
|
12
|
+
.cm-s-3024-night div.CodeMirror-selected { background: #3a3432; }
|
13
|
+
.cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); }
|
14
|
+
.cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); }
|
15
|
+
.cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; }
|
16
|
+
.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
|
17
|
+
.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
|
18
|
+
.cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; }
|
19
|
+
|
20
|
+
.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; }
|
21
|
+
|
22
|
+
.cm-s-3024-night span.cm-comment { color: #cdab53; }
|
23
|
+
.cm-s-3024-night span.cm-atom { color: #a16a94; }
|
24
|
+
.cm-s-3024-night span.cm-number { color: #a16a94; }
|
25
|
+
|
26
|
+
.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
|
27
|
+
.cm-s-3024-night span.cm-keyword { color: #db2d20; }
|
28
|
+
.cm-s-3024-night span.cm-string { color: #fded02; }
|
29
|
+
|
30
|
+
.cm-s-3024-night span.cm-variable { color: #01a252; }
|
31
|
+
.cm-s-3024-night span.cm-variable-2 { color: #01a0e4; }
|
32
|
+
.cm-s-3024-night span.cm-def { color: #e8bbd0; }
|
33
|
+
.cm-s-3024-night span.cm-bracket { color: #d6d5d4; }
|
34
|
+
.cm-s-3024-night span.cm-tag { color: #db2d20; }
|
35
|
+
.cm-s-3024-night span.cm-link { color: #a16a94; }
|
36
|
+
.cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; }
|
37
|
+
|
38
|
+
.cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; }
|
39
|
+
.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
|
@@ -1,32 +1,32 @@
|
|
1
|
-
.cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; }
|
2
|
-
.cm-s-abcdef div.CodeMirror-selected { background: #515151; }
|
3
|
-
.cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); }
|
4
|
-
.cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); }
|
5
|
-
.cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; }
|
6
|
-
.cm-s-abcdef .CodeMirror-guttermarker { color: #222; }
|
7
|
-
.cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; }
|
8
|
-
.cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; }
|
9
|
-
.cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; }
|
10
|
-
|
11
|
-
.cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; }
|
12
|
-
.cm-s-abcdef span.cm-atom { color: #77F; }
|
13
|
-
.cm-s-abcdef span.cm-number { color: violet; }
|
14
|
-
.cm-s-abcdef span.cm-def { color: #fffabc; }
|
15
|
-
.cm-s-abcdef span.cm-variable { color: #abcdef; }
|
16
|
-
.cm-s-abcdef span.cm-variable-2 { color: #cacbcc; }
|
17
|
-
.cm-s-abcdef span.cm-variable-3, .cm-s-abcdef span.cm-type { color: #def; }
|
18
|
-
.cm-s-abcdef span.cm-property { color: #fedcba; }
|
19
|
-
.cm-s-abcdef span.cm-operator { color: #ff0; }
|
20
|
-
.cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;}
|
21
|
-
.cm-s-abcdef span.cm-string { color: #2b4; }
|
22
|
-
.cm-s-abcdef span.cm-meta { color: #C9F; }
|
23
|
-
.cm-s-abcdef span.cm-qualifier { color: #FFF700; }
|
24
|
-
.cm-s-abcdef span.cm-builtin { color: #30aabc; }
|
25
|
-
.cm-s-abcdef span.cm-bracket { color: #8a8a8a; }
|
26
|
-
.cm-s-abcdef span.cm-tag { color: #FFDD44; }
|
27
|
-
.cm-s-abcdef span.cm-attribute { color: #DDFF00; }
|
28
|
-
.cm-s-abcdef span.cm-error { color: #FF0000; }
|
29
|
-
.cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; }
|
30
|
-
.cm-s-abcdef span.cm-link { color: blueviolet; }
|
31
|
-
|
32
|
-
.cm-s-abcdef .CodeMirror-activeline-background { background: #314151; }
|
1
|
+
.cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; }
|
2
|
+
.cm-s-abcdef div.CodeMirror-selected { background: #515151; }
|
3
|
+
.cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); }
|
4
|
+
.cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); }
|
5
|
+
.cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; }
|
6
|
+
.cm-s-abcdef .CodeMirror-guttermarker { color: #222; }
|
7
|
+
.cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; }
|
8
|
+
.cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; }
|
9
|
+
.cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; }
|
10
|
+
|
11
|
+
.cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; }
|
12
|
+
.cm-s-abcdef span.cm-atom { color: #77F; }
|
13
|
+
.cm-s-abcdef span.cm-number { color: violet; }
|
14
|
+
.cm-s-abcdef span.cm-def { color: #fffabc; }
|
15
|
+
.cm-s-abcdef span.cm-variable { color: #abcdef; }
|
16
|
+
.cm-s-abcdef span.cm-variable-2 { color: #cacbcc; }
|
17
|
+
.cm-s-abcdef span.cm-variable-3, .cm-s-abcdef span.cm-type { color: #def; }
|
18
|
+
.cm-s-abcdef span.cm-property { color: #fedcba; }
|
19
|
+
.cm-s-abcdef span.cm-operator { color: #ff0; }
|
20
|
+
.cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;}
|
21
|
+
.cm-s-abcdef span.cm-string { color: #2b4; }
|
22
|
+
.cm-s-abcdef span.cm-meta { color: #C9F; }
|
23
|
+
.cm-s-abcdef span.cm-qualifier { color: #FFF700; }
|
24
|
+
.cm-s-abcdef span.cm-builtin { color: #30aabc; }
|
25
|
+
.cm-s-abcdef span.cm-bracket { color: #8a8a8a; }
|
26
|
+
.cm-s-abcdef span.cm-tag { color: #FFDD44; }
|
27
|
+
.cm-s-abcdef span.cm-attribute { color: #DDFF00; }
|
28
|
+
.cm-s-abcdef span.cm-error { color: #FF0000; }
|
29
|
+
.cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; }
|
30
|
+
.cm-s-abcdef span.cm-link { color: blueviolet; }
|
31
|
+
|
32
|
+
.cm-s-abcdef .CodeMirror-activeline-background { background: #314151; }
|
@@ -1,5 +1,5 @@
|
|
1
|
-
.cm-s-ambiance.CodeMirror {
|
2
|
-
-webkit-box-shadow: none;
|
3
|
-
-moz-box-shadow: none;
|
4
|
-
box-shadow: none;
|
5
|
-
}
|
1
|
+
.cm-s-ambiance.CodeMirror {
|
2
|
+
-webkit-box-shadow: none;
|
3
|
+
-moz-box-shadow: none;
|
4
|
+
box-shadow: none;
|
5
|
+
}
|
@@ -1,74 +1,74 @@
|
|
1
|
-
/* ambiance theme for codemirror */
|
2
|
-
|
3
|
-
/* Color scheme */
|
4
|
-
|
5
|
-
.cm-s-ambiance .cm-header { color: blue; }
|
6
|
-
.cm-s-ambiance .cm-quote { color: #24C2C7; }
|
7
|
-
|
8
|
-
.cm-s-ambiance .cm-keyword { color: #cda869; }
|
9
|
-
.cm-s-ambiance .cm-atom { color: #CF7EA9; }
|
10
|
-
.cm-s-ambiance .cm-number { color: #78CF8A; }
|
11
|
-
.cm-s-ambiance .cm-def { color: #aac6e3; }
|
12
|
-
.cm-s-ambiance .cm-variable { color: #ffb795; }
|
13
|
-
.cm-s-ambiance .cm-variable-2 { color: #eed1b3; }
|
14
|
-
.cm-s-ambiance .cm-variable-3, .cm-s-ambiance .cm-type { color: #faded3; }
|
15
|
-
.cm-s-ambiance .cm-property { color: #eed1b3; }
|
16
|
-
.cm-s-ambiance .cm-operator { color: #fa8d6a; }
|
17
|
-
.cm-s-ambiance .cm-comment { color: #555; font-style:italic; }
|
18
|
-
.cm-s-ambiance .cm-string { color: #8f9d6a; }
|
19
|
-
.cm-s-ambiance .cm-string-2 { color: #9d937c; }
|
20
|
-
.cm-s-ambiance .cm-meta { color: #D2A8A1; }
|
21
|
-
.cm-s-ambiance .cm-qualifier { color: yellow; }
|
22
|
-
.cm-s-ambiance .cm-builtin { color: #9999cc; }
|
23
|
-
.cm-s-ambiance .cm-bracket { color: #24C2C7; }
|
24
|
-
.cm-s-ambiance .cm-tag { color: #fee4ff; }
|
25
|
-
.cm-s-ambiance .cm-attribute { color: #9B859D; }
|
26
|
-
.cm-s-ambiance .cm-hr { color: pink; }
|
27
|
-
.cm-s-ambiance .cm-link { color: #F4C20B; }
|
28
|
-
.cm-s-ambiance .cm-special { color: #FF9D00; }
|
29
|
-
.cm-s-ambiance .cm-error { color: #AF2018; }
|
30
|
-
|
31
|
-
.cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; }
|
32
|
-
.cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; }
|
33
|
-
|
34
|
-
.cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); }
|
35
|
-
.cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
|
36
|
-
.cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMirror-line > span::selection, .cm-s-ambiance .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
|
37
|
-
.cm-s-ambiance .CodeMirror-line::-moz-selection, .cm-s-ambiance .CodeMirror-line > span::-moz-selection, .cm-s-ambiance .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
|
38
|
-
|
39
|
-
/* Editor styling */
|
40
|
-
|
41
|
-
.cm-s-ambiance.CodeMirror {
|
42
|
-
line-height: 1.40em;
|
43
|
-
color: #E6E1DC;
|
44
|
-
background-color: #202020;
|
45
|
-
-webkit-box-shadow: inset 0 0 10px black;
|
46
|
-
-moz-box-shadow: inset 0 0 10px black;
|
47
|
-
box-shadow: inset 0 0 10px black;
|
48
|
-
}
|
49
|
-
|
50
|
-
.cm-s-ambiance .CodeMirror-gutters {
|
51
|
-
background: #3D3D3D;
|
52
|
-
border-right: 1px solid #4D4D4D;
|
53
|
-
box-shadow: 0 10px 20px black;
|
54
|
-
}
|
55
|
-
|
56
|
-
.cm-s-ambiance .CodeMirror-linenumber {
|
57
|
-
text-shadow: 0px 1px 1px #4d4d4d;
|
58
|
-
color: #111;
|
59
|
-
padding: 0 5px;
|
60
|
-
}
|
61
|
-
|
62
|
-
.cm-s-ambiance .CodeMirror-guttermarker { color: #aaa; }
|
63
|
-
.cm-s-ambiance .CodeMirror-guttermarker-subtle { color: #111; }
|
64
|
-
|
65
|
-
.cm-s-ambiance .CodeMirror-cursor { border-left: 1px solid #7991E8; }
|
66
|
-
|
67
|
-
.cm-s-ambiance .CodeMirror-activeline-background {
|
68
|
-
background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031);
|
69
|
-
}
|
70
|
-
|
71
|
-
.cm-s-ambiance.CodeMirror,
|
72
|
-
.cm-s-ambiance .CodeMirror-gutters {
|
73
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC");
|
74
|
-
}
|
1
|
+
/* ambiance theme for codemirror */
|
2
|
+
|
3
|
+
/* Color scheme */
|
4
|
+
|
5
|
+
.cm-s-ambiance .cm-header { color: blue; }
|
6
|
+
.cm-s-ambiance .cm-quote { color: #24C2C7; }
|
7
|
+
|
8
|
+
.cm-s-ambiance .cm-keyword { color: #cda869; }
|
9
|
+
.cm-s-ambiance .cm-atom { color: #CF7EA9; }
|
10
|
+
.cm-s-ambiance .cm-number { color: #78CF8A; }
|
11
|
+
.cm-s-ambiance .cm-def { color: #aac6e3; }
|
12
|
+
.cm-s-ambiance .cm-variable { color: #ffb795; }
|
13
|
+
.cm-s-ambiance .cm-variable-2 { color: #eed1b3; }
|
14
|
+
.cm-s-ambiance .cm-variable-3, .cm-s-ambiance .cm-type { color: #faded3; }
|
15
|
+
.cm-s-ambiance .cm-property { color: #eed1b3; }
|
16
|
+
.cm-s-ambiance .cm-operator { color: #fa8d6a; }
|
17
|
+
.cm-s-ambiance .cm-comment { color: #555; font-style:italic; }
|
18
|
+
.cm-s-ambiance .cm-string { color: #8f9d6a; }
|
19
|
+
.cm-s-ambiance .cm-string-2 { color: #9d937c; }
|
20
|
+
.cm-s-ambiance .cm-meta { color: #D2A8A1; }
|
21
|
+
.cm-s-ambiance .cm-qualifier { color: yellow; }
|
22
|
+
.cm-s-ambiance .cm-builtin { color: #9999cc; }
|
23
|
+
.cm-s-ambiance .cm-bracket { color: #24C2C7; }
|
24
|
+
.cm-s-ambiance .cm-tag { color: #fee4ff; }
|
25
|
+
.cm-s-ambiance .cm-attribute { color: #9B859D; }
|
26
|
+
.cm-s-ambiance .cm-hr { color: pink; }
|
27
|
+
.cm-s-ambiance .cm-link { color: #F4C20B; }
|
28
|
+
.cm-s-ambiance .cm-special { color: #FF9D00; }
|
29
|
+
.cm-s-ambiance .cm-error { color: #AF2018; }
|
30
|
+
|
31
|
+
.cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; }
|
32
|
+
.cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; }
|
33
|
+
|
34
|
+
.cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); }
|
35
|
+
.cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
|
36
|
+
.cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMirror-line > span::selection, .cm-s-ambiance .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
|
37
|
+
.cm-s-ambiance .CodeMirror-line::-moz-selection, .cm-s-ambiance .CodeMirror-line > span::-moz-selection, .cm-s-ambiance .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
|
38
|
+
|
39
|
+
/* Editor styling */
|
40
|
+
|
41
|
+
.cm-s-ambiance.CodeMirror {
|
42
|
+
line-height: 1.40em;
|
43
|
+
color: #E6E1DC;
|
44
|
+
background-color: #202020;
|
45
|
+
-webkit-box-shadow: inset 0 0 10px black;
|
46
|
+
-moz-box-shadow: inset 0 0 10px black;
|
47
|
+
box-shadow: inset 0 0 10px black;
|
48
|
+
}
|
49
|
+
|
50
|
+
.cm-s-ambiance .CodeMirror-gutters {
|
51
|
+
background: #3D3D3D;
|
52
|
+
border-right: 1px solid #4D4D4D;
|
53
|
+
box-shadow: 0 10px 20px black;
|
54
|
+
}
|
55
|
+
|
56
|
+
.cm-s-ambiance .CodeMirror-linenumber {
|
57
|
+
text-shadow: 0px 1px 1px #4d4d4d;
|
58
|
+
color: #111;
|
59
|
+
padding: 0 5px;
|
60
|
+
}
|
61
|
+
|
62
|
+
.cm-s-ambiance .CodeMirror-guttermarker { color: #aaa; }
|
63
|
+
.cm-s-ambiance .CodeMirror-guttermarker-subtle { color: #111; }
|
64
|
+
|
65
|
+
.cm-s-ambiance .CodeMirror-cursor { border-left: 1px solid #7991E8; }
|
66
|
+
|
67
|
+
.cm-s-ambiance .CodeMirror-activeline-background {
|
68
|
+
background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031);
|
69
|
+
}
|
70
|
+
|
71
|
+
.cm-s-ambiance.CodeMirror,
|
72
|
+
.cm-s-ambiance .CodeMirror-gutters {
|
73
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC");
|
74
|
+
}
|