Version Description
Security update, last modified dates, and other improvements
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.14.0 |
Comparing to | |
See all releases |
Code changes from version 2.13.3 to 2.14.0
- code-snippets.php +3 -3
- css/min/edit-rtl.css +1 -1
- css/min/edit.css +1 -1
- css/min/editor-themes/ayu-dark.css +1 -0
- css/min/editor-themes/ayu-mirage.css +1 -0
- css/min/editor-themes/darcula.css +1 -1
- css/min/editor-themes/material-darker.css +1 -0
- css/min/editor-themes/material-ocean.css +1 -0
- css/min/editor-themes/material-palenight.css +1 -0
- css/min/editor-themes/material.css +1 -1
- css/min/editor-themes/midnight.css +1 -1
- css/min/editor-themes/moxer.css +1 -0
- css/min/editor-themes/panda-syntax.css +1 -1
- css/min/editor-themes/yonce.css +1 -0
- css/min/editor.css +1 -1
- css/min/front-end.css +1 -1
- css/min/manage-rtl.css +1 -1
- css/min/manage.css +1 -1
- js/min/edit.js +1 -1
- js/min/editor.js +1 -1
- js/min/front-end.js +1 -1
- js/min/manage.js +1 -1
- languages/code-snippets-fr_FR.po +1 -1
- languages/code-snippets-it_IT.mo +0 -0
- languages/code-snippets-it_IT.po +97 -75
- languages/code-snippets.pot +188 -124
- license.txt +1 -1
- php/admin-menus/class-edit-menu.php +18 -5
- php/admin-menus/class-import-menu.php +2 -0
- php/admin-menus/class-manage-menu.php +41 -16
- php/admin-menus/class-settings-menu.php +7 -2
- php/class-code-snippets.php +6 -6
- php/class-db.php +6 -6
- php/class-list-table.php +73 -30
code-snippets.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* @author Shea Bunge <shea@sheabunge.com>
|
10 |
* @copyright 2012-2020 Shea Bunge
|
11 |
* @license MIT http://opensource.org/licenses/MIT
|
12 |
-
* @version 2.
|
13 |
* @link https://github.com/sheabunge/code-snippets
|
14 |
*/
|
15 |
|
@@ -19,7 +19,7 @@ Plugin URI: https://github.com/sheabunge/code-snippets
|
|
19 |
Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
|
20 |
Author: Code Snippets Pro
|
21 |
Author URI: https://codesnippets.pro
|
22 |
-
Version: 2.
|
23 |
License: MIT
|
24 |
License URI: license.txt
|
25 |
Text Domain: code-snippets
|
@@ -91,7 +91,7 @@ function code_snippets() {
|
|
91 |
static $plugin;
|
92 |
|
93 |
if ( is_null( $plugin ) ) {
|
94 |
-
$plugin = new Code_Snippets( '2.
|
95 |
}
|
96 |
|
97 |
return $plugin;
|
9 |
* @author Shea Bunge <shea@sheabunge.com>
|
10 |
* @copyright 2012-2020 Shea Bunge
|
11 |
* @license MIT http://opensource.org/licenses/MIT
|
12 |
+
* @version 2.14.0
|
13 |
* @link https://github.com/sheabunge/code-snippets
|
14 |
*/
|
15 |
|
19 |
Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
|
20 |
Author: Code Snippets Pro
|
21 |
Author URI: https://codesnippets.pro
|
22 |
+
Version: 2.14.0
|
23 |
License: MIT
|
24 |
License URI: license.txt
|
25 |
Text Domain: code-snippets
|
91 |
static $plugin;
|
92 |
|
93 |
if ( is_null( $plugin ) ) {
|
94 |
+
$plugin = new Code_Snippets( '2.14.0', __FILE__ );
|
95 |
}
|
96 |
|
97 |
return $plugin;
|
css/min/edit-rtl.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
ul.tagit{padding:1px 5px;overflow:auto;margin-right:inherit;margin-left:inherit}ul.tagit li{display:block;float:right;margin:2px 0 2px 5px}ul.tagit li.tagit-choice{position:relative;line-height:inherit}input.tagit-hidden-field{display:none}ul.tagit li.tagit-choice-read-only{padding:.2em .5em}ul.tagit li.tagit-choice-editable{padding:.2em .5em .2em 18px}ul.tagit li.tagit-new{padding:.25em 0 .25em 4px}ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;left:.1em;top:50%;margin-top:-8px;line-height:17px}ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}ul.tagit li.tagit-choice input{display:block;float:right;margin:2px 0 2px 5px}ul.tagit input[type=text]{box-sizing:border-box;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:none}ul.tagit{border:1px solid #c6c6c6;background:inherit}ul.tagit li.tagit-choice{border-radius:6px;-webkit-border-radius:6px;border:1px solid #cad8f3;background:none;background-color:#dee7f8;font-weight:400}ul.tagit li.tagit-choice .tagit-label:not(a){color:#555}ul.tagit li.tagit-choice a.tagit-close{text-decoration:none}ul.tagit li.tagit-choice .tagit-close{left:.4em}ul.tagit li.tagit-choice .ui-icon{display:none}ul.tagit li.tagit-choice .tagit-close .text-icon{display:inline;font-family:arial,sans-serif;font-size:16px;line-height:16px;color:#777}ul.tagit li.tagit-choice.remove,ul.tagit li.tagit-choice:hover{background-color:#bbcef1;border-color:#6d95e0}ul.tagit li.tagit-choice a.tagit-close .text-icon:hover,ul.tagit li.tagit-choice a.tagLabel:hover{color:#222}ul.tagit input[type=text]{color:#333;background:none}.ui-widget{font-size:1.1em}.tagit-autocomplete.ui-autocomplete{position:absolute;cursor:default}* html .tagit-autocomplete.ui-autocomplete{width:1px}.tagit-autocomplete.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:right}.tagit-autocomplete.ui-menu .ui-menu{margin-top:-3px}.tagit-autocomplete.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:right;clear:right;width:100%}.tagit-autocomplete.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-active,.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.tagit-autocomplete.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}.tagit-autocomplete.ui-corner-all,.tagit-autocomplete .ui-corner-all{border-radius:4px}.tagit-autocomplete .ui-state-focus,.tagit-autocomplete .ui-state-hover{border:1px solid #999;background:#dadada;font-weight:400;color:#212121}.tagit-autocomplete .ui-state-active,.tagit-autocomplete .ui-widget-content{border:1px solid #aaa}.tagit .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px,1px,1px,1px)}.form-table th{width:auto}h2{margin:25px 0 15px}h2:first-of-type{margin-top:20px}h2 label{cursor:auto}.active-snippet #title,.inactive-snippet #title{border-right-width:4px}.active-snippet #title{border-right-color:#46b450}.inactive-snippet #title{border-right-color:#dc3232}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.button+.button{margin-right:.5em}.submit-inline{float:left}.snippet-scope{margin-top:15px}.snippet-scope label{margin-left:1.5em;display:inline-block}.snippet-priority{float:left}.snippet-priority label{font-weight:700;cursor:help;font-size:1.1em;padding-left:.5em}.snippet-priority input{width:4em}.snippet-editor{position:relative}.editor-help-tooltip{cursor:help;padding:.3em .3em 0;display:inline-block;font-size:10px;background:transparent!important}.snippet-editor-help{position:absolute;left:5px;top:5px}.snippet-editor-help:hover .editor-help-text{visibility:visible;opacity:1}.editor-help-text{visibility:hidden;background-color:#555;color:#fff;padding:5px;border-radius:6px;position:absolute;z-index:99;top:125%;left:0;margin-left:-10px;opacity:0;transition:opacity .3s;white-space:nowrap;font-size:small}.editor-help-text:after{content:"";position:absolute;bottom:100%;left:0;margin-left:10px;border:5px solid transparent;border-bottom-color:#555}.editor-help-text td:first-child{padding-left:.5em}.editor-help-text .mac-key{display:none}.editor-help-text.platform-mac .mac-key{display:inline}.editor-help-text.platform-mac .pc-key{display:none}.CodeMirror{width:100%}.CodeMirror-sizer{min-height:300px!important}
|
2 |
|
1 |
+
ul.tagit{padding:1px 5px;overflow:auto;margin-right:inherit;margin-left:inherit}ul.tagit li{display:block;float:right;margin:2px 0 2px 5px}ul.tagit li.tagit-choice{position:relative;line-height:inherit}input.tagit-hidden-field{display:none}ul.tagit li.tagit-choice-read-only{padding:.2em .5em}ul.tagit li.tagit-choice-editable{padding:.2em .5em .2em 18px}ul.tagit li.tagit-new{padding:.25em 0 .25em 4px}ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;left:.1em;top:50%;margin-top:-8px;line-height:17px}ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}ul.tagit li.tagit-choice input{display:block;float:right;margin:2px 0 2px 5px}ul.tagit input[type=text]{box-sizing:border-box;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:none}ul.tagit{border:1px solid #c6c6c6;background:inherit}ul.tagit li.tagit-choice{border-radius:6px;-webkit-border-radius:6px;border:1px solid #cad8f3;background:none;background-color:#dee7f8;font-weight:400}ul.tagit li.tagit-choice .tagit-label:not(a){color:#555}ul.tagit li.tagit-choice a.tagit-close{text-decoration:none}ul.tagit li.tagit-choice .tagit-close{left:.4em}ul.tagit li.tagit-choice .ui-icon{display:none}ul.tagit li.tagit-choice .tagit-close .text-icon{display:inline;font-family:arial,sans-serif;font-size:16px;line-height:16px;color:#777}ul.tagit li.tagit-choice.remove,ul.tagit li.tagit-choice:hover{background-color:#bbcef1;border-color:#6d95e0}ul.tagit li.tagit-choice a.tagit-close .text-icon:hover,ul.tagit li.tagit-choice a.tagLabel:hover{color:#222}ul.tagit input[type=text]{color:#333;background:none}.ui-widget{font-size:1.1em}.tagit-autocomplete.ui-autocomplete{position:absolute;cursor:default}* html .tagit-autocomplete.ui-autocomplete{width:1px}.tagit-autocomplete.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:right}.tagit-autocomplete.ui-menu .ui-menu{margin-top:-3px}.tagit-autocomplete.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:right;clear:right;width:100%}.tagit-autocomplete.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-active,.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.tagit-autocomplete.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}.tagit-autocomplete.ui-corner-all,.tagit-autocomplete .ui-corner-all{border-radius:4px}.tagit-autocomplete .ui-state-focus,.tagit-autocomplete .ui-state-hover{border:1px solid #999;background:#dadada;font-weight:400;color:#212121}.tagit-autocomplete .ui-state-active,.tagit-autocomplete .ui-widget-content{border:1px solid #aaa}.tagit .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px,1px,1px,1px)}.form-table th{width:auto}h2{margin:25px 0 15px}h2:first-of-type{margin-top:20px}h2 label{cursor:auto}.active-snippet #title,.inactive-snippet #title{border-right-width:4px}.active-snippet #title{border-right-color:#46b450}.inactive-snippet #title{border-right-color:#bbb}.erroneous-snippet #title{border-right-color:#dc3232}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.button+.button{margin-right:.5em}.submit-inline{float:left}.snippet-scope{margin-top:15px}.snippet-scope label{margin-left:1.5em;display:inline-block}.snippet-priority{float:left}.snippet-priority label{font-weight:700;cursor:help;font-size:1.1em;padding-left:.5em}.snippet-priority input{width:4em}.snippet-editor{position:relative}.editor-help-tooltip{cursor:help;padding:.3em .3em 0;display:inline-block;font-size:10px;background:transparent!important}.snippet-editor-help{position:absolute;left:5px;top:5px}.snippet-editor-help:hover .editor-help-text{visibility:visible;opacity:1}.editor-help-text{visibility:hidden;background-color:#555;color:#fff;padding:5px;border-radius:6px;position:absolute;z-index:99;top:125%;left:0;margin-left:-10px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;white-space:nowrap;font-size:small}.editor-help-text:after{content:"";position:absolute;bottom:100%;left:0;margin-left:10px;border:5px solid transparent;border-bottom-color:#555}.editor-help-text td:first-child{padding-left:.5em}.editor-help-text .mac-key{display:none}.editor-help-text.platform-mac .mac-key{display:inline}.editor-help-text.platform-mac .pc-key{display:none}.CodeMirror{width:100%}.CodeMirror-sizer{min-height:300px!important}ul.tagit{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}
|
2 |
|
css/min/edit.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
ul.tagit{padding:1px 5px;overflow:auto;margin-left:inherit;margin-right:inherit}ul.tagit li{display:block;float:left;margin:2px 5px 2px 0}ul.tagit li.tagit-choice{position:relative;line-height:inherit}input.tagit-hidden-field{display:none}ul.tagit li.tagit-choice-read-only{padding:.2em .5em}ul.tagit li.tagit-choice-editable{padding:.2em 18px .2em .5em}ul.tagit li.tagit-new{padding:.25em 4px .25em 0}ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;right:.1em;top:50%;margin-top:-8px;line-height:17px}ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}ul.tagit li.tagit-choice input{display:block;float:left;margin:2px 5px 2px 0}ul.tagit input[type=text]{box-sizing:border-box;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:none}ul.tagit{border:1px solid #c6c6c6;background:inherit}ul.tagit li.tagit-choice{border-radius:6px;-webkit-border-radius:6px;border:1px solid #cad8f3;background:none;background-color:#dee7f8;font-weight:400}ul.tagit li.tagit-choice .tagit-label:not(a){color:#555}ul.tagit li.tagit-choice a.tagit-close{text-decoration:none}ul.tagit li.tagit-choice .tagit-close{right:.4em}ul.tagit li.tagit-choice .ui-icon{display:none}ul.tagit li.tagit-choice .tagit-close .text-icon{display:inline;font-family:arial,sans-serif;font-size:16px;line-height:16px;color:#777}ul.tagit li.tagit-choice.remove,ul.tagit li.tagit-choice:hover{background-color:#bbcef1;border-color:#6d95e0}ul.tagit li.tagit-choice a.tagit-close .text-icon:hover,ul.tagit li.tagit-choice a.tagLabel:hover{color:#222}ul.tagit input[type=text]{color:#333;background:none}.ui-widget{font-size:1.1em}.tagit-autocomplete.ui-autocomplete{position:absolute;cursor:default}* html .tagit-autocomplete.ui-autocomplete{width:1px}.tagit-autocomplete.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left}.tagit-autocomplete.ui-menu .ui-menu{margin-top:-3px}.tagit-autocomplete.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%}.tagit-autocomplete.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-active,.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.tagit-autocomplete.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}.tagit-autocomplete.ui-corner-all,.tagit-autocomplete .ui-corner-all{border-radius:4px}.tagit-autocomplete .ui-state-focus,.tagit-autocomplete .ui-state-hover{border:1px solid #999;background:#dadada;font-weight:400;color:#212121}.tagit-autocomplete .ui-state-active,.tagit-autocomplete .ui-widget-content{border:1px solid #aaa}.tagit .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px,1px,1px,1px)}.form-table th{width:auto}h2{margin:25px 0 15px}h2:first-of-type{margin-top:20px}h2 label{cursor:auto}.active-snippet #title,.inactive-snippet #title{border-left-width:4px}.active-snippet #title{border-left-color:#46b450}.inactive-snippet #title{border-left-color:#dc3232}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.button+.button{margin-left:.5em}.submit-inline{float:right}.snippet-scope{margin-top:15px}.snippet-scope label{margin-right:1.5em;display:inline-block}.snippet-priority{float:right}.snippet-priority label{font-weight:700;cursor:help;font-size:1.1em;padding-right:.5em}.snippet-priority input{width:4em}.snippet-editor{position:relative}.editor-help-tooltip{cursor:help;padding:.3em .3em 0;display:inline-block;font-size:10px;background:transparent!important}.snippet-editor-help{position:absolute;right:5px;top:5px}.snippet-editor-help:hover .editor-help-text{visibility:visible;opacity:1}.editor-help-text{visibility:hidden;background-color:#555;color:#fff;padding:5px;border-radius:6px;position:absolute;z-index:99;top:125%;right:0;margin-right:-10px;opacity:0;transition:opacity .3s;white-space:nowrap;font-size:small}.editor-help-text:after{content:"";position:absolute;bottom:100%;right:0;margin-right:10px;border:5px solid transparent;border-bottom-color:#555}.editor-help-text td:first-child{padding-right:.5em}.editor-help-text .mac-key{display:none}.editor-help-text.platform-mac .mac-key{display:inline}.editor-help-text.platform-mac .pc-key{display:none}.CodeMirror{width:100%}.CodeMirror-sizer{min-height:300px!important}
|
1 |
+
ul.tagit{padding:1px 5px;overflow:auto;margin-left:inherit;margin-right:inherit}ul.tagit li{display:block;float:left;margin:2px 5px 2px 0}ul.tagit li.tagit-choice{position:relative;line-height:inherit}input.tagit-hidden-field{display:none}ul.tagit li.tagit-choice-read-only{padding:.2em .5em}ul.tagit li.tagit-choice-editable{padding:.2em 18px .2em .5em}ul.tagit li.tagit-new{padding:.25em 4px .25em 0}ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;right:.1em;top:50%;margin-top:-8px;line-height:17px}ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}ul.tagit li.tagit-choice input{display:block;float:left;margin:2px 5px 2px 0}ul.tagit input[type=text]{box-sizing:border-box;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:none}ul.tagit{border:1px solid #c6c6c6;background:inherit}ul.tagit li.tagit-choice{border-radius:6px;-webkit-border-radius:6px;border:1px solid #cad8f3;background:none;background-color:#dee7f8;font-weight:400}ul.tagit li.tagit-choice .tagit-label:not(a){color:#555}ul.tagit li.tagit-choice a.tagit-close{text-decoration:none}ul.tagit li.tagit-choice .tagit-close{right:.4em}ul.tagit li.tagit-choice .ui-icon{display:none}ul.tagit li.tagit-choice .tagit-close .text-icon{display:inline;font-family:arial,sans-serif;font-size:16px;line-height:16px;color:#777}ul.tagit li.tagit-choice.remove,ul.tagit li.tagit-choice:hover{background-color:#bbcef1;border-color:#6d95e0}ul.tagit li.tagit-choice a.tagit-close .text-icon:hover,ul.tagit li.tagit-choice a.tagLabel:hover{color:#222}ul.tagit input[type=text]{color:#333;background:none}.ui-widget{font-size:1.1em}.tagit-autocomplete.ui-autocomplete{position:absolute;cursor:default}* html .tagit-autocomplete.ui-autocomplete{width:1px}.tagit-autocomplete.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left}.tagit-autocomplete.ui-menu .ui-menu{margin-top:-3px}.tagit-autocomplete.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%}.tagit-autocomplete.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-active,.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.tagit-autocomplete.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}.tagit-autocomplete.ui-corner-all,.tagit-autocomplete .ui-corner-all{border-radius:4px}.tagit-autocomplete .ui-state-focus,.tagit-autocomplete .ui-state-hover{border:1px solid #999;background:#dadada;font-weight:400;color:#212121}.tagit-autocomplete .ui-state-active,.tagit-autocomplete .ui-widget-content{border:1px solid #aaa}.tagit .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px,1px,1px,1px)}.form-table th{width:auto}h2{margin:25px 0 15px}h2:first-of-type{margin-top:20px}h2 label{cursor:auto}.active-snippet #title,.inactive-snippet #title{border-left-width:4px}.active-snippet #title{border-left-color:#46b450}.inactive-snippet #title{border-left-color:#bbb}.erroneous-snippet #title{border-left-color:#dc3232}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.button+.button{margin-left:.5em}.submit-inline{float:right}.snippet-scope{margin-top:15px}.snippet-scope label{margin-right:1.5em;display:inline-block}.snippet-priority{float:right}.snippet-priority label{font-weight:700;cursor:help;font-size:1.1em;padding-right:.5em}.snippet-priority input{width:4em}.snippet-editor{position:relative}.editor-help-tooltip{cursor:help;padding:.3em .3em 0;display:inline-block;font-size:10px;background:transparent!important}.snippet-editor-help{position:absolute;right:5px;top:5px}.snippet-editor-help:hover .editor-help-text{visibility:visible;opacity:1}.editor-help-text{visibility:hidden;background-color:#555;color:#fff;padding:5px;border-radius:6px;position:absolute;z-index:99;top:125%;right:0;margin-right:-10px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;white-space:nowrap;font-size:small}.editor-help-text:after{content:"";position:absolute;bottom:100%;right:0;margin-right:10px;border:5px solid transparent;border-bottom-color:#555}.editor-help-text td:first-child{padding-right:.5em}.editor-help-text .mac-key{display:none}.editor-help-text.platform-mac .mac-key{display:inline}.editor-help-text.platform-mac .pc-key{display:none}.CodeMirror{width:100%}.CodeMirror-sizer{min-height:300px!important}ul.tagit{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}
|
css/min/editor-themes/ayu-dark.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-ayu-dark.CodeMirror{background:#0a0e14;color:#b3b1ad}.cm-s-ayu-dark div.CodeMirror-selected{background:#273747}.cm-s-ayu-dark .CodeMirror-line::selection,.cm-s-ayu-dark .CodeMirror-line>span::selection,.cm-s-ayu-dark .CodeMirror-line>span>span::selection{background:#273747}.cm-s-ayu-dark .CodeMirror-line::-moz-selection,.cm-s-ayu-dark .CodeMirror-line>span::-moz-selection,.cm-s-ayu-dark .CodeMirror-line>span>span::-moz-selection{background:#273747}.cm-s-ayu-dark .CodeMirror-gutters{background:#0a0e14;border-right:0}.cm-s-ayu-dark .CodeMirror-guttermarker{color:#fff}.cm-s-ayu-dark .CodeMirror-guttermarker-subtle,.cm-s-ayu-dark .CodeMirror-linenumber{color:#3d424d}.cm-s-ayu-dark .CodeMirror-cursor{border-left:1px solid #e6b450}.cm-s-ayu-dark span.cm-comment{color:#626a73}.cm-s-ayu-dark span.cm-atom{color:#ae81ff}.cm-s-ayu-dark span.cm-number{color:#e6b450}.cm-s-ayu-dark span.cm-comment.cm-attribute{color:#ffb454}.cm-s-ayu-dark span.cm-comment.cm-def,.cm-s-ayu-dark span.cm-comment.cm-tag{color:#39bae6}.cm-s-ayu-dark span.cm-comment.cm-type{color:#5998a6}.cm-s-ayu-dark span.cm-attribute,.cm-s-ayu-dark span.cm-property{color:#ffb454}.cm-s-ayu-dark span.cm-keyword{color:#ff8f40}.cm-s-ayu-dark span.cm-builtin{color:#e6b450}.cm-s-ayu-dark span.cm-string{color:#c2d94c}.cm-s-ayu-dark span.cm-variable{color:#b3b1ad}.cm-s-ayu-dark span.cm-variable-2{color:#f07178}.cm-s-ayu-dark span.cm-variable-3{color:#39bae6}.cm-s-ayu-dark span.cm-type{color:#ff8f40}.cm-s-ayu-dark span.cm-def{color:#fe9}.cm-s-ayu-dark span.cm-bracket{color:#f8f8f2}.cm-s-ayu-dark span.cm-tag{color:#39bae6}.cm-s-ayu-dark span.cm-header{color:#c2d94c}.cm-s-ayu-dark span.cm-link{color:#39bae6}.cm-s-ayu-dark span.cm-error{color:#f33}.cm-s-ayu-dark .CodeMirror-activeline-background{background:#01060e}.cm-s-ayu-dark .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/ayu-mirage.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-ayu-mirage.CodeMirror{background:#1f2430;color:#cbccc6}.cm-s-ayu-mirage div.CodeMirror-selected{background:#34455a}.cm-s-ayu-mirage .CodeMirror-line::selection,.cm-s-ayu-mirage .CodeMirror-line>span::selection,.cm-s-ayu-mirage .CodeMirror-line>span>span::selection{background:#34455a}.cm-s-ayu-mirage .CodeMirror-line::-moz-selection,.cm-s-ayu-mirage .CodeMirror-line>span::-moz-selection,.cm-s-ayu-mirage .CodeMirror-line>span>span::-moz-selection{background:#191e2a}.cm-s-ayu-mirage .CodeMirror-gutters{background:#1f2430;border-right:0}.cm-s-ayu-mirage .CodeMirror-guttermarker{color:#fff}.cm-s-ayu-mirage .CodeMirror-guttermarker-subtle{color:#707a8c}.cm-s-ayu-mirage .CodeMirror-linenumber{color:#3d424d}.cm-s-ayu-mirage .CodeMirror-cursor{border-left:1px solid #fc6}.cm-s-ayu-mirage span.cm-comment{color:#5c6773;font-style:italic}.cm-s-ayu-mirage span.cm-atom{color:#ae81ff}.cm-s-ayu-mirage span.cm-number{color:#fc6}.cm-s-ayu-mirage span.cm-comment.cm-attribute{color:#ffd580}.cm-s-ayu-mirage span.cm-comment.cm-def{color:#d4bfff}.cm-s-ayu-mirage span.cm-comment.cm-tag{color:#5ccfe6}.cm-s-ayu-mirage span.cm-comment.cm-type{color:#5998a6}.cm-s-ayu-mirage span.cm-property{color:#f29e74}.cm-s-ayu-mirage span.cm-attribute{color:#ffd580}.cm-s-ayu-mirage span.cm-keyword{color:#ffa759}.cm-s-ayu-mirage span.cm-builtin{color:#fc6}.cm-s-ayu-mirage span.cm-string{color:#bae67e}.cm-s-ayu-mirage span.cm-variable{color:#cbccc6}.cm-s-ayu-mirage span.cm-variable-2{color:#f28779}.cm-s-ayu-mirage span.cm-variable-3{color:#5ccfe6}.cm-s-ayu-mirage span.cm-type{color:#ffa759}.cm-s-ayu-mirage span.cm-def{color:#ffd580}.cm-s-ayu-mirage span.cm-bracket,.cm-s-ayu-mirage span.cm-tag{color:#5ccfe6}.cm-s-ayu-mirage span.cm-header{color:#bae67e}.cm-s-ayu-mirage span.cm-link{color:#5ccfe6}.cm-s-ayu-mirage span.cm-error{color:#f33}.cm-s-ayu-mirage .CodeMirror-activeline-background{background:#191e2a}.cm-s-ayu-mirage .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/darcula.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-atom,.cm-s-darcula span.cm-link{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #a9b7c6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}
|
1 |
+
.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-atom,.cm-s-darcula span.cm-link{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:rgba(50,89,48,.7);font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:rgba(61,115,59,.7);font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #a9b7c6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}
|
css/min/editor-themes/material-darker.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-material-darker.CodeMirror{background-color:#212121;color:#eff}.cm-s-material-darker .CodeMirror-gutters{background:#212121;color:#545454;border:none}.cm-s-material-darker .CodeMirror-guttermarker,.cm-s-material-darker .CodeMirror-guttermarker-subtle,.cm-s-material-darker .CodeMirror-linenumber{color:#545454}.cm-s-material-darker .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material-darker.CodeMirror-focused div.CodeMirror-selected,.cm-s-material-darker div.CodeMirror-selected{background:rgba(97,97,97,.2)}.cm-s-material-darker .CodeMirror-line::selection,.cm-s-material-darker .CodeMirror-line>span::selection,.cm-s-material-darker .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material-darker .CodeMirror-line::-moz-selection,.cm-s-material-darker .CodeMirror-line>span::-moz-selection,.cm-s-material-darker .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material-darker .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material-darker .cm-keyword{color:#c792ea}.cm-s-material-darker .cm-operator{color:#89ddff}.cm-s-material-darker .cm-variable-2{color:#eff}.cm-s-material-darker .cm-type,.cm-s-material-darker .cm-variable-3{color:#f07178}.cm-s-material-darker .cm-builtin{color:#ffcb6b}.cm-s-material-darker .cm-atom{color:#f78c6c}.cm-s-material-darker .cm-number{color:#ff5370}.cm-s-material-darker .cm-def{color:#82aaff}.cm-s-material-darker .cm-string{color:#c3e88d}.cm-s-material-darker .cm-string-2{color:#f07178}.cm-s-material-darker .cm-comment{color:#545454}.cm-s-material-darker .cm-variable{color:#f07178}.cm-s-material-darker .cm-tag{color:#ff5370}.cm-s-material-darker .cm-meta{color:#ffcb6b}.cm-s-material-darker .cm-attribute,.cm-s-material-darker .cm-property{color:#c792ea}.cm-s-material-darker .cm-qualifier,.cm-s-material-darker .cm-type,.cm-s-material-darker .cm-variable-3{color:#decb6b}.cm-s-material-darker .cm-error{color:#fff;background-color:#ff5370}.cm-s-material-darker .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/material-ocean.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-material-ocean.CodeMirror{background-color:#0f111a;color:#8f93a2}.cm-s-material-ocean .CodeMirror-gutters{background:#0f111a;color:#464b5d;border:none}.cm-s-material-ocean .CodeMirror-guttermarker,.cm-s-material-ocean .CodeMirror-guttermarker-subtle,.cm-s-material-ocean .CodeMirror-linenumber{color:#464b5d}.cm-s-material-ocean .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material-ocean.CodeMirror-focused div.CodeMirror-selected,.cm-s-material-ocean div.CodeMirror-selected{background:rgba(113,124,180,.2)}.cm-s-material-ocean .CodeMirror-line::selection,.cm-s-material-ocean .CodeMirror-line>span::selection,.cm-s-material-ocean .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material-ocean .CodeMirror-line::-moz-selection,.cm-s-material-ocean .CodeMirror-line>span::-moz-selection,.cm-s-material-ocean .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material-ocean .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material-ocean .cm-keyword{color:#c792ea}.cm-s-material-ocean .cm-operator{color:#89ddff}.cm-s-material-ocean .cm-variable-2{color:#eff}.cm-s-material-ocean .cm-type,.cm-s-material-ocean .cm-variable-3{color:#f07178}.cm-s-material-ocean .cm-builtin{color:#ffcb6b}.cm-s-material-ocean .cm-atom{color:#f78c6c}.cm-s-material-ocean .cm-number{color:#ff5370}.cm-s-material-ocean .cm-def{color:#82aaff}.cm-s-material-ocean .cm-string{color:#c3e88d}.cm-s-material-ocean .cm-string-2{color:#f07178}.cm-s-material-ocean .cm-comment{color:#464b5d}.cm-s-material-ocean .cm-variable{color:#f07178}.cm-s-material-ocean .cm-tag{color:#ff5370}.cm-s-material-ocean .cm-meta{color:#ffcb6b}.cm-s-material-ocean .cm-attribute,.cm-s-material-ocean .cm-property{color:#c792ea}.cm-s-material-ocean .cm-qualifier,.cm-s-material-ocean .cm-type,.cm-s-material-ocean .cm-variable-3{color:#decb6b}.cm-s-material-ocean .cm-error{color:#fff;background-color:#ff5370}.cm-s-material-ocean .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/material-palenight.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-material-palenight.CodeMirror{background-color:#292d3e;color:#a6accd}.cm-s-material-palenight .CodeMirror-gutters{background:#292d3e;color:#676e95;border:none}.cm-s-material-palenight .CodeMirror-guttermarker,.cm-s-material-palenight .CodeMirror-guttermarker-subtle,.cm-s-material-palenight .CodeMirror-linenumber{color:#676e95}.cm-s-material-palenight .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material-palenight.CodeMirror-focused div.CodeMirror-selected,.cm-s-material-palenight div.CodeMirror-selected{background:rgba(113,124,180,.2)}.cm-s-material-palenight .CodeMirror-line::selection,.cm-s-material-palenight .CodeMirror-line>span::selection,.cm-s-material-palenight .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material-palenight .CodeMirror-line::-moz-selection,.cm-s-material-palenight .CodeMirror-line>span::-moz-selection,.cm-s-material-palenight .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material-palenight .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material-palenight .cm-keyword{color:#c792ea}.cm-s-material-palenight .cm-operator{color:#89ddff}.cm-s-material-palenight .cm-variable-2{color:#eff}.cm-s-material-palenight .cm-type,.cm-s-material-palenight .cm-variable-3{color:#f07178}.cm-s-material-palenight .cm-builtin{color:#ffcb6b}.cm-s-material-palenight .cm-atom{color:#f78c6c}.cm-s-material-palenight .cm-number{color:#ff5370}.cm-s-material-palenight .cm-def{color:#82aaff}.cm-s-material-palenight .cm-string{color:#c3e88d}.cm-s-material-palenight .cm-string-2{color:#f07178}.cm-s-material-palenight .cm-comment{color:#676e95}.cm-s-material-palenight .cm-variable{color:#f07178}.cm-s-material-palenight .cm-tag{color:#ff5370}.cm-s-material-palenight .cm-meta{color:#ffcb6b}.cm-s-material-palenight .cm-attribute,.cm-s-material-palenight .cm-property{color:#c792ea}.cm-s-material-palenight .cm-qualifier,.cm-s-material-palenight .cm-type,.cm-s-material-palenight .cm-variable-3{color:#decb6b}.cm-s-material-palenight .cm-error{color:#fff;background-color:#ff5370}.cm-s-material-palenight .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/material.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cm-s-material.CodeMirror{background-color:#263238;color:#
|
1 |
+
.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material.CodeMirror-focused div.CodeMirror-selected,.cm-s-material div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/midnight.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cm-s-midnight
|
1 |
+
.cm-s-midnight .CodeMirror-activeline-background{background:#253540}.cm-s-midnight.CodeMirror{background:#0f192a;color:#d1edff}.cm-s-midnight div.CodeMirror-selected{background:#314d67}.cm-s-midnight .CodeMirror-line::selection,.cm-s-midnight .CodeMirror-line>span::selection,.cm-s-midnight .CodeMirror-line>span>span::selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-line::-moz-selection,.cm-s-midnight .CodeMirror-line>span::-moz-selection,.cm-s-midnight .CodeMirror-line>span>span::-moz-selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-gutters{background:#0f192a;border-right:1px solid}.cm-s-midnight .CodeMirror-guttermarker{color:#fff}.cm-s-midnight .CodeMirror-guttermarker-subtle,.cm-s-midnight .CodeMirror-linenumber{color:#d0d0d0}.cm-s-midnight .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-midnight span.cm-comment{color:#428bdd}.cm-s-midnight span.cm-atom{color:#ae81ff}.cm-s-midnight span.cm-number{color:#d1edff}.cm-s-midnight span.cm-attribute,.cm-s-midnight span.cm-property{color:#a6e22e}.cm-s-midnight span.cm-keyword{color:#e83737}.cm-s-midnight span.cm-string{color:#1dc116}.cm-s-midnight span.cm-variable,.cm-s-midnight span.cm-variable-2{color:#ffaa3e}.cm-s-midnight span.cm-def{color:#4dd}.cm-s-midnight span.cm-bracket{color:#d1edff}.cm-s-midnight span.cm-tag{color:#449}.cm-s-midnight span.cm-link{color:#ae81ff}.cm-s-midnight span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-midnight .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/moxer.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-moxer.CodeMirror{background-color:#090a0f;color:#8e95b4;line-height:1.8}.cm-s-moxer .CodeMirror-gutters{background:#090a0f;color:#35394b;border:none}.cm-s-moxer .CodeMirror-guttermarker,.cm-s-moxer .CodeMirror-guttermarker-subtle,.cm-s-moxer .CodeMirror-linenumber{color:#35394b}.cm-s-moxer .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-moxer div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-moxer.CodeMirror-focused div.CodeMirror-selected{background:#212431}.cm-s-moxer .CodeMirror-line::selection,.cm-s-moxer .CodeMirror-line>span::selection,.cm-s-moxer .CodeMirror-line>span>span::selection{background:#212431}.cm-s-moxer .CodeMirror-line::-moz-selection,.cm-s-moxer .CodeMirror-line>span::-moz-selection,.cm-s-moxer .CodeMirror-line>span>span::-moz-selection{background:#212431}.cm-s-moxer .CodeMirror-activeline-background,.cm-s-moxer .CodeMirror-activeline-gutter .CodeMirror-linenumber{background:rgba(33,36,49,.5)}.cm-s-moxer .cm-keyword,.cm-s-moxer .cm-operator{color:#d46c6c}.cm-s-moxer .cm-variable-2{color:#81c5da}.cm-s-moxer .cm-type,.cm-s-moxer .cm-variable-3{color:#f07178}.cm-s-moxer .cm-builtin{color:#ffcb6b}.cm-s-moxer .cm-atom{color:#a99be2}.cm-s-moxer .cm-number{color:#7ca4c0}.cm-s-moxer .cm-def{color:#f5dfa5}.cm-s-moxer .CodeMirror-line .cm-def~.cm-def{color:#81c5da}.cm-s-moxer .cm-string{color:#b2e4ae}.cm-s-moxer .cm-string-2{color:#f07178}.cm-s-moxer .cm-comment{color:#3f445a}.cm-s-moxer .cm-variable{color:#8e95b4}.cm-s-moxer .cm-tag{color:#ff5370}.cm-s-moxer .cm-meta{color:#ffcb6b}.cm-s-moxer .cm-attribute{color:#c792ea}.cm-s-moxer .cm-property{color:#81c5da}.cm-s-moxer .cm-qualifier,.cm-s-moxer .cm-type,.cm-s-moxer .cm-variable-3{color:#decb6b}.cm-s-moxer .cm-error{color:#fff;background-color:#ff5370}.cm-s-moxer .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
css/min/editor-themes/panda-syntax.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cm-s-panda-syntax{background:#292a2b;color:#e6e6e6;line-height:1.5;font-family:Operator Mono,Source
|
1 |
+
.cm-s-panda-syntax{background:#292a2b;color:#e6e6e6;line-height:1.5;font-family:Operator Mono,Source Code Pro,Menlo,Monaco,Consolas,Courier New,monospace}.cm-s-panda-syntax .CodeMirror-cursor{border-color:#ff2c6d}.cm-s-panda-syntax .CodeMirror-activeline-background{background:rgba(99,123,156,.1)}.cm-s-panda-syntax .CodeMirror-selected{background:#fff}.cm-s-panda-syntax .cm-comment{font-style:italic;color:#676b79}.cm-s-panda-syntax .cm-operator{color:#f3f3f3}.cm-s-panda-syntax .cm-string{color:#19f9d8}.cm-s-panda-syntax .cm-string-2{color:#ffb86c}.cm-s-panda-syntax .cm-tag{color:#ff2c6d}.cm-s-panda-syntax .cm-meta{color:#b084eb}.cm-s-panda-syntax .cm-number{color:#ffb86c}.cm-s-panda-syntax .cm-atom{color:#ff2c6d}.cm-s-panda-syntax .cm-keyword{color:#ff75b5}.cm-s-panda-syntax .cm-variable{color:#ffb86c}.cm-s-panda-syntax .cm-type,.cm-s-panda-syntax .cm-variable-2,.cm-s-panda-syntax .cm-variable-3{color:#ff9ac1}.cm-s-panda-syntax .cm-def{color:#e6e6e6}.cm-s-panda-syntax .cm-property{color:#f3f3f3}.cm-s-panda-syntax .cm-attribute,.cm-s-panda-syntax .cm-unit{color:#ffb86c}.cm-s-panda-syntax .CodeMirror-matchingbracket{border-bottom:1px dotted #19f9d8;padding-bottom:2px;color:#e6e6e6}.cm-s-panda-syntax .CodeMirror-gutters{background:#292a2b;border-right-color:hsla(0,0%,100%,.1)}.cm-s-panda-syntax .CodeMirror-linenumber{color:#e6e6e6;opacity:.6}
|
css/min/editor-themes/yonce.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-yonce.CodeMirror{background:#1c1c1c;color:#d4d4d4}.cm-s-yonce div.CodeMirror-selected{background:rgba(252,69,133,.478)}.cm-s-yonce .CodeMirror-line::-moz-selection,.cm-s-yonce .CodeMirror-line::selection,.cm-s-yonce .CodeMirror-line>span::-moz-selection,.cm-s-yonce .CodeMirror-line>span::selection,.cm-s-yonce .CodeMirror-line>span>span::-moz-selection,.cm-s-yonce .CodeMirror-line>span>span::selection,.cm-s-yonce .CodeMirror-selected,.cm-s-yonce .CodeMirror-selectedtext{background:rgba(252,67,132,.47)}.cm-s-yonce.CodeMirror pre{padding-left:0}.cm-s-yonce .CodeMirror-gutters{background:#1c1c1c;border-right:0}.cm-s-yonce .CodeMirror-linenumber{padding-right:10px}.cm-s-yonce .CodeMirror-activeline .CodeMirror-linenumber.CodeMirror-gutter-elt{background:#1c1c1c;color:#fc4384}.cm-s-yonce .CodeMirror-linenumber{color:#777}.cm-s-yonce .CodeMirror-cursor{border-left:2px solid #fc4384}.cm-s-yonce .cm-searching{background:rgba(243,155,53,.3)!important;outline:1px solid #f39b35}.cm-s-yonce .cm-searching.CodeMirror-selectedtext{background:rgba(243,155,53,.7)!important;color:#fff}.cm-s-yonce .cm-keyword{color:#00a7aa}.cm-s-yonce .cm-atom{color:#f39b35}.cm-s-yonce .cm-number,.cm-s-yonce span.cm-type{color:#a06fca}.cm-s-yonce .cm-def{color:#98e342}.cm-s-yonce .cm-property,.cm-s-yonce span.cm-variable{color:#d4d4d4;font-style:italic}.cm-s-yonce span.cm-variable-2{color:#da7dae;font-style:italic}.cm-s-yonce span.cm-variable-3{color:#a06fca}.cm-s-yonce .cm-type.cm-def{text-decoration:underline}.cm-s-yonce .cm-callee,.cm-s-yonce .cm-property.cm-def,.cm-s-yonce .cm-type.cm-def{color:#fc4384;font-style:normal}.cm-s-yonce .cm-operator,.cm-s-yonce .cm-qualifier,.cm-s-yonce .cm-tag{color:#fc4384}.cm-s-yonce .cm-tag.cm-bracket{color:#d4d4d4}.cm-s-yonce .cm-attribute{color:#a06fca}.cm-s-yonce .cm-comment{color:#696d70;font-style:italic;font-weight:400}.cm-s-yonce .cm-comment.cm-tag{color:#fc4384}.cm-s-yonce .cm-comment.cm-attribute{color:#d4d4d4}.cm-s-yonce .cm-string{color:#e6db74}.cm-s-yonce .cm-string-2{color:#f39b35}.cm-s-yonce .cm-meta{color:#d4d4d4;background:inherit}.cm-s-yonce .cm-builtin{color:#fc4384}.cm-s-yonce .cm-header{color:#da7dae}.cm-s-yonce .cm-hr{color:#98e342}.cm-s-yonce .cm-link{color:#696d70;font-style:italic;text-decoration:none}.cm-s-yonce .cm-error{border-bottom:1px solid #c42412}.cm-s-yonce .CodeMirror-activeline-background{background:#272727}.cm-s-yonce .CodeMirror-matchingbracket{outline:1px solid grey;color:#d4d4d4!important}
|
css/min/editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.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:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;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,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-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:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.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-type,.cm-s-default .cm-variable-3{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,.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-invalidchar,.cm-s-default .cm-error{color:red}.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:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{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{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;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";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-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{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}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{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:none}.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:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid #000;border-radius:4px 4px 4px 4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")}.CodeMirror-lint-mark-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{padding-left:18px;background-position:0 0;background-repeat:no-repeat}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=")}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-multiple{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:100% 100%;width:100%;height:100%}.CodeMirror{border:1px solid #dfdfdf;border-radius:3px;background-color:#fff;height:auto!important}.CodeMirror-code{outline:none;direction:ltr;text-align:left}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:before{content:"<?php";color:#bbb;display:block;padding-bottom:6px}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{position:absolute;top:0}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;position:relative;top:-2px}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;left:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:3px 12px 3px 28px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{content:"\f534";color:#f6a306}.CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{content:"\f153";color:#dc3232}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:ltr}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}
|
1 |
+
.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.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:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;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,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-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:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.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-type,.cm-s-default .cm-variable-3{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,.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-invalidchar,.cm-s-default .cm-error{color:red}.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:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{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.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{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-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{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-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{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}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{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:none}.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:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid #000;border-radius:4px 4px 4px 4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")}.CodeMirror-lint-mark-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{padding-left:18px;background-position:0 0;background-repeat:no-repeat}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=")}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-multiple{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:100% 100%;width:100%;height:100%}.CodeMirror{border:1px solid #dfdfdf;border-radius:3px;background-color:#fff;height:auto!important}.CodeMirror-code{outline:none;direction:ltr;text-align:left}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:before{content:"<?php";color:#bbb;display:block;padding-bottom:6px}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{position:absolute;top:0}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;position:relative;top:-2px}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;left:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:3px 12px 3px 28px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{content:"\f534";color:#f6a306}.CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{content:"\f153";color:#dc3232}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:ltr}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}
|
css/min/front-end.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(90deg,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:#f5f2f0;font:700 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:after,.line-numbers .line-highlight:before{content:none}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}
|
1 |
+
code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:-webkit-gradient(linear,left top,right top,color-stop(70%,hsla(24,20%,50%,.1)),to(hsla(24,20%,50%,0)));background:linear-gradient(90deg,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:#f5f2f0;font:700 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:after,.line-numbers .line-highlight:before{content:none}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}
|
css/min/manage-rtl.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.column-name .dashicons{font-size:16px;width:16px;height:16px}.column-name .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;width:4em}.column-priority input:disabled{color:inherit}.snippets .row-actions,.snippets .snippet-name{margin-right:40px}.snippets .row-actions{position:relative;right:0}.snippet-activation-switch,.snippet-execution-button{position:absolute;display:inline-block}.snippet-activation-switch{margin-top:5px;width:30px;height:17px;border-radius:34px;background-color:#ccc}.snippet-activation-switch:before{transition:all .4s;content:"";height:13px;width:13px;display:inline-block;margin:
|
2 |
|
1 |
+
.column-name .dashicons{font-size:16px;width:16px;height:16px}.column-name .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;width:4em;text-align:center}.column-priority input:disabled{color:inherit}.snippets .row-actions,.snippets .snippet-name{margin-right:40px}.snippets .row-actions{position:relative;right:0}.snippet-activation-switch,.snippet-execution-button{position:absolute;display:inline-block}.snippet-activation-switch{margin-top:5px;width:30px;height:17px;border-radius:34px;background-color:#ccc}.snippet-activation-switch:before{-webkit-transition:all .4s;transition:all .4s;content:"";height:13px;width:13px;display:inline-block;margin:2px;background-color:#fff;border-radius:50%}.snippet-activation-switch:hover:before{-webkit-transform:translateX(-40%);transform:translateX(-40%)}.snippets .active-snippet .snippet-activation-switch{background-color:#2196f3}.snippets .active-snippet .snippet-activation-switch:before{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.snippets .active-snippet .snippet-activation-switch:hover:before{-webkit-transform:translateX(-60%);transform:translateX(-60%)}.snippets .erroneous-snippet .snippet-activation-switch:before{content:"!";-webkit-transform:translateX(-50%);transform:translateX(-50%);text-align:center;font-weight:700;line-height:1;color:#bbb}.snippet-execution-button{margin-right:10px;margin-top:9px;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-right:10px solid #ccc;-webkit-transition:all .3s;transition:all .3s}.snippet-execution-button:before{content:"";position:absolute;top:-14px;right:-21px;bottom:-14px;left:-8px;border-radius:50%;border:1.8px solid #ccc;z-index:2;-webkit-transition:all .3s;transition:all .3s}.snippet-execution-button:focus,.snippet-execution-button:hover{border-right-color:#579}.snippet-execution-button:focus:before,.snippet-execution-button:hover:before{-webkit-transform:scale(1.1);transform:scale(1.1);border-color:#579}.clear-filters{vertical-align:baseline!important}.snippets .badge{margin-right:4px;padding:3px 6px;text-decoration:none;border:none;border-radius:2px;background:#e0e0e0;font-size:smaller;line-height:1.2}.rtl .snippets .badge{float:right}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin:0 1.5em 1.5em 0}.snippets ul{list-style:disc}.snippets .row-actions{color:#ddd}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th{border-top:none!important}.snippets tfoot th.check-column{padding:13px 3px 0 0}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-right:5px}.snippets td.column-description{max-width:700px}.snippets .inactive-snippet a{color:#579}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{padding:10px 9px;border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.snippets .active-snippet td,.snippets .active-snippet th{background-color:rgba(120,200,230,.06)}.snippets .active-snippet th.check-column{border-right:2px solid #2ea2cc}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-bottom:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}@media screen and (max-width:782px){p.search-box{float:right;position:static;margin:0;height:auto}}
|
2 |
|
css/min/manage.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.column-name .dashicons{font-size:16px;width:16px;height:16px}.column-name .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;width:4em}.column-priority input:disabled{color:inherit}.snippets .row-actions,.snippets .snippet-name{margin-left:40px}.snippets .row-actions{position:relative;left:0}.snippet-activation-switch,.snippet-execution-button{position:absolute;display:inline-block}.snippet-activation-switch{margin-top:5px;width:30px;height:17px;border-radius:34px;background-color:#ccc}.snippet-activation-switch:before{transition:all .4s;content:"";height:13px;width:13px;display:inline-block;margin:
|
1 |
+
.column-name .dashicons{font-size:16px;width:16px;height:16px}.column-name .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;width:4em;text-align:center}.column-priority input:disabled{color:inherit}.snippets .row-actions,.snippets .snippet-name{margin-left:40px}.snippets .row-actions{position:relative;left:0}.snippet-activation-switch,.snippet-execution-button{position:absolute;display:inline-block}.snippet-activation-switch{margin-top:5px;width:30px;height:17px;border-radius:34px;background-color:#ccc}.snippet-activation-switch:before{-webkit-transition:all .4s;transition:all .4s;content:"";height:13px;width:13px;display:inline-block;margin:2px;background-color:#fff;border-radius:50%}.snippet-activation-switch:hover:before{-webkit-transform:translateX(40%);transform:translateX(40%)}.snippets .active-snippet .snippet-activation-switch{background-color:#2196f3}.snippets .active-snippet .snippet-activation-switch:before{-webkit-transform:translateX(100%);transform:translateX(100%)}.snippets .active-snippet .snippet-activation-switch:hover:before{-webkit-transform:translateX(60%);transform:translateX(60%)}.snippets .erroneous-snippet .snippet-activation-switch:before{content:"!";-webkit-transform:translateX(50%);transform:translateX(50%);text-align:center;font-weight:700;line-height:1;color:#bbb}.snippet-execution-button{margin-left:10px;margin-top:9px;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:10px solid #ccc;-webkit-transition:all .3s;transition:all .3s}.snippet-execution-button:before{content:"";position:absolute;top:-14px;left:-21px;bottom:-14px;right:-8px;border-radius:50%;border:1.8px solid #ccc;z-index:2;-webkit-transition:all .3s;transition:all .3s}.snippet-execution-button:focus,.snippet-execution-button:hover{border-left-color:#579}.snippet-execution-button:focus:before,.snippet-execution-button:hover:before{-webkit-transform:scale(1.1);transform:scale(1.1);border-color:#579}.clear-filters{vertical-align:baseline!important}.snippets .badge{margin-left:4px;padding:3px 6px;text-decoration:none;border:none;border-radius:2px;background:#e0e0e0;font-size:smaller;line-height:1.2}.rtl .snippets .badge{float:left}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin:0 0 1.5em 1.5em}.snippets ul{list-style:disc}.snippets .row-actions{color:#ddd}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th{border-top:none!important}.snippets tfoot th.check-column{padding:13px 0 0 3px}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-left:5px}.snippets td.column-description{max-width:700px}.snippets .inactive-snippet a{color:#579}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{padding:10px 9px;border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.snippets .active-snippet td,.snippets .active-snippet th{background-color:rgba(120,200,230,.06)}.snippets .active-snippet th.check-column{border-left:2px solid #2ea2cc}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-bottom:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}@media screen and (max-width:782px){p.search-box{float:left;position:static;margin:0;height:auto}}
|
js/min/edit.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function i(a,c,u){function d(t,e){if(!c[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(p)return p(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=c[t]={exports:{}};a[t][0].call(o.exports,function(e){return d(a[t][1][e]||e)},o,o.exports,i,a,c,u)}return c[t].exports}for(var p="function"==typeof require&&require,e=0;e<u.length;e++)d(u[e]);return d}({1:[function(e,t,r){"use strict";
|
1 |
+
!function i(a,c,u){function d(t,e){if(!c[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(p)return p(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=c[t]={exports:{}};a[t][0].call(o.exports,function(e){return d(a[t][1][e]||e)},o,o.exports,i,a,c,u)}return c[t].exports}for(var p="function"==typeof require&&require,e=0;e<u.length;e++)d(u[e]);return d}({1:[function(e,t,r){"use strict";function n(){return document.getElementById("save_snippet").click()}var o,i;window.code_snippets_editor=(o=window.Code_Snippets_CodeMirror,(i=code_snippets_editor_atts).extraKeys=window.navigator.platform.match("Mac")?{"Cmd-Enter":n,"Cmd-S":n}:{"Ctrl-Enter":n,"Ctrl-S":n},window.navigator.platform.match("Mac")&&(document.querySelector(".editor-help-text").className+=" platform-mac"),o.fromTextArea(document.getElementById("snippet_code"),i))},{}]},{},[1]);
|
js/min/editor.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function o(s,a,l){function c(e,t){if(!a[e]){if(!s[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(h)return h(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var n=a[e]={exports:{}};s[e][0].call(n.exports,function(t){return c(s[e][1][t]||t)},n,n.exports,o,s,a,l)}return a[e].exports}for(var h="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,i){"use strict";var r,n=(r=t("codemirror/lib/codemirror"))&&r.__esModule?r:{default:r};t("codemirror/mode/php/php"),t("codemirror/addon/edit/matchbrackets"),t("codemirror/addon/edit/closebrackets"),t("codemirror/addon/search/search"),t("codemirror/addon/search/match-highlighter"),t("./php-lint"),window.Code_Snippets_CodeMirror=n.default},{"./php-lint":2,"codemirror/addon/edit/closebrackets":4,"codemirror/addon/edit/matchbrackets":5,"codemirror/addon/search/match-highlighter":8,"codemirror/addon/search/search":10,"codemirror/lib/codemirror":12,"codemirror/mode/php/php":17}],2:[function(t,e,i){"use strict";var n=r(t("php-parser")),o=r(t("codemirror/lib/codemirror"));function r(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t("codemirror/addon/lint/lint");var a=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t,this.annotations=[],this.function_names=new Set,this.class_names=new Set}var t,i,r;return t=e,(i=[{key:"lint",value:function(){var t=new n.default({parser:{suppressErrors:!0},ast:{withPositions:!0}});try{var e=t.parseEval(this.code);if(e.errors&&0<e.errors.length)for(var i=0;i<e.errors.length;i++)this.annotate(e.errors[i].message,e.errors[i].loc);this.visit(e)}catch(t){this.annotate(t.message,t)}}},{key:"visit",value:function(t){if(t.hasOwnProperty("kind")&&this.validate(t),t.hasOwnProperty("children")){var e=!0,i=!1,r=void 0;try{for(var n,o=t.children[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var s=n.value;this.visit(s)}}catch(t){i=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw r}}}}},{key:"validate",value:function(t){"function"!==t.kind&&"class"!==t.kind||!t.hasOwnProperty("name")||"identifier"!==t.name.kind||("function"===t.kind?this.function_names.has(t.name.name)?this.annotate("Cannot redeclare function ".concat(t.name.name,"()"),t.name.loc):this.function_names.add(t.name.name):"class"===t.kind&&(this.class_names.has(t.name.name)?this.annotate("Cannot redeclare class ".concat(t.name.name),t.name.loc):this.class_names.add(t.name.name)))}},{key:"annotate",value:function(t,e,i){var r,n;e.lineNumber&&e.columnNumber?(r=o.default.Pos(e.lineNumber-1,e.columnNumber-1),n=o.default.Pos(e.lineNumber-1,e.columnNumber)):e.start&&e.end&&(e.end.offset<e.start.offset?(n=o.default.Pos(e.start.line-1,e.start.column),r=o.default.Pos(e.end.line-1,e.end.column)):(r=o.default.Pos(e.start.line-1,e.start.column),n=o.default.Pos(e.end.line-1,e.end.column))),r&&n&&(i=i||"error",this.annotations.push({message:t,severity:i,from:r,to:n}))}}])&&s(t.prototype,i),r&&s(t,r),e}();o.default.registerHelper("lint","php",function(t,e){var i=new a(t);return i.lint(),i.annotations})},{"codemirror/addon/lint/lint":6,"codemirror/lib/codemirror":12,"php-parser":19}],3:[function(t,e,i){var r;r=function(u){function f(t,e,i){var r,n=t.getWrapperElement();return(r=n.appendChild(document.createElement("div"))).className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof e?r.innerHTML=e:r.appendChild(e),u.addClass(n,"dialog-opened"),r}function d(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}u.defineExtension("openDialog",function(t,e,i){i||(i={}),d(this,null);var r=f(this,t,i.bottom),n=!1,o=this;function s(t){if("string"==typeof t)l.value=t;else{if(n)return;n=!0,u.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),o.focus(),i.onClose&&i.onClose(r)}}var a,l=r.getElementsByTagName("input")[0];return l?(l.focus(),i.value&&(l.value=i.value,!1!==i.selectValueOnOpen&&l.select()),i.onInput&&u.on(l,"input",function(t){i.onInput(t,l.value,s)}),i.onKeyUp&&u.on(l,"keyup",function(t){i.onKeyUp(t,l.value,s)}),u.on(l,"keydown",function(t){i&&i.onKeyDown&&i.onKeyDown(t,l.value,s)||((27==t.keyCode||!1!==i.closeOnEnter&&13==t.keyCode)&&(l.blur(),u.e_stop(t),s()),13==t.keyCode&&e(l.value,t))}),!1!==i.closeOnBlur&&u.on(l,"blur",s)):(a=r.getElementsByTagName("button")[0])&&(u.on(a,"click",function(){s(),o.focus()}),!1!==i.closeOnBlur&&u.on(a,"blur",s),a.focus()),s}),u.defineExtension("openConfirm",function(t,e,i){d(this,null);var r=f(this,t,i&&i.bottom),n=r.getElementsByTagName("button"),o=!1,s=this,a=1;function l(){o||(o=!0,u.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r),s.focus())}n[0].focus();for(var c=0;c<n.length;++c){var h=n[c];!function(e){u.on(h,"click",function(t){u.e_preventDefault(t),l(),e&&e(s)})}(e[c]),u.on(h,"blur",function(){--a,setTimeout(function(){a<=0&&l()},200)}),u.on(h,"focus",function(){++a})}}),u.defineExtension("openNotification",function(t,e){d(this,s);var i,r=f(this,t,e&&e.bottom),n=!1,o=e&&void 0!==e.duration?e.duration:5e3;function s(){n||(n=!0,clearTimeout(i),u.rmClass(r.parentNode,"dialog-opened"),r.parentNode.removeChild(r))}return u.on(r,"click",function(t){u.e_preventDefault(t),s()}),o&&(i=setTimeout(s,o)),s})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],4:[function(t,e,i){var r;r=function(T){var i={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},k=T.Pos;function b(t,e){return"pairs"==e&&"string"==typeof t?t:"object"==typeof t&&null!=t[e]?t[e]:i[e]}T.defineOption("autoCloseBrackets",!1,function(t,e,i){i&&i!=T.Init&&(t.removeKeyMap(n),t.state.closeBrackets=null),e&&(r(b(e,"pairs")),t.state.closeBrackets=e,t.addKeyMap(n))});var n={Backspace:function(t){var e=w(t);if(!e||t.getOption("disableInput"))return T.Pass;for(var i=b(e,"pairs"),r=t.listSelections(),n=0;n<r.length;n++){if(!r[n].empty())return T.Pass;var o=a(t,r[n].head);if(!o||i.indexOf(o)%2!=0)return T.Pass}for(var n=r.length-1;0<=n;n--){var s=r[n].head;t.replaceRange("",k(s.line,s.ch-1),k(s.line,s.ch+1),"+delete")}},Enter:function(r){var t=w(r),e=t&&b(t,"explode");if(!e||r.getOption("disableInput"))return T.Pass;for(var n=r.listSelections(),i=0;i<n.length;i++){if(!n[i].empty())return T.Pass;var o=a(r,n[i].head);if(!o||e.indexOf(o)%2!=0)return T.Pass}r.operation(function(){var t=r.lineSeparator()||"\n";r.replaceSelection(t+t,null),r.execCommand("goCharLeft"),n=r.listSelections();for(var e=0;e<n.length;e++){var i=n[e].head.line;r.indentLine(i,null,!0),r.indentLine(i+1,null,!0)}})}};function r(t){for(var e=0;e<t.length;e++){var i=t.charAt(e),r="'"+i+"'";n[r]||(n[r]=o(i))}}function o(e){return function(t){return function(n,t){var e=w(n);if(!e||n.getOption("disableInput"))return T.Pass;var i=b(e,"pairs"),r=i.indexOf(t);if(-1==r)return T.Pass;for(var o,s=b(e,"triples"),a=i.charAt(r+1)==t,l=n.listSelections(),c=r%2==0,h=0;h<l.length;h++){var u,f=l[h],d=f.head,p=n.getRange(d,k(d.line,d.ch+1));if(c&&!f.empty())u="surround";else if(!a&&c||p!=t)if(a&&1<d.ch&&0<=s.indexOf(t)&&n.getRange(k(d.line,d.ch-2),d)==t+t){if(2<d.ch&&/\bstring/.test(n.getTokenTypeAt(k(d.line,d.ch-2))))return T.Pass;u="addFour"}else if(a){var m=0==d.ch?" ":n.getRange(k(d.line,d.ch-1),d);if(T.isWordChar(p)||m==t||T.isWordChar(m))return T.Pass;u="both"}else{if(!c)return T.Pass;u="both"}else u=!a||(_=d,void 0,v=(g=n).getTokenAt(k(_.line,_.ch+1)),!/\bstring/.test(v.type)||v.start!=_.ch||0!=_.ch&&/\bstring/.test(g.getTokenTypeAt(_)))?0<=s.indexOf(t)&&n.getRange(d,k(d.line,d.ch+3))==t+t+t?"skipThree":"skip":"both";if(o){if(o!=u)return T.Pass}else o=u}var g,_,v;var y=r%2?i.charAt(r-1):t,x=r%2?t:i.charAt(r+1);n.operation(function(){if("skip"==o)n.execCommand("goCharRight");else if("skipThree"==o)for(var t=0;t<3;t++)n.execCommand("goCharRight");else if("surround"==o){for(var e=n.getSelections(),t=0;t<e.length;t++)e[t]=y+e[t]+x;n.replaceSelections(e,"around"),e=n.listSelections().slice();for(var t=0;t<e.length;t++)e[t]=(i=e[t],void 0,r=0<T.cmpPos(i.anchor,i.head),{anchor:new k(i.anchor.line,i.anchor.ch+(r?-1:1)),head:new k(i.head.line,i.head.ch+(r?1:-1))});n.setSelections(e)}else"both"==o?(n.replaceSelection(y+x,null),n.triggerElectric(y+x),n.execCommand("goCharLeft")):"addFour"==o&&(n.replaceSelection(y+y+y+y,"before"),n.execCommand("goCharRight"));var i,r})}(t,e)}}function w(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function a(t,e){var i=t.getRange(k(e.line,e.ch-1),k(e.line,e.ch+1));return 2==i.length?i:null}r(i.pairs+"`")},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],5:[function(t,e,i){var r;r=function(r){var h=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),m=r.Pos,g={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function _(t){return t&&t.bracketRegex||/[(){}[\]]/}function u(t,e,i){var r=t.getLineHandle(e.line),n=e.ch-1,o=i&&i.afterCursor;null==o&&(o=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var s=_(i),a=!o&&0<=n&&s.test(r.text.charAt(n))&&g[r.text.charAt(n)]||s.test(r.text.charAt(n+1))&&g[r.text.charAt(++n)];if(!a)return null;var l=">"==a.charAt(1)?1:-1;if(i&&i.strict&&0<l!=(n==e.ch))return null;var c=t.getTokenTypeAt(m(e.line,n+1)),h=f(t,m(e.line,n+(0<l?1:0)),l,c||null,i);return null==h?null:{from:m(e.line,n),to:h&&h.pos,match:h&&h.ch==a.charAt(0),forward:0<l}}function f(t,e,i,r,n){for(var o=n&&n.maxScanLineLength||1e4,s=n&&n.maxScanLines||1e3,a=[],l=_(n),c=0<i?Math.min(e.line+s,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-s),h=e.line;h!=c;h+=i){var u=t.getLine(h);if(u){var f=0<i?0:u.length-1,d=0<i?u.length:-1;if(!(u.length>o))for(h==e.line&&(f=e.ch-(i<0?1:0));f!=d;f+=i){var p=u.charAt(f);if(l.test(p)&&(void 0===r||t.getTokenTypeAt(m(h,f+1))==r))if(">"==g[p].charAt(1)==0<i)a.push(p);else{if(!a.length)return{pos:m(h,f),ch:p};a.pop()}}}}return h-i!=(0<i?t.lastLine():t.firstLine())&&null}function e(t,e,i){for(var r=t.state.matchBrackets.maxHighlightLineLength||1e3,n=[],o=t.listSelections(),s=0;s<o.length;s++){var a=o[s].empty()&&u(t,o[s].head,i);if(a&&t.getLine(a.from.line).length<=r){var l=a.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";n.push(t.markText(a.from,m(a.from.line,a.from.ch+1),{className:l})),a.to&&t.getLine(a.to.line).length<=r&&n.push(t.markText(a.to,m(a.to.line,a.to.ch+1),{className:l}))}}if(n.length){h&&t.state.focused&&t.focus();var c=function(){t.operation(function(){for(var t=0;t<n.length;t++)n[t].clear()})};if(!e)return c;setTimeout(c,800)}}function n(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=e(t,!1,t.state.matchBrackets)})}r.defineOption("matchBrackets",!1,function(t,e,i){i&&i!=r.Init&&(t.off("cursorActivity",n),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),e&&(t.state.matchBrackets="object"==typeof e?e:{},t.on("cursorActivity",n))}),r.defineExtension("matchBrackets",function(){e(this,!0)}),r.defineExtension("findMatchingBracket",function(t,e,i){return(i||"boolean"==typeof e)&&(e=i?(i.strict=e,i):e?{strict:!0}:null),u(this,t,e)}),r.defineExtension("scanForBracket",function(t,e,i,r){return f(this,t,e,i,r)})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],6:[function(t,e,i){var r;r=function(l){"use strict";var p="CodeMirror-lint-markers";function s(t){t.parentNode&&t.parentNode.removeChild(t)}function h(t,e,i){var r=function(t,e){var i=document.createElement("div");function r(t){if(!i.parentNode)return l.off(document,"mousemove",r);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip",i.appendChild(e.cloneNode(!0)),document.body.appendChild(i),l.on(document,"mousemove",r),r(t),null!=i.style.opacity&&(i.style.opacity=1),i}(t,e);function n(){var t;l.off(i,"mouseout",n),r&&((t=r).parentNode&&(null==t.style.opacity&&s(t),t.style.opacity=0,setTimeout(function(){s(t)},600)),r=null)}var o=setInterval(function(){if(r)for(var t=i;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){n();break}}if(!r)return clearInterval(o)},400);l.on(i,"mouseout",n)}function c(e,t,i){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=i,this.onMouseOver=function(t){!function(t,e){var i=e.target||e.srcElement;if(!/\bCodeMirror-lint-mark-/.test(i.className))return;for(var r=i.getBoundingClientRect(),n=(r.left+r.right)/2,o=(r.top+r.bottom)/2,s=t.findMarksAt(t.coordsChar({left:n,top:o},"client")),a=[],l=0;l<s.length;++l){var c=s[l].__annotation;c&&a.push(c)}a.length&&function(t,e){for(var i=e.target||e.srcElement,r=document.createDocumentFragment(),n=0;n<t.length;n++){var o=t[n];r.appendChild(_(o))}h(e,r,i)}(a,e)}(e,t)},this.waitingFor=0}function m(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(p);for(var i=0;i<e.marked.length;++i)e.marked[i].clear();e.marked.length=0}function g(e,t,i,r){var n=document.createElement("div"),o=n;return n.className="CodeMirror-lint-marker-"+t,i&&((o=n.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=r&&l.on(o,"mouseover",function(t){h(t,e,o)}),n}function _(t){var e=t.severity;e||(e="error");var i=document.createElement("div");return i.className="CodeMirror-lint-message-"+e,void 0!==t.messageHTML?i.innerHTML=t.messageHTML:i.appendChild(document.createTextNode(t.message)),i}function u(e){var t=e.state.lint.options,i=t.options||t,r=t.getAnnotations||e.getHelper(l.Pos(0,0),"lint");if(r)if(t.async||r.async)!function(i,t,e){var r=i.state.lint,n=++r.waitingFor;function o(){n=-1,i.off("change",o)}i.on("change",o),t(i.getValue(),function(t,e){i.off("change",o),r.waitingFor==n&&(e&&t instanceof l&&(t=e),i.operation(function(){a(i,t)}))},e,i)}(e,r,i);else{var n=r(e.getValue(),i,e);if(!n)return;n.then?n.then(function(t){e.operation(function(){a(e,t)})}):e.operation(function(){a(e,n)})}}function a(t,e){m(t);for(var i,r,n=t.state.lint,o=n.options,s=function(t){for(var e=[],i=0;i<t.length;++i){var r=t[i],n=r.from.line;(e[n]||(e[n]=[])).push(r)}return e}(e),a=0;a<s.length;++a){var l=s[a];if(l){for(var c=null,h=n.hasGutter&&document.createDocumentFragment(),u=0;u<l.length;++u){var f=l[u],d=f.severity;d||(d="error"),r=d,c="error"==(i=c)?i:r,o.formatAnnotation&&(f=o.formatAnnotation(f)),n.hasGutter&&h.appendChild(_(f)),f.to&&n.marked.push(t.markText(f.from,f.to,{className:"CodeMirror-lint-mark-"+d,__annotation:f}))}n.hasGutter&&t.setGutterMarker(a,p,g(h,c,1<l.length,n.options.tooltips))}}o.onUpdateLinting&&o.onUpdateLinting(e,s,t)}function f(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){u(t)},e.options.delay||500))}l.defineOption("lint",!1,function(t,e,i){if(i&&i!=l.Init&&(m(t),!1!==t.state.lint.options.lintOnChange&&t.off("change",f),l.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),e){for(var r=t.getOption("gutters"),n=!1,o=0;o<r.length;++o)r[o]==p&&(n=!0);var s=t.state.lint=new c(t,(a=e)instanceof Function?{getAnnotations:a}:(a&&!0!==a||(a={}),a),n);!1!==s.options.lintOnChange&&t.on("change",f),0!=s.options.tooltips&&"gutter"!=s.options.tooltips&&l.on(t.getWrapperElement(),"mouseover",s.onMouseOver),u(t)}var a}),l.defineExtension("performLint",function(){this.state.lint&&u(this)})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],7:[function(t,e,i){var r;r=function(t){"use strict";function e(t,e){function i(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout(function(){r.redraw()},t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.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;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout(function(){r.computeScale()&&i(20)},100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("change",this.changeHandler=function(){i(250)})}t.defineExtension("annotateScrollbar",function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)}),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var i=this.cm,e=this.hScale,r=document.createDocumentFragment(),n=this.annotations,o=i.getOption("lineWrapping"),s=o&&1.5*i.defaultTextHeight(),a=null,l=null;function c(t,e){return a!=t.line&&(a=t.line,l=i.getLineHandle(a)),l.widgets&&l.widgets.length||o&&l.height>s?i.charCoords(t,"local")[e?"top":"bottom"]:i.heightAtLine(l,"local")+(e?0:l.height)}var h=i.lastLine();if(i.display.barWidth)for(var u,f=0;f<n.length;f++){var d=n[f];if(!(d.to.line>h)){for(var p=u||c(d.from,!0)*e,m=c(d.to,!1)*e;f<n.length-1&&!(n[f+1].to.line>h)&&!(m+.9<(u=c(n[f+1].from,!0)*e));)m=c((d=n[++f]).to,!1)*e;if(m!=p){var g=Math.max(m-p,3),_=r.appendChild(document.createElement("div"));_.style.cssText="position: absolute; right: 0px; width: "+Math.max(i.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+g+"px",_.className=this.options.className,d.id&&_.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(r)},e.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)}},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],8:[function(t,e,i){var r;r=function(n){"use strict";var i={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function o(t){for(var e in this.options={},i)this.options[e]=(t&&t.hasOwnProperty(e)?t:i)[e];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function s(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&r(t,e)}function a(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,r(t,e))}function r(t,e){clearTimeout(e.timeout),e.timeout=setTimeout(function(){l(t)},e.options.delay)}function h(t,e,i,r){var n,o,s,a=t.state.matchHighlighter;if(t.addOverlay(a.overlay=(n=e,o=i,s=r,{token:function(t){if(t.match(n)&&(!o||(i=o,!((e=t).start&&i.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&i.test(e.string.charAt(e.pos))))))return s;var e,i;t.next(),t.skipTo(n.charAt(0))||t.skipToEnd()}})),a.options.annotateScrollbar&&t.showMatchesOnScrollbar){var l=i?new RegExp("\\b"+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+"\\b"):e;a.matchesonscroll=t.showMatchesOnScrollbar(l,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function u(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(c){c.operation(function(){var t=c.state.matchHighlighter;if(u(c),c.somethingSelected()||!t.options.showToken){var e=c.getCursor("from"),i=c.getCursor("to");if(e.line==i.line&&(!t.options.wordsOnly||function(t,e,i){{if(null===t.getRange(e,i).match(/^\w+$/))return!1;if(0<e.ch){var r={line:e.line,ch:e.ch-1},n=t.getRange(r,e);if(null===n.match(/\W/))return!1}if(i.ch<t.getLine(e.line).length){var r={line:i.line,ch:i.ch+1},n=t.getRange(i,r);if(null===n.match(/\W/))return!1}return!0}}(c,e,i))){var r=c.getRange(e,i);t.options.trim&&(r=r.replace(/^\s+|\s+$/g,"")),r.length>=t.options.minChars&&h(c,r,!1,t.options.style)}}else{for(var n=!0===t.options.showToken?/[\w$]/:t.options.showToken,o=c.getCursor(),s=c.getLine(o.line),a=o.ch,l=a;a&&n.test(s.charAt(a-1));)--a;for(;l<s.length&&n.test(s.charAt(l));)++l;a<l&&h(c,s.slice(a,l),n,t.options.style)}})}n.defineOption("highlightSelectionMatches",!1,function(t,e,i){if(i&&i!=n.Init&&(u(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",s),t.off("focus",a)),e){var r=t.state.matchHighlighter=new o(e);t.hasFocus()?(r.active=!0,l(t)):t.on("focus",a),t.on("cursorActivity",s)}})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror"),t("./matchesonscrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],r):r(CodeMirror)},{"../../lib/codemirror":12,"./matchesonscrollbar":9}],9:[function(t,e,i){var r;r=function(c){"use strict";function r(t,e,i,r){this.cm=t,this.options=r;var n={listenForChanges:!1};for(var o in r)n[o]=r[o];n.className||(n.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(n),this.query=e,this.caseFold=i,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;t.on("change",this.changeHandler=function(t,e){s.onChange(e)})}c.defineExtension("showMatchesOnScrollbar",function(t,e,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new r(this,t,e,i)});function h(t,e,i){return t<=e?t:Math.max(e,t+i)}r.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){if((r=this.matches[t]).from.line>=this.gap.to)break;r.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var e=this.cm.getSearchCursor(this.query,c.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;e.findNext();){var r;if((r={from:e.from(),to:e.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,r),this.matches.length>i)break}this.gap=null}},r.prototype.onChange=function(t){var e=t.from.line,i=c.changeEnd(t).line,r=i-t.to.line;if(this.gap?(this.gap.from=Math.min(h(this.gap.from,e,r),t.from.line),this.gap.to=Math.max(h(this.gap.to,e,r),t.from.line)):this.gap={from:t.from.line,to:i+1},r)for(var n=0;n<this.matches.length;n++){var o=this.matches[n],s=h(o.from.line,e,r);s!=o.from.line&&(o.from=c.Pos(s,o.from.ch));var a=h(o.to.line,e,r);a!=o.to.line&&(o.to=c.Pos(a,o.to.ch))}clearTimeout(this.update);var l=this;this.update=setTimeout(function(){l.updateAfterChange()},250)},r.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},r.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror"),t("./searchcursor"),t("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],r):r(CodeMirror)},{"../../lib/codemirror":12,"../scroll/annotatescrollbar":7,"./searchcursor":11}],10:[function(t,e,i){var r;r=function(d){"use strict";function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function p(t){return t.state.search||(t.state.search=new e)}function o(t){return"string"==typeof t&&t==t.toLowerCase()}function m(t,e,i){return t.getSearchCursor(e,i,{caseFold:o(e),multiline:!0})}function g(t,e,i,r,n){t.openDialog?t.openDialog(e,n,{value:r,selectValueOnOpen:!0}):n(prompt(i,r))}function r(t){return t.replace(/\\(.)/g,function(t,e){return"n"==e?"\n":"r"==e?"\r":e})}function s(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=r(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function _(t,e,i){var r,n;e.queryText=i,e.query=s(i),t.removeOverlay(e.overlay,o(e.query)),e.overlay=(r=e.query,n=o(e.query),"string"==typeof r?r=new RegExp(r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):r.global||(r=new RegExp(r.source,r.ignoreCase?"gi":"g")),{token:function(t){r.lastIndex=t.pos;var e=r.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,o(e.query)))}function i(o,e,t,i){var r=p(o);if(r.query)return v(o,e);var n,s,a,l,c,h=o.getSelection()||r.lastQuery;if(h instanceof RegExp&&"x^"==h.source&&(h=null),t&&o.openDialog){var u=null,f=function(t,e){d.e_stop(e),t&&(t!=r.queryText&&(_(o,r,t),r.posFrom=r.posTo=o.getCursor()),u&&(u.style.opacity=1),v(o,e.shiftKey,function(t,e){var i;e.line<3&&document.querySelector&&(i=o.display.wrapper.querySelector(".CodeMirror-dialog"))&&i.getBoundingClientRect().bottom-4>o.cursorCoords(e,"window").top&&((u=i).style.opacity=.4)}))};s=x(n=o),a=h,l=f,c=function(t,e){var i=d.keyName(t),r=o.getOption("extraKeys"),n=r&&r[i]||d.keyMap[o.getOption("keyMap")][i];"findNext"==n||"findPrev"==n||"findPersistentNext"==n||"findPersistentPrev"==n?(d.e_stop(t),_(o,p(o),e),o.execCommand(n)):"find"!=n&&"findPersistent"!=n||(d.e_stop(t),f(e,t))},n.openDialog(s,l,{value:a,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){y(n)},onKeyDown:c}),i&&h&&(_(o,r,h),v(o,e))}else g(o,x(o),"Search for:",h,function(t){t&&!r.query&&o.operation(function(){_(o,r,t),r.posFrom=r.posTo=o.getCursor(),v(o,e)})})}function v(i,r,n){i.operation(function(){var t=p(i),e=m(i,t.query,r?t.posFrom:t.posTo);(e.find(r)||(e=m(i,t.query,r?d.Pos(i.lastLine()):d.Pos(i.firstLine(),0))).find(r))&&(i.setSelection(e.from(),e.to()),i.scrollIntoView({from:e.from(),to:e.to()},20),t.posFrom=e.from(),t.posTo=e.to(),n&&n(e.from(),e.to()))})}function y(e){e.operation(function(){var t=p(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function x(t){return'<span class="CodeMirror-search-label">'+t.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+t.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function T(e,r,n){e.operation(function(){for(var t=m(e,r);t.findNext();)if("string"!=typeof r){var i=e.getRange(t.from(),t.to()).match(r);t.replace(n.replace(/\$(\d)/g,function(t,e){return i[e]}))}else t.replace(n)})}function n(f,t){if(!f.getOption("readOnly")){var e=f.getSelection()||p(f).lastQuery,i='<span class="CodeMirror-search-label">'+(t?f.phrase("Replace all:"):f.phrase("Replace:"))+"</span>";g(f,i+(' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+f.phrase("(Use /re/ syntax for regexp search)")+"</span>"),i,e,function(u){u&&(u=s(u),g(f,'<span class="CodeMirror-search-label">'+f.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',f.phrase("Replace with:"),"",function(a){if(a=r(a),t)T(f,u,a);else{y(f);var l=m(f,u,f.getCursor("from")),c=function(){var t,e,i,r,n,o,s=l.from();!(t=l.findNext())&&(l=m(f,u),!(t=l.findNext())||s&&l.from().line==s.line&&l.from().ch==s.ch)||(f.setSelection(l.from(),l.to()),f.scrollIntoView({from:l.from(),to:l.to()}),i='<span class="CodeMirror-search-label">'+(o=e=f).phrase("Replace?")+"</span> <button>"+o.phrase("Yes")+"</button> <button>"+o.phrase("No")+"</button> <button>"+o.phrase("All")+"</button> <button>"+o.phrase("Stop")+"</button> ",r=f.phrase("Replace?"),n=[function(){h(t)},c,function(){T(f,u,a)}],e.openConfirm?e.openConfirm(i,n):confirm(r)&&n[0]())},h=function(i){l.replace("string"==typeof u?a:a.replace(/\$(\d)/g,function(t,e){return i[e]})),c()};c()}}))})}}d.commands.find=function(t){y(t),i(t)},d.commands.findPersistent=function(t){y(t),i(t,!1,!0)},d.commands.findPersistentNext=function(t){i(t,!1,!0,!0)},d.commands.findPersistentPrev=function(t){i(t,!0,!0,!0)},d.commands.findNext=i,d.commands.findPrev=function(t){i(t,!0)},d.commands.clearSearch=y,d.commands.replace=n,d.commands.replaceAll=function(t){n(t,!0)}},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror"),t("./searchcursor"),t("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],r):r(CodeMirror)},{"../../lib/codemirror":12,"../dialog/dialog":3,"./searchcursor":11}],11:[function(t,e,i){var r;r=function(n){"use strict";var _,v,y=n.Pos;function p(t,e){for(var i,r,n=null!=(r=(i=t).flags)?r:(i.ignoreCase?"i":"")+(i.global?"g":"")+(i.multiline?"m":""),o=n,s=0;s<e.length;s++)-1==o.indexOf(e.charAt(s))&&(o+=e.charAt(s));return n==o?t:new RegExp(t.source,o)}function m(t,e,i){e=p(e,"g");for(var r=i.line,n=i.ch,o=t.lastLine();r<=o;r++,n=0){e.lastIndex=n;var s=t.getLine(r),a=e.exec(s);if(a)return{from:y(r,a.index),to:y(r,a.index+a[0].length),match:a}}}function g(t,e){for(var i,r=0;;){e.lastIndex=r;var n=e.exec(t);if(!n)return i;if((r=(i=n).index+(i[0].length||1))==t.length)return i}}function x(t,e,i,r){if(t.length==e.length)return i;for(var n=0,o=i+Math.max(0,t.length-e.length);;){if(n==o)return n;var s=n+o>>1,a=r(t.slice(0,s)).length;if(a==i)return s;i<a?o=s:n=s+1}}function r(i,r,t,e){var n;this.atOccurrence=!1,this.doc=i,t=t?i.clipPos(t):y(0,0),this.pos={from:t,to:t},"object"==typeof e?n=e.caseFold:(n=e,e=null),"string"==typeof r?(null==n&&(n=!1),this.matches=function(t,e){return(t?function(t,e,i,r){if(!e.length)return null;var n=r?_:v,o=n(e).split(/\r|\n\r?/);t:for(var s=i.line,a=i.ch,l=t.firstLine()-1+o.length;l<=s;s--,a=-1){var c=t.getLine(s);-1<a&&(c=c.slice(0,a));var h=n(c);if(1==o.length){var u=h.lastIndexOf(o[0]);if(-1==u)continue t;return{from:y(s,x(c,h,u,n)),to:y(s,x(c,h,u+o[0].length,n))}}var f=o[o.length-1];if(h.slice(0,f.length)==f){var d=1;for(i=s-o.length+1;d<o.length-1;d++)if(n(t.getLine(i+d))!=o[d])continue t;var p=t.getLine(s+1-o.length),m=n(p);if(m.slice(m.length-o[0].length)==o[0])return{from:y(s+1-o.length,x(p,m,p.length-o[0].length,n)),to:y(s,x(c,h,f.length,n))}}}}:function(t,e,i,r){if(!e.length)return null;var n=r?_:v,o=n(e).split(/\r|\n\r?/);t:for(var s=i.line,a=i.ch,l=t.lastLine()+1-o.length;s<=l;s++,a=0){var c=t.getLine(s).slice(a),h=n(c);if(1==o.length){var u=h.indexOf(o[0]);if(-1==u)continue t;return i=x(c,h,u,n)+a,{from:y(s,x(c,h,u,n)+a),to:y(s,x(c,h,u+o[0].length,n)+a)}}var f=h.length-o[0].length;if(h.slice(f)==o[0]){for(var d=1;d<o.length-1;d++)if(n(t.getLine(s+d))!=o[d])continue t;var p=t.getLine(s+o.length-1),m=n(p),g=o[o.length-1];if(m.slice(0,g.length)==g)return{from:y(s,x(c,h,f,n)+a),to:y(s+o.length-1,x(p,m,g.length,n))}}}})(i,r,e,n)}):(r=p(r,"gm"),e&&!1===e.multiline?this.matches=function(t,e){return(t?function(t,e,i){e=p(e,"g");for(var r=i.line,n=i.ch,o=t.firstLine();o<=r;r--,n=-1){var s=t.getLine(r);-1<n&&(s=s.slice(0,n));var a=g(s,e);if(a)return{from:y(r,a.index),to:y(r,a.index+a[0].length),match:a}}}:m)(i,r,e)}:this.matches=function(t,e){return(t?function(t,e,i){e=p(e,"gm");for(var r,n=1,o=i.line,s=t.firstLine();s<=o;){for(var a=0;a<n;a++){var l=t.getLine(o--);r=null==r?l.slice(0,i.ch):l+"\n"+r}n*=2;var c=g(r,e);if(c){var h=r.slice(0,c.index).split("\n"),u=c[0].split("\n"),f=o+h.length,d=h[h.length-1].length;return{from:y(f,d),to:y(f+u.length-1,1==u.length?d+u[0].length:u[u.length-1].length),match:c}}}}:function(t,e,i){if(!/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source))return m(t,e,i);e=p(e,"gm");for(var r,n=1,o=i.line,s=t.lastLine();o<=s;){for(var a=0;a<n&&!(s<o);a++){var l=t.getLine(o++);r=null==r?l:r+"\n"+l}n*=2,e.lastIndex=i.ch;var c=e.exec(r);if(c){var h=r.slice(0,c.index).split("\n"),u=c[0].split("\n"),f=i.line+h.length-1,d=h[h.length-1].length;return{from:y(f,d),to:y(f+u.length-1,1==u.length?d+u[0].length:u[u.length-1].length),match:c}}}})(i,r,e)})}v=String.prototype.normalize?(_=function(t){return t.normalize("NFD").toLowerCase()},function(t){return t.normalize("NFD")}):(_=function(t){return t.toLowerCase()},function(t){return t}),r.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=y(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(y(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=y(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,y(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var i=y(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,e){if(this.atOccurrence){var i=n.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,e),this.pos.to=y(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(t,e,i){return new r(this.doc,t,e,i)}),n.defineDocExtension("getSearchCursor",function(t,e,i){return new r(this,t,e,i)}),n.defineExtension("selectMatches",function(t,e){for(var i=[],r=this.getSearchCursor(t,this.getCursor("from"),e);r.findNext()&&!(0<n.cmpPos(r.to(),this.getCursor("to")));)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],12:[function(t,e,i){var r,n;r=this,n=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,m=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),n=/Edge\/(\d+)/.exec(t),T=i||r||n,k=T&&(i?document.documentMode||6:+(n||r)[1]),y=!n&&/WebKit\//.test(t),o=y&&/Qt\/\d+\.\d+/.test(t),s=!n&&/Chrome\//.test(t),g=/Opera\//.test(t),l=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),c=/PhantomJS/.test(t),h=!n&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),u=/Android/.test(t),f=h||u||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),x=h||/Mac/.test(e),d=/\bCrOS\b/.test(t),p=/win/i.test(e),_=g&&t.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&15<=_&&(y=!(g=!1));var v=x&&(o||g&&(null==_||_<12.11)),b=m||T&&9<=k;function w(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var E,C=function(t,e){var i=t.className,r=w(e).exec(i);if(r){var n=i.slice(r.index+r[0].length);t.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function S(t){for(var e=t.childNodes.length;0<e;--e)t.removeChild(t.firstChild);return t}function A(t,e){return S(t).appendChild(e)}function N(t,e,i,r){var n=document.createElement(t);if(i&&(n.className=i),r&&(n.style.cssText=r),"string"==typeof e)n.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)n.appendChild(e[o]);return n}function L(t,e,i,r){var n=N(t,e,i,r);return n.setAttribute("role","presentation"),n}function O(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function R(t,e){var i=t.className;w(e).test(i)||(t.className+=(i?" ":"")+e)}function M(t,e){for(var i=t.split(" "),r=0;r<i.length;r++)i[r]&&!w(i[r]).test(e)&&(e+=" "+i[r]);return e}E=document.createRange?function(t,e,i,r){var n=document.createRange();return n.setEnd(r||t,i),n.setStart(t,e),n}:function(t,e,i){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",e),r};var D=function(t){t.select()};function P(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function B(t,e,i){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===i&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function F(t,e,i,r,n){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=r||0,s=n||0;;){var a=t.indexOf("\t",o);if(a<0||e<=a)return s+(e-o);s+=a-o,s+=i-s%i,o=a+1}}h?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:T&&(D=function(t){try{t.select()}catch(t){}});var U=function(){this.id=null};function H(t,e){for(var i=0;i<t.length;++i)if(t[i]==e)return i;return-1}U.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var W=30,z={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},G={origin:"*mouse"},j={origin:"+move"};function V(t,e,i){for(var r=0,n=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var s=o-r;if(o==t.length||e<=n+s)return r+Math.min(s,e-n);if(n+=o-r,r=o+1,e<=(n+=i-n%i))return r}}var Y=[""];function K(t){for(;Y.length<=t;)Y.push($(Y)+" ");return Y[t]}function $(t){return t[t.length-1]}function Q(t,e){for(var i=[],r=0;r<t.length;r++)i[r]=e(t[r],r);return i}function X(){}function J(t,e){var i;return i=Object.create?Object.create(t):(X.prototype=t,new X),e&&B(e,i),i}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(t){return/\w/.test(t)||""<t&&(t.toUpperCase()!=t.toLowerCase()||Z.test(t))}function et(t,e){return e?!!(-1<e.source.indexOf("\\w")&&tt(t))||e.test(t):tt(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\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 nt(t){return 768<=t.charCodeAt(0)&&rt.test(t)}function ot(t,e,i){for(;(i<0?0<e:e<t.length)&&nt(t.charAt(e));)e+=i;return e}function st(t,e,i){for(var r=i<e?-1:1;;){if(e==i)return e;var n=(e+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==e)return t(o)?e:i;t(o)?i=o:e=o+r}}function at(t,e,i){var r=this;this.input=i,r.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=L("div",null,"CodeMirror-code"),r.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=N("div",null,"CodeMirror-cursors"),r.measure=N("div",null,"CodeMirror-measure"),r.lineMeasure=N("div",null,"CodeMirror-measure"),r.lineSpace=L("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var n=L("div",[r.lineSpace],"CodeMirror-lines");r.mover=N("div",[n],null,"position: relative"),r.sizer=N("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=N("div",null,null,"position: absolute; height: "+W+"px; width: 1px;"),r.gutters=N("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=N("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=N("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),T&&k<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),y||m&&f||(r.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(r.wrapper):t(r.wrapper)),r.viewFrom=r.viewTo=e.first,r.reportedViewFrom=r.reportedViewTo=e.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,i.init(r)}function lt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var i=t;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(e<o){i=n;break}e-=o}return i.lines[e]}function ct(t,i,r){var n=[],o=i.line;return t.iter(i.line,r.line+1,function(t){var e=t.text;o==r.line&&(e=e.slice(0,r.ch)),o==i.line&&(e=e.slice(i.ch)),n.push(e),++o}),n}function ht(t,e,i){var r=[];return t.iter(e,i,function(t){r.push(t.text)}),r}function ut(t,e){var i=e-t.height;if(i)for(var r=t;r;r=r.parent)r.height+=i}function ft(t){if(null==t.parent)return null;for(var e=t.parent,i=H(e.lines,t),r=e.parent;r;r=(e=r).parent)for(var n=0;r.children[n]!=e;++n)i+=r.children[n].chunkSize();return i+e.first}function dt(t,e){var i=t.first;t:do{for(var r=0;r<t.children.length;++r){var n=t.children[r],o=n.height;if(e<o){t=n;continue t}e-=o,i+=n.chunkSize()}return i}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(e<a)break;e-=a}return i+s}function pt(t,e){return e>=t.first&&e<t.first+t.size}function mt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function gt(t,e,i){if(void 0===i&&(i=null),!(this instanceof gt))return new gt(t,e,i);this.line=t,this.ch=e,this.sticky=i}function _t(t,e){return t.line-e.line||t.ch-e.ch}function vt(t,e){return t.sticky==e.sticky&&0==_t(t,e)}function yt(t){return gt(t.line,t.ch)}function xt(t,e){return _t(t,e)<0?e:t}function Tt(t,e){return _t(t,e)<0?t:e}function kt(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function bt(t,e){if(e.line<t.first)return gt(t.first,0);var i,r,n,o=t.first+t.size-1;return e.line>o?gt(o,lt(t,o).text.length):(r=lt(t,(i=e).line).text.length,null==(n=i.ch)||r<n?gt(i.line,r):n<0?gt(i.line,0):i)}function wt(t,e){for(var i=[],r=0;r<e.length;r++)i[r]=bt(t,e[r]);return i}var Et=!1,Ct=!1;function St(t,e,i){this.marker=t,this.from=e,this.to=i}function At(t,e){if(t)for(var i=0;i<t.length;++i){var r=t[i];if(r.marker==e)return r}}function Lt(t,e){for(var i,r=0;r<t.length;++r)t[r]!=e&&(i||(i=[])).push(t[r]);return i}function Nt(t,e){if(e.full)return null;var i=pt(t,e.from.line)&<(t,e.from.line).markedSpans,r=pt(t,e.to.line)&<(t,e.to.line).markedSpans;if(!i&&!r)return null;var n=e.from.ch,o=e.to.ch,s=0==_t(e.from,e.to),a=function(t,e,i){var r;if(t)for(var n=0;n<t.length;++n){var o=t[n],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==s.type&&(!i||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(r||(r=[])).push(new St(s,o.from,a?null:o.to))}}return r}(i,n,s),l=function(t,e,i){var r;if(t)for(var n=0;n<t.length;++n){var o=t[n],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!i||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(r||(r=[])).push(new St(s,a?null:o.from-e,null==o.to?null:o.to-e))}}return r}(r,o,s),c=1==e.text.length,h=$(e.text).length+(c?n:0);if(a)for(var u=0;u<a.length;++u){var f=a[u];if(null==f.to){var d=At(l,f.marker);d?c&&(f.to=null==d.to?null:d.to+h):f.to=n}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=h),null==m.from)At(a,m.marker)||(m.from=h,c&&(a||(a=[])).push(m));else m.from+=h,c&&(a||(a=[])).push(m)}a&&(a=Ot(a)),l&&l!=a&&(l=Ot(l));var g=[a];if(!c){var _,v=e.text.length-2;if(0<v&&a)for(var y=0;y<a.length;++y)null==a[y].to&&(_||(_=[])).push(new St(a[y].marker,null,null));for(var x=0;x<v;++x)g.push(_);g.push(l)}return g}function Ot(t){for(var e=0;e<t.length;++e){var i=t[e];null!=i.from&&i.from==i.to&&!1!==i.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function It(t){var e=t.markedSpans;if(e){for(var i=0;i<e.length;++i)e[i].marker.detachLine(t);t.markedSpans=null}}function Rt(t,e){if(e){for(var i=0;i<e.length;++i)e[i].marker.attachLine(t);t.markedSpans=e}}function Mt(t){return t.inclusiveLeft?-1:0}function Dt(t){return t.inclusiveRight?1:0}function Pt(t,e){var i=t.lines.length-e.lines.length;if(0!=i)return i;var r=t.find(),n=e.find(),o=_t(r.from,n.from)||Mt(t)-Mt(e);if(o)return-o;var s=_t(r.to,n.to)||Dt(t)-Dt(e);return s||e.id-t.id}function Bt(t,e){var i,r=Ct&&t.markedSpans;if(r)for(var n=void 0,o=0;o<r.length;++o)(n=r[o]).marker.collapsed&&null==(e?n.from:n.to)&&(!i||Pt(i,n.marker)<0)&&(i=n.marker);return i}function Ft(t){return Bt(t,!0)}function Ut(t){return Bt(t,!1)}function Ht(t,e){var i,r=Ct&&t.markedSpans;if(r)for(var n=0;n<r.length;++n){var o=r[n];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!i||Pt(i,o.marker)<0)&&(i=o.marker)}return i}function Wt(t,e,i,r,n){var o=lt(t,e),s=Ct&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var c=l.marker.find(0),h=_t(c.from,i)||Mt(l.marker)-Mt(n),u=_t(c.to,r)||Dt(l.marker)-Dt(n);if(!(0<=h&&u<=0||h<=0&&0<=u)&&(h<=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?0<=_t(c.to,i):0<_t(c.to,i))||0<=h&&(l.marker.inclusiveRight&&n.inclusiveLeft?_t(c.from,r)<=0:_t(c.from,r)<0)))return!0}}}function zt(t){for(var e;e=Ft(t);)t=e.find(-1,!0).line;return t}function qt(t,e){var i=lt(t,e),r=zt(i);return i==r?e:ft(r)}function Gt(t,e){if(e>t.lastLine())return e;var i,r=lt(t,e);if(!jt(t,r))return e;for(;i=Ut(r);)r=i.find(1,!0).line;return ft(r)+1}function jt(t,e){var i=Ct&&e.markedSpans;if(i)for(var r=void 0,n=0;n<i.length;++n)if((r=i[n]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Vt(t,e,r))return!0}}function Vt(t,e,i){if(null==i.to){var r=i.marker.find(1,!0);return Vt(t,r.line,At(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==e.text.length)return!0;for(var n=void 0,o=0;o<e.markedSpans.length;++o)if((n=e.markedSpans[o]).marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(null==n.to||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Vt(t,e,n))return!0}function Yt(t){for(var e=0,i=(t=zt(t)).parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==t)break;e+=n.height}for(var o=i.parent;o;o=(i=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==i)break;e+=a.height}return e}function Kt(t){if(0==t.height)return 0;for(var e,i=t.text.length,r=t;e=Ft(r);){var n=e.find(0,!0);r=n.from.line,i+=n.from.ch-n.to.ch}for(r=t;e=Ut(r);){var o=e.find(0,!0);i-=r.text.length-o.from.ch,i+=(r=o.to.line).text.length-o.to.ch}return i}function $t(t){var i=t.display,e=t.doc;i.maxLine=lt(e,e.first),i.maxLineLength=Kt(i.maxLine),i.maxLineChanged=!0,e.iter(function(t){var e=Kt(t);e>i.maxLineLength&&(i.maxLineLength=e,i.maxLine=t)})}var Qt=null;function Xt(t,e,i){var r;Qt=null;for(var n=0;n<t.length;++n){var o=t[n];if(o.from<e&&o.to>e)return n;o.to==e&&(o.from!=o.to&&"before"==i?r=n:Qt=n),o.from==e&&(o.from!=o.to&&"before"!=i?r=n:Qt=n)}return null!=r?r:Qt}var Jt=function(){var B="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",F="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var U=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,H=/[stwN]/,W=/[LRr]/,z=/[Lb1n]/,q=/[1n]/;function G(t,e,i){this.level=t,this.from=e,this.to=i}return function(t,e){var i="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!U.test(t))return!1;for(var r,n=t.length,o=[],s=0;s<n;++s)o.push((r=t.charCodeAt(s))<=247?B.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?F.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L");for(var a=0,l=i;a<n;++a){var c=o[a];"m"==c?o[a]=l:l=c}for(var h=0,u=i;h<n;++h){var f=o[h];"1"==f&&"r"==u?o[h]="n":W.test(f)&&"r"==(u=f)&&(o[h]="R")}for(var d=1,p=o[0];d<n-1;++d){var m=o[d];"+"==m&&"1"==p&&"1"==o[d+1]?o[d]="1":","!=m||p!=o[d+1]||"1"!=p&&"n"!=p||(o[d]=p),p=m}for(var g=0;g<n;++g){var _=o[g];if(","==_)o[g]="N";else if("%"==_){var v=void 0;for(v=g+1;v<n&&"%"==o[v];++v);for(var y=g&&"!"==o[g-1]||v<n&&"1"==o[v]?"1":"N",x=g;x<v;++x)o[x]=y;g=v-1}}for(var T=0,k=i;T<n;++T){var b=o[T];"L"==k&&"1"==b?o[T]="L":W.test(b)&&(k=b)}for(var w=0;w<n;++w)if(H.test(o[w])){var E=void 0;for(E=w+1;E<n&&H.test(o[E]);++E);for(var C="L"==(w?o[w-1]:i),S=C==("L"==(E<n?o[E]:i))?C?"L":"R":i,A=w;A<E;++A)o[A]=S;w=E-1}for(var L,N=[],O=0;O<n;)if(z.test(o[O])){var I=O;for(++O;O<n&&z.test(o[O]);++O);N.push(new G(0,I,O))}else{var R=O,M=N.length;for(++O;O<n&&"L"!=o[O];++O);for(var D=R;D<O;)if(q.test(o[D])){R<D&&N.splice(M,0,new G(1,R,D));var P=D;for(++D;D<O&&q.test(o[D]);++D);N.splice(M,0,new G(2,P,D)),R=D}else++D;R<O&&N.splice(M,0,new G(1,R,O))}return"ltr"==e&&(1==N[0].level&&(L=t.match(/^\s+/))&&(N[0].from=L[0].length,N.unshift(new G(0,0,L[0].length))),1==$(N).level&&(L=t.match(/\s+$/))&&($(N).to-=L[0].length,N.push(new G(0,n-L[0].length,n)))),"rtl"==e?N.reverse():N}}();function Zt(t,e){var i=t.order;return null==i&&(i=t.order=Jt(t.text,e)),i}var te=[],ee=function(t,e,i){if(t.addEventListener)t.addEventListener(e,i,!1);else if(t.attachEvent)t.attachEvent("on"+e,i);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||te).concat(i)}};function ie(t,e){return t._handlers&&t._handlers[e]||te}function re(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i,!1);else if(t.detachEvent)t.detachEvent("on"+e,i);else{var r=t._handlers,n=r&&r[e];if(n){var o=H(n,i);-1<o&&(r[e]=n.slice(0,o).concat(n.slice(o+1)))}}}function ne(t,e){var i=ie(t,e);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function oe(t,e,i){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),ne(t,i||e.type,t,e),ue(e)||e.codemirrorIgnore}function se(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var i=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==H(i,e[r])&&i.push(e[r])}function ae(t,e){return 0<ie(t,e).length}function le(t){t.prototype.on=function(t,e){ee(this,t,e)},t.prototype.off=function(t,e){re(this,t,e)}}function ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function he(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ue(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function fe(t){ce(t),he(t)}function de(t){return t.target||t.srcElement}function pe(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),x&&t.ctrlKey&&1==e&&(e=3),e}var me,ge,_e=function(){if(T&&k<9)return!1;var t=N("div");return"draggable"in t||"dragDrop"in t}();function ve(t){if(null==me){var e=N("span","");A(t,N("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(me=e.offsetWidth<=1&&2<e.offsetHeight&&!(T&&k<8))}var i=me?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function ye(t){if(null!=ge)return ge;var e=A(t,document.createTextNode("AخA")),i=E(e,0,1).getBoundingClientRect(),r=E(e,1,2).getBoundingClientRect();return S(t),!(!i||i.left==i.right)&&(ge=r.right-i.right<3)}var xe,Te=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,i=[],r=t.length;e<=r;){var n=t.indexOf("\n",e);-1==n&&(n=t.length);var o=t.slice(e,"\r"==t.charAt(n-1)?n-1:n),s=o.indexOf("\r");-1!=s?(i.push(o.slice(0,s)),e+=s+1):(i.push(o),e=n+1)}return i}:function(t){return t.split(/\r\n?|\n/)},ke=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},be="oncopy"in(xe=N("div"))||(xe.setAttribute("oncopy","return;"),"function"==typeof xe.oncopy),we=null;var Ee={},Ce={};function Se(t){if("string"==typeof t&&Ce.hasOwnProperty(t))t=Ce[t];else if(t&&"string"==typeof t.name&&Ce.hasOwnProperty(t.name)){var e=Ce[t.name];"string"==typeof e&&(e={name:e}),(t=J(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Se("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Se("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ae(t,e){e=Se(e);var i=Ee[e.name];if(!i)return Ae(t,"text/plain");var r=i(t,e);if(Le.hasOwnProperty(e.name)){var n=Le[e.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var Le={};function Ne(t,e){B(e,Le.hasOwnProperty(t)?Le[t]:Le[t]={})}function Oe(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var i={};for(var r in e){var n=e[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ie(t,e){for(var i;t.innerMode&&(i=t.innerMode(e))&&i.mode!=t;)e=i.state,t=i.mode;return i||{mode:t,state:e}}function Re(t,e,i){return!t.startState||t.startState(e,i)}var Me=function(t,e,i){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Me.prototype.eol=function(){return this.pos>=this.string.length},Me.prototype.sol=function(){return this.pos==this.lineStart},Me.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Me.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Me.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Me.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Me.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Me.prototype.skipToEnd=function(){this.pos=this.string.length},Me.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(-1<e)return this.pos=e,!0},Me.prototype.backUp=function(t){this.pos-=t},Me.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Me.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Me.prototype.match=function(t,e,i){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&0<r.index?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var n=function(t){return i?t.toLowerCase():t};if(n(this.string.substr(this.pos,t.length))==n(t))return!1!==e&&(this.pos+=t.length),!0},Me.prototype.current=function(){return this.string.slice(this.start,this.pos)},Me.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Me.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Me.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var De=function(t,e){this.state=t,this.lookAhead=e},Pe=function(t,e,i,r){this.state=e,this.doc=t,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Be(e,i,r,t){var l=[e.state.modeGen],n={};Ve(e,i.text,e.doc.mode,r,function(t,e){return l.push(t,e)},n,t);for(var c=r.state,o=function(t){r.baseTokens=l;var o=e.state.overlays[t],s=1,a=0;r.state=!0,Ve(e,i.text,o.mode,r,function(t,e){for(var i=s;a<t;){var r=l[s];t<r&&l.splice(s,1,t,l[s+1],r),s+=2,a=Math.min(t,r)}if(e)if(o.opaque)l.splice(i,s-i,t,"overlay "+e),s=i+2;else for(;i<s;i+=2){var n=l[i+1];l[i+1]=(n?n+" ":"")+"overlay "+e}},n),r.state=c,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)o(s);return{styles:l,classes:n.bgClass||n.textClass?n:null}}function Fe(t,e,i){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=Ue(t,ft(e)),n=e.text.length>t.options.maxHighlightLength&&Oe(t.doc.mode,r.state),o=Be(t,e,r);n&&(r.state=n),e.stateAfter=r.save(!n),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),i===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Ue(i,r,t){var e=i.doc,n=i.display;if(!e.mode.startState)return new Pe(e,!0,r);var o=function(t,e,i){for(var r,n,o=t.doc,s=i?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;s<a;--a){if(a<=o.first)return o.first;var l=lt(o,a-1),c=l.stateAfter;if(c&&(!i||a+(c instanceof De?c.lookAhead:0)<=o.modeFrontier))return a;var h=F(l.text,null,t.options.tabSize);(null==n||h<r)&&(n=a-1,r=h)}return n}(i,r,t),s=o>e.first&<(e,o-1).stateAfter,a=s?Pe.fromSaved(e,s,o):new Pe(e,Re(e.mode),o);return e.iter(o,r,function(t){He(i,t.text,a);var e=a.line;t.stateAfter=e==r-1||e%5==0||e>=n.viewFrom&&e<n.viewTo?a.save():null,a.nextLine()}),t&&(e.modeFrontier=a.line),a}function He(t,e,i,r){var n=t.doc.mode,o=new Me(e,t.options.tabSize,i);for(o.start=o.pos=r||0,""==e&&We(n,i.state);!o.eol();)ze(n,o,i.state),o.start=o.pos}function We(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var i=Ie(t,e);return i.mode.blankLine?i.mode.blankLine(i.state):void 0}}function ze(t,e,i,r){for(var n=0;n<10;n++){r&&(r[0]=Ie(t,i).mode);var o=t.token(e,i);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}Pe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},Pe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Pe.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},Pe.fromSaved=function(t,e,i){return e instanceof De?new Pe(t,Oe(t.mode,e.state),i,e.lookAhead):new Pe(t,Oe(t.mode,e),i)},Pe.prototype.save=function(t){var e=!1!==t?Oe(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?new De(e,this.maxLookAhead):e};var qe=function(t,e,i){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=i};function Ge(t,e,i,r){var n,o,s=t.doc,a=s.mode,l=lt(s,(e=bt(s,e)).line),c=Ue(t,e.line,i),h=new Me(l.text,t.options.tabSize,c);for(r&&(o=[]);(r||h.pos<e.ch)&&!h.eol();)h.start=h.pos,n=ze(a,h,c.state),r&&o.push(new qe(h,n,Oe(s.mode,c.state)));return r?o:new qe(h,n,c.state)}function je(t,e){if(t)for(;;){var i=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;t=t.slice(0,i.index)+t.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";null==e[r]?e[r]=i[2]:new RegExp("(?:^|s)"+i[2]+"(?:$|s)").test(e[r])||(e[r]+=" "+i[2])}return t}function Ve(t,e,i,r,n,o,s){var a=i.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,c=0,h=null,u=new Me(e,t.options.tabSize,r),f=t.options.addModeClass&&[null];for(""==e&&je(We(i,r.state),o);!u.eol();){if(l=u.pos>t.options.maxHighlightLength?(a=!1,s&&He(t,e,r,u.pos),u.pos=e.length,null):je(ze(i,u,r.state,f),o),f){var d=f[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!a||h!=l){for(;c<u.start;)n(c=Math.min(u.start,c+5e3),h);h=l}u.start=u.pos}for(;c<u.pos;){var p=Math.min(u.pos,c+5e3);n(p,h),c=p}}var Ye=function(t,e,i){this.text=t,Rt(this,e),this.height=i?i(this):1};Ye.prototype.lineNo=function(){return ft(this)},le(Ye);var Ke={},$e={};function Qe(t,e){if(!t||/^\s*$/.test(t))return null;var i=e.addModeClass?$e:Ke;return i[t]||(i[t]=t.replace(/\S+/g,"cm-$&"))}function Xe(t,e){var i=L("span",null,null,y?"padding-right: .1px":null),r={pre:L("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var n=0;n<=(e.rest?e.rest.length:0);n++){var o=n?e.rest[n-1]:e.line,s=void 0;r.pos=0,r.addToken=Ze,ye(t.display.measure)&&(s=Zt(o,t.doc.direction))&&(r.addToken=ti(r.addToken,s)),r.map=[],ii(o,r,Fe(t,o,e!=t.display.externalMeasured&&ft(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ve(t.display.measure))),0==n?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(y){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ne(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function Je(t){var e=N("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Ze(t,e,i,r,n,o,s){if(e){var a,l=t.splitSpaces?function(t,e){if(1<t.length&&!/ /.test(t))return t;for(var i=e,r="",n=0;n<t.length;n++){var o=t.charAt(n);" "!=o||!i||n!=t.length-1&&32!=t.charCodeAt(n+1)||(o=" "),r+=o,i=" "==o}return r}(e,t.trailingSpace):e,c=t.cm.state.specialChars,h=!1;if(c.test(e)){a=document.createDocumentFragment();for(var u=0;;){c.lastIndex=u;var f=c.exec(e),d=f?f.index-u:e.length-u;if(d){var p=document.createTextNode(l.slice(u,u+d));T&&k<9?a.appendChild(N("span",[p])):a.appendChild(p),t.map.push(t.pos,t.pos+d,p),t.col+=d,t.pos+=d}if(!f)break;u+=d+1;var m=void 0;if("\t"==f[0]){var g=t.cm.options.tabSize,_=g-t.col%g;(m=a.appendChild(N("span",K(_),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=_}else"\r"==f[0]||"\n"==f[0]?(m=a.appendChild(N("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]):((m=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),T&&k<9?a.appendChild(N("span",[m])):a.appendChild(m)),t.col+=1;t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,a=document.createTextNode(l),t.map.push(t.pos,t.pos+e.length,a),T&&k<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==l.charCodeAt(e.length-1),i||r||n||h||o){var v=i||"";r&&(v+=r),n&&(v+=n);var y=N("span",[a],v,o);if(s)for(var x in s)s.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&y.setAttribute(x,s[x]);return t.content.appendChild(y)}t.content.appendChild(a)}}function ti(u,f){return function(t,e,i,r,n,o,s){i=i?i+" cm-force-border":"cm-force-border";for(var a=t.pos,l=a+e.length;;){for(var c=void 0,h=0;h<f.length&&!((c=f[h]).to>a&&c.from<=a);h++);if(c.to>=l)return u(t,e,i,r,n,o,s);u(t,e.slice(0,c.to-a),i,r,null,o,s),r=null,e=e.slice(c.to-a),a=c.to}}}function ei(t,e,i,r){var n=!r&&i.widgetNode;n&&t.map.push(t.pos,t.pos+e,n),!r&&t.cm.display.input.needsContentAttribute&&(n||(n=t.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(t.cm.display.input.setUneditable(n),t.content.appendChild(n)),t.pos+=e,t.trailingSpace=!1}function ii(t,e,i){var r=t.markedSpans,n=t.text,o=0;if(r)for(var s,a,l,c,h,u,f,d=n.length,p=0,m=1,g="",_=0;;){if(_==p){l=c=h=a="",u=f=null,_=1/0;for(var v=[],y=void 0,x=0;x<r.length;++x){var T=r[x],k=T.marker;if("bookmark"==k.type&&T.from==p&&k.widgetNode)v.push(k);else if(T.from<=p&&(null==T.to||T.to>p||k.collapsed&&T.to==p&&T.from==p)){if(null!=T.to&&T.to!=p&&_>T.to&&(_=T.to,c=""),k.className&&(l+=" "+k.className),k.css&&(a=(a?a+";":"")+k.css),k.startStyle&&T.from==p&&(h+=" "+k.startStyle),k.endStyle&&T.to==_&&(y||(y=[])).push(k.endStyle,T.to),k.title&&((f||(f={})).title=k.title),k.attributes)for(var b in k.attributes)(f||(f={}))[b]=k.attributes[b];k.collapsed&&(!u||Pt(u.marker,k)<0)&&(u=T)}else T.from>p&&_>T.from&&(_=T.from)}if(y)for(var w=0;w<y.length;w+=2)y[w+1]==_&&(c+=" "+y[w]);if(!u||u.from==p)for(var E=0;E<v.length;++E)ei(e,0,v[E]);if(u&&(u.from||0)==p){if(ei(e,(null==u.to?d+1:u.to)-p,u.marker,null==u.from),null==u.to)return;u.to==p&&(u=!1)}}if(d<=p)break;for(var C=Math.min(d,_);;){if(g){var S=p+g.length;if(!u){var A=C<S?g.slice(0,C-p):g;e.addToken(e,A,s?s+l:l,h,p+A.length==_?c:"",a,f)}if(C<=S){g=g.slice(C-p),p=C;break}p=S,h=""}g=n.slice(o,o=i[m++]),s=Qe(i[m++],e.cm.options)}}else for(var L=1;L<i.length;L+=2)e.addToken(e,n.slice(o,o=i[L]),Qe(i[L+1],e.cm.options))}function ri(t,e,i){this.line=e,this.rest=function(t){for(var e,i;e=Ut(t);)t=e.find(1,!0).line,(i||(i=[])).push(t);return i}(e),this.size=this.rest?ft($(this.rest))-i+1:1,this.node=this.text=null,this.hidden=jt(t,e)}function ni(t,e,i){for(var r,n=[],o=e;o<i;o=r){var s=new ri(t.doc,lt(t.doc,o),o);r=o+s.size,n.push(s)}return n}var oi=null;var si=null;function ai(t,e){var i=ie(t,e);if(i.length){var r,n=Array.prototype.slice.call(arguments,2);oi?r=oi.delayedCallbacks:si?r=si:(r=si=[],setTimeout(li,0));for(var o=function(t){r.push(function(){return i[t].apply(null,n)})},s=0;s<i.length;++s)o(s)}}function li(){var t=si;si=null;for(var e=0;e<t.length;++e)t[e]()}function ci(t,e,i,r){for(var n=0;n<e.changes.length;n++){var o=e.changes[n];"text"==o?fi(t,e):"gutter"==o?pi(t,e,i,r):"class"==o?di(t,e):"widget"==o&&mi(t,e,r)}e.changes=null}function hi(t){return t.node==t.text&&(t.node=N("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),T&&k<8&&(t.node.style.zIndex=2)),t.node}function ui(t,e){var i=t.display.externalMeasured;return i&&i.line==e.line?(t.display.externalMeasured=null,e.measure=i.measure,i.built):Xe(t,e)}function fi(t,e){var i=e.text.className,r=ui(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,di(t,e)):i&&(e.text.className=i)}function di(t,e){!function(t,e){var i=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),e.background)i?e.background.className=i:(e.background.parentNode.removeChild(e.background),e.background=null);else if(i){var r=hi(e);e.background=r.insertBefore(N("div",null,i),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?hi(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var i=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=i||""}function pi(t,e,i,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var n=hi(e);e.gutterBackground=N("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),n.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=hi(e),a=e.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(N("div",mt(t.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.options.gutters.length;++l){var c=t.options.gutters[l],h=o.hasOwnProperty(c)&&o[c];h&&a.appendChild(N("div",[h],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function mi(t,e,i){e.alignable&&(e.alignable=null);for(var r=e.node.firstChild,n=void 0;r;r=n)n=r.nextSibling,"CodeMirror-linewidget"==r.className&&e.node.removeChild(r);gi(t,e,i)}function gi(t,e,i){if(_i(t,e.line,e,i,!0),e.rest)for(var r=0;r<e.rest.length;r++)_i(t,e.rest[r],e,i,!1)}function _i(t,e,i,r,n){if(e.widgets)for(var o=hi(i),s=0,a=e.widgets;s<a.length;++s){var l=a[s],c=N("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),vi(l,c,i,r),t.display.input.setUneditable(c),n&&l.above?o.insertBefore(c,i.gutter||i.text):o.appendChild(c),ai(l,"redraw")}}function vi(t,e,i,r){if(t.noHScroll){(i.alignable||(i.alignable=[])).push(e);var n=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(n-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=n+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function yi(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!O(document.body,t.node)){var i="position: relative;";t.coverGutter&&(i+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(i+="width: "+e.display.wrapper.clientWidth+"px;"),A(e.display.measure,N("div",[t.node],null,i))}return t.height=t.node.parentNode.offsetHeight}function xi(t,e){for(var i=de(e);i!=t.wrapper;i=i.parentNode)if(!i||1==i.nodeType&&"true"==i.getAttribute("cm-ignore-events")||i.parentNode==t.sizer&&i!=t.mover)return!0}function Ti(t){return t.lineSpace.offsetTop}function ki(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function bi(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=A(t.measure,N("pre","x")),i=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function wi(t){return W-t.display.nativeBarWidth}function Ei(t){return t.display.scroller.clientWidth-wi(t)-t.display.barWidth}function Ci(t){return t.display.scroller.clientHeight-wi(t)-t.display.barHeight}function Si(t,e,i){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var n=0;n<t.rest.length;n++)if(ft(t.rest[n])>i)return{map:t.measure.maps[n],cache:t.measure.caches[n],before:!0}}function Ai(t,e,i,r){return Oi(t,Ni(t,e),i,r)}function Li(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[sr(t,e)];var i=t.display.externalMeasured;return i&&e>=i.lineN&&e<i.lineN+i.size?i:void 0}function Ni(t,e){var i=ft(e),r=Li(t,i);r&&!r.text?r=null:r&&r.changes&&(ci(t,r,i,er(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var i=ft(e=zt(e)),r=t.display.externalMeasured=new ri(t.doc,e,i);r.lineN=i;var n=r.built=Xe(t,r);return r.text=n.pre,A(t.display.lineMeasure,n.pre),r}(t,e));var n=Si(r,e,i);return{line:e,view:r,rect:null,map:n.map,cache:n.cache,before:n.before,hasHeights:!1}}function Oi(t,e,i,r,n){e.before&&(i=-1);var o,s=i+(r||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(!function(t,e,i){var r=t.options.lineWrapping,n=r&&Ei(t);if(!e.measure.heights||r&&e.measure.width!=n){var o=e.measure.heights=[];if(r){e.measure.width=n;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],c=s[a+1];2<Math.abs(l.bottom-c.bottom)&&o.push((l.bottom+c.top)/2-i.top)}}o.push(i.bottom-i.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,i,r){var n,o=Mi(e.map,i,r),s=o.node,a=o.start,l=o.end,c=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;a&&nt(e.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+l<o.coverEnd&&nt(e.line.text.charAt(o.coverStart+l));)++l;if((n=T&&k<9&&0==a&&l==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():Di(E(s,a,l).getClientRects(),r)).left||n.right||0==a)break;l=a,a-=1,c="right"}T&&k<11&&(n=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=we)return we;var e=A(t,N("span","x")),i=e.getBoundingClientRect(),r=E(e,0,1).getBoundingClientRect();return we=1<Math.abs(i.left-r.left)}(t))return e;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*i,right:e.right*i,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,n))}else{var u;0<a&&(c=r="right"),n=t.options.lineWrapping&&1<(u=s.getClientRects()).length?u["right"==r?u.length-1:0]:s.getBoundingClientRect()}if(T&&k<9&&!a&&(!n||!n.left&&!n.right)){var f=s.parentNode.getClientRects()[0];n=f?{left:f.left,right:f.left+tr(t.display),top:f.top,bottom:f.bottom}:Ri}for(var d=n.top-e.rect.top,p=n.bottom-e.rect.top,m=(d+p)/2,g=e.view.measure.heights,_=0;_<g.length-1&&!(m<g[_]);_++);var v=_?g[_-1]:0,y=g[_],x={left:("right"==c?n.right:n.left)-e.rect.left,right:("left"==c?n.left:n.right)-e.rect.left,top:v,bottom:y};n.left||n.right||(x.bogus=!0);t.options.singleCursorHeightPerLine||(x.rtop=d,x.rbottom=p);return x}(t,e,i,r)).bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}}var Ii,Ri={left:0,right:0,top:0,bottom:0};function Mi(t,e,i){for(var r,n,o,s,a,l,c=0;c<t.length;c+=3)if(a=t[c],l=t[c+1],e<a?(n=0,o=1,s="left"):e<l?o=(n=e-a)+1:(c==t.length-3||e==l&&t[c+3]>e)&&(n=(o=l-a)-1,l<=e&&(s="right")),null!=n){if(r=t[c+2],a==l&&i==(r.insertLeft?"left":"right")&&(s=i),"left"==i&&0==n)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],s="left";if("right"==i&&n==l-a)for(;c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft;)r=t[(c+=3)+2],s="right";break}return{node:r,start:n,end:o,collapse:s,coverStart:a,coverEnd:l}}function Di(t,e){var i=Ri;if("left"==e)for(var r=0;r<t.length&&(i=t[r]).left==i.right;r++);else for(var n=t.length-1;0<=n&&(i=t[n]).left==i.right;n--);return i}function Pi(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Bi(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Pi(t.display.view[e])}function Fi(t){Bi(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ui(){return s&&u?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hi(){return s&&u?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wi(t){var e=0;if(t.widgets)for(var i=0;i<t.widgets.length;++i)t.widgets[i].above&&(e+=yi(t.widgets[i]));return e}function zi(t,e,i,r,n){if(!n){var o=Wi(e);i.top+=o,i.bottom+=o}if("line"==r)return i;r||(r="local");var s=Yt(e);if("local"==r?s+=Ti(t.display):s-=t.display.viewOffset,"page"==r||"window"==r){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==r?0:Hi());var l=a.left+("window"==r?0:Ui());i.left+=l,i.right+=l}return i.top+=s,i.bottom+=s,i}function qi(t,e,i){if("div"==i)return e;var r=e.left,n=e.top;if("page"==i)r-=Ui(),n-=Hi();else if("local"==i||!i){var o=t.display.sizer.getBoundingClientRect();r+=o.left,n+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:r-s.left,top:n-s.top}}function Gi(t,e,i,r,n){return r||(r=lt(t.doc,e.line)),zi(t,r,Ai(t,r,e.ch,n),i)}function ji(r,t,n,o,s,a){function l(t,e){var i=Oi(r,s,t,e?"right":"left",a);return e?i.left=i.right:i.right=i.left,zi(r,o,i,n)}o=o||lt(r.doc,t.line),s||(s=Ni(r,o));var c=Zt(o,r.doc.direction),e=t.ch,i=t.sticky;if(e>=o.text.length?(e=o.text.length,i="before"):e<=0&&(e=0,i="after"),!c)return l("before"==i?e-1:e,"before"==i);function h(t,e,i){return l(i?t-1:t,1==c[e].level!=i)}var u=Xt(c,e,i),f=Qt,d=h(e,u,"before"==i);return null!=f&&(d.other=h(e,f,"before"!=i)),d}function Vi(t,e){var i=0;e=bt(t.doc,e),t.options.lineWrapping||(i=tr(t.display)*e.ch);var r=lt(t.doc,e.line),n=Yt(r)+Ti(t.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Yi(t,e,i,r,n){var o=gt(t,e,i);return o.xRel=n,r&&(o.outside=!0),o}function Ki(t,e,i){var r=t.doc;if((i+=t.display.viewOffset)<0)return Yi(r.first,0,null,!0,-1);var n=dt(r,i),o=r.first+r.size-1;if(o<n)return Yi(r.first+r.size-1,lt(r,o).text.length,null,!0,1);e<0&&(e=0);for(var s=lt(r,n);;){var a=Ji(t,s,n,e,i),l=Ht(s,a.ch+(0<a.xRel?1:0));if(!l)return a;var c=l.find(1);if(c.line==n)return c;s=lt(r,n=c.line)}}function $i(e,t,i,r){r-=Wi(t);var n=t.text.length,o=st(function(t){return Oi(e,i,t-1).bottom<=r},n,0);return{begin:o,end:n=st(function(t){return Oi(e,i,t).top>r},o,n)}}function Qi(t,e,i,r){return i||(i=Ni(t,e)),$i(t,e,i,zi(t,e,Oi(t,i,r),"line").top)}function Xi(t,e,i,r){return!(t.bottom<=i)&&(t.top>i||(r?t.left:t.right)>e)}function Ji(i,t,e,r,n){n-=Yt(t);var o=Ni(i,t),s=Wi(t),a=0,l=t.text.length,c=!0,h=Zt(t,i.doc.direction);if(h){var u=(i.options.lineWrapping?function(t,e,i,r,n,o,s){var a=$i(t,e,r,s),l=a.begin,c=a.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var h=null,u=null,f=0;f<n.length;f++){var d=n[f];if(!(d.from>=c||d.to<=l)){var p=1!=d.level,m=Oi(t,r,p?Math.min(c,d.to)-1:Math.max(l,d.from)).right,g=m<o?o-m+1e9:m-o;(!h||g<u)&&(h=d,u=g)}}h||(h=n[n.length-1]);h.from<l&&(h={from:l,to:h.to,level:h.level});h.to>c&&(h={from:h.from,to:c,level:h.level});return h}:function(r,n,o,s,a,l,c){var t=st(function(t){var e=a[t],i=1!=e.level;return Xi(ji(r,gt(o,i?e.to:e.from,i?"before":"after"),"line",n,s),l,c,!0)},0,a.length-1),e=a[t];if(0<t){var i=1!=e.level,h=ji(r,gt(o,i?e.from:e.to,i?"after":"before"),"line",n,s);Xi(h,l,c,!0)&&h.top>c&&(e=a[t-1])}return e})(i,t,e,o,h,r,n);a=(c=1!=u.level)?u.from:u.to-1,l=c?u.to:u.from-1}var f,d,p=null,m=null,g=st(function(t){var e=Oi(i,o,t);return e.top+=s,e.bottom+=s,!!Xi(e,r,n,!1)&&(e.top<=n&&e.left<=r&&(p=t,m=e),!0)},a,l),_=!1;if(m){var v=r-m.left<m.right-r,y=v==c;g=p+(y?0:1),d=y?"after":"before",f=v?m.left:m.right}else{c||g!=l&&g!=a||g++,d=0==g?"after":g==t.text.length?"before":Oi(i,o,g-(c?1:0)).bottom+s<=n==c?"after":"before";var x=ji(i,gt(e,g,d),"line",t,o);f=x.left,_=n<x.top||n>=x.bottom}return Yi(e,g=ot(t.text,g,1),d,_,r-f)}function Zi(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Ii){Ii=N("pre");for(var e=0;e<49;++e)Ii.appendChild(document.createTextNode("x")),Ii.appendChild(N("br"));Ii.appendChild(document.createTextNode("x"))}A(t.measure,Ii);var i=Ii.offsetHeight/50;return 3<i&&(t.cachedTextHeight=i),S(t.measure),i||1}function tr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=N("span","xxxxxxxxxx"),i=N("pre",[e]);A(t.measure,i);var r=e.getBoundingClientRect(),n=(r.right-r.left)/10;return 2<n&&(t.cachedCharWidth=n),n||10}function er(t){for(var e=t.display,i={},r={},n=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)i[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+n,r[t.options.gutters[s]]=o.clientWidth;return{fixedPos:ir(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ir(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function rr(r){var n=Zi(r.display),o=r.options.lineWrapping,s=o&&Math.max(5,r.display.scroller.clientWidth/tr(r.display)-3);return function(t){if(jt(r.doc,t))return 0;var e=0;if(t.widgets)for(var i=0;i<t.widgets.length;i++)t.widgets[i].height&&(e+=t.widgets[i].height);return o?e+(Math.ceil(t.text.length/s)||1)*n:e+n}}function nr(t){var e=t.doc,i=rr(t);e.iter(function(t){var e=i(t);e!=t.height&&ut(t,e)})}function or(t,e,i,r){var n=t.display;if(!i&&"true"==de(e).getAttribute("cm-not-content"))return null;var o,s,a=n.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,c=Ki(t,o,s);if(r&&1==c.xRel&&(l=lt(t.doc,c.line).text).length==c.ch){var h=F(l,l.length,t.options.tabSize)-l.length;c=gt(c.line,Math.max(0,Math.round((o-bi(t.display).left)/tr(t.display))-h))}return c}function sr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var i=t.display.view,r=0;r<i.length;r++)if((e-=i[r].size)<0)return r}function ar(t){t.display.input.showSelection(t.display.input.prepareSelection())}function lr(t,e){void 0===e&&(e=!0);for(var i=t.doc,r={},n=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),s=0;s<i.sel.ranges.length;s++)if(e||s!=i.sel.primIndex){var a=i.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&cr(t,a.head,n),l||ur(t,a,o)}}return r}function cr(t,e,i){var r=ji(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),n=i.appendChild(N("div"," ","CodeMirror-cursor"));if(n.style.left=r.left+"px",n.style.top=r.top+"px",n.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var o=i.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function hr(t,e){return t.top-e.top||t.left-e.left}function ur(s,t,e){var i=s.display,r=s.doc,n=document.createDocumentFragment(),o=bi(s.display),C=o.left,S=Math.max(i.sizerWidth,Ei(s)-i.sizer.offsetLeft)-o.right,A="ltr"==r.direction;function L(t,e,i,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),n.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==i?S-t:i)+"px;\n height: "+(r-e)+"px"))}function a(i,v,y){var x,T,o=lt(r,i),k=o.text.length;function b(t,e){return Gi(s,gt(i,t),"div",o,e)}function w(t,e,i){var r=Qi(s,o,null,t),n="ltr"==e==("after"==i)?"left":"right";return b("after"==i?r.begin:r.end-(/\s/.test(o.text.charAt(r.end-1))?2:1),n)[n]}var E=Zt(o,r.direction);return function(t,e,i,r){if(!t)return r(e,i,"ltr",0);for(var n=!1,o=0;o<t.length;++o){var s=t[o];(s.from<i&&s.to>e||e==i&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,i),1==s.level?"rtl":"ltr",o),n=!0)}n||r(e,i,"ltr")}(E,v||0,null==y?k:y,function(t,e,i,r){var n="ltr"==i,o=b(t,n?"left":"right"),s=b(e-1,n?"right":"left"),a=null==v&&0==t,l=null==y&&e==k,c=0==r,h=!E||r==E.length-1;if(s.top-o.top<=3){var u=(A?l:a)&&h,f=(A?a:l)&&c?C:(n?o:s).left,d=u?S:(n?s:o).right;L(f,o.top,d-f,o.bottom)}else{var p,m,g,_;_=n?(p=A&&a&&c?C:o.left,m=A?S:w(t,i,"before"),g=A?C:w(e,i,"after"),A&&l&&h?S:s.right):(p=A?w(t,i,"before"):C,m=!A&&a&&c?S:o.right,g=!A&&l&&h?C:s.left,A?w(e,i,"after"):S),L(p,o.top,m-p,o.bottom),o.bottom<s.top&&L(C,o.bottom,null,s.top),L(g,s.top,_-g,s.bottom)}(!x||hr(o,x)<0)&&(x=o),hr(s,x)<0&&(x=s),(!T||hr(o,T)<0)&&(T=o),hr(s,T)<0&&(T=s)}),{start:x,end:T}}var l=t.from(),c=t.to();if(l.line==c.line)a(l.line,l.ch,c.ch);else{var h=lt(r,l.line),u=lt(r,c.line),f=zt(h)==zt(u),d=a(l.line,l.ch,f?h.text.length+1:null).end,p=a(c.line,f?0:null,c.ch).start;f&&(d.top<p.top-2?(L(d.right,d.top,null,d.bottom),L(C,p.top,p.left,p.bottom)):L(d.right,d.top,p.left-d.right,d.bottom)),d.bottom<p.top&&L(C,d.bottom,null,p.top)}e.appendChild(n)}function fr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var i=!0;e.cursorDiv.style.visibility="",0<t.options.cursorBlinkRate?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(i=!i)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function dr(t){t.state.focused||(t.display.input.focus(),mr(t))}function pr(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,gr(t))},100)}function mr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ne(t,"focus",t,e),t.state.focused=!0,R(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),y&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),fr(t))}function gr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ne(t,"blur",t,e),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function _r(t){for(var e=t.display,i=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var n=e.view[r],o=t.options.lineWrapping,s=void 0,a=0;if(!n.hidden){if(T&&k<8){var l=n.node.offsetTop+n.node.offsetHeight;s=l-i,i=l}else{var c=n.node.getBoundingClientRect();s=c.bottom-c.top,!o&&n.text.firstChild&&(a=n.text.firstChild.getBoundingClientRect().right-c.left-1)}var h=n.line.height-s;if((.005<h||h<-.005)&&(ut(n.line,s),vr(n.line),n.rest))for(var u=0;u<n.rest.length;u++)vr(n.rest[u]);if(a>t.display.sizerWidth){var f=Math.ceil(a/tr(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=n.line,t.display.maxLineChanged=!0)}}}}function vr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var i=t.widgets[e],r=i.node.parentNode;r&&(i.height=r.offsetHeight)}}function yr(t,e,i){var r=i&&null!=i.top?Math.max(0,i.top):t.scroller.scrollTop;r=Math.floor(r-Ti(t));var n=i&&null!=i.bottom?i.bottom:r+t.wrapper.clientHeight,o=dt(e,r),s=dt(e,n);if(i&&i.ensure){var a=i.ensure.from.line,l=i.ensure.to.line;a<o?s=dt(e,Yt(lt(e,o=a))+t.wrapper.clientHeight):Math.min(l,e.lastLine())>=s&&(o=dt(e,Yt(lt(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function xr(t){var e=t.display,i=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ir(e)-e.scroller.scrollLeft+t.doc.scrollLeft,n=e.gutters.offsetWidth,o=r+"px",s=0;s<i.length;s++)if(!i[s].hidden){t.options.fixedGutter&&(i[s].gutter&&(i[s].gutter.style.left=o),i[s].gutterBackground&&(i[s].gutterBackground.style.left=o));var a=i[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+n+"px")}}function Tr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,i=mt(t.options,e.first+e.size-1),r=t.display;if(i.length==r.lineNumChars)return!1;var n=r.measure.appendChild(N("div",[N("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=n.firstChild.offsetWidth,s=n.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?i.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",an(t),!0}function kr(t,e){var i=t.display,r=Zi(t.display);e.top<0&&(e.top=0);var n=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:i.scroller.scrollTop,o=Ci(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+ki(i),l=e.top<r,c=e.bottom>a-r;if(e.top<n)s.scrollTop=l?0:e.top;else if(e.bottom>n+o){var h=Math.min(e.top,(c?a:e.bottom)-o);h!=n&&(s.scrollTop=h)}var u=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:i.scroller.scrollLeft,f=Ei(t)-(t.options.fixedGutter?i.gutters.offsetWidth:0),d=e.right-e.left>f;return d&&(e.right=e.left+f),e.left<10?s.scrollLeft=0:e.left<u?s.scrollLeft=Math.max(0,e.left-(d?0:10)):e.right>f+u-3&&(s.scrollLeft=e.right+(d?0:10)-f),s}function br(t,e){null!=e&&(Cr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function wr(t){Cr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Er(t,e,i){null==e&&null==i||Cr(t),null!=e&&(t.curOp.scrollLeft=e),null!=i&&(t.curOp.scrollTop=i)}function Cr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Sr(t,Vi(t,e.from),Vi(t,e.to),e.margin))}function Sr(t,e,i,r){var n=kr(t,{left:Math.min(e.left,i.left),top:Math.min(e.top,i.top)-r,right:Math.max(e.right,i.right),bottom:Math.max(e.bottom,i.bottom)+r});Er(t,n.scrollLeft,n.scrollTop)}function Ar(t,e){Math.abs(t.doc.scrollTop-e)<2||(m||sn(t,{top:e}),Lr(t,e,!0),m&&sn(t),tn(t,100))}function Lr(t,e,i){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||i)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Nr(t,e,i,r){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(i?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,xr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Or(t){var e=t.display,i=e.gutters.offsetWidth,r=Math.round(t.doc.height+ki(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+wi(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:i}}var Ir=function(t,e,i){this.cm=i;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,t(r),t(n),ee(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),ee(n,"scroll",function(){n.clientWidth&&e(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ir.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,i=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var n=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+n)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0<t.clientHeight&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:e?r:0}},Ir.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ir.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ir.prototype.zeroWidthHack=function(){var t=x&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},Ir.prototype.enableZeroWidthBar=function(i,r,n){i.style.pointerEvents="auto",r.set(1e3,function t(){var e=i.getBoundingClientRect();("vert"==n?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1))!=i?i.style.pointerEvents="none":r.set(1e3,t)})},Ir.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Rr=function(){};function Mr(t,e){e||(e=Or(t));var i=t.display.barWidth,r=t.display.barHeight;Dr(t,e);for(var n=0;n<4&&i!=t.display.barWidth||r!=t.display.barHeight;n++)i!=t.display.barWidth&&t.options.lineWrapping&&_r(t),Dr(t,Or(t)),i=t.display.barWidth,r=t.display.barHeight}function Dr(t,e){var i=t.display,r=i.scrollbars.update(e);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=e.gutterWidth+"px"):i.gutterFiller.style.display=""}Rr.prototype.update=function(){return{bottom:0,right:0}},Rr.prototype.setScrollLeft=function(){},Rr.prototype.setScrollTop=function(){},Rr.prototype.clear=function(){};var Pr={native:Ir,null:Rr};function Br(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&C(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new Pr[i.options.scrollbarStyle](function(t){i.display.wrapper.insertBefore(t,i.display.scrollbarFiller),ee(t,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,e){"horizontal"==e?Nr(i,t):Ar(i,t)},i),i.display.scrollbars.addClass&&R(i.display.wrapper,i.display.scrollbars.addClass)}var Fr=0;function Ur(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fr},e=t.curOp,oi?oi.ops.push(e):e.ownsGroup=oi={ops:[e],delayedCallbacks:[]}}function Hr(t){var e=t.curOp;e&&function(t,e){var i=t.ownsGroup;if(i)try{!function(t){var e=t.delayedCallbacks,i=0;do{for(;i<e.length;i++)e[i].call(null);for(var r=0;r<t.ops.length;r++){var n=t.ops[r];if(n.cursorActivityHandlers)for(;n.cursorActivityCalled<n.cursorActivityHandlers.length;)n.cursorActivityHandlers[n.cursorActivityCalled++].call(null,n.cm)}}while(i<e.length)}(i)}finally{oi=null,e(i)}}(e,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,i=0;i<e.length;i++)Wr(e[i]);for(var r=0;r<e.length;r++)(n=e[r]).updatedDisplay=n.mustUpdate&&nn(n.cm,n.update);var n;for(var o=0;o<e.length;o++)zr(e[o]);for(var s=0;s<e.length;s++)qr(e[s]);for(var a=0;a<e.length;a++)Gr(e[a])}(t)})}function Wr(t){var e,i,r=t.cm,n=r.display;!(i=(e=r).display).scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=wi(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=wi(e)+"px",i.scrollbarsClipped=!0),t.updateMaxLine&&$t(r),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new rn(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function zr(t){var e=t.cm,i=e.display;t.updatedDisplay&&_r(e),t.barMeasure=Or(e),i.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ai(e,i.maxLine,i.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+t.adjustWidthTo+wi(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+t.adjustWidthTo-Ei(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=i.input.prepareSelection())}function qr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Nr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var i=t.focus&&t.focus==I();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,i),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Mr(e,t.barMeasure),t.updatedDisplay&&ln(e,t.barMeasure),t.selectionChanged&&fr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),i&&dr(t.cm)}function Gr(t){var e=t.cm,i=e.display,r=e.doc;(t.updatedDisplay&&on(e,t.update),null==i.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(i.wheelStartX=i.wheelStartY=null),null!=t.scrollTop&&Lr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Nr(e,t.scrollLeft,!0,!0),t.scrollToPos)&&function(t,e){if(!oe(t,"scrollCursorIntoView")){var i=t.display,r=i.sizer.getBoundingClientRect(),n=null;if(e.top+r.top<0?n=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(n=!1),null!=n&&!c){var o=N("div","",null,"position: absolute;\n top: "+(e.top-i.viewOffset-Ti(t.display))+"px;\n height: "+(e.bottom-e.top+wi(t)+i.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(n),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,i,r){var n;null==r&&(r=0),t.options.lineWrapping||e!=i||(i="before"==(e=e.ch?gt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?gt(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=ji(t,e),l=i&&i!=e?ji(t,i):a,c=kr(t,n={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r}),h=t.doc.scrollTop,u=t.doc.scrollLeft;if(null!=c.scrollTop&&(Ar(t,c.scrollTop),1<Math.abs(t.doc.scrollTop-h)&&(s=!0)),null!=c.scrollLeft&&(Nr(t,c.scrollLeft),1<Math.abs(t.doc.scrollLeft-u)&&(s=!0)),!s)break}return n}(e,bt(r,t.scrollToPos.from),bt(r,t.scrollToPos.to),t.scrollToPos.margin));var n=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(n)for(var s=0;s<n.length;++s)n[s].lines.length||ne(n[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&ne(o[a],"unhide");i.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&ne(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function jr(t,e){if(t.curOp)return e();Ur(t);try{return e()}finally{Hr(t)}}function Vr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Ur(t);try{return e.apply(t,arguments)}finally{Hr(t)}}}function Yr(t){return function(){if(this.curOp)return t.apply(this,arguments);Ur(this);try{return t.apply(this,arguments)}finally{Hr(this)}}}function Kr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ur(t);try{return e.apply(this,arguments)}finally{Hr(t)}}}function $r(t,e,i,r){null==e&&(e=t.doc.first),null==i&&(i=t.doc.first+t.doc.size),r||(r=0);var n=t.display;if(r&&i<n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>e)&&(n.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=n.viewTo)Ct&&qt(t.doc,e)<n.viewTo&&Xr(t);else if(i<=n.viewFrom)Ct&&Gt(t.doc,i+r)>n.viewFrom?Xr(t):(n.viewFrom+=r,n.viewTo+=r);else if(e<=n.viewFrom&&i>=n.viewTo)Xr(t);else if(e<=n.viewFrom){var o=Jr(t,i,i+r,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=r):Xr(t)}else if(i>=n.viewTo){var s=Jr(t,e,e,-1);s?(n.view=n.view.slice(0,s.index),n.viewTo=s.lineN):Xr(t)}else{var a=Jr(t,e,e,-1),l=Jr(t,i,i+r,1);a&&l?(n.view=n.view.slice(0,a.index).concat(ni(t,a.lineN,l.lineN)).concat(n.view.slice(l.index)),n.viewTo+=r):Xr(t)}var c=n.externalMeasured;c&&(i<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(n.externalMeasured=null))}function Qr(t,e,i){t.curOp.viewChanged=!0;var r=t.display,n=t.display.externalMeasured;if(n&&e>=n.lineN&&e<n.lineN+n.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[sr(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==H(s,i)&&s.push(i)}}}function Xr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Jr(t,e,i,r){var n,o=sr(t,e),s=t.display.view;if(!Ct||i==t.doc.first+t.doc.size)return{index:o,lineN:i};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(0<r){if(o==s.length-1)return null;n=a+s[o].size-e,o++}else n=a-e;e+=n,i+=n}for(;qt(t.doc,i)!=i;){if(o==(r<0?0:s.length-1))return null;i+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:i}}function Zr(t){for(var e=t.display.view,i=0,r=0;r<e.length;r++){var n=e[r];n.hidden||n.node&&!n.changes||++i}return i}function tn(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,P(en,t))}function en(l){var c=l.doc;if(!(c.highlightFrontier>=l.display.viewTo)){var h=+new Date+l.options.workTime,u=Ue(l,c.highlightFrontier),f=[];c.iter(u.line,Math.min(c.first+c.size,l.display.viewTo+500),function(t){if(u.line>=l.display.viewFrom){var e=t.styles,i=t.text.length>l.options.maxHighlightLength?Oe(c.mode,u.state):null,r=Be(l,t,u,!0);i&&(u.state=i),t.styles=r.styles;var n=t.styleClasses,o=r.classes;o?t.styleClasses=o:n&&(t.styleClasses=null);for(var s=!e||e.length!=t.styles.length||n!=o&&(!n||!o||n.bgClass!=o.bgClass||n.textClass!=o.textClass),a=0;!s&&a<e.length;++a)s=e[a]!=t.styles[a];s&&f.push(u.line),t.stateAfter=u.save(),u.nextLine()}else t.text.length<=l.options.maxHighlightLength&&He(l,t.text,u),t.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>h)return tn(l,l.options.workDelay),!0}),c.highlightFrontier=u.line,c.modeFrontier=Math.max(c.modeFrontier,u.line),f.length&&jr(l,function(){for(var t=0;t<f.length;t++)Qr(l,f[t],"text")})}}var rn=function(t,e,i){var r=t.display;this.viewport=e,this.visible=yr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ei(t),this.force=i,this.dims=er(t),this.events=[]};function nn(t,e){var i=t.display,r=t.doc;if(e.editorIsHidden)return Xr(t),!1;if(!e.force&&e.visible.from>=i.viewFrom&&e.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==Zr(t))return!1;Tr(t)&&(Xr(t),e.dims=er(t));var n=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(n,e.visible.to+t.options.viewportMargin);i.viewFrom<o&&o-i.viewFrom<20&&(o=Math.max(r.first,i.viewFrom)),i.viewTo>s&&i.viewTo-s<20&&(s=Math.min(n,i.viewTo)),Ct&&(o=qt(t.doc,o),s=Gt(t.doc,s));var a,l,c,h,u=o!=i.viewFrom||s!=i.viewTo||i.lastWrapHeight!=e.wrapperHeight||i.lastWrapWidth!=e.wrapperWidth;l=o,c=s,0==(h=(a=t).display).view.length||l>=h.viewTo||c<=h.viewFrom?(h.view=ni(a,l,c),h.viewFrom=l):(h.viewFrom>l?h.view=ni(a,l,h.viewFrom).concat(h.view):h.viewFrom<l&&(h.view=h.view.slice(sr(a,l))),h.viewFrom=l,h.viewTo<c?h.view=h.view.concat(ni(a,h.viewTo,c)):h.viewTo>c&&(h.view=h.view.slice(0,sr(a,c)))),h.viewTo=c,i.viewOffset=Yt(lt(t.doc,i.viewFrom)),t.display.mover.style.top=i.viewOffset+"px";var f=Zr(t);if(!u&&0==f&&!e.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var d=function(t){if(t.hasFocus())return null;var e=I();if(!e||!O(t.display.lineDiv,e))return null;var i={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&O(t.display.lineDiv,r.anchorNode)&&(i.anchorNode=r.anchorNode,i.anchorOffset=r.anchorOffset,i.focusNode=r.focusNode,i.focusOffset=r.focusOffset)}return i}(t);return 4<f&&(i.lineDiv.style.display="none"),function(i,t,e){var r=i.display,n=i.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(t){var e=t.nextSibling;return y&&x&&i.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),e}for(var l=r.view,c=r.viewFrom,h=0;h<l.length;h++){var u=l[h];if(u.hidden);else if(u.node&&u.node.parentNode==o){for(;s!=u.node;)s=a(s);var f=n&&null!=t&&t<=c&&u.lineNumber;u.changes&&(-1<H(u.changes,"gutter")&&(f=!1),ci(i,u,c,e)),f&&(S(u.lineNumber),u.lineNumber.appendChild(document.createTextNode(mt(i.options,c)))),s=u.node.nextSibling}else{var d=(g=c,_=e,void 0,v=ui(p=i,m=u),m.text=m.node=v.pre,v.bgClass&&(m.bgClass=v.bgClass),v.textClass&&(m.textClass=v.textClass),di(p,m),pi(p,m,g,_),gi(p,m,_),m.node);o.insertBefore(d,s)}c+=u.size}var p,m,g,_,v;for(;s;)s=a(s)}(t,i.updateLineNumbers,e.dims),4<f&&(i.lineDiv.style.display=""),i.renderedView=i.view,function(t){if(t&&t.activeElt&&t.activeElt!=I()&&(t.activeElt.focus(),t.anchorNode&&O(document.body,t.anchorNode)&&O(document.body,t.focusNode))){var e=window.getSelection(),i=document.createRange();i.setEnd(t.anchorNode,t.anchorOffset),i.collapse(!1),e.removeAllRanges(),e.addRange(i),e.extend(t.focusNode,t.focusOffset)}}(d),S(i.cursorDiv),S(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,u&&(i.lastWrapHeight=e.wrapperHeight,i.lastWrapWidth=e.wrapperWidth,tn(t,400)),!(i.updateLineNumbers=null)}function on(t,e){for(var i=e.viewport,r=!0;(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Ei(t)||(i&&null!=i.top&&(i={top:Math.min(t.doc.height+ki(t.display)-Ci(t),i.top)}),e.visible=yr(t.display,t.doc,i),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&nn(t,e);r=!1){_r(t);var n=Or(t);ar(t),Mr(t,n),ln(t,n),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function sn(t,e){var i=new rn(t,e);if(nn(t,i)){_r(t),on(t,i);var r=Or(t);ar(t),Mr(t,r),ln(t,r),i.finish()}}function an(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function ln(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+wi(t)+"px"}function cn(t){var e=t.display.gutters,i=t.options.gutters;S(e);for(var r=0;r<i.length;++r){var n=i[r],o=e.appendChild(N("div",null,"CodeMirror-gutter "+n));"CodeMirror-linenumbers"==n&&((t.display.lineGutter=o).style.width=(t.display.lineNumWidth||1)+"px")}e.style.display=r?"":"none",an(t)}function hn(t){var e=H(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):-1<e&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}rn.prototype.signal=function(t,e){ae(t,e)&&this.events.push(arguments)},rn.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ne.apply(null,this.events[t])};var un=0,fn=null;function dn(t){var e=t.wheelDeltaX,i=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==i&&t.detail&&t.axis==t.VERTICAL_AXIS?i=t.detail:null==i&&(i=t.wheelDelta),{x:e,y:i}}function pn(t){var e=dn(t);return e.x*=fn,e.y*=fn,e}function mn(t,e){var i=dn(e),r=i.x,n=i.y,o=t.display,s=o.scroller,a=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(r&&a||n&&l){if(n&&x&&y)t:for(var c=e.target,h=o.view;c!=s;c=c.parentNode)for(var u=0;u<h.length;u++)if(h[u].node==c){t.display.currentWheelTarget=c;break t}if(r&&!m&&!g&&null!=fn)return n&&l&&Ar(t,Math.max(0,s.scrollTop+n*fn)),Nr(t,Math.max(0,s.scrollLeft+r*fn)),(!n||n&&l)&&ce(e),void(o.wheelStartX=null);if(n&&null!=fn){var f=n*fn,d=t.doc.scrollTop,p=d+o.wrapper.clientHeight;f<0?d=Math.max(0,d+f-50):p=Math.min(t.doc.height,p+f+50),sn(t,{top:d,bottom:p})}un<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=r,o.wheelDY=n,setTimeout(function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,i=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,i&&(fn=(fn*un+i)/(un+1),++un)}},200)):(o.wheelDX+=r,o.wheelDY+=n))}}T?fn=-.53:m?fn=15:s?fn=-.7:l&&(fn=-1/3);var gn=function(t,e){this.ranges=t,this.primIndex=e};gn.prototype.primary=function(){return this.ranges[this.primIndex]},gn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var i=this.ranges[e],r=t.ranges[e];if(!vt(i.anchor,r.anchor)||!vt(i.head,r.head))return!1}return!0},gn.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new _n(yt(this.ranges[e].anchor),yt(this.ranges[e].head));return new gn(t,this.primIndex)},gn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},gn.prototype.contains=function(t,e){e||(e=t);for(var i=0;i<this.ranges.length;i++){var r=this.ranges[i];if(0<=_t(e,r.from())&&_t(t,r.to())<=0)return i}return-1};var _n=function(t,e){this.anchor=t,this.head=e};function vn(t,e,i){var r=t&&t.options.selectionsMayTouch,n=e[i];e.sort(function(t,e){return _t(t.from(),e.from())}),i=H(e,n);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],l=_t(a.to(),s.from());if(r&&!s.empty()?0<l:0<=l){var c=Tt(a.from(),s.from()),h=xt(a.to(),s.to()),u=a.empty()?s.from()==s.head:a.from()==a.head;o<=i&&--i,e.splice(--o,2,new _n(u?h:c,u?c:h))}}return new gn(e,i)}function yn(t,e){return new gn([new _n(t,e||t)],0)}function xn(t){return t.text?gt(t.from.line+t.text.length-1,$(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Tn(t,e){if(_t(t,e.from)<0)return t;if(_t(t,e.to)<=0)return xn(e);var i=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=xn(e).ch-e.to.ch),gt(i,r)}function kn(t,e){for(var i=[],r=0;r<t.sel.ranges.length;r++){var n=t.sel.ranges[r];i.push(new _n(Tn(n.anchor,e),Tn(n.head,e)))}return vn(t.cm,i,t.sel.primIndex)}function bn(t,e,i){return t.line==e.line?gt(i.line,t.ch-e.ch+i.ch):gt(i.line+(t.line-e.line),t.ch)}function wn(t){t.doc.mode=Ae(t.options,t.doc.modeOption),En(t)}function En(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,tn(t,100),t.state.modeGen++,t.curOp&&$r(t)}function Cn(t,e){return 0==e.from.ch&&0==e.to.ch&&""==$(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Sn(t,r,e,n){function o(t){return e?e[t]:null}function i(t,e,i){!function(t,e,i,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),It(t),Rt(t,i);var n=r?r(t):1;n!=t.height&&ut(t,n)}(t,e,i,n),ai(t,"change",t,r)}function s(t,e){for(var i=[],r=t;r<e;++r)i.push(new Ye(c[r],o(r),n));return i}var a=r.from,l=r.to,c=r.text,h=lt(t,a.line),u=lt(t,l.line),f=$(c),d=o(c.length-1),p=l.line-a.line;if(r.full)t.insert(0,s(0,c.length)),t.remove(c.length,t.size-c.length);else if(Cn(t,r)){var m=s(0,c.length-1);i(u,u.text,d),p&&t.remove(a.line,p),m.length&&t.insert(a.line,m)}else if(h==u)if(1==c.length)i(h,h.text.slice(0,a.ch)+f+h.text.slice(l.ch),d);else{var g=s(1,c.length-1);g.push(new Ye(f+h.text.slice(l.ch),d,n)),i(h,h.text.slice(0,a.ch)+c[0],o(0)),t.insert(a.line+1,g)}else if(1==c.length)i(h,h.text.slice(0,a.ch)+c[0]+u.text.slice(l.ch),o(0)),t.remove(a.line+1,p);else{i(h,h.text.slice(0,a.ch)+c[0],o(0)),i(u,f+u.text.slice(l.ch),d);var _=s(1,c.length-1);1<p&&t.remove(a.line+1,p-1),t.insert(a.line+1,_)}ai(t,"change",t,r)}function An(t,a,l){!function t(e,i,r){if(e.linked)for(var n=0;n<e.linked.length;++n){var o=e.linked[n];if(o.doc!=i){var s=r&&o.sharedHist;l&&!s||(a(o.doc,s),t(o.doc,e,s))}}}(t,null,!0)}function Ln(t,e){if(e.cm)throw new Error("This document is already in use.");nr((t.doc=e).cm=t),wn(t),Nn(t),t.options.lineWrapping||$t(t),t.options.mode=e.modeOption,$r(t)}function Nn(t){("rtl"==t.doc.direction?R:C)(t.display.lineDiv,"CodeMirror-rtl")}function On(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function In(t,e){var i={from:yt(e.from),to:xn(e),text:ct(t,e.from,e.to)};return Bn(t,i,e.from.line,e.to.line+1),An(t,function(t){return Bn(t,i,e.from.line,e.to.line+1)},!0),i}function Rn(t){for(;t.length;){if(!$(t).ranges)break;t.pop()}}function Mn(t,e,i,r){var n=t.history;n.undone.length=0;var o,s,a,l=+new Date;if((n.lastOp==r||n.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&n.lastModTime>l-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=(a=n).lastOp==r?(Rn(a.done),$(a.done)):a.done.length&&!$(a.done).ranges?$(a.done):1<a.done.length&&!a.done[a.done.length-2].ranges?(a.done.pop(),$(a.done)):void 0))s=$(o.changes),0==_t(e.from,e.to)&&0==_t(e.from,s.to)?s.to=xn(e):o.changes.push(In(t,e));else{var c=$(n.done);for(c&&c.ranges||Pn(t.sel,n.done),o={changes:[In(t,e)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=l,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=e.origin,s||ne(t,"historyAdded")}function Dn(t,e,i,r){var n,o,s,a,l,c=t.history,h=r&&r.origin;i==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||(n=t,o=h,s=$(c.done),a=e,"*"==(l=o.charAt(0))||"+"==l&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)))?c.done[c.done.length-1]=e:Pn(e,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=i,r&&!1!==r.clearRedo&&Rn(c.undone)}function Pn(t,e){var i=$(e);i&&i.ranges&&i.equals(t)||e.push(t)}function Bn(e,i,t,r){var n=i["spans_"+e.id],o=0;e.iter(Math.max(e.first,t),Math.min(e.first+e.size,r),function(t){t.markedSpans&&((n||(n=i["spans_"+e.id]={}))[o]=t.markedSpans),++o})}function Fn(t){if(!t)return null;for(var e,i=0;i<t.length;++i)t[i].marker.explicitlyCleared?e||(e=t.slice(0,i)):e&&e.push(t[i]);return e?e.length?e:null:t}function Un(t,e){var i=function(t,e){var i=e["spans_"+t.id];if(!i)return null;for(var r=[],n=0;n<e.text.length;++n)r.push(Fn(i[n]));return r}(t,e),r=Nt(t,e);if(!i)return r;if(!r)return i;for(var n=0;n<i.length;++n){var o=i[n],s=r[n];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue t;o.push(l)}else s&&(i[n]=s)}return i}function Hn(t,e,i){for(var r=[],n=0;n<t.length;++n){var o=t[n];if(o.ranges)r.push(i?gn.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];r.push({changes:a});for(var l=0;l<s.length;++l){var c=s[l],h=void 0;if(a.push({from:c.from,to:c.to,text:c.text}),e)for(var u in c)(h=u.match(/^spans_(\d+)$/))&&-1<H(e,Number(h[1]))&&($(a)[u]=c[u],delete c[u])}}}return r}function Wn(t,e,i,r){if(r){var n=t.anchor;if(i){var o=_t(e,n)<0;o!=_t(i,n)<0?(n=e,e=i):o!=_t(e,i)<0&&(e=i)}return new _n(n,e)}return new _n(i||e,e)}function zn(t,e,i,r,n){null==n&&(n=t.cm&&(t.cm.display.shift||t.extend)),Yn(t,new gn([Wn(t.sel.primary(),e,i,n)],0),r)}function qn(t,e,i){for(var r=[],n=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=Wn(t.sel.ranges[o],e[o],null,n);Yn(t,vn(t.cm,r,t.sel.primIndex),i)}function Gn(t,e,i,r){var n=t.sel.ranges.slice(0);n[e]=i,Yn(t,vn(t.cm,n,t.sel.primIndex),r)}function jn(t,e,i,r){Yn(t,yn(e,i),r)}function Vn(t,e,i){var r=t.history.done,n=$(r);n&&n.ranges?Kn(t,r[r.length-1]=e,i):Yn(t,e,i)}function Yn(t,e,i){Kn(t,e,i),Dn(t,t.sel,t.cm?t.cm.curOp.id:NaN,i)}function Kn(t,e,i){var r,n,o,s;(ae(t,"beforeSelectionChange")||t.cm&&ae(t.cm,"beforeSelectionChange"))&&(r=t,o=i,s={ranges:(n=e).ranges,update:function(t){this.ranges=[];for(var e=0;e<t.length;e++)this.ranges[e]=new _n(bt(r,t[e].anchor),bt(r,t[e].head))},origin:o&&o.origin},ne(r,"beforeSelectionChange",r,s),r.cm&&ne(r.cm,"beforeSelectionChange",r.cm,s),e=s.ranges!=n.ranges?vn(r.cm,s.ranges,s.ranges.length-1):n),$n(t,Xn(t,e,i&&i.bias||(_t(e.primary().head,t.sel.primary().head)<0?-1:1),!0)),i&&!1===i.scroll||!t.cm||wr(t.cm)}function $n(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,se(t.cm)),ai(t,"cursorActivity",t))}function Qn(t){$n(t,Xn(t,t.sel,null,!1))}function Xn(t,e,i,r){for(var n,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Zn(t,s.anchor,a&&a.anchor,i,r),c=Zn(t,s.head,a&&a.head,i,r);(n||l!=s.anchor||c!=s.head)&&(n||(n=e.ranges.slice(0,o)),n[o]=new _n(l,c))}return n?vn(t.cm,n,e.primIndex):e}function Jn(t,e,i,r,n){var o=lt(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker;if((null==a.from||(l.inclusiveLeft?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(l.inclusiveRight?a.to>=e.ch:a.to>e.ch))){if(n&&(ne(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(i){var c=l.find(r<0?1:-1),h=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=to(t,c,-r,c&&c.line==e.line?o:null)),c&&c.line==e.line&&(h=_t(c,i))&&(r<0?h<0:0<h))return Jn(t,c,e,r,n)}var u=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(u=to(t,u,r,u.line==e.line?o:null)),u?Jn(t,u,e,r,n):null}}return e}function Zn(t,e,i,r,n){var o=r||1,s=Jn(t,e,i,o,n)||!n&&Jn(t,e,i,o,!0)||Jn(t,e,i,-o,n)||!n&&Jn(t,e,i,-o,!0);return s||(t.cantEdit=!0,gt(t.first,0))}function to(t,e,i,r){return i<0&&0==e.ch?e.line>t.first?bt(t,gt(e.line-1)):null:0<i&&e.ch==(r||lt(t,e.line)).text.length?e.line<t.first+t.size-1?gt(e.line+1,0):null:new gt(e.line,e.ch+i)}function eo(t){t.setSelection(gt(t.firstLine(),0),gt(t.lastLine()),q)}function io(n,t,e){var o={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return o.canceled=!0}};return e&&(o.update=function(t,e,i,r){t&&(o.from=bt(n,t)),e&&(o.to=bt(n,e)),i&&(o.text=i),void 0!==r&&(o.origin=r)}),ne(n,"beforeChange",n,o),n.cm&&ne(n.cm,"beforeChange",n.cm,o),o.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function ro(t,e,i){if(t.cm){if(!t.cm.curOp)return Vr(t.cm,ro)(t,e,i);if(t.cm.state.suppressEdits)return}if(!(ae(t,"beforeChange")||t.cm&&ae(t.cm,"beforeChange"))||(e=io(t,e,!0))){var r=Et&&!i&&function(t,e,i){var r=null;if(t.iter(e.line,i.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var i=t.markedSpans[e].marker;!i.readOnly||r&&-1!=H(r,i)||(r||(r=[])).push(i)}}),!r)return null;for(var n=[{from:e,to:i}],o=0;o<r.length;++o)for(var s=r[o],a=s.find(0),l=0;l<n.length;++l){var c=n[l];if(!(_t(c.to,a.from)<0||0<_t(c.from,a.to))){var h=[l,1],u=_t(c.from,a.from),f=_t(c.to,a.to);(u<0||!s.inclusiveLeft&&!u)&&h.push({from:c.from,to:a.from}),(0<f||!s.inclusiveRight&&!f)&&h.push({from:a.to,to:c.to}),n.splice.apply(n,h),l+=h.length-3}}return n}(t,e.from,e.to);if(r)for(var n=r.length-1;0<=n;--n)no(t,{from:r[n].from,to:r[n].to,text:n?[""]:e.text,origin:e.origin});else no(t,e)}}function no(t,i){if(1!=i.text.length||""!=i.text[0]||0!=_t(i.from,i.to)){var e=kn(t,i);Mn(t,i,e,t.cm?t.cm.curOp.id:NaN),ao(t,i,e,Nt(t,i));var r=[];An(t,function(t,e){e||-1!=H(r,t.history)||(uo(t.history,i),r.push(t.history)),ao(t,i,null,Nt(t,i))})}}function oo(n,o,t){var e=n.cm&&n.cm.state.suppressEdits;if(!e||t){for(var s,i=n.history,r=n.sel,a="undo"==o?i.done:i.undone,l="undo"==o?i.undone:i.done,c=0;c<a.length&&(s=a[c],t?!s.ranges||s.equals(n.sel):s.ranges);c++);if(c!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(s=a.pop()).ranges){if(e)return void a.push(s);break}if(Pn(s,l),t&&!s.equals(n.sel))return void Yn(n,s,{clearRedo:!1});r=s}var h=[];Pn(r,l),l.push({changes:h,generation:i.generation}),i.generation=s.generation||++i.maxGeneration;for(var u=ae(n,"beforeChange")||n.cm&&ae(n.cm,"beforeChange"),f=function(t){var i=s.changes[t];if(i.origin=o,u&&!io(n,i,!1))return a.length=0,{};h.push(In(n,i));var e=t?kn(n,i):$(a);ao(n,i,e,Un(n,i)),!t&&n.cm&&n.cm.scrollIntoView({from:i.from,to:xn(i)});var r=[];An(n,function(t,e){e||-1!=H(r,t.history)||(uo(t.history,i),r.push(t.history)),ao(t,i,null,Un(t,i))})},d=s.changes.length-1;0<=d;--d){var p=f(d);if(p)return p.v}}}}function so(t,e){if(0!=e&&(t.first+=e,t.sel=new gn(Q(t.sel.ranges,function(t){return new _n(gt(t.anchor.line+e,t.anchor.ch),gt(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){$r(t.cm,t.first,t.first-e,e);for(var i=t.cm.display,r=i.viewFrom;r<i.viewTo;r++)Qr(t.cm,r,"gutter")}}function ao(t,e,i,r){if(t.cm&&!t.cm.curOp)return Vr(t.cm,ao)(t,e,i,r);if(e.to.line<t.first)so(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var n=e.text.length-1-(t.first-e.from.line);so(t,n),e={from:gt(t.first,0),to:gt(e.to.line+n,e.to.ch),text:[$(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:gt(o,lt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ct(t,e.from,e.to),i||(i=kn(t,e)),t.cm?function(t,e,i){var r=t.doc,n=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=ft(zt(lt(r,o.line))),r.iter(l,s.line+1,function(t){if(t==n.maxLine)return a=!0}));-1<r.sel.contains(e.from,e.to)&&se(t);Sn(r,e,i,rr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,function(t){var e=Kt(t);e>n.maxLineLength&&(n.maxLine=t,n.maxLineLength=e,n.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0));(function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var i=t.first,r=e-1;i<r;r--){var n=lt(t,r).stateAfter;if(n&&(!(n instanceof De)||r+n.lookAhead<e)){i=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,i)}})(r,o.line),tn(t,400);var c=e.text.length-(s.line-o.line)-1;e.full?$r(t):o.line!=s.line||1!=e.text.length||Cn(t.doc,e)?$r(t,o.line,s.line+1,c):Qr(t,o.line,"text");var h=ae(t,"changes"),u=ae(t,"change");if(u||h){var f={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};u&&ai(t,"change",t,f),h&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}(t.cm,e,r):Sn(t,e,r),Kn(t,i,q)}}function lo(t,e,i,r,n){var o;r||(r=i),_t(r,i)<0&&(i=(o=[r,i])[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),ro(t,{from:i,to:r,text:e,origin:n})}function co(t,e,i,r){i<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function ho(t,e,i,r){for(var n=0;n<t.length;++n){var o=t[n],s=!0;if(o.ranges){o.copied||((o=t[n]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)co(o.ranges[a].anchor,e,i,r),co(o.ranges[a].head,e,i,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(i<c.from.line)c.from=gt(c.from.line+r,c.from.ch),c.to=gt(c.to.line+r,c.to.ch);else if(e<=c.to.line){s=!1;break}}s||(t.splice(0,n+1),n=0)}}}function uo(t,e){var i=e.from.line,r=e.to.line,n=e.text.length-(r-i)-1;ho(t.done,i,r,n),ho(t.undone,i,r,n)}function fo(t,e,i,r){var n=e,o=e;return"number"==typeof e?o=lt(t,kt(t,e)):n=ft(e),null==n?null:(r(o,n)&&t.cm&&Qr(t.cm,n,i),o)}function po(t){this.lines=t,this.parent=null;for(var e=0,i=0;i<t.length;++i)t[i].parent=this,e+=t[i].height;this.height=e}function mo(t){this.children=t;for(var e=0,i=0,r=0;r<t.length;++r){var n=t[r];e+=n.chunkSize(),i+=n.height,n.parent=this}this.size=e,this.height=i,this.parent=null}_n.prototype.from=function(){return Tt(this.anchor,this.head)},_n.prototype.to=function(){return xt(this.anchor,this.head)},_n.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},po.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var i,r=t,n=t+e;r<n;++r){var o=this.lines[r];this.height-=o.height,(i=o).parent=null,It(i),ai(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,i){this.height+=i,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,i){for(var r=t+e;t<r;++t)if(i(this.lines[t]))return!0}},mo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var i=0;i<this.children.length;++i){var r=this.children[i],n=r.chunkSize();if(t<n){var o=Math.min(e,n-t),s=r.height;if(r.removeInner(t,o),this.height-=s-r.height,n==o&&(this.children.splice(i--,1),r.parent=null),0==(e-=o))break;t=0}else t-=n}if(this.size-e<25&&(1<this.children.length||!(this.children[0]instanceof po))){var a=[];this.collapse(a),this.children=[new po(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,i){this.size+=e.length,this.height+=i;for(var r=0;r<this.children.length;++r){var n=this.children[r],o=n.chunkSize();if(t<=o){if(n.insertInner(t,e,i),n.lines&&50<n.lines.length){for(var s=n.lines.length%25+25,a=s;a<n.lines.length;){var l=new po(n.lines.slice(a,a+=25));n.height-=l.height,this.children.splice(++r,0,l),l.parent=this}n.lines=n.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new mo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var i=H(t.parent.children,t);t.parent.children.splice(i+1,0,e)}else{var r=new mo(t.children);(r.parent=t).children=[r,e],t=r}e.parent=t.parent}while(10<t.children.length);t.parent.maybeSpill()}},iterN:function(t,e,i){for(var r=0;r<this.children.length;++r){var n=this.children[r],o=n.chunkSize();if(t<o){var s=Math.min(e,o-t);if(n.iterN(t,s,i))return!0;if(0==(e-=s))break;t=0}else t-=o}}};var go=function(t,e,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=t,this.node=e};function _o(t,e,i){Yt(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&br(t,i)}go.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,i=this.line,r=ft(i);if(null!=r&&e){for(var n=0;n<e.length;++n)e[n]==this&&e.splice(n--,1);e.length||(i.widgets=null);var o=yi(this);ut(i,Math.max(0,i.height-o)),t&&(jr(t,function(){_o(t,i,-o),Qr(t,r,"widget")}),ai(t,"lineWidgetCleared",t,this,r))}},go.prototype.changed=function(){var t=this,e=this.height,i=this.doc.cm,r=this.line;this.height=null;var n=yi(this)-e;n&&(jt(this.doc,r)||ut(r,r.height+n),i&&jr(i,function(){i.curOp.forceUpdate=!0,_o(i,r,n),ai(i,"lineWidgetChanged",i,t,ft(r))}))},le(go);var vo=0,yo=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++vo};function xo(e,r,n,t,i){if(t&&t.shared)return function(t,i,r,n,o){(n=B(n)).shared=!1;var s=[xo(t,i,r,n,o)],a=s[0],l=n.widgetNode;return An(t,function(t){l&&(n.widgetNode=l.cloneNode(!0)),s.push(xo(t,bt(t,i),bt(t,r),n,o));for(var e=0;e<t.linked.length;++e)if(t.linked[e].isParent)return;a=$(s)}),new To(s,a)}(e,r,n,t,i);if(e.cm&&!e.cm.curOp)return Vr(e.cm,xo)(e,r,n,t,i);var o=new yo(e,i),s=_t(r,n);if(t&&B(t,o,!1),0<s||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),t.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),t.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Wt(e,r.line,r,n,o)||r.line!=n.line&&Wt(e,n.line,r,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Mn(e,{from:r,to:n,origin:"markText"},e.sel,NaN);var a,l=r.line,c=e.cm;if(e.iter(l,n.line+1,function(t){var e,i;c&&o.collapsed&&!c.options.lineWrapping&&zt(t)==c.display.maxLine&&(a=!0),o.collapsed&&l!=r.line&&ut(t,0),e=t,i=new St(o,l==r.line?r.ch:null,l==n.line?n.ch:null),e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],i.marker.attachLine(e),++l}),o.collapsed&&e.iter(r.line,n.line+1,function(t){jt(e,t)&&ut(t,0)}),o.clearOnEnter&&ee(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Et=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++vo,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)$r(c,r.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var h=r.line;h<=n.line;h++)Qr(c,h,"text");o.atomic&&Qn(c.doc),ai(c,"markerAdded",c,o)}return o}yo.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ur(e),ae(this,"clear")){var r=this.find();r&&ai(this,"clear",r.from,r.to)}for(var n=null,o=null,s=0;s<this.lines.length;++s){var a=t.lines[s],l=At(a.markedSpans,t);e&&!t.collapsed?Qr(e,ft(a),"text"):e&&(null!=l.to&&(o=ft(a)),null!=l.from&&(n=ft(a))),a.markedSpans=Lt(a.markedSpans,l),null==l.from&&t.collapsed&&!jt(t.doc,a)&&e&&ut(a,Zi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var h=zt(t.lines[c]),u=Kt(h);u>e.display.maxLineLength&&(e.display.maxLine=h,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&$r(e,n,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qn(e.doc)),e&&ai(e,"markerCleared",e,this,n,o),i&&Hr(e),this.parent&&this.parent.clear()}},yo.prototype.find=function(t,e){var i,r;null==t&&"bookmark"==this.type&&(t=1);for(var n=0;n<this.lines.length;++n){var o=this.lines[n],s=At(o.markedSpans,this);if(null!=s.from&&(i=gt(e?o:ft(o),s.from),-1==t))return i;if(null!=s.to&&(r=gt(e?o:ft(o),s.to),1==t))return r}return i&&{from:i,to:r}},yo.prototype.changed=function(){var o=this,s=this.find(-1,!0),a=this,l=this.doc.cm;s&&l&&jr(l,function(){var t=s.line,e=ft(s.line),i=Li(l,e);if(i&&(Pi(i),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!jt(a.doc,t)&&null!=a.height){var r=a.height;a.height=null;var n=yi(a)-r;n&&ut(t,t.height+n)}ai(l,"markerChanged",l,o)})},yo.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=H(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},yo.prototype.detachLine=function(t){if(this.lines.splice(H(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},le(yo);var To=function(t,e){this.markers=t,this.primary=e;for(var i=0;i<t.length;++i)t[i].parent=this};function ko(t){return t.findMarks(gt(t.first,0),t.clipPos(gt(t.lastLine())),function(t){return t.parent})}function bo(o){for(var t=function(t){var e=o[t],i=[e.primary.doc];An(e.primary.doc,function(t){return i.push(t)});for(var r=0;r<e.markers.length;r++){var n=e.markers[r];-1==H(i,n.doc)&&(n.parent=null,e.markers.splice(r--,1))}},e=0;e<o.length;e++)t(e)}To.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();ai(this,"clear")}},To.prototype.find=function(t,e){return this.primary.find(t,e)},le(To);var wo=0,Eo=function(t,e,i,r,n){if(!(this instanceof Eo))return new Eo(t,e,i,r,n);null==i&&(i=0),mo.call(this,[new po([new Ye("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var o=gt(i,0);this.sel=yn(o),this.history=new On(null),this.id=++wo,this.modeOption=e,this.lineSep=r,this.direction="rtl"==n?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Sn(this,{from:o,to:o,text:t}),Yn(this,yn(o),q)};Eo.prototype=J(mo.prototype,{constructor:Eo,iter:function(t,e,i){i?this.iterN(t-this.first,e-t,i):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var i=0,r=0;r<e.length;++r)i+=e[r].height;this.insertInner(t-this.first,e,i)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=ht(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Kr(function(t){var e=gt(this.first,0),i=this.first+this.size-1;ro(this,{from:e,to:gt(i,lt(this,i).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Er(this.cm,0,0),Yn(this,yn(e),q)}),replaceRange:function(t,e,i,r){lo(this,t,e=bt(this,e),i=i?bt(this,i):e,r)},getRange:function(t,e,i){var r=ct(this,bt(this,t),bt(this,e));return!1===i?r:r.join(i||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(pt(this,t))return lt(this,t)},getLineNumber:function(t){return ft(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=lt(this,t)),zt(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return bt(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Kr(function(t,e,i){jn(this,bt(this,"number"==typeof t?gt(t,e||0):t),null,i)}),setSelection:Kr(function(t,e,i){jn(this,bt(this,t),bt(this,e||t),i)}),extendSelection:Kr(function(t,e,i){zn(this,bt(this,t),e&&bt(this,e),i)}),extendSelections:Kr(function(t,e){qn(this,wt(this,t),e)}),extendSelectionsBy:Kr(function(t,e){qn(this,wt(this,Q(this.sel.ranges,t)),e)}),setSelections:Kr(function(t,e,i){if(t.length){for(var r=[],n=0;n<t.length;n++)r[n]=new _n(bt(this,t[n].anchor),bt(this,t[n].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Yn(this,vn(this.cm,r,e),i)}}),addSelection:Kr(function(t,e,i){var r=this.sel.ranges.slice(0);r.push(new _n(bt(this,t),bt(this,e||t))),Yn(this,vn(this.cm,r,r.length-1),i)}),getSelection:function(t){for(var e,i=this.sel.ranges,r=0;r<i.length;r++){var n=ct(this,i[r].from(),i[r].to());e=e?e.concat(n):n}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],i=this.sel.ranges,r=0;r<i.length;r++){var n=ct(this,i[r].from(),i[r].to());!1!==t&&(n=n.join(t||this.lineSeparator())),e[r]=n}return e},replaceSelection:function(t,e,i){for(var r=[],n=0;n<this.sel.ranges.length;n++)r[n]=t;this.replaceSelections(r,e,i||"+input")},replaceSelections:Kr(function(t,e,i){for(var r=[],n=this.sel,o=0;o<n.ranges.length;o++){var s=n.ranges[o];r[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:i}}for(var a=e&&"end"!=e&&function(t,e,i){for(var r=[],n=gt(t.first,0),o=n,s=0;s<e.length;s++){var a=e[s],l=bn(a.from,n,o),c=bn(xn(a),n,o);if(n=a.to,o=c,"around"==i){var h=t.sel.ranges[s],u=_t(h.head,h.anchor)<0;r[s]=new _n(u?c:l,u?l:c)}else r[s]=new _n(l,l)}return new gn(r,t.sel.primIndex)}(this,r,e),l=r.length-1;0<=l;l--)ro(this,r[l]);a?Vn(this,a):this.cm&&wr(this.cm)}),undo:Kr(function(){oo(this,"undo")}),redo:Kr(function(){oo(this,"redo")}),undoSelection:Kr(function(){oo(this,"undo",!0)}),redoSelection:Kr(function(){oo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,i=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var n=0;n<t.undone.length;n++)t.undone[n].ranges||++i;return{undo:e,redo:i}},clearHistory:function(){this.history=new On(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Hn(this.history.done),undone:Hn(this.history.undone)}},setHistory:function(t){var e=this.history=new On(this.history.maxGeneration);e.done=Hn(t.done.slice(0),null,!0),e.undone=Hn(t.undone.slice(0),null,!0)},setGutterMarker:Kr(function(t,i,r){return fo(this,t,"gutter",function(t){var e=t.gutterMarkers||(t.gutterMarkers={});return!(e[i]=r)&&it(e)&&(t.gutterMarkers=null),!0})}),clearGutter:Kr(function(e){var i=this;this.iter(function(t){t.gutterMarkers&&t.gutterMarkers[e]&&fo(i,t,"gutter",function(){return t.gutterMarkers[e]=null,it(t.gutterMarkers)&&(t.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!pt(this,t))return null;if(!(t=lt(this,e=t)))return null}else if(null==(e=ft(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Kr(function(t,i,r){return fo(this,t,"gutter"==i?"gutter":"class",function(t){var e="text"==i?"textClass":"background"==i?"bgClass":"gutter"==i?"gutterClass":"wrapClass";if(t[e]){if(w(r).test(t[e]))return!1;t[e]+=" "+r}else t[e]=r;return!0})}),removeLineClass:Kr(function(t,o,s){return fo(this,t,"gutter"==o?"gutter":"class",function(t){var e="text"==o?"textClass":"background"==o?"bgClass":"gutter"==o?"gutterClass":"wrapClass",i=t[e];if(!i)return!1;if(null==s)t[e]=null;else{var r=i.match(w(s));if(!r)return!1;var n=r.index+r[0].length;t[e]=i.slice(0,r.index)+(r.index&&n!=i.length?" ":"")+i.slice(n)||null}return!0})}),addLineWidget:Kr(function(t,e,i){return n=t,o=new go(r=this,e,i),(s=r.cm)&&o.noHScroll&&(s.display.alignWidgets=!0),fo(r,n,"widget",function(t){var e=t.widgets||(t.widgets=[]);if(null==o.insertAt?e.push(o):e.splice(Math.min(e.length-1,Math.max(0,o.insertAt)),0,o),o.line=t,s&&!jt(r,t)){var i=Yt(t)<r.scrollTop;ut(t,t.height+yi(o)),i&&br(s,o.height),s.curOp.forceUpdate=!0}return!0}),s&&ai(s,"lineWidgetAdded",s,o,"number"==typeof n?n:ft(n)),o;var r,n,o,s}),removeLineWidget:function(t){t.clear()},markText:function(t,e,i){return xo(this,bt(this,t),bt(this,e),i,i&&i.type||"range")},setBookmark:function(t,e){var i={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return xo(this,t=bt(this,t),t,i,"bookmark")},findMarksAt:function(t){var e=[],i=lt(this,(t=bt(this,t)).line).markedSpans;if(i)for(var r=0;r<i.length;++r){var n=i[r];(null==n.from||n.from<=t.ch)&&(null==n.to||n.to>=t.ch)&&e.push(n.marker.parent||n.marker)}return e},findMarks:function(n,o,s){n=bt(this,n),o=bt(this,o);var a=[],l=n.line;return this.iter(n.line,o.line+1,function(t){var e=t.markedSpans;if(e)for(var i=0;i<e.length;i++){var r=e[i];null!=r.to&&l==n.line&&n.ch>=r.to||null==r.from&&l!=n.line||null!=r.from&&l==o.line&&r.from>=o.ch||s&&!s(r.marker)||a.push(r.marker.parent||r.marker)}++l}),a},getAllMarks:function(){var r=[];return this.iter(function(t){var e=t.markedSpans;if(e)for(var i=0;i<e.length;++i)null!=e[i].from&&r.push(e[i].marker)}),r},posFromIndex:function(i){var r,n=this.first,o=this.lineSeparator().length;return this.iter(function(t){var e=t.text.length+o;if(i<e)return r=i,!0;i-=e,++n}),bt(this,gt(n,r))},indexFromPos:function(t){var e=(t=bt(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+i}),e},copy:function(t){var e=new Eo(ht(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,i=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<i&&(i=t.to);var r=new Eo(ht(this,e,i),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var i=0;i<e.length;i++){var r=e[i],n=r.find(),o=t.clipPos(n.from),s=t.clipPos(n.to);if(_t(o,s)){var a=xo(t,o,s,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,ko(this)),r},unlinkDoc:function(t){if(t instanceof ks&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e){if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),bo(ko(this));break}}if(t.history==this.history){var i=[t.id];An(t,function(t){return i.push(t.id)},!0),t.history=new On(null),t.history.done=Hn(this.history.done,i),t.history.undone=Hn(this.history.undone,i)}},iterLinkedDocs:function(t){An(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Te(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Kr(function(t){var e;("rtl"!=t&&(t="ltr"),t!=this.direction)&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&jr(e=this.cm,function(){Nn(e),$r(e)}))})}),Eo.prototype.eachLine=Eo.prototype.iter;var Co=0;function So(t){var n=this;if(Ao(n),!oe(n,t)&&!xi(n.display,t)){ce(t),T&&(Co=+new Date);var o=or(n,t,!0),e=t.dataTransfer.files;if(o&&!n.isReadOnly())if(e&&e.length&&window.FileReader&&window.File)for(var s=e.length,a=Array(s),l=0,i=function(t,i){if(!n.options.allowDropFileTypes||-1!=H(n.options.allowDropFileTypes,t.type)){var r=new FileReader;r.onload=Vr(n,function(){var t=r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),a[i]=t,++l==s){var e={from:o=bt(n.doc,o),to:o,text:n.doc.splitLines(a.join(n.doc.lineSeparator())),origin:"paste"};ro(n.doc,e),Vn(n.doc,yn(o,xn(e)))}}),r.readAsText(t)}},r=0;r<s;++r)i(e[r],r);else{if(n.state.draggingText&&-1<n.doc.sel.contains(o))return n.state.draggingText(t),void setTimeout(function(){return n.display.input.focus()},20);try{var c=t.dataTransfer.getData("Text");if(c){var h;if(n.state.draggingText&&!n.state.draggingText.copy&&(h=n.listSelections()),Kn(n.doc,yn(o,o)),h)for(var u=0;u<h.length;++u)lo(n.doc,"",h[u].anchor,h[u].head,"drag");n.replaceSelection(c,"around","paste"),n.display.input.focus()}}catch(t){}}}}function Ao(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],r=0;r<t.length;r++){var n=t[r].CodeMirror;n&&i.push(n)}i.length&&i[0].operation(function(){for(var t=0;t<i.length;t++)e(i[t])})}}var No=!1;function Oo(){var t;No||(ee(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,Lo(Io)},100))}),ee(window,"blur",function(){return Lo(gr)}),No=!0)}function Io(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Ro={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"},Mo=0;Mo<10;Mo++)Ro[Mo+48]=Ro[Mo+96]=String(Mo);for(var Do=65;Do<=90;Do++)Ro[Do]=String.fromCharCode(Do);for(var Po=1;Po<=12;Po++)Ro[Po+111]=Ro[Po+63235]="F"+Po;var Bo={};function Fo(t){var e,i,r,n,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))n=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return e&&(t="Alt-"+t),i&&(t="Ctrl-"+t),n&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Uo(t){var e={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if("..."==r){delete t[i];continue}for(var n=Q(i.split(" "),Fo),o=0;o<n.length;o++){var s=void 0,a=void 0;s=o==n.length-1?(a=n.join(" "),r):(a=n.slice(0,o+1).join(" "),"...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[i]}for(var c in e)t[c]=e[c];return t}function Ho(t,e,i,r){var n=(e=Go(e)).call?e.call(t,r):e[t];if(!1===n)return"nothing";if("..."===n)return"multi";if(null!=n&&i(n))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Ho(t,e.fallthrough,i,r);for(var o=0;o<e.fallthrough.length;o++){var s=Ho(t,e.fallthrough[o],i,r);if(s)return s}}}function Wo(t){var e="string"==typeof t?t:Ro[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function zo(t,e,i){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(v?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(v?e.ctrlKey:e.metaKey)&&"Cmd"!=r&&(t="Cmd-"+t),!i&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function qo(t,e){if(g&&34==t.keyCode&&t.char)return!1;var i=Ro[t.keyCode];return null!=i&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(i=t.code),zo(i,t,e))}function Go(t){return"string"==typeof t?Bo[t]:t}function jo(e,t){for(var i=e.doc.sel.ranges,r=[],n=0;n<i.length;n++){for(var o=t(i[n]);r.length&&_t(o.from,$(r).to)<=0;){var s=r.pop();if(_t(s.from,o.from)<0){o.from=s.from;break}}r.push(o)}jr(e,function(){for(var t=r.length-1;0<=t;t--)lo(e.doc,"",r[t].from,r[t].to,"+delete");wr(e)})}function Vo(t,e,i){var r=ot(t.text,e+i,i);return r<0||r>t.text.length?null:r}function Yo(t,e,i){var r=Vo(t,e.ch,i);return null==r?null:new gt(e.line,r,i<0?"after":"before")}function Ko(t,e,i,r,n){if(t){var o=Zt(i,e.doc.direction);if(o){var s,a=n<0?$(o):o[0],l=n<0==(1==a.level)?"after":"before";if(0<a.level||"rtl"==e.doc.direction){var c=Ni(e,i);s=n<0?i.text.length-1:0;var h=Oi(e,c,s).top;s=st(function(t){return Oi(e,c,t).top==h},n<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Vo(i,s,1))}else s=n<0?a.to:a.from;return new gt(r,s,l)}}return new gt(r,n<0?i.text.length:0,n<0?"before":"after")}Bo.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"},Bo.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"},Bo.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"},Bo.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"]},Bo.default=x?Bo.macDefault:Bo.pcDefault;var $o={selectAll:eo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),q)},killLine:function(i){return jo(i,function(t){if(t.empty()){var e=lt(i.doc,t.head.line).text.length;return t.head.ch==e&&t.head.line<i.lastLine()?{from:t.head,to:gt(t.head.line+1,0)}:{from:t.head,to:gt(t.head.line,e)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return jo(e,function(t){return{from:gt(t.from().line,0),to:bt(e.doc,gt(t.to().line+1,0))}})},delLineLeft:function(t){return jo(t,function(t){return{from:gt(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(i){return jo(i,function(t){var e=i.charCoords(t.head,"div").top+5;return{from:i.coordsChar({left:0,top:e},"div"),to:t.from()}})},delWrappedLineRight:function(r){return jo(r,function(t){var e=r.charCoords(t.head,"div").top+5,i=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:e},"div");return{from:t.from(),to:i}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(gt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(gt(t.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Xo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(t,e){var i=lt(t.doc,e),r=function(t){for(var e;e=Ut(t);)t=e.find(1,!0).line;return t}(i);r!=i&&(e=ft(r));return Ko(!0,t,i,e,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(t){var e=i.cursorCoords(t.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:e},"div")},j)},goLineLeft:function(i){return i.extendSelectionsBy(function(t){var e=i.cursorCoords(t.head,"div").top+5;return i.coordsChar({left:0,top:e},"div")},j)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(t){var e=r.cursorCoords(t.head,"div").top+5,i=r.coordsChar({left:0,top:e},"div");return i.ch<r.getLine(i.line).search(/\S/)?Xo(r,t.head):i},j)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],i=t.listSelections(),r=t.options.tabSize,n=0;n<i.length;n++){var o=i[n].from(),s=F(t.getLine(o.line),o.ch,r);e.push(K(r-s%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(s){return jr(s,function(){for(var t=s.listSelections(),e=[],i=0;i<t.length;i++)if(t[i].empty()){var r=t[i].head,n=lt(s.doc,r.line).text;if(n)if(r.ch==n.length&&(r=new gt(r.line,r.ch-1)),0<r.ch)r=new gt(r.line,r.ch+1),s.replaceRange(n.charAt(r.ch-1)+n.charAt(r.ch-2),gt(r.line,r.ch-2),r,"+transpose");else if(r.line>s.doc.first){var o=lt(s.doc,r.line-1).text;o&&(r=new gt(r.line,1),s.replaceRange(n.charAt(0)+s.doc.lineSeparator()+o.charAt(o.length-1),gt(r.line-1,o.length-1),r,"+transpose"))}e.push(new _n(r,r))}s.setSelections(e)})},newlineAndIndent:function(r){return jr(r,function(){for(var t=r.listSelections(),e=t.length-1;0<=e;e--)r.replaceRange(r.doc.lineSeparator(),t[e].anchor,t[e].head,"+input");t=r.listSelections();for(var i=0;i<t.length;i++)r.indentLine(t[i].from().line,null,!0);wr(r)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Qo(t,e){var i=lt(t.doc,e),r=zt(i);return r!=i&&(e=ft(r)),Ko(!0,t,r,e,1)}function Xo(t,e){var i=Qo(t,e.line),r=lt(t.doc,i.line),n=Zt(r,t.doc.direction);if(n&&0!=n[0].level)return i;var o=Math.max(0,r.text.search(/\S/)),s=e.line==i.line&&e.ch<=o&&e.ch;return gt(i.line,s?0:o,i.sticky)}function Jo(t,e,i){if("string"==typeof e&&!(e=$o[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,n=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i&&(t.display.shift=!1),n=e(t)!=z}finally{t.display.shift=r,t.state.suppressEdits=!1}return n}var Zo=new U;function ts(t,e,i,r){var n=t.state.keySeq;if(n){if(Wo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:Zo.set(50,function(){t.state.keySeq==n&&(t.state.keySeq=null,t.display.input.reset())}),es(t,n+" "+e,i,r))return!0}return es(t,e,i,r)}function es(t,e,i,r){var n=function(t,e,i){for(var r=0;r<t.state.keyMaps.length;r++){var n=Ho(e,t.state.keyMaps[r],i,t);if(n)return n}return t.options.extraKeys&&Ho(e,t.options.extraKeys,i,t)||Ho(e,t.options.keyMap,i,t)}(t,e,r);return"multi"==n&&(t.state.keySeq=e),"handled"==n&&ai(t,"keyHandled",t,e,i),"handled"!=n&&"multi"!=n||(ce(i),fr(t)),!!n}function is(e,t){var i=qo(t,!0);return!!i&&(t.shiftKey&&!e.state.keySeq?ts(e,"Shift-"+i,t,function(t){return Jo(e,t,!0)})||ts(e,i,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Jo(e,t)}):ts(e,i,t,function(t){return Jo(e,t)}))}var rs=null;function ns(t){if(this.curOp.focus=I(),!oe(this,t)){T&&k<11&&27==t.keyCode&&(t.returnValue=!1);var e=t.keyCode;this.display.shift=16==e||t.shiftKey;var i=is(this,t);g&&(rs=i?e:null,!i&&88==e&&!be&&(x?t.metaKey:t.ctrlKey)&&this.replaceSelection("",null,"cut")),18!=e||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function i(t){18!=t.keyCode&&t.altKey||(C(e,"CodeMirror-crosshair"),re(document,"keyup",i),re(document,"mouseover",i))}R(e,"CodeMirror-crosshair"),ee(document,"keyup",i),ee(document,"mouseover",i)}(this)}}function os(t){16==t.keyCode&&(this.doc.sel.shift=!1),oe(this,t)}function ss(t){if(!(xi(this.display,t)||oe(this,t)||t.ctrlKey&&!t.altKey||x&&t.metaKey)){var e=t.keyCode,i=t.charCode;if(g&&e==rs)return rs=null,void ce(t);if(!g||t.which&&!(t.which<10)||!is(this,t)){var r,n=String.fromCharCode(null==i?e:i);if("\b"!=n)if(!ts(r=this,"'"+n+"'",t,function(t){return Jo(r,t,!0)}))this.display.input.onKeyPress(t)}}}var as,ls,cs=function(t,e,i){this.time=t,this.pos=e,this.button=i};function hs(t){var e=this,i=e.display;if(!(oe(e,t)||i.activeTouch&&i.input.supportsTouch()))if(i.input.ensurePolled(),i.shift=t.shiftKey,xi(i,t))y||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));else if(!ds(e,t)){var r,n,o,s=or(e,t),a=pe(t),l=s?(r=s,n=a,o=+new Date,ls&&ls.compare(o,r,n)?(as=ls=null,"triple"):as&&as.compare(o,r,n)?(ls=new cs(o,r,n),as=null,"double"):(as=new cs(o,r,n),ls=null,"single")):"single";window.focus(),1==a&&e.state.selectingText&&e.state.selectingText(t),s&&function(i,t,r,e,n){var o="Click";"double"==e?o="Double"+o:"triple"==e&&(o="Triple"+o);return ts(i,zo(o=(1==t?"Left":2==t?"Middle":"Right")+o,n),n,function(t){if("string"==typeof t&&(t=$o[t]),!t)return!1;var e=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),e=t(i,r)!=z}finally{i.state.suppressEdits=!1}return e})}(e,a,s,l,t)||(1==a?s?function(t,e,i,r){T?setTimeout(P(dr,t),0):t.curOp.focus=I();var n,o=function(t,e,i){var r=t.getOption("configureMouse"),n=r?r(t,e,i):{};if(null==n.unit){var o=d?i.shiftKey&&i.metaKey:i.altKey;n.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}(null==n.extend||t.doc.extend)&&(n.extend=t.doc.extend||i.shiftKey);null==n.addNew&&(n.addNew=x?i.metaKey:i.ctrlKey);null==n.moveOnDrag&&(n.moveOnDrag=!(x?i.altKey:i.ctrlKey));return n}(t,i,r),s=t.doc.sel;t.options.dragDrop&&_e&&!t.isReadOnly()&&"single"==i&&-1<(n=s.contains(e))&&(_t((n=s.ranges[n]).from(),e)<0||0<e.xRel)&&(0<_t(n.to(),e)||e.xRel<0)?function(e,i,r,n){var o=e.display,s=!1,a=Vr(e,function(t){y&&(o.scroller.draggable=!1),e.state.draggingText=!1,re(o.wrapper.ownerDocument,"mouseup",a),re(o.wrapper.ownerDocument,"mousemove",l),re(o.scroller,"dragstart",c),re(o.scroller,"drop",a),s||(ce(t),n.addNew||zn(e.doc,r,null,null,n.extend),y||T&&9==k?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),l=function(t){s=s||10<=Math.abs(i.clientX-t.clientX)+Math.abs(i.clientY-t.clientY)},c=function(){return s=!0};y&&(o.scroller.draggable=!0);(e.state.draggingText=a).copy=!n.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop();ee(o.wrapper.ownerDocument,"mouseup",a),ee(o.wrapper.ownerDocument,"mousemove",l),ee(o.scroller,"dragstart",c),ee(o.scroller,"drop",a),pr(e),setTimeout(function(){return o.input.focus()},20)}(t,r,e,o):function(g,t,_,v){var s=g.display,y=g.doc;ce(t);var x,T,k=y.sel,e=k.ranges;v.addNew&&!v.extend?(T=y.sel.contains(_),x=-1<T?e[T]:new _n(_,_)):(x=y.sel.primary(),T=y.sel.primIndex);if("rectangle"==v.unit)v.addNew||(x=new _n(_,_)),_=or(g,t,!0,!0),T=-1;else{var i=us(g,_,v.unit);x=v.extend?Wn(x,i.anchor,i.head,v.extend):i}v.addNew?-1==T?(T=e.length,Yn(y,vn(g,e.concat([x]),T),{scroll:!1,origin:"*mouse"})):1<e.length&&e[T].empty()&&"char"==v.unit&&!v.extend?(Yn(y,vn(g,e.slice(0,T).concat(e.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),k=y.sel):Gn(y,T,x,G):(Yn(y,new gn([x],T=0),G),k=y.sel);var b=_;function a(t){if(0!=_t(b,t))if(b=t,"rectangle"==v.unit){for(var e=[],i=g.options.tabSize,r=F(lt(y,_.line).text,_.ch,i),n=F(lt(y,t.line).text,t.ch,i),o=Math.min(r,n),s=Math.max(r,n),a=Math.min(_.line,t.line),l=Math.min(g.lastLine(),Math.max(_.line,t.line));a<=l;a++){var c=lt(y,a).text,h=V(c,o,i);o==s?e.push(new _n(gt(a,h),gt(a,h))):c.length>h&&e.push(new _n(gt(a,h),gt(a,V(c,s,i))))}e.length||e.push(new _n(_,_)),Yn(y,vn(g,k.ranges.slice(0,T).concat(e),T),{origin:"*mouse",scroll:!1}),g.scrollIntoView(t)}else{var u,f=x,d=us(g,t,v.unit),p=f.anchor;p=0<_t(d.anchor,p)?(u=d.head,Tt(f.from(),d.anchor)):(u=d.anchor,xt(f.to(),d.head));var m=k.ranges.slice(0);m[T]=function(t,e){var i=e.anchor,r=e.head,n=lt(t.doc,i.line);if(0==_t(i,r)&&i.sticky==r.sticky)return e;var o=Zt(n);if(!o)return e;var s=Xt(o,i.ch,i.sticky),a=o[s];if(a.from!=i.ch&&a.to!=i.ch)return e;var l,c=s+(a.from==i.ch==(1!=a.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=i.line)l=0<(r.line-i.line)*("ltr"==t.doc.direction?1:-1);else{var h=Xt(o,r.ch,r.sticky),u=h-s||(r.ch-i.ch)*(1==a.level?-1:1);l=h==c-1||h==c?u<0:0<u}var f=o[c+(l?-1:0)],d=l==(1==f.level),p=d?f.from:f.to,m=d?"after":"before";return i.ch==p&&i.sticky==m?e:new _n(new gt(i.line,p,m),r)}(g,new _n(bt(y,p),u)),Yn(y,vn(g,m,T),G)}}var l=s.wrapper.getBoundingClientRect(),c=0;function r(t){g.state.selectingText=!1,c=1/0,ce(t),s.input.focus(),re(s.wrapper.ownerDocument,"mousemove",n),re(s.wrapper.ownerDocument,"mouseup",o),y.history.lastSelOrigin=null}var n=Vr(g,function(t){0!==t.buttons&&pe(t)?function t(e){var i=++c;var r=or(g,e,!0,"rectangle"==v.unit);if(!r)return;if(0!=_t(r,b)){g.curOp.focus=I(),a(r);var n=yr(s,y);(r.line>=n.to||r.line<n.from)&&setTimeout(Vr(g,function(){c==i&&t(e)}),150)}else{var o=e.clientY<l.top?-20:e.clientY>l.bottom?20:0;o&&setTimeout(Vr(g,function(){c==i&&(s.scroller.scrollTop+=o,t(e))}),50)}}(t):r(t)}),o=Vr(g,r);g.state.selectingText=o,ee(s.wrapper.ownerDocument,"mousemove",n),ee(s.wrapper.ownerDocument,"mouseup",o)}(t,r,e,o)}(e,s,l,t):de(t)==i.scroller&&ce(t):2==a?(s&&zn(e.doc,s),setTimeout(function(){return i.input.focus()},20)):3==a&&(b?e.display.input.onContextMenu(t):pr(e)))}}function us(t,e,i){if("char"==i)return new _n(e,e);if("word"==i)return t.findWordAt(e);if("line"==i)return new _n(gt(e.line,0),bt(t.doc,gt(e.line+1,0)));var r=i(t,e);return new _n(r.from,r.to)}function fs(t,e,i,r){var n,o;if(e.touches)n=e.touches[0].clientX,o=e.touches[0].clientY;else try{n=e.clientX,o=e.clientY}catch(e){return!1}if(n>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&ce(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!ae(t,i))return ue(e);o-=a.top-s.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var c=s.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=n)return ne(t,i,t,dt(t.doc,o),t.options.gutters[l],e),ue(e)}}function ds(t,e){return fs(t,e,"gutterClick",!0)}function ps(t,e){var i,r;xi(t.display,e)||(r=e,ae(i=t,"gutterContextMenu")&&fs(i,r,"gutterContextMenu",!1))||(oe(t,e,"contextmenu")||b||t.display.input.onContextMenu(e))}function ms(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fi(t)}cs.prototype.compare=function(t,e,i){return this.time+400>t&&0==_t(e,this.pos)&&i==this.button};var gs={toString:function(){return"CodeMirror.Init"}},_s={},vs={};function ys(t){cn(t),$r(t),xr(t)}function xs(t,e,i){if(!e!=!(i&&i!=gs)){var r=t.display.dragFunctions,n=e?ee:re;n(t.display.scroller,"dragstart",r.start),n(t.display.scroller,"dragenter",r.enter),n(t.display.scroller,"dragover",r.over),n(t.display.scroller,"dragleave",r.leave),n(t.display.scroller,"drop",r.drop)}}function Ts(t){t.options.lineWrapping?(R(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),$t(t)),nr(t),$r(t),Fi(t),setTimeout(function(){return Mr(t)},100)}function ks(t,e){var i=this;if(!(this instanceof ks))return new ks(t,e);this.options=e=e?B(e):{},B(_s,e,!1),hn(e);var r=e.value;"string"==typeof r?r=new Eo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var n=new ks.inputStyles[e.inputStyle](this),o=this.display=new at(t,r,n);for(var s in cn(o.wrapper.CodeMirror=this),ms(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Br(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},e.autofocus&&!f&&o.input.focus(),T&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),function(n){var o=n.display;ee(o.scroller,"mousedown",Vr(n,hs)),ee(o.scroller,"dblclick",T&&k<11?Vr(n,function(t){if(!oe(n,t)){var e=or(n,t);if(e&&!ds(n,t)&&!xi(n.display,t)){ce(t);var i=n.findWordAt(e);zn(n.doc,i.anchor,i.head)}}}):function(t){return oe(n,t)||ce(t)});ee(o.scroller,"contextmenu",function(t){return ps(n,t)});var i,r={end:0};function s(){o.activeTouch&&(i=setTimeout(function(){return o.activeTouch=null},1e3),(r=o.activeTouch).end=+new Date)}function a(t,e){if(null==e.left)return!0;var i=e.left-t.left,r=e.top-t.top;return 400<i*i+r*r}ee(o.scroller,"touchstart",function(t){if(!oe(n,t)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(t)&&!ds(n,t)){o.input.ensurePolled(),clearTimeout(i);var e=+new Date;o.activeTouch={start:e,moved:!1,prev:e-r.end<=300?r:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),ee(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),ee(o.scroller,"touchend",function(t){var e=o.activeTouch;if(e&&!xi(o,t)&&null!=e.left&&!e.moved&&new Date-e.start<300){var i,r=n.coordsChar(o.activeTouch,"page");i=!e.prev||a(e,e.prev)?new _n(r,r):!e.prev.prev||a(e,e.prev.prev)?n.findWordAt(r):new _n(gt(r.line,0),bt(n.doc,gt(r.line+1,0))),n.setSelection(i.anchor,i.head),n.focus(),ce(t)}s()}),ee(o.scroller,"touchcancel",s),ee(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Ar(n,o.scroller.scrollTop),Nr(n,o.scroller.scrollLeft,!0),ne(n,"scroll",n))}),ee(o.scroller,"mousewheel",function(t){return mn(n,t)}),ee(o.scroller,"DOMMouseScroll",function(t){return mn(n,t)}),ee(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){oe(n,t)||fe(t)},over:function(t){oe(n,t)||(!function(t,e){var i=or(t,e);if(i){var r=document.createDocumentFragment();cr(t,i,r),t.display.dragCursor||(t.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}(n,t),fe(t))},start:function(t){return function(t,e){if(T&&(!t.state.draggingText||+new Date-Co<100))fe(e);else if(!oe(t,e)&&!xi(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!l)){var i=N("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(i.width=i.height=1,t.display.wrapper.appendChild(i),i._top=i.offsetTop),e.dataTransfer.setDragImage(i,0,0),g&&i.parentNode.removeChild(i)}}(n,t)},drop:Vr(n,So),leave:function(t){oe(n,t)||Ao(n)}};var t=o.input.getField();ee(t,"keyup",function(t){return os.call(n,t)}),ee(t,"keydown",Vr(n,ns)),ee(t,"keypress",Vr(n,ss)),ee(t,"focus",function(t){return mr(n,t)}),ee(t,"blur",function(t){return gr(n,t)})}(this),Oo(),Ur(this),this.curOp.forceUpdate=!0,Ln(this,r),e.autofocus&&!f||this.hasFocus()?setTimeout(P(mr,this),20):gr(this),vs)vs.hasOwnProperty(s)&&vs[s](i,e[s],gs);Tr(this),e.finishInit&&e.finishInit(this);for(var a=0;a<bs.length;++a)bs[a](i);Hr(this),y&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}ks.defaults=_s,ks.optionHandlers=vs;var bs=[];function ws(t,e,i,r){var n,o=t.doc;null==i&&(i="add"),"smart"==i&&(o.mode.indent?n=Ue(t,e).state:i="prev");var s=t.options.tabSize,a=lt(o,e),l=F(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var c,h=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==i&&((c=o.mode.indent(n,a.text.slice(h.length),a.text))==z||150<c)){if(!r)return;i="prev"}}else c=0,i="not";"prev"==i?c=e>o.first?F(lt(o,e-1).text,null,s):0:"add"==i?c=l+t.options.indentUnit:"subtract"==i?c=l-t.options.indentUnit:"number"==typeof i&&(c=l+i),c=Math.max(0,c);var u="",f=0;if(t.options.indentWithTabs)for(var d=Math.floor(c/s);d;--d)f+=s,u+="\t";if(f<c&&(u+=K(c-f)),u!=h)return lo(o,u,gt(e,0),gt(e,h.length),"+input"),!(a.stateAfter=null);for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==e&&m.head.ch<h.length){var g=gt(e,h.length);Gn(o,p,new _n(g,g));break}}}ks.defineInitHook=function(t){return bs.push(t)};var Es=null;function Cs(t){Es=t}function Ss(t,e,i,r,n){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var s=+new Date-200,a="paste"==n||t.state.pasteIncoming>s,l=Te(e),c=null;if(a&&1<r.ranges.length)if(Es&&Es.text.join("\n")==e){if(r.ranges.length%Es.text.length==0){c=[];for(var h=0;h<Es.text.length;h++)c.push(o.splitLines(Es.text[h]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=Q(l,function(t){return[t]}));for(var u=t.curOp.updateInput,f=r.ranges.length-1;0<=f;f--){var d=r.ranges[f],p=d.from(),m=d.to();d.empty()&&(i&&0<i?p=gt(p.line,p.ch-i):t.state.overwrite&&!a?m=gt(m.line,Math.min(lt(o,m.line).text.length,m.ch+$(l).length)):a&&Es&&Es.lineWise&&Es.text.join("\n")==e&&(p=m=gt(p.line,0)));var g={from:p,to:m,text:c?c[f%c.length]:l,origin:n||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};ro(t.doc,g),ai(t,"inputRead",t,g)}e&&!a&&Ls(t,e),wr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=u),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function As(t,e){var i=t.clipboardData&&t.clipboardData.getData("Text");if(i)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||jr(e,function(){return Ss(e,i,0,null,"paste")}),!0}function Ls(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var i=t.doc.sel,r=i.ranges.length-1;0<=r;r--){var n=i.ranges[r];if(!(100<n.head.ch||r&&i.ranges[r-1].head.line==n.head.line)){var o=t.getModeAt(n.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(-1<e.indexOf(o.electricChars.charAt(a))){s=ws(t,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(lt(t.doc,n.head.line).text.slice(0,n.head.ch))&&(s=ws(t,n.head.line,"smart"));s&&ai(t,"electricInput",t,n.head.line)}}}function Ns(t){for(var e=[],i=[],r=0;r<t.doc.sel.ranges.length;r++){var n=t.doc.sel.ranges[r].head.line,o={anchor:gt(n,0),head:gt(n+1,0)};i.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:i}}function Os(t,e,i,r){t.setAttribute("autocorrect",!!i),t.setAttribute("autocapitalize",!!r),t.setAttribute("spellcheck",!!e)}function Is(){var t=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=N("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?t.style.width="1000px":t.setAttribute("wrap","off"),h&&(t.style.border="1px solid black"),Os(t),e}function Rs(r,n,o,t,s){var e=n,i=o,a=lt(r,n.line);function l(t){var e,i;if(null==(e=s?function(e,i,a,t){var l=Zt(i,e.doc.direction);if(!l)return Yo(i,a,t);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var r=Xt(l,a.ch,a.sticky),n=l[r];if("ltr"==e.doc.direction&&n.level%2==0&&(0<t?n.to>a.ch:n.from<a.ch))return Yo(i,a,t);var o,c=function(t,e){return Vo(i,t instanceof gt?t.ch:t,e)},s=function(t){return e.options.lineWrapping?(o=o||Ni(e,i),Qi(e,i,o,t)):{begin:0,end:i.text.length}},h=s("before"==a.sticky?c(a,-1):a.ch);if("rtl"==e.doc.direction||1==n.level){var u=1==n.level==t<0,f=c(a,u?1:-1);if(null!=f&&(u?f<=n.to&&f<=h.end:f>=n.from&&f>=h.begin)){var d=u?"before":"after";return new gt(a.line,f,d)}}var p=function(t,e,i){for(var r=function(t,e){return e?new gt(a.line,c(t,1),"before"):new gt(a.line,t,"after")};0<=t&&t<l.length;t+=e){var n=l[t],o=0<e==(1!=n.level),s=o?i.begin:c(i.end,-1);if(n.from<=s&&s<n.to)return r(s,o);if(s=o?n.from:c(n.to,-1),i.begin<=s&&s<i.end)return r(s,o)}},m=p(r+t,t,h);if(m)return m;var g=0<t?h.end:c(h.begin,-1);return null==g||0<t&&g==i.text.length||!(m=p(0<t?0:l.length-1,t,s(g)))?null:m}(r.cm,a,n,o):Yo(a,n,o))){if(t||(i=n.line+o)<r.first||i>=r.first+r.size||(n=new gt(i,n.ch,n.sticky),!(a=lt(r,i))))return!1;n=Ko(s,r.cm,a,n.line,o)}else n=e;return!0}if("char"==t)l();else if("column"==t)l(!0);else if("word"==t||"group"==t)for(var c=null,h="group"==t,u=r.cm&&r.cm.getHelper(n,"wordChars"),f=!0;!(o<0)||l(!f);f=!1){var d=a.text.charAt(n.ch)||"\n",p=et(d,u)?"w":h&&"\n"==d?"n":!h||/\s/.test(d)?null:"p";if(!h||f||p||(p="s"),c&&c!=p){o<0&&(o=1,l(),n.sticky="after");break}if(p&&(c=p),0<o&&!l(!f))break}var m=Zn(r,n,e,i,!0);return vt(e,m)&&(m.hitSide=!0),m}function Ms(t,e,i,r){var n,o,s=t.doc,a=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Zi(t.display),3);n=(0<i?e.bottom:e.top)+i*c}else"line"==r&&(n=0<i?e.bottom+3:e.top-3);for(;(o=Ki(t,a,n)).outside;){if(i<0?n<=0:n>=s.height){o.hitSide=!0;break}n+=5*i}return o}var Ds=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ps(t,e){var i=Li(t,e.line);if(!i||i.hidden)return null;var r=lt(t.doc,e.line),n=Si(i,r,e.line),o=Zt(r,t.doc.direction),s="left";o&&(s=Xt(o,e.ch)%2?"right":"left");var a=Mi(n.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Bs(t,e){return e&&(t.bad=!0),t}function Fs(t,e,i){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[i]))return Bs(t.clipPos(gt(t.display.viewTo-1)),!0);e=null,i=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var n=0;n<t.display.view.length;n++){var o=t.display.view[n];if(o.node==r)return Us(o,e,i)}}function Us(c,t,e){var i=c.text.firstChild,r=!1;if(!t||!O(i,t))return Bs(gt(ft(c.line),0),!0);if(t==i&&(r=!0,t=i.childNodes[e],e=0,!t)){var n=c.rest?$(c.rest):c.line;return Bs(gt(ft(n),n.text.length),r)}var o=3==t.nodeType?t:null,s=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,e&&(e=o.nodeValue.length));s.parentNode!=i;)s=s.parentNode;var h=c.measure,u=h.maps;function a(t,e,i){for(var r=-1;r<(u?u.length:0);r++)for(var n=r<0?h.map:u[r],o=0;o<n.length;o+=3){var s=n[o+2];if(s==t||s==e){var a=ft(r<0?c.line:c.rest[r]),l=n[o]+i;return(i<0||s!=t)&&(l=n[o+(i?1:0)]),gt(a,l)}}}var l=a(o,s,e);if(l)return Bs(l,r);for(var f=s.nextSibling,d=o?o.nodeValue.length-e:0;f;f=f.nextSibling){if(l=a(f,f.firstChild,0))return Bs(gt(l.line,l.ch-d),r);d+=f.textContent.length}for(var p=s.previousSibling,m=e;p;p=p.previousSibling){if(l=a(p,p.firstChild,-1))return Bs(gt(l.line,l.ch+m),r);m+=p.textContent.length}}Ds.prototype.init=function(t){var e=this,s=this,a=s.cm,l=s.div=t.lineDiv;function i(t){if(!oe(a,t)){if(a.somethingSelected())Cs({lineWise:!1,text:a.getSelections()}),"cut"==t.type&&a.replaceSelection("",null,"cut");else{if(!a.options.lineWiseCopyCut)return;var e=Ns(a);Cs({lineWise:!0,text:e.text}),"cut"==t.type&&a.operation(function(){a.setSelections(e.ranges,0,q),a.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var i=Es.text.join("\n");if(t.clipboardData.setData("Text",i),t.clipboardData.getData("Text")==i)return void t.preventDefault()}var r=Is(),n=r.firstChild;a.display.lineSpace.insertBefore(r,a.display.lineSpace.firstChild),n.value=Es.text.join("\n");var o=document.activeElement;D(n),setTimeout(function(){a.display.lineSpace.removeChild(r),o.focus(),o==l&&s.showPrimarySelection()},50)}}Os(l,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize),ee(l,"paste",function(t){oe(a,t)||As(t,a)||k<=11&&setTimeout(Vr(a,function(){return e.updateFromDOM()}),20)}),ee(l,"compositionstart",function(t){e.composing={data:t.data,done:!1}}),ee(l,"compositionupdate",function(t){e.composing||(e.composing={data:t.data,done:!1})}),ee(l,"compositionend",function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)}),ee(l,"touchstart",function(){return s.forceCompositionEnd()}),ee(l,"input",function(){e.composing||e.readFromDOMSoon()}),ee(l,"copy",i),ee(l,"cut",i)},Ds.prototype.prepareSelection=function(){var t=lr(this.cm,!1);return t.focus=this.cm.state.focused,t},Ds.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ds.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ds.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,i=e.doc.sel.primary(),r=i.from(),n=i.to();if(e.display.viewTo==e.display.viewFrom||r.line>=e.display.viewTo||n.line<e.display.viewFrom)t.removeAllRanges();else{var o=Fs(e,t.anchorNode,t.anchorOffset),s=Fs(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=_t(Tt(o,s),r)||0!=_t(xt(o,s),n)){var a=e.display.view,l=r.line>=e.display.viewFrom&&Ps(e,r)||{node:a[0].measure.map[2],offset:0},c=n.line<e.display.viewTo&&Ps(e,n);if(!c){var h=a[a.length-1].measure,u=h.maps?h.maps[h.maps.length-1]:h.map;c={node:u[u.length-1],offset:u[u.length-2]-u[u.length-3]}}if(l&&c){var f,d=t.rangeCount&&t.getRangeAt(0);try{f=E(l.node,l.offset,c.offset,c.node)}catch(t){}f&&(!m&&e.state.focused?(t.collapse(l.node,l.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),d&&null==t.anchorNode?t.addRange(d):m&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Ds.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ds.prototype.showMultipleSelections=function(t){A(this.cm.display.cursorDiv,t.cursors),A(this.cm.display.selectionDiv,t.selection)},Ds.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ds.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return O(this.div,e)},Ds.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ds.prototype.blur=function(){this.div.blur()},Ds.prototype.getField=function(){return this.div},Ds.prototype.supportsTouch=function(){return!0},Ds.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():jr(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Ds.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ds.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(u&&s&&this.cm.options.gutters.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var i=Fs(e,t.anchorNode,t.anchorOffset),r=Fs(e,t.focusNode,t.focusOffset);i&&r&&jr(e,function(){Yn(e.doc,yn(i,r),q),(i.bad||r.bad)&&(e.curOp.selectionChanged=!0)})}}},Ds.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,i,r=this.cm,n=r.display,o=r.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>r.firstLine()&&(s=gt(s.line-1,lt(r.doc,s.line-1).length)),a.ch==lt(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=gt(a.line+1,0)),s.line<n.viewFrom||a.line>n.viewTo-1)return!1;i=s.line==n.viewFrom||0==(t=sr(r,s.line))?(e=ft(n.view[0].line),n.view[0].node):(e=ft(n.view[t].line),n.view[t-1].node.nextSibling);var l,c,h=sr(r,a.line);if(c=h==n.view.length-1?(l=n.viewTo-1,n.lineDiv.lastChild):(l=ft(n.view[h+1].line)-1,n.view[h+1].node.previousSibling),!i)return!1;for(var u=r.doc.splitLines(function(l,t,e,c,h){var i="",u=!1,f=l.doc.lineSeparator(),d=!1;function p(){u&&(i+=f,d&&(i+=f),u=d=!1)}function m(t){t&&(p(),i+=t)}function g(t){if(1==t.nodeType){var e=t.getAttribute("cm-text");if(e)return void m(e);var i,r=t.getAttribute("cm-marker");if(r){var n=l.findMarks(gt(c,0),gt(h+1,0),(a=+r,function(t){return t.id==a}));return void(n.length&&(i=n[0].find(0))&&m(ct(l.doc,i.from,i.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;o&&p();for(var s=0;s<t.childNodes.length;s++)g(t.childNodes[s]);/^(pre|p)$/i.test(t.nodeName)&&(d=!0),o&&(u=!0)}else 3==t.nodeType&&m(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var a}for(;g(t),t!=e;)t=t.nextSibling,d=!1;return i}(r,i,c,e,l)),f=ct(r.doc,gt(e,0),gt(l,lt(r.doc,l).text.length));1<u.length&&1<f.length;)if($(u)==$(f))u.pop(),f.pop(),l--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),e++}for(var d=0,p=0,m=u[0],g=f[0],_=Math.min(m.length,g.length);d<_&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var v=$(u),y=$(f),x=Math.min(v.length-(1==u.length?d:0),y.length-(1==f.length?d:0));p<x&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1);)++p;if(1==u.length&&1==f.length&&e==s.line)for(;d&&d>s.ch&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1);)d--,p++;u[u.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),u[0]=u[0].slice(d).replace(/\u200b+$/,"");var T=gt(e,d),k=gt(l,f.length?$(f).length-p:0);return 1<u.length||u[0]||_t(T,k)?(lo(r.doc,u,T,k,"+input"),!0):void 0},Ds.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ds.prototype.reset=function(){this.forceCompositionEnd()},Ds.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ds.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},Ds.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||jr(this.cm,function(){return $r(t.cm)})},Ds.prototype.setUneditable=function(t){t.contentEditable="false"},Ds.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Vr(this.cm,Ss)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ds.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ds.prototype.onContextMenu=function(){},Ds.prototype.resetPosition=function(){},Ds.prototype.needsContentAttribute=!0;var Hs,Ws,zs,qs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};qs.prototype.init=function(i){var t=this,r=this,n=this.cm;this.createField(i);var o=this.textarea;function e(t){if(!oe(n,t)){if(n.somethingSelected())Cs({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var e=Ns(n);Cs({lineWise:!0,text:e.text}),"cut"==t.type?n.setSelections(e.ranges,null,q):(r.prevInput="",o.value=e.text.join("\n"),D(o))}"cut"==t.type&&(n.state.cutIncoming=+new Date)}}i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),h&&(o.style.width="0px"),ee(o,"input",function(){T&&9<=k&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ee(o,"paste",function(t){oe(n,t)||As(t,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())}),ee(o,"cut",e),ee(o,"copy",e),ee(i.scroller,"paste",function(t){if(!xi(i,t)&&!oe(n,t)){if(!o.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var e=new Event("paste");e.clipboardData=t.clipboardData,o.dispatchEvent(e)}}),ee(i.lineSpace,"selectstart",function(t){xi(i,t)||ce(t)}),ee(o,"compositionstart",function(){var t=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:t,range:n.markText(t,n.getCursor("to"),{className:"CodeMirror-composing"})}}),ee(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},qs.prototype.createField=function(t){this.wrapper=Is(),this.textarea=this.wrapper.firstChild},qs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,i=t.doc,r=lr(t);if(t.options.moveInputWithCursor){var n=ji(t,i.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,n.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,n.left+s.left-o.left))}return r},qs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},qs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var i=e.getSelection();this.textarea.value=i,e.state.focused&&D(this.textarea),T&&9<=k&&(this.hasSelection=i)}else t||(this.prevInput=this.textarea.value="",T&&9<=k&&(this.hasSelection=null))}},qs.prototype.getField=function(){return this.textarea},qs.prototype.supportsTouch=function(){return!1},qs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!f||I()!=this.textarea))try{this.textarea.focus()}catch(t){}},qs.prototype.blur=function(){this.textarea.blur()},qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qs.prototype.receivedFocus=function(){this.slowPoll()},qs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},qs.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0,i.polling.set(20,function t(){i.poll()||e?(i.pollingFast=!1,i.slowPoll()):(e=!0,i.polling.set(60,t))})},qs.prototype.poll=function(){var t=this,e=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||ke(i)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var n=i.value;if(n==r&&!e.somethingSelected())return!1;if(T&&9<=k&&this.hasSelection===n||x&&/[\uf700-\uf7ff]/.test(n))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=n.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,a=Math.min(r.length,n.length);s<a&&r.charCodeAt(s)==n.charCodeAt(s);)++s;return jr(e,function(){Ss(e,n.slice(s),r.length-s,null,t.composing?"*compose":null),1e3<n.length||-1<n.indexOf("\n")?i.value=t.prevInput="":t.prevInput=n,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qs.prototype.onKeyPress=function(){T&&9<=k&&(this.hasSelection=null),this.fastPoll()},qs.prototype.onContextMenu=function(t){var i=this,r=i.cm,n=r.display,o=i.textarea;i.contextMenuPending&&i.contextMenuPending();var e=or(r,t),s=n.scroller.scrollTop;if(e&&!g){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(e)&&Vr(r,Yn)(r.doc,yn(e),q);var a,l=o.style.cssText,c=i.wrapper.style.cssText,h=i.wrapper.offsetParent.getBoundingClientRect();if(i.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(T?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",y&&(a=window.scrollY),n.input.focus(),y&&window.scrollTo(null,a),n.input.reset(),r.somethingSelected()||(o.value=i.prevInput=" "),i.contextMenuPending=d,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),T&&9<=k&&f(),b){fe(t);var u=function(){re(window,"mouseup",u),setTimeout(d,20)};ee(window,"mouseup",u)}else setTimeout(d,50)}function f(){if(null!=o.selectionStart){var t=r.somethingSelected(),e=""+(t?o.value:"");o.value="⇚",o.value=e,i.prevInput=t?"":"",o.selectionStart=1,o.selectionEnd=e.length,n.selForContextMenu=r.doc.sel}}function d(){if(i.contextMenuPending==d&&(i.contextMenuPending=!1,i.wrapper.style.cssText=c,o.style.cssText=l,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=s),null!=o.selectionStart)){(!T||T&&k<9)&&f();var t=0,e=function(){n.selForContextMenu==r.doc.sel&&0==o.selectionStart&&0<o.selectionEnd&&""==i.prevInput?Vr(r,eo)(r):t++<10?n.detectingSelectAll=setTimeout(e,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(e,200)}}},qs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1,function(n){var o=n.optionHandlers;function t(t,e,r,i){n.defaults[t]=e,r&&(o[t]=i?function(t,e,i){i!=gs&&r(t,e,i)}:r)}n.defineOption=t,n.Init=gs,t("value","",function(t,e){return t.setValue(e)},!0),t("mode",null,function(t,e){t.doc.modeOption=e,wn(t)},!0),t("indentUnit",2,wn,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(t){En(t),Fi(t),$r(t)},!0),t("lineSeparator",null,function(t,r){if(t.doc.lineSep=r){var n=[],o=t.doc.first;t.doc.iter(function(t){for(var e=0;;){var i=t.text.indexOf(r,e);if(-1==i)break;e=i+r.length,n.push(gt(o,i))}o++});for(var e=n.length-1;0<=e;e--)lo(t.doc,r,n[e],gt(n[e].line,n[e].ch+r.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,i){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),i!=gs&&t.refresh()}),t("specialCharPlaceholder",Je,function(t){return t.refresh()},!0),t("electricChars",!0),t("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),t("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),t("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),t("rtlMoveVisually",!p),t("wholeLineUpdateBefore",!0),t("theme","default",function(t){ms(t),ys(t)},!0),t("keyMap","default",function(t,e,i){var r=Go(e),n=i!=gs&&Go(i);n&&n.detach&&n.detach(t,r),r.attach&&r.attach(t,n||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Ts,!0),t("gutters",[],function(t){hn(t.options),ys(t)},!0),t("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?ir(t.display)+"px":"0",t.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(t){return Mr(t)},!0),t("scrollbarStyle","native",function(t){Br(t),Mr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),t("lineNumbers",!1,function(t){hn(t.options),ys(t)},!0),t("firstLineNumber",1,ys,!0),t("lineNumberFormatter",function(t){return t},ys,!0),t("showCursorWhenSelecting",!1,ar,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("selectionsMayTouch",!1),t("readOnly",!1,function(t,e){"nocursor"==e&&(gr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),t("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),t("dragDrop",!0,xs),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,ar,!0),t("singleCursorHeightPerLine",!0,ar,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,En,!0),t("addModeClass",!1,En,!0),t("pollInterval",100),t("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),t("historyEventDelay",1250),t("viewportMargin",10,function(t){return t.refresh()},!0),t("maxHighlightLength",1e4,En,!0),t("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),t("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),t("autofocus",null),t("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),t("phrases",null)}(ks),Ws=(Hs=ks).optionHandlers,zs=Hs.helpers={},Hs.prototype={constructor:Hs,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,e){var i=this.options,r=i[t];i[t]==e&&"mode"!=t||(i[t]=e,Ws.hasOwnProperty(t)&&Vr(this,Ws[t])(this,e,r),ne(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Go(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,i=0;i<e.length;++i)if(e[i]==t||e[i].name==t)return e.splice(i,1),!0},addOverlay:Yr(function(t,e){var i=t.token?t:Hs.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");!function(t,e,i){for(var r=0,n=i(e);r<t.length&&i(t[r])<=n;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:i,modeSpec:t,opaque:e&&e.opaque,priority:e&&e.priority||0},function(t){return t.priority}),this.state.modeGen++,$r(this)}),removeOverlay:Yr(function(t){for(var e=this.state.overlays,i=0;i<e.length;++i){var r=e[i].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(i,1),this.state.modeGen++,void $r(this)}}),indentLine:Yr(function(t,e,i){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),pt(this.doc,t)&&ws(this,t,e,i)}),indentSelection:Yr(function(t){for(var e=this.doc.sel.ranges,i=-1,r=0;r<e.length;r++){var n=e[r];if(n.empty())n.head.line>i&&(ws(this,n.head.line,t,!0),i=n.head.line,r==this.doc.sel.primIndex&&wr(this));else{var o=n.from(),s=n.to(),a=Math.max(i,o.line);i=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<i;++l)ws(this,l,t);var c=this.doc.sel.ranges;0==o.ch&&e.length==c.length&&0<c[r].from().ch&&Gn(this.doc,r,new _n(o,c[r].to()),q)}}}),getTokenAt:function(t,e){return Ge(this,t,e)},getLineTokens:function(t,e){return Ge(this,gt(t),e,!0)},getTokenTypeAt:function(t){t=bt(this.doc,t);var e,i=Fe(this,lt(this.doc,t.line)),r=0,n=(i.length-1)/2,o=t.ch;if(0==o)e=i[2];else for(;;){var s=r+n>>1;if((s?i[2*s-1]:0)>=o)n=s;else{if(!(i[2*s+1]<o)){e=i[2*s+2];break}r=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(t){var e=this.doc.mode;return e.innerMode?Hs.innerMode(e,this.getTokenAt(t).state).mode:e},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=[];if(!zs.hasOwnProperty(e))return i;var r=zs[e],n=this.getModeAt(t);if("string"==typeof n[e])r[n[e]]&&i.push(r[n[e]]);else if(n[e])for(var o=0;o<n[e].length;o++){var s=r[n[e][o]];s&&i.push(s)}else n.helperType&&r[n.helperType]?i.push(r[n.helperType]):r[n.name]&&i.push(r[n.name]);for(var a=0;a<r._global.length;a++){var l=r._global[a];l.pred(n,this)&&-1==H(i,l.val)&&i.push(l.val)}return i},getStateAfter:function(t,e){var i=this.doc;return Ue(this,(t=kt(i,null==t?i.first+i.size-1:t))+1,e).state},cursorCoords:function(t,e){var i=this.doc.sel.primary();return ji(this,null==t?i.head:"object"==typeof t?bt(this.doc,t):t?i.from():i.to(),e||"page")},charCoords:function(t,e){return Gi(this,bt(this.doc,t),e||"page")},coordsChar:function(t,e){return Ki(this,(t=qi(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=qi(this,{top:t,left:0},e||"page").top,dt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,i){var r,n=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:o<t&&(t=o,n=!0),r=lt(this.doc,t)}else r=t;return zi(this,r,{top:0,left:0},e||"page",i||n).top+(n?this.doc.height-Yt(r):0)},defaultTextHeight:function(){return Zi(this.display)},defaultCharWidth:function(){return tr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,i,r,n){var o,s,a,l=this.display,c=(t=ji(this,bt(this.doc,t))).bottom,h=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)c=t.top;else if("above"==r||"near"==r){var u=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(c=t.bottom),h+e.offsetWidth>f&&(h=f-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==n?(h=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==n?h=0:"middle"==n&&(h=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=h+"px"),i&&(o=this,s={left:h,top:c,right:h+e.offsetWidth,bottom:c+e.offsetHeight},null!=(a=kr(o,s)).scrollTop&&Ar(o,a.scrollTop),null!=a.scrollLeft&&Nr(o,a.scrollLeft))},triggerOnKeyDown:Yr(ns),triggerOnKeyPress:Yr(ss),triggerOnKeyUp:os,triggerOnMouseDown:Yr(hs),execCommand:function(t){if($o.hasOwnProperty(t))return $o[t].call(null,this)},triggerElectric:Yr(function(t){Ls(this,t)}),findPosH:function(t,e,i,r){var n=1;e<0&&(n=-1,e=-e);for(var o=bt(this.doc,t),s=0;s<e&&!(o=Rs(this.doc,o,n,i,r)).hitSide;++s);return o},moveH:Yr(function(e,i){var r=this;this.extendSelectionsBy(function(t){return r.display.shift||r.doc.extend||t.empty()?Rs(r.doc,t.head,e,i,r.options.rtlMoveVisually):e<0?t.from():t.to()},j)}),deleteH:Yr(function(i,r){var t=this.doc.sel,n=this.doc;t.somethingSelected()?n.replaceSelection("",null,"+delete"):jo(this,function(t){var e=Rs(n,t.head,i,r,!1);return i<0?{from:e,to:t.head}:{from:t.head,to:e}})}),findPosV:function(t,e,i,r){var n=1,o=r;e<0&&(n=-1,e=-e);for(var s=bt(this.doc,t),a=0;a<e;++a){var l=ji(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Ms(this,l,n,i)).hitSide)break}return s},moveV:Yr(function(r,n){var o=this,s=this.doc,a=[],l=!this.display.shift&&!s.extend&&s.sel.somethingSelected();if(s.extendSelectionsBy(function(t){if(l)return r<0?t.from():t.to();var e=ji(o,t.head,"div");null!=t.goalColumn&&(e.left=t.goalColumn),a.push(e.left);var i=Ms(o,e,r,n);return"page"==n&&t==s.sel.primary()&&br(o,Gi(o,i,"div").top-e.top),i},j),a.length)for(var t=0;t<s.sel.ranges.length;t++)s.sel.ranges[t].goalColumn=a[t]}),findWordAt:function(t){var e=lt(this.doc,t.line).text,i=t.ch,r=t.ch;if(e){var n=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!i?++r:--i;for(var o=e.charAt(i),s=et(o,n)?function(t){return et(t,n)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!et(t)};0<i&&s(e.charAt(i-1));)--i;for(;r<e.length&&s(e.charAt(r));)++r}return new _n(gt(t.line,i),gt(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),ne(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Yr(function(t,e){Er(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-wi(this)-this.display.barHeight,width:t.scrollWidth-wi(this)-this.display.barWidth,clientHeight:Ci(this),clientWidth:Ei(this)}},scrollIntoView:Yr(function(t,e){var i,r;null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:gt(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?(r=t,Cr(i=this),i.curOp.scrollToPos=r):Sr(this,t.from,t.to,t.margin)}),setSize:Yr(function(t,e){var i=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Bi(this);var n=this.display.viewFrom;this.doc.iter(n,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){Qr(i,n,"widget");break}++n}),this.curOp.forceUpdate=!0,ne(this,"refresh",this)}),operation:function(t){return jr(this,t)},startOperation:function(){return Ur(this)},endOperation:function(){return Hr(this)},refresh:Yr(function(){var t=this.display.cachedTextHeight;$r(this),this.curOp.forceUpdate=!0,Fi(this),Er(this,this.doc.scrollLeft,this.doc.scrollTop),an(this),(null==t||.5<Math.abs(t-Zi(this.display)))&&nr(this),ne(this,"refresh",this)}),swapDoc:Yr(function(t){var e=this.doc;return e.cm=null,Ln(this,t),Fi(this),this.display.input.reset(),Er(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ai(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},le(Hs),Hs.registerHelper=function(t,e,i){zs.hasOwnProperty(t)||(zs[t]=Hs[t]={_global:[]}),zs[t][e]=i},Hs.registerGlobalHelper=function(t,e,i,r){Hs.registerHelper(t,e,r),zs[t]._global.push({pred:i,val:r})};var Gs,js="iter insert remove copy getEditor constructor".split(" ");for(var Vs in Eo.prototype)Eo.prototype.hasOwnProperty(Vs)&&H(js,Vs)<0&&(ks.prototype[Vs]=function(t){return function(){return t.apply(this.doc,arguments)}}(Eo.prototype[Vs]));return le(Eo),ks.inputStyles={textarea:qs,contenteditable:Ds},ks.defineMode=function(t){ks.defaults.mode||"null"==t||(ks.defaults.mode=t),function(t,e){2<arguments.length&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Ee[t]=e}.apply(this,arguments)},ks.defineMIME=function(t,e){Ce[t]=e},ks.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ks.defineMIME("text/plain","null"),ks.defineExtension=function(t,e){ks.prototype[t]=e},ks.defineDocExtension=function(t,e){Eo.prototype[t]=e},ks.fromTextArea=function(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var i=I();t.autofocus=i==e||null!=e.getAttribute("autofocus")&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(ee(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var s=o.submit=function(){r(),o.submit=n,o.submit(),o.submit=s}}catch(t){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(re(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=n))}},e.style.display="none";var a=ks(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},(Gs=ks).off=re,Gs.on=ee,Gs.wheelEventPixels=pn,Gs.Doc=Eo,Gs.splitLines=Te,Gs.countColumn=F,Gs.findColumn=V,Gs.isWordChar=tt,Gs.Pass=z,Gs.signal=ne,Gs.Line=Ye,Gs.changeEnd=xn,Gs.scrollbarModel=Pr,Gs.Pos=gt,Gs.cmpPos=_t,Gs.modes=Ee,Gs.mimeModes=Ce,Gs.resolveMode=Se,Gs.getMode=Ae,Gs.modeExtensions=Le,Gs.extendMode=Ne,Gs.copyState=Oe,Gs.startState=Re,Gs.innerMode=Ie,Gs.commands=$o,Gs.keyMap=Bo,Gs.keyName=qo,Gs.isModifierKey=Wo,Gs.lookupKey=Ho,Gs.normalizeKeyMap=Uo,Gs.StringStream=Me,Gs.SharedTextMarker=To,Gs.TextMarker=yo,Gs.LineWidget=go,Gs.e_preventDefault=ce,Gs.e_stopPropagation=he,Gs.e_stop=fe,Gs.addClass=R,Gs.contains=O,Gs.rmClass=C,Gs.keyNames=Ro,ks.version="5.44.0",ks},"object"==typeof i&&void 0!==e?e.exports=n():"function"==typeof define&&define.amd?define(n):r.CodeMirror=n()},{}],13:[function(t,e,i){var r;r=function(N){"use strict";function O(t,e,i,r,n,o){this.indented=t,this.column=e,this.type=i,this.info=r,this.align=n,this.prev=o}function I(t,e,i,r){var n=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=i&&(n=t.context.indented),t.context=new O(n,e,i,r,null,t.context)}function R(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}function M(t,e,i){return"variable"==e.prevToken||"type"==e.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,i))||(!(!e.typeAtEndOfLine||t.column()!=t.indentation())||void 0))}function D(t){for(;;){if(!t||"top"==t.type)return!0;if("}"==t.type&&"namespace"!=t.prev.info)return!1;t=t.prev}}function t(t){for(var e={},i=t.split(" "),r=0;r<i.length;++r)e[i[r]]=!0;return e}function P(t,e){return"function"==typeof t?t(e):t.propertyIsEnumerable(e)}N.defineMode("clike",function(t,a){var s,l,c=t.indentUnit,h=a.statementIndentUnit||c,u=a.dontAlignCalls,f=a.keywords||{},d=a.types||{},p=a.builtin||{},m=a.blockKeywords||{},g=a.defKeywords||{},_=a.atoms||{},v=a.hooks||{},y=a.multiLineStrings,o=!1!==a.indentStatements,e=!1!==a.indentSwitch,x=a.namespaceSeparator,T=a.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,k=a.numberStart||/[\d\.]/,b=a.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,w=a.isOperatorChar||/[+\-*&%=<>!?|\/]/,E=a.isIdentifierChar||/[\w\$_\xa1-\uffff]/,C=a.isReservedIdentifier||!1;function S(t,e){var o,i=t.next();if(v[i]){var r=v[i](t,e);if(!1!==r)return r}if('"'==i||"'"==i)return e.tokenize=(o=i,function(t,e){for(var i,r=!1,n=!1;null!=(i=t.next());){if(i==o&&!r){n=!0;break}r=!r&&"\\"==i}return(n||!r&&!y)&&(e.tokenize=null),"string"}),e.tokenize(t,e);if(T.test(i))return s=i,null;if(k.test(i)){if(t.backUp(1),t.match(b))return"number";t.next()}if("/"==i){if(t.eat("*"))return(e.tokenize=A)(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(w.test(i)){for(;!t.match(/^\/[\/*]/,!1)&&t.eat(w););return"operator"}if(t.eatWhile(E),x)for(;t.match(x);)t.eatWhile(E);var n=t.current();return P(f,n)?(P(m,n)&&(s="newstatement"),P(g,n)&&(l=!0),"keyword"):P(d,n)?"type":P(p,n)||C&&C(n)?(P(m,n)&&(s="newstatement"),"builtin"):P(_,n)?"atom":"variable"}function A(t,e){for(var i,r=!1;i=t.next();){if("/"==i&&r){e.tokenize=null;break}r="*"==i}return"comment"}function L(t,e){a.typeFirstDefinitions&&t.eol()&&D(e.context)&&(e.typeAtEndOfLine=M(t,e,t.pos))}return{startState:function(t){return{tokenize:null,context:new O((t||0)-c,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,e){var i=e.context;if(t.sol()&&(null==i.align&&(i.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return L(t,e),null;s=l=null;var r=(e.tokenize||S)(t,e);if("comment"==r||"meta"==r)return r;if(null==i.align&&(i.align=!0),";"==s||":"==s||","==s&&t.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==e.context.type;)R(e);else if("{"==s)I(e,t.column(),"}");else if("["==s)I(e,t.column(),"]");else if("("==s)I(e,t.column(),")");else if("}"==s){for(;"statement"==i.type;)i=R(e);for("}"==i.type&&(i=R(e));"statement"==i.type;)i=R(e)}else s==i.type?R(e):o&&(("}"==i.type||"top"==i.type)&&";"!=s||"statement"==i.type&&"newstatement"==s)&&I(e,t.column(),"statement",t.current());if("variable"==r&&("def"==e.prevToken||a.typeFirstDefinitions&&M(t,e,t.start)&&D(e.context)&&t.match(/^\s*\(/,!1))&&(r="def"),v.token){var n=v.token(t,e,r);void 0!==n&&(r=n)}return"def"==r&&!1===a.styleDefs&&(r="variable"),e.startOfLine=!1,e.prevToken=l?"def":r||s,L(t,e),r},indent:function(t,e){if(t.tokenize!=S&&null!=t.tokenize||t.typeAtEndOfLine)return N.Pass;var i=t.context,r=e&&e.charAt(0),n=r==i.type;if("statement"==i.type&&"}"==r&&(i=i.prev),a.dontIndentStatements)for(;"statement"==i.type&&a.dontIndentStatements.test(i.info);)i=i.prev;if(v.indent){var o=v.indent(t,i,e,c);if("number"==typeof o)return o}var s=i.prev&&"switch"==i.prev.info;if(a.allmanIndentation&&/[{(]/.test(r)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==r?0:h):!i.align||u&&")"==i.type?")"!=i.type||n?i.indented+(n?0:c)+(n||!s||/^(?:case|default)\b/.test(e)?0:c):i.indented+h:i.column+(n?0:1)},electricInput:e?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var e="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",i=t("int long char short double float unsigned signed void bool"),r=t("SEL instancetype id Class Protocol BOOL");function n(t){return P(i,t)||/.+_t/.test(t)}var o="case do else for if switch while struct enum union",s="struct enum union";function a(t,e){if(!e.startOfLine)return!1;for(var i,r=null;i=t.peek();){if("\\"==i&&t.match(/^.$/)){r=a;break}if("/"==i&&t.match(/^\/[\/\*]/,!1))break;t.next()}return e.tokenize=r,"meta"}function l(t,e){return"type"==e.prevToken&&"type"}function c(t){return!(!t||t.length<2)&&("_"==t[0]&&("_"==t[1]||t[1]!==t[1].toLowerCase()))}function h(t){return t.eatWhile(/[\w\.']/),"number"}function u(t,e){if(t.backUp(1),t.match(/(R|u8R|uR|UR|LR)/)){var i=t.match(/"([^\s\\()]{0,16})\(/);return!!i&&(e.cpp11RawStringDelim=i[1],(e.tokenize=d)(t,e))}return t.match(/(u8|u|U|L)/)?!!t.match(/["']/,!1)&&"string":(t.next(),!1)}function f(t,e){for(var i;null!=(i=t.next());)if('"'==i&&!t.eat('"')){e.tokenize=null;break}return"string"}function d(t,e){var i=e.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return t.match(new RegExp(".*?\\)"+i+'"'))?e.tokenize=null:t.skipToEnd(),"string"}function p(t,e){"string"==typeof t&&(t=[t]);var i=[];function r(t){if(t)for(var e in t)t.hasOwnProperty(e)&&i.push(e)}r(e.keywords),r(e.types),r(e.builtin),r(e.atoms),i.length&&(e.helperType=t[0],N.registerHelper("hintWords",t[0],i));for(var n=0;n<t.length;++n)N.defineMIME(t[n],e)}function m(t,e){for(var i=!1;!t.eol();){if(!i&&t.match('"""')){e.tokenize=null;break}i="\\"==t.next()&&!i}return"string"}p(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:t(e),types:n,blockKeywords:t(o),defKeywords:t(s),typeFirstDefinitions:!0,atoms:t("NULL true false"),isReservedIdentifier:c,hooks:{"#":a,"*":l},modeProps:{fold:["brace","include"]}}),p(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:t(e+"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:n,blockKeywords:t(o+" class try catch"),defKeywords:t(s+" class namespace"),typeFirstDefinitions:!0,atoms:t("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:c,hooks:{"#":a,"*":l,u:u,U:u,L:u,R:u,0:h,1:h,2:h,3:h,4:h,5:h,6:h,7:h,8:h,9:h,token:function(t,e,i){if("variable"==i&&"("==t.peek()&&(";"==e.prevToken||null==e.prevToken||"}"==e.prevToken)&&(r=t.current(),(n=/(\w+)::~?(\w+)$/.exec(r))&&n[1]==n[2]))return"def";var r,n}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),p("text/x-java",{name:"clike",keywords:t("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:t("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:t("catch class do else finally for if switch try while"),defKeywords:t("class interface enum @interface"),typeFirstDefinitions:!0,atoms:t("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(t){return!t.match("interface",!1)&&(t.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),p("text/x-csharp",{name:"clike",keywords:t("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:t("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:t("catch class do else finally for foreach if struct switch try while"),defKeywords:t("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:t("true false null"),hooks:{"@":function(t,e){return t.eat('"')?(e.tokenize=f)(t,e):(t.eatWhile(/[\w\$_]/),"meta")}}}),p("text/x-scala",{name:"clike",keywords:t("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:t("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:t("catch class enum do else finally for forSome if match switch try while"),defKeywords:t("class enum def object package trait type val var"),atoms:t("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return!!t.match('""')&&(e.tokenize=m,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(t,e){var i=e.context;return!("}"!=i.type||!i.align||!t.eat(">"))&&(e.context=new O(i.indented,i.column,i.type,i.info,null,i.prev),"operator")},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=function r(n){return function(t,e){for(var i;i=t.next();){if("*"==i&&t.eat("/")){if(1!=n)return e.tokenize=r(n-1),e.tokenize(t,e);e.tokenize=null;break}if("/"==i&&t.eat("*"))return e.tokenize=r(n+1),e.tokenize(t,e)}return"comment"}}(1),e.tokenize(t,e))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),p("text/x-kotlin",{name:"clike",keywords:t("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:t("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:t("catch class do else finally for if where try while enum"),defKeywords:t("class val var object interface fun"),atoms:t("true false null this"),hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},"*":function(t,e){return"."==e.prevToken?"variable":"operator"},'"':function(t,e){var o;return e.tokenize=(o=t.match('""'),function(t,e){for(var i,r=!1,n=!1;!t.eol();){if(!o&&!r&&t.match('"')){n=!0;break}if(o&&t.match('"""')){n=!0;break}i=t.next(),!r&&"$"==i&&t.match("{")&&t.skipTo("}"),r=!r&&"\\"==i&&!o}return!n&&o||(e.tokenize=null),"string"}),e.tokenize(t,e)},indent:function(t,e,i,r){var n=i&&i.charAt(0);return"}"!=t.prevToken&&")"!=t.prevToken||""!=i?"operator"==t.prevToken&&"}"!=i||"variable"==t.prevToken&&"."==n||("}"==t.prevToken||")"==t.prevToken)&&"."==n?2*r+e.indented:e.align&&"}"==e.type?e.indented+(t.context.type==(i||"").charAt(0)?0:r):void 0:t.indented}},modeProps:{closeBrackets:{triples:'"'}}}),p(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:t("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:t("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:t("for while do if else struct"),builtin:t("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:t("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:{"#":a},modeProps:{fold:["brace","include"]}}),p("text/x-nesc",{name:"clike",keywords:t(e+" 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:n,blockKeywords:t(o),atoms:t("null true false"),hooks:{"#":a},modeProps:{fold:["brace","include"]}}),p("text/x-objectivec",{name:"clike",keywords:t(e+" 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:function(t){return n(t)||P(r,t)},builtin:t("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:t(o+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:t(s+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:t("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":a,"*":l},modeProps:{fold:["brace","include"]}}),p("text/x-squirrel",{name:"clike",keywords:t("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:n,blockKeywords:t("case catch class else for foreach if switch try while"),defKeywords:t("function local class"),typeFirstDefinitions:!0,atoms:t("true false null"),hooks:{"#":a},modeProps:{fold:["brace","include"]}});var g=null;p("text/x-ceylon",{name:"clike",keywords:t("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(t){var e=t.charAt(0);return e===e.toUpperCase()&&e!==e.toLowerCase()},blockKeywords:t("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:t("class dynamic function interface module object package value"),builtin:t("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:t("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return e.tokenize=function o(s){return function(t,e){for(var i,r=!1,n=!1;!t.eol();){if(!r&&t.match('"')&&("single"==s||t.match('""'))){n=!0;break}if(!r&&t.match("``")){g=o(s),n=!0;break}i=t.next(),r="single"==s&&!r&&"\\"==i}return n&&(e.tokenize=null),"string"}}(t.match('""')?"triple":"single"),e.tokenize(t,e)},"`":function(t,e){return!(!g||!t.match("`"))&&(e.tokenize=g,g=null,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(t,e,i){if(("variable"==i||"type"==i)&&"."==e.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],14:[function(t,e,i){var r;r=function(N){"use strict";function t(t){for(var e={},i=0;i<t.length;++i)e[t[i].toLowerCase()]=!0;return e}N.defineMode("css",function(t,e){var i=e.inline;e.propertyKeywords||(e=N.resolveMode("text/css"));var r,n,o=t.indentUnit,s=e.tokenHooks,a=e.documentTypes||{},l=e.mediaTypes||{},c=e.mediaFeatures||{},h=e.mediaValueKeywords||{},u=e.propertyKeywords||{},f=e.nonStandardPropertyKeywords||{},d=e.fontProperties||{},p=e.counterDescriptors||{},m=e.colorKeywords||{},g=e.valueKeywords||{},_=e.allowNested,v=e.lineComment,y=!0===e.supportsAtComponent;function x(t,e){return r=e,t}function T(n){return function(t,e){for(var i,r=!1;null!=(i=t.next());){if(i==n&&!r){")"==n&&t.backUp(1);break}r=!r&&"\\"==i}return(i==n||!r&&")"!=n)&&(e.tokenize=null),x("string","string")}}function k(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=T(")"),x(null,"(")}function b(t,e,i){this.type=t,this.indent=e,this.prev=i}function w(t,e,i,r){return t.context=new b(i,e.indentation()+(!1===r?0:o),t.context),i}function E(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function C(t,e,i){return L[i.context.type](t,e,i)}function S(t,e,i,r){for(var n=r||1;0<n;n--)i.context=i.context.prev;return C(t,e,i)}function A(t){var e=t.current().toLowerCase();n=g.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var L={top:function(t,e,i){if("{"==t)return w(i,e,"block");if("}"==t&&i.context.prev)return E(i);if(y&&/@component/i.test(t))return w(i,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return w(i,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return w(i,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return i.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return w(i,e,"at");if("hash"==t)n="builtin";else if("word"==t)n="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return w(i,e,"interpolation");if(":"==t)return"pseudo";if(_&&"("==t)return w(i,e,"parens")}return i.context.type},block:function(t,e,i){if("word"!=t)return"meta"==t?"block":_||"hash"!=t&&"qualifier"!=t?L.top(t,e,i):(n="error","block");var r=e.current().toLowerCase();return u.hasOwnProperty(r)?(n="property","maybeprop"):f.hasOwnProperty(r)?(n="string-2","maybeprop"):_?(n=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")},maybeprop:function(t,e,i){return":"==t?w(i,e,"prop"):C(t,e,i)},prop:function(t,e,i){if(";"==t)return E(i);if("{"==t&&_)return w(i,e,"propBlock");if("}"==t||"{"==t)return S(t,e,i);if("("==t)return w(i,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)A(e);else if("interpolation"==t)return w(i,e,"interpolation")}else n+=" error";return"prop"},propBlock:function(t,e,i){return"}"==t?E(i):"word"==t?(n="property","maybeprop"):i.context.type},parens:function(t,e,i){return"{"==t||"}"==t?S(t,e,i):")"==t?E(i):"("==t?w(i,e,"parens"):"interpolation"==t?w(i,e,"interpolation"):("word"==t&&A(e),"parens")},pseudo:function(t,e,i){return"meta"==t?"pseudo":"word"==t?(n="variable-3",i.context.type):C(t,e,i)},documentTypes:function(t,e,i){return"word"==t&&a.hasOwnProperty(e.current())?(n="tag",i.context.type):L.atBlock(t,e,i)},atBlock:function(t,e,i){if("("==t)return w(i,e,"atBlock_parens");if("}"==t||";"==t)return S(t,e,i);if("{"==t)return E(i)&&w(i,e,_?"block":"top");if("interpolation"==t)return w(i,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();n="only"==r||"not"==r||"and"==r||"or"==r?"keyword":l.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":h.hasOwnProperty(r)?"keyword":u.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"string-2":g.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return i.context.type},atComponentBlock:function(t,e,i){return"}"==t?S(t,e,i):"{"==t?E(i)&&w(i,e,_?"block":"top",!1):("word"==t&&(n="error"),i.context.type)},atBlock_parens:function(t,e,i){return")"==t?E(i):"{"==t||"}"==t?S(t,e,i,2):L.atBlock(t,e,i)},restricted_atBlock_before:function(t,e,i){return"{"==t?w(i,e,"restricted_atBlock"):"word"==t&&"@counter-style"==i.stateArg?(n="variable","restricted_atBlock_before"):C(t,e,i)},restricted_atBlock:function(t,e,i){return"}"==t?(i.stateArg=null,E(i)):"word"==t?(n="@font-face"==i.stateArg&&!d.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==i.stateArg&&!p.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,i){return"word"==t?(n="variable","keyframes"):"{"==t?w(i,e,"top"):C(t,e,i)},at:function(t,e,i){return";"==t?E(i):"{"==t||"}"==t?S(t,e,i):("word"==t?n="tag":"hash"==t&&(n="builtin"),"at")},interpolation:function(t,e,i){return"}"==t?E(i):"{"==t||";"==t?S(t,e,i):("word"==t?n="variable":"variable"!=t&&"("!=t&&")"!=t&&(n="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:i?"block":"top",stateArg:null,context:new b(i?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var i=(e.tokenize||function(t,e){var i=t.next();if(s[i]){var r=s[i](t,e);if(!1!==r)return r}return"@"==i?(t.eatWhile(/[\w\\\-]/),x("def",t.current())):"="==i||("~"==i||"|"==i)&&t.eat("=")?x(null,"compare"):'"'==i||"'"==i?(e.tokenize=T(i),e.tokenize(t,e)):"#"==i?(t.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==i?(t.match(/^\s*\w*/),x("keyword","important")):/\d/.test(i)||"."==i&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),x("number","unit")):"-"!==i?/[,+>*\/]/.test(i)?x(null,"select-op"):"."==i&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(i)?x(null,i):t.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(t.current().toLowerCase())&&(e.tokenize=k),x("variable callee","variable")):/[\w\\\-]/.test(i)?(t.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),x("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):t.match(/^\w+-/)?x("meta","meta"):void 0})(t,e);return i&&"object"==typeof i&&(r=i[1],i=i[0]),n=i,"comment"!=r&&(e.state=L[e.state](r,t,e)),n},indent:function(t,e){var i=t.context,r=e&&e.charAt(0),n=i.indent;return"prop"!=i.type||"}"!=r&&")"!=r||(i=i.prev),i.prev&&("}"!=r||"block"!=i.type&&"top"!=i.type&&"interpolation"!=i.type&&"restricted_atBlock"!=i.type?(")"!=r||"parens"!=i.type&&"atBlock_parens"!=i.type)&&("{"!=r||"at"!=i.type&&"atBlock"!=i.type)||(n=Math.max(0,i.indent-o)):n=(i=i.prev).indent),n},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:v,fold:"brace"}});var e=["domain","regexp","url","url-prefix"],i=t(e),r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],n=t(r),o=["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(o),a=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=t(a),c=["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=t(c),u=["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(u),d=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),p=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["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"],g=t(m),_=["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(_),y=e.concat(r).concat(o).concat(a).concat(c).concat(u).concat(m).concat(_);function x(t,e){for(var i,r=!1;null!=(i=t.next());){if(r&&"/"==i){e.tokenize=null;break}r="*"==i}return["comment","comment"]}N.registerHelper("hintWords","css",y),N.defineMIME("text/css",{documentTypes:i,mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:f,fontProperties:d,counterDescriptors:p,colorKeywords:g,valueKeywords:v,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x)(t,e)}},name:"css"}),N.defineMIME("text/x-scss",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:f,colorKeywords:g,valueKeywords:v,fontProperties:d,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x)(t,e):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),N.defineMIME("text/x-less",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:f,colorKeywords:g,valueKeywords:v,fontProperties:d,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x)(t,e):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),N.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:n,mediaFeatures:s,propertyKeywords:h,nonStandardPropertyKeywords:f,fontProperties:d,counterDescriptors:p,colorKeywords:g,valueKeywords:v,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x)(t,e)}},name:"css",helperType:"gss"})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],15:[function(t,e,i){var r;r=function(p){"use strict";var n={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"]]};var o={};function m(t,e){var i,r=t.match(o[i=e]||(o[i]=new RegExp("\\s+"+i+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function g(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function s(t,e){for(var i in t)for(var r=e[i]||(e[i]=[]),n=t[i],o=n.length-1;0<=o;o--)r.unshift(n[o])}p.defineMode("htmlmixed",function(h,t){var u=p.getMode(h,{name:"xml",htmlMode:!0,multilineTagIndentFactor:t.multilineTagIndentFactor,multilineTagIndentPastTag:t.multilineTagIndentPastTag}),f={},e=t&&t.tags,i=t&&t.scriptTypes;if(s(n,f),e&&s(e,f),i)for(var r=i.length-1;0<=r;r--)f.script.unshift(["type",i[r].matches,i[r].mode]);function d(t,e){var i,r=u.token(t,e.htmlState),n=/\btag\b/.test(r);if(n&&!/[<>\s\/]/.test(t.current())&&(i=e.htmlState.tagName&&e.htmlState.tagName.toLowerCase())&&f.hasOwnProperty(i))e.inTag=i+" ";else if(e.inTag&&n&&/>$/.test(t.current())){var o=/^([\S]+) (.*)/.exec(e.inTag);e.inTag=null;var s=">"==t.current()&&function(t,e){for(var i=0;i<t.length;i++){var r=t[i];if(!r[0]||r[1].test(m(e,r[0])))return r[2]}}(f[o[1]],o[2]),a=p.getMode(h,s),l=g(o[1],!0),c=g(o[1],!1);e.token=function(t,e){return t.match(l,!1)?(e.token=d,e.localState=e.localMode=null,null):(i=t,r=c,n=e.localMode.token(t,e.localState),o=i.current(),-1<(s=o.search(r))?i.backUp(o.length-s):o.match(/<\/?$/)&&(i.backUp(o.length),i.match(r,!1)||i.match(o)),n);var i,r,n,o,s},e.localMode=a,e.localState=p.startState(a,u.indent(e.htmlState,"",""))}else e.inTag&&(e.inTag+=t.current(),t.eol()&&(e.inTag+=" "));return r}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:p.startState(u)}},copyState:function(t){var e;return t.localState&&(e=p.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:e,htmlState:p.copyState(u,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e,i){return!t.localMode||/^\s*<\//.test(e)?u.indent(t.htmlState,e,i):t.localMode.indent?t.localMode.indent(t.localState,e,i):p.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||u}}}},"xml","javascript","css"),p.defineMIME("text/html","htmlmixed")},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror"),t("../xml/xml"),t("../javascript/javascript"),t("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],r):r(CodeMirror)},{"../../lib/codemirror":12,"../css/css":14,"../javascript/javascript":16,"../xml/xml":18}],16:[function(t,e,i){var r;r=function(Yt){"use strict";Yt.defineMode("javascript",function(t,u){var r,n,f=t.indentUnit,d=u.statementIndent,s=u.jsonld,a=u.json||s,c=u.typescript,h=u.wordCharacters||/[\w$\xa1-\uffff]/,l=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),i=t("keyword b"),r=t("keyword c"),n=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:i,do:i,try:i,finally:i,return:n,break:n,continue:n,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t,e,i){return r=t,n=i,e}function _(t,e){var n,i=t.next();if('"'==i||"'"==i)return e.tokenize=(n=i,function(t,e){var i,r=!1;if(s&&"@"==t.peek()&&t.match(m))return e.tokenize=_,g("jsonld-keyword","meta");for(;null!=(i=t.next())&&(i!=n||r);)r=!r&&"\\"==i;return r||(e.tokenize=_),g("string","string")}),e.tokenize(t,e);if("."==i&&t.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==i&&t.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return g(i);if("="==i&&t.eat(">"))return g("=>","operator");if("0"==i&&t.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return g("number","number");if(/\d/.test(i))return t.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),g("number","number");if("/"==i)return t.eat("*")?(e.tokenize=v)(t,e):t.eat("/")?(t.skipToEnd(),g("comment","comment")):Vt(t,e,1)?(function(t){for(var e,i=!1,r=!1;null!=(e=t.next());){if(!i){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}i=!i&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(t.eat("="),g("operator","operator",t.current()));if("`"==i)return(e.tokenize=y)(t,e);if("#"==i)return t.skipToEnd(),g("error","error");if(p.test(i))return">"==i&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=i&&"="!=i||t.eat("="):/[<>*+\-]/.test(i)&&(t.eat(i),">"==i&&t.eat(i))),g("operator","operator",t.current());if(h.test(i)){t.eatWhile(h);var r=t.current();if("."!=e.lastType){if(l.propertyIsEnumerable(r)){var o=l[r];return g(o.type,o.style,r)}if("async"==r&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",r)}return g("variable","variable",r)}}function v(t,e){for(var i,r=!1;i=t.next();){if("/"==i&&r){e.tokenize=_;break}r="*"==i}return g("comment","comment")}function y(t,e){for(var i,r=!1;null!=(i=t.next());){if(!r&&("`"==i||"$"==i&&t.eat("{"))){e.tokenize=_;break}r=!r&&"\\"==i}return g("quasi","string-2",t.current())}var x="([{}])";function o(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var i=t.string.indexOf("=>",t.start);if(!(i<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,i));r&&(i=r.index)}for(var n=0,o=!1,s=i-1;0<=s;--s){var a=t.string.charAt(s),l=x.indexOf(a);if(0<=l&&l<3){if(!n){++s;break}if(0==--n){"("==a&&(o=!0);break}}else if(3<=l&&l<6)++n;else if(h.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!n){++s;break}}}o&&!n&&(e.fatArrowAt=s)}}var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function k(t,e,i,r,n,o){this.indented=t,this.column=e,this.type=i,this.prev=n,this.info=o,null!=r&&(this.align=r)}function b(t,e){for(var i=t.localVars;i;i=i.next)if(i.name==e)return!0;for(var r=t.context;r;r=r.prev)for(i=r.vars;i;i=i.next)if(i.name==e)return!0}var w={state:null,column:null,marked:null,cc:null};function E(){for(var t=arguments.length-1;0<=t;t--)w.cc.push(arguments[t])}function C(){return E.apply(null,arguments),!0}function S(t,e){for(var i=e;i;i=i.next)if(i.name==t)return!0;return!1}function i(t){var e=w.state;if(w.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var i=function t(e,i){{if(i){if(i.block){var r=t(e,i.prev);return r?r==i.prev?i:new L(r,i.vars,!0):null}return S(e,i.vars)?i:new L(i.prev,new N(e,i.vars),!1)}return null}}(t,e.context);if(null!=i)return void(e.context=i)}else if(!S(t,e.localVars))return void(e.localVars=new N(t,e.localVars));u.globalVars&&!S(t,e.globalVars)&&(e.globalVars=new N(t,e.globalVars))}function A(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function L(t,e,i){this.prev=t,this.vars=e,this.block=i}function N(t,e){this.name=t,this.next=e}var e=new N("this",new N("arguments",null));function O(){w.state.context=new L(w.state.context,w.state.localVars,!1),w.state.localVars=e}function I(){w.state.context=new L(w.state.context,w.state.localVars,!0),w.state.localVars=null}function R(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}function M(r,n){var t=function(){var t=w.state,e=t.indented;if("stat"==t.lexical.type)e=t.lexical.indented;else for(var i=t.lexical;i&&")"==i.type&&i.align;i=i.prev)e=i.indented;t.lexical=new k(e,w.stream.column(),r,null,t.lexical,n)};return t.lex=!0,t}function D(){var t=w.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function P(i){return function t(e){return e==i?C():";"==i||"}"==e||")"==e||"]"==e?E():C(t)}}function B(t,e){return"var"==t?C(M("vardef",e),_t,P(";"),D):"keyword a"==t?C(M("form"),W,B,D):"keyword b"==t?C(M("form"),B,D):"keyword d"==t?w.stream.match(/^\s*$/,!1)?C():C(M("stat"),q,P(";"),D):"debugger"==t?C(P(";")):"{"==t?C(M("}"),I,ot,D,R):";"==t?C():"if"==t?("else"==w.state.lexical.info&&w.state.cc[w.state.cc.length-1]==D&&w.state.cc.pop()(),C(M("form"),W,B,D,bt)):"function"==t?C(St):"for"==t?C(M("form"),wt,B,D):"class"==t||c&&"interface"==e?(w.marked="keyword",C(M("form","class"==t?t:e),It,D)):"variable"==t?c&&"declare"==e?(w.marked="keyword",C(B)):c&&("module"==e||"enum"==e||"type"==e)&&w.stream.match(/^\s*\w/,!1)?(w.marked="keyword","enum"==e?C(Gt):"type"==e?C(Lt,P("operator"),ct,P(";")):C(M("form"),vt,P("{"),M("}"),ot,D,D)):c&&"namespace"==e?(w.marked="keyword",C(M("form"),U,B,D)):c&&"abstract"==e?(w.marked="keyword",C(B)):C(M("stat"),J):"switch"==t?C(M("form"),W,P("{"),M("}","switch"),I,ot,D,D,R):"case"==t?C(U,P(":")):"default"==t?C(P(":")):"catch"==t?C(M("form"),O,F,B,D,R):"export"==t?C(M("stat"),Pt,D):"import"==t?C(M("stat"),Ft,D):"async"==t?C(B):"@"==e?C(U,B):E(M("stat"),U,P(";"),D)}function F(t){if("("==t)return C(Nt,P(")"))}function U(t,e){return z(t,e,!1)}function H(t,e){return z(t,e,!0)}function W(t){return"("!=t?E():C(M(")"),U,P(")"),D)}function z(t,e,i){if(w.state.fatArrowAt==w.stream.start){var r=i?$:K;if("("==t)return C(O,M(")"),rt(Nt,")"),D,P("=>"),r,R);if("variable"==t)return E(O,vt,P("=>"),r,R)}var n,o=i?j:G;return T.hasOwnProperty(t)?C(o):"function"==t?C(St,o):"class"==t||c&&"interface"==e?(w.marked="keyword",C(M("form"),Ot,D)):"keyword c"==t||"async"==t?C(i?H:U):"("==t?C(M(")"),q,P(")"),D,o):"operator"==t||"spread"==t?C(i?H:U):"["==t?C(M("]"),qt,D,o):"{"==t?nt(tt,"}",null,o):"quasi"==t?E(V,o):"new"==t?C((n=i,function(t){return"."==t?C(n?X:Q):"variable"==t&&c?C(pt,n?j:G):E(n?H:U)})):"import"==t?C(U):C()}function q(t){return t.match(/[;\}\)\],]/)?E():E(U)}function G(t,e){return","==t?C(U):j(t,e,!1)}function j(t,e,i){var r=0==i?G:j,n=0==i?U:H;return"=>"==t?C(O,i?$:K,R):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?C(r):c&&"<"==e&&w.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?C(M(">"),rt(ct,">"),D,r):"?"==e?C(U,P(":"),n):C(n):"quasi"==t?E(V,r):";"!=t?"("==t?nt(H,")","call",r):"."==t?C(Z,r):"["==t?C(M("]"),q,P("]"),D,r):c&&"as"==e?(w.marked="keyword",C(ct,r)):"regexp"==t?(w.state.lastType=w.marked="operator",w.stream.backUp(w.stream.pos-w.stream.start-1),C(n)):void 0:void 0}function V(t,e){return"quasi"!=t?E():"${"!=e.slice(e.length-2)?C(V):C(U,Y)}function Y(t){if("}"==t)return w.marked="string-2",w.state.tokenize=y,C(V)}function K(t){return o(w.stream,w.state),E("{"==t?B:U)}function $(t){return o(w.stream,w.state),E("{"==t?B:H)}function Q(t,e){if("target"==e)return w.marked="keyword",C(G)}function X(t,e){if("target"==e)return w.marked="keyword",C(j)}function J(t){return":"==t?C(D,B):E(G,P(";"),D)}function Z(t){if("variable"==t)return w.marked="property",C()}function tt(t,e){if("async"==t)return w.marked="property",C(tt);if("variable"==t||"keyword"==w.style){return w.marked="property","get"==e||"set"==e?C(et):(c&&w.state.fatArrowAt==w.stream.start&&(i=w.stream.match(/^\s*:\s*/,!1))&&(w.state.fatArrowAt=w.stream.pos+i[0].length),C(it));var i}else{if("number"==t||"string"==t)return w.marked=s?"property":w.style+" property",C(it);if("jsonld-keyword"==t)return C(it);if(c&&A(e))return w.marked="keyword",C(tt);if("["==t)return C(U,st,P("]"),it);if("spread"==t)return C(H,it);if("*"==e)return w.marked="keyword",C(tt);if(":"==t)return E(it)}}function et(t){return"variable"!=t?E(it):(w.marked="property",C(St))}function it(t){return":"==t?C(H):"("==t?E(St):void 0}function rt(r,n,o){function s(t,e){if(o?-1<o.indexOf(t):","==t){var i=w.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),C(function(t,e){return t==n||e==n?E():E(r)},s)}return t==n||e==n?C():o&&-1<o.indexOf(";")?E(r):C(P(n))}return function(t,e){return t==n||e==n?C():E(r,s)}}function nt(t,e,i){for(var r=3;r<arguments.length;r++)w.cc.push(arguments[r]);return C(M(e,i),rt(t,e),D)}function ot(t){return"}"==t?C():E(B,ot)}function st(t,e){if(c){if(":"==t||"in"==e)return C(ct);if("?"==e)return C(st)}}function at(t){if(c&&":"==t)return w.stream.match(/^\s*\w+\s+is\b/,!1)?C(U,lt,ct):C(ct)}function lt(t,e){if("is"==e)return w.marked="keyword",C()}function ct(t,e){return"keyof"==e||"typeof"==e||"infer"==e?(w.marked="keyword",C("typeof"==e?H:ct)):"variable"==t||"void"==e?(w.marked="type",C(dt)):"|"==e||"&"==e?C(ct):"string"==t||"number"==t||"atom"==t?C(dt):"["==t?C(M("]"),rt(ct,"]",","),D,dt):"{"==t?C(M("}"),rt(ut,"}",",;"),D,dt):"("==t?C(rt(ft,")"),ht,dt):"<"==t?C(rt(ct,">"),ct):void 0}function ht(t){if("=>"==t)return C(ct)}function ut(t,e){return"variable"==t||"keyword"==w.style?(w.marked="property",C(ut)):"?"==e||"number"==t||"string"==t?C(ut):":"==t?C(ct):"["==t?C(P("variable"),st,P("]"),ut):"("==t?E(At,ut):void 0}function ft(t,e){return"variable"==t&&w.stream.match(/^\s*[?:]/,!1)||"?"==e?C(ft):":"==t?C(ct):"spread"==t?C(ft):E(ct)}function dt(t,e){return"<"==e?C(M(">"),rt(ct,">"),D,dt):"|"==e||"."==t||"&"==e?C(ct):"["==t?C(ct,P("]"),dt):"extends"==e||"implements"==e?(w.marked="keyword",C(ct)):"?"==e?C(ct,P(":"),ct):void 0}function pt(t,e){if("<"==e)return C(M(">"),rt(ct,">"),D,dt)}function mt(){return E(ct,gt)}function gt(t,e){if("="==e)return C(ct)}function _t(t,e){return"enum"==e?(w.marked="keyword",C(Gt)):E(vt,st,Tt,kt)}function vt(t,e){return c&&A(e)?(w.marked="keyword",C(vt)):"variable"==t?(i(e),C()):"spread"==t?C(vt):"["==t?nt(xt,"]"):"{"==t?nt(yt,"}"):void 0}function yt(t,e){return"variable"!=t||w.stream.match(/^\s*:/,!1)?("variable"==t&&(w.marked="property"),"spread"==t?C(vt):"}"==t?E():"["==t?C(U,P("]"),P(":"),yt):C(P(":"),vt,Tt)):(i(e),C(Tt))}function xt(){return E(vt,Tt)}function Tt(t,e){if("="==e)return C(H)}function kt(t){if(","==t)return C(_t)}function bt(t,e){if("keyword b"==t&&"else"==e)return C(M("form","else"),B,D)}function wt(t,e){return"await"==e?C(wt):"("==t?C(M(")"),Et,D):void 0}function Et(t){return"var"==t?C(_t,Ct):"variable"==t?C(Ct):E(Ct)}function Ct(t,e){return")"==t?C():";"==t?C(Ct):"in"==e||"of"==e?(w.marked="keyword",C(U,Ct)):E(U,Ct)}function St(t,e){return"*"==e?(w.marked="keyword",C(St)):"variable"==t?(i(e),C(St)):"("==t?C(O,M(")"),rt(Nt,")"),D,at,B,R):c&&"<"==e?C(M(">"),rt(mt,">"),D,St):void 0}function At(t,e){return"*"==e?(w.marked="keyword",C(At)):"variable"==t?(i(e),C(At)):"("==t?C(O,M(")"),rt(Nt,")"),D,at,R):c&&"<"==e?C(M(">"),rt(mt,">"),D,At):void 0}function Lt(t,e){return"keyword"==t||"variable"==t?(w.marked="type",C(Lt)):"<"==e?C(M(">"),rt(mt,">"),D):void 0}function Nt(t,e){return"@"==e&&C(U,Nt),"spread"==t?C(Nt):c&&A(e)?(w.marked="keyword",C(Nt)):c&&"this"==t?C(st,Tt):E(vt,st,Tt)}function Ot(t,e){return"variable"==t?It(t,e):Rt(t,e)}function It(t,e){if("variable"==t)return i(e),C(Rt)}function Rt(t,e){return"<"==e?C(M(">"),rt(mt,">"),D,Rt):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(w.marked="keyword"),C(c?ct:U,Rt)):"{"==t?C(M("}"),Mt,D):void 0}function Mt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&A(e))&&w.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(w.marked="keyword",C(Mt)):"variable"==t||"keyword"==w.style?(w.marked="property",C(c?Dt:St,Mt)):"number"==t||"string"==t?C(c?Dt:St,Mt):"["==t?C(U,st,P("]"),c?Dt:St,Mt):"*"==e?(w.marked="keyword",C(Mt)):c&&"("==t?E(At,Mt):";"==t||","==t?C(Mt):"}"==t?C():"@"==e?C(U,Mt):void 0}function Dt(t,e){if("?"==e)return C(Dt);if(":"==t)return C(ct,Tt);if("="==e)return C(H);var i=w.state.lexical.prev;return E(i&&"interface"==i.info?At:St)}function Pt(t,e){return"*"==e?(w.marked="keyword",C(zt,P(";"))):"default"==e?(w.marked="keyword",C(U,P(";"))):"{"==t?C(rt(Bt,"}"),zt,P(";")):E(B)}function Bt(t,e){return"as"==e?(w.marked="keyword",C(P("variable"))):"variable"==t?E(H,Bt):void 0}function Ft(t){return"string"==t?C():"("==t?E(U):E(Ut,Ht,zt)}function Ut(t,e){return"{"==t?nt(Ut,"}"):("variable"==t&&i(e),"*"==e&&(w.marked="keyword"),C(Wt))}function Ht(t){if(","==t)return C(Ut,Ht)}function Wt(t,e){if("as"==e)return w.marked="keyword",C(Ut)}function zt(t,e){if("from"==e)return w.marked="keyword",C(U)}function qt(t){return"]"==t?C():E(rt(H,"]"))}function Gt(){return E(M("form"),vt,P("{"),M("}"),rt(jt,"}"),D,D)}function jt(){return E(vt,Tt)}function Vt(t,e,i){return e.tokenize==_&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(i||0)))}return D.lex=R.lex=!0,{startState:function(t){var e={tokenize:_,lastType:"sof",cc:[],lexical:new k((t||0)-f,0,"block",!1),localVars:u.localVars,context:u.localVars&&new L(null,null,!1),indented:t||0};return u.globalVars&&"object"==typeof u.globalVars&&(e.globalVars=u.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),o(t,e)),e.tokenize!=v&&t.eatSpace())return null;var i=e.tokenize(t,e);return"comment"==r?i:(e.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",function(t,e,i,r,n){var o=t.cc;for(w.state=t,w.stream=n,w.marked=null,w.cc=o,w.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():a?U:B)(i,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return w.marked?w.marked:"variable"==i&&b(t,r)?"variable-2":e}}(e,i,r,n,t))},indent:function(t,e){if(t.tokenize==v)return Yt.Pass;if(t.tokenize!=_)return 0;var i,r=e&&e.charAt(0),n=t.lexical;if(!/^\s*else\b/.test(e))for(var o=t.cc.length-1;0<=o;--o){var s=t.cc[o];if(s==D)n=n.prev;else if(s!=bt)break}for(;("stat"==n.type||"form"==n.type)&&("}"==r||(i=t.cc[t.cc.length-1])&&(i==G||i==j)&&!/^[,\.=+\-*:?[\(]/.test(e));)n=n.prev;d&&")"==n.type&&"stat"==n.prev.type&&(n=n.prev);var a,l,c=n.type,h=r==c;return"vardef"==c?n.indented+("operator"==t.lastType||","==t.lastType?n.info.length+1:0):"form"==c&&"{"==r?n.indented:"form"==c?n.indented+f:"stat"==c?n.indented+(l=e,"operator"==(a=t).lastType||","==a.lastType||p.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?d||f:0):"switch"!=n.info||h||0==u.doubleIndentSwitch?n.align?n.column+(h?0:1):n.indented+(h?0:f):n.indented+(/^(?:case|default)\b/.test(e)?f:2*f)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:s,jsonMode:a,expressionAllowed:Vt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=U&&e!=H||t.cc.pop()}}}),Yt.registerHelper("wordChars","javascript",/[\w$]/),Yt.defineMIME("text/javascript","javascript"),Yt.defineMIME("text/ecmascript","javascript"),Yt.defineMIME("application/javascript","javascript"),Yt.defineMIME("application/x-javascript","javascript"),Yt.defineMIME("application/ecmascript","javascript"),Yt.defineMIME("application/json",{name:"javascript",json:!0}),Yt.defineMIME("application/x-json",{name:"javascript",json:!0}),Yt.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),Yt.defineMIME("text/typescript",{name:"javascript",typescript:!0}),Yt.defineMIME("application/typescript",{name:"javascript",typescript:!0})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],17:[function(t,e,i){var r;r=function(c){"use strict";function t(t){for(var e={},i=t.split(" "),r=0;r<i.length;++r)e[i[r]]=!0;return e}function a(n,o,s){return 0==n.length?l(o):function(t,e){for(var i=n[0],r=0;r<i.length;r++)if(t.match(i[r][0]))return e.tokenize=a(n.slice(1),o),i[r][1];return e.tokenize=l(o,s),"string"}}function l(i,r){return function(t,e){return function(t,e,i,r){if(!1!==r&&t.match("${",!1)||t.match("{$",!1))return e.tokenize=null,"string";if(!1!==r&&t.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return t.match("[",!1)&&(e.tokenize=a([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],i,r)),t.match(/\-\>\w/,!1)&&(e.tokenize=a([[["->",null]],[[/[\w]+/,"variable"]]],i,r)),"variable-2";var n=!1;for(;!t.eol()&&(n||!1===r||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!n&&t.match(i)){e.tokenize=null,e.tokStack.pop(),e.tokStack.pop();break}n="\\"==t.next()&&!n}return"string"}(t,e,i,r)}}var e="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__",r="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";c.registerHelper("hintWords","php",[e,i,r].join(" ").split(" ")),c.registerHelper("wordChars","php",/[\w$]/);var n={name:"clike",helperType:"php",keywords:t(e),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(r),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,e){var i;if(i=t.match(/<<\s*/)){var r=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var n=t.current().slice(i[0].length+(r?2:1));if(r&&t.eat(r),n)return(e.tokStack||(e.tokStack=[])).push(n,0),e.tokenize=l(n,"'"!=r),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,e){return(e.tokStack||(e.tokStack=[])).push('"',0),e.tokenize=l('"'),"string"},"{":function(t,e){return e.tokStack&&e.tokStack.length&&e.tokStack[e.tokStack.length-1]++,!1},"}":function(t,e){return e.tokStack&&0<e.tokStack.length&&!--e.tokStack[e.tokStack.length-1]&&(e.tokenize=l(e.tokStack[e.tokStack.length-2])),!1}}};c.defineMode("php",function(t,i){var a=c.getMode(t,i&&i.htmlMode||"text/html"),l=c.getMode(t,n);return{startState:function(){var t=c.startState(a),e=i.startOpen?c.startState(l):null;return{html:t,php:e,curMode:i.startOpen?l:a,curState:i.startOpen?e:t,pending:null}},copyState:function(t){var e,i=t.html,r=c.copyState(a,i),n=t.php,o=n&&c.copyState(l,n);return e=t.curMode==a?r:o,{html:r,php:o,curMode:t.curMode,curState:e,pending:t.pending}},token:function(t,e){var i=e.curMode==l;if(t.sol()&&e.pending&&'"'!=e.pending&&"'"!=e.pending&&(e.pending=null),i)return i&&null==e.php.tokenize&&t.match("?>")?(e.curMode=a,e.curState=e.html,e.php.context.prev||(e.php=null),"meta"):l.token(t,e.curState);if(t.match(/^<\?\w*/))return e.curMode=l,e.php||(e.php=c.startState(l,a.indent(e.html,"",""))),e.curState=e.php,"meta";if('"'==e.pending||"'"==e.pending){for(;!t.eol()&&t.next()!=e.pending;);var r="string"}else r=e.pending&&t.pos<e.pending.end?(t.pos=e.pending.end,e.pending.style):a.token(t,e.curState);e.pending&&(e.pending=null);var n,o=t.current(),s=o.search(/<\?/);return-1!=s&&("string"==r&&(n=o.match(/[\'\"]$/))&&!/\?>/.test(o)?e.pending=n[0]:e.pending={end:t.pos,style:r},t.backUp(o.length-s)),r},indent:function(t,e,i){return t.curMode!=l&&/^\s*<\//.test(e)||t.curMode==l&&/^\?>/.test(e)?a.indent(t.html,e,i):t.curMode.indent(t.curState,e,i)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(t){return{state:t.curState,mode:t.curMode}}}},"htmlmixed","clike"),c.defineMIME("application/x-httpd-php","php"),c.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),c.defineMIME("text/x-php",n)},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror"),t("../htmlmixed/htmlmixed"),t("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],r):r(CodeMirror)},{"../../lib/codemirror":12,"../clike/clike":13,"../htmlmixed/htmlmixed":15}],18:[function(t,e,i){var r;r=function(b){"use strict";var w={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},E={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(t,e){var s,o,a=t.indentUnit,l={},i=e.htmlMode?w:E;for(var r in i)l[r]=i[r];for(var r in e)l[r]=e[r];function c(e,i){function t(t){return(i.tokenize=t)(e,i)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?t(n("atom","]]>")):null:e.match("--")?t(n("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),t(function r(n){return function(t,e){for(var i;null!=(i=t.next());){if("<"==i)return e.tokenize=r(n+1),e.tokenize(t,e);if(">"==i){if(1!=n)return e.tokenize=r(n-1),e.tokenize(t,e);e.tokenize=c;break}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),i.tokenize=n("meta","?>"),"meta"):(s=e.eat("/")?"closeTag":"openTag",i.tokenize=h,"tag bracket"):"&"!=r?(e.eatWhile(/[^&<]/),null):(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error"}function h(t,e){var i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=c,s=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return s="equals",null;if("<"!=i)return/[\'\"]/.test(i)?(e.tokenize=(r=i,(n=function(t,e){for(;!t.eol();)if(t.next()==r){e.tokenize=h;break}return"string"}).isInAttribute=!0,n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");e.tokenize=c,e.state=p,e.tagName=e.tagStart=null;var r,n,o=e.tokenize(t,e);return o?o+" tag error":"tag error"}function n(i,r){return function(t,e){for(;!t.eol();){if(t.match(r)){e.tokenize=c;break}t.next()}return i}}function u(t,e,i){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=i,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function f(t){t.context&&(t.context=t.context.prev)}function d(t,e){for(var i;;){if(!t.context)return;if(i=t.context.tagName,!l.contextGrabbers.hasOwnProperty(i)||!l.contextGrabbers[i].hasOwnProperty(e))return;f(t)}}function p(t,e,i){return"openTag"==t?(i.tagStart=e.column(),m):"closeTag"==t?g:p}function m(t,e,i){return"word"==t?(i.tagName=e.current(),o="tag",y):l.allowMissingTagName&&"endTag"==t?(o="tag bracket",y(t,e,i)):(o="error",m)}function g(t,e,i){if("word"!=t)return l.allowMissingTagName&&"endTag"==t?(o="tag bracket",_(t,e,i)):(o="error",v);var r=e.current();return i.context&&i.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(i.context.tagName)&&f(i),i.context&&i.context.tagName==r||!1===l.matchClosing?(o="tag",_):(o="tag error",v)}function _(t,e,i){return"endTag"!=t?(o="error",_):(f(i),p)}function v(t,e,i){return o="error",_(t,0,i)}function y(t,e,i){if("word"==t)return o="attribute",x;if("endTag"!=t&&"selfcloseTag"!=t)return o="error",y;var r=i.tagName,n=i.tagStart;return i.tagName=i.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(r)?d(i,r):(d(i,r),i.context=new u(i,r,n==i.indented)),p}function x(t,e,i){return"equals"==t?T:(l.allowMissing||(o="error"),y(t,0,i))}function T(t,e,i){return"string"==t?k:"word"==t&&l.allowUnquoted?(o="string",y):(o="error",y(t,0,i))}function k(t,e,i){return"string"==t?k:y(t,0,i)}return c.isInText=!0,{startState:function(t){var e={tokenize:c,state:p,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;s=null;var i=e.tokenize(t,e);return(i||s)&&"comment"!=i&&(o=null,e.state=e.state(s||i,t,e),o&&(i="error"==o?i+" error":o)),i},indent:function(t,e,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(r&&r.noIndent)return b.Pass;if(t.tokenize!=h&&t.tokenize!=c)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var n=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(n&&n[1])for(;r;){if(r.tagName==n[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(n)for(;r;){var o=l.contextGrabbers[r.tagName];if(!o||!o.hasOwnProperty(n[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+a:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=y)}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})},"object"==typeof i&&"object"==typeof e?r(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":12}],19:[function(aJa,bJa,cJa){var eJa,fJa;eJa=window,fJa=function(){return function(i){var r={};function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}return n.m=i,n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)}([function(t,e,i){"use strict";var r=i(2);t.exports=r.extends("statement",function(t,e,i){r.apply(this,[t||"statement",e,i])})},function(t,e,i){"use strict";var r=i(2),n="expression";t.exports=r.extends(n,function(t,e,i){r.apply(this,[t||n,e,i])})},function(t,e,i){"use strict";var r=function(t,e,i){this.kind=t,e&&(this.leadingComments=e),i&&(this.loc=i)};r.prototype.setTrailingComments=function(t){this.trailingComments=t},r.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset))),this},r.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,(e.prototype.constructor=e).kind=t,e},t.exports=r},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("literal",function(t,e,i,r,n){o.apply(this,[t||"literal",r,n]),this.value=e,i&&(this.raw=i)})},function(t,e,i){"use strict";var n=i(0),o="declaration",r=n.extends(o,function(t,e,i,r){n.apply(this,[t||o,i,r]),this.name=e});r.prototype.parseFlags=function(t){this.isAbstract=1===t[2],this.isFinal=2===t[2],"class"!==this.kind&&(-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1])},t.exports=r},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("operation",function(t,e,i){r.apply(this,[t||"operation",e,i])})},function(t,e,i){"use strict";var r=i(2),n=r.extends("reference",function(t,e,i){r.apply(this,[t||"reference",e,i])});t.exports=n},function(t,e,i){"use strict";var n=i(0);t.exports=n.extends("block",function(t,e,i,r){n.apply(this,[t||"block",i,r]),this.children=e.filter(Boolean)})},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("lookup",function(t,e,i,r,n){o.apply(this,[t||"lookup",r,n]),this.what=e,this.offset=i})},function(t,e,i){"use strict";var n=i(2);t.exports=n.extends("comment",function(t,e,i,r){n.apply(this,[t,i,r]),this.value=e})},function(t,e,i){"use strict";var n=i(0),o="constantstatement";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[t||o,i,r]),this.items=e})},function(t,e,i){"use strict";var a=i(4);t.exports=a.extends("function",function(t,e,i,r,n,o,s){a.apply(this,["function",t,o,s]),this.arguments=e,this.byref=i,this.type=r,this.nullable=n,this.body=null})},function(t,e,h){"use strict";(function(e){var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=h(18),r=h(28),n=h(44),o=h(45);function a(t,e){for(var i=Object.keys(t),r=i.length;r--;){var n=i[r],o=t[n];null===o?delete e[n]:"function"==typeof o?e[n]=o.bind(e):Array.isArray(o)?e[n]=Array.isArray(e[n])?e[n].concat(o):o:"object"===(void 0===o?"undefined":s(o))?e[n]="object"===s(e[n])?a(o,e[n]):o:e[n]=o}return e}var l=function(t){if("function"==typeof this)return new this(t);this.tokens=n,this.lexer=new i(this),this.ast=new o,this.parser=new r(this.lexer,this.ast),t&&"object"===(void 0===t?"undefined":s(t))&&(t.parser&&!1===t.parser.php7&&(t.lexer||(t.lexer={}),t.lexer.php7=!1),a(t,this))},c=function(t){return e.isBuffer(t)?t.toString():t};l.create=function(t){return new l(t)},l.parseEval=function(t,e){return new l(e).parseEval(t)},l.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=c(t),this.parser.parse(t,"eval")},l.parseCode=function(t,e,i){return"object"!==(void 0===e?"undefined":s(e))||i||(i=e,e="unknown"),new l(i).parseCode(t,e)},l.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=c(t),this.parser.parse(t,e)},l.tokenGetAll=function(t,e){return new l(e).tokenGetAll(t)},l.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=c(t);var e=this.lexer.EOF,i=this.tokens.values;this.lexer.setInput(t);for(var r=this.lexer.lex()||e,n=[];r!=e;){var o=this.lexer.yytext;i.hasOwnProperty(r)&&(o=[i[r],o,this.lexer.yylloc.first_line]),n.push(o),r=this.lexer.lex()||e}return n},t.exports=l,t.exports.tokens=n,t.exports.lexer=i,t.exports.AST=o,t.exports.parser=r,t.exports.combine=a,t.exports.default=l}).call(this,h(13).Buffer)},function(t,F,e){"use strict";(function(t){var r=e(15),o=e(16),s=e(17);function i(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,i){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,i);if("number"!=typeof t)return n(this,t,e,i);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}function n(t,e,i,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,r){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===i&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,i):new Uint8Array(e,i,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,i,r):"string"==typeof e?function(t,e,i){"string"==typeof i&&""!==i||(i="utf8");if(!u.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,i),n=(t=a(t,r)).write(e,i);n!==r&&(t=t.slice(0,n));return t}(t,e,i):function(t,e){if(u.isBuffer(e)){var i=0|f(e.length);return 0===(t=a(t,i)).length||e.copy(t,0,0,i),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):h(t,e);if("Buffer"===e.type&&s(e.data))return h(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(l(e),t=a(t,e<0?0:0|f(e)),!u.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function h(t,e){var i=e.length<0?0:0|f(e.length);t=a(t,i);for(var r=0;r<i;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return P(t).length;default:if(r)return D(t).length;e=(""+e).toLowerCase(),r=!0}}function p(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function m(t,e,i,r,n){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):2147483647<i?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:g(t,e,i,r,n);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):g(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function g(t,e,i,r,n){var o,s=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a/=s=2,l/=2,i/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var h=-1;for(o=i;o<a;o++)if(c(t,o)===c(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(a<i+l&&(i=a-l),o=i;0<=o;o--){for(var u=!0,f=0;f<l;f++)if(c(t,o+f)!==c(e,f)){u=!1;break}if(u)return o}return-1}function _(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?n<(r=Number(r))&&(r=n):r=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<r&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[i+s]=a}return s}function v(t,e,i,r){return B(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,r)}function y(t,e,i){return 0===e&&i===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,i))}function x(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var o,s,a,l,c=t[n],h=null,u=239<c?4:223<c?3:191<c?2:1;if(n+u<=i)switch(u){case 1:c<128&&(h=c);break;case 2:128==(192&(o=t[n+1]))&&127<(l=(31&c)<<6|63&o)&&(h=l);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&2047<(l=(15&c)<<12|(63&o)<<6|63&s)&&(l<55296||57343<l)&&(h=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)&&l<1114112&&(h=l)}null===h?(h=65533,u=1):65535<h&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),n+=u}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var i="",r=0;for(;r<e;)i+=String.fromCharCode.apply(String,t.slice(r,r+=T));return i}(r)}F.Buffer=u,F.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},F.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),F.kMaxLength=i(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,i){return n(null,t,e,i)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,i){return r=null,o=e,s=i,l(n=t),n<=0?a(r,n):void 0!==o?"string"==typeof s?a(r,n).fill(o,s):a(r,n).fill(o):a(r,n);var r,n,o,s},u.allocUnsafe=function(t){return c(null,t)},u.allocUnsafeSlow=function(t){return c(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);n<o;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:r<i?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var i;if(void 0===e)for(i=e=0;i<t.length;++i)e+=t[i].length;var r=u.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):function(t,e,i){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return w(this,e,i);case"utf8":case"utf-8":return x(this,e,i);case"ascii":return k(this,e,i);case"latin1":case"binary":return b(this,e,i);case"base64":return y(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,i);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=F.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,i,r,n){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,n),c=t.slice(e,i),h=0;h<a;++h)if(l[h]!==c[h]){o=l[h],s=c[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},u.prototype.indexOf=function(t,e,i){return m(this,t,e,i,!0)},u.prototype.lastIndexOf=function(t,e,i){return m(this,t,e,i,!1)},u.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||n<i)&&(i=n),0<t.length&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o,s,a,l,c,h,u,f,d,p=!1;;)switch(r){case"hex":return _(this,t,e,i);case"utf8":case"utf-8":return f=e,d=i,B(D(t,(u=this).length-f),u,f,d);case"ascii":return v(this,t,e,i);case"latin1":case"binary":return v(this,t,e,i);case"base64":return l=this,c=e,h=i,B(P(t),l,c,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=i,B(function(t,e){for(var i,r,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)i=t.charCodeAt(s),r=i>>8,n=i%256,o.push(n),o.push(r);return o}(t,(o=this).length-s),o,s,a);default:if(p)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function k(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}function b(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}function w(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||r<i)&&(i=r);for(var n="",o=e;o<i;++o)n+=M(t[o]);return n}function E(t,e,i){for(var r=t.slice(e,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function C(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(i<t+e)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,i,r,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<e||e<o)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function A(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n<o;++n)t[i+n]=(e&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function L(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n<o;++n)t[i+n]=e>>>8*(r?n:3-n)&255}function N(t,e,i,r,n,o){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function O(t,e,i,r,n){return n||N(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function I(t,e,i,r,n){return n||N(t,0,i,8),o.write(t,e,i,r,52,8),i+8}u.prototype.slice=function(t,e){var i,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=u.prototype;else{var n=e-t;i=new u(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+t]}return i},u.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||C(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return r},u.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||C(t,e,this.length);for(var r=this[t+--e],n=1;0<e&&(n*=256);)r+=this[t+--e]*n;return r},u.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||C(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return(n*=128)<=r&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||C(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0<r&&(n*=256);)o+=this[t+--r]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||S(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o<i&&(n*=256);)this[e+o]=t/n&255;return e+i},u.prototype.writeUIntBE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||S(this,t,e,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[e+n]=255&t;0<=--n&&(o*=256);)this[e+n]=t/o&255;return e+i},u.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);S(this,t,e,i,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o<i&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},u.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);S(this,t,e,i,n-1,-n)}var o=i-1,s=1,a=0;for(this[e+o]=255&t;0<=--o&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},u.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,i){return O(this,t,e,!0,i)},u.prototype.writeFloatBE=function(t,e,i){return O(this,t,e,!1,i)},u.prototype.writeDoubleLE=function(t,e,i){return I(this,t,e,!0,i)},u.prototype.writeDoubleBE=function(t,e,i){return I(this,t,e,!1,i)},u.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),0<r&&r<i&&(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var n,o=r-i;if(this===t&&i<e&&e<r)for(n=o-1;0<=n;--n)t[n+e]=this[n+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},u.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o<i;++o)this[o]=t;else{var s=u.isBuffer(t)?t:D(new u(t,r).toString()),a=s.length;for(o=0;o<i-e;++o)this[o+e]=s[o%a]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function M(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){var i;e=e||1/0;for(var r=t.length,n=null,o=[],s=0;s<r;++s){if(55295<(i=t.charCodeAt(s))&&i<57344){if(!n){if(56319<i){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(e-=3)&&o.push(239,191,189);continue}n=i;continue}if(i<56320){-1<(e-=3)&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function P(t){return r.toByteArray(function(t){var e;if((t=(e=t,e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}).call(this,e(14))},function(pWa,qWa){var rWa;rWa=function(){return this}();try{rWa=rWa||Function("return this")()||eval("this")}catch(t){"object"==typeof window&&(rWa=window)}pWa.exports=rWa},function(t,e,i){"use strict";e.byteLength=function(t){var e=d(t),i=e[0],r=e[1];return 3*(i+r)/4-r},e.toByteArray=function(t){for(var e,i=d(t),r=i[0],n=i[1],o=new f((c=r,h=n,3*(c+h)/4-h)),s=0,a=0<n?r-4:r,l=0;l<a;l+=4)e=u[t.charCodeAt(l)]<<18|u[t.charCodeAt(l+1)]<<12|u[t.charCodeAt(l+2)]<<6|u[t.charCodeAt(l+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;var c,h;2===n&&(e=u[t.charCodeAt(l)]<<2|u[t.charCodeAt(l+1)]>>4,o[s++]=255&e);1===n&&(e=u[t.charCodeAt(l)]<<10|u[t.charCodeAt(l+1)]<<4|u[t.charCodeAt(l+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o<s;o+=16383)n.push(l(t,o,s<o+16383?s:o+16383));1===r?(e=t[i-1],n.push(a[e>>2]+a[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return n.join("")};for(var a=[],u=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n<o;++n)a[n]=r[n],u[r.charCodeAt(n)]=n;function d(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var r,n,o=[],s=e;s<i;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[(n=r)>>18&63]+a[n>>12&63]+a[n>>6&63]+a[63&n]);return o.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,r,n){var o,s,a=8*n-r-1,l=(1<<a)-1,c=l>>1,h=-7,u=i?n-1:0,f=i?-1:1,d=t[e+u];for(u+=f,o=d&(1<<-h)-1,d>>=-h,h+=a;0<h;o=256*o+t[e+u],u+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;0<h;s=256*s+t[e+u],u+=f,h-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,i,r,n,o){var s,a,l,c=8*o-n-1,h=(1<<c)-1,u=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),2<=(e+=1<=s+u?f/l:f*Math.pow(2,1-u))*l&&(s++,l/=2),h<=s+u?(a=0,s=h):1<=s+u?(a=(e*l-1)*Math.pow(2,n),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=p,a/=256,n-=8);for(s=s<<n|a,c+=n;0<c;t[i+d]=255&s,d+=p,s/=256,c-=8);t[i+d-p]|=128*m}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!0,this.php7=!0,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}};n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(0<t)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var i=this.yytext[e];"\r"===i?(i=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==i&&("\r"===i?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===i?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var i=this._input[this.offset];if(!i)break;this.yytext+=i,this.offset++,"\r"===i&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===i||"\r"===i?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column}}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t=void 0;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(t=0<this.tokens.length?(t=this.tokens.shift(),"object"===r(t[1])?this.setState(t[1]):this.consume(t[1]),t[0]):this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var e=t;e="number"==typeof e?this.engine.tokens.values[e]:'"'+e+'"';var i=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(i.stack)}return t},[i(19),i(20),i(21),i(23),i(24),i(25),i(26),i(27)].forEach(function(t){for(var e in t)n.prototype[e]=t[e]}),t.exports=n},function(t,e,i){"use strict";t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},function(t,e,i){"use strict";t.exports={nextINITIAL:function(){return 1<this.conditionStack.length&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return 0<this.yytext.length&&this.tok.T_INLINE_HTML}}},function(e,t,i){"use strict";(function(t){var i=10,r="2147483648";"x64"==t.arch&&(i=19,r="9223372036854775808"),e.exports={consume_NUM:function(){var t=this.yytext[0],e="."===this.yytext[0];if("0"===t)if("x"===(t=this.input())||"X"===t){if(t=this.input(),this.is_HEX())return this.consume_HNUM();this.unput(t?2:1)}else if("b"===t||"B"===t){if("0"===(t=this.input())||"1"===t)return this.consume_BNUM();this.unput(t?2:1)}else this.is_NUM()||t&&this.unput(1);for(;this.offset<this.size;)if(t=this.input(),!this.is_NUM()){if("."!==t||e){if("e"===t||"E"===t){if("+"===(t=this.input())||"-"===t){if(t=this.input(),this.is_NUM())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?3:2);break}if(this.is_NUM())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?2:1);break}t&&this.unput(1);break}e=!0}return e?this.tok.T_DNUMBER:this.yytext.length<i-1?this.tok.T_LNUMBER:this.yytext.length<i||this.yytext.length==i&&this.yytext<r?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t=void 0;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER}}}).call(this,i(22))},function(t,e){var i,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var l,c=[],h=!1,u=-1;function f(){h&&l&&(h=!1,l.length?c=l.concat(c):u=-1,c.length&&d())}function d(){if(!h){var t=a(f);h=!0;for(var e=c.length;e;){for(l=c,c=[];++u<e;)l&&l[u].run();u=-1,e=c.length}l=null,h=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new p(t,e)),1!==c.length||h||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,i){"use strict";t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();if(this.is_NUM())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===t)return this.popState(),"]";if("$"===t){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN())return t;throw new Error("Unexpected terminal")}}},function(t,e,i){"use strict";t.exports={matchST_IN_SCRIPTING:function(){var t=this.input();switch(t){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(this.aspTagMode||!this.tryMatch(">"))return this.consume_TOKEN();this.input();var e=this._input[this.offset];return"\n"!==e&&"\r"!==e||this.input(),1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG;case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),this.aspTagMode=!1,1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return 2<this.conditionStack.length&&this.popState(),"}";default:if("."===t){if(t=this.input(),this.is_NUM())return this.consume_NUM();t&&this.unput(1)}if(this.is_NUM())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+t+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},function(t,e,i){"use strict";t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t=void 0;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var e=this._input[this.offset-1];if("'"===e||'"'===e?this.offset++:e=null,this.is_LABEL_START()){for(var i=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var r=this._input.substring(i,this.offset-1);if((!e||e===this._input[this.offset-1])&&(e&&this.offset++,"\r"===this._input[this.offset-1]||"\n"===this._input[this.offset-1]))return this.heredoc_label=r,i=this.offset-t,this.offset=t,this.consume(i),"'"===e?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t=void 0;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}if('"'==t)return this.tok.T_CONSTANT_ENCAPSED_STRING;var e=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),2<this.yytext.length&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(){if(this._input.substring(this.offset-1,this.offset-1+this.heredoc_label.length)===this.heredoc_label){var t=this._input[this.offset-1+this.heredoc_label.length];if("\n"===t||"\r"===t||";"===t)return!0}return!1},matchST_NOWDOC:function(){if(this.isDOC_MATCH())return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if("\n"===t||"\r"===t){if(t=this.input(),this.isDOC_MATCH())return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t=this.input();if(this.isDOC_MATCH())return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===t&&"\n"!==(t=this.input())&&"\r"!==t&&(t=this.input()),"\n"===t||"\r"===t){if(t=this.input(),this.isDOC_MATCH())return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===t)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===t)this.input();else{if("`"===t){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}continue}if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);continue}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_DOUBLE_QUOTES:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if('"'===t)return this.popState(),'"';for(;this.offset<this.size;){if("\\"===t)this.input();else{if('"'===t){this.unput(1),this.popState(),this.appendToken('"',1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}t&&this.unput(1)}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);t&&this.unput(1)}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE}}},function(t,e,i){"use strict";t.exports={T_STRING:function(){var t=this.yytext.toLowerCase(),e=this.keywords[t];if("number"!=typeof e)if("yield"===t)e=this.php7&&this.tryMatch(" from")?(this.consume(5),this.tok.T_YIELD_FROM):this.tok.T_YIELD;else if(e=this.tok.T_STRING,"b"===t||"B"===t){var i=this.input(1);if('"'===i)return this.ST_DOUBLE_QUOTES();if("'"===i)return this.T_CONSTANT_ENCAPSED_STRING();i&&this.unput(1)}return e},consume_TOKEN:function(){var t=this._input[this.offset-1],e=this.tokenTerminals[t];return e?e.apply(this,[]):this.yytext},tokenTerminals:{$:function(){return this.offset++,this.is_LABEL_START()?(this.offset--,this.consume_LABEL(),this.tok.T_VARIABLE):(this.offset--,"$")},"-":function(){var t=this._input[this.offset];return">"===t?(this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_OBJECT_OPERATOR):"-"===t?(this.input(),this.tok.T_DEC):"="===t?(this.input(),this.tok.T_MINUS_EQUAL):"-"},"\\":function(){return this.tok.T_NS_SEPARATOR},"/":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_DIV_EQUAL):"/"},":":function(){return":"===this._input[this.offset]?(this.input(),this.tok.T_DOUBLE_COLON):":"},"(":function(){var t=this.offset;if(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),this.is_LABEL_START()){var e=this.yytext.length;this.consume_LABEL();var i=this.yytext.substring(e-1).toLowerCase(),r=this.castKeywords[i];if("number"==typeof r&&(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),")"===this._input[this.offset-1]))return r}return this.unput(this.offset-t),"("},"=":function(){var t=this._input[this.offset];return">"===t?(this.input(),this.tok.T_DOUBLE_ARROW):"="===t?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_IDENTICAL):(this.input(),this.tok.T_IS_EQUAL):"="},"+":function(){var t=this._input[this.offset];return"+"===t?(this.input(),this.tok.T_INC):"="===t?(this.input(),this.tok.T_PLUS_EQUAL):"+"},"!":function(){return"="===this._input[this.offset]?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_NOT_IDENTICAL):(this.input(),this.tok.T_IS_NOT_EQUAL):"!"},"?":function(){return this.php7&&"?"===this._input[this.offset]?(this.input(),this.tok.T_COALESCE):"?"},"<":function(){var t=this._input[this.offset];return"<"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SL_EQUAL):"<"===t&&this.is_HEREDOC()?this.tok.T_START_HEREDOC:(this.input(),this.tok.T_SL):"="===t?(this.input(),this.php7&&">"===this._input[this.offset]?(this.input(),this.tok.T_SPACESHIP):this.tok.T_IS_SMALLER_OR_EQUAL):">"===t?(this.input(),this.tok.T_IS_NOT_EQUAL):"<"},">":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_IS_GREATER_OR_EQUAL):">"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SR_EQUAL):(this.input(),this.tok.T_SR):">"},"*":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_MUL_EQUAL):"*"===t?(this.input(),"="===this._input[this.offset]?(this.input(),this.tok.T_POW_EQUAL):this.tok.T_POW):"*"},".":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_CONCAT_EQUAL):"."===t&&"."===this._input[this.offset+1]?(this.consume(2),this.tok.T_ELLIPSIS):"."},"%":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_MOD_EQUAL):"%"},"&":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_AND_EQUAL):"&"===t?(this.input(),this.tok.T_BOOLEAN_AND):"&"},"|":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_OR_EQUAL):"|"===t?(this.input(),this.tok.T_BOOLEAN_OR):"|"},"^":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_XOR_EQUAL):"^"}}}},function(t,e,i){"use strict";t.exports={is_NUM:function(){var t=this._input.charCodeAt(this.offset-1);return 47<t&&t<58},is_LABEL:function(){var t=this._input.charCodeAt(this.offset-1);return 96<t&&t<123||64<t&&t<91||95===t||47<t&&t<58||126<t},is_LABEL_START:function(){var t=this._input.charCodeAt(this.offset-1);return 96<t&&t<123||64<t&&t<91||95===t||126<t},consume_LABEL:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_LABEL()){t&&this.unput(1);break}}return this},is_TOKEN:function(){var t=this._input[this.offset-1];return-1!==";:,.\\[]()|^&+-/*=%!~$<>?@".indexOf(t)},is_WHITESPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t||"\n"===t||"\r"===t},is_TABSPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t},consume_TABSPACE:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_TABSPACE()){t&&this.unput(1);break}}return this},is_HEX:function(){var t=this._input.charCodeAt(this.offset-1);return 47<t&&t<58||64<t&&t<71||96<t&&t<103}}},function(t,e,i){"use strict";function o(t){return"."!=t&&","!=t&&!isNaN(parseFloat(t))&&isFinite(t)}var r=function(t,e){this.lexer=t,this.ast=e,this.tok=t.tok,this.EOF=t.EOF,this.token=null,this.prev=null,this.debug=!1,this.php7=!0,this.extractDoc=!1,this.extractTokens=!1,this.suppressErrors=!1;var i=function(t){return[t,null]};this.entries={IDENTIFIER:new Map([this.tok.T_ABSTRACT,this.tok.T_ARRAY,this.tok.T_AS,this.tok.T_BREAK,this.tok.T_CALLABLE,this.tok.T_CASE,this.tok.T_CATCH,this.tok.T_CLASS,this.tok.T_CLASS_C,this.tok.T_CLONE,this.tok.T_CONST,this.tok.T_CONTINUE,this.tok.T_DECLARE,this.tok.T_DEFAULT,this.tok.T_DIR,this.tok.T_DO,this.tok.T_ECHO,this.tok.T_ELSE,this.tok.T_ELSEIF,this.tok.T_EMPTY,this.tok.T_ENDDECLARE,this.tok.T_ENDFOR,this.tok.T_ENDFOREACH,this.tok.T_ENDIF,this.tok.T_ENDSWITCH,this.tok.T_ENDWHILE,this.tok.T_EVAL,this.tok.T_EXIT,this.tok.T_EXTENDS,this.tok.T_FILE,this.tok.T_FINAL,this.tok.T_FINALLY,this.tok.T_FUNC_C,this.tok.T_FOR,this.tok.T_FOREACH,this.tok.T_FUNCTION,this.tok.T_GLOBAL,this.tok.T_GOTO,this.tok.T_IF,this.tok.T_IMPLEMENTS,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_INSTANCEOF,this.tok.T_INSTEADOF,this.tok.T_INTERFACE,this.tok.T_ISSET,this.tok.T_LINE,this.tok.T_LIST,this.tok.T_LOGICAL_AND,this.tok.T_LOGICAL_OR,this.tok.T_LOGICAL_XOR,this.tok.T_METHOD_C,this.tok.T_NAMESPACE,this.tok.T_NEW,this.tok.T_NS_C,this.tok.T_PRINT,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_PUBLIC,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_RETURN,this.tok.T_STATIC,this.tok.T_SWITCH,this.tok.T_THROW,this.tok.T_TRAIT,this.tok.T_TRY,this.tok.T_UNSET,this.tok.T_USE,this.tok.T_VAR,this.tok.T_WHILE,this.tok.T_YIELD].map(i)),VARIABLE:new Map([this.tok.T_VARIABLE,"$","&",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAMESPACE,this.tok.T_STATIC].map(i)),SCALAR:new Map([this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(i)),T_MAGIC_CONST:new Map([this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(i)),T_MEMBER_FLAGS:new Map([this.tok.T_PUBLIC,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_STATIC,this.tok.T_ABSTRACT,this.tok.T_FINAL].map(i)),EOS:new Map([";",this.EOF,this.tok.T_INLINE_HTML].map(i)),EXPR:new Map(["@","-","+","!","~","(","`",this.tok.T_LIST,this.tok.T_CLONE,this.tok.T_INC,this.tok.T_DEC,this.tok.T_NEW,this.tok.T_ISSET,this.tok.T_EMPTY,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_EVAL,this.tok.T_INT_CAST,this.tok.T_DOUBLE_CAST,this.tok.T_STRING_CAST,this.tok.T_ARRAY_CAST,this.tok.T_OBJECT_CAST,this.tok.T_BOOL_CAST,this.tok.T_UNSET_CAST,this.tok.T_EXIT,this.tok.T_PRINT,this.tok.T_YIELD,this.tok.T_STATIC,this.tok.T_FUNCTION,this.tok.T_VARIABLE,"$",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_STRING,this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(i))}};r.prototype.getTokenName=function(t){return o(t)?t==this.EOF?"the end of file (EOF)":this.lexer.engine.tokens.values[t]:"'"+t+"'"},r.prototype.parse=function(t,e){this._errors=[],this.filename=e||"eval",this.currentNamespace=[""],this.extractDoc?this._docs=[]:this._docs=null,this.extractTokens?this._tokens=[]:this._tokens=null,this._docIndex=0,this.lexer.setInput(t),this.lexer.all_tokens=this.extractTokens,this.lexer.comment_tokens=this.extractDoc,this.length=this.lexer._input.length,this.innerList=!1,this.innerListForm=!1;var i=this.node("program"),r=[];for(this.next();this.token!=this.EOF;){var n=this.read_start();null!=n&&(Array.isArray(n)?r=r.concat(n):r.push(n))}return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],i(r,this._errors,this._docs,this._tokens)},r.prototype.raiseError=function(t,e,i,r){if(t+=" on line "+this.lexer.yylloc.first_line,!this.suppressErrors){var n=new SyntaxError(t,this.filename,this.lexer.yylloc.first_line);throw n.lineNumber=this.lexer.yylloc.first_line,n.fileName=this.filename,n.columnNumber=this.lexer.yylloc.first_column,n}var o=this.ast.prepare("error",null,this)(t,r,this.lexer.yylloc.first_line,i);return this._errors.push(o),o},r.prototype.error=function(t){var e="Parse Error : syntax error",i=this.getTokenName(this.token),r="";if(this.token!==this.EOF){if(o(this.token)){var n=this.text();10<n.length&&(n=n.substring(0,7)+"..."),i="'"+n+"' ("+i+")"}e+=", unexpected "+i}return t&&!Array.isArray(t)&&((o(t)||1===t.length)&&(r=", expecting "+this.getTokenName(t)),e+=r),this.raiseError(e,r,t,i)},r.prototype.node=function(t){if(this.extractDoc){var e=null;this._docIndex<this._docs.length&&(e=this._docs.slice(this._docIndex),this._docIndex=this._docs.length,this.debug&&(console.log(new Error("Append docs on "+t)),console.log(e)));var i=this.ast.prepare(t,e,this);return i.preBuild=function(){this._docIndex<this._docs.length&&(i.setTrailingComments(this._docs.slice(this._docIndex)),this._docIndex=this._docs.length)}.bind(this),i}return this.ast.prepare(t,null,this)},r.prototype.expectEndOfStatement=function(t){if(";"===this.token)t&&";"===this.lexer.yytext&&t.includeToken(this);else if(this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF)return this.error(";"),!1;return this.next(),!0};var s=["parser.next","parser.node","parser.showlog"];r.prototype.showlog=function(){for(var t=(new Error).stack.split("\n"),e=void 0,i=2;i<t.length;i++){e=t[i].trim();for(var r=!1,n=0;n<s.length;n++)if(e.substring(3,3+s[n].length)===s[n]){r=!0;break}if(!r)break}return console.log("Line "+this.lexer.yylloc.first_line+" : "+this.getTokenName(this.token)+">"+this.lexer.yytext+"< @--\x3e"+e),this},r.prototype.expect=function(t){if(Array.isArray(t)){if(-1===t.indexOf(this.token))return this.error(t),!1}else if(this.token!=t)return this.error(t),!1;return!0},r.prototype.text=function(){return this.lexer.yytext},r.prototype.next=function(){if(";"===this.token&&";"!==this.lexer.yytext||(this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset]),this.lex(),this.debug&&this.showlog(),this.extractDoc)for(;this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT;)this.token===this.tok.T_COMMENT?this._docs.push(this.read_comment()):this._docs.push(this.read_doc_comment());return this},r.prototype.lex=function(){if(this.extractTokens)do{if(this.token=this.lexer.lex()||this.EOF,this.token===this.EOF)return this;var t=this.lexer.yytext;if(t=this.lexer.engine.tokens.values.hasOwnProperty(this.token)?[this.lexer.engine.tokens.values[this.token],t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset]:[null,t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset],this._tokens.push(t),this.token===this.tok.T_CLOSE_TAG)return this.token=";",this;if(this.token===this.tok.T_OPEN_TAG_WITH_ECHO)return this.token=this.tok.T_ECHO,this}while(this.token===this.tok.T_WHITESPACE||!this.extractDoc&&(this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT)||this.token===this.tok.T_OPEN_TAG);else this.token=this.lexer.lex()||this.EOF;return this},r.prototype.is=function(t){return Array.isArray(t)?-1!==t.indexOf(this.token):this.entries[t].has(this.token)},[i(29),i(30),i(31),i(32),i(33),i(34),i(35),i(36),i(37),i(38),i(39),i(40),i(41),i(42),i(43)].forEach(function(t){for(var e in t){if(r.prototype.hasOwnProperty(e))throw new Error("Function "+e+" is already defined - collision");r.prototype[e]=t[e]}}),t.exports=r},function(t,e,i){"use strict";t.exports={read_array:function(){var t=null,e=!1,i=this.node("array");t=this.token===this.tok.T_ARRAY?(this.next().expect("("),")"):(e=!0,"]");var r=[];return this.next().token!==t&&(r=this.read_array_pair_list(e)),this.expect(t),this.next(),i(e,r)},read_array_pair_list:function(t){var e=this;return this.read_list(function(){return e.read_array_pair(t)},",",!0)},read_array_pair:function(t){if(","===this.token||!t&&")"===this.token||t&&"]"===this.token)return null;if("&"===this.token)return this.next().read_variable(!0,!1,!0);var e=this.node("entry"),i=this.read_expr();return this.token===this.tok.T_DOUBLE_ARROW?"&"===this.next().token?e(i,this.next().read_variable(!0,!1,!0)):e(i,this.read_expr()):i},read_dim_offset:function(){return"]"!=this.token&&this.read_expr()}}},function(t,e,i){"use strict";t.exports={read_class:function(){var t=this.node("class"),e=this.read_class_scope();if(this.token!==this.tok.T_CLASS)return this.error(this.tok.T_CLASS),this.next(),null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),r=this.text();this.next(),i=i(r);var n=null;this.token==this.tok.T_EXTENDS&&(n=this.next().read_namespace_name());var o=null;return this.token==this.tok.T_IMPLEMENTS&&(o=this.next().read_name_list()),this.expect("{"),t(i,n,o,this.next().read_class_body(),e)},read_class_scope:function(){var t=this.token;return t==this.tok.T_FINAL?(this.next(),[0,0,2]):t==this.tok.T_ABSTRACT?(this.next(),[0,0,1]):[0,0,0]},read_class_body:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT)if(this.token!==this.tok.T_USE){var e=this.read_member_flags(!1);if(this.token!==this.tok.T_CONST)if(this.token===this.tok.T_VAR&&(this.next().expect(this.tok.T_VARIABLE),e[0]=null,e[1]=0),this.token===this.tok.T_VARIABLE){var i=this.read_variable_list(e);this.expect(";"),this.next(),t=t.concat(i)}else this.token===this.tok.T_FUNCTION?t.push(this.read_function(!1,e)):(this.error([this.tok.T_CONST,this.tok.T_VARIABLE,this.tok.T_FUNCTION]),this.next());else{var r=this.read_constant_list(e);this.expect(";")&&this.next(),t=t.concat(r)}}else t=t.concat(this.read_trait_use_statement());else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}"),this.next(),t},read_variable_list:function(i){return this.read_list(function(){var t=this.node("property");this.expect(this.tok.T_VARIABLE);var e=this.text().substring(1);return this.next(),";"===this.token||","===this.token?t(e,null,i):"="===this.token?t(e,this.next().read_expr(),i):(this.expect([",",";","="]),t(e,null,i))},",")},read_constant_list:function(t){return this.expect(this.tok.T_CONST)&&this.next(),this.node("classconstant")(null,this.read_list(function(){var t=this.node("constant"),e=null,i=null;return this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")?(e=this.text(),this.next()):this.expect("IDENTIFIER"),this.expect("=")&&(i=this.next().read_expr()),t(e,i)},","),t)},read_member_flags:function(t){var e=[-1,-1,-1];if(this.is("T_MEMBER_FLAGS")){var i=0,r=0;do{switch(this.token){case this.tok.T_PUBLIC:r=i=0;break;case this.tok.T_PROTECTED:i=0,r=1;break;case this.tok.T_PRIVATE:i=0,r=2;break;case this.tok.T_STATIC:r=i=1;break;case this.tok.T_ABSTRACT:i=2,r=1;break;case this.tok.T_FINAL:r=i=2}t&&(0==i&&2==r?(this.expect([this.tok.T_PUBLIC,this.tok.T_PROTECTED]),r=-1):2==i&&1==r&&(this.error(),r=-1)),-1!==e[i]?this.error():-1!==r&&(e[i]=r)}while(this.next().is("T_MEMBER_FLAGS"))}return-1==e[1]&&(e[1]=0),-1==e[2]&&(e[2]=0),e},read_interface:function(){var t=this.node("interface");if(this.token!==this.tok.T_INTERFACE)return this.error(this.tok.T_INTERFACE),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),i=this.text();this.next(),e=e(i);var r=null;return this.token===this.tok.T_EXTENDS&&(r=this.next().read_name_list()),this.expect("{"),t(e,r,this.next().read_interface_body())},read_interface_body:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT){var e=this.read_member_flags(!0);if(this.token==this.tok.T_CONST){var i=this.read_constant_list(e);this.expect(";")&&this.next(),t=t.concat(i)}else if(this.token===this.tok.T_FUNCTION){var r=this.read_function_declaration(2,e);r.parseFlags(e),t.push(r),this.expect(";")&&this.next()}else this.error([this.tok.T_CONST,this.tok.T_FUNCTION]),this.next()}else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}")&&this.next(),t},read_trait:function(){var t=this.node("trait");if(this.token!==this.tok.T_TRAIT)return this.error(this.tok.T_TRAIT),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),i=this.text();return this.next(),e=e(i),this.expect("{"),t(e,this.next().read_class_body())},read_trait_use_statement:function(){var t=this.node("traituse");this.expect(this.tok.T_USE)&&this.next();for(var e=[this.read_namespace_name()],i=null;","===this.token;)e.push(this.next().read_namespace_name());if("{"===this.token){for(i=[];this.next().token!==this.EOF&&"}"!==this.token;)i.push(this.read_trait_use_alias()),this.expect(";");this.expect("}")&&this.next()}else this.expect(";")&&this.next();return t(e,i)},read_trait_use_alias:function(){var t=this.node(),e=null,i=void 0;if(this.is("IDENTIFIER")?(i=this.text(),this.next()):(i=this.read_namespace_name(),this.token===this.tok.T_DOUBLE_COLON?(this.next(),this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")?(e=i,i=this.text(),this.next()):this.expect(this.tok.T_STRING)):i=i.name),this.token===this.tok.T_INSTEADOF)return t("traitprecedence",e,i,this.next().read_name_list());if(this.token!==this.tok.T_AS)return this.expect([this.tok.T_AS,this.tok.T_INSTEADOF]),t("traitalias",e,i,null,null);var r=null,n=null;return this.next().is("T_MEMBER_FLAGS")&&(r=this.read_member_flags()),this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")?(n=this.text(),this.next()):!1===r&&this.expect(this.tok.T_STRING),t("traitalias",e,i,n,r)}}},function(t,e,i){"use strict";t.exports={read_comment:function(){var t=this.text(),e=this.ast.prepare("/*"===t.substring(0,2)?"commentblock":"commentline",null,this),i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),e=e(t),this.prev=i,e},read_doc_comment:function(){var t=this.ast.prepare("commentblock",null,this),e=this.text(),i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),t=t(e),this.prev=i,t}}},function(t,e,i){"use strict";t.exports={read_expr:function(t){var e=this.node();if(t||(t=this.read_expr_item()),"|"===this.token)return e("bin","|",t,this.next().read_expr());if("&"===this.token)return e("bin","&",t,this.next().read_expr());if("^"===this.token)return e("bin","^",t,this.next().read_expr());if("."===this.token)return e("bin",".",t,this.next().read_expr());if("+"===this.token)return e("bin","+",t,this.next().read_expr());if("-"===this.token)return e("bin","-",t,this.next().read_expr());if("*"===this.token)return e("bin","*",t,this.next().read_expr());if("/"===this.token)return e("bin","/",t,this.next().read_expr());if("%"===this.token)return e("bin","%",t,this.next().read_expr());if(this.token===this.tok.T_POW)return e("bin","**",t,this.next().read_expr());if(this.token===this.tok.T_SL)return e("bin","<<",t,this.next().read_expr());if(this.token===this.tok.T_SR)return e("bin",">>",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_OR)return e("bin","||",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_OR)return e("bin","or",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_AND)return e("bin","&&",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_AND)return e("bin","and",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_XOR)return e("bin","xor",t,this.next().read_expr());if(this.token===this.tok.T_IS_IDENTICAL)return e("bin","===",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_IDENTICAL)return e("bin","!==",t,this.next().read_expr());if(this.token===this.tok.T_IS_EQUAL)return e("bin","==",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_EQUAL)return e("bin","!=",t,this.next().read_expr());if("<"===this.token)return e("bin","<",t,this.next().read_expr());if(">"===this.token)return e("bin",">",t,this.next().read_expr());if(this.token===this.tok.T_IS_SMALLER_OR_EQUAL)return e("bin","<=",t,this.next().read_expr());if(this.token===this.tok.T_IS_GREATER_OR_EQUAL)return e("bin",">=",t,this.next().read_expr());if(this.token===this.tok.T_SPACESHIP)return e("bin","<=>",t,this.next().read_expr());if(this.token===this.tok.T_INSTANCEOF&&(t=e("bin","instanceof",t,this.next().read_class_name_reference()),";"!==this.token&&this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF&&(t=this.read_expr(t))),this.token===this.tok.T_COALESCE)return e("bin","??",t,this.next().read_expr());if("?"!==this.token)return e.destroy(t),t;var i=null;return":"!==this.next().token&&(i=this.read_expr()),this.expect(":")&&this.next(),e("retif",t,i,this.read_expr())},read_expr_cast:function(t){return this.node("cast")(t,this.text(),this.next().read_expr())},read_expr_item:function(){var t=void 0,e=void 0;if("@"===this.token)return this.node("silent")(this.next().read_expr());if("+"===this.token)return this.node("unary")("+",this.next().read_expr());if("-"===this.token)return this.node("unary")("-",this.next().read_expr());if("!"===this.token)return this.node("unary")("!",this.next().read_expr());if("~"===this.token)return this.node("unary")("~",this.next().read_expr());if("("===this.token)return(e=this.next().read_expr()).parenthesizedExpression=!0,this.expect(")")&&this.next(),this.handleDereferencable(e);if("`"===this.token)return this.read_encapsed_string("`");if(this.token===this.tok.T_LIST){var i=null,r=this.innerList;t=this.node("list"),r||(i=this.node("assign")),this.next().expect("(")&&this.next(),this.innerList||(this.innerList=!0);var n=this.read_array_pair_list(!1);this.expect(")")&&this.next();for(var o=!1,s=0;s<n.length;s++)if(null!==n[s]){o=!0;break}return o||this.raiseError("Fatal Error : Cannot use empty list on line "+this.lexer.yylloc.first_line),r?t(n,!1):(this.innerList=!1,this.expect("=")?i(t(n,!1),this.next().read_expr(),"="):t(n,!1))}if(this.token===this.tok.T_CLONE)return this.node("clone")(this.next().read_expr());switch(this.token){case this.tok.T_INC:return this.node("pre")("+",this.next().read_variable(!1,!1,!1));case this.tok.T_DEC:return this.node("pre")("-",this.next().read_variable(!1,!1,!1));case this.tok.T_NEW:return this.read_new_expr();case this.tok.T_ISSET:t=this.node("isset"),this.next().expect("(")&&this.next();var a=this.read_list(this.read_expr,",");return this.expect(")")&&this.next(),t(a);case this.tok.T_EMPTY:t=this.node("empty"),this.next().expect("(")&&this.next();var l=this.read_expr();return this.expect(")")&&this.next(),t(l);case this.tok.T_INCLUDE:return this.node("include")(!1,!1,this.next().read_expr());case this.tok.T_INCLUDE_ONCE:return this.node("include")(!0,!1,this.next().read_expr());case this.tok.T_REQUIRE:return this.node("include")(!1,!0,this.next().read_expr());case this.tok.T_REQUIRE_ONCE:return this.node("include")(!0,!0,this.next().read_expr());case this.tok.T_EVAL:return t=this.node("eval"),this.next().expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),t(e);case this.tok.T_INT_CAST:return this.read_expr_cast("int");case this.tok.T_DOUBLE_CAST:return this.read_expr_cast("float");case this.tok.T_STRING_CAST:return this.read_expr_cast(-1!==this.text().indexOf("binary")?"binary":"string");case this.tok.T_ARRAY_CAST:return this.read_expr_cast("array");case this.tok.T_OBJECT_CAST:return this.read_expr_cast("object");case this.tok.T_BOOL_CAST:return this.read_expr_cast("bool");case this.tok.T_UNSET_CAST:return this.read_expr_cast("unset");case this.tok.T_EXIT:var c="die"===this.lexer.yytext.toLowerCase();t=this.node("exit");var h=null;return"("===this.next().token&&(")"!==this.next().token?(h=this.read_expr(),this.expect(")")&&this.next()):this.next()),t(h,c);case this.tok.T_PRINT:return this.node("print")(this.next().read_expr());case this.tok.T_YIELD:var u=null,f=null;return t=this.node("yield"),this.next().is("EXPR")&&(u=this.read_expr(),this.token===this.tok.T_DOUBLE_ARROW&&(f=u,u=this.next().read_expr())),t(u,f);case this.tok.T_YIELD_FROM:return(t=this.node("yieldfrom"))(e=this.next().read_expr());case this.tok.T_FUNCTION:return this.read_function(!0);case this.tok.T_STATIC:var d=[this.token,this.lexer.getState()];if(this.next().token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);this.lexer.tokens.push(d),this.next()}if(this.is("VARIABLE")){t=this.node();var p="identifier"===(e=this.read_variable(!1,!1,!1)).kind||"staticlookup"===e.kind&&"identifier"===e.offset.kind;switch(this.token){case"=":p&&this.error("VARIABLE");return t("assign",e,"&"==this.next().token?this.next().token===this.tok.T_NEW?this.read_new_expr():this.read_variable(!1,!1,!0):this.read_expr(),"=");case this.tok.T_PLUS_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"+=");case this.tok.T_MINUS_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"-=");case this.tok.T_MUL_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"*=");case this.tok.T_POW_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"**=");case this.tok.T_DIV_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"/=");case this.tok.T_CONCAT_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),".=");case this.tok.T_MOD_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"%=");case this.tok.T_AND_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"&=");case this.tok.T_OR_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"|=");case this.tok.T_XOR_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"^=");case this.tok.T_SL_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"<<=");case this.tok.T_SR_EQUAL:return p&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),">>=");case this.tok.T_INC:return p&&this.error("VARIABLE"),this.next(),t("post","+",e);case this.tok.T_DEC:return p&&this.error("VARIABLE"),this.next(),t("post","-",e);default:t.destroy(e)}}else{if(this.is("SCALAR")){if(t=this.node(),"array"===(e=this.read_scalar()).kind&&e.shortForm&&"="===this.token){var m=this.node("list")(e.items,!0);return e.loc&&(m.loc=e.loc),t("assign",m,this.next().read_expr(),"=")}return t.destroy(e),this.handleDereferencable(e)}this.error("EXPR"),this.next()}return e},read_new_expr:function(){var t=this.node("new");this.expect(this.tok.T_NEW)&&this.next();var e=[];if(this.token===this.tok.T_CLASS){var i=this.node("class"),r=null,n=null,o=null;return"("===this.next().token&&(e=this.read_function_argument_list()),this.token==this.tok.T_EXTENDS&&(r=this.next().read_namespace_name()),this.token==this.tok.T_IMPLEMENTS&&(n=this.next().read_name_list()),this.expect("{")&&(o=this.next().read_class_body()),t(i(null,r,n,o,[0,0,0]),e)}var s=this.read_new_class_name();return"("===this.token&&(e=this.read_function_argument_list()),t(s,e)},read_new_class_name:function(){if(this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_STRING||this.token===this.tok.T_NAMESPACE){var t=this.read_namespace_name(!0);return this.token===this.tok.T_DOUBLE_COLON&&(t=this.read_static_getter(t)),t}if(this.is("VARIABLE"))return this.read_variable(!0,!1,!1);this.expect([this.tok.T_STRING,"VARIABLE"])},handleDereferencable:function(t){for(;this.token!==this.EOF;)if(this.token===this.tok.T_OBJECT_OPERATOR||this.token===this.tok.T_DOUBLE_COLON)t=this.recursive_variable_chain_scan(t,!1,!1,!0);else if(this.token===this.tok.T_CURLY_OPEN||"["===this.token)t=this.read_dereferencable(t);else{if("("!==this.token)return t;t=this.node("call")(t,this.read_function_argument_list())}return t}}},function(t,e,i){"use strict";t.exports={is_reference:function(){return"&"==this.token&&(this.next(),!0)},is_variadic:function(){return this.token===this.tok.T_ELLIPSIS&&(this.next(),!0)},read_function:function(t,e){var i=this.read_function_declaration(t?1:e?2:0,e&&1===e[1]);return e&&1==e[2]?(i.parseFlags(e),this.expect(";")&&this.next()):(this.expect("{")&&(i.body=this.read_code_block(!1),i.loc&&i.body.loc&&(i.loc.end=i.body.loc.end)),!t&&e&&i.parseFlags(e)),i},read_function_declaration:function(t,e){var i="function";1===t?i="closure":2===t&&(i="method");var r=this.node(i);this.expect(this.tok.T_FUNCTION)&&this.next();var n=this.is_reference(),o=!1,s=[],a=null,l=!1;if(1!==t){var c=this.node("identifier");2===t?this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")?(o=this.text(),this.next()):this.error("IDENTIFIER"):(this.expect(this.tok.T_STRING)&&(o=this.text()),this.next()),o=c(o)}this.expect("(")&&this.next();var h=this.read_parameter_list();return this.expect(")")&&this.next(),1===t&&this.token===this.tok.T_USE&&(this.next().expect("(")&&this.next(),s=this.read_list(this.read_lexical_var,","),this.expect(")")&&this.next()),":"===this.token&&("?"===this.next().token&&(l=!0,this.next()),a=this.read_type()),1===t?r(h,n,s,a,l,e):r(o,h,n,a,l)},read_lexical_var:function(){var t=this.node("variable"),e=!1;"&"===this.token&&(e=!0,this.next()),this.expect(this.tok.T_VARIABLE);var i=this.text().substring(1);return this.next(),t(i,e,!1)},read_parameter_list:function(){var t=[];if(")"!=this.token)for(;this.token!=this.EOF;){if(t.push(this.read_parameter()),","!=this.token){if(")"==this.token)break;this.error([",",")"]);break}this.next()}return t},read_parameter:function(){var t,e=this.node("parameter"),i=null,r=null,n=!1;"?"===this.token&&(this.next(),n=!0),t=this.read_type(),n&&!t&&this.raiseError("Expecting a type definition combined with nullable operator");var o=this.is_reference(),s=this.is_variadic();return this.expect(this.tok.T_VARIABLE)&&(i=this.text().substring(1),this.next()),"="==this.token&&(r=this.next().read_expr()),e(i,t,r,o,s,n)},read_function_argument_list:function(){var t=[],e=!1;if(this.expect("(")&&this.next(),")"!==this.token)for(;this.token!=this.EOF;){var i=this.read_argument_list();if(i&&(t.push(i),"variadic"===i.kind?e=!0:e&&this.raiseError("Unexpected argument after a variadic argument")),","!==this.token)break;this.next()}return this.expect(")")&&this.next(),t},read_argument_list:function(){return this.token===this.tok.T_ELLIPSIS?this.node("variadic")(this.next().read_expr()):this.read_expr()},read_type:function(){var t=this.node();if(this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE){var e=this.text();return this.next(),t("typereference",e.toLowerCase(),e)}if(this.token!==this.tok.T_STRING)return this.token===this.tok.T_NAMESPACE||this.token===this.tok.T_NS_SEPARATOR?this.read_namespace_name():null;var i=this.text(),r=[this.token,this.lexer.getState()];return this.next(),this.token!==this.tok.T_NS_SEPARATOR&&-1<this.ast.typereference.types.indexOf(i.toLowerCase())?t("typereference",i.toLowerCase(),i):(this.lexer.tokens.push(r),this.next(),this.read_namespace_name())}}},function(t,e,i){"use strict";t.exports={read_if:function(){var t,e=this.node("if"),i=null,r=null,n=!1;if(t=this.next().read_if_expr(),":"===this.token){n=!0,this.next(),i=this.node("block");for(var o=[];this.token!==this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){r=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){r=this.read_else_short();break}o.push(this.read_inner_statement())}i=i(null,o),this.expect(this.tok.T_ENDIF)&&this.next(),this.expectEndOfStatement()}else i=this.read_statement(),this.token===this.tok.T_ELSEIF?r=this.read_if():this.token===this.tok.T_ELSE&&(r=this.next().read_statement());return e(t,i,r,n)},read_if_expr:function(){this.expect("(")&&this.next();var t=this.read_expr();return this.expect(")")&&this.next(),t},read_elseif_short:function(){var t,e=this.node("if"),i=null,r=null,n=[];for(t=this.next().read_if_expr(),this.expect(":")&&this.next(),r=this.node("block");this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){i=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){i=this.read_else_short();break}n.push(this.read_inner_statement())}return e(t,r=r(null,n),i,!0)},read_else_short:function(){var t=this.node("block");this.next().expect(":")&&this.next();for(var e=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;)e.push(this.read_inner_statement());return t(null,e)}}},function(t,e,i){"use strict";t.exports={read_while:function(){var t=this.node("while");this.expect(this.tok.T_WHILE)&&this.next();var e,i=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),t(e,":"===this.token?(i=!0,this.read_short_form(this.tok.T_ENDWHILE)):this.read_statement(),i)},read_do:function(){var t=this.node("do");this.expect(this.tok.T_DO)&&this.next();var e,i=null;return e=this.read_statement(),this.expect(this.tok.T_WHILE)&&(this.next().expect("(")&&this.next(),i=this.read_expr(),this.expect(")")&&this.next(),this.expect(";")&&this.next()),t(i,e)},read_for:function(){var t=this.node("for");this.expect(this.tok.T_FOR)&&this.next();var e=[],i=[],r=[],n=!1;return this.expect("(")&&this.next(),";"!==this.token?(e=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),";"!==this.token?(i=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),")"!==this.token?(r=this.read_list(this.read_expr,","),this.expect(")")&&this.next()):this.next(),t(e,i,r,":"===this.token?(n=!0,this.read_short_form(this.tok.T_ENDFOR)):this.read_statement(),n)},read_foreach:function(){var t=this.node("foreach");this.expect(this.tok.T_FOREACH)&&this.next();var e,i=null,r=null,n=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(this.tok.T_AS)&&(this.next(),r=this.read_foreach_variable(),this.token===this.tok.T_DOUBLE_ARROW&&(i=r,r=this.next().read_foreach_variable())),i&&"list"===i.kind&&this.raiseError("Fatal Error : Cannot use list as key element"),this.expect(")")&&this.next(),t(e,i,r,":"===this.token?(n=!0,this.read_short_form(this.tok.T_ENDFOREACH)):this.read_statement(),n)},read_foreach_variable:function(){if(this.token!==this.tok.T_LIST&&"["!==this.token)return this.read_variable(!1,!1,!1);var t="["===this.token,e=this.node("list");this.next(),!t&&this.expect("(")&&this.next();var i=this.read_array_pair_list(t);return this.expect(t?"]":")")&&this.next(),e(i,t)}}},function(t,e,i){"use strict";t.exports={read_start:function(){return this.token==this.tok.T_NAMESPACE?this.read_namespace():this.read_top_statement()}}},function(t,e,i){"use strict";t.exports={read_namespace:function(){var t=this.node("namespace"),e=void 0;if(this.expect(this.tok.T_NAMESPACE)&&this.next(),"{"==this.token)return this.currentNamespace=[""],e=this.next().read_top_statements(),this.expect("}")&&this.next(),t([""],e,!0);var i=this.read_namespace_name();return";"==this.token?(this.currentNamespace=i,e=this.next().read_top_statements(),this.expect(this.EOF),t(i.name,e,!1)):"{"==this.token?(this.currentNamespace=i,e=this.next().read_top_statements(),this.expect("}")&&this.next(),t(i.name,e,!0)):"("===this.token?(i.resolution=this.ast.reference.RELATIVE_NAME,i.name=i.name.substring(1),this.node("call")(i,this.read_function_argument_list())):(this.error(["{",";"]),this.currentNamespace=i,e=this.read_top_statements(),this.expect(this.EOF),t(i,e,!1))},read_namespace_name:function(t){var e=this.node(),i=!1;this.token===this.tok.T_NAMESPACE&&(this.next().expect(this.tok.T_NS_SEPARATOR)&&this.next(),i=!0);var r=this.read_list(this.tok.T_STRING,this.tok.T_NS_SEPARATOR,!0);if(!i&&1===r.length&&(t||"("!==this.token)){if("parent"===r[0].toLowerCase())return e("parentreference",r[0]);if("self"===r[0].toLowerCase())return e("selfreference",r[0])}return e("classreference",r,i)},read_use_statement:function(){var t=this.node("usegroup"),e=[],i=null;this.expect(this.tok.T_USE)&&this.next();var r=this.read_use_type();return e.push(this.read_use_declaration(!1)),","===this.token?e=e.concat(this.next().read_use_declarations(!1)):"{"===this.token&&(i=e[0].name,e=this.next().read_use_declarations(null===r),this.expect("}")&&this.next()),t=t(i,r,e),this.expect(";")&&this.next(),t},read_class_name_reference:function(){return this.read_variable(!0,!1,!1)},read_use_declaration:function(t){var e=this.node("useitem"),i=null;t&&(i=this.read_use_type());var r=this.read_namespace_name(),n=this.read_use_alias();return e(r.name,n,i)},read_use_declarations:function(t){for(var e=[this.read_use_declaration(t)];","===this.token;){if(this.next(),t){if(this.token!==this.tok.T_FUNCTION&&this.token!==this.tok.T_CONST&&this.token!==this.tok.T_STRING)break}else if(this.token!==this.tok.T_STRING)break;e.push(this.read_use_declaration(t))}return e},read_use_alias:function(){var t=null;return this.token===this.tok.T_AS&&this.next().expect(this.tok.T_STRING)&&(t=this.text(),this.next()),t},read_use_type:function(){return this.token===this.tok.T_FUNCTION?(this.next(),this.ast.useitem.TYPE_FUNCTION):this.token===this.tok.T_CONST?(this.next(),this.ast.useitem.TYPE_CONST):null}}},function(t,e,i){"use strict";var r={"\\r":"\r","\\n":"\n","\\t":"\t","\\v":String.fromCharCode(11),"\\e":String.fromCharCode(27),"\\f":String.fromCharCode(12),"\\\\":"\\","\\$":"$",'\\"':'"',"\\'":"'"};t.exports={resolve_special_chars:function(t,e){return e?t.replace(/\\[rntvef"'\\$]/g,function(t){return r[t]}):t.replace(/\\['\\]/g,function(t){return r[t]})},read_scalar:function(){if(this.is("T_MAGIC_CONST"))return this.get_magic_constant();var t=void 0,e=void 0;switch(this.token){case this.tok.T_CONSTANT_ENCAPSED_STRING:t=this.node("string");var i=this.text(),r=0;"b"!==i[0]&&"B"!==i[0]||(r=1);var n='"'===i[r];return this.next(),t=t(n,this.resolve_special_chars(i.substring(r+1,i.length-1),n),1===r,i),this.token===this.tok.T_DOUBLE_COLON?this.read_static_getter(t):t;case this.tok.T_START_HEREDOC:if("ST_NOWDOC"!==this.lexer.curCondition)return this.read_encapsed_string(this.tok.T_END_HEREDOC);var o=this.lexer.yylloc.first_offset;e=this.node("nowdoc");var s=(t=this.next().text())[t.length-1];"\n"===s?t="\r"===t[t.length-2]?t.substring(0,t.length-2):t.substring(0,t.length-1):"\r"===s&&(t=t.substring(0,t.length-1)),this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE)&&this.next();var a=this.lexer._input.substring(o,this.lexer.yylloc.last_offset);return this.expect(this.tok.T_END_HEREDOC)&&this.next(),e=e(t,a,this.lexer.heredoc_label,'"'===a[3]||"'"===a[3]);case'"':return this.read_encapsed_string('"');case'b"':case'B"':return this.read_encapsed_string('"',!0);case this.tok.T_LNUMBER:case this.tok.T_DNUMBER:var l=this.node("number");return t=this.text(),this.next(),l(t,null);case this.tok.T_ARRAY:case"[":return this.read_array();default:var c=this.error("SCALAR");return this.next(),c}},read_dereferencable:function(t){var e=void 0,i=void 0,r=this.node("offsetlookup");return"["===this.token?(i=this.next().read_expr(),this.expect("]")&&this.next(),e=r(t,i)):this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES&&(e=r(t,i=this.read_encapsed_string_item(!1))),e},read_encapsed_string_item:function(t){var e=this.node("encapsedpart"),i=!1,r=this.node(),n=void 0,o=void 0,s=void 0;if(this.token===this.tok.T_ENCAPSED_AND_WHITESPACE){var a=this.text();this.next(),r=r("string",!1,this.resolve_special_chars(a,t),!1,a)}else if(this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES){if(s=null,this.next().token===this.tok.T_STRING_VARNAME){s=this.node("variable");var l=this.text();this.next(),s="["===this.token?(s=s(l,!1),o=this.node("offsetlookup"),n=this.next().read_expr(),this.expect("]")&&this.next(),o(s,n)):l}else s=this.read_expr();this.expect("}")&&this.next(),r=r("variable",s,!1,!0)}else if(this.token===this.tok.T_CURLY_OPEN)i=!0,r.destroy(),r=this.next().read_variable(!1,!1,!1),this.expect("}")&&this.next();else if(this.token===this.tok.T_VARIABLE){if(r.destroy(),r=this.read_simple_variable(!1),"["===this.token&&(o=this.node("offsetlookup"),n=this.next().read_encaps_var_offset(),this.expect("]")&&this.next(),r=o(r,n)),this.token===this.tok.T_OBJECT_OPERATOR){o=this.node("propertylookup"),this.next().expect(this.tok.T_STRING);var c=this.node("identifier");s=this.text(),this.next(),r=o(r,c(s))}}else{this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE);var h=this.text();this.next(),r.destroy(),r=r("string",!1,h,!1,h)}return e(r,i)},read_encapsed_string:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=this.node("encapsed");this.next();var r=this.lexer.yylloc.prev_offset-(e?1:0),n=[],o=null;for(o="`"===t?this.ast.encapsed.TYPE_SHELL:'"'===t?this.ast.encapsed.TYPE_STRING:this.ast.encapsed.TYPE_HEREDOC;this.token!==t&&this.token!==this.EOF;)n.push(this.read_encapsed_string_item(!0));return this.expect(t)&&this.next(),i=i(n,this.lexer._input.substring(r-1,this.lexer.yylloc.first_offset),o),t===this.tok.T_END_HEREDOC&&(i.label=this.lexer.heredoc_label),i},get_magic_constant:function(){var t=this.node("magic"),e=this.text();return this.next(),t(e.toUpperCase(),e)}}},function(t,e,i){"use strict";t.exports={read_top_statements:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;){var e=this.read_top_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_top_statement:function(){switch(this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class();case this.tok.T_INTERFACE:return this.read_interface();case this.tok.T_TRAIT:return this.read_trait();case this.tok.T_USE:return this.read_use_statement();case this.tok.T_CONST:var t=this.node("constantstatement"),e=this.next().read_const_list();return this.expectEndOfStatement(),t(null,e);case this.tok.T_NAMESPACE:return this.read_namespace();case this.tok.T_HALT_COMPILER:var i=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),this.expect(";"),this.lexer.done=!0,i(this.lexer._input.substring(this.lexer.offset));default:return this.read_statement()}},read_inner_statements:function(){for(var t=[];this.token!=this.EOF&&"}"!==this.token;){var e=this.read_inner_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_const_list:function(){return this.read_list(function(){this.expect(this.tok.T_STRING);var t=this.node("constant"),e=this.text();return this.next().expect("=")?t(e,this.next().read_expr()):t(e,null)},",",!1)},read_declare_list:function(){for(var t=[];this.token!=this.EOF&&")"!==this.token;){this.expect(this.tok.T_STRING);var e=this.node("declaredirective"),i=this.node("identifier"),r=this.text();this.next(),i=i(r);var n=null;if(this.expect("=")&&(n=this.next().read_expr()),t.push(e(i,n)),","!==this.token)break;this.next()}return t},read_inner_statement:function(){switch(this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class();case this.tok.T_INTERFACE:return this.read_interface();case this.tok.T_TRAIT:return this.read_trait();case this.tok.T_HALT_COMPILER:this.raiseError("__HALT_COMPILER() can only be used from the outermost scope");var t=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),t=t(this.lexer._input.substring(this.lexer.offset)),this.expect(";")&&this.next(),t;default:return this.read_statement()}},read_statement:function(){switch(this.token){case"{":return this.read_code_block(!1);case this.tok.T_IF:return this.read_if();case this.tok.T_SWITCH:return this.read_switch();case this.tok.T_FOR:return this.read_for();case this.tok.T_FOREACH:return this.read_foreach();case this.tok.T_WHILE:return this.read_while();case this.tok.T_DO:return this.read_do();case this.tok.T_COMMENT:return this.read_comment();case this.tok.T_DOC_COMMENT:return this.read_doc_comment();case this.tok.T_RETURN:var t=this.node("return"),e=null;return this.next().is("EOS")||(e=this.read_expr()),this.expectEndOfStatement(),t(e);case this.tok.T_BREAK:case this.tok.T_CONTINUE:var i=this.node(this.token===this.tok.T_CONTINUE?"continue":"break"),r=null;return this.next(),";"!==this.token&&(r=this.read_expr()),this.expectEndOfStatement(),i(r);case this.tok.T_GLOBAL:var n=this.node("global"),o=this.next().read_list(this.read_simple_variable,",");return this.expectEndOfStatement(),n(o);case this.tok.T_STATIC:var s=[this.token,this.lexer.getState()],a=this.node();if(this.next().token===this.tok.T_DOUBLE_COLON){this.lexer.tokens.push(s);var l=this.next().read_expr();return this.expectEndOfStatement(l),a("expressionstatement",l)}if(this.token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);var c=this.read_variable_declarations();return this.expectEndOfStatement(),a("static",c);case this.tok.T_ECHO:var h=this.node("echo"),u=this.text(),f="<?="===u||"<%="===u,d=this.next().read_list(this.read_expr,",");return this.expectEndOfStatement(),h(d,f);case this.tok.T_INLINE_HTML:var p=this.text(),m=0<this.lexer.yylloc.first_offset?this.lexer._input[this.lexer.yylloc.first_offset-1]:null,g="\r"===m||"\n"===m;g&&"\n"===m&&1<this.lexer.yylloc.first_offset&&"\r"===this.lexer._input[this.lexer.yylloc.first_offset-2]&&(m="\r\n");var _=this.node("inline");return this.next(),_(p,g?m+p:p);case this.tok.T_UNSET:var v=this.node("unset");this.next().expect("(")&&this.next();var y=this.read_list(this.read_variable,",");return this.expect(")")&&this.next(),this.expect(";")&&this.next(),v(y);case this.tok.T_DECLARE:var x=this.node("declare"),T=[],k=void 0;this.next().expect("(")&&this.next();var b=this.read_declare_list();if(this.expect(")")&&this.next(),":"===this.token){for(this.next();this.token!=this.EOF&&this.token!==this.tok.T_ENDDECLARE;)T.push(this.read_top_statement());this.expect(this.tok.T_ENDDECLARE)&&this.next(),this.expectEndOfStatement(),k=this.ast.declare.MODE_SHORT}else if("{"===this.token){for(this.next();this.token!=this.EOF&&"}"!==this.token;)T.push(this.read_top_statement());this.expect("}")&&this.next(),k=this.ast.declare.MODE_BLOCK}else this.expect(";")&&this.next(),k=this.ast.declare.MODE_NONE;return x(b,T,k);case this.tok.T_TRY:return this.read_try();case this.tok.T_THROW:var w=this.node("throw"),E=this.next().read_expr();return this.expectEndOfStatement(),w(E);case";":return this.next(),null;case this.tok.T_STRING:var C=this.node(),S=[this.token,this.lexer.getState()],A=this.text();if(":"===this.next().token)return this.next(),C("label",A);this.lexer.tokens.push(S);var L=this.node("expressionstatement"),N=this.next().read_expr();return this.expectEndOfStatement(N),L(N);case this.tok.T_GOTO:var O=this.node("goto"),I=null;return this.next().expect(this.tok.T_STRING)&&(I=this.text(),this.next().expectEndOfStatement()),O(I);default:var R=this.node("expressionstatement"),M=this.read_expr();return this.expectEndOfStatement(M),R(M)}},read_code_block:function(t){var e=this.node("block");this.expect("{")&&this.next();var i=t?this.read_top_statements():this.read_inner_statements();return this.expect("}")&&this.next(),e(null,i)}}},function(t,e,i){"use strict";t.exports={read_switch:function(){var t=this.node("switch");this.expect(this.tok.T_SWITCH)&&this.next(),this.expect("(")&&this.next();var e=this.read_expr();this.expect(")")&&this.next();var i=":"===this.token;return t(e,this.read_switch_case_list(),i)},read_switch_case_list:function(){var t=null,e=this.node("block"),i=[];for("{"===this.token?t="}":":"===this.token?t=this.tok.T_ENDSWITCH:this.expect(["{",":"]),";"===this.next().token&&this.next();this.token!==this.EOF&&this.token!==t;)i.push(this.read_case_list(t));return this.expect(t)&&this.next(),t===this.tok.T_ENDSWITCH&&this.expectEndOfStatement(),e(null,i)},read_case_list:function(t){var e=this.node("case"),i=null,r=null,n=[];for(this.token===this.tok.T_CASE?i=this.next().read_expr():this.token===this.tok.T_DEFAULT?this.next():this.expect([this.tok.T_CASE,this.tok.T_DEFAULT]),this.expect([":",";"])&&this.next(),r=this.node("block");this.token!=this.EOF&&this.token!==t&&this.token!==this.tok.T_CASE&&this.token!==this.tok.T_DEFAULT;)n.push(this.read_inner_statement());return e(i,0<n.length?r(null,n):null)}}},function(t,e,i){"use strict";t.exports={read_try:function(){this.expect(this.tok.T_TRY);for(var t=this.node("try"),e=null,i=[],r=this.next().read_statement();this.token===this.tok.T_CATCH;){var n=this.node("catch");this.next().expect("(")&&this.next();var o=this.read_list(this.read_namespace_name,"|",!1),s=this.read_variable(!0,!1,!1);this.expect(")"),i.push(n(this.next().read_statement(),o,s))}return this.token===this.tok.T_FINALLY&&(e=this.next().read_statement()),t(r,i,e)}}},function(t,e,i){"use strict";t.exports={read_short_form:function(t){var e=this.node("block"),i=[];for(this.expect(":")&&this.next();this.token!=this.EOF&&this.token!==t;)i.push(this.read_inner_statement());return this.expect(t)&&this.next(),this.expectEndOfStatement(),e(null,i)},read_list:function(t,e,i){var r=[];if(this.token==e&&(i&&r.push(null),this.next()),"function"==typeof t){do{if(r.push(t.apply(this,[])),this.token!=e)break}while(this.next().token!=this.EOF)}else{if(!this.expect(t))return[];for(r.push(this.text());this.next().token!=this.EOF&&this.token==e&&this.next().token==t;)r.push(this.text())}return r},read_name_list:function(){return this.read_list(this.read_namespace_name,",",!1)},read_variable_declarations:function(){return this.read_list(function(){var t=this.node("assign"),e=this.node("variable");if(this.expect(this.tok.T_VARIABLE)){var i=this.text().substring(1);this.next(),e=e(i,!1,!1)}else e=e("#ERR",!1,!1);return"="===this.token?t(e,this.next().read_expr()):e},",")}}},function(t,e,i){"use strict";t.exports={read_variable:function(t,e,i){var r=void 0;if(i||"&"!==this.token||(i=!0,this.next()),this.is([this.tok.T_VARIABLE,"$"]))r=this.read_reference_variable(e,i);else if(this.is([this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAMESPACE])){r=this.node();var n=this.read_namespace_name();if(this.token!=this.tok.T_DOUBLE_COLON&&"("!=this.token&&-1===["parentreference","selfreference"].indexOf(n.kind)){var o=n.name.toLowerCase();r="true"===o?r("boolean",!0,n.name):"false"===o?r("boolean",!1,n.name):r("identifier",n)}else r=n}else if(this.token===this.tok.T_STATIC){r=this.node("staticreference");var s=this.text();this.next(),r=r(s)}else this.expect("VARIABLE");return this.token===this.tok.T_DOUBLE_COLON&&(r=this.read_static_getter(r,e)),this.recursive_variable_chain_scan(r,t,e)},read_static_getter:function(t,e){var i=this.node("staticlookup"),r=void 0,n=void 0;return this.next().is([this.tok.T_VARIABLE,"$"])?r=this.read_reference_variable(e,!1):this.token===this.tok.T_STRING||this.token===this.tok.T_CLASS||this.php7&&this.is("IDENTIFIER")?(r=this.node("identifier"),n=this.text(),this.next(),r=r(n)):"{"===this.token?(r=this.next().read_expr(),this.expect("}")&&this.next(),this.expect("(")):(this.error([this.tok.T_VARIABLE,this.tok.T_STRING]),r=this.node("identifier"),n=this.text(),this.next(),r=r(n)),i(t,r)},read_what:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=null,i=null;switch(this.next().token){case this.tok.T_STRING:if(e=this.node("identifier"),i=this.text(),this.next(),e=e(i),t&&this.token===this.tok.T_OBJECT_OPERATOR&&this.error(),this.token===this.tok.T_VARIABLE){var r=this.node("variable");i=this.text().substring(1),this.next(),(e=this.node("encapsed")([e,r(i,!1,!1)],null,"offset")).loc&&e.value[0].loc&&(e.loc.start=e.value[0].loc.start)}else if("{"===this.token){var n=this.next().read_expr();this.expect("}")&&this.next(),(e=this.node("encapsed")([e,n],null,"offset")).loc&&e.value[0].loc&&(e.loc.start=e.value[0].loc.start)}break;case this.tok.T_VARIABLE:e=this.node("variable"),i=this.text().substring(1),this.next(),e=e(i,!1,!1);break;case"$":this.next().expect(["$","{",this.tok.T_VARIABLE]),"{"===this.token?(e=this.next().read_expr(),this.expect("}")&&this.next()):e=this.read_expr();break;case"{":e=this.next().read_expr(),this.expect("}")&&this.next();break;default:this.error([this.tok.T_STRING,this.tok.T_VARIABLE,"$","{"]),e=this.node("identifier"),i=this.text(),this.next(),e=e(i)}return e},recursive_variable_chain_scan:function(t,e,i){var r=void 0,n=void 0;t:for(;this.token!=this.EOF;)switch(this.token){case"(":if(e)return t;t=this.node("call")(t,this.read_function_argument_list());break;case"[":r=this.node("offsetlookup"),this.next(),n=!1,i?(n=this.read_encaps_var_offset(),this.expect("]")&&this.next()):"]"!==this.token?(n=this.read_expr(),this.expect("]")&&this.next()):this.next(),t=r(t,n);break;case this.tok.T_DOUBLE_COLON:"staticlookup"===t.kind&&"identifier"===t.offset.kind&&this.error(),t=(r=this.node("staticlookup"))(t,this.read_what(!0));break;case this.tok.T_OBJECT_OPERATOR:t=(r=this.node("propertylookup"))(t,this.read_what());break;default:break t}return t},read_encaps_var_offset:function(){var t=this.node();if(this.token===this.tok.T_STRING){var e=this.text();this.next(),t=t("identifier",e)}else if(this.token===this.tok.T_NUM_STRING){var i=this.text();this.next(),t=t("number",i,null)}else if(this.token===this.tok.T_VARIABLE){var r=this.text().substring(1);this.next(),t=t("variable",r,!1,!1)}else{this.expect([this.tok.T_STRING,this.tok.T_NUM_STRING,this.tok.T_VARIABLE]);var n=this.text();this.next(),t=t("identifier",n)}return t},read_reference_variable:function(t,e){for(var i=this.read_simple_variable(e),r=void 0;this.token!=this.EOF;){var n=this.node();if("{"!=this.token||t){n.destroy();break}r=this.next().read_expr(),this.expect("}")&&this.next(),i=n("offsetlookup",i,r)}return i},read_simple_variable:function(t){var e=this.node("variable"),i=void 0;if(this.expect([this.tok.T_VARIABLE,"$"])&&this.token===this.tok.T_VARIABLE)i=this.text().substring(1),this.next(),e=e(i,t,!1);else switch("$"===this.token&&this.next(),this.token){case"{":var r=this.next().read_expr();this.expect("}")&&this.next(),e=e(r,t,!0);break;case"$":e=e(this.read_simple_variable(!1),t);break;case this.tok.T_VARIABLE:i=this.text().substring(1);var n=this.node("variable");this.next(),e=e(n(i,!1,!1),t,!1);break;default:this.error(["{","$",this.tok.T_VARIABLE]),i=this.text(),this.next(),e=e(i,t,!1)}return e}}},function(t,e,i){"use strict";t.exports={values:{101:"T_HALT_COMPILER",102:"T_USE",103:"T_ENCAPSED_AND_WHITESPACE",104:"T_OBJECT_OPERATOR",105:"T_STRING",106:"T_DOLLAR_OPEN_CURLY_BRACES",107:"T_STRING_VARNAME",108:"T_CURLY_OPEN",109:"T_NUM_STRING",110:"T_ISSET",111:"T_EMPTY",112:"T_INCLUDE",113:"T_INCLUDE_ONCE",114:"T_EVAL",115:"T_REQUIRE",116:"T_REQUIRE_ONCE",117:"T_NAMESPACE",118:"T_NS_SEPARATOR",119:"T_AS",120:"T_IF",121:"T_ENDIF",122:"T_WHILE",123:"T_DO",124:"T_FOR",125:"T_SWITCH",126:"T_BREAK",127:"T_CONTINUE",128:"T_RETURN",129:"T_GLOBAL",130:"T_STATIC",131:"T_ECHO",132:"T_INLINE_HTML",133:"T_UNSET",134:"T_FOREACH",135:"T_DECLARE",136:"T_TRY",137:"T_THROW",138:"T_GOTO",139:"T_FINALLY",140:"T_CATCH",141:"T_ENDDECLARE",142:"T_LIST",143:"T_CLONE",144:"T_PLUS_EQUAL",145:"T_MINUS_EQUAL",146:"T_MUL_EQUAL",147:"T_DIV_EQUAL",148:"T_CONCAT_EQUAL",149:"T_MOD_EQUAL",150:"T_AND_EQUAL",151:"T_OR_EQUAL",152:"T_XOR_EQUAL",153:"T_SL_EQUAL",154:"T_SR_EQUAL",155:"T_INC",156:"T_DEC",157:"T_BOOLEAN_OR",158:"T_BOOLEAN_AND",159:"T_LOGICAL_OR",160:"T_LOGICAL_AND",161:"T_LOGICAL_XOR",162:"T_SL",163:"T_SR",164:"T_IS_IDENTICAL",165:"T_IS_NOT_IDENTICAL",166:"T_IS_EQUAL",167:"T_IS_NOT_EQUAL",168:"T_IS_SMALLER_OR_EQUAL",169:"T_IS_GREATER_OR_EQUAL",170:"T_INSTANCEOF",171:"T_INT_CAST",172:"T_DOUBLE_CAST",173:"T_STRING_CAST",174:"T_ARRAY_CAST",175:"T_OBJECT_CAST",176:"T_BOOL_CAST",177:"T_UNSET_CAST",178:"T_EXIT",179:"T_PRINT",180:"T_YIELD",181:"T_YIELD_FROM",182:"T_FUNCTION",183:"T_DOUBLE_ARROW",184:"T_DOUBLE_COLON",185:"T_ARRAY",186:"T_CALLABLE",187:"T_CLASS",188:"T_ABSTRACT",189:"T_TRAIT",190:"T_FINAL",191:"T_EXTENDS",192:"T_INTERFACE",193:"T_IMPLEMENTS",194:"T_VAR",195:"T_PUBLIC",196:"T_PROTECTED",197:"T_PRIVATE",198:"T_CONST",199:"T_NEW",200:"T_INSTEADOF",201:"T_ELSEIF",202:"T_ELSE",203:"T_ENDSWITCH",204:"T_CASE",205:"T_DEFAULT",206:"T_ENDFOR",207:"T_ENDFOREACH",208:"T_ENDWHILE",209:"T_CONSTANT_ENCAPSED_STRING",210:"T_LNUMBER",211:"T_DNUMBER",212:"T_LINE",213:"T_FILE",214:"T_DIR",215:"T_TRAIT_C",216:"T_METHOD_C",217:"T_FUNC_C",218:"T_NS_C",219:"T_START_HEREDOC",220:"T_END_HEREDOC",221:"T_CLASS_C",222:"T_VARIABLE",223:"T_OPEN_TAG",224:"T_OPEN_TAG_WITH_ECHO",225:"T_CLOSE_TAG",226:"T_WHITESPACE",227:"T_COMMENT",228:"T_DOC_COMMENT",229:"T_ELLIPSIS",230:"T_COALESCE",231:"T_POW",232:"T_POW_EQUAL",233:"T_SPACESHIP"},names:{T_HALT_COMPILER:101,T_USE:102,T_ENCAPSED_AND_WHITESPACE:103,T_OBJECT_OPERATOR:104,T_STRING:105,T_DOLLAR_OPEN_CURLY_BRACES:106,T_STRING_VARNAME:107,T_CURLY_OPEN:108,T_NUM_STRING:109,T_ISSET:110,T_EMPTY:111,T_INCLUDE:112,T_INCLUDE_ONCE:113,T_EVAL:114,T_REQUIRE:115,T_REQUIRE_ONCE:116,T_NAMESPACE:117,T_NS_SEPARATOR:118,T_AS:119,T_IF:120,T_ENDIF:121,T_WHILE:122,T_DO:123,T_FOR:124,T_SWITCH:125,T_BREAK:126,T_CONTINUE:127,T_RETURN:128,T_GLOBAL:129,T_STATIC:130,T_ECHO:131,T_INLINE_HTML:132,T_UNSET:133,T_FOREACH:134,T_DECLARE:135,T_TRY:136,T_THROW:137,T_GOTO:138,T_FINALLY:139,T_CATCH:140,T_ENDDECLARE:141,T_LIST:142,T_CLONE:143,T_PLUS_EQUAL:144,T_MINUS_EQUAL:145,T_MUL_EQUAL:146,T_DIV_EQUAL:147,T_CONCAT_EQUAL:148,T_MOD_EQUAL:149,T_AND_EQUAL:150,T_OR_EQUAL:151,T_XOR_EQUAL:152,T_SL_EQUAL:153,T_SR_EQUAL:154,T_INC:155,T_DEC:156,T_BOOLEAN_OR:157,T_BOOLEAN_AND:158,T_LOGICAL_OR:159,T_LOGICAL_AND:160,T_LOGICAL_XOR:161,T_SL:162,T_SR:163,T_IS_IDENTICAL:164,T_IS_NOT_IDENTICAL:165,T_IS_EQUAL:166,T_IS_NOT_EQUAL:167,T_IS_SMALLER_OR_EQUAL:168,T_IS_GREATER_OR_EQUAL:169,T_INSTANCEOF:170,T_INT_CAST:171,T_DOUBLE_CAST:172,T_STRING_CAST:173,T_ARRAY_CAST:174,T_OBJECT_CAST:175,T_BOOL_CAST:176,T_UNSET_CAST:177,T_EXIT:178,T_PRINT:179,T_YIELD:180,T_YIELD_FROM:181,T_FUNCTION:182,T_DOUBLE_ARROW:183,T_DOUBLE_COLON:184,T_ARRAY:185,T_CALLABLE:186,T_CLASS:187,T_ABSTRACT:188,T_TRAIT:189,T_FINAL:190,T_EXTENDS:191,T_INTERFACE:192,T_IMPLEMENTS:193,T_VAR:194,T_PUBLIC:195,T_PROTECTED:196,T_PRIVATE:197,T_CONST:198,T_NEW:199,T_INSTEADOF:200,T_ELSEIF:201,T_ELSE:202,T_ENDSWITCH:203,T_CASE:204,T_DEFAULT:205,T_ENDFOR:206,T_ENDFOREACH:207,T_ENDWHILE:208,T_CONSTANT_ENCAPSED_STRING:209,T_LNUMBER:210,T_DNUMBER:211,T_LINE:212,T_FILE:213,T_DIR:214,T_TRAIT_C:215,T_METHOD_C:216,T_FUNC_C:217,T_NS_C:218,T_START_HEREDOC:219,T_END_HEREDOC:220,T_CLASS_C:221,T_VARIABLE:222,T_OPEN_TAG:223,T_OPEN_TAG_WITH_ECHO:224,T_CLOSE_TAG:225,T_WHITESPACE:226,T_COMMENT:227,T_DOC_COMMENT:228,T_ELLIPSIS:229,T_COALESCE:230,T_POW:231,T_POW_EQUAL:232,T_SPACESHIP:233}}},function(t,e,i){"use strict";var u=i(46),f=i(47),o=function(t,e){this.withPositions=t,this.withSource=e};o.prototype.position=function(t){return new f(t.lexer.yylloc.first_line,t.lexer.yylloc.first_column,t.lexer.yylloc.first_offset)},o.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast"]].forEach(function(t,e){t.forEach(function(t){o.precedence[t]=e+1})}),o.prototype.swapLocations=function(t,e,i,r){this.withPositions&&(t.loc.start=e.loc.start,t.loc.end=i.loc.end,this.withSource&&(t.loc.source=r.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},o.prototype.resolvePrecedence=function(t,e){var i=void 0,r=void 0,n=void 0;return"call"===t.kind?this.swapLocations(t,t.what,t,e):"propertylookup"===t.kind?this.swapLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(r=o.precedence[t.type],n=o.precedence[t.right.type],r&&n&&n<=r&&(i=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),i.left=this.resolvePrecedence(t,e),t=i)):"retif"===t.right.kind&&(r=o.precedence[t.type],n=o.precedence["?"],r&&n&&n<=r&&(i=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i))):"cast"===t.kind&&t.what&&!t.what.parenthesizedExpression?"bin"===t.what.kind?(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(i=t.falseExpr,t.falseExpr=i.test,this.swapLocations(t,t.test,t.falseExpr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"assign"===t.kind&&t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(r=o.precedence["="],n=o.precedence[t.right.type],r&&n&&n<r&&(i=t.right,t.right=t.right.left,i.left=t,this.swapLocations(i,i.left,t.right,e),t=i)),t},o.prototype.prepare=function(s,a,l){var c=null;(this.withPositions||this.withSource)&&(c=this.position(l));var h=this,e=function t(){var e=null,i=Array.prototype.slice.call(arguments);if(i.push(a),"function"==typeof t.preBuild&&t.preBuild(arguments),h.withPositions||h.withSource){var r=null;h.withSource&&(r=l.lexer._input.substring(c.offset,l.prev[2])),e=h.withPositions?new u(r,c,new f(l.prev[0],l.prev[1],l.prev[2])):new u(r,null,null),i.push(e)}s||(s=i.shift());var n=h[s];if("function"!=typeof n)throw new Error('Undefined node "'+s+'"');var o=Object.create(n.prototype);return n.apply(o,i),t.instance=o,t.trailingComments&&(o.trailingComments=t.trailingComments),h.resolvePrecedence(o,l)};return e.setKind=function(t){s=t},e.setTrailingComments=function(t){e.instance?e.instance.setTrailingComments(t):e.trailingComments=t},e.destroy=function(t){a&&(t?t.leadingComments?t.leadingComments=a.concat(t.leadingComments):t.leadingComments=a:l._docIndex=l._docs.length-a.length)},e},[i(48),i(49),i(50),i(7),i(51),i(52),i(53),i(54),i(55),i(56),i(57),i(58),i(59),i(60),i(61),i(9),i(62),i(63),i(64),i(10),i(65),i(4),i(66),i(67),i(68),i(69),i(70),i(71),i(72),i(73),i(74),i(75),i(76),i(1),i(77),i(78),i(79),i(11),i(80),i(81),i(82),i(83),i(84),i(85),i(86),i(87),i(88),i(89),i(90),i(3),i(8),i(91),i(92),i(93),i(94),i(2),i(95),i(96),i(97),i(5),i(98),i(99),i(100),i(101),i(102),i(103),i(104),i(105),i(6),i(106),i(107),i(108),i(109),i(0),i(110),i(111),i(112),i(113),i(114),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(125),i(126),i(127),i(128),i(129),i(130)].forEach(function(t){o.prototype[t.kind]=t}),t.exports=o},function(t,e,i){"use strict";t.exports=function(t,e,i){this.source=t,this.start=e,this.end=i}},function(t,e,i){"use strict";t.exports=function(t,e,i){this.line=t,this.column=e,this.offset=i}},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("array",function(t,e,i,r){n.apply(this,["array",i,r]),this.items=e,this.shortForm=t})},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("assign",function(t,e,i,r,n){o.apply(this,["assign",r,n]),this.operator=i,this.left=t,this.right=e})},function(t,e,i){"use strict";var o=i(5);t.exports=o.extends("bin",function(t,e,i,r,n){o.apply(this,["bin",r,n]),this.type=t,this.left=e,this.right=i})},function(t,e,i){"use strict";var n=i(3);t.exports=n.extends("boolean",function(t,e,i,r){n.apply(this,["boolean",t,e,i,r])})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("break",function(t,e,i){r.apply(this,["break",e,i]),this.level=t})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("call",function(t,e,i,r){n.apply(this,["call",i,r]),this.what=t,this.arguments=e})},function(t,e,i){"use strict";var n=i(0);t.exports=n.extends("case",function(t,e,i,r){n.apply(this,["case",i,r]),this.test=t,this.body=e})},function(t,e,i){"use strict";var o=i(5);t.exports=o.extends("cast",function(t,e,i,r,n){o.apply(this,["cast",r,n]),this.type=t,this.raw=e,this.what=i})},function(t,e,i){"use strict";var o=i(0);t.exports=o.extends("catch",function(t,e,i,r,n){o.apply(this,["catch",r,n]),this.body=t,this.what=e,this.variable=i})},function(t,e,i){"use strict";var a=i(4);t.exports=a.extends("class",function(t,e,i,r,n,o,s){a.apply(this,["class",t,o,s]),this.isAnonymous=!t,this.extends=e,this.implements=i,this.body=r,this.parseFlags(n)})},function(t,e,i){"use strict";var o=i(10),s="classconstant",r=o.extends(s,function(t,e,i,r,n){o.apply(this,[t||s,e,r,n]),this.parseFlags(i)});r.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private")},t.exports=r},function(t,e,i){"use strict";var o=i(6),s="classreference",r=o.extends(s,function t(e,i,r,n){o.apply(this,[s,r,n]),i?this.resolution=t.RELATIVE_NAME:1===e.length?this.resolution=t.UNQUALIFIED_NAME:""===e[0]?this.resolution=t.FULL_QUALIFIED_NAME:this.resolution=t.QUALIFIED_NAME,this.name=e.join("\\")});r.UNQUALIFIED_NAME="uqn",r.QUALIFIED_NAME="qn",r.FULL_QUALIFIED_NAME="fqn",r.RELATIVE_NAME="rn",t.exports=r},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("clone",function(t,e,i){r.apply(this,["clone",e,i]),this.what=t})},function(t,e,i){"use strict";var l=i(1);t.exports=l.extends("closure",function(t,e,i,r,n,o,s,a){l.apply(this,["closure",s,a]),this.uses=i,this.arguments=t,this.byref=e,this.type=r,this.nullable=n,this.isStatic=o||!1,this.body=null})},function(t,e,i){"use strict";var r=i(9),n="commentblock";t.exports=r.extends(n,function(t,e,i){r.apply(this,[n,t,e,i])})},function(t,e,i){"use strict";var r=i(9),n="commentline";t.exports=r.extends(n,function(t,e,i){r.apply(this,[n,t,e,i])})},function(t,e,i){"use strict";var n=i(2);t.exports=n.extends("constant",function(t,e,i,r){n.apply(this,["constant",i,r]),this.name=t,this.value=e})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("continue",function(t,e,i){r.apply(this,["continue",e,i]),this.level=t})},function(t,e,i){"use strict";var o=i(7),r=o.extends("declare",function(t,e,i,r,n){o.apply(this,["declare",e,r,n]),this.directives=t,this.mode=i});r.MODE_SHORT="short",r.MODE_BLOCK="block",r.MODE_NONE="none",t.exports=r},function(t,e,i){"use strict";var n=i(2),o="declaredirective";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[o,i,r]),this.key=t,this.value=e})},function(t,e,i){"use strict";var n=i(0);t.exports=n.extends("do",function(t,e,i,r){n.apply(this,["do",i,r]),this.test=t,this.body=e})},function(t,e,i){"use strict";var n=i(0);t.exports=n.extends("echo",function(t,e,i,r){n.apply(this,["echo",i,r]),this.shortForm=e,this.expressions=t})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("empty",function(t,e,i){r.apply(this,["empty",e,i]),this.expression=t})},function(t,e,i){"use strict";var o=i(3),r=o.extends("encapsed",function(t,e,i,r,n){o.apply(this,["encapsed",t,e,r,n]),this.type=i});r.TYPE_STRING="string",r.TYPE_SHELL="shell",r.TYPE_HEREDOC="heredoc",r.TYPE_OFFSET="offset",t.exports=r},function(t,e,i){"use strict";var n=i(1),o="encapsedpart";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[o,i,r]),this.expression=t,this.curly=e})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("entry",function(t,e,i,r){n.apply(this,["entry",i,r]),this.key=t,this.value=e})},function(t,e,i){"use strict";var s=i(2);t.exports=s.extends("error",function(t,e,i,r,n,o){s.apply(this,["error",n,o]),this.message=t,this.token=e,this.line=i,this.expected=r})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("eval",function(t,e,i){r.apply(this,["eval",e,i]),this.source=t})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("exit",function(t,e,i,r){n.apply(this,["exit",i,r]),this.status=t,this.useDie=e})},function(t,e,i){"use strict";var r=i(0),n="expressionstatement";t.exports=r.extends(n,function(t,e,i){r.apply(this,[n,e,i]),this.expression=t})},function(t,e,i){"use strict";var a=i(0);t.exports=a.extends("for",function(t,e,i,r,n,o,s){a.apply(this,["for",o,s]),this.init=t,this.test=e,this.increment=i,this.shortForm=n,this.body=r})},function(t,e,i){"use strict";var a=i(0);t.exports=a.extends("foreach",function(t,e,i,r,n,o,s){a.apply(this,["foreach",o,s]),this.source=t,this.key=e,this.value=i,this.shortForm=n,this.body=r})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("global",function(t,e,i){r.apply(this,["global",e,i]),this.items=t})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("goto",function(t,e,i){r.apply(this,["goto",e,i]),this.label=t})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("halt",function(t,e,i){r.apply(this,["halt",e,i]),this.after=t})},function(t,e,i){"use strict";var r=i(2),n="identifier",o=r.extends(n,function(t,e,i){r.apply(this,[n,e,i]),this.name=t});t.exports=o},function(t,e,i){"use strict";var s=i(0);t.exports=s.extends("if",function(t,e,i,r,n,o){s.apply(this,["if",n,o]),this.test=t,this.body=e,this.alternate=i,this.shortForm=r})},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("include",function(t,e,i,r,n){o.apply(this,["include",r,n]),this.once=t,this.require=e,this.target=i})},function(t,e,i){"use strict";var n=i(3);t.exports=n.extends("inline",function(t,e,i,r){n.apply(this,["inline",t,e,i,r])})},function(t,e,i){"use strict";var o=i(4);t.exports=o.extends("interface",function(t,e,i,r,n){o.apply(this,["interface",t,r,n]),this.extends=e,this.body=i})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("isset",function(t,e,i){r.apply(this,["isset",e,i]),this.variables=t})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("label",function(t,e,i){r.apply(this,["label",e,i]),this.name=t})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("list",function(t,e,i,r){n.apply(this,["list",i,r]),this.items=t,this.shortForm=e})},function(t,e,i){"use strict";var n=i(3);t.exports=n.extends("magic",function(t,e,i,r){n.apply(this,["magic",t,e,i,r])})},function(t,e,i){"use strict";var r=i(11);t.exports=r.extends("method",function(){r.apply(this,arguments),this.kind="method"})},function(t,e,i){"use strict";var o=i(7);t.exports=o.extends("namespace",function(t,e,i,r,n){o.apply(this,["namespace",e,r,n]),this.name=t,this.withBrackets=i||!1})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("new",function(t,e,i,r){n.apply(this,["new",i,r]),this.what=t,this.arguments=e})},function(t,e,i){"use strict";var s=i(3);t.exports=s.extends("nowdoc",function(t,e,i,r,n,o){s.apply(this,["nowdoc",t,e,n,o]),this.label=i,this.quote=r})},function(t,e,i){"use strict";var n=i(3);t.exports=n.extends("number",function(t,e,i,r){n.apply(this,["number",t,e,i,r])})},function(t,e,i){"use strict";var n=i(8),o="offsetlookup";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[o,t,e,i,r])})},function(t,e,i){"use strict";var l=i(4);t.exports=l.extends("parameter",function(t,e,i,r,n,o,s,a){l.apply(this,["parameter",t,s,a]),this.value=i,this.type=e,this.byref=r,this.variadic=n,this.nullable=o})},function(t,e,i){"use strict";var r=i(6),n="parentreference",o=r.extends(n,function(t,e,i){r.apply(this,[n,e,i]),this.raw=t});t.exports=o},function(t,e,i){"use strict";var n=i(5);t.exports=n.extends("post",function(t,e,i,r){n.apply(this,["post",i,r]),this.type=t,this.what=e})},function(t,e,i){"use strict";var n=i(5);t.exports=n.extends("pre",function(t,e,i,r){n.apply(this,["pre",i,r]),this.type=t,this.what=e})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("print",function(t,e,i){r.apply(this,["print",e,i]),this.expression=t})},function(t,e,i){"use strict";var s=i(7);t.exports=s.extends("program",function(t,e,i,r,n,o){s.apply(this,["program",t,n,o]),this.errors=e,i&&(this.comments=i),r&&(this.tokens=r)})},function(t,e,i){"use strict";var o=i(4);t.exports=o.extends("property",function(t,e,i,r,n){o.apply(this,["property",t,r,n]),this.value=e,this.parseFlags(i)})},function(t,e,i){"use strict";var n=i(8),o="propertylookup";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[o,t,e,i,r])})},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("retif",function(t,e,i,r,n){o.apply(this,["retif",r,n]),this.test=t,this.trueExpr=e,this.falseExpr=i})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("return",function(t,e,i){r.apply(this,["return",e,i]),this.expr=t})},function(t,e,i){"use strict";var r=i(6),n="selfreference",o=r.extends(n,function(t,e,i){r.apply(this,[n,e,i]),this.raw=t});t.exports=o},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("silent",function(t,e,i){r.apply(this,["silent",e,i]),this.expr=t})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("static",function(t,e,i){r.apply(this,["static",e,i]),this.items=t})},function(t,e,i){"use strict";var n=i(8),o="staticlookup";t.exports=n.extends(o,function(t,e,i,r){n.apply(this,[o,t,e,i,r])})},function(t,e,i){"use strict";var r=i(6),n="staticreference",o=r.extends(n,function(t,e,i){r.apply(this,[n,e,i]),this.raw=t});t.exports=o},function(t,e,i){"use strict";var s=i(3);t.exports=s.extends("string",function(t,e,i,r,n,o){s.apply(this,["string",e,r,n,o]),this.unicode=i,this.isDoubleQuote=t})},function(t,e,i){"use strict";var o=i(0);t.exports=o.extends("switch",function(t,e,i,r,n){o.apply(this,["switch",r,n]),this.test=t,this.body=e,this.shortForm=i})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("throw",function(t,e,i){r.apply(this,["throw",e,i]),this.what=t})},function(t,e,i){"use strict";var n=i(4);t.exports=n.extends("trait",function(t,e,i,r){n.apply(this,["trait",t,i,r]),this.body=e})},function(t,e,i){"use strict";var s=i(2),a="traitalias";t.exports=s.extends(a,function(t,e,i,r,n,o){s.apply(this,[a,n,o]),this.trait=t,this.method=e,this.as=i,this.visibility="",r&&(0===r[0]?this.visibility="public":1===r[0]?this.visibility="protected":2===r[0]&&(this.visibility="private"))})},function(t,e,i){"use strict";var o=i(2),s="traitprecedence";t.exports=o.extends(s,function(t,e,i,r,n){o.apply(this,[s,r,n]),this.trait=t,this.method=e,this.instead=i})},function(t,e,i){"use strict";var n=i(2);t.exports=n.extends("traituse",function(t,e,i,r){n.apply(this,["traituse",i,r]),this.traits=t,this.adaptations=e})},function(t,e,i){"use strict";var o=i(0);t.exports=o.extends("try",function(t,e,i,r,n){o.apply(this,["try",r,n]),this.body=t,this.catches=e,this.always=i})},function(t,e,i){"use strict";var n=i(6),o="typereference",r=n.extends(o,function(t,e,i,r){n.apply(this,[o,i,r]),this.name=t,this.raw=e});r.types=["int","float","string","bool","object","array","callable","iterable","void"],t.exports=r},function(t,e,i){"use strict";var n=i(5);t.exports=n.extends("unary",function(t,e,i,r){n.apply(this,["unary",i,r]),this.type=t,this.what=e})},function(t,e,i){"use strict";var r=i(0);t.exports=r.extends("unset",function(t,e,i){r.apply(this,["unset",e,i]),this.variables=t})},function(t,e,i){"use strict";var o=i(0);t.exports=o.extends("usegroup",function(t,e,i,r,n){o.apply(this,["usegroup",r,n]),this.name=t,this.type=e,this.items=i})},function(t,e,i){"use strict";var o=i(0),r=o.extends("useitem",function(t,e,i,r,n){o.apply(this,["useitem",r,n]),this.name=t,this.alias=e,this.type=i});r.TYPE_CONST="const",r.TYPE_FUNCTION="function",t.exports=r},function(t,e,i){"use strict";var o=i(1);t.exports=o.extends("variable",function(t,e,i,r,n){o.apply(this,["variable",r,n]),this.name=t,this.byref=e||!1,this.curly=i||!1})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("variadic",function(t,e,i){r.apply(this,["variadic",e,i]),this.what=t})},function(t,e,i){"use strict";var o=i(0);t.exports=o.extends("while",function(t,e,i,r,n){o.apply(this,["while",r,n]),this.test=t,this.body=e,this.shortForm=i})},function(t,e,i){"use strict";var n=i(1);t.exports=n.extends("yield",function(t,e,i,r){n.apply(this,["yield",i,r]),this.value=t,this.key=e})},function(t,e,i){"use strict";var r=i(1);t.exports=r.extends("yieldfrom",function(t,e,i){r.apply(this,["yieldfrom",e,i]),this.value=t})}]).default},"object"==typeof cJa&&"object"==typeof bJa?bJa.exports=fJa():"function"==typeof define&&define.amd?define([],fJa):"object"==typeof cJa?cJa.PhpParser=fJa():eJa.PhpParser=fJa()},{}]},{},[1]);
|
1 |
+
!function o(s,a,l){function h(e,t){if(!a[e]){if(!s[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(c)return c(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var n=a[e]={exports:{}};s[e][0].call(n.exports,function(t){return h(s[e][1][t]||t)},n,n.exports,o,s,a,l)}return a[e].exports}for(var c="function"==typeof require&&require,t=0;t<l.length;t++)h(l[t]);return h}({1:[function(t,e,r){"use strict";var i,n=(i=t("codemirror/lib/codemirror"))&&i.__esModule?i:{default:i};t("codemirror/mode/php/php"),t("codemirror/addon/edit/matchbrackets"),t("codemirror/addon/edit/closebrackets"),t("codemirror/addon/search/search"),t("codemirror/addon/search/match-highlighter"),t("./php-lint"),window.Code_Snippets_CodeMirror=n.default,n.default.defineMode("php-snippet",function(t){return n.default.getMode(t,{name:"application/x-httpd-php",startOpen:!0})})},{"./php-lint":2,"codemirror/addon/edit/closebrackets":6,"codemirror/addon/edit/matchbrackets":7,"codemirror/addon/search/match-highlighter":10,"codemirror/addon/search/search":12,"codemirror/lib/codemirror":14,"codemirror/mode/php/php":19}],2:[function(t,e,r){"use strict";var n=i(t("php-parser")),o=i(t("codemirror/lib/codemirror"));function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t("codemirror/addon/lint/lint");var a=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t,this.annotations=[],this.function_names=new Set,this.class_names=new Set}var t,r,i;return t=e,(r=[{key:"lint",value:function(){var t=new n.default({parser:{suppressErrors:!0},ast:{withPositions:!0}});try{var e=t.parseEval(this.code);if(e.errors&&0<e.errors.length)for(var r=0;r<e.errors.length;r++)this.annotate(e.errors[r].message,e.errors[r].loc);this.visit(e)}catch(t){this.annotate(t.message,t)}}},{key:"visit",value:function(t){if(t.hasOwnProperty("kind")&&this.validate(t),t.hasOwnProperty("children")){var e=!0,r=!1,i=void 0;try{for(var n,o=t.children[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var s=n.value;this.visit(s)}}catch(t){r=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(r)throw i}}}}},{key:"validate",value:function(t){"function"!==t.kind&&"class"!==t.kind||!t.hasOwnProperty("name")||"identifier"!==t.name.kind||("function"===t.kind?this.function_names.has(t.name.name)?this.annotate("Cannot redeclare function ".concat(t.name.name,"()"),t.name.loc):this.function_names.add(t.name.name):"class"===t.kind&&(this.class_names.has(t.name.name)?this.annotate("Cannot redeclare class ".concat(t.name.name),t.name.loc):this.class_names.add(t.name.name)))}},{key:"annotate",value:function(t,e,r){var i,n;e.lineNumber&&e.columnNumber?(i=o.default.Pos(e.lineNumber-1,e.columnNumber-1),n=o.default.Pos(e.lineNumber-1,e.columnNumber)):e.start&&e.end&&(e.end.offset<e.start.offset?(n=o.default.Pos(e.start.line-1,e.start.column),i=o.default.Pos(e.end.line-1,e.end.column)):(i=o.default.Pos(e.start.line-1,e.start.column),n=o.default.Pos(e.end.line-1,e.end.column))),i&&n&&(r=r||"error",this.annotations.push({message:t,severity:r,from:i,to:n}))}}])&&s(t.prototype,r),i&&s(t,i),e}();o.default.registerHelper("lint","php",function(t,e){var r=new a(t);return r.lint(),r.annotations})},{"codemirror/addon/lint/lint":8,"codemirror/lib/codemirror":14,"php-parser":22}],3:[function(t,e,r){"use strict";r.byteLength=function(t){var e=u(t),r=e[0],i=e[1];return 3*(r+i)/4-i},r.toByteArray=function(t){var e,r,i=u(t),n=i[0],o=i[1],s=new c(function(t,e){return 3*(t+e)/4-e}(n,o)),a=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)e=h[t.charCodeAt(r)]<<18|h[t.charCodeAt(r+1)]<<12|h[t.charCodeAt(r+2)]<<6|h[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;2===o&&(e=h[t.charCodeAt(r)]<<2|h[t.charCodeAt(r+1)]>>4,s[a++]=255&e);1===o&&(e=h[t.charCodeAt(r)]<<10|h[t.charCodeAt(r+1)]<<4|h[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e);return s},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,n=[],o=0,s=r-i;o<s;o+=16383)n.push(l(t,o,s<o+16383?s:o+16383));1==i?(e=t[r-1],n.push(a[e>>2]+a[e<<4&63]+"==")):2==i&&(e=(t[r-2]<<8)+t[r-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return n.join("")};for(var a=[],h=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)a[n]=i[n],h[i.charCodeAt(n)]=n;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var i,n,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[(n=i)>>18&63]+a[n>>12&63]+a[n>>6&63]+a[63&n]);return o.join("")}h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},{}],4:[function(B,t,U){(function(u){"use strict";var i=B("base64-js"),o=B("ieee754"),t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=u,U.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},U.INSPECT_MAX_BYTES=50;var r=2147483647;function s(t){if(r<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"!=typeof t)return n(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}function n(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|f(t,e),i=s(r),n=i.write(t,e);n!==r&&(i=i.slice(0,n));return i}(t,e);if(ArrayBuffer.isView(t))return h(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(M(t,ArrayBuffer)||t&&M(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;i=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return Object.setPrototypeOf(i,u.prototype),i}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return u.from(i,e,r);var n=function(t){if(u.isBuffer(t)){var e=0|c(t.length),r=s(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return"number"!=typeof t.length||D(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return a(t),s(t<0?0:0|c(t))}function h(t){for(var e=t.length<0?0:0|c(t.length),r=s(e),i=0;i<e;i+=1)r[i]=255&t[i];return r}function c(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function f(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||M(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(n)return i?-1:O(t).length;e=(""+e).toLowerCase(),n=!0}}function p(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function d(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),D(r=+r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,i,n);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,i,n){var o,s=1,a=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a/=s=2,l/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var c=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(a<r+l&&(r=a-l),o=r;0<=o;o--){for(var u=!0,f=0;f<l;f++)if(h(t,o+f)!==h(e,f)){u=!1;break}if(u)return o}return-1}function g(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=e.length;o/2<i&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(D(a))return s;t[r+s]=a}return s}function _(t,e,r,i){return R(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function v(t,e,r,i){return R(function(t,e){for(var r,i,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function y(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,s,a,l,h=t[n],c=null,u=239<h?4:223<h?3:191<h?2:1;if(n+u<=r)switch(u){case 1:h<128&&(c=h);break;case 2:128==(192&(o=t[n+1]))&&127<(l=(31&h)<<6|63&o)&&(c=l);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&2047<(l=(15&h)<<12|(63&o)<<6|63&s)&&(l<55296||57343<l)&&(c=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)&&l<1114112&&(c=l)}null===c?(c=65533,u=1):65535<c&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=u}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=T));return r}(i)}U.kMaxLength=r,(u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(t,e,r){return n(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return n=e,o=r,a(i=t),i<=0?s(i):void 0!==n?"string"==typeof o?s(i).fill(n,o):s(i).fill(n):s(i);var i,n,o},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),M(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var i=u.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var o=t[r];if(M(o,Uint8Array)&&(o=u.from(o)),!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},u.prototype.toLocaleString=u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):function(t,e,r){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return w(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return b(this,e,r);case"base64":return y(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=U.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},t&&(u.prototype[t]=u.prototype.inspect),u.prototype.compare=function(t,e,r,i,n){if(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=e)return 0;if(n<=i)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,n),h=t.slice(e,r),c=0;c<a;++c)if(l[c]!==h[c]){o=l[c],s=h[c];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},u.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||n<r)&&(r=n),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,s,a,l,h,c,u=!1;;)switch(i){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return h=e,c=r,R(O(t,(l=this).length-h),l,h,c);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return o=this,s=e,a=r,R(I(t),o,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function k(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function b(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function w(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||i<r)&&(r=i);for(var n="",o=e;o<r;++o)n+=P[t[o]];return n}function E(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,r,i,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function A(t,e,r,i){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,i,n){return e=+e,r>>>=0,n||A(t,0,r,4),o.write(t,e,r,i,23,4),r+4}function N(t,e,r,i,n){return e=+e,r>>>=0,n||A(t,0,r,8),o.write(t,e,r,i,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,u.prototype),i},u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var i=this[t+--e],n=1;0<e&&(n*=256);)i+=this[t+--e]*n;return i},u.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);for(var i=e,n=1,o=this[t+--i];0<i&&(n*=256);)o+=this[t+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||C(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||S(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||S(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;0<=--n&&(o*=256);)this[e+n]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);S(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);S(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;0<=--o&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,i||0===i||(i=this.length),e>=t.length&&(e=t.length),e=e||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n=i-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,i);else if(this===t&&r<e&&e<i)for(var o=n-1;0<=o;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,i),e);return n},u.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var n=t.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&&(t=n)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:u.from(t,i),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var e=/[^+/0-9A-Za-z-_]/g;function O(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s<i;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!n){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===i){-1<(e-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,r<128){if(--e<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function I(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function M(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function D(t){return t!=t}var P=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)e[i+n]=t[r]+t[n];return e}()}).call(this,B("buffer").Buffer)},{"base64-js":3,buffer:4,ieee754:21}],5:[function(t,e,r){var i;i=function(u){function f(t,e,r){var i,n=t.getWrapperElement();return(i=n.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof e?i.innerHTML=e:i.appendChild(e),u.addClass(n,"dialog-opened"),i}function p(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}u.defineExtension("openDialog",function(t,e,r){r=r||{},p(this,null);var i=f(this,t,r.bottom),n=!1,o=this;function s(t){if("string"==typeof t)l.value=t;else{if(n)return;n=!0,u.rmClass(i.parentNode,"dialog-opened"),i.parentNode.removeChild(i),o.focus(),r.onClose&&r.onClose(i)}}var a,l=i.getElementsByTagName("input")[0];return l?(l.focus(),r.value&&(l.value=r.value,!1!==r.selectValueOnOpen&&l.select()),r.onInput&&u.on(l,"input",function(t){r.onInput(t,l.value,s)}),r.onKeyUp&&u.on(l,"keyup",function(t){r.onKeyUp(t,l.value,s)}),u.on(l,"keydown",function(t){r&&r.onKeyDown&&r.onKeyDown(t,l.value,s)||((27==t.keyCode||!1!==r.closeOnEnter&&13==t.keyCode)&&(l.blur(),u.e_stop(t),s()),13==t.keyCode&&e(l.value,t))}),!1!==r.closeOnBlur&&u.on(l,"blur",s)):(a=i.getElementsByTagName("button")[0])&&(u.on(a,"click",function(){s(),o.focus()}),!1!==r.closeOnBlur&&u.on(a,"blur",s),a.focus()),s}),u.defineExtension("openConfirm",function(t,e,r){p(this,null);var i=f(this,t,r&&r.bottom),n=i.getElementsByTagName("button"),o=!1,s=this,a=1;function l(){o||(o=!0,u.rmClass(i.parentNode,"dialog-opened"),i.parentNode.removeChild(i),s.focus())}n[0].focus();for(var h=0;h<n.length;++h){var c=n[h];!function(e){u.on(c,"click",function(t){u.e_preventDefault(t),l(),e&&e(s)})}(e[h]),u.on(c,"blur",function(){--a,setTimeout(function(){a<=0&&l()},200)}),u.on(c,"focus",function(){++a})}}),u.defineExtension("openNotification",function(t,e){p(this,s);var r,i=f(this,t,e&&e.bottom),n=!1,o=e&&void 0!==e.duration?e.duration:5e3;function s(){n||(n=!0,clearTimeout(r),u.rmClass(i.parentNode,"dialog-opened"),i.parentNode.removeChild(i))}return u.on(i,"click",function(t){u.e_preventDefault(t),s()}),o&&(r=setTimeout(s,o)),s})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],6:[function(t,e,r){var i;i=function(k){var r={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},b=k.Pos;function w(t,e){return"pairs"==e&&"string"==typeof t?t:"object"==typeof t&&null!=t[e]?t[e]:r[e]}k.defineOption("autoCloseBrackets",!1,function(t,e,r){r&&r!=k.Init&&(t.removeKeyMap(n),t.state.closeBrackets=null),e&&(i(w(e,"pairs")),t.state.closeBrackets=e,t.addKeyMap(n))});var n={Backspace:function(t){var e=E(t);if(!e||t.getOption("disableInput"))return k.Pass;for(var r=w(e,"pairs"),i=t.listSelections(),n=0;n<i.length;n++){if(!i[n].empty())return k.Pass;var o=a(t,i[n].head);if(!o||r.indexOf(o)%2!=0)return k.Pass}for(n=i.length-1;0<=n;n--){var s=i[n].head;t.replaceRange("",b(s.line,s.ch-1),b(s.line,s.ch+1),"+delete")}},Enter:function(i){var t=E(i),e=t&&w(t,"explode");if(!e||i.getOption("disableInput"))return k.Pass;for(var n=i.listSelections(),r=0;r<n.length;r++){if(!n[r].empty())return k.Pass;var o=a(i,n[r].head);if(!o||e.indexOf(o)%2!=0)return k.Pass}i.operation(function(){var t=i.lineSeparator()||"\n";i.replaceSelection(t+t,null),i.execCommand("goCharLeft"),n=i.listSelections();for(var e=0;e<n.length;e++){var r=n[e].head.line;i.indentLine(r,null,!0),i.indentLine(r+1,null,!0)}})}};function i(t){for(var e=0;e<t.length;e++){var r=t.charAt(e),i="'"+r+"'";n[i]||(n[i]=o(r))}}function o(e){return function(t){return function(n,t){var e=E(n);if(!e||n.getOption("disableInput"))return k.Pass;var r=w(e,"pairs"),i=r.indexOf(t);if(-1==i)return k.Pass;for(var o,s=w(e,"closeBefore"),a=w(e,"triples"),l=r.charAt(i+1)==t,h=n.listSelections(),c=i%2==0,u=0;u<h.length;u++){var f,p=h[u],d=p.head,m=n.getRange(d,b(d.line,d.ch+1));if(c&&!p.empty())f="surround";else if(!l&&c||m!=t)if(l&&1<d.ch&&0<=a.indexOf(t)&&n.getRange(b(d.line,d.ch-2),d)==t+t){if(2<d.ch&&/\bstring/.test(n.getTokenTypeAt(b(d.line,d.ch-2))))return k.Pass;f="addFour"}else if(l){var g=0==d.ch?" ":n.getRange(b(d.line,d.ch-1),d);if(k.isWordChar(m)||g==t||k.isWordChar(g))return k.Pass;f="both"}else{if(!c||!(0===m.length||/\s/.test(m)||-1<s.indexOf(m)))return k.Pass;f="both"}else f=!l||(v=d,y=(_=n).getTokenAt(b(v.line,v.ch+1)),!/\bstring/.test(y.type)||y.start!=v.ch||0!=v.ch&&/\bstring/.test(_.getTokenTypeAt(v)))?0<=a.indexOf(t)&&n.getRange(d,b(d.line,d.ch+3))==t+t+t?"skipThree":"skip":"both";if(o){if(o!=f)return k.Pass}else o=f}var _,v,y;var x=i%2?r.charAt(i-1):t,T=i%2?t:r.charAt(i+1);n.operation(function(){if("skip"==o)n.execCommand("goCharRight");else if("skipThree"==o)for(var t=0;t<3;t++)n.execCommand("goCharRight");else if("surround"==o){var e=n.getSelections();for(t=0;t<e.length;t++)e[t]=x+e[t]+T;n.replaceSelections(e,"around"),e=n.listSelections().slice();for(t=0;t<e.length;t++)e[t]=(r=e[t],i=0<k.cmpPos(r.anchor,r.head),{anchor:new b(r.anchor.line,r.anchor.ch+(i?-1:1)),head:new b(r.head.line,r.head.ch+(i?1:-1))});n.setSelections(e)}else"both"==o?(n.replaceSelection(x+T,null),n.triggerElectric(x+T),n.execCommand("goCharLeft")):"addFour"==o&&(n.replaceSelection(x+x+x+x,"before"),n.execCommand("goCharRight"));var r,i})}(t,e)}}function E(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function a(t,e){var r=t.getRange(b(e.line,e.ch-1),b(e.line,e.ch+1));return 2==r.length?r:null}i(r.pairs+"`")},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],7:[function(t,e,r){var i;i=function(i){var c=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),g=i.Pos,_={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function v(t){return t&&t.bracketRegex||/[(){}[\]]/}function u(t,e,r){var i=t.getLineHandle(e.line),n=e.ch-1,o=r&&r.afterCursor;null==o&&(o=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var s=v(r),a=!o&&0<=n&&s.test(i.text.charAt(n))&&_[i.text.charAt(n)]||s.test(i.text.charAt(n+1))&&_[i.text.charAt(++n)];if(!a)return null;var l=">"==a.charAt(1)?1:-1;if(r&&r.strict&&0<l!=(n==e.ch))return null;var h=t.getTokenTypeAt(g(e.line,n+1)),c=f(t,g(e.line,n+(0<l?1:0)),l,h||null,r);return null==c?null:{from:g(e.line,n),to:c&&c.pos,match:c&&c.ch==a.charAt(0),forward:0<l}}function f(t,e,r,i,n){for(var o=n&&n.maxScanLineLength||1e4,s=n&&n.maxScanLines||1e3,a=[],l=v(n),h=0<r?Math.min(e.line+s,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-s),c=e.line;c!=h;c+=r){var u=t.getLine(c);if(u){var f=0<r?0:u.length-1,p=0<r?u.length:-1;if(!(u.length>o))for(c==e.line&&(f=e.ch-(r<0?1:0));f!=p;f+=r){var d=u.charAt(f);if(l.test(d)&&(void 0===i||t.getTokenTypeAt(g(c,f+1))==i)){var m=_[d];if(m&&">"==m.charAt(1)==0<r)a.push(d);else{if(!a.length)return{pos:g(c,f),ch:d};a.pop()}}}}}return c-r!=(0<r?t.lastLine():t.firstLine())&&null}function e(t,e,r){for(var i=t.state.matchBrackets.maxHighlightLineLength||1e3,n=[],o=t.listSelections(),s=0;s<o.length;s++){var a=o[s].empty()&&u(t,o[s].head,r);if(a&&t.getLine(a.from.line).length<=i){var l=a.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";n.push(t.markText(a.from,g(a.from.line,a.from.ch+1),{className:l})),a.to&&t.getLine(a.to.line).length<=i&&n.push(t.markText(a.to,g(a.to.line,a.to.ch+1),{className:l}))}}if(n.length){c&&t.state.focused&&t.focus();function h(){t.operation(function(){for(var t=0;t<n.length;t++)n[t].clear()})}if(!e)return h;setTimeout(h,800)}}function n(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=e(t,!1,t.state.matchBrackets)})}i.defineOption("matchBrackets",!1,function(t,e,r){r&&r!=i.Init&&(t.off("cursorActivity",n),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),e&&(t.state.matchBrackets="object"==typeof e?e:{},t.on("cursorActivity",n))}),i.defineExtension("matchBrackets",function(){e(this,!0)}),i.defineExtension("findMatchingBracket",function(t,e,r){return!r&&"boolean"!=typeof e||(e=r?(r.strict=e,r):e?{strict:!0}:null),u(this,t,e)}),i.defineExtension("scanForBracket",function(t,e,r,i){return f(this,t,e,r,i)})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],8:[function(t,e,r){var i;i=function(u){"use strict";var d="CodeMirror-lint-markers";function c(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,r){var i,n,o,s=(i=t,n=e,(o=document.createElement("div")).className="CodeMirror-lint-tooltip",o.appendChild(n.cloneNode(!0)),document.body.appendChild(o),u.on(document,"mousemove",a),a(i),null!=o.style.opacity&&(o.style.opacity=1),o);function a(t){if(!o.parentNode)return u.off(document,"mousemove",a);o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}function l(){var t;u.off(r,"mouseout",l),s&&((t=s).parentNode&&(null==t.style.opacity&&c(t),t.style.opacity=0,setTimeout(function(){c(t)},600)),s=null)}var h=setInterval(function(){if(s)for(var t=r;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){l();break}}if(!s)return clearInterval(h)},400);u.on(r,"mouseout",l)}function l(e,t,r){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=r,this.onMouseOver=function(t){!function(t,e){var r=e.target||e.srcElement;if(!/\bCodeMirror-lint-mark-/.test(r.className))return;for(var i=r.getBoundingClientRect(),n=(i.left+i.right)/2,o=(i.top+i.bottom)/2,s=t.findMarksAt(t.coordsChar({left:n,top:o},"client")),a=[],l=0;l<s.length;++l){var h=s[l].__annotation;h&&a.push(h)}a.length&&function(t,e){for(var r=e.target||e.srcElement,i=document.createDocumentFragment(),n=0;n<t.length;n++){var o=t[n];i.appendChild(_(o))}f(e,i,r)}(a,e)}(e,t)},this.waitingFor=0}function m(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(d);for(var r=0;r<e.marked.length;++r)e.marked[r].clear();e.marked.length=0}function g(e,t,r,i){var n=document.createElement("div"),o=n;return n.className="CodeMirror-lint-marker-"+t,r&&((o=n.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=i&&u.on(o,"mouseover",function(t){f(t,e,o)}),n}function _(t){var e=t.severity;e=e||"error";var r=document.createElement("div");return r.className="CodeMirror-lint-message-"+e,void 0!==t.messageHTML?r.innerHTML=t.messageHTML:r.appendChild(document.createTextNode(t.message)),r}function h(e){var r,t,i,n,o,s=e.state.lint.options,a=s.options||s,l=s.getAnnotations||e.getHelper(u.Pos(0,0),"lint");if(l)if(s.async||l.async)t=l,i=a,n=(r=e).state.lint,o=++n.waitingFor,r.on("change",c),t(r.getValue(),function(t,e){r.off("change",c),n.waitingFor==o&&(e&&t instanceof u&&(t=e),r.operation(function(){p(r,t)}))},i,r);else{var h=l(e.getValue(),a,e);if(!h)return;h.then?h.then(function(t){e.operation(function(){p(e,t)})}):e.operation(function(){p(e,h)})}function c(){o=-1,r.off("change",c)}}function p(t,e){m(t);for(var r,i,n=t.state.lint,o=n.options,s=function(t){for(var e=[],r=0;r<t.length;++r){var i=t[r],n=i.from.line;(e[n]||(e[n]=[])).push(i)}return e}(e),a=0;a<s.length;++a){var l=s[a];if(l){for(var h=null,c=n.hasGutter&&document.createDocumentFragment(),u=0;u<l.length;++u){var f=l[u],p=f.severity;i=p=p||"error",h="error"==(r=h)?r:i,o.formatAnnotation&&(f=o.formatAnnotation(f)),n.hasGutter&&c.appendChild(_(f)),f.to&&n.marked.push(t.markText(f.from,f.to,{className:"CodeMirror-lint-mark-"+p,__annotation:f}))}n.hasGutter&&t.setGutterMarker(a,d,g(c,h,1<l.length,n.options.tooltips))}}o.onUpdateLinting&&o.onUpdateLinting(e,s,t)}function v(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){h(t)},e.options.delay||500))}u.defineOption("lint",!1,function(t,e,r){if(r&&r!=u.Init&&(m(t),!1!==t.state.lint.options.lintOnChange&&t.off("change",v),u.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),e){for(var i=t.getOption("gutters"),n=!1,o=0;o<i.length;++o)i[o]==d&&(n=!0);var s=t.state.lint=new l(t,(a=e)instanceof Function?{getAnnotations:a}:(a&&!0!==a||(a={}),a),n);!1!==s.options.lintOnChange&&t.on("change",v),0!=s.options.tooltips&&"gutter"!=s.options.tooltips&&u.on(t.getWrapperElement(),"mouseover",s.onMouseOver),h(t)}var a}),u.defineExtension("performLint",function(){this.state.lint&&h(this)})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],9:[function(t,e,r){var i;i=function(t){"use strict";function e(t,e){function r(t){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.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;t.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&r(20)},100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){r(250)})}t.defineExtension("annotateScrollbar",function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)}),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var r=this.cm,e=this.hScale,i=document.createDocumentFragment(),n=this.annotations,o=r.getOption("lineWrapping"),s=o&&1.5*r.defaultTextHeight(),a=null,l=null;function h(t,e){return a!=t.line&&(a=t.line,l=r.getLineHandle(a)),l.widgets&&l.widgets.length||o&&l.height>s?r.charCoords(t,"local")[e?"top":"bottom"]:r.heightAtLine(l,"local")+(e?0:l.height)}var c=r.lastLine();if(r.display.barWidth)for(var u,f=0;f<n.length;f++){var p=n[f];if(!(p.to.line>c)){for(var d=u||h(p.from,!0)*e,m=h(p.to,!1)*e;f<n.length-1&&!(n[f+1].to.line>c)&&!(m+.9<(u=h(n[f+1].from,!0)*e));)m=h((p=n[++f]).to,!1)*e;if(m!=d){var g=Math.max(m-d,3),_=i.appendChild(document.createElement("div"));_.style.cssText="position: absolute; right: 0px; width: "+Math.max(r.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+g+"px",_.className=this.options.className,p.id&&_.setAttribute("annotation-id",p.id)}}}this.div.textContent="",this.div.appendChild(i)},e.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("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],10:[function(t,e,r){var i;i=function(n){"use strict";var r={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function o(t){for(var e in this.options={},r)this.options[e]=(t&&t.hasOwnProperty(e)?t:r)[e];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function s(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&i(t,e)}function a(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,i(t,e))}function i(t,e){clearTimeout(e.timeout),e.timeout=setTimeout(function(){l(t)},e.options.delay)}function c(t,e,r,i){var n,o,s,a=t.state.matchHighlighter;if(t.addOverlay(a.overlay=(n=e,o=r,s=i,{token:function(t){if(t.match(n)&&(!o||(r=o,!((e=t).start&&r.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&r.test(e.string.charAt(e.pos))))))return s;var e,r;t.next(),t.skipTo(n.charAt(0))||t.skipToEnd()}})),a.options.annotateScrollbar&&t.showMatchesOnScrollbar){var l=r?new RegExp("\\b"+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+"\\b"):e;a.matchesonscroll=t.showMatchesOnScrollbar(l,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function u(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(h){h.operation(function(){var t=h.state.matchHighlighter;if(u(h),h.somethingSelected()||!t.options.showToken){var e=h.getCursor("from"),r=h.getCursor("to");if(e.line==r.line&&(!t.options.wordsOnly||function(t,e,r){{if(null===t.getRange(e,r).match(/^\w+$/))return;if(0<e.ch){var i={line:e.line,ch:e.ch-1};if(null===t.getRange(i,e).match(/\W/))return}if(r.ch<t.getLine(e.line).length){i={line:r.line,ch:r.ch+1};if(null===t.getRange(r,i).match(/\W/))return}return 1}}(h,e,r))){var i=h.getRange(e,r);t.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=t.options.minChars&&c(h,i,!1,t.options.style)}}else{for(var n=!0===t.options.showToken?/[\w$]/:t.options.showToken,o=h.getCursor(),s=h.getLine(o.line),a=o.ch,l=a;a&&n.test(s.charAt(a-1));)--a;for(;l<s.length&&n.test(s.charAt(l));)++l;a<l&&c(h,s.slice(a,l),n,t.options.style)}})}n.defineOption("highlightSelectionMatches",!1,function(t,e,r){if(r&&r!=n.Init&&(u(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",s),t.off("focus",a)),e){var i=t.state.matchHighlighter=new o(e);t.hasFocus()?(i.active=!0,l(t)):t.on("focus",a),t.on("cursorActivity",s)}})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror"),t("./matchesonscrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)},{"../../lib/codemirror":14,"./matchesonscrollbar":11}],11:[function(t,e,r){var i;i=function(h){"use strict";function i(t,e,r,i){this.cm=t,this.options=i;var n={listenForChanges:!1};for(var o in i)n[o]=i[o];n.className||(n.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(n),this.query=e,this.caseFold=r,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;t.on("change",this.changeHandler=function(t,e){s.onChange(e)})}h.defineExtension("showMatchesOnScrollbar",function(t,e,r){return"string"==typeof r&&(r={className:r}),new i(this,t,e,r=r||{})});function c(t,e,r){return t<=e?t:Math.max(e,t+r)}i.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){if((i=this.matches[t]).from.line>=this.gap.to)break;i.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var e=this.cm.getSearchCursor(this.query,h.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),r=this.options&&this.options.maxMatches||1e3;e.findNext();){var i;if((i={from:e.from(),to:e.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>r)break}this.gap=null}},i.prototype.onChange=function(t){var e=t.from.line,r=h.changeEnd(t).line,i=r-t.to.line;if(this.gap?(this.gap.from=Math.min(c(this.gap.from,e,i),t.from.line),this.gap.to=Math.max(c(this.gap.to,e,i),t.from.line)):this.gap={from:t.from.line,to:r+1},i)for(var n=0;n<this.matches.length;n++){var o=this.matches[n],s=c(o.from.line,e,i);s!=o.from.line&&(o.from=h.Pos(s,o.from.ch));var a=c(o.to.line,e,i);a!=o.to.line&&(o.to=h.Pos(a,o.to.ch))}clearTimeout(this.update);var l=this;this.update=setTimeout(function(){l.updateAfterChange()},250)},i.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},i.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror"),t("./searchcursor"),t("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)},{"../../lib/codemirror":14,"../scroll/annotatescrollbar":9,"./searchcursor":13}],12:[function(t,e,r){var i;i=function(p){"use strict";function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function d(t){return t.state.search||(t.state.search=new e)}function o(t){return"string"==typeof t&&t==t.toLowerCase()}function m(t,e,r){return t.getSearchCursor(e,r,{caseFold:o(e),multiline:!0})}function g(t,e,r,i,n){t.openDialog?t.openDialog(e,n,{value:i,selectValueOnOpen:!0}):n(prompt(r,i))}function i(t){return t.replace(/\\([nrt\\])/g,function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t})}function s(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=i(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function _(t,e,r){var i,n;e.queryText=r,e.query=s(r),t.removeOverlay(e.overlay,o(e.query)),e.overlay=(i=e.query,n=o(e.query),"string"==typeof i?i=new RegExp(i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):i.global||(i=new RegExp(i.source,i.ignoreCase?"gi":"g")),{token:function(t){i.lastIndex=t.pos;var e=i.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,o(e.query)))}function r(o,e,t,r){var i=d(o);if(i.query)return v(o,e);var n,s,a,l,h,c=o.getSelection()||i.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),t&&o.openDialog){var u=null,f=function(t,e){p.e_stop(e),t&&(t!=i.queryText&&(_(o,i,t),i.posFrom=i.posTo=o.getCursor()),u&&(u.style.opacity=1),v(o,e.shiftKey,function(t,e){var r;e.line<3&&document.querySelector&&(r=o.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>o.cursorCoords(e,"window").top&&((u=r).style.opacity=.4)}))};s=x(n=o),a=c,l=f,h=function(t,e){var r=p.keyName(t),i=o.getOption("extraKeys"),n=i&&i[r]||p.keyMap[o.getOption("keyMap")][r];"findNext"==n||"findPrev"==n||"findPersistentNext"==n||"findPersistentPrev"==n?(p.e_stop(t),_(o,d(o),e),o.execCommand(n)):"find"!=n&&"findPersistent"!=n||(p.e_stop(t),f(e,t))},n.openDialog(s,l,{value:a,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){y(n)},onKeyDown:h}),r&&c&&(_(o,i,c),v(o,e))}else g(o,x(o),"Search for:",c,function(t){t&&!i.query&&o.operation(function(){_(o,i,t),i.posFrom=i.posTo=o.getCursor(),v(o,e)})})}function v(r,i,n){r.operation(function(){var t=d(r),e=m(r,t.query,i?t.posFrom:t.posTo);(e.find(i)||(e=m(r,t.query,i?p.Pos(r.lastLine()):p.Pos(r.firstLine(),0))).find(i))&&(r.setSelection(e.from(),e.to()),r.scrollIntoView({from:e.from(),to:e.to()},20),t.posFrom=e.from(),t.posTo=e.to(),n&&n(e.from(),e.to()))})}function y(e){e.operation(function(){var t=d(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function x(t){return'<span class="CodeMirror-search-label">'+t.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+t.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function T(e,i,n){e.operation(function(){for(var t=m(e,i);t.findNext();)if("string"!=typeof i){var r=e.getRange(t.from(),t.to()).match(i);t.replace(n.replace(/\$(\d)/g,function(t,e){return r[e]}))}else t.replace(n)})}function n(f,t){if(!f.getOption("readOnly")){var e=f.getSelection()||d(f).lastQuery,r='<span class="CodeMirror-search-label">'+(t?f.phrase("Replace all:"):f.phrase("Replace:"))+"</span>";g(f,r+(' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+f.phrase("(Use /re/ syntax for regexp search)")+"</span>"),r,e,function(u){u&&(u=s(u),g(f,'<span class="CodeMirror-search-label">'+f.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',f.phrase("Replace with:"),"",function(a){if(a=i(a),t)T(f,u,a);else{y(f);var l=m(f,u,f.getCursor("from")),h=function(){var t,e,r,i,n,o,s=l.from();!(t=l.findNext())&&(l=m(f,u),!(t=l.findNext())||s&&l.from().line==s.line&&l.from().ch==s.ch)||(f.setSelection(l.from(),l.to()),f.scrollIntoView({from:l.from(),to:l.to()}),r='<span class="CodeMirror-search-label">'+(o=e=f).phrase("Replace?")+"</span> <button>"+o.phrase("Yes")+"</button> <button>"+o.phrase("No")+"</button> <button>"+o.phrase("All")+"</button> <button>"+o.phrase("Stop")+"</button> ",i=f.phrase("Replace?"),n=[function(){c(t)},h,function(){T(f,u,a)}],e.openConfirm?e.openConfirm(r,n):confirm(i)&&n[0]())},c=function(r){l.replace("string"==typeof u?a:a.replace(/\$(\d)/g,function(t,e){return r[e]})),h()};h()}}))})}}p.commands.find=function(t){y(t),r(t)},p.commands.findPersistent=function(t){y(t),r(t,!1,!0)},p.commands.findPersistentNext=function(t){r(t,!1,!0,!0)},p.commands.findPersistentPrev=function(t){r(t,!0,!0,!0)},p.commands.findNext=r,p.commands.findPrev=function(t){r(t,!0)},p.commands.clearSearch=y,p.commands.replace=n,p.commands.replaceAll=function(t){n(t,!0)}},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror"),t("./searchcursor"),t("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],i):i(CodeMirror)},{"../../lib/codemirror":14,"../dialog/dialog":5,"./searchcursor":13}],13:[function(t,e,r){var i;i=function(n){"use strict";var _,v,y=n.Pos;function m(t,e){for(var r,i,n=null!=(i=(r=t).flags)?i:(r.ignoreCase?"i":"")+(r.global?"g":"")+(r.multiline?"m":""),o=n,s=0;s<e.length;s++)-1==o.indexOf(e.charAt(s))&&(o+=e.charAt(s));return n==o?t:new RegExp(t.source,o)}function g(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function d(t,e,r){e=m(e,"g");for(var i=r.line,n=r.ch,o=t.lastLine();i<=o;i++,n=0){e.lastIndex=n;var s=t.getLine(i),a=e.exec(s);if(a)return{from:y(i,a.index),to:y(i,a.index+a[0].length),match:a}}}function x(t,e,r){for(var i,n=0;n<=t.length;){e.lastIndex=n;var o=e.exec(t);if(!o)break;var s=o.index+o[0].length;if(s>t.length-r)break;(!i||s>i.index+i[0].length)&&(i=o),n=o.index+1}return i}function T(t,e,r){e=m(e,"g");for(var i=r.line,n=r.ch,o=t.firstLine();o<=i;i--,n=-1){var s=t.getLine(i),a=x(s,e,n<0?0:s.length-n);if(a)return{from:y(i,a.index),to:y(i,a.index+a[0].length),match:a}}}function k(t,e,r,i){if(t.length==e.length)return r;for(var n=0,o=r+Math.max(0,t.length-e.length);;){if(n==o)return n;var s=n+o>>1,a=i(t.slice(0,s)).length;if(a==r)return s;r<a?o=s:n=1+s}}function i(r,i,t,e){var n;this.atOccurrence=!1,this.doc=r,t=t?r.clipPos(t):y(0,0),this.pos={from:t,to:t},"object"==typeof e?n=e.caseFold:(n=e,e=null),"string"==typeof i?(null==n&&(n=!1),this.matches=function(t,e){return(t?function(t,e,r,i){if(!e.length)return null;var n=i?_:v,o=n(e).split(/\r|\n\r?/);t:for(var s=r.line,a=r.ch,l=t.firstLine()-1+o.length;l<=s;s--,a=-1){var h=t.getLine(s);-1<a&&(h=h.slice(0,a));var c=n(h);if(1==o.length){var u=c.lastIndexOf(o[0]);if(-1==u)continue t;return{from:y(s,k(h,c,u,n)),to:y(s,k(h,c,u+o[0].length,n))}}var f=o[o.length-1];if(c.slice(0,f.length)==f){var p=1;for(r=s-o.length+1;p<o.length-1;p++)if(n(t.getLine(r+p))!=o[p])continue t;var d=t.getLine(s+1-o.length),m=n(d);if(m.slice(m.length-o[0].length)==o[0])return{from:y(s+1-o.length,k(d,m,d.length-o[0].length,n)),to:y(s,k(h,c,f.length,n))}}}}:function(t,e,r,i){if(!e.length)return null;var n=i?_:v,o=n(e).split(/\r|\n\r?/);t:for(var s=r.line,a=r.ch,l=t.lastLine()+1-o.length;s<=l;s++,a=0){var h=t.getLine(s).slice(a),c=n(h);if(1==o.length){var u=c.indexOf(o[0]);if(-1==u)continue t;r=k(h,c,u,n)+a;return{from:y(s,k(h,c,u,n)+a),to:y(s,k(h,c,u+o[0].length,n)+a)}}var f=c.length-o[0].length;if(c.slice(f)==o[0]){for(var p=1;p<o.length-1;p++)if(n(t.getLine(s+p))!=o[p])continue t;var d=t.getLine(s+o.length-1),m=n(d),g=o[o.length-1];if(m.slice(0,g.length)==g)return{from:y(s,k(h,c,f,n)+a),to:y(s+o.length-1,k(d,m,g.length,n))}}}})(r,i,e,n)}):(i=m(i,"gm"),e&&!1===e.multiline?this.matches=function(t,e){return(t?T:d)(r,i,e)}:this.matches=function(t,e){return(t?function(t,e,r){if(!g(e))return T(t,e,r);e=m(e,"gm");for(var i,n=1,o=t.getLine(r.line).length-r.ch,s=r.line,a=t.firstLine();a<=s;){for(var l=0;l<n&&a<=s;l++){var h=t.getLine(s--);i=null==i?h:h+"\n"+i}n*=2;var c=x(i,e,o);if(c){var u=i.slice(0,c.index).split("\n"),f=c[0].split("\n"),p=s+u.length,d=u[u.length-1].length;return{from:y(p,d),to:y(p+f.length-1,1==f.length?d+f[0].length:f[f.length-1].length),match:c}}}}:function(t,e,r){if(!g(e))return d(t,e,r);e=m(e,"gm");for(var i,n=1,o=r.line,s=t.lastLine();o<=s;){for(var a=0;a<n&&!(s<o);a++){var l=t.getLine(o++);i=null==i?l:i+"\n"+l}n*=2,e.lastIndex=r.ch;var h=e.exec(i);if(h){var c=i.slice(0,h.index).split("\n"),u=h[0].split("\n"),f=r.line+c.length-1,p=c[c.length-1].length;return{from:y(f,p),to:y(f+u.length-1,1==u.length?p+u[0].length:u[u.length-1].length),match:h}}}})(r,i,e)})}v=String.prototype.normalize?(_=function(t){return t.normalize("NFD").toLowerCase()},function(t){return t.normalize("NFD")}):(_=function(t){return t.toLowerCase()},function(t){return t}),i.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=y(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(y(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=y(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,y(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var r=y(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,e){if(this.atOccurrence){var r=n.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,e),this.pos.to=y(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(t,e,r){return new i(this.doc,t,e,r)}),n.defineDocExtension("getSearchCursor",function(t,e,r){return new i(this,t,e,r)}),n.defineExtension("selectMatches",function(t,e){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),e);i.findNext()&&!(0<n.cmpPos(i.to(),this.getCursor("to")));)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],14:[function(t,e,r){var i,n;i=this,n=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,m=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),n=/Edge\/(\d+)/.exec(t),T=r||i||n,k=T&&(r?document.documentMode||6:+(n||i)[1]),y=!n&&/WebKit\//.test(t),o=y&&/Qt\/\d+\.\d+/.test(t),s=!n&&/Chrome\//.test(t),g=/Opera\//.test(t),l=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),h=/PhantomJS/.test(t),c=!n&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),u=/Android/.test(t),f=c||u||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),x=c||/Mac/.test(e),p=/\bCrOS\b/.test(t),d=/win/i.test(e),_=g&&t.match(/Version\/(\d*\.\d*)/);(_=_&&Number(_[1]))&&15<=_&&(y=!(g=!1));var v=x&&(o||g&&(null==_||_<12.11)),b=m||T&&9<=k;function w(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var E,C=function(t,e){var r=t.className,i=w(e).exec(r);if(i){var n=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(n?i[1]+n:"")}};function S(t){for(var e=t.childNodes.length;0<e;--e)t.removeChild(t.firstChild);return t}function A(t,e){return S(t).appendChild(e)}function N(t,e,r,i){var n=document.createElement(t);if(r&&(n.className=r),i&&(n.style.cssText=i),"string"==typeof e)n.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)n.appendChild(e[o]);return n}function L(t,e,r,i){var n=N(t,e,r,i);return n.setAttribute("role","presentation"),n}function O(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function R(t,e){var r=t.className;w(e).test(r)||(t.className+=(r?" ":"")+e)}function M(t,e){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!w(r[i]).test(e)&&(e+=" "+r[i]);return e}E=document.createRange?function(t,e,r,i){var n=document.createRange();return n.setEnd(i||t,r),n.setStart(t,e),n}:function(t,e,r){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",r),i.moveStart("character",e),i};var D=function(t){t.select()};function P(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function B(t,e,r){for(var i in e=e||{},t)!t.hasOwnProperty(i)||!1===r&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function U(t,e,r,i,n){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,s=n||0;;){var a=t.indexOf("\t",o);if(a<0||e<=a)return s+(e-o);s+=a-o,s+=r-s%r,o=a+1}}c?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:T&&(D=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};function H(t,e){for(var r=0;r<t.length;++r)if(t[r]==e)return r;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-new Date)},F.prototype.set=function(t,e){this.f=e;var r=+new Date+t;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=r)};var z=30,W={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},G={origin:"*mouse"},j={origin:"+move"};function V(t,e,r){for(var i=0,n=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var s=o-i;if(o==t.length||e<=n+s)return i+Math.min(s,e-n);if(n+=o-i,i=o+1,e<=(n+=r-n%r))return i}}var Y=[""];function K(t){for(;Y.length<=t;)Y.push($(Y)+" ");return Y[t]}function $(t){return t[t.length-1]}function Q(t,e){for(var r=[],i=0;i<t.length;i++)r[i]=e(t[i],i);return r}function X(){}function Z(t,e){var r;return r=Object.create?Object.create(t):(X.prototype=t,new X),e&&B(e,r),r}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(t){return/\w/.test(t)||""<t&&(t.toUpperCase()!=t.toLowerCase()||J.test(t))}function et(t,e){return e?!!(-1<e.source.indexOf("\\w")&&tt(t))||e.test(t):tt(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return;return 1}var it=/[\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 nt(t){return 768<=t.charCodeAt(0)&&it.test(t)}function ot(t,e,r){for(;(r<0?0<e:e<t.length)&&nt(t.charAt(e));)e+=r;return e}function st(t,e,r){for(var i=r<e?-1:1;;){if(e==r)return e;var n=(e+r)/2,o=i<0?Math.ceil(n):Math.floor(n);if(o==e)return t(o)?e:r;t(o)?r=o:e=o+i}}var at=null;function lt(t,e,r){var i;at=null;for(var n=0;n<t.length;++n){var o=t[n];if(o.from<e&&o.to>e)return n;o.to==e&&(o.from!=o.to&&"before"==r?i=n:at=n),o.from==e&&(o.from!=o.to&&"before"!=r?i=n:at=n)}return null!=i?i:at}var ht,ct,ut,ft,pt,dt,mt,gt=(ht="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ct="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",ut=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,pt=/[LRr]/,dt=/[Lb1n]/,mt=/[1n]/,function(t,e){var r="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!ut.test(t))return!1;for(var i,n=t.length,o=[],s=0;s<n;++s)o.push((i=t.charCodeAt(s))<=247?ht.charAt(i):1424<=i&&i<=1524?"R":1536<=i&&i<=1785?ct.charAt(i-1536):1774<=i&&i<=2220?"r":8192<=i&&i<=8203?"w":8204==i?"b":"L");for(var a=0,l=r;a<n;++a){var h=o[a];"m"==h?o[a]=l:l=h}for(var c=0,u=r;c<n;++c){var f=o[c];"1"==f&&"r"==u?o[c]="n":pt.test(f)&&"r"==(u=f)&&(o[c]="R")}for(var p=1,d=o[0];p<n-1;++p){var m=o[p];"+"==m&&"1"==d&&"1"==o[p+1]?o[p]="1":","!=m||d!=o[p+1]||"1"!=d&&"n"!=d||(o[p]=d),d=m}for(var g=0;g<n;++g){var _=o[g];if(","==_)o[g]="N";else if("%"==_){var v=void 0;for(v=g+1;v<n&&"%"==o[v];++v);for(var y=g&&"!"==o[g-1]||v<n&&"1"==o[v]?"1":"N",x=g;x<v;++x)o[x]=y;g=v-1}}for(var T=0,k=r;T<n;++T){var b=o[T];"L"==k&&"1"==b?o[T]="L":pt.test(b)&&(k=b)}for(var w=0;w<n;++w)if(ft.test(o[w])){var E=void 0;for(E=w+1;E<n&&ft.test(o[E]);++E);for(var C="L"==(w?o[w-1]:r),S=C==("L"==(E<n?o[E]:r))?C?"L":"R":r,A=w;A<E;++A)o[A]=S;w=E-1}for(var L,N=[],O=0;O<n;)if(dt.test(o[O])){var I=O;for(++O;O<n&&dt.test(o[O]);++O);N.push(new _t(0,I,O))}else{var R=O,M=N.length;for(++O;O<n&&"L"!=o[O];++O);for(var D=R;D<O;)if(mt.test(o[D])){R<D&&N.splice(M,0,new _t(1,R,D));var P=D;for(++D;D<O&&mt.test(o[D]);++D);N.splice(M,0,new _t(2,P,D)),R=D}else++D;R<O&&N.splice(M,0,new _t(1,R,O))}return"ltr"==e&&(1==N[0].level&&(L=t.match(/^\s+/))&&(N[0].from=L[0].length,N.unshift(new _t(0,0,L[0].length))),1==$(N).level&&(L=t.match(/\s+$/))&&($(N).to-=L[0].length,N.push(new _t(0,n-L[0].length,n)))),"rtl"==e?N.reverse():N});function _t(t,e,r){this.level=t,this.from=e,this.to=r}function vt(t,e){var r=t.order;return null==r&&(r=t.order=gt(t.text,e)),r}var yt=[],xt=function(t,e,r){if(t.addEventListener)t.addEventListener(e,r,!1);else if(t.attachEvent)t.attachEvent("on"+e,r);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||yt).concat(r)}};function Tt(t,e){return t._handlers&&t._handlers[e]||yt}function kt(t,e,r){if(t.removeEventListener)t.removeEventListener(e,r,!1);else if(t.detachEvent)t.detachEvent("on"+e,r);else{var i=t._handlers,n=i&&i[e];if(n){var o=H(n,r);-1<o&&(i[e]=n.slice(0,o).concat(n.slice(o+1)))}}}function bt(t,e){var r=Tt(t,e);if(r.length)for(var i=Array.prototype.slice.call(arguments,2),n=0;n<r.length;++n)r[n].apply(null,i)}function wt(t,e,r){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),bt(t,r||e.type,t,e),Nt(e)||e.codemirrorIgnore}function Et(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var r=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==H(r,e[i])&&r.push(e[i])}function Ct(t,e){return 0<Tt(t,e).length}function St(t){t.prototype.on=function(t,e){xt(this,t,e)},t.prototype.off=function(t,e){kt(this,t,e)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Lt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Nt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Ot(t){At(t),Lt(t)}function It(t){return t.target||t.srcElement}function Rt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),x&&t.ctrlKey&&1==e&&(e=3),e}var Mt,Dt,Pt=function(){if(T&&k<9)return!1;var t=N("div");return"draggable"in t||"dragDrop"in t}();function Bt(t){if(null==Mt){var e=N("span","");A(t,N("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Mt=e.offsetWidth<=1&&2<e.offsetHeight&&!(T&&k<8))}var r=Mt?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ut(t){if(null!=Dt)return Dt;var e=A(t,document.createTextNode("AخA")),r=E(e,0,1).getBoundingClientRect(),i=E(e,1,2).getBoundingClientRect();return S(t),r&&r.left!=r.right&&(Dt=i.right-r.right<3)}var Ft,Ht=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,r=[],i=t.length;e<=i;){var n=t.indexOf("\n",e);-1==n&&(n=t.length);var o=t.slice(e,"\r"==t.charAt(n-1)?n-1:n),s=o.indexOf("\r");-1!=s?(r.push(o.slice(0,s)),e+=s+1):(r.push(o),e=n+1)}return r}:function(t){return t.split(/\r\n?|\n/)},zt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Wt="oncopy"in(Ft=N("div"))||(Ft.setAttribute("oncopy","return;"),"function"==typeof Ft.oncopy),qt=null;var Gt={},jt={};function Vt(t){if("string"==typeof t&&jt.hasOwnProperty(t))t=jt[t];else if(t&&"string"==typeof t.name&&jt.hasOwnProperty(t.name)){var e=jt[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Vt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Vt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Yt(t,e){e=Vt(e);var r=Gt[e.name];if(!r)return Yt(t,"text/plain");var i=r(t,e);if(Kt.hasOwnProperty(e.name)){var n=Kt[e.name];for(var o in n)n.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=n[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}var Kt={};function $t(t,e){B(e,Kt.hasOwnProperty(t)?Kt[t]:Kt[t]={})}function Qt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var r={};for(var i in e){var n=e[i];n instanceof Array&&(n=n.concat([])),r[i]=n}return r}function Xt(t,e){for(var r;t.innerMode&&(r=t.innerMode(e))&&r.mode!=t;)e=r.state,t=r.mode;return r||{mode:t,state:e}}function Zt(t,e,r){return!t.startState||t.startState(e,r)}var Jt=function(t,e,r){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function te(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var r=t;!r.lines;)for(var i=0;;++i){var n=r.children[i],o=n.chunkSize();if(e<o){r=n;break}e-=o}return r.lines[e]}function ee(t,r,i){var n=[],o=r.line;return t.iter(r.line,i.line+1,function(t){var e=t.text;o==i.line&&(e=e.slice(0,i.ch)),o==r.line&&(e=e.slice(r.ch)),n.push(e),++o}),n}function re(t,e,r){var i=[];return t.iter(e,r,function(t){i.push(t.text)}),i}function ie(t,e){var r=e-t.height;if(r)for(var i=t;i;i=i.parent)i.height+=r}function ne(t){if(null==t.parent)return null;for(var e=t.parent,r=H(e.lines,t),i=e.parent;i;i=(e=i).parent)for(var n=0;i.children[n]!=e;++n)r+=i.children[n].chunkSize();return r+e.first}function oe(t,e){var r=t.first;t:do{for(var i=0;i<t.children.length;++i){var n=t.children[i],o=n.height;if(e<o){t=n;continue t}e-=o,r+=n.chunkSize()}return r}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(e<a)break;e-=a}return r+s}function se(t,e){return e>=t.first&&e<t.first+t.size}function ae(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function le(t,e,r){if(void 0===r&&(r=null),!(this instanceof le))return new le(t,e,r);this.line=t,this.ch=e,this.sticky=r}function he(t,e){return t.line-e.line||t.ch-e.ch}function ce(t,e){return t.sticky==e.sticky&&0==he(t,e)}function ue(t){return le(t.line,t.ch)}function fe(t,e){return he(t,e)<0?e:t}function pe(t,e){return he(t,e)<0?t:e}function de(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function me(t,e){if(e.line<t.first)return le(t.first,0);var r,i,n,o=t.first+t.size-1;return e.line>o?le(o,te(t,o).text.length):(i=te(t,(r=e).line).text.length,null==(n=r.ch)||i<n?le(r.line,i):n<0?le(r.line,0):r)}function ge(t,e){for(var r=[],i=0;i<e.length;i++)r[i]=me(t,e[i]);return r}Jt.prototype.eol=function(){return this.pos>=this.string.length},Jt.prototype.sol=function(){return this.pos==this.lineStart},Jt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Jt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Jt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Jt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Jt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Jt.prototype.skipToEnd=function(){this.pos=this.string.length},Jt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(-1<e)return this.pos=e,!0},Jt.prototype.backUp=function(t){this.pos-=t},Jt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.match=function(t,e,r){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&0<i.index?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}function n(t){return r?t.toLowerCase():t}if(n(this.string.substr(this.pos,t.length))==n(t))return!1!==e&&(this.pos+=t.length),!0},Jt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Jt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Jt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Jt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var _e=function(t,e){this.state=t,this.lookAhead=e},ve=function(t,e,r,i){this.state=e,this.doc=t,this.line=r,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function ye(e,r,i,t){var l=[e.state.modeGen],n={};Ae(e,r.text,e.doc.mode,i,function(t,e){return l.push(t,e)},n,t);for(var h=i.state,o=function(t){i.baseTokens=l;var o=e.state.overlays[t],s=1,a=0;i.state=!0,Ae(e,r.text,o.mode,i,function(t,e){for(var r=s;a<t;){var i=l[s];t<i&&l.splice(s,1,t,l[s+1],i),s+=2,a=Math.min(t,i)}if(e)if(o.opaque)l.splice(r,s-r,t,"overlay "+e),s=r+2;else for(;r<s;r+=2){var n=l[r+1];l[r+1]=(n?n+" ":"")+"overlay "+e}},n),i.state=h,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)o(s);return{styles:l,classes:n.bgClass||n.textClass?n:null}}function xe(t,e,r){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=Te(t,ne(e)),n=e.text.length>t.options.maxHighlightLength&&Qt(t.doc.mode,i.state),o=ye(t,e,i);n&&(i.state=n),e.stateAfter=i.save(!n),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),r===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Te(r,i,t){var e=r.doc,n=r.display;if(!e.mode.startState)return new ve(e,!0,i);var o=function(t,e,r){for(var i,n,o=t.doc,s=r?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;s<a;--a){if(a<=o.first)return o.first;var l=te(o,a-1),h=l.stateAfter;if(h&&(!r||a+(h instanceof _e?h.lookAhead:0)<=o.modeFrontier))return a;var c=U(l.text,null,t.options.tabSize);(null==n||c<i)&&(n=a-1,i=c)}return n}(r,i,t),s=o>e.first&&te(e,o-1).stateAfter,a=s?ve.fromSaved(e,s,o):new ve(e,Zt(e.mode),o);return e.iter(o,i,function(t){ke(r,t.text,a);var e=a.line;t.stateAfter=e==i-1||e%5==0||e>=n.viewFrom&&e<n.viewTo?a.save():null,a.nextLine()}),t&&(e.modeFrontier=a.line),a}function ke(t,e,r,i){var n=t.doc.mode,o=new Jt(e,t.options.tabSize,r);for(o.start=o.pos=i||0,""==e&&be(n,r.state);!o.eol();)we(n,o,r.state),o.start=o.pos}function be(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var r=Xt(t,e);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function we(t,e,r,i){for(var n=0;n<10;n++){i&&(i[0]=Xt(t,r).mode);var o=t.token(e,r);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ve.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ve.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ve.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},ve.fromSaved=function(t,e,r){return e instanceof _e?new ve(t,Qt(t.mode,e.state),r,e.lookAhead):new ve(t,Qt(t.mode,e),r)},ve.prototype.save=function(t){var e=!1!==t?Qt(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?new _e(e,this.maxLookAhead):e};var Ee=function(t,e,r){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=r};function Ce(t,e,r,i){var n,o,s=t.doc,a=s.mode,l=te(s,(e=me(s,e)).line),h=Te(t,e.line,r),c=new Jt(l.text,t.options.tabSize,h);for(i&&(o=[]);(i||c.pos<e.ch)&&!c.eol();)c.start=c.pos,n=we(a,c,h.state),i&&o.push(new Ee(c,n,Qt(s.mode,h.state)));return i?o:new Ee(c,n,h.state)}function Se(t,e){if(t)for(;;){var r=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;t=t.slice(0,r.index)+t.slice(r.index+r[0].length);var i=r[1]?"bgClass":"textClass";null==e[i]?e[i]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(e[i])||(e[i]+=" "+r[2])}return t}function Ae(t,e,r,i,n,o,s){var a=r.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,h=0,c=null,u=new Jt(e,t.options.tabSize,i),f=t.options.addModeClass&&[null];for(""==e&&Se(be(r,i.state),o);!u.eol();){if(l=u.pos>t.options.maxHighlightLength?(a=!1,s&&ke(t,e,i,u.pos),u.pos=e.length,null):Se(we(r,u,i.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||c!=l){for(;h<u.start;)n(h=Math.min(u.start,h+5e3),c);c=l}u.start=u.pos}for(;h<u.pos;){var d=Math.min(u.pos,h+5e3);n(d,c),h=d}}var Le=!1,Ne=!1;function Oe(t,e,r){this.marker=t,this.from=e,this.to=r}function Ie(t,e){if(t)for(var r=0;r<t.length;++r){var i=t[r];if(i.marker==e)return i}}function Re(t,e){for(var r,i=0;i<t.length;++i)t[i]!=e&&(r=r||[]).push(t[i]);return r}function Me(t,e){if(e.full)return null;var r=se(t,e.from.line)&&te(t,e.from.line).markedSpans,i=se(t,e.to.line)&&te(t,e.to.line).markedSpans;if(!r&&!i)return null;var n=e.from.ch,o=e.to.ch,s=0==he(e.from,e.to),a=function(t,e,r){var i;if(t)for(var n=0;n<t.length;++n){var o=t[n],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==s.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(i=i||[]).push(new Oe(s,o.from,a?null:o.to))}}return i}(r,n,s),l=function(t,e,r){var i;if(t)for(var n=0;n<t.length;++n){var o=t[n],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(i=i||[]).push(new Oe(s,a?null:o.from-e,null==o.to?null:o.to-e))}}return i}(i,o,s),h=1==e.text.length,c=$(e.text).length+(h?n:0);if(a)for(var u=0;u<a.length;++u){var f=a[u];if(null==f.to){var p=Ie(l,f.marker);p?h&&(f.to=null==p.to?null:p.to+c):f.to=n}}if(l)for(var d=0;d<l.length;++d){var m=l[d];if(null!=m.to&&(m.to+=c),null==m.from)Ie(a,m.marker)||(m.from=c,h&&(a=a||[]).push(m));else m.from+=c,h&&(a=a||[]).push(m)}a=a&&De(a),l&&l!=a&&(l=De(l));var g=[a];if(!h){var _,v=e.text.length-2;if(0<v&&a)for(var y=0;y<a.length;++y)null==a[y].to&&(_=_||[]).push(new Oe(a[y].marker,null,null));for(var x=0;x<v;++x)g.push(_);g.push(l)}return g}function De(t){for(var e=0;e<t.length;++e){var r=t[e];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Pe(t){var e=t.markedSpans;if(e){for(var r=0;r<e.length;++r)e[r].marker.detachLine(t);t.markedSpans=null}}function Be(t,e){if(e){for(var r=0;r<e.length;++r)e[r].marker.attachLine(t);t.markedSpans=e}}function Ue(t){return t.inclusiveLeft?-1:0}function Fe(t){return t.inclusiveRight?1:0}function He(t,e){var r=t.lines.length-e.lines.length;if(0!=r)return r;var i=t.find(),n=e.find(),o=he(i.from,n.from)||Ue(t)-Ue(e);if(o)return-o;var s=he(i.to,n.to)||Fe(t)-Fe(e);return s||e.id-t.id}function ze(t,e){var r,i=Ne&&t.markedSpans;if(i)for(var n=void 0,o=0;o<i.length;++o)(n=i[o]).marker.collapsed&&null==(e?n.from:n.to)&&(!r||He(r,n.marker)<0)&&(r=n.marker);return r}function We(t){return ze(t,!0)}function qe(t){return ze(t,!1)}function Ge(t,e){var r,i=Ne&&t.markedSpans;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!r||He(r,o.marker)<0)&&(r=o.marker)}return r}function je(t,e,r,i,n){var o=te(t,e),s=Ne&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var h=l.marker.find(0),c=he(h.from,r)||Ue(l.marker)-Ue(n),u=he(h.to,i)||Fe(l.marker)-Fe(n);if(!(0<=c&&u<=0||c<=0&&0<=u)&&(c<=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?0<=he(h.to,r):0<he(h.to,r))||0<=c&&(l.marker.inclusiveRight&&n.inclusiveLeft?he(h.from,i)<=0:he(h.from,i)<0)))return 1}}}function Ve(t){for(var e;e=We(t);)t=e.find(-1,!0).line;return t}function Ye(t,e){var r=te(t,e),i=Ve(r);return r==i?e:ne(i)}function Ke(t,e){if(e>t.lastLine())return e;var r,i=te(t,e);if(!$e(t,i))return e;for(;r=qe(i);)i=r.find(1,!0).line;return ne(i)+1}function $e(t,e){var r=Ne&&e.markedSpans;if(r)for(var i=void 0,n=0;n<r.length;++n)if((i=r[n]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&Qe(t,e,i))return!0}}function Qe(t,e,r){if(null==r.to){var i=r.marker.find(1,!0);return Qe(t,i.line,Ie(i.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==e.text.length)return!0;for(var n=void 0,o=0;o<e.markedSpans.length;++o)if((n=e.markedSpans[o]).marker.collapsed&&!n.marker.widgetNode&&n.from==r.to&&(null==n.to||n.to!=r.from)&&(n.marker.inclusiveLeft||r.marker.inclusiveRight)&&Qe(t,e,n))return!0}function Xe(t){for(var e=0,r=(t=Ve(t)).parent,i=0;i<r.lines.length;++i){var n=r.lines[i];if(n==t)break;e+=n.height}for(var o=r.parent;o;o=(r=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==r)break;e+=a.height}return e}function Ze(t){if(0==t.height)return 0;for(var e,r=t.text.length,i=t;e=We(i);){var n=e.find(0,!0);i=n.from.line,r+=n.from.ch-n.to.ch}for(i=t;e=qe(i);){var o=e.find(0,!0);r-=i.text.length-o.from.ch,r+=(i=o.to.line).text.length-o.to.ch}return r}function Je(t){var r=t.display,e=t.doc;r.maxLine=te(e,e.first),r.maxLineLength=Ze(r.maxLine),r.maxLineChanged=!0,e.iter(function(t){var e=Ze(t);e>r.maxLineLength&&(r.maxLineLength=e,r.maxLine=t)})}var tr=function(t,e,r){this.text=t,Be(this,e),this.height=r?r(this):1};tr.prototype.lineNo=function(){return ne(this)},St(tr);var er={},rr={};function ir(t,e){if(!t||/^\s*$/.test(t))return null;var r=e.addModeClass?rr:er;return r[t]||(r[t]=t.replace(/\S+/g,"cm-$&"))}function nr(t,e){var r=L("span",null,null,y?"padding-right: .1px":null),i={pre:L("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var n=0;n<=(e.rest?e.rest.length:0);n++){var o=n?e.rest[n-1]:e.line,s=void 0;i.pos=0,i.addToken=sr,Ut(t.display.measure)&&(s=vt(o,t.doc.direction))&&(i.addToken=ar(i.addToken,s)),i.map=[],hr(o,i,xe(t,o,e!=t.display.externalMeasured&&ne(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=M(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=M(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Bt(t.display.measure))),0==n?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(y){var a=i.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=M(i.pre.className,i.textClass||"")),i}function or(t){var e=N("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function sr(t,e,r,i,n,o,s){if(e){var a,l=t.splitSpaces?function(t,e){if(1<t.length&&!/ /.test(t))return t;for(var r=e,i="",n=0;n<t.length;n++){var o=t.charAt(n);" "!=o||!r||n!=t.length-1&&32!=t.charCodeAt(n+1)||(o=" "),i+=o,r=" "==o}return i}(e,t.trailingSpace):e,h=t.cm.state.specialChars,c=!1;if(h.test(e)){a=document.createDocumentFragment();for(var u=0;;){h.lastIndex=u;var f=h.exec(e),p=f?f.index-u:e.length-u;if(p){var d=document.createTextNode(l.slice(u,u+p));T&&k<9?a.appendChild(N("span",[d])):a.appendChild(d),t.map.push(t.pos,t.pos+p,d),t.col+=p,t.pos+=p}if(!f)break;u+=1+p;var m=void 0;if("\t"==f[0]){var g=t.cm.options.tabSize,_=g-t.col%g;(m=a.appendChild(N("span",K(_),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=_}else"\r"==f[0]||"\n"==f[0]?(m=a.appendChild(N("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]):((m=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),T&&k<9?a.appendChild(N("span",[m])):a.appendChild(m)),t.col+=1;t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,a=document.createTextNode(l),t.map.push(t.pos,t.pos+e.length,a),T&&k<9&&(c=!0),t.pos+=e.length;if(t.trailingSpace=32==l.charCodeAt(e.length-1),r||i||n||c||o){var v=r||"";i&&(v+=i),n&&(v+=n);var y=N("span",[a],v,o);if(s)for(var x in s)s.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&y.setAttribute(x,s[x]);return t.content.appendChild(y)}t.content.appendChild(a)}}function ar(u,f){return function(t,e,r,i,n,o,s){r=r?r+" cm-force-border":"cm-force-border";for(var a=t.pos,l=a+e.length;;){for(var h=void 0,c=0;c<f.length&&!((h=f[c]).to>a&&h.from<=a);c++);if(h.to>=l)return u(t,e,r,i,n,o,s);u(t,e.slice(0,h.to-a),r,i,null,o,s),i=null,e=e.slice(h.to-a),a=h.to}}}function lr(t,e,r,i){var n=!i&&r.widgetNode;n&&t.map.push(t.pos,t.pos+e,n),!i&&t.cm.display.input.needsContentAttribute&&(n=n||t.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",r.id),n&&(t.cm.display.input.setUneditable(n),t.content.appendChild(n)),t.pos+=e,t.trailingSpace=!1}function hr(t,e,r){var i=t.markedSpans,n=t.text,o=0;if(i)for(var s,a,l,h,c,u,f,p=n.length,d=0,m=1,g="",_=0;;){if(_==d){l=h=c=a="",u=f=null,_=1/0;for(var v=[],y=void 0,x=0;x<i.length;++x){var T=i[x],k=T.marker;if("bookmark"==k.type&&T.from==d&&k.widgetNode)v.push(k);else if(T.from<=d&&(null==T.to||T.to>d||k.collapsed&&T.to==d&&T.from==d)){if(null!=T.to&&T.to!=d&&_>T.to&&(_=T.to,h=""),k.className&&(l+=" "+k.className),k.css&&(a=(a?a+";":"")+k.css),k.startStyle&&T.from==d&&(c+=" "+k.startStyle),k.endStyle&&T.to==_&&(y=y||[]).push(k.endStyle,T.to),k.title&&((f=f||{}).title=k.title),k.attributes)for(var b in k.attributes)(f=f||{})[b]=k.attributes[b];k.collapsed&&(!u||He(u.marker,k)<0)&&(u=T)}else T.from>d&&_>T.from&&(_=T.from)}if(y)for(var w=0;w<y.length;w+=2)y[w+1]==_&&(h+=" "+y[w]);if(!u||u.from==d)for(var E=0;E<v.length;++E)lr(e,0,v[E]);if(u&&(u.from||0)==d){if(lr(e,(null==u.to?p+1:u.to)-d,u.marker,null==u.from),null==u.to)return;u.to==d&&(u=!1)}}if(p<=d)break;for(var C=Math.min(p,_);;){if(g){var S=d+g.length;if(!u){var A=C<S?g.slice(0,C-d):g;e.addToken(e,A,s?s+l:l,c,d+A.length==_?h:"",a,f)}if(C<=S){g=g.slice(C-d),d=C;break}d=S,c=""}g=n.slice(o,o=r[m++]),s=ir(r[m++],e.cm.options)}}else for(var L=1;L<r.length;L+=2)e.addToken(e,n.slice(o,o=r[L]),ir(r[L+1],e.cm.options))}function cr(t,e,r){this.line=e,this.rest=function(t){for(var e,r;e=qe(t);)t=e.find(1,!0).line,(r=r||[]).push(t);return r}(e),this.size=this.rest?ne($(this.rest))-r+1:1,this.node=this.text=null,this.hidden=$e(t,e)}function ur(t,e,r){for(var i,n=[],o=e;o<r;o=i){var s=new cr(t.doc,te(t.doc,o),o);i=o+s.size,n.push(s)}return n}var fr=null;function pr(t,e){var r=t.ownsGroup;if(r)try{!function(t){var e=t.delayedCallbacks,r=0;do{for(;r<e.length;r++)e[r].call(null);for(var i=0;i<t.ops.length;i++){var n=t.ops[i];if(n.cursorActivityHandlers)for(;n.cursorActivityCalled<n.cursorActivityHandlers.length;)n.cursorActivityHandlers[n.cursorActivityCalled++].call(null,n.cm)}}while(r<e.length)}(r)}finally{fr=null,e(r)}}var dr=null;function mr(t,e){var r=Tt(t,e);if(r.length){var i,n=Array.prototype.slice.call(arguments,2);fr?i=fr.delayedCallbacks:dr?i=dr:(i=dr=[],setTimeout(gr,0));for(var o=function(t){i.push(function(){return r[t].apply(null,n)})},s=0;s<r.length;++s)o(s)}}function gr(){var t=dr;dr=null;for(var e=0;e<t.length;++e)t[e]()}function _r(t,e,r,i){for(var n=0;n<e.changes.length;n++){var o=e.changes[n];"text"==o?xr(t,e):"gutter"==o?kr(t,e,r,i):"class"==o?Tr(t,e):"widget"==o&&br(t,e,i)}e.changes=null}function vr(t){return t.node==t.text&&(t.node=N("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),T&&k<8&&(t.node.style.zIndex=2)),t.node}function yr(t,e){var r=t.display.externalMeasured;return r&&r.line==e.line?(t.display.externalMeasured=null,e.measure=r.measure,r.built):nr(t,e)}function xr(t,e){var r=e.text.className,i=yr(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,Tr(t,e)):r&&(e.text.className=r)}function Tr(t,e){!function(t,e){var r=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),e.background)r?e.background.className=r:(e.background.parentNode.removeChild(e.background),e.background=null);else if(r){var i=vr(e);e.background=i.insertBefore(N("div",null,r),i.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?vr(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var r=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=r||""}function kr(t,e,r,i){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var n=vr(e);e.gutterBackground=N("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),n.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=vr(e),a=e.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(N("div",ae(t.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var h=t.display.gutterSpecs[l].className,c=o.hasOwnProperty(h)&&o[h];c&&a.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[h]+"px; width: "+i.gutterWidth[h]+"px"))}}}function br(t,e,r){e.alignable&&(e.alignable=null);for(var i=w("CodeMirror-linewidget"),n=e.node.firstChild,o=void 0;n;n=o)o=n.nextSibling,i.test(n.className)&&e.node.removeChild(n);wr(t,e,r)}function wr(t,e,r){if(Er(t,e.line,e,r,!0),e.rest)for(var i=0;i<e.rest.length;i++)Er(t,e.rest[i],e,r,!1)}function Er(t,e,r,i,n){if(e.widgets)for(var o=vr(r),s=0,a=e.widgets;s<a.length;++s){var l=a[s],h=N("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||h.setAttribute("cm-ignore-events","true"),Cr(l,h,r,i),t.display.input.setUneditable(h),n&&l.above?o.insertBefore(h,r.gutter||r.text):o.appendChild(h),mr(l,"redraw")}}function Cr(t,e,r,i){if(t.noHScroll){(r.alignable||(r.alignable=[])).push(e);var n=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(n-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=n+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function Sr(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!O(document.body,t.node)){var r="position: relative;";t.coverGutter&&(r+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(r+="width: "+e.display.wrapper.clientWidth+"px;"),A(e.display.measure,N("div",[t.node],null,r))}return t.height=t.node.parentNode.offsetHeight}function Ar(t,e){for(var r=It(e);r!=t.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==t.sizer&&r!=t.mover)return 1}function Lr(t){return t.lineSpace.offsetTop}function Nr(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Or(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=A(t.measure,N("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,i={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(t.cachedPaddingH=i),i}function Ir(t){return z-t.display.nativeBarWidth}function Rr(t){return t.display.scroller.clientWidth-Ir(t)-t.display.barWidth}function Mr(t){return t.display.scroller.clientHeight-Ir(t)-t.display.barHeight}function Dr(t,e,r){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var n=0;n<t.rest.length;n++)if(ne(t.rest[n])>r)return{map:t.measure.maps[n],cache:t.measure.caches[n],before:!0}}function Pr(t,e,r,i){return Fr(t,Ur(t,e),r,i)}function Br(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[di(t,e)];var r=t.display.externalMeasured;return r&&e>=r.lineN&&e<r.lineN+r.size?r:void 0}function Ur(t,e){var r=ne(e),i=Br(t,r);i&&!i.text?i=null:i&&i.changes&&(_r(t,i,r,hi(t)),t.curOp.forceUpdate=!0);var n=Dr(i=i||function(t,e){var r=ne(e=Ve(e)),i=t.display.externalMeasured=new cr(t.doc,e,r);i.lineN=r;var n=i.built=nr(t,i);return i.text=n.pre,A(t.display.lineMeasure,n.pre),i}(t,e),e,r);return{line:e,view:i,rect:null,map:n.map,cache:n.cache,before:n.before,hasHeights:!1}}function Fr(t,e,r,i,n){e.before&&(r=-1);var o,s=r+(i||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,r){var i=t.options.lineWrapping,n=i&&Rr(t);if(!e.measure.heights||i&&e.measure.width!=n){var o=e.measure.heights=[];if(i){e.measure.width=n;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],h=s[a+1];2<Math.abs(l.bottom-h.bottom)&&o.push((l.bottom+h.top)/2-r.top)}}o.push(r.bottom-r.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,r,i){var n,o=Wr(e.map,r,i),s=o.node,a=o.start,l=o.end,h=o.collapse;if(3==s.nodeType){for(var c=0;c<4;c++){for(;a&&nt(e.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+l<o.coverEnd&&nt(e.line.text.charAt(o.coverStart+l));)++l;if((n=T&&k<9&&0==a&&l==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():qr(E(s,a,l).getClientRects(),i)).left||n.right||0==a)break;l=a,--a,h="right"}T&&k<11&&(n=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=qt)return qt;var e=A(t,N("span","x")),r=e.getBoundingClientRect(),i=E(e,0,1).getBoundingClientRect();return qt=1<Math.abs(r.left-i.left)}(t))return e;var r=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*r,right:e.right*r,top:e.top*i,bottom:e.bottom*i}}(t.display.measure,n))}else{var u;0<a&&(h=i="right"),n=t.options.lineWrapping&&1<(u=s.getClientRects()).length?u["right"==i?u.length-1:0]:s.getBoundingClientRect()}if(T&&k<9&&!a&&(!n||!n.left&&!n.right)){var f=s.parentNode.getClientRects()[0];n=f?{left:f.left,right:f.left+li(t.display),top:f.top,bottom:f.bottom}:zr}for(var p=n.top-e.rect.top,d=n.bottom-e.rect.top,m=(p+d)/2,g=e.view.measure.heights,_=0;_<g.length-1&&!(m<g[_]);_++);var v=_?g[_-1]:0,y=g[_],x={left:("right"==h?n.right:n.left)-e.rect.left,right:("left"==h?n.left:n.right)-e.rect.left,top:v,bottom:y};n.left||n.right||(x.bogus=!0);t.options.singleCursorHeightPerLine||(x.rtop=p,x.rbottom=d);return x}(t,e,r,i)).bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}}var Hr,zr={left:0,right:0,top:0,bottom:0};function Wr(t,e,r){for(var i,n,o,s,a,l,h=0;h<t.length;h+=3)if(a=t[h],l=t[h+1],e<a?(n=0,o=1,s="left"):e<l?o=(n=e-a)+1:(h==t.length-3||e==l&&t[h+3]>e)&&(n=(o=l-a)-1,l<=e&&(s="right")),null!=n){if(i=t[h+2],a==l&&r==(i.insertLeft?"left":"right")&&(s=r),"left"==r&&0==n)for(;h&&t[h-2]==t[h-3]&&t[h-1].insertLeft;)i=t[2+(h-=3)],s="left";if("right"==r&&n==l-a)for(;h<t.length-3&&t[h+3]==t[h+4]&&!t[h+5].insertLeft;)i=t[(h+=3)+2],s="right";break}return{node:i,start:n,end:o,collapse:s,coverStart:a,coverEnd:l}}function qr(t,e){var r=zr;if("left"==e)for(var i=0;i<t.length&&(r=t[i]).left==r.right;i++);else for(var n=t.length-1;0<=n&&(r=t[n]).left==r.right;n--);return r}function Gr(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function jr(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Gr(t.display.view[e])}function Vr(t){jr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Yr(){return s&&u?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Kr(){return s&&u?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function $r(t){var e=0;if(t.widgets)for(var r=0;r<t.widgets.length;++r)t.widgets[r].above&&(e+=Sr(t.widgets[r]));return e}function Qr(t,e,r,i,n){if(!n){var o=$r(e);r.top+=o,r.bottom+=o}if("line"==i)return r;i=i||"local";var s=Xe(e);if("local"==i?s+=Lr(t.display):s-=t.display.viewOffset,"page"==i||"window"==i){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:Kr());var l=a.left+("window"==i?0:Yr());r.left+=l,r.right+=l}return r.top+=s,r.bottom+=s,r}function Xr(t,e,r){if("div"==r)return e;var i=e.left,n=e.top;if("page"==r)i-=Yr(),n-=Kr();else if("local"==r||!r){var o=t.display.sizer.getBoundingClientRect();i+=o.left,n+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:n-s.top}}function Zr(t,e,r,i,n){return Qr(t,i=i||te(t.doc,e.line),Pr(t,i,e.ch,n),r)}function Jr(i,t,n,o,s,a){function l(t,e){var r=Fr(i,s,t,e?"right":"left",a);return e?r.left=r.right:r.right=r.left,Qr(i,o,r,n)}o=o||te(i.doc,t.line),s=s||Ur(i,o);var h=vt(o,i.doc.direction),e=t.ch,r=t.sticky;if(e>=o.text.length?(e=o.text.length,r="before"):e<=0&&(e=0,r="after"),!h)return l("before"==r?e-1:e,"before"==r);function c(t,e,r){return l(r?t-1:t,1==h[e].level!=r)}var u=lt(h,e,r),f=at,p=c(e,u,"before"==r);return null!=f&&(p.other=c(e,f,"before"!=r)),p}function ti(t,e){var r=0;e=me(t.doc,e),t.options.lineWrapping||(r=li(t.display)*e.ch);var i=te(t.doc,e.line),n=Xe(i)+Lr(t.display);return{left:r,right:r,top:n,bottom:n+i.height}}function ei(t,e,r,i,n){var o=le(t,e,r);return o.xRel=n,i&&(o.outside=i),o}function ri(t,e,r){var i=t.doc;if((r+=t.display.viewOffset)<0)return ei(i.first,0,null,-1,-1);var n=oe(i,r),o=i.first+i.size-1;if(o<n)return ei(i.first+i.size-1,te(i,o).text.length,null,1,1);e<0&&(e=0);for(var s=te(i,n);;){var a=si(t,s,n,e,r),l=Ge(s,a.ch+(0<a.xRel||0<a.outside?1:0));if(!l)return a;var h=l.find(1);if(h.line==n)return h;s=te(i,n=h.line)}}function ii(e,t,r,i){i-=$r(t);var n=t.text.length,o=st(function(t){return Fr(e,r,t-1).bottom<=i},n,0);return{begin:o,end:n=st(function(t){return Fr(e,r,t).top>i},o,n)}}function ni(t,e,r,i){return ii(t,e,r=r||Ur(t,e),Qr(t,e,Fr(t,r,i),"line").top)}function oi(t,e,r,i){return!(t.bottom<=r)&&(t.top>r||(i?t.left:t.right)>e)}function si(r,t,e,i,n){n-=Xe(t);var o=Ur(r,t),s=$r(t),a=0,l=t.text.length,h=!0,c=vt(t,r.doc.direction);if(c){var u=(r.options.lineWrapping?function(t,e,r,i,n,o,s){var a=ii(t,e,i,s),l=a.begin,h=a.end;/\s/.test(e.text.charAt(h-1))&&h--;for(var c=null,u=null,f=0;f<n.length;f++){var p=n[f];if(!(p.from>=h||p.to<=l)){var d=1!=p.level,m=Fr(t,i,d?Math.min(h,p.to)-1:Math.max(l,p.from)).right,g=m<o?o-m+1e9:m-o;(!c||g<u)&&(c=p,u=g)}}c=c||n[n.length-1];c.from<l&&(c={from:l,to:c.to,level:c.level});c.to>h&&(c={from:c.from,to:h,level:c.level});return c}:function(i,n,o,s,a,l,h){var t=st(function(t){var e=a[t],r=1!=e.level;return oi(Jr(i,le(o,r?e.to:e.from,r?"before":"after"),"line",n,s),l,h,!0)},0,a.length-1),e=a[t];if(0<t){var r=1!=e.level,c=Jr(i,le(o,r?e.from:e.to,r?"after":"before"),"line",n,s);oi(c,l,h,!0)&&c.top>h&&(e=a[t-1])}return e})(r,t,e,o,c,i,n);a=(h=1!=u.level)?u.from:u.to-1,l=h?u.to:u.from-1}var f,p,d=null,m=null,g=st(function(t){var e=Fr(r,o,t);return e.top+=s,e.bottom+=s,oi(e,i,n,!1)&&(e.top<=n&&e.left<=i&&(d=t,m=e),1)},a,l),_=!1;if(m){var v=i-m.left<m.right-i,y=v==h;g=d+(y?0:1),p=y?"after":"before",f=v?m.left:m.right}else{h||g!=l&&g!=a||g++,p=0==g?"after":g==t.text.length?"before":Fr(r,o,g-(h?1:0)).bottom+s<=n==h?"after":"before";var x=Jr(r,le(e,g,p),"line",t,o);f=x.left,_=n<x.top?-1:n>=x.bottom?1:0}return ei(e,g=ot(t.text,g,1),p,_,i-f)}function ai(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Hr){Hr=N("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Hr.appendChild(document.createTextNode("x")),Hr.appendChild(N("br"));Hr.appendChild(document.createTextNode("x"))}A(t.measure,Hr);var r=Hr.offsetHeight/50;return 3<r&&(t.cachedTextHeight=r),S(t.measure),r||1}function li(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=N("span","xxxxxxxxxx"),r=N("pre",[e],"CodeMirror-line-like");A(t.measure,r);var i=e.getBoundingClientRect(),n=(i.right-i.left)/10;return 2<n&&(t.cachedCharWidth=n),n||10}function hi(t){for(var e=t.display,r={},i={},n=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;r[a]=o.offsetLeft+o.clientLeft+n,i[a]=o.clientWidth}return{fixedPos:ci(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:r,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function ci(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ui(i){var n=ai(i.display),o=i.options.lineWrapping,s=o&&Math.max(5,i.display.scroller.clientWidth/li(i.display)-3);return function(t){if($e(i.doc,t))return 0;var e=0;if(t.widgets)for(var r=0;r<t.widgets.length;r++)t.widgets[r].height&&(e+=t.widgets[r].height);return o?e+(Math.ceil(t.text.length/s)||1)*n:e+n}}function fi(t){var e=t.doc,r=ui(t);e.iter(function(t){var e=r(t);e!=t.height&&ie(t,e)})}function pi(t,e,r,i){var n=t.display;if(!r&&"true"==It(e).getAttribute("cm-not-content"))return null;var o,s,a=n.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,h=ri(t,o,s);if(i&&0<h.xRel&&(l=te(t.doc,h.line).text).length==h.ch){var c=U(l,l.length,t.options.tabSize)-l.length;h=le(h.line,Math.max(0,Math.round((o-Or(t.display).left)/li(t.display))-c))}return h}function di(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var r=t.display.view,i=0;i<r.length;i++)if((e-=r[i].size)<0)return i}function mi(t,e,r,i){null==e&&(e=t.doc.first),null==r&&(r=t.doc.first+t.doc.size),i=i||0;var n=t.display;if(i&&r<n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>e)&&(n.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=n.viewTo)Ne&&Ye(t.doc,e)<n.viewTo&&_i(t);else if(r<=n.viewFrom)Ne&&Ke(t.doc,r+i)>n.viewFrom?_i(t):(n.viewFrom+=i,n.viewTo+=i);else if(e<=n.viewFrom&&r>=n.viewTo)_i(t);else if(e<=n.viewFrom){var o=vi(t,r,r+i,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=i):_i(t)}else if(r>=n.viewTo){var s=vi(t,e,e,-1);s?(n.view=n.view.slice(0,s.index),n.viewTo=s.lineN):_i(t)}else{var a=vi(t,e,e,-1),l=vi(t,r,r+i,1);a&&l?(n.view=n.view.slice(0,a.index).concat(ur(t,a.lineN,l.lineN)).concat(n.view.slice(l.index)),n.viewTo+=i):_i(t)}var h=n.externalMeasured;h&&(r<h.lineN?h.lineN+=i:e<h.lineN+h.size&&(n.externalMeasured=null))}function gi(t,e,r){t.curOp.viewChanged=!0;var i=t.display,n=t.display.externalMeasured;if(n&&e>=n.lineN&&e<n.lineN+n.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[di(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==H(s,r)&&s.push(r)}}}function _i(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function vi(t,e,r,i){var n,o=di(t,e),s=t.display.view;if(!Ne||r==t.doc.first+t.doc.size)return{index:o,lineN:r};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(0<i){if(o==s.length-1)return null;n=a+s[o].size-e,o++}else n=a-e;e+=n,r+=n}for(;Ye(t.doc,r)!=r;){if(o==(i<0?0:s.length-1))return null;r+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:r}}function yi(t){for(var e=t.display.view,r=0,i=0;i<e.length;i++){var n=e[i];n.hidden||n.node&&!n.changes||++r}return r}function xi(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ti(t,e){void 0===e&&(e=!0);for(var r=t.doc,i={},n=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=0;s<r.sel.ranges.length;s++)if(e||s!=r.sel.primIndex){var a=r.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&ki(t,a.head,n),l||wi(t,a,o)}}return i}function ki(t,e,r){var i=Jr(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),n=r.appendChild(N("div"," ","CodeMirror-cursor"));if(n.style.left=i.left+"px",n.style.top=i.top+"px",n.style.height=Math.max(0,i.bottom-i.top)*t.options.cursorHeight+"px",i.other){var o=r.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=i.other.left+"px",o.style.top=i.other.top+"px",o.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function bi(t,e){return t.top-e.top||t.left-e.left}function wi(s,t,e){var r=s.display,i=s.doc,n=document.createDocumentFragment(),o=Or(s.display),C=o.left,S=Math.max(r.sizerWidth,Rr(s)-r.sizer.offsetLeft)-o.right,A="ltr"==i.direction;function L(t,e,r,i){e<0&&(e=0),e=Math.round(e),i=Math.round(i),n.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==r?S-t:r)+"px;\n height: "+(i-e)+"px"))}function a(r,v,y){var x,T,o=te(i,r),k=o.text.length;function b(t,e){return Zr(s,le(r,t),"div",o,e)}function w(t,e,r){var i=ni(s,o,null,t),n="ltr"==e==("after"==r)?"left":"right";return b("after"==r?i.begin:i.end-(/\s/.test(o.text.charAt(i.end-1))?2:1),n)[n]}var E=vt(o,i.direction);return function(t,e,r,i){if(!t)return i(e,r,"ltr",0);for(var n=!1,o=0;o<t.length;++o){var s=t[o];(s.from<r&&s.to>e||e==r&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,r),1==s.level?"rtl":"ltr",o),n=!0)}n||i(e,r,"ltr")}(E,v||0,null==y?k:y,function(t,e,r,i){var n="ltr"==r,o=b(t,n?"left":"right"),s=b(e-1,n?"right":"left"),a=null==v&&0==t,l=null==y&&e==k,h=0==i,c=!E||i==E.length-1;if(s.top-o.top<=3){var u=(A?l:a)&&c,f=(A?a:l)&&h?C:(n?o:s).left,p=u?S:(n?s:o).right;L(f,o.top,p-f,o.bottom)}else{var d,m,g,_;_=n?(d=A&&a&&h?C:o.left,m=A?S:w(t,r,"before"),g=A?C:w(e,r,"after"),A&&l&&c?S:s.right):(d=A?w(t,r,"before"):C,m=!A&&a&&h?S:o.right,g=!A&&l&&c?C:s.left,A?w(e,r,"after"):S),L(d,o.top,m-d,o.bottom),o.bottom<s.top&&L(C,o.bottom,null,s.top),L(g,s.top,_-g,s.bottom)}(!x||bi(o,x)<0)&&(x=o),bi(s,x)<0&&(x=s),(!T||bi(o,T)<0)&&(T=o),bi(s,T)<0&&(T=s)}),{start:x,end:T}}var l=t.from(),h=t.to();if(l.line==h.line)a(l.line,l.ch,h.ch);else{var c=te(i,l.line),u=te(i,h.line),f=Ve(c)==Ve(u),p=a(l.line,l.ch,f?c.text.length+1:null).end,d=a(h.line,f?0:null,h.ch).start;f&&(p.top<d.top-2?(L(p.right,p.top,null,p.bottom),L(C,d.top,d.left,d.bottom)):L(p.right,p.top,d.left-p.right,p.bottom)),p.bottom<d.top&&L(C,p.bottom,null,d.top)}e.appendChild(n)}function Ei(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var r=!0;e.cursorDiv.style.visibility="",0<t.options.cursorBlinkRate?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(r=!r)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Ci(t){t.state.focused||(t.display.input.focus(),Ai(t))}function Si(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Li(t))},100)}function Ai(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(bt(t,"focus",t,e),t.state.focused=!0,R(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),y&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Ei(t))}function Li(t,e){t.state.delayingBlurEvent||(t.state.focused&&(bt(t,"blur",t,e),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Ni(t){for(var e=t.display,r=e.lineDiv.offsetTop,i=0;i<e.view.length;i++){var n=e.view[i],o=t.options.lineWrapping,s=void 0,a=0;if(!n.hidden){if(T&&k<8){var l=n.node.offsetTop+n.node.offsetHeight;s=l-r,r=l}else{var h=n.node.getBoundingClientRect();s=h.bottom-h.top,!o&&n.text.firstChild&&(a=n.text.firstChild.getBoundingClientRect().right-h.left-1)}var c=n.line.height-s;if((.005<c||c<-.005)&&(ie(n.line,s),Oi(n.line),n.rest))for(var u=0;u<n.rest.length;u++)Oi(n.rest[u]);if(a>t.display.sizerWidth){var f=Math.ceil(a/li(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=n.line,t.display.maxLineChanged=!0)}}}}function Oi(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var r=t.widgets[e],i=r.node.parentNode;i&&(r.height=i.offsetHeight)}}function Ii(t,e,r){var i=r&&null!=r.top?Math.max(0,r.top):t.scroller.scrollTop;i=Math.floor(i-Lr(t));var n=r&&null!=r.bottom?r.bottom:i+t.wrapper.clientHeight,o=oe(e,i),s=oe(e,n);if(r&&r.ensure){var a=r.ensure.from.line,l=r.ensure.to.line;a<o?s=oe(e,Xe(te(e,o=a))+t.wrapper.clientHeight):Math.min(l,e.lastLine())>=s&&(o=oe(e,Xe(te(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Ri(t,e){var r=t.display,i=ai(t.display);e.top<0&&(e.top=0);var n=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:r.scroller.scrollTop,o=Mr(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+Nr(r),l=e.top<i,h=e.bottom>a-i;if(e.top<n)s.scrollTop=l?0:e.top;else if(e.bottom>n+o){var c=Math.min(e.top,(h?a:e.bottom)-o);c!=n&&(s.scrollTop=c)}var u=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:r.scroller.scrollLeft,f=Rr(t)-(t.options.fixedGutter?r.gutters.offsetWidth:0),p=e.right-e.left>f;return p&&(e.right=e.left+f),e.left<10?s.scrollLeft=0:e.left<u?s.scrollLeft=Math.max(0,e.left-(p?0:10)):e.right>f+u-3&&(s.scrollLeft=e.right+(p?0:10)-f),s}function Mi(t,e){null!=e&&(Bi(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Di(t){Bi(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Pi(t,e,r){null==e&&null==r||Bi(t),null!=e&&(t.curOp.scrollLeft=e),null!=r&&(t.curOp.scrollTop=r)}function Bi(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Ui(t,ti(t,e.from),ti(t,e.to),e.margin))}function Ui(t,e,r,i){var n=Ri(t,{left:Math.min(e.left,r.left),top:Math.min(e.top,r.top)-i,right:Math.max(e.right,r.right),bottom:Math.max(e.bottom,r.bottom)+i});Pi(t,n.scrollLeft,n.scrollTop)}function Fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(m||fn(t,{top:e}),Hi(t,e,!0),m&&fn(t),an(t,100))}function Hi(t,e,r){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),t.display.scroller.scrollTop==e&&!r||(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function zi(t,e,r,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(r?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,mn(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Wi(t){var e=t.display,r=e.gutters.offsetWidth,i=Math.round(t.doc.height+Nr(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?r:0,docHeight:i,scrollHeight:i+Ir(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:r}}function qi(t,e,r){this.cm=r;var i=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=n.tabIndex=-1,t(i),t(n),xt(i,"scroll",function(){i.clientHeight&&e(i.scrollTop,"vertical")}),xt(n,"scroll",function(){n.clientWidth&&e(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}qi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,r=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var n=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+n)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(r?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0<t.clientHeight&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:e?i:0}},qi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qi.prototype.zeroWidthHack=function(){var t=x&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},qi.prototype.enableZeroWidthBar=function(r,i,n){r.style.pointerEvents="auto",i.set(1e3,function t(){var e=r.getBoundingClientRect();("vert"==n?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1))!=r?r.style.pointerEvents="none":i.set(1e3,t)})},qi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};function Gi(){}function ji(t,e){e=e||Wi(t);var r=t.display.barWidth,i=t.display.barHeight;Vi(t,e);for(var n=0;n<4&&r!=t.display.barWidth||i!=t.display.barHeight;n++)r!=t.display.barWidth&&t.options.lineWrapping&&Ni(t),Vi(t,Wi(t)),r=t.display.barWidth,i=t.display.barHeight}function Vi(t,e){var r=t.display,i=r.scrollbars.update(e);r.sizer.style.paddingRight=(r.barWidth=i.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=i.bottom)+"px",r.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=i.bottom+"px",r.scrollbarFiller.style.width=i.right+"px"):r.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=i.bottom+"px",r.gutterFiller.style.width=e.gutterWidth+"px"):r.gutterFiller.style.display=""}Gi.prototype.update=function(){return{bottom:0,right:0}},Gi.prototype.setScrollLeft=function(){},Gi.prototype.setScrollTop=function(){},Gi.prototype.clear=function(){};var Yi={native:qi,null:Gi};function Ki(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&C(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Yi[r.options.scrollbarStyle](function(t){r.display.wrapper.insertBefore(t,r.display.scrollbarFiller),xt(t,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,e){("horizontal"==e?zi:Fi)(r,t)},r),r.display.scrollbars.addClass&&R(r.display.wrapper,r.display.scrollbars.addClass)}var $i=0;function Qi(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$i},e=t.curOp,fr?fr.ops.push(e):e.ownsGroup=fr={ops:[e],delayedCallbacks:[]}}function Xi(t){var e=t.curOp;e&&pr(e,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,r=0;r<e.length;r++)Zi(e[r]);for(var i=0;i<e.length;i++)(n=e[i]).updatedDisplay=n.mustUpdate&&cn(n.cm,n.update);var n;for(var o=0;o<e.length;o++)Ji(e[o]);for(var s=0;s<e.length;s++)tn(e[s]);for(var a=0;a<e.length;a++)en(e[a])}(t)})}function Zi(t){var e,r,i=t.cm,n=i.display;!(r=(e=i).display).scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Ir(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Ir(e)+"px",r.scrollbarsClipped=!0),t.updateMaxLine&&Je(i),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new hn(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ji(t){var e=t.cm,r=e.display;t.updatedDisplay&&Ni(e),t.barMeasure=Wi(e),r.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Pr(e,r.maxLine,r.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+t.adjustWidthTo+Ir(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+t.adjustWidthTo-Rr(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=r.input.prepareSelection())}function tn(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&zi(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var r=t.focus&&t.focus==I();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,r),!t.updatedDisplay&&t.startHeight==e.doc.height||ji(e,t.barMeasure),t.updatedDisplay&&dn(e,t.barMeasure),t.selectionChanged&&Ei(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),r&&Ci(t.cm)}function en(t){var e=t.cm,r=e.display,i=e.doc;t.updatedDisplay&&un(e,t.update),null==r.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=t.scrollTop&&Hi(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&zi(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!wt(t,"scrollCursorIntoView")){var r=t.display,i=r.sizer.getBoundingClientRect(),n=null;if(e.top+i.top<0?n=!0:e.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(n=!1),null!=n&&!h){var o=N("div","",null,"position: absolute;\n top: "+(e.top-r.viewOffset-Lr(t.display))+"px;\n height: "+(e.bottom-e.top+Ir(t)+r.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(n),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,r,i){var n;null==i&&(i=0),t.options.lineWrapping||e!=r||(r="before"==(e=e.ch?le(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?le(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Jr(t,e),l=r&&r!=e?Jr(t,r):a,h=Ri(t,n={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),c=t.doc.scrollTop,u=t.doc.scrollLeft;if(null!=h.scrollTop&&(Fi(t,h.scrollTop),1<Math.abs(t.doc.scrollTop-c)&&(s=!0)),null!=h.scrollLeft&&(zi(t,h.scrollLeft),1<Math.abs(t.doc.scrollLeft-u)&&(s=!0)),!s)break}return n}(e,me(i,t.scrollToPos.from),me(i,t.scrollToPos.to),t.scrollToPos.margin));var n=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(n)for(var s=0;s<n.length;++s)n[s].lines.length||bt(n[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&bt(o[a],"unhide");r.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&bt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function rn(t,e){if(t.curOp)return e();Qi(t);try{return e()}finally{Xi(t)}}function nn(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Qi(t);try{return e.apply(t,arguments)}finally{Xi(t)}}}function on(t){return function(){if(this.curOp)return t.apply(this,arguments);Qi(this);try{return t.apply(this,arguments)}finally{Xi(this)}}}function sn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Qi(t);try{return e.apply(this,arguments)}finally{Xi(t)}}}function an(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,P(ln,t))}function ln(l){var h=l.doc;if(!(h.highlightFrontier>=l.display.viewTo)){var c=+new Date+l.options.workTime,u=Te(l,h.highlightFrontier),f=[];h.iter(u.line,Math.min(h.first+h.size,l.display.viewTo+500),function(t){if(u.line>=l.display.viewFrom){var e=t.styles,r=t.text.length>l.options.maxHighlightLength?Qt(h.mode,u.state):null,i=ye(l,t,u,!0);r&&(u.state=r),t.styles=i.styles;var n=t.styleClasses,o=i.classes;o?t.styleClasses=o:n&&(t.styleClasses=null);for(var s=!e||e.length!=t.styles.length||n!=o&&(!n||!o||n.bgClass!=o.bgClass||n.textClass!=o.textClass),a=0;!s&&a<e.length;++a)s=e[a]!=t.styles[a];s&&f.push(u.line),t.stateAfter=u.save(),u.nextLine()}else t.text.length<=l.options.maxHighlightLength&&ke(l,t.text,u),t.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>c)return an(l,l.options.workDelay),!0}),h.highlightFrontier=u.line,h.modeFrontier=Math.max(h.modeFrontier,u.line),f.length&&rn(l,function(){for(var t=0;t<f.length;t++)gi(l,f[t],"text")})}}var hn=function(t,e,r){var i=t.display;this.viewport=e,this.visible=Ii(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Rr(t),this.force=r,this.dims=hi(t),this.events=[]};function cn(t,e){var r=t.display,i=t.doc;if(e.editorIsHidden)return _i(t),!1;if(!e.force&&e.visible.from>=r.viewFrom&&e.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==yi(t))return!1;gn(t)&&(_i(t),e.dims=hi(t));var n=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),s=Math.min(n,e.visible.to+t.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(i.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(n,r.viewTo)),Ne&&(o=Ye(t.doc,o),s=Ke(t.doc,s));var a,l,h,c,u=o!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=e.wrapperHeight||r.lastWrapWidth!=e.wrapperWidth;l=o,h=s,0==(c=(a=t).display).view.length||l>=c.viewTo||h<=c.viewFrom?(c.view=ur(a,l,h),c.viewFrom=l):(c.viewFrom>l?c.view=ur(a,l,c.viewFrom).concat(c.view):c.viewFrom<l&&(c.view=c.view.slice(di(a,l))),c.viewFrom=l,c.viewTo<h?c.view=c.view.concat(ur(a,c.viewTo,h)):c.viewTo>h&&(c.view=c.view.slice(0,di(a,h)))),c.viewTo=h,r.viewOffset=Xe(te(t.doc,r.viewFrom)),t.display.mover.style.top=r.viewOffset+"px";var f=yi(t);if(!u&&0==f&&!e.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var p=function(t){if(t.hasFocus())return null;var e=I();if(!e||!O(t.display.lineDiv,e))return null;var r={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&O(t.display.lineDiv,i.anchorNode)&&(r.anchorNode=i.anchorNode,r.anchorOffset=i.anchorOffset,r.focusNode=i.focusNode,r.focusOffset=i.focusOffset)}return r}(t);return 4<f&&(r.lineDiv.style.display="none"),function(r,t,e){var i=r.display,n=r.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(t){var e=t.nextSibling;return y&&x&&r.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),e}for(var l=i.view,h=i.viewFrom,c=0;c<l.length;c++){var u=l[c];if(!u.hidden)if(u.node&&u.node.parentNode==o){for(;s!=u.node;)s=a(s);var f=n&&null!=t&&t<=h&&u.lineNumber;u.changes&&(-1<H(u.changes,"gutter")&&(f=!1),_r(r,u,h,e)),f&&(S(u.lineNumber),u.lineNumber.appendChild(document.createTextNode(ae(r.options,h)))),s=u.node.nextSibling}else{var p=(g=h,_=e,v=yr(d=r,m=u),m.text=m.node=v.pre,v.bgClass&&(m.bgClass=v.bgClass),v.textClass&&(m.textClass=v.textClass),Tr(d,m),kr(d,m,g,_),wr(d,m,_),m.node);o.insertBefore(p,s)}h+=u.size}var d,m,g,_,v;for(;s;)s=a(s)}(t,r.updateLineNumbers,e.dims),4<f&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(t){if(t&&t.activeElt&&t.activeElt!=I()&&(t.activeElt.focus(),t.anchorNode&&O(document.body,t.anchorNode)&&O(document.body,t.focusNode))){var e=window.getSelection(),r=document.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),e.removeAllRanges(),e.addRange(r),e.extend(t.focusNode,t.focusOffset)}}(p),S(r.cursorDiv),S(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=e.wrapperHeight,r.lastWrapWidth=e.wrapperWidth,an(t,400)),!(r.updateLineNumbers=null)}function un(t,e){for(var r=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=Rr(t)||(r&&null!=r.top&&(r={top:Math.min(t.doc.height+Nr(t.display)-Mr(t),r.top)}),e.visible=Ii(t.display,t.doc,r),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&cn(t,e);i=!1){Ni(t);var n=Wi(t);xi(t),ji(t,n),dn(t,n),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fn(t,e){var r=new hn(t,e);if(cn(t,r)){Ni(t),un(t,r);var i=Wi(t);xi(t),ji(t,i),dn(t,i),r.finish()}}function pn(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function dn(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Ir(t)+"px"}function mn(t){var e=t.display,r=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=ci(e)-e.scroller.scrollLeft+t.doc.scrollLeft,n=e.gutters.offsetWidth,o=i+"px",s=0;s<r.length;s++)if(!r[s].hidden){t.options.fixedGutter&&(r[s].gutter&&(r[s].gutter.style.left=o),r[s].gutterBackground&&(r[s].gutterBackground.style.left=o));var a=r[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+n+"px")}}function gn(t){if(t.options.lineNumbers){var e=t.doc,r=ae(t.options,e.first+e.size-1),i=t.display;if(r.length!=i.lineNumChars){var n=i.measure.appendChild(N("div",[N("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=n.firstChild.offsetWidth,s=n.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",pn(t.display),1}}}function _n(t,e){for(var r=[],i=!1,n=0;n<t.length;n++){var o=t[n],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;i=!0}r.push({className:o,style:s})}return e&&!i&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function vn(t){var e=t.gutters,r=t.gutterSpecs;S(e),t.lineGutter=null;for(var i=0;i<r.length;++i){var n=r[i],o=n.className,s=n.style,a=e.appendChild(N("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&((t.lineGutter=a).style.width=(t.lineNumWidth||1)+"px")}e.style.display=r.length?"":"none",pn(t)}function yn(t){vn(t.display),mi(t),mn(t)}function xn(t,e,r,i){var n=this;this.input=r,n.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),n.scrollbarFiller.setAttribute("cm-not-content","true"),n.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),n.gutterFiller.setAttribute("cm-not-content","true"),n.lineDiv=L("div",null,"CodeMirror-code"),n.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),n.cursorDiv=N("div",null,"CodeMirror-cursors"),n.measure=N("div",null,"CodeMirror-measure"),n.lineMeasure=N("div",null,"CodeMirror-measure"),n.lineSpace=L("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none");var o=L("div",[n.lineSpace],"CodeMirror-lines");n.mover=N("div",[o],null,"position: relative"),n.sizer=N("div",[n.mover],"CodeMirror-sizer"),n.sizerWidth=null,n.heightForcer=N("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),n.gutters=N("div",null,"CodeMirror-gutters"),n.lineGutter=null,n.scroller=N("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll"),n.scroller.setAttribute("tabIndex","-1"),n.wrapper=N("div",[n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror"),T&&k<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),y||m&&f||(n.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(n.wrapper):t(n.wrapper)),n.viewFrom=n.viewTo=e.first,n.reportedViewFrom=n.reportedViewTo=e.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=_n(i.gutters,i.lineNumbers),vn(n),r.init(n)}hn.prototype.signal=function(t,e){Ct(t,e)&&this.events.push(arguments)},hn.prototype.finish=function(){for(var t=0;t<this.events.length;t++)bt.apply(null,this.events[t])};var Tn=0,kn=null;function bn(t){var e=t.wheelDeltaX,r=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==r&&t.detail&&t.axis==t.VERTICAL_AXIS?r=t.detail:null==r&&(r=t.wheelDelta),{x:e,y:r}}function wn(t){var e=bn(t);return e.x*=kn,e.y*=kn,e}function En(t,e){var r=bn(e),i=r.x,n=r.y,o=t.display,s=o.scroller,a=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&a||n&&l){if(n&&x&&y)t:for(var h=e.target,c=o.view;h!=s;h=h.parentNode)for(var u=0;u<c.length;u++)if(c[u].node==h){t.display.currentWheelTarget=h;break t}if(i&&!m&&!g&&null!=kn)return n&&l&&Fi(t,Math.max(0,s.scrollTop+n*kn)),zi(t,Math.max(0,s.scrollLeft+i*kn)),(!n||n&&l)&&At(e),void(o.wheelStartX=null);if(n&&null!=kn){var f=n*kn,p=t.doc.scrollTop,d=p+o.wrapper.clientHeight;f<0?p=Math.max(0,p+f-50):d=Math.min(t.doc.height,d+f+50),fn(t,{top:p,bottom:d})}Tn<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=n,setTimeout(function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,r=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,r&&(kn=(kn*Tn+r)/(Tn+1),++Tn)}},200)):(o.wheelDX+=i,o.wheelDY+=n))}}T?kn=-.53:m?kn=15:s?kn=-.7:l&&(kn=-1/3);var Cn=function(t,e){this.ranges=t,this.primIndex=e};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var r=this.ranges[e],i=t.ranges[e];if(!ce(r.anchor,i.anchor)||!ce(r.head,i.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new Sn(ue(this.ranges[e].anchor),ue(this.ranges[e].head));return new Cn(t,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Cn.prototype.contains=function(t,e){e=e||t;for(var r=0;r<this.ranges.length;r++){var i=this.ranges[r];if(0<=he(e,i.from())&&he(t,i.to())<=0)return r}return-1};var Sn=function(t,e){this.anchor=t,this.head=e};function An(t,e,r){var i=t&&t.options.selectionsMayTouch,n=e[r];e.sort(function(t,e){return he(t.from(),e.from())}),r=H(e,n);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],l=he(a.to(),s.from());if(i&&!s.empty()?0<l:0<=l){var h=pe(a.from(),s.from()),c=fe(a.to(),s.to()),u=a.empty()?s.from()==s.head:a.from()==a.head;o<=r&&--r,e.splice(--o,2,new Sn(u?c:h,u?h:c))}}return new Cn(e,r)}function Ln(t,e){return new Cn([new Sn(t,e||t)],0)}function Nn(t){return t.text?le(t.from.line+t.text.length-1,$(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function On(t,e){if(he(t,e.from)<0)return t;if(he(t,e.to)<=0)return Nn(e);var r=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=Nn(e).ch-e.to.ch),le(r,i)}function In(t,e){for(var r=[],i=0;i<t.sel.ranges.length;i++){var n=t.sel.ranges[i];r.push(new Sn(On(n.anchor,e),On(n.head,e)))}return An(t.cm,r,t.sel.primIndex)}function Rn(t,e,r){return t.line==e.line?le(r.line,t.ch-e.ch+r.ch):le(r.line+(t.line-e.line),t.ch)}function Mn(t){t.doc.mode=Yt(t.options,t.doc.modeOption),Dn(t)}function Dn(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,an(t,100),t.state.modeGen++,t.curOp&&mi(t)}function Pn(t,e){return 0==e.from.ch&&0==e.to.ch&&""==$(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Bn(t,i,e,n){function o(t){return e?e[t]:null}function r(t,e,r){!function(t,e,r,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Pe(t),Be(t,r);var n=i?i(t):1;n!=t.height&&ie(t,n)}(t,e,r,n),mr(t,"change",t,i)}function s(t,e){for(var r=[],i=t;i<e;++i)r.push(new tr(h[i],o(i),n));return r}var a=i.from,l=i.to,h=i.text,c=te(t,a.line),u=te(t,l.line),f=$(h),p=o(h.length-1),d=l.line-a.line;if(i.full)t.insert(0,s(0,h.length)),t.remove(h.length,t.size-h.length);else if(Pn(t,i)){var m=s(0,h.length-1);r(u,u.text,p),d&&t.remove(a.line,d),m.length&&t.insert(a.line,m)}else if(c==u)if(1==h.length)r(c,c.text.slice(0,a.ch)+f+c.text.slice(l.ch),p);else{var g=s(1,h.length-1);g.push(new tr(f+c.text.slice(l.ch),p,n)),r(c,c.text.slice(0,a.ch)+h[0],o(0)),t.insert(a.line+1,g)}else if(1==h.length)r(c,c.text.slice(0,a.ch)+h[0]+u.text.slice(l.ch),o(0)),t.remove(a.line+1,d);else{r(c,c.text.slice(0,a.ch)+h[0],o(0)),r(u,f+u.text.slice(l.ch),p);var _=s(1,h.length-1);1<d&&t.remove(a.line+1,d-1),t.insert(a.line+1,_)}mr(t,"change",t,i)}function Un(t,a,l){!function t(e,r,i){if(e.linked)for(var n=0;n<e.linked.length;++n){var o=e.linked[n];if(o.doc!=r){var s=i&&o.sharedHist;l&&!s||(a(o.doc,s),t(o.doc,e,s))}}}(t,null,!0)}function Fn(t,e){if(e.cm)throw new Error("This document is already in use.");fi((t.doc=e).cm=t),Mn(t),Hn(t),t.options.lineWrapping||Je(t),t.options.mode=e.modeOption,mi(t)}function Hn(t){("rtl"==t.doc.direction?R:C)(t.display.lineDiv,"CodeMirror-rtl")}function zn(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Wn(t,e){var r={from:ue(e.from),to:Nn(e),text:ee(t,e.from,e.to)};return Yn(t,r,e.from.line,e.to.line+1),Un(t,function(t){return Yn(t,r,e.from.line,e.to.line+1)},!0),r}function qn(t){for(;t.length;){if(!$(t).ranges)break;t.pop()}}function Gn(t,e,r,i){var n=t.history;n.undone.length=0;var o,s,a,l=+new Date;if((n.lastOp==i||n.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&n.lastModTime>l-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=(a=n).lastOp==i?(qn(a.done),$(a.done)):a.done.length&&!$(a.done).ranges?$(a.done):1<a.done.length&&!a.done[a.done.length-2].ranges?(a.done.pop(),$(a.done)):void 0))s=$(o.changes),0==he(e.from,e.to)&&0==he(e.from,s.to)?s.to=Nn(e):o.changes.push(Wn(t,e));else{var h=$(n.done);for(h&&h.ranges||Vn(t.sel,n.done),o={changes:[Wn(t,e)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(r),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=l,n.lastOp=n.lastSelOp=i,n.lastOrigin=n.lastSelOrigin=e.origin,s||bt(t,"historyAdded")}function jn(t,e,r,i){var n,o,s,a,l,h=t.history,c=i&&i.origin;r==h.lastSelOp||c&&h.lastSelOrigin==c&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==c||(n=t,o=c,s=$(h.done),a=e,"*"==(l=o.charAt(0))||"+"==l&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)))?h.done[h.done.length-1]=e:Vn(e,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=c,h.lastSelOp=r,i&&!1!==i.clearRedo&&qn(h.undone)}function Vn(t,e){var r=$(e);r&&r.ranges&&r.equals(t)||e.push(t)}function Yn(e,r,t,i){var n=r["spans_"+e.id],o=0;e.iter(Math.max(e.first,t),Math.min(e.first+e.size,i),function(t){t.markedSpans&&((n=n||(r["spans_"+e.id]={}))[o]=t.markedSpans),++o})}function Kn(t){if(!t)return null;for(var e,r=0;r<t.length;++r)t[r].marker.explicitlyCleared?e=e||t.slice(0,r):e&&e.push(t[r]);return e?e.length?e:null:t}function $n(t,e){var r=function(t,e){var r=e["spans_"+t.id];if(!r)return null;for(var i=[],n=0;n<e.text.length;++n)i.push(Kn(r[n]));return i}(t,e),i=Me(t,e);if(!r)return i;if(!i)return r;for(var n=0;n<r.length;++n){var o=r[n],s=i[n];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],h=0;h<o.length;++h)if(o[h].marker==l.marker)continue t;o.push(l)}else s&&(r[n]=s)}return r}function Qn(t,e,r){for(var i=[],n=0;n<t.length;++n){var o=t[n];if(o.ranges)i.push(r?Cn.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var h=s[l],c=void 0;if(a.push({from:h.from,to:h.to,text:h.text}),e)for(var u in h)(c=u.match(/^spans_(\d+)$/))&&-1<H(e,Number(c[1]))&&($(a)[u]=h[u],delete h[u])}}}return i}function Xn(t,e,r,i){if(i){var n=t.anchor;if(r){var o=he(e,n)<0;o!=he(r,n)<0?(n=e,e=r):o!=he(e,r)<0&&(e=r)}return new Sn(n,e)}return new Sn(r||e,e)}function Zn(t,e,r,i,n){null==n&&(n=t.cm&&(t.cm.display.shift||t.extend)),io(t,new Cn([Xn(t.sel.primary(),e,r,n)],0),i)}function Jn(t,e,r){for(var i=[],n=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=Xn(t.sel.ranges[o],e[o],null,n);io(t,An(t.cm,i,t.sel.primIndex),r)}function to(t,e,r,i){var n=t.sel.ranges.slice(0);n[e]=r,io(t,An(t.cm,n,t.sel.primIndex),i)}function eo(t,e,r,i){io(t,Ln(e,r),i)}function ro(t,e,r){var i=t.history.done,n=$(i);n&&n.ranges?no(t,i[i.length-1]=e,r):io(t,e,r)}function io(t,e,r){no(t,e,r),jn(t,t.sel,t.cm?t.cm.curOp.id:NaN,r)}function no(t,e,r){var i,n,o,s;(Ct(t,"beforeSelectionChange")||t.cm&&Ct(t.cm,"beforeSelectionChange"))&&(i=t,o=r,s={ranges:(n=e).ranges,update:function(t){this.ranges=[];for(var e=0;e<t.length;e++)this.ranges[e]=new Sn(me(i,t[e].anchor),me(i,t[e].head))},origin:o&&o.origin},bt(i,"beforeSelectionChange",i,s),i.cm&&bt(i.cm,"beforeSelectionChange",i.cm,s),e=s.ranges!=n.ranges?An(i.cm,s.ranges,s.ranges.length-1):n);var a=r&&r.bias||(he(e.primary().head,t.sel.primary().head)<0?-1:1);oo(t,ao(t,e,a,!0)),r&&!1===r.scroll||!t.cm||Di(t.cm)}function oo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Et(t.cm)),mr(t,"cursorActivity",t))}function so(t){oo(t,ao(t,t.sel,null,!1))}function ao(t,e,r,i){for(var n,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=ho(t,s.anchor,a&&a.anchor,r,i),h=ho(t,s.head,a&&a.head,r,i);!n&&l==s.anchor&&h==s.head||((n=n||e.ranges.slice(0,o))[o]=new Sn(l,h))}return n?An(t.cm,n,e.primIndex):e}function lo(t,e,r,i,n){var o=te(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker,h="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==a.from||(h?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(c?a.to>=e.ch:a.to>e.ch))){if(n&&(bt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(r){var u=l.find(i<0?1:-1),f=void 0;if((i<0?c:h)&&(u=co(t,u,-i,u&&u.line==e.line?o:null)),u&&u.line==e.line&&(f=he(u,r))&&(i<0?f<0:0<f))return lo(t,u,e,i,n)}var p=l.find(i<0?-1:1);return(i<0?h:c)&&(p=co(t,p,i,p.line==e.line?o:null)),p?lo(t,p,e,i,n):null}}return e}function ho(t,e,r,i,n){var o=i||1,s=lo(t,e,r,o,n)||!n&&lo(t,e,r,o,!0)||lo(t,e,r,-o,n)||!n&&lo(t,e,r,-o,!0);return s||(t.cantEdit=!0,le(t.first,0))}function co(t,e,r,i){return r<0&&0==e.ch?e.line>t.first?me(t,le(e.line-1)):null:0<r&&e.ch==(i||te(t,e.line)).text.length?e.line<t.first+t.size-1?le(e.line+1,0):null:new le(e.line,e.ch+r)}function uo(t){t.setSelection(le(t.firstLine(),0),le(t.lastLine()),q)}function fo(n,t,e){var o={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return o.canceled=!0}};return e&&(o.update=function(t,e,r,i){t&&(o.from=me(n,t)),e&&(o.to=me(n,e)),r&&(o.text=r),void 0!==i&&(o.origin=i)}),bt(n,"beforeChange",n,o),n.cm&&bt(n.cm,"beforeChange",n.cm,o),o.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function po(t,e,r){if(t.cm){if(!t.cm.curOp)return nn(t.cm,po)(t,e,r);if(t.cm.state.suppressEdits)return}if(!(Ct(t,"beforeChange")||t.cm&&Ct(t.cm,"beforeChange"))||(e=fo(t,e,!0))){var i=Le&&!r&&function(t,e,r){var i=null;if(t.iter(e.line,r.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var r=t.markedSpans[e].marker;!r.readOnly||i&&-1!=H(i,r)||(i=i||[]).push(r)}}),!i)return null;for(var n=[{from:e,to:r}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<n.length;++l){var h=n[l];if(!(he(h.to,a.from)<0||0<he(h.from,a.to))){var c=[l,1],u=he(h.from,a.from),f=he(h.to,a.to);(u<0||!s.inclusiveLeft&&!u)&&c.push({from:h.from,to:a.from}),(0<f||!s.inclusiveRight&&!f)&&c.push({from:a.to,to:h.to}),n.splice.apply(n,c),l+=c.length-3}}return n}(t,e.from,e.to);if(i)for(var n=i.length-1;0<=n;--n)mo(t,{from:i[n].from,to:i[n].to,text:n?[""]:e.text,origin:e.origin});else mo(t,e)}}function mo(t,r){if(1!=r.text.length||""!=r.text[0]||0!=he(r.from,r.to)){var e=In(t,r);Gn(t,r,e,t.cm?t.cm.curOp.id:NaN),vo(t,r,e,Me(t,r));var i=[];Un(t,function(t,e){e||-1!=H(i,t.history)||(ko(t.history,r),i.push(t.history)),vo(t,r,null,Me(t,r))})}}function go(n,o,t){var e=n.cm&&n.cm.state.suppressEdits;if(!e||t){for(var s,r=n.history,i=n.sel,a="undo"==o?r.done:r.undone,l="undo"==o?r.undone:r.done,h=0;h<a.length&&(s=a[h],t?!s.ranges||s.equals(n.sel):s.ranges);h++);if(h!=a.length){for(r.lastOrigin=r.lastSelOrigin=null;;){if(!(s=a.pop()).ranges){if(e)return void a.push(s);break}if(Vn(s,l),t&&!s.equals(n.sel))return void io(n,s,{clearRedo:!1});i=s}var c=[];Vn(i,l),l.push({changes:c,generation:r.generation}),r.generation=s.generation||++r.maxGeneration;for(var u=Ct(n,"beforeChange")||n.cm&&Ct(n.cm,"beforeChange"),f=function(t){var r=s.changes[t];if(r.origin=o,u&&!fo(n,r,!1))return a.length=0,{};c.push(Wn(n,r));var e=t?In(n,r):$(a);vo(n,r,e,$n(n,r)),!t&&n.cm&&n.cm.scrollIntoView({from:r.from,to:Nn(r)});var i=[];Un(n,function(t,e){e||-1!=H(i,t.history)||(ko(t.history,r),i.push(t.history)),vo(t,r,null,$n(t,r))})},p=s.changes.length-1;0<=p;--p){var d=f(p);if(d)return d.v}}}}function _o(t,e){if(0!=e&&(t.first+=e,t.sel=new Cn(Q(t.sel.ranges,function(t){return new Sn(le(t.anchor.line+e,t.anchor.ch),le(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){mi(t.cm,t.first,t.first-e,e);for(var r=t.cm.display,i=r.viewFrom;i<r.viewTo;i++)gi(t.cm,i,"gutter")}}function vo(t,e,r,i){if(t.cm&&!t.cm.curOp)return nn(t.cm,vo)(t,e,r,i);if(e.to.line<t.first)_o(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var n=e.text.length-1-(t.first-e.from.line);_o(t,n),e={from:le(t.first,0),to:le(e.to.line+n,e.to.ch),text:[$(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:le(o,te(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ee(t,e.from,e.to),r=r||In(t,e),t.cm?function(t,e,r){var i=t.doc,n=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=ne(Ve(te(i,o.line))),i.iter(l,s.line+1,function(t){if(t==n.maxLine)return a=!0}));-1<i.sel.contains(e.from,e.to)&&Et(t);Bn(i,e,r,ui(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=Ze(t);e>n.maxLineLength&&(n.maxLine=t,n.maxLineLength=e,n.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0));(function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var r=t.first,i=e-1;r<i;i--){var n=te(t,i).stateAfter;if(n&&(!(n instanceof _e)||i+n.lookAhead<e)){r=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,r)}})(i,o.line),an(t,400);var h=e.text.length-(s.line-o.line)-1;e.full?mi(t):o.line!=s.line||1!=e.text.length||Pn(t.doc,e)?mi(t,o.line,s.line+1,h):gi(t,o.line,"text");var c=Ct(t,"changes"),u=Ct(t,"change");if(u||c){var f={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};u&&mr(t,"change",t,f),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}(t.cm,e,i):Bn(t,e,i),no(t,r,q),t.cantEdit&&ho(t,le(t.firstLine(),0))&&(t.cantEdit=!1)}}function yo(t,e,r,i,n){var o;he(i=i||r,r)<0&&(r=(o=[i,r])[0],i=o[1]),"string"==typeof e&&(e=t.splitLines(e)),po(t,{from:r,to:i,text:e,origin:n})}function xo(t,e,r,i){r<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function To(t,e,r,i){for(var n=0;n<t.length;++n){var o=t[n],s=!0;if(o.ranges){o.copied||((o=t[n]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)xo(o.ranges[a].anchor,e,r,i),xo(o.ranges[a].head,e,r,i)}else{for(var l=0;l<o.changes.length;++l){var h=o.changes[l];if(r<h.from.line)h.from=le(h.from.line+i,h.from.ch),h.to=le(h.to.line+i,h.to.ch);else if(e<=h.to.line){s=!1;break}}s||(t.splice(0,n+1),n=0)}}}function ko(t,e){var r=e.from.line,i=e.to.line,n=e.text.length-(i-r)-1;To(t.done,r,i,n),To(t.undone,r,i,n)}function bo(t,e,r,i){var n=e,o=e;return"number"==typeof e?o=te(t,de(t,e)):n=ne(e),null==n?null:(i(o,n)&&t.cm&&gi(t.cm,n,r),o)}function wo(t){this.lines=t,this.parent=null;for(var e=0,r=0;r<t.length;++r)t[r].parent=this,e+=t[r].height;this.height=e}function Eo(t){this.children=t;for(var e=0,r=0,i=0;i<t.length;++i){var n=t[i];e+=n.chunkSize(),r+=n.height,n.parent=this}this.size=e,this.height=r,this.parent=null}Sn.prototype.from=function(){return pe(this.anchor,this.head)},Sn.prototype.to=function(){return fe(this.anchor,this.head)},Sn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},wo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var r=t,i=t+e;r<i;++r){var n=this.lines[r];this.height-=n.height,(o=n).parent=null,Pe(o),mr(n,"delete")}var o;this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,r){this.height+=r,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var i=0;i<e.length;++i)e[i].parent=this},iterN:function(t,e,r){for(var i=t+e;t<i;++t)if(r(this.lines[t]))return!0}},Eo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var r=0;r<this.children.length;++r){var i=this.children[r],n=i.chunkSize();if(t<n){var o=Math.min(e,n-t),s=i.height;if(i.removeInner(t,o),this.height-=s-i.height,n==o&&(this.children.splice(r--,1),i.parent=null),0==(e-=o))break;t=0}else t-=n}if(this.size-e<25&&(1<this.children.length||!(this.children[0]instanceof wo))){var a=[];this.collapse(a),this.children=[new wo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,r){this.size+=e.length,this.height+=r;for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(t<=o){if(n.insertInner(t,e,r),n.lines&&50<n.lines.length){for(var s=n.lines.length%25+25,a=s;a<n.lines.length;){var l=new wo(n.lines.slice(a,a+=25));n.height-=l.height,this.children.splice(++i,0,l),l.parent=this}n.lines=n.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new Eo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var r=H(t.parent.children,t);t.parent.children.splice(r+1,0,e)}else{var i=new Eo(t.children);(i.parent=t).children=[i,e],t=i}e.parent=t.parent}while(10<t.children.length);t.parent.maybeSpill()}},iterN:function(t,e,r){for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(t<o){var s=Math.min(e,o-t);if(n.iterN(t,s,r))return!0;if(0==(e-=s))break;t=0}else t-=o}}};function Co(t,e,r){if(r)for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i]);this.doc=t,this.node=e}function So(t,e,r){Xe(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Mi(t,r)}Co.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,r=this.line,i=ne(r);if(null!=i&&e){for(var n=0;n<e.length;++n)e[n]==this&&e.splice(n--,1);e.length||(r.widgets=null);var o=Sr(this);ie(r,Math.max(0,r.height-o)),t&&(rn(t,function(){So(t,r,-o),gi(t,i,"widget")}),mr(t,"lineWidgetCleared",t,this,i))}},Co.prototype.changed=function(){var t=this,e=this.height,r=this.doc.cm,i=this.line;this.height=null;var n=Sr(this)-e;n&&($e(this.doc,i)||ie(i,i.height+n),r&&rn(r,function(){r.curOp.forceUpdate=!0,So(r,i,n),mr(r,"lineWidgetChanged",r,t,ne(i))}))},St(Co);var Ao=0,Lo=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ao};function No(e,i,n,t,r){if(t&&t.shared)return function(t,r,i,n,o){(n=B(n)).shared=!1;var s=[No(t,r,i,n,o)],a=s[0],l=n.widgetNode;return Un(t,function(t){l&&(n.widgetNode=l.cloneNode(!0)),s.push(No(t,me(t,r),me(t,i),n,o));for(var e=0;e<t.linked.length;++e)if(t.linked[e].isParent)return;a=$(s)}),new Oo(s,a)}(e,i,n,t,r);if(e.cm&&!e.cm.curOp)return nn(e.cm,No)(e,i,n,t,r);var o=new Lo(e,r),s=he(i,n);if(t&&B(t,o,!1),0<s||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),t.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),t.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(je(e,i.line,i,n,o)||i.line!=n.line&&je(e,n.line,i,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ne=!0}o.addToHistory&&Gn(e,{from:i,to:n,origin:"markText"},e.sel,NaN);var a,l=i.line,h=e.cm;if(e.iter(l,n.line+1,function(t){var e,r;h&&o.collapsed&&!h.options.lineWrapping&&Ve(t)==h.display.maxLine&&(a=!0),o.collapsed&&l!=i.line&&ie(t,0),e=t,r=new Oe(o,l==i.line?i.ch:null,l==n.line?n.ch:null),e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],r.marker.attachLine(e),++l}),o.collapsed&&e.iter(i.line,n.line+1,function(t){$e(e,t)&&ie(t,0)}),o.clearOnEnter&&xt(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Le=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Ao,o.atomic=!0),h){if(a&&(h.curOp.updateMaxLine=!0),o.collapsed)mi(h,i.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=i.line;c<=n.line;c++)gi(h,c,"text");o.atomic&&so(h.doc),mr(h,"markerAdded",h,o)}return o}Lo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Qi(t),Ct(this,"clear")){var r=this.find();r&&mr(this,"clear",r.from,r.to)}for(var i=null,n=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Ie(s.markedSpans,this);t&&!this.collapsed?gi(t,ne(s),"text"):t&&(null!=a.to&&(n=ne(s)),null!=a.from&&(i=ne(s))),s.markedSpans=Re(s.markedSpans,a),null==a.from&&this.collapsed&&!$e(this.doc,s)&&t&&ie(s,ai(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var h=Ve(this.lines[l]),c=Ze(h);c>t.display.maxLineLength&&(t.display.maxLine=h,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&mi(t,i,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&so(t.doc)),t&&mr(t,"markerCleared",t,this,i,n),e&&Xi(t),this.parent&&this.parent.clear()}},Lo.prototype.find=function(t,e){var r,i;null==t&&"bookmark"==this.type&&(t=1);for(var n=0;n<this.lines.length;++n){var o=this.lines[n],s=Ie(o.markedSpans,this);if(null!=s.from&&(r=le(e?o:ne(o),s.from),-1==t))return r;if(null!=s.to&&(i=le(e?o:ne(o),s.to),1==t))return i}return r&&{from:r,to:i}},Lo.prototype.changed=function(){var o=this,s=this.find(-1,!0),a=this,l=this.doc.cm;s&&l&&rn(l,function(){var t=s.line,e=ne(s.line),r=Br(l,e);if(r&&(Gr(r),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!$e(a.doc,t)&&null!=a.height){var i=a.height;a.height=null;var n=Sr(a)-i;n&&ie(t,t.height+n)}mr(l,"markerChanged",l,o)})},Lo.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=H(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Lo.prototype.detachLine=function(t){if(this.lines.splice(H(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},St(Lo);var Oo=function(t,e){this.markers=t,this.primary=e;for(var r=0;r<t.length;++r)t[r].parent=this};function Io(t){return t.findMarks(le(t.first,0),t.clipPos(le(t.lastLine())),function(t){return t.parent})}function Ro(o){for(var t=function(t){var e=o[t],r=[e.primary.doc];Un(e.primary.doc,function(t){return r.push(t)});for(var i=0;i<e.markers.length;i++){var n=e.markers[i];-1==H(r,n.doc)&&(n.parent=null,e.markers.splice(i--,1))}},e=0;e<o.length;e++)t(e)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();mr(this,"clear")}},Oo.prototype.find=function(t,e){return this.primary.find(t,e)},St(Oo);var Mo=0,Do=function(t,e,r,i,n){if(!(this instanceof Do))return new Do(t,e,r,i,n);null==r&&(r=0),Eo.call(this,[new wo([new tr("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=le(r,0);this.sel=Ln(o),this.history=new zn(null),this.id=++Mo,this.modeOption=e,this.lineSep=i,this.direction="rtl"==n?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Bn(this,{from:o,to:o,text:t}),io(this,Ln(o),q)};Do.prototype=Z(Eo.prototype,{constructor:Do,iter:function(t,e,r){r?this.iterN(t-this.first,e-t,r):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var r=0,i=0;i<e.length;++i)r+=e[i].height;this.insertInner(t-this.first,e,r)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=re(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:sn(function(t){var e=le(this.first,0),r=this.first+this.size-1;po(this,{from:e,to:le(r,te(this,r).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Pi(this.cm,0,0),io(this,Ln(e),q)}),replaceRange:function(t,e,r,i){yo(this,t,e=me(this,e),r=r?me(this,r):e,i)},getRange:function(t,e,r){var i=ee(this,me(this,t),me(this,e));return!1===r?i:i.join(r||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(se(this,t))return te(this,t)},getLineNumber:function(t){return ne(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=te(this,t)),Ve(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return me(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:sn(function(t,e,r){eo(this,me(this,"number"==typeof t?le(t,e||0):t),null,r)}),setSelection:sn(function(t,e,r){eo(this,me(this,t),me(this,e||t),r)}),extendSelection:sn(function(t,e,r){Zn(this,me(this,t),e&&me(this,e),r)}),extendSelections:sn(function(t,e){Jn(this,ge(this,t),e)}),extendSelectionsBy:sn(function(t,e){Jn(this,ge(this,Q(this.sel.ranges,t)),e)}),setSelections:sn(function(t,e,r){if(t.length){for(var i=[],n=0;n<t.length;n++)i[n]=new Sn(me(this,t[n].anchor),me(this,t[n].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),io(this,An(this.cm,i,e),r)}}),addSelection:sn(function(t,e,r){var i=this.sel.ranges.slice(0);i.push(new Sn(me(this,t),me(this,e||t))),io(this,An(this.cm,i,i.length-1),r)}),getSelection:function(t){for(var e,r=this.sel.ranges,i=0;i<r.length;i++){var n=ee(this,r[i].from(),r[i].to());e=e?e.concat(n):n}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],r=this.sel.ranges,i=0;i<r.length;i++){var n=ee(this,r[i].from(),r[i].to());!1!==t&&(n=n.join(t||this.lineSeparator())),e[i]=n}return e},replaceSelection:function(t,e,r){for(var i=[],n=0;n<this.sel.ranges.length;n++)i[n]=t;this.replaceSelections(i,e,r||"+input")},replaceSelections:sn(function(t,e,r){for(var i=[],n=this.sel,o=0;o<n.ranges.length;o++){var s=n.ranges[o];i[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:r}}for(var a=e&&"end"!=e&&function(t,e,r){for(var i=[],n=le(t.first,0),o=n,s=0;s<e.length;s++){var a=e[s],l=Rn(a.from,n,o),h=Rn(Nn(a),n,o);if(n=a.to,o=h,"around"==r){var c=t.sel.ranges[s],u=he(c.head,c.anchor)<0;i[s]=new Sn(u?h:l,u?l:h)}else i[s]=new Sn(l,l)}return new Cn(i,t.sel.primIndex)}(this,i,e),l=i.length-1;0<=l;l--)po(this,i[l]);a?ro(this,a):this.cm&&Di(this.cm)}),undo:sn(function(){go(this,"undo")}),redo:sn(function(){go(this,"redo")}),undoSelection:sn(function(){go(this,"undo",!0)}),redoSelection:sn(function(){go(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,r=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var n=0;n<t.undone.length;n++)t.undone[n].ranges||++r;return{undo:e,redo:r}},clearHistory:function(){this.history=new zn(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Qn(this.history.done),undone:Qn(this.history.undone)}},setHistory:function(t){var e=this.history=new zn(this.history.maxGeneration);e.done=Qn(t.done.slice(0),null,!0),e.undone=Qn(t.undone.slice(0),null,!0)},setGutterMarker:sn(function(t,r,i){return bo(this,t,"gutter",function(t){var e=t.gutterMarkers||(t.gutterMarkers={});return!(e[r]=i)&&rt(e)&&(t.gutterMarkers=null),1})}),clearGutter:sn(function(e){var r=this;this.iter(function(t){t.gutterMarkers&&t.gutterMarkers[e]&&bo(r,t,"gutter",function(){return t.gutterMarkers[e]=null,rt(t.gutterMarkers)&&(t.gutterMarkers=null),1})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!se(this,t))return null;if(!(t=te(this,e=t)))return null}else if(null==(e=ne(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:sn(function(t,r,i){return bo(this,t,"gutter"==r?"gutter":"class",function(t){var e="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass";if(t[e]){if(w(i).test(t[e]))return;t[e]+=" "+i}else t[e]=i;return 1})}),removeLineClass:sn(function(t,o,s){return bo(this,t,"gutter"==o?"gutter":"class",function(t){var e="text"==o?"textClass":"background"==o?"bgClass":"gutter"==o?"gutterClass":"wrapClass",r=t[e];if(r){if(null==s)t[e]=null;else{var i=r.match(w(s));if(!i)return;var n=i.index+i[0].length;t[e]=r.slice(0,i.index)+(i.index&&n!=r.length?" ":"")+r.slice(n)||null}return 1}})}),addLineWidget:sn(function(t,e,r){return n=t,o=new Co(i=this,e,r),(s=i.cm)&&o.noHScroll&&(s.display.alignWidgets=!0),bo(i,n,"widget",function(t){var e=t.widgets||(t.widgets=[]);if(null==o.insertAt?e.push(o):e.splice(Math.min(e.length-1,Math.max(0,o.insertAt)),0,o),o.line=t,s&&!$e(i,t)){var r=Xe(t)<i.scrollTop;ie(t,t.height+Sr(o)),r&&Mi(s,o.height),s.curOp.forceUpdate=!0}return 1}),s&&mr(s,"lineWidgetAdded",s,o,"number"==typeof n?n:ne(n)),o;var i,n,o,s}),removeLineWidget:function(t){t.clear()},markText:function(t,e,r){return No(this,me(this,t),me(this,e),r,r&&r.type||"range")},setBookmark:function(t,e){var r={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return No(this,t=me(this,t),t,r,"bookmark")},findMarksAt:function(t){var e=[],r=te(this,(t=me(this,t)).line).markedSpans;if(r)for(var i=0;i<r.length;++i){var n=r[i];(null==n.from||n.from<=t.ch)&&(null==n.to||n.to>=t.ch)&&e.push(n.marker.parent||n.marker)}return e},findMarks:function(n,o,s){n=me(this,n),o=me(this,o);var a=[],l=n.line;return this.iter(n.line,o.line+1,function(t){var e=t.markedSpans;if(e)for(var r=0;r<e.length;r++){var i=e[r];null!=i.to&&l==n.line&&n.ch>=i.to||null==i.from&&l!=n.line||null!=i.from&&l==o.line&&i.from>=o.ch||s&&!s(i.marker)||a.push(i.marker.parent||i.marker)}++l}),a},getAllMarks:function(){var i=[];return this.iter(function(t){var e=t.markedSpans;if(e)for(var r=0;r<e.length;++r)null!=e[r].from&&i.push(e[r].marker)}),i},posFromIndex:function(r){var i,n=this.first,o=this.lineSeparator().length;return this.iter(function(t){var e=t.text.length+o;if(r<e)return i=r,!0;r-=e,++n}),me(this,le(n,i))},indexFromPos:function(t){var e=(t=me(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+r}),e},copy:function(t){var e=new Do(re(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t=t||{};var e=this.first,r=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<r&&(r=t.to);var i=new Do(re(this,e,r),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var r=0;r<e.length;r++){var i=e[r],n=i.find(),o=t.clipPos(n.from),s=t.clipPos(n.to);if(he(o,s)){var a=No(t,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}(i,Io(this)),i},unlinkDoc:function(t){if(t instanceof Is&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e){if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Ro(Io(this));break}}if(t.history==this.history){var r=[t.id];Un(t,function(t){return r.push(t.id)},!0),t.history=new zn(null),t.history.done=Qn(this.history.done,r),t.history.undone=Qn(this.history.undone,r)}},iterLinkedDocs:function(t){Un(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Ht(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:sn(function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&rn(e=this.cm,function(){Hn(e),mi(e)}))})}),Do.prototype.eachLine=Do.prototype.iter;var Po=0;function Bo(t){var n=this;if(Uo(n),!wt(n,t)&&!Ar(n.display,t)){At(t),T&&(Po=+new Date);var o=pi(n,t,!0),e=t.dataTransfer.files;if(o&&!n.isReadOnly())if(e&&e.length&&window.FileReader&&window.File)for(var s=e.length,a=Array(s),l=0,r=function(t,r){if(!n.options.allowDropFileTypes||-1!=H(n.options.allowDropFileTypes,t.type)){var i=new FileReader;i.onload=nn(n,function(){var t=i.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),a[r]=t,++l==s){var e={from:o=me(n.doc,o),to:o,text:n.doc.splitLines(a.join(n.doc.lineSeparator())),origin:"paste"};po(n.doc,e),ro(n.doc,Ln(o,Nn(e)))}}),i.readAsText(t)}},i=0;i<s;++i)r(e[i],i);else{if(n.state.draggingText&&-1<n.doc.sel.contains(o))return n.state.draggingText(t),void setTimeout(function(){return n.display.input.focus()},20);try{var h=t.dataTransfer.getData("Text");if(h){var c;if(n.state.draggingText&&!n.state.draggingText.copy&&(c=n.listSelections()),no(n.doc,Ln(o,o)),c)for(var u=0;u<c.length;++u)yo(n.doc,"",c[u].anchor,c[u].head,"drag");n.replaceSelection(h,"around","paste"),n.display.input.focus()}}catch(t){}}}}function Uo(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Fo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],i=0;i<t.length;i++){var n=t[i].CodeMirror;n&&r.push(n)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}var Ho=!1;function zo(){var t;Ho||(xt(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,Fo(Wo)},100))}),xt(window,"blur",function(){return Fo(Li)}),Ho=!0)}function Wo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var qo={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"},Go=0;Go<10;Go++)qo[Go+48]=qo[Go+96]=String(Go);for(var jo=65;jo<=90;jo++)qo[jo]=String.fromCharCode(jo);for(var Vo=1;Vo<=12;Vo++)qo[Vo+111]=qo[Vo+63235]="F"+Vo;var Yo={};function Ko(t){var e,r,i,n,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))n=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);i=!0}}return e&&(t="Alt-"+t),r&&(t="Ctrl-"+t),n&&(t="Cmd-"+t),i&&(t="Shift-"+t),t}function $o(t){var e={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==i){delete t[r];continue}for(var n=Q(r.split(" "),Ko),o=0;o<n.length;o++){var s=void 0,a=void 0;s=o==n.length-1?(a=n.join(" "),i):(a=n.slice(0,o+1).join(" "),"...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[r]}for(var h in e)t[h]=e[h];return t}function Qo(t,e,r,i){var n=(e=ts(e)).call?e.call(t,i):e[t];if(!1===n)return"nothing";if("..."===n)return"multi";if(null!=n&&r(n))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Qo(t,e.fallthrough,r,i);for(var o=0;o<e.fallthrough.length;o++){var s=Qo(t,e.fallthrough[o],r,i);if(s)return s}}}function Xo(t){var e="string"==typeof t?t:qo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Zo(t,e,r){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(v?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(v?e.ctrlKey:e.metaKey)&&"Cmd"!=i&&(t="Cmd-"+t),!r&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function Jo(t,e){if(g&&34==t.keyCode&&t.char)return!1;var r=qo[t.keyCode];return null!=r&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(r=t.code),Zo(r,t,e))}function ts(t){return"string"==typeof t?Yo[t]:t}function es(e,t){for(var r=e.doc.sel.ranges,i=[],n=0;n<r.length;n++){for(var o=t(r[n]);i.length&&he(o.from,$(i).to)<=0;){var s=i.pop();if(he(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}rn(e,function(){for(var t=i.length-1;0<=t;t--)yo(e.doc,"",i[t].from,i[t].to,"+delete");Di(e)})}function rs(t,e,r){var i=ot(t.text,e+r,r);return i<0||i>t.text.length?null:i}function is(t,e,r){var i=rs(t,e.ch,r);return null==i?null:new le(e.line,i,r<0?"after":"before")}function ns(t,e,r,i,n){if(t){var o=vt(r,e.doc.direction);if(o){var s,a=n<0?$(o):o[0],l=n<0==(1==a.level)?"after":"before";if(0<a.level||"rtl"==e.doc.direction){var h=Ur(e,r);s=n<0?r.text.length-1:0;var c=Fr(e,h,s).top;s=st(function(t){return Fr(e,h,t).top==c},n<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=rs(r,s,1))}else s=n<0?a.to:a.from;return new le(i,s,l)}}return new le(i,n<0?r.text.length:0,n<0?"before":"after")}function os(e,r,a,t){var l=vt(r,e.doc.direction);if(!l)return is(r,a,t);a.ch>=r.text.length?(a.ch=r.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var i=lt(l,a.ch,a.sticky),n=l[i];if("ltr"==e.doc.direction&&n.level%2==0&&(0<t?n.to>a.ch:n.from<a.ch))return is(r,a,t);function h(t,e){return rs(r,t instanceof le?t.ch:t,e)}function o(t){return e.options.lineWrapping?(s=s||Ur(e,r),ni(e,r,s,t)):{begin:0,end:r.text.length}}var s,c=o("before"==a.sticky?h(a,-1):a.ch);if("rtl"==e.doc.direction||1==n.level){var u=1==n.level==t<0,f=h(a,u?1:-1);if(null!=f&&(u?f<=n.to&&f<=c.end:f>=n.from&&f>=c.begin)){var p=u?"before":"after";return new le(a.line,f,p)}}function d(t,e,r){for(var i=function(t,e){return e?new le(a.line,h(t,1),"before"):new le(a.line,t,"after")};0<=t&&t<l.length;t+=e){var n=l[t],o=0<e==(1!=n.level),s=o?r.begin:h(r.end,-1);if(n.from<=s&&s<n.to)return i(s,o);if(s=o?n.from:h(n.to,-1),r.begin<=s&&s<r.end)return i(s,o)}}var m=d(i+t,t,c);if(m)return m;var g=0<t?c.end:h(c.begin,-1);return null==g||0<t&&g==r.text.length||!(m=d(0<t?0:l.length-1,t,o(g)))?null:m}Yo.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"},Yo.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"},Yo.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"},Yo.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"]},Yo.default=x?Yo.macDefault:Yo.pcDefault;var ss={selectAll:uo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),q)},killLine:function(r){return es(r,function(t){if(t.empty()){var e=te(r.doc,t.head.line).text.length;return t.head.ch==e&&t.head.line<r.lastLine()?{from:t.head,to:le(t.head.line+1,0)}:{from:t.head,to:le(t.head.line,e)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return es(e,function(t){return{from:le(t.from().line,0),to:me(e.doc,le(t.to().line+1,0))}})},delLineLeft:function(t){return es(t,function(t){return{from:le(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(r){return es(r,function(t){var e=r.charCoords(t.head,"div").top+5;return{from:r.coordsChar({left:0,top:e},"div"),to:t.from()}})},delWrappedLineRight:function(i){return es(i,function(t){var e=i.charCoords(t.head,"div").top+5,r=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:e},"div");return{from:t.from(),to:r}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(le(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(le(t.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return as(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ls(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(t,e){var r=te(t.doc,e),i=function(t){for(var e;e=qe(t);)t=e.find(1,!0).line;return t}(r);i!=r&&(e=ne(i));return ns(!0,t,r,e,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(t){var e=r.cursorCoords(t.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:e},"div")},j)},goLineLeft:function(r){return r.extendSelectionsBy(function(t){var e=r.cursorCoords(t.head,"div").top+5;return r.coordsChar({left:0,top:e},"div")},j)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(t){var e=i.cursorCoords(t.head,"div").top+5,r=i.coordsChar({left:0,top:e},"div");return r.ch<i.getLine(r.line).search(/\S/)?ls(i,t.head):r},j)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],r=t.listSelections(),i=t.options.tabSize,n=0;n<r.length;n++){var o=r[n].from(),s=U(t.getLine(o.line),o.ch,i);e.push(K(i-s%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(s){return rn(s,function(){for(var t=s.listSelections(),e=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,n=te(s.doc,i.line).text;if(n)if(i.ch==n.length&&(i=new le(i.line,i.ch-1)),0<i.ch)i=new le(i.line,i.ch+1),s.replaceRange(n.charAt(i.ch-1)+n.charAt(i.ch-2),le(i.line,i.ch-2),i,"+transpose");else if(i.line>s.doc.first){var o=te(s.doc,i.line-1).text;o&&(i=new le(i.line,1),s.replaceRange(n.charAt(0)+s.doc.lineSeparator()+o.charAt(o.length-1),le(i.line-1,o.length-1),i,"+transpose"))}e.push(new Sn(i,i))}s.setSelections(e)})},newlineAndIndent:function(i){return rn(i,function(){for(var t=i.listSelections(),e=t.length-1;0<=e;e--)i.replaceRange(i.doc.lineSeparator(),t[e].anchor,t[e].head,"+input");t=i.listSelections();for(var r=0;r<t.length;r++)i.indentLine(t[r].from().line,null,!0);Di(i)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function as(t,e){var r=te(t.doc,e),i=Ve(r);return i!=r&&(e=ne(i)),ns(!0,t,i,e,1)}function ls(t,e){var r=as(t,e.line),i=te(t.doc,r.line),n=vt(i,t.doc.direction);if(n&&0!=n[0].level)return r;var o=Math.max(0,i.text.search(/\S/)),s=e.line==r.line&&e.ch<=o&&e.ch;return le(r.line,s?0:o,r.sticky)}function hs(t,e,r){if("string"==typeof e&&!(e=ss[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,n=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r&&(t.display.shift=!1),n=e(t)!=W}finally{t.display.shift=i,t.state.suppressEdits=!1}return n}var cs=new F;function us(t,e,r,i){var n=t.state.keySeq;if(n){if(Xo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:cs.set(50,function(){t.state.keySeq==n&&(t.state.keySeq=null,t.display.input.reset())}),fs(t,n+" "+e,r,i))return!0}return fs(t,e,r,i)}function fs(t,e,r,i){var n=function(t,e,r){for(var i=0;i<t.state.keyMaps.length;i++){var n=Qo(e,t.state.keyMaps[i],r,t);if(n)return n}return t.options.extraKeys&&Qo(e,t.options.extraKeys,r,t)||Qo(e,t.options.keyMap,r,t)}(t,e,i);return"multi"==n&&(t.state.keySeq=e),"handled"==n&&mr(t,"keyHandled",t,e,r),"handled"!=n&&"multi"!=n||(At(r),Ei(t)),!!n}function ps(e,t){var r=Jo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?us(e,"Shift-"+r,t,function(t){return hs(e,t,!0)})||us(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return hs(e,t)}):us(e,r,t,function(t){return hs(e,t)}))}var ds=null;function ms(t){if(this.curOp.focus=I(),!wt(this,t)){T&&k<11&&27==t.keyCode&&(t.returnValue=!1);var e=t.keyCode;this.display.shift=16==e||t.shiftKey;var r,i=ps(this,t);g&&(ds=i?e:null,!i&&88==e&&!Wt&&(x?t.metaKey:t.ctrlKey)&&this.replaceSelection("",null,"cut")),m&&!x&&!i&&46==e&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=e||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||(R(r=this.display.lineDiv,"CodeMirror-crosshair"),xt(document,"keyup",n),xt(document,"mouseover",n))}function n(t){18!=t.keyCode&&t.altKey||(C(r,"CodeMirror-crosshair"),kt(document,"keyup",n),kt(document,"mouseover",n))}}function gs(t){16==t.keyCode&&(this.doc.sel.shift=!1),wt(this,t)}function _s(t){if(!(Ar(this.display,t)||wt(this,t)||t.ctrlKey&&!t.altKey||x&&t.metaKey)){var e=t.keyCode,r=t.charCode;if(g&&e==ds)return ds=null,void At(t);if(!g||t.which&&!(t.which<10)||!ps(this,t)){var i,n=String.fromCharCode(null==r?e:r);if("\b"!=n)if(!us(i=this,"'"+n+"'",t,function(t){return hs(i,t,!0)}))this.display.input.onKeyPress(t)}}}var vs,ys,xs=function(t,e,r){this.time=t,this.pos=e,this.button=r};function Ts(t){var e=this,r=e.display;if(!(wt(e,t)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=t.shiftKey,Ar(r,t))y||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!ws(e,t)){var i,n,o,s=pi(e,t),a=Rt(t),l=s?(i=s,n=a,o=+new Date,ys&&ys.compare(o,i,n)?(vs=ys=null,"triple"):vs&&vs.compare(o,i,n)?(ys=new xs(o,i,n),vs=null,"double"):(vs=new xs(o,i,n),ys=null,"single")):"single";window.focus(),1==a&&e.state.selectingText&&e.state.selectingText(t),s&&function(r,t,i,e,n){var o="Click";"double"==e?o="Double"+o:"triple"==e&&(o="Triple"+o);return us(r,Zo(o=(1==t?"Left":2==t?"Middle":"Right")+o,n),n,function(t){if("string"==typeof t&&(t=ss[t]),!t)return!1;var e=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),e=t(r,i)!=W}finally{r.state.suppressEdits=!1}return e})}(e,a,s,l,t)||(1==a?s?function(t,e,r,i){T?setTimeout(P(Ci,t),0):t.curOp.focus=I();var n,o=function(t,e,r){var i=t.getOption("configureMouse"),n=i?i(t,e,r):{};if(null==n.unit){var o=p?r.shiftKey&&r.metaKey:r.altKey;n.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}null!=n.extend&&!t.doc.extend||(n.extend=t.doc.extend||r.shiftKey);null==n.addNew&&(n.addNew=x?r.metaKey:r.ctrlKey);null==n.moveOnDrag&&(n.moveOnDrag=!(x?r.altKey:r.ctrlKey));return n}(t,r,i),s=t.doc.sel;(t.options.dragDrop&&Pt&&!t.isReadOnly()&&"single"==r&&-1<(n=s.contains(e))&&(he((n=s.ranges[n]).from(),e)<0||0<e.xRel)&&(0<he(n.to(),e)||e.xRel<0)?function(e,r,i,n){var o=e.display,s=!1,a=nn(e,function(t){y&&(o.scroller.draggable=!1),e.state.draggingText=!1,kt(o.wrapper.ownerDocument,"mouseup",a),kt(o.wrapper.ownerDocument,"mousemove",l),kt(o.scroller,"dragstart",h),kt(o.scroller,"drop",a),s||(At(t),n.addNew||Zn(e.doc,i,null,null,n.extend),y||T&&9==k?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),l=function(t){s=s||10<=Math.abs(r.clientX-t.clientX)+Math.abs(r.clientY-t.clientY)},h=function(){return s=!0};y&&(o.scroller.draggable=!0);(e.state.draggingText=a).copy=!n.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop();xt(o.wrapper.ownerDocument,"mouseup",a),xt(o.wrapper.ownerDocument,"mousemove",l),xt(o.scroller,"dragstart",h),xt(o.scroller,"drop",a),Si(e),setTimeout(function(){return o.input.focus()},20)}:function(g,t,_,v){var s=g.display,y=g.doc;At(t);var x,T,k=y.sel,e=k.ranges;v.addNew&&!v.extend?(T=y.sel.contains(_),x=-1<T?e[T]:new Sn(_,_)):(x=y.sel.primary(),T=y.sel.primIndex);if("rectangle"==v.unit)v.addNew||(x=new Sn(_,_)),_=pi(g,t,!0,!0),T=-1;else{var r=ks(g,_,v.unit);x=v.extend?Xn(x,r.anchor,r.head,v.extend):r}v.addNew?-1==T?(T=e.length,io(y,An(g,e.concat([x]),T),{scroll:!1,origin:"*mouse"})):1<e.length&&e[T].empty()&&"char"==v.unit&&!v.extend?(io(y,An(g,e.slice(0,T).concat(e.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),k=y.sel):to(y,T,x,G):(io(y,new Cn([x],T=0),G),k=y.sel);var b=_;function a(t){if(0!=he(b,t))if(b=t,"rectangle"==v.unit){for(var e=[],r=g.options.tabSize,i=U(te(y,_.line).text,_.ch,r),n=U(te(y,t.line).text,t.ch,r),o=Math.min(i,n),s=Math.max(i,n),a=Math.min(_.line,t.line),l=Math.min(g.lastLine(),Math.max(_.line,t.line));a<=l;a++){var h=te(y,a).text,c=V(h,o,r);o==s?e.push(new Sn(le(a,c),le(a,c))):h.length>c&&e.push(new Sn(le(a,c),le(a,V(h,s,r))))}e.length||e.push(new Sn(_,_)),io(y,An(g,k.ranges.slice(0,T).concat(e),T),{origin:"*mouse",scroll:!1}),g.scrollIntoView(t)}else{var u,f=x,p=ks(g,t,v.unit),d=f.anchor;d=0<he(p.anchor,d)?(u=p.head,pe(f.from(),p.anchor)):(u=p.anchor,fe(f.to(),p.head));var m=k.ranges.slice(0);m[T]=function(t,e){var r=e.anchor,i=e.head,n=te(t.doc,r.line);if(0==he(r,i)&&r.sticky==i.sticky)return e;var o=vt(n);if(!o)return e;var s=lt(o,r.ch,r.sticky),a=o[s];if(a.from!=r.ch&&a.to!=r.ch)return e;var l,h=s+(a.from==r.ch==(1!=a.level)?0:1);if(0==h||h==o.length)return e;if(i.line!=r.line)l=0<(i.line-r.line)*("ltr"==t.doc.direction?1:-1);else{var c=lt(o,i.ch,i.sticky),u=c-s||(i.ch-r.ch)*(1==a.level?-1:1);l=c==h-1||c==h?u<0:0<u}var f=o[h+(l?-1:0)],p=l==(1==f.level),d=p?f.from:f.to,m=p?"after":"before";return r.ch==d&&r.sticky==m?e:new Sn(new le(r.line,d,m),i)}(g,new Sn(me(y,d),u)),io(y,An(g,m,T),G)}}var l=s.wrapper.getBoundingClientRect(),h=0;function i(t){g.state.selectingText=!1,h=1/0,t&&(At(t),s.input.focus()),kt(s.wrapper.ownerDocument,"mousemove",n),kt(s.wrapper.ownerDocument,"mouseup",o),y.history.lastSelOrigin=null}var n=nn(g,function(t){(0!==t.buttons&&Rt(t)?function t(e){var r=++h,i=pi(g,e,!0,"rectangle"==v.unit);if(i)if(0!=he(i,b)){g.curOp.focus=I(),a(i);var n=Ii(s,y);(i.line>=n.to||i.line<n.from)&&setTimeout(nn(g,function(){h==r&&t(e)}),150)}else{var o=e.clientY<l.top?-20:e.clientY>l.bottom?20:0;o&&setTimeout(nn(g,function(){h==r&&(s.scroller.scrollTop+=o,t(e))}),50)}}:i)(t)}),o=nn(g,i);g.state.selectingText=o,xt(s.wrapper.ownerDocument,"mousemove",n),xt(s.wrapper.ownerDocument,"mouseup",o)})(t,i,e,o)}(e,s,l,t):It(t)==r.scroller&&At(t):2==a?(s&&Zn(e.doc,s),setTimeout(function(){return r.input.focus()},20)):3==a&&(b?e.display.input.onContextMenu(t):Si(e)))}}function ks(t,e,r){if("char"==r)return new Sn(e,e);if("word"==r)return t.findWordAt(e);if("line"==r)return new Sn(le(e.line,0),me(t.doc,le(e.line+1,0)));var i=r(t,e);return new Sn(i.from,i.to)}function bs(t,e,r,i){var n,o;if(e.touches)n=e.touches[0].clientX,o=e.touches[0].clientY;else try{n=e.clientX,o=e.clientY}catch(e){return!1}if(n>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&At(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ct(t,r))return Nt(e);o-=a.top-s.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var h=s.gutters.childNodes[l];if(h&&h.getBoundingClientRect().right>=n)return bt(t,r,t,oe(t.doc,o),t.display.gutterSpecs[l].className,e),Nt(e)}}function ws(t,e){return bs(t,e,"gutterClick",!0)}function Es(t,e){var r,i;Ar(t.display,e)||(i=e,Ct(r=t,"gutterContextMenu")&&bs(r,i,"gutterContextMenu",!1))||wt(t,e,"contextmenu")||b||t.display.input.onContextMenu(e)}function Cs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vr(t)}xs.prototype.compare=function(t,e,r){return this.time+400>t&&0==he(e,this.pos)&&r==this.button};var Ss={toString:function(){return"CodeMirror.Init"}},As={},Ls={};function Ns(t,e,r){if(!e!=!(r&&r!=Ss)){var i=t.display.dragFunctions,n=e?xt:kt;n(t.display.scroller,"dragstart",i.start),n(t.display.scroller,"dragenter",i.enter),n(t.display.scroller,"dragover",i.over),n(t.display.scroller,"dragleave",i.leave),n(t.display.scroller,"drop",i.drop)}}function Os(t){t.options.lineWrapping?(R(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),Je(t)),fi(t),mi(t),Vr(t),setTimeout(function(){return ji(t)},100)}function Is(t,e){var r=this;if(!(this instanceof Is))return new Is(t,e);this.options=e=e?B(e):{},B(As,e,!1);var i=e.value;"string"==typeof i?i=new Do(i,e.mode,null,e.lineSeparator,e.direction):e.mode&&(i.modeOption=e.mode),this.doc=i;var n=new Is.inputStyles[e.inputStyle](this),o=this.display=new xn(t,i,n,e);for(var s in Cs(o.wrapper.CodeMirror=this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ki(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!f&&o.input.focus(),T&&k<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(n){var o=n.display;xt(o.scroller,"mousedown",nn(n,Ts)),xt(o.scroller,"dblclick",T&&k<11?nn(n,function(t){if(!wt(n,t)){var e=pi(n,t);if(e&&!ws(n,t)&&!Ar(n.display,t)){At(t);var r=n.findWordAt(e);Zn(n.doc,r.anchor,r.head)}}}):function(t){return wt(n,t)||At(t)});xt(o.scroller,"contextmenu",function(t){return Es(n,t)});var r,i={end:0};function s(){o.activeTouch&&(r=setTimeout(function(){return o.activeTouch=null},1e3),(i=o.activeTouch).end=+new Date)}function a(t,e){if(null==e.left)return 1;var r=e.left-t.left,i=e.top-t.top;return 400<r*r+i*i}xt(o.scroller,"touchstart",function(t){if(!wt(n,t)&&!function(t){if(1==t.touches.length){var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}}(t)&&!ws(n,t)){o.input.ensurePolled(),clearTimeout(r);var e=+new Date;o.activeTouch={start:e,moved:!1,prev:e-i.end<=300?i:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),xt(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),xt(o.scroller,"touchend",function(t){var e=o.activeTouch;if(e&&!Ar(o,t)&&null!=e.left&&!e.moved&&new Date-e.start<300){var r,i=n.coordsChar(o.activeTouch,"page");r=!e.prev||a(e,e.prev)?new Sn(i,i):!e.prev.prev||a(e,e.prev.prev)?n.findWordAt(i):new Sn(le(i.line,0),me(n.doc,le(i.line+1,0))),n.setSelection(r.anchor,r.head),n.focus(),At(t)}s()}),xt(o.scroller,"touchcancel",s),xt(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Fi(n,o.scroller.scrollTop),zi(n,o.scroller.scrollLeft,!0),bt(n,"scroll",n))}),xt(o.scroller,"mousewheel",function(t){return En(n,t)}),xt(o.scroller,"DOMMouseScroll",function(t){return En(n,t)}),xt(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){wt(n,t)||Ot(t)},over:function(t){wt(n,t)||(function(t,e){var r=pi(t,e);if(r){var i=document.createDocumentFragment();ki(t,r,i),t.display.dragCursor||(t.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,i)}}(n,t),Ot(t))},start:function(t){return function(t,e){if(T&&(!t.state.draggingText||new Date-Po<100))Ot(e);else if(!wt(t,e)&&!Ar(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!l)){var r=N("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(r.width=r.height=1,t.display.wrapper.appendChild(r),r._top=r.offsetTop),e.dataTransfer.setDragImage(r,0,0),g&&r.parentNode.removeChild(r)}}(n,t)},drop:nn(n,Bo),leave:function(t){wt(n,t)||Uo(n)}};var t=o.input.getField();xt(t,"keyup",function(t){return gs.call(n,t)}),xt(t,"keydown",nn(n,ms)),xt(t,"keypress",nn(n,_s)),xt(t,"focus",function(t){return Ai(n,t)}),xt(t,"blur",function(t){return Li(n,t)})}(this),zo(),Qi(this),this.curOp.forceUpdate=!0,Fn(this,i),e.autofocus&&!f||this.hasFocus()?setTimeout(P(Ai,this),20):Li(this),Ls)Ls.hasOwnProperty(s)&&Ls[s](this,e[s],Ss);gn(this),e.finishInit&&e.finishInit(this);for(var a=0;a<Rs.length;++a)Rs[a](this);Xi(this),y&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Is.defaults=As,Is.optionHandlers=Ls;var Rs=[];function Ms(t,e,r,i){var n,o=t.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?n=Te(t,e).state:r="prev");var s=t.options.tabSize,a=te(o,e),l=U(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var h,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==r&&((h=o.mode.indent(n,a.text.slice(c.length),a.text))==W||150<h)){if(!i)return;r="prev"}}else h=0,r="not";"prev"==r?h=e>o.first?U(te(o,e-1).text,null,s):0:"add"==r?h=l+t.options.indentUnit:"subtract"==r?h=l-t.options.indentUnit:"number"==typeof r&&(h=l+r),h=Math.max(0,h);var u="",f=0;if(t.options.indentWithTabs)for(var p=Math.floor(h/s);p;--p)f+=s,u+="\t";if(f<h&&(u+=K(h-f)),u!=c)return yo(o,u,le(e,0),le(e,c.length),"+input"),!(a.stateAfter=null);for(var d=0;d<o.sel.ranges.length;d++){var m=o.sel.ranges[d];if(m.head.line==e&&m.head.ch<c.length){var g=le(e,c.length);to(o,d,new Sn(g,g));break}}}Is.defineInitHook=function(t){return Rs.push(t)};var Ds=null;function Ps(t){Ds=t}function Bs(t,e,r,i,n){var o=t.doc;t.display.shift=!1,i=i||o.sel;var s=new Date-200,a="paste"==n||t.state.pasteIncoming>s,l=Ht(e),h=null;if(a&&1<i.ranges.length)if(Ds&&Ds.text.join("\n")==e){if(i.ranges.length%Ds.text.length==0){h=[];for(var c=0;c<Ds.text.length;c++)h.push(o.splitLines(Ds.text[c]))}}else l.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(h=Q(l,function(t){return[t]}));for(var u=t.curOp.updateInput,f=i.ranges.length-1;0<=f;f--){var p=i.ranges[f],d=p.from(),m=p.to();p.empty()&&(r&&0<r?d=le(d.line,d.ch-r):t.state.overwrite&&!a?m=le(m.line,Math.min(te(o,m.line).text.length,m.ch+$(l).length)):a&&Ds&&Ds.lineWise&&Ds.text.join("\n")==e&&(d=m=le(d.line,0)));var g={from:d,to:m,text:h?h[f%h.length]:l,origin:n||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};po(t.doc,g),mr(t,"inputRead",t,g)}e&&!a&&Fs(t,e),Di(t),t.curOp.updateInput<2&&(t.curOp.updateInput=u),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Us(t,e){var r=t.clipboardData&&t.clipboardData.getData("Text");return r&&(t.preventDefault(),e.isReadOnly()||e.options.disableInput||rn(e,function(){return Bs(e,r,0,null,"paste")}),1)}function Fs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var r=t.doc.sel,i=r.ranges.length-1;0<=i;i--){var n=r.ranges[i];if(!(100<n.head.ch||i&&r.ranges[i-1].head.line==n.head.line)){var o=t.getModeAt(n.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(-1<e.indexOf(o.electricChars.charAt(a))){s=Ms(t,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(te(t.doc,n.head.line).text.slice(0,n.head.ch))&&(s=Ms(t,n.head.line,"smart"));s&&mr(t,"electricInput",t,n.head.line)}}}function Hs(t){for(var e=[],r=[],i=0;i<t.doc.sel.ranges.length;i++){var n=t.doc.sel.ranges[i].head.line,o={anchor:le(n,0),head:le(n+1,0)};r.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:r}}function zs(t,e,r,i){t.setAttribute("autocorrect",r?"":"off"),t.setAttribute("autocapitalize",i?"":"off"),t.setAttribute("spellcheck",!!e)}function Ws(){var t=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=N("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?t.style.width="1000px":t.setAttribute("wrap","off"),c&&(t.style.border="1px solid black"),zs(t),e}function qs(i,n,o,t,s){var e=n,r=o,a=te(i,n.line);function l(t){var e,r;if(null==(e=s?os(i.cm,a,n,o):is(a,n,o))){if(t||(r=n.line+o)<i.first||r>=i.first+i.size||(n=new le(r,n.ch,n.sticky),!(a=te(i,r))))return;n=ns(s,i.cm,a,n.line,o)}else n=e;return 1}if("char"==t)l();else if("column"==t)l(!0);else if("word"==t||"group"==t)for(var h=null,c="group"==t,u=i.cm&&i.cm.getHelper(n,"wordChars"),f=!0;!(o<0)||l(!f);f=!1){var p=a.text.charAt(n.ch)||"\n",d=et(p,u)?"w":c&&"\n"==p?"n":!c||/\s/.test(p)?null:"p";if(!c||f||d||(d="s"),h&&h!=d){o<0&&(o=1,l(),n.sticky="after");break}if(d&&(h=d),0<o&&!l(!f))break}var m=ho(i,n,e,r,!0);return ce(e,m)&&(m.hitSide=!0),m}function Gs(t,e,r,i){var n,o,s=t.doc,a=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),h=Math.max(l-.5*ai(t.display),3);n=(0<r?e.bottom:e.top)+r*h}else"line"==i&&(n=0<r?e.bottom+3:e.top-3);for(;(o=ri(t,a,n)).outside;){if(r<0?n<=0:n>=s.height){o.hitSide=!0;break}n+=5*r}return o}function js(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Vs(t,e){var r=Br(t,e.line);if(!r||r.hidden)return null;var i=te(t.doc,e.line),n=Dr(r,i,e.line),o=vt(i,t.doc.direction),s="left";o&&(s=lt(o,e.ch)%2?"right":"left");var a=Wr(n.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Ys(t,e){return e&&(t.bad=!0),t}function Ks(t,e,r){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[r]))return Ys(t.clipPos(le(t.display.viewTo-1)),!0);e=null,r=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var n=0;n<t.display.view.length;n++){var o=t.display.view[n];if(o.node==i)return $s(o,e,r)}}function $s(h,t,e){var r=h.text.firstChild,i=!1;if(!t||!O(r,t))return Ys(le(ne(h.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[e],e=0,!t)){var n=h.rest?$(h.rest):h.line;return Ys(le(ne(n),n.text.length),i)}var o=3==t.nodeType?t:null,s=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,e=e&&o.nodeValue.length);s.parentNode!=r;)s=s.parentNode;var c=h.measure,u=c.maps;function a(t,e,r){for(var i=-1;i<(u?u.length:0);i++)for(var n=i<0?c.map:u[i],o=0;o<n.length;o+=3){var s=n[o+2];if(s==t||s==e){var a=ne(i<0?h.line:h.rest[i]),l=n[o]+r;return(r<0||s!=t)&&(l=n[o+(r?1:0)]),le(a,l)}}}var l=a(o,s,e);if(l)return Ys(l,i);for(var f=s.nextSibling,p=o?o.nodeValue.length-e:0;f;f=f.nextSibling){if(l=a(f,f.firstChild,0))return Ys(le(l.line,l.ch-p),i);p+=f.textContent.length}for(var d=s.previousSibling,m=e;d;d=d.previousSibling){if(l=a(d,d.firstChild,-1))return Ys(le(l.line,l.ch+m),i);m+=d.textContent.length}}js.prototype.init=function(t){var e=this,s=this,a=s.cm,l=s.div=t.lineDiv;function r(t){if(!wt(a,t)){if(a.somethingSelected())Ps({lineWise:!1,text:a.getSelections()}),"cut"==t.type&&a.replaceSelection("",null,"cut");else{if(!a.options.lineWiseCopyCut)return;var e=Hs(a);Ps({lineWise:!0,text:e.text}),"cut"==t.type&&a.operation(function(){a.setSelections(e.ranges,0,q),a.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var r=Ds.text.join("\n");if(t.clipboardData.setData("Text",r),t.clipboardData.getData("Text")==r)return void t.preventDefault()}var i=Ws(),n=i.firstChild;a.display.lineSpace.insertBefore(i,a.display.lineSpace.firstChild),n.value=Ds.text.join("\n");var o=document.activeElement;D(n),setTimeout(function(){a.display.lineSpace.removeChild(i),o.focus(),o==l&&s.showPrimarySelection()},50)}}zs(l,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize),xt(l,"paste",function(t){wt(a,t)||Us(t,a)||k<=11&&setTimeout(nn(a,function(){return e.updateFromDOM()}),20)}),xt(l,"compositionstart",function(t){e.composing={data:t.data,done:!1}}),xt(l,"compositionupdate",function(t){e.composing||(e.composing={data:t.data,done:!1})}),xt(l,"compositionend",function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)}),xt(l,"touchstart",function(){return s.forceCompositionEnd()}),xt(l,"input",function(){e.composing||e.readFromDOMSoon()}),xt(l,"copy",r),xt(l,"cut",r)},js.prototype.prepareSelection=function(){var t=Ti(this.cm,!1);return t.focus=this.cm.state.focused,t},js.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},js.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),n=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||n.line<e.display.viewFrom)t.removeAllRanges();else{var o=Ks(e,t.anchorNode,t.anchorOffset),s=Ks(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=he(pe(o,s),i)||0!=he(fe(o,s),n)){var a=e.display.view,l=i.line>=e.display.viewFrom&&Vs(e,i)||{node:a[0].measure.map[2],offset:0},h=n.line<e.display.viewTo&&Vs(e,n);if(!h){var c=a[a.length-1].measure,u=c.maps?c.maps[c.maps.length-1]:c.map;h={node:u[u.length-1],offset:u[u.length-2]-u[u.length-3]}}if(l&&h){var f,p=t.rangeCount&&t.getRangeAt(0);try{f=E(l.node,l.offset,h.offset,h.node)}catch(t){}f&&(!m&&e.state.focused?(t.collapse(l.node,l.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),p&&null==t.anchorNode?t.addRange(p):m&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},js.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},js.prototype.showMultipleSelections=function(t){A(this.cm.display.cursorDiv,t.cursors),A(this.cm.display.selectionDiv,t.selection)},js.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},js.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return O(this.div,e)},js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},js.prototype.blur=function(){this.div.blur()},js.prototype.getField=function(){return this.div},js.prototype.supportsTouch=function(){return!0},js.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():rn(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},js.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(u&&s&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return 1;return}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=Ks(e,t.anchorNode,t.anchorOffset),i=Ks(e,t.focusNode,t.focusOffset);r&&i&&rn(e,function(){io(e.doc,Ln(r,i),q),(r.bad||i.bad)&&(e.curOp.selectionChanged=!0)})}}},js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,r,i=this.cm,n=i.display,o=i.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>i.firstLine()&&(s=le(s.line-1,te(i.doc,s.line-1).length)),a.ch==te(i.doc,a.line).text.length&&a.line<i.lastLine()&&(a=le(a.line+1,0)),s.line<n.viewFrom||a.line>n.viewTo-1)return!1;r=s.line==n.viewFrom||0==(t=di(i,s.line))?(e=ne(n.view[0].line),n.view[0].node):(e=ne(n.view[t].line),n.view[t-1].node.nextSibling);var l,h,c=di(i,a.line);if(h=c==n.view.length-1?(l=n.viewTo-1,n.lineDiv.lastChild):(l=ne(n.view[c+1].line)-1,n.view[c+1].node.previousSibling),!r)return!1;for(var u=i.doc.splitLines(function(l,t,e,h,c){var r="",u=!1,f=l.doc.lineSeparator(),p=!1;function d(){u&&(r+=f,p&&(r+=f),u=p=!1)}function m(t){t&&(d(),r+=t)}function g(t){if(1==t.nodeType){var e=t.getAttribute("cm-text");if(e)return void m(e);var r,i=t.getAttribute("cm-marker");if(i){var n=l.findMarks(le(h,0),le(c+1,0),(a=+i,function(t){return t.id==a}));return void(n.length&&(r=n[0].find(0))&&m(ee(l.doc,r.from,r.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var o=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;o&&d();for(var s=0;s<t.childNodes.length;s++)g(t.childNodes[s]);/^(pre|p)$/i.test(t.nodeName)&&(p=!0),o&&(u=!0)}else 3==t.nodeType&&m(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var a}for(;g(t),t!=e;)t=t.nextSibling,p=!1;return r}(i,r,h,e,l)),f=ee(i.doc,le(e,0),le(l,te(i.doc,l).text.length));1<u.length&&1<f.length;)if($(u)==$(f))u.pop(),f.pop(),l--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),e++}for(var p=0,d=0,m=u[0],g=f[0],_=Math.min(m.length,g.length);p<_&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var v=$(u),y=$(f),x=Math.min(v.length-(1==u.length?p:0),y.length-(1==f.length?p:0));d<x&&v.charCodeAt(v.length-d-1)==y.charCodeAt(y.length-d-1);)++d;if(1==u.length&&1==f.length&&e==s.line)for(;p&&p>s.ch&&v.charCodeAt(v.length-d-1)==y.charCodeAt(y.length-d-1);)p--,d++;u[u.length-1]=v.slice(0,v.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(p).replace(/\u200b+$/,"");var T=le(e,p),k=le(l,f.length?$(f).length-d:0);return 1<u.length||u[0]||he(T,k)?(yo(i.doc,u,T,k,"+input"),!0):void 0},js.prototype.ensurePolled=function(){this.forceCompositionEnd()},js.prototype.reset=function(){this.forceCompositionEnd()},js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||rn(this.cm,function(){return mi(t.cm)})},js.prototype.setUneditable=function(t){t.contentEditable="false"},js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||nn(this.cm,Bs)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},js.prototype.onContextMenu=function(){},js.prototype.resetPosition=function(){},js.prototype.needsContentAttribute=!0;function Qs(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null}var Xs,Zs,Js,ta,ea;function ra(t,e,i,r){Xs.defaults[t]=e,i&&(Zs[t]=r?function(t,e,r){r!=Ss&&i(t,e,r)}:i)}Qs.prototype.init=function(r){var t=this,i=this,n=this.cm;this.createField(r);var o=this.textarea;function e(t){if(!wt(n,t)){if(n.somethingSelected())Ps({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var e=Hs(n);Ps({lineWise:!0,text:e.text}),"cut"==t.type?n.setSelections(e.ranges,null,q):(i.prevInput="",o.value=e.text.join("\n"),D(o))}"cut"==t.type&&(n.state.cutIncoming=+new Date)}}r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),c&&(o.style.width="0px"),xt(o,"input",function(){T&&9<=k&&t.hasSelection&&(t.hasSelection=null),i.poll()}),xt(o,"paste",function(t){wt(n,t)||Us(t,n)||(n.state.pasteIncoming=+new Date,i.fastPoll())}),xt(o,"cut",e),xt(o,"copy",e),xt(r.scroller,"paste",function(t){if(!Ar(r,t)&&!wt(n,t)){if(!o.dispatchEvent)return n.state.pasteIncoming=+new Date,void i.focus();var e=new Event("paste");e.clipboardData=t.clipboardData,o.dispatchEvent(e)}}),xt(r.lineSpace,"selectstart",function(t){Ar(r,t)||At(t)}),xt(o,"compositionstart",function(){var t=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:t,range:n.markText(t,n.getCursor("to"),{className:"CodeMirror-composing"})}}),xt(o,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Qs.prototype.createField=function(t){this.wrapper=Ws(),this.textarea=this.wrapper.firstChild},Qs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,r=t.doc,i=Ti(t);if(t.options.moveInputWithCursor){var n=Jr(t,r.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,n.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,n.left+s.left-o.left))}return i},Qs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Qs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var r=e.getSelection();this.textarea.value=r,e.state.focused&&D(this.textarea),T&&9<=k&&(this.hasSelection=r)}else t||(this.prevInput=this.textarea.value="",T&&9<=k&&(this.hasSelection=null))}},Qs.prototype.getField=function(){return this.textarea},Qs.prototype.supportsTouch=function(){return!1},Qs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!f||I()!=this.textarea))try{this.textarea.focus()}catch(t){}},Qs.prototype.blur=function(){this.textarea.blur()},Qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qs.prototype.receivedFocus=function(){this.slowPoll()},Qs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Qs.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0,r.polling.set(20,function t(){r.poll()||e?(r.pollingFast=!1,r.slowPoll()):(e=!0,r.polling.set(60,t))})},Qs.prototype.poll=function(){var t=this,e=this.cm,r=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||zt(r)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var n=r.value;if(n==i&&!e.somethingSelected())return!1;if(T&&9<=k&&this.hasSelection===n||x&&/[\uf700-\uf7ff]/.test(n))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=n.charCodeAt(0);if(8203!=o||i||(i=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,a=Math.min(i.length,n.length);s<a&&i.charCodeAt(s)==n.charCodeAt(s);)++s;return rn(e,function(){Bs(e,n.slice(s),i.length-s,null,t.composing?"*compose":null),1e3<n.length||-1<n.indexOf("\n")?r.value=t.prevInput="":t.prevInput=n,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qs.prototype.onKeyPress=function(){T&&9<=k&&(this.hasSelection=null),this.fastPoll()},Qs.prototype.onContextMenu=function(t){var r=this,i=r.cm,n=i.display,o=r.textarea;r.contextMenuPending&&r.contextMenuPending();var e=pi(i,t),s=n.scroller.scrollTop;if(e&&!g){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(e)&&nn(i,io)(i.doc,Ln(e),q);var a,l=o.style.cssText,h=r.wrapper.style.cssText,c=r.wrapper.offsetParent.getBoundingClientRect();if(r.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-c.top-5)+"px; left: "+(t.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(T?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",y&&(a=window.scrollY),n.input.focus(),y&&window.scrollTo(null,a),n.input.reset(),i.somethingSelected()||(o.value=r.prevInput=" "),r.contextMenuPending=p,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll),T&&9<=k&&f(),b){Ot(t);var u=function(){kt(window,"mouseup",u),setTimeout(p,20)};xt(window,"mouseup",u)}else setTimeout(p,50)}function f(){if(null!=o.selectionStart){var t=i.somethingSelected(),e=""+(t?o.value:"");o.value="⇚",o.value=e,r.prevInput=t?"":"",o.selectionStart=1,o.selectionEnd=e.length,n.selForContextMenu=i.doc.sel}}function p(){if(r.contextMenuPending==p&&(r.contextMenuPending=!1,r.wrapper.style.cssText=h,o.style.cssText=l,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=s),null!=o.selectionStart)){(!T||T&&k<9)&&f();var t=0,e=function(){n.selForContextMenu==i.doc.sel&&0==o.selectionStart&&0<o.selectionEnd&&""==r.prevInput?nn(i,uo)(i):t++<10?n.detectingSelectAll=setTimeout(e,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(e,200)}}},Qs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Qs.prototype.setUneditable=function(){},Qs.prototype.needsContentAttribute=!1,Zs=(Xs=Is).optionHandlers,Xs.defineOption=ra,Xs.Init=Ss,ra("value","",function(t,e){return t.setValue(e)},!0),ra("mode",null,function(t,e){t.doc.modeOption=e,Mn(t)},!0),ra("indentUnit",2,Mn,!0),ra("indentWithTabs",!1),ra("smartIndent",!0),ra("tabSize",4,function(t){Dn(t),Vr(t),mi(t)},!0),ra("lineSeparator",null,function(t,i){if(t.doc.lineSep=i){var n=[],o=t.doc.first;t.doc.iter(function(t){for(var e=0;;){var r=t.text.indexOf(i,e);if(-1==r)break;e=r+i.length,n.push(le(o,r))}o++});for(var e=n.length-1;0<=e;e--)yo(t.doc,i,n[e],le(n[e].line,n[e].ch+i.length))}}),ra("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(t,e,r){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),r!=Ss&&t.refresh()}),ra("specialCharPlaceholder",or,function(t){return t.refresh()},!0),ra("electricChars",!0),ra("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ra("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),ra("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),ra("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),ra("rtlMoveVisually",!d),ra("wholeLineUpdateBefore",!0),ra("theme","default",function(t){Cs(t),yn(t)},!0),ra("keyMap","default",function(t,e,r){var i=ts(e),n=r!=Ss&&ts(r);n&&n.detach&&n.detach(t,i),i.attach&&i.attach(t,n||null)}),ra("extraKeys",null),ra("configureMouse",null),ra("lineWrapping",!1,Os,!0),ra("gutters",[],function(t,e){t.display.gutterSpecs=_n(e,t.options.lineNumbers),yn(t)},!0),ra("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?ci(t.display)+"px":"0",t.refresh()},!0),ra("coverGutterNextToScrollbar",!1,function(t){return ji(t)},!0),ra("scrollbarStyle","native",function(t){Ki(t),ji(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),ra("lineNumbers",!1,function(t,e){t.display.gutterSpecs=_n(t.options.gutters,e),yn(t)},!0),ra("firstLineNumber",1,yn,!0),ra("lineNumberFormatter",function(t){return t},yn,!0),ra("showCursorWhenSelecting",!1,xi,!0),ra("resetSelectionOnContextMenu",!0),ra("lineWiseCopyCut",!0),ra("pasteLinesPerSelection",!0),ra("selectionsMayTouch",!1),ra("readOnly",!1,function(t,e){"nocursor"==e&&(Li(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),ra("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),ra("dragDrop",!0,Ns),ra("allowDropFileTypes",null),ra("cursorBlinkRate",530),ra("cursorScrollMargin",0),ra("cursorHeight",1,xi,!0),ra("singleCursorHeightPerLine",!0,xi,!0),ra("workTime",100),ra("workDelay",100),ra("flattenSpans",!0,Dn,!0),ra("addModeClass",!1,Dn,!0),ra("pollInterval",100),ra("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),ra("historyEventDelay",1250),ra("viewportMargin",10,function(t){return t.refresh()},!0),ra("maxHighlightLength",1e4,Dn,!0),ra("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),ra("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),ra("autofocus",null),ra("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),ra("phrases",null),ta=(Js=Is).optionHandlers,ea=Js.helpers={},Js.prototype={constructor:Js,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,e){var r=this.options,i=r[t];r[t]==e&&"mode"!=t||(r[t]=e,ta.hasOwnProperty(t)&&nn(this,ta[t])(this,e,i),bt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](ts(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,r=0;r<e.length;++r)if(e[r]==t||e[r].name==t)return e.splice(r,1),!0},addOverlay:on(function(t,e){var r=t.token?t:Js.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,r){for(var i=0,n=r(e);i<t.length&&r(t[i])<=n;)i++;t.splice(i,0,e)}(this.state.overlays,{mode:r,modeSpec:t,opaque:e&&e.opaque,priority:e&&e.priority||0},function(t){return t.priority}),this.state.modeGen++,mi(this)}),removeOverlay:on(function(t){for(var e=this.state.overlays,r=0;r<e.length;++r){var i=e[r].modeSpec;if(i==t||"string"==typeof t&&i.name==t)return e.splice(r,1),this.state.modeGen++,void mi(this)}}),indentLine:on(function(t,e,r){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),se(this.doc,t)&&Ms(this,t,e,r)}),indentSelection:on(function(t){for(var e=this.doc.sel.ranges,r=-1,i=0;i<e.length;i++){var n=e[i];if(n.empty())n.head.line>r&&(Ms(this,n.head.line,t,!0),r=n.head.line,i==this.doc.sel.primIndex&&Di(this));else{var o=n.from(),s=n.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<r;++l)Ms(this,l,t);var h=this.doc.sel.ranges;0==o.ch&&e.length==h.length&&0<h[i].from().ch&&to(this.doc,i,new Sn(o,h[i].to()),q)}}}),getTokenAt:function(t,e){return Ce(this,t,e)},getLineTokens:function(t,e){return Ce(this,le(t),e,!0)},getTokenTypeAt:function(t){t=me(this.doc,t);var e,r=xe(this,te(this.doc,t.line)),i=0,n=(r.length-1)/2,o=t.ch;if(0==o)e=r[2];else for(;;){var s=i+n>>1;if((s?r[2*s-1]:0)>=o)n=s;else{if(!(r[2*s+1]<o)){e=r[2*s+2];break}i=1+s}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(t){var e=this.doc.mode;return e.innerMode?Js.innerMode(e,this.getTokenAt(t).state).mode:e},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!ea.hasOwnProperty(e))return r;var i=ea[e],n=this.getModeAt(t);if("string"==typeof n[e])i[n[e]]&&r.push(i[n[e]]);else if(n[e])for(var o=0;o<n[e].length;o++){var s=i[n[e][o]];s&&r.push(s)}else n.helperType&&i[n.helperType]?r.push(i[n.helperType]):i[n.name]&&r.push(i[n.name]);for(var a=0;a<i._global.length;a++){var l=i._global[a];l.pred(n,this)&&-1==H(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var r=this.doc;return Te(this,(t=de(r,null==t?r.first+r.size-1:t))+1,e).state},cursorCoords:function(t,e){var r=this.doc.sel.primary();return Jr(this,null==t?r.head:"object"==typeof t?me(this.doc,t):t?r.from():r.to(),e||"page")},charCoords:function(t,e){return Zr(this,me(this.doc,t),e||"page")},coordsChar:function(t,e){return ri(this,(t=Xr(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Xr(this,{top:t,left:0},e||"page").top,oe(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,r){var i,n=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:o<t&&(t=o,n=!0),i=te(this.doc,t)}else i=t;return Qr(this,i,{top:0,left:0},e||"page",r||n).top+(n?this.doc.height-Xe(i):0)},defaultTextHeight:function(){return ai(this.display)},defaultCharWidth:function(){return li(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,r,i,n){var o,s,a,l=this.display,h=(t=Jr(this,me(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==i)h=t.top;else if("above"==i||"near"==i){var u=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?h=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(h=t.bottom),c+e.offsetWidth>f&&(c=f-e.offsetWidth)}e.style.top=h+"px",e.style.left=e.style.right="","right"==n?(c=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==n?c=0:"middle"==n&&(c=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),r&&(o=this,s={left:c,top:h,right:c+e.offsetWidth,bottom:h+e.offsetHeight},null!=(a=Ri(o,s)).scrollTop&&Fi(o,a.scrollTop),null!=a.scrollLeft&&zi(o,a.scrollLeft))},triggerOnKeyDown:on(ms),triggerOnKeyPress:on(_s),triggerOnKeyUp:gs,triggerOnMouseDown:on(Ts),execCommand:function(t){if(ss.hasOwnProperty(t))return ss[t].call(null,this)},triggerElectric:on(function(t){Fs(this,t)}),findPosH:function(t,e,r,i){var n=1;e<0&&(n=-1,e=-e);for(var o=me(this.doc,t),s=0;s<e&&!(o=qs(this.doc,o,n,r,i)).hitSide;++s);return o},moveH:on(function(e,r){var i=this;this.extendSelectionsBy(function(t){return i.display.shift||i.doc.extend||t.empty()?qs(i.doc,t.head,e,r,i.options.rtlMoveVisually):e<0?t.from():t.to()},j)}),deleteH:on(function(r,i){var t=this.doc.sel,n=this.doc;t.somethingSelected()?n.replaceSelection("",null,"+delete"):es(this,function(t){var e=qs(n,t.head,r,i,!1);return r<0?{from:e,to:t.head}:{from:t.head,to:e}})}),findPosV:function(t,e,r,i){var n=1,o=i;e<0&&(n=-1,e=-e);for(var s=me(this.doc,t),a=0;a<e;++a){var l=Jr(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Gs(this,l,n,r)).hitSide)break}return s},moveV:on(function(i,n){var o=this,s=this.doc,a=[],l=!this.display.shift&&!s.extend&&s.sel.somethingSelected();if(s.extendSelectionsBy(function(t){if(l)return i<0?t.from():t.to();var e=Jr(o,t.head,"div");null!=t.goalColumn&&(e.left=t.goalColumn),a.push(e.left);var r=Gs(o,e,i,n);return"page"==n&&t==s.sel.primary()&&Mi(o,Zr(o,r,"div").top-e.top),r},j),a.length)for(var t=0;t<s.sel.ranges.length;t++)s.sel.ranges[t].goalColumn=a[t]}),findWordAt:function(t){var e=te(this.doc,t.line).text,r=t.ch,i=t.ch;if(e){var n=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=e.length||!r?++i:--r;for(var o=e.charAt(r),s=et(o,n)?function(t){return et(t,n)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!et(t)};0<r&&s(e.charAt(r-1));)--r;for(;i<e.length&&s(e.charAt(i));)++i}return new Sn(le(t.line,r),le(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||(((this.state.overwrite=!this.state.overwrite)?R:C)(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:on(function(t,e){Pi(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Ir(this)-this.display.barHeight,width:t.scrollWidth-Ir(this)-this.display.barWidth,clientHeight:Mr(this),clientWidth:Rr(this)}},scrollIntoView:on(function(t,e){var r,i;null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:le(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?(i=t,Bi(r=this),r.curOp.scrollToPos=i):Ui(this,t.from,t.to,t.margin)}),setSize:on(function(t,e){function r(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t}var i=this;null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&jr(this);var n=this.display.viewFrom;this.doc.iter(n,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){gi(i,n,"widget");break}++n}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(t){return rn(this,t)},startOperation:function(){return Qi(this)},endOperation:function(){return Xi(this)},refresh:on(function(){var t=this.display.cachedTextHeight;mi(this),this.curOp.forceUpdate=!0,Vr(this),Pi(this,this.doc.scrollLeft,this.doc.scrollTop),pn(this.display),(null==t||.5<Math.abs(t-ai(this.display)))&&fi(this),bt(this,"refresh",this)}),swapDoc:on(function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Fn(this,t),Vr(this),this.display.input.reset(),Pi(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,mr(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},St(Js),Js.registerHelper=function(t,e,r){ea.hasOwnProperty(t)||(ea[t]=Js[t]={_global:[]}),ea[t][e]=r},Js.registerGlobalHelper=function(t,e,r,i){Js.registerHelper(t,e,i),ea[t]._global.push({pred:r,val:i})};var ia,na="iter insert remove copy getEditor constructor".split(" ");for(var oa in Do.prototype)Do.prototype.hasOwnProperty(oa)&&H(na,oa)<0&&(Is.prototype[oa]=function(t){return function(){return t.apply(this.doc,arguments)}}(Do.prototype[oa]));return St(Do),Is.inputStyles={textarea:Qs,contenteditable:js},Is.defineMode=function(t){Is.defaults.mode||"null"==t||(Is.defaults.mode=t),function(t,e){2<arguments.length&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Gt[t]=e}.apply(this,arguments)},Is.defineMIME=function(t,e){jt[t]=e},Is.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Is.defineMIME("text/plain","null"),Is.defineExtension=function(t,e){Is.prototype[t]=e},Is.defineDocExtension=function(t,e){Do.prototype[t]=e},Is.fromTextArea=function(e,r){if((r=r?B(r):{}).value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),null==r.autofocus){var t=I();r.autofocus=t==e||null!=e.getAttribute("autofocus")&&t==document.body}function i(){e.value=a.getValue()}var n;if(e.form&&(xt(e.form,"submit",i),!r.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var s=o.submit=function(){i(),o.submit=n,o.submit(),o.submit=s}}catch(t){}}r.finishInit=function(t){t.save=i,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,i(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(kt(e.form,"submit",i),r.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=n))}},e.style.display="none";var a=Is(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},r);return a},(ia=Is).off=kt,ia.on=xt,ia.wheelEventPixels=wn,ia.Doc=Do,ia.splitLines=Ht,ia.countColumn=U,ia.findColumn=V,ia.isWordChar=tt,ia.Pass=W,ia.signal=bt,ia.Line=tr,ia.changeEnd=Nn,ia.scrollbarModel=Yi,ia.Pos=le,ia.cmpPos=he,ia.modes=Gt,ia.mimeModes=jt,ia.resolveMode=Vt,ia.getMode=Yt,ia.modeExtensions=Kt,ia.extendMode=$t,ia.copyState=Qt,ia.startState=Zt,ia.innerMode=Xt,ia.commands=ss,ia.keyMap=Yo,ia.keyName=Jo,ia.isModifierKey=Xo,ia.lookupKey=Qo,ia.normalizeKeyMap=$o,ia.StringStream=Jt,ia.SharedTextMarker=Oo,ia.TextMarker=Lo,ia.LineWidget=Co,ia.e_preventDefault=At,ia.e_stopPropagation=Lt,ia.e_stop=Ot,ia.addClass=R,ia.contains=O,ia.rmClass=C,ia.keyNames=qo,Is.version="5.50.2",Is},"object"==typeof r&&void 0!==e?e.exports=n():"function"==typeof define&&define.amd?define(n):(i=i||self).CodeMirror=n()},{}],15:[function(t,e,r){var i;i=function(N){"use strict";function O(t,e,r,i,n,o){this.indented=t,this.column=e,this.type=r,this.info=i,this.align=n,this.prev=o}function I(t,e,r,i){var n=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=r&&(n=t.context.indented),t.context=new O(n,e,r,i,null,t.context)}function R(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}function M(t,e,r){return"variable"==e.prevToken||"type"==e.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,r))||(!(!e.typeAtEndOfLine||t.column()!=t.indentation())||void 0))}function D(t){for(;;){if(!t||"top"==t.type)return 1;if("}"==t.type&&"namespace"!=t.prev.info)return;t=t.prev}}function t(t){for(var e={},r=t.split(" "),i=0;i<r.length;++i)e[r[i]]=!0;return e}function P(t,e){return"function"==typeof t?t(e):t.propertyIsEnumerable(e)}N.defineMode("clike",function(t,a){var s,l,h=t.indentUnit,c=a.statementIndentUnit||h,u=a.dontAlignCalls,f=a.keywords||{},p=a.types||{},d=a.builtin||{},m=a.blockKeywords||{},g=a.defKeywords||{},_=a.atoms||{},v=a.hooks||{},y=a.multiLineStrings,o=!1!==a.indentStatements,e=!1!==a.indentSwitch,x=a.namespaceSeparator,T=a.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,k=a.numberStart||/[\d\.]/,b=a.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,w=a.isOperatorChar||/[+\-*&%=<>!?|\/]/,E=a.isIdentifierChar||/[\w\$_\xa1-\uffff]/,C=a.isReservedIdentifier||!1;function S(t,e){var o,r=t.next();if(v[r]){var i=v[r](t,e);if(!1!==i)return i}if('"'==r||"'"==r)return e.tokenize=(o=r,function(t,e){for(var r,i=!1,n=!1;null!=(r=t.next());){if(r==o&&!i){n=!0;break}i=!i&&"\\"==r}return!n&&(i||y)||(e.tokenize=null),"string"}),e.tokenize(t,e);if(T.test(r))return s=r,null;if(k.test(r)){if(t.backUp(1),t.match(b))return"number";t.next()}if("/"==r){if(t.eat("*"))return(e.tokenize=A)(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(w.test(r)){for(;!t.match(/^\/[\/*]/,!1)&&t.eat(w););return"operator"}if(t.eatWhile(E),x)for(;t.match(x);)t.eatWhile(E);var n=t.current();return P(f,n)?(P(m,n)&&(s="newstatement"),P(g,n)&&(l=!0),"keyword"):P(p,n)?"type":P(d,n)||C&&C(n)?(P(m,n)&&(s="newstatement"),"builtin"):P(_,n)?"atom":"variable"}function A(t,e){for(var r,i=!1;r=t.next();){if("/"==r&&i){e.tokenize=null;break}i="*"==r}return"comment"}function L(t,e){a.typeFirstDefinitions&&t.eol()&&D(e.context)&&(e.typeAtEndOfLine=M(t,e,t.pos))}return{startState:function(t){return{tokenize:null,context:new O((t||0)-h,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,e){var r=e.context;if(t.sol()&&(null==r.align&&(r.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return L(t,e),null;s=l=null;var i=(e.tokenize||S)(t,e);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"==s||":"==s||","==s&&t.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==e.context.type;)R(e);else if("{"==s)I(e,t.column(),"}");else if("["==s)I(e,t.column(),"]");else if("("==s)I(e,t.column(),")");else if("}"==s){for(;"statement"==r.type;)r=R(e);for("}"==r.type&&(r=R(e));"statement"==r.type;)r=R(e)}else s==r.type?R(e):o&&(("}"==r.type||"top"==r.type)&&";"!=s||"statement"==r.type&&"newstatement"==s)&&I(e,t.column(),"statement",t.current());if("variable"==i&&("def"==e.prevToken||a.typeFirstDefinitions&&M(t,e,t.start)&&D(e.context)&&t.match(/^\s*\(/,!1))&&(i="def"),v.token){var n=v.token(t,e,i);void 0!==n&&(i=n)}return"def"==i&&!1===a.styleDefs&&(i="variable"),e.startOfLine=!1,e.prevToken=l?"def":i||s,L(t,e),i},indent:function(t,e){if(t.tokenize!=S&&null!=t.tokenize||t.typeAtEndOfLine)return N.Pass;var r=t.context,i=e&&e.charAt(0),n=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),a.dontIndentStatements)for(;"statement"==r.type&&a.dontIndentStatements.test(r.info);)r=r.prev;if(v.indent){var o=v.indent(t,r,e,h);if("number"==typeof o)return o}var s=r.prev&&"switch"==r.prev.info;if(a.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:c):!r.align||u&&")"==r.type?")"!=r.type||n?r.indented+(n?0:h)+(n||!s||/^(?:case|default)\b/.test(e)?0:h):r.indented+c:r.column+(n?0:1)},electricInput:e?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var e="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",r="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",i="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",n="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_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",o=t("int long char short double float unsigned signed void bool"),s=t("SEL instancetype id Class Protocol BOOL");function a(t){return P(o,t)||/.+_t$/.test(t)}function l(t){return a(t)||P(s,t)}var h="case do else for if switch while struct enum union",c="struct enum union";function u(t,e){if(!e.startOfLine)return!1;for(var r,i=null;r=t.peek();){if("\\"==r&&t.match(/^.$/)){i=u;break}if("/"==r&&t.match(/^\/[\/\*]/,!1))break;t.next()}return e.tokenize=i,"meta"}function f(t,e){return"type"==e.prevToken&&"type"}function p(t){return!(!t||t.length<2)&&("_"==t[0]&&("_"==t[1]||t[1]!==t[1].toLowerCase()))}function d(t){return t.eatWhile(/[\w\.']/),"number"}function m(t,e){if(t.backUp(1),t.match(/(R|u8R|uR|UR|LR)/)){var r=t.match(/"([^\s\\()]{0,16})\(/);return r?(e.cpp11RawStringDelim=r[1],(e.tokenize=v)(t,e)):!1}return t.match(/(u8|u|U|L)/)?!!t.match(/["']/,!1)&&"string":(t.next(),!1)}function g(t){var e=/(\w+)::~?(\w+)$/.exec(t);return e&&e[1]==e[2]}function _(t,e){for(var r;null!=(r=t.next());)if('"'==r&&!t.eat('"')){e.tokenize=null;break}return"string"}function v(t,e){var r=e.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return t.match(new RegExp(".*?\\)"+r+'"'))?e.tokenize=null:t.skipToEnd(),"string"}function y(t,e){"string"==typeof t&&(t=[t]);var r=[];function i(t){if(t)for(var e in t)t.hasOwnProperty(e)&&r.push(e)}i(e.keywords),i(e.types),i(e.builtin),i(e.atoms),r.length&&(e.helperType=t[0],N.registerHelper("hintWords",t[0],r));for(var n=0;n<t.length;++n)N.defineMIME(t[n],e)}function x(t,e){for(var r=!1;!t.eol();){if(!r&&t.match('"""')){e.tokenize=null;break}r="\\"==t.next()&&!r}return"string"}function T(i){return function(t,e){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1!=i)return e.tokenize=T(i-1),e.tokenize(t,e);e.tokenize=null;break}if("/"==r&&t.eat("*"))return e.tokenize=T(i+1),e.tokenize(t,e)}return"comment"}}y(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:t(e),types:a,blockKeywords:t(h),defKeywords:t(c),typeFirstDefinitions:!0,atoms:t("NULL true false"),isReservedIdentifier:p,hooks:{"#":u,"*":f},modeProps:{fold:["brace","include"]}}),y(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:t(e+" "+r),types:a,blockKeywords:t(h+" class try catch"),defKeywords:t(c+" class namespace"),typeFirstDefinitions:!0,atoms:t("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:p,hooks:{"#":u,"*":f,u:m,U:m,L:m,R:m,0:d,1:d,2:d,3:d,4:d,5:d,6:d,7:d,8:d,9:d,token:function(t,e,r){if("variable"==r&&"("==t.peek()&&(";"==e.prevToken||null==e.prevToken||"}"==e.prevToken)&&g(t.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),y("text/x-java",{name:"clike",keywords:t("abstract assert break case catch class const continue default do else enum extends final finally 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:t("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:t("catch class do else finally for if switch try while"),defKeywords:t("class interface enum @interface"),typeFirstDefinitions:!0,atoms:t("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(t){return!t.match("interface",!1)&&(t.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),y("text/x-csharp",{name:"clike",keywords:t("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:t("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:t("catch class do else finally for foreach if struct switch try while"),defKeywords:t("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:t("true false null"),hooks:{"@":function(t,e){return t.eat('"')?(e.tokenize=_)(t,e):(t.eatWhile(/[\w\$_]/),"meta")}}}),y("text/x-scala",{name:"clike",keywords:t("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:t("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:t("catch class enum do else finally for forSome if match switch try while"),defKeywords:t("class enum def object package trait type val var"),atoms:t("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return!!t.match('""')&&(e.tokenize=x,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(t,e){var r=e.context;return!("}"!=r.type||!r.align||!t.eat(">"))&&(e.context=new O(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=T(1),e.tokenize(t,e))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),y("text/x-kotlin",{name:"clike",keywords:t("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:t("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:t("catch class do else finally for if where try while enum"),defKeywords:t("class val var object interface fun"),atoms:t("true false null this"),hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},"*":function(t,e){return"."==e.prevToken?"variable":"operator"},'"':function(t,e){var o;return e.tokenize=(o=t.match('""'),function(t,e){for(var r,i=!1,n=!1;!t.eol();){if(!o&&!i&&t.match('"')){n=!0;break}if(o&&t.match('"""')){n=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!o}return!n&&o||(e.tokenize=null),"string"}),e.tokenize(t,e)},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=T(1),e.tokenize(t,e))},indent:function(t,e,r,i){var n=r&&r.charAt(0);return"}"!=t.prevToken&&")"!=t.prevToken||""!=r?"operator"==t.prevToken&&"}"!=r&&"}"!=t.context.type||"variable"==t.prevToken&&"."==n||("}"==t.prevToken||")"==t.prevToken)&&"."==n?2*i+e.indented:e.align&&"}"==e.type?e.indented+(t.context.type==(r||"").charAt(0)?0:i):void 0:t.indented}},modeProps:{closeBrackets:{triples:'"'}}}),y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:t("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:t("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:t("for while do if else struct"),builtin:t("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:t("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:t(e+" 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:a,blockKeywords:t(h),atoms:t("null true false"),hooks:{"#":u},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec",{name:"clike",keywords:t(e+" "+i),types:l,builtin:t(n),blockKeywords:t(h+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:t(c+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:t("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:p,hooks:{"#":u,"*":f},modeProps:{fold:["brace","include"]}}),y("text/x-objectivec++",{name:"clike",keywords:t(e+" "+i+" "+r),types:l,builtin:t(n),blockKeywords:t(h+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:t(c+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:t("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:p,hooks:{"#":u,"*":f,u:m,U:m,L:m,R:m,0:d,1:d,2:d,3:d,4:d,5:d,6:d,7:d,8:d,9:d,token:function(t,e,r){if("variable"==r&&"("==t.peek()&&(";"==e.prevToken||null==e.prevToken||"}"==e.prevToken)&&g(t.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),y("text/x-squirrel",{name:"clike",keywords:t("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:a,blockKeywords:t("case catch class else for foreach if switch try while"),defKeywords:t("function local class"),typeFirstDefinitions:!0,atoms:t("true false null"),hooks:{"#":u},modeProps:{fold:["brace","include"]}});var k=null;y("text/x-ceylon",{name:"clike",keywords:t("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(t){var e=t.charAt(0);return e===e.toUpperCase()&&e!==e.toLowerCase()},blockKeywords:t("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:t("class dynamic function interface module object package value"),builtin:t("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:t("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return e.tokenize=function o(s){return function(t,e){for(var r,i=!1,n=!1;!t.eol();){if(!i&&t.match('"')&&("single"==s||t.match('""'))){n=!0;break}if(!i&&t.match("``")){k=o(s),n=!0;break}r=t.next(),i="single"==s&&!i&&"\\"==r}return n&&(e.tokenize=null),"string"}}(t.match('""')?"triple":"single"),e.tokenize(t,e)},"`":function(t,e){return!(!k||!t.match("`"))&&(e.tokenize=k,k=null,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(t,e,r){if(("variable"==r||"type"==r)&&"."==e.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],16:[function(t,e,r){var i;i=function(N){"use strict";function t(t){for(var e={},r=0;r<t.length;++r)e[t[r].toLowerCase()]=!0;return e}N.defineMode("css",function(t,e){var r=e.inline;e.propertyKeywords||(e=N.resolveMode("text/css"));var i,n,o=t.indentUnit,s=e.tokenHooks,a=e.documentTypes||{},l=e.mediaTypes||{},h=e.mediaFeatures||{},c=e.mediaValueKeywords||{},u=e.propertyKeywords||{},f=e.nonStandardPropertyKeywords||{},p=e.fontProperties||{},d=e.counterDescriptors||{},m=e.colorKeywords||{},g=e.valueKeywords||{},_=e.allowNested,v=e.lineComment,y=!0===e.supportsAtComponent;function x(t,e){return i=e,t}function T(n){return function(t,e){for(var r,i=!1;null!=(r=t.next());){if(r==n&&!i){")"==n&&t.backUp(1);break}i=!i&&"\\"==r}return r!=n&&(i||")"==n)||(e.tokenize=null),x("string","string")}}function k(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=T(")"),x(null,"(")}function b(t,e,r){this.type=t,this.indent=e,this.prev=r}function w(t,e,r,i){return t.context=new b(r,e.indentation()+(!1===i?0:o),t.context),r}function E(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function C(t,e,r){return L[r.context.type](t,e,r)}function S(t,e,r,i){for(var n=i||1;0<n;n--)r.context=r.context.prev;return C(t,e,r)}function A(t){var e=t.current().toLowerCase();n=g.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var L={top:function(t,e,r){if("{"==t)return w(r,e,"block");if("}"==t&&r.context.prev)return E(r);if(y&&/@component/i.test(t))return w(r,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return w(r,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return w(r,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return r.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return w(r,e,"at");if("hash"==t)n="builtin";else if("word"==t)n="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return w(r,e,"interpolation");if(":"==t)return"pseudo";if(_&&"("==t)return w(r,e,"parens")}return r.context.type},block:function(t,e,r){if("word"!=t)return"meta"==t?"block":_||"hash"!=t&&"qualifier"!=t?L.top(t,e,r):(n="error","block");var i=e.current().toLowerCase();return u.hasOwnProperty(i)?(n="property","maybeprop"):f.hasOwnProperty(i)?(n="string-2","maybeprop"):_?(n=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")},maybeprop:function(t,e,r){return":"==t?w(r,e,"prop"):C(t,e,r)},prop:function(t,e,r){if(";"==t)return E(r);if("{"==t&&_)return w(r,e,"propBlock");if("}"==t||"{"==t)return S(t,e,r);if("("==t)return w(r,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)A(e);else if("interpolation"==t)return w(r,e,"interpolation")}else n+=" error";return"prop"},propBlock:function(t,e,r){return"}"==t?E(r):"word"==t?(n="property","maybeprop"):r.context.type},parens:function(t,e,r){return"{"==t||"}"==t?S(t,e,r):")"==t?E(r):"("==t?w(r,e,"parens"):"interpolation"==t?w(r,e,"interpolation"):("word"==t&&A(e),"parens")},pseudo:function(t,e,r){return"meta"==t?"pseudo":"word"==t?(n="variable-3",r.context.type):C(t,e,r)},documentTypes:function(t,e,r){return"word"==t&&a.hasOwnProperty(e.current())?(n="tag",r.context.type):L.atBlock(t,e,r)},atBlock:function(t,e,r){if("("==t)return w(r,e,"atBlock_parens");if("}"==t||";"==t)return S(t,e,r);if("{"==t)return E(r)&&w(r,e,_?"block":"top");if("interpolation"==t)return w(r,e,"interpolation");if("word"==t){var i=e.current().toLowerCase();n="only"==i||"not"==i||"and"==i||"or"==i?"keyword":l.hasOwnProperty(i)?"attribute":h.hasOwnProperty(i)?"property":c.hasOwnProperty(i)?"keyword":u.hasOwnProperty(i)?"property":f.hasOwnProperty(i)?"string-2":g.hasOwnProperty(i)?"atom":m.hasOwnProperty(i)?"keyword":"error"}return r.context.type},atComponentBlock:function(t,e,r){return"}"==t?S(t,e,r):"{"==t?E(r)&&w(r,e,_?"block":"top",!1):("word"==t&&(n="error"),r.context.type)},atBlock_parens:function(t,e,r){return")"==t?E(r):"{"==t||"}"==t?S(t,e,r,2):L.atBlock(t,e,r)},restricted_atBlock_before:function(t,e,r){return"{"==t?w(r,e,"restricted_atBlock"):"word"==t&&"@counter-style"==r.stateArg?(n="variable","restricted_atBlock_before"):C(t,e,r)},restricted_atBlock:function(t,e,r){return"}"==t?(r.stateArg=null,E(r)):"word"==t?(n="@font-face"==r.stateArg&&!p.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==r.stateArg&&!d.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,r){return"word"==t?(n="variable","keyframes"):"{"==t?w(r,e,"top"):C(t,e,r)},at:function(t,e,r){return";"==t?E(r):"{"==t||"}"==t?S(t,e,r):("word"==t?n="tag":"hash"==t&&(n="builtin"),"at")},interpolation:function(t,e,r){return"}"==t?E(r):"{"==t||";"==t?S(t,e,r):("word"==t?n="variable":"variable"!=t&&"("!=t&&")"!=t&&(n="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new b(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var r=(e.tokenize||function(t,e){var r=t.next();if(s[r]){var i=s[r](t,e);if(!1!==i)return i}return"@"==r?(t.eatWhile(/[\w\\\-]/),x("def",t.current())):"="==r||("~"==r||"|"==r)&&t.eat("=")?x(null,"compare"):'"'==r||"'"==r?(e.tokenize=T(r),e.tokenize(t,e)):"#"==r?(t.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==r?(t.match(/^\s*\w*/),x("keyword","important")):/\d/.test(r)||"."==r&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),x("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?x(null,"select-op"):"."==r&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):t.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(t.current().toLowerCase())&&(e.tokenize=k),x("variable callee","variable")):/[\w\\\-]/.test(r)?(t.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),x("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):t.match(/^\w+-/)?x("meta","meta"):void 0})(t,e);return r&&"object"==typeof r&&(i=r[1],r=r[0]),n=r,"comment"!=i&&(e.state=L[e.state](i,t,e)),n},indent:function(t,e){var r=t.context,i=e&&e.charAt(0),n=r.indent;return"prop"!=r.type||"}"!=i&&")"!=i||(r=r.prev),r.prev&&("}"!=i||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=i||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=i||"at"!=r.type&&"atBlock"!=r.type)||(n=Math.max(0,r.indent-o)):n=(r=r.prev).indent),n},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:v,fold:"brace"}});var e=["domain","regexp","url","url-prefix"],r=t(e),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],n=t(i),o=["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(o),a=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=t(a),h=["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"],c=t(h),u=["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(u),p=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),d=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["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"],g=t(m),_=["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(_),y=e.concat(i).concat(o).concat(a).concat(h).concat(u).concat(m).concat(_);function x(t,e){for(var r,i=!1;null!=(r=t.next());){if(i&&"/"==r){e.tokenize=null;break}i="*"==r}return["comment","comment"]}N.registerHelper("hintWords","css",y),N.defineMIME("text/css",{documentTypes:r,mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:c,nonStandardPropertyKeywords:f,fontProperties:p,counterDescriptors:d,colorKeywords:g,valueKeywords:v,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x)(t,e)}},name:"css"}),N.defineMIME("text/x-scss",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:c,nonStandardPropertyKeywords:f,colorKeywords:g,valueKeywords:v,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x)(t,e):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),N.defineMIME("text/x-less",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:c,nonStandardPropertyKeywords:f,colorKeywords:g,valueKeywords:v,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=x)(t,e):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),N.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:n,mediaFeatures:s,propertyKeywords:c,nonStandardPropertyKeywords:f,fontProperties:p,counterDescriptors:d,colorKeywords:g,valueKeywords:v,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x)(t,e)}},name:"css",helperType:"gss"})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],17:[function(t,e,r){var i;i=function(d){"use strict";var n={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"]]};var o={};function m(t,e){var r,i=t.match(o[r=e]||(o[r]=new RegExp("\\s+"+r+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")));return i?/^\s*(.*?)\s*$/.exec(i[2])[1]:""}function g(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function s(t,e){for(var r in t)for(var i=e[r]||(e[r]=[]),n=t[r],o=n.length-1;0<=o;o--)i.unshift(n[o])}d.defineMode("htmlmixed",function(c,t){var u=d.getMode(c,{name:"xml",htmlMode:!0,multilineTagIndentFactor:t.multilineTagIndentFactor,multilineTagIndentPastTag:t.multilineTagIndentPastTag}),f={},e=t&&t.tags,r=t&&t.scriptTypes;if(s(n,f),e&&s(e,f),r)for(var i=r.length-1;0<=i;i--)f.script.unshift(["type",r[i].matches,r[i].mode]);function p(t,e){var r,i=u.token(t,e.htmlState),n=/\btag\b/.test(i);if(n&&!/[<>\s\/]/.test(t.current())&&(r=e.htmlState.tagName&&e.htmlState.tagName.toLowerCase())&&f.hasOwnProperty(r))e.inTag=r+" ";else if(e.inTag&&n&&/>$/.test(t.current())){var o=/^([\S]+) (.*)/.exec(e.inTag);e.inTag=null;var s=">"==t.current()&&function(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(!i[0]||i[1].test(m(e,i[0])))return i[2]}}(f[o[1]],o[2]),a=d.getMode(c,s),l=g(o[1],!0),h=g(o[1],!1);e.token=function(t,e){return t.match(l,!1)?(e.token=p,e.localState=e.localMode=null,null):(r=t,i=h,n=e.localMode.token(t,e.localState),o=r.current(),-1<(s=o.search(i))?r.backUp(o.length-s):o.match(/<\/?$/)&&(r.backUp(o.length),r.match(i,!1)||r.match(o)),n);var r,i,n,o,s},e.localMode=a,e.localState=d.startState(a,u.indent(e.htmlState,"",""))}else e.inTag&&(e.inTag+=t.current(),t.eol()&&(e.inTag+=" "));return i}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:d.startState(u)}},copyState:function(t){var e;return t.localState&&(e=d.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:e,htmlState:d.copyState(u,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e,r){return!t.localMode||/^\s*<\//.test(e)?u.indent(t.htmlState,e,r):t.localMode.indent?t.localMode.indent(t.localState,e,r):d.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||u}}}},"xml","javascript","css"),d.defineMIME("text/html","htmlmixed")},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror"),t("../xml/xml"),t("../javascript/javascript"),t("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],i):i(CodeMirror)},{"../../lib/codemirror":14,"../css/css":16,"../javascript/javascript":18,"../xml/xml":20}],18:[function(t,e,r){var i;i=function(ee){"use strict";ee.defineMode("javascript",function(t,u){var e,r,i,n,o,s,f=t.indentUnit,p=u.statementIndent,a=u.jsonld,l=u.json||a,h=u.typescript,c=u.wordCharacters||/[\w$\xa1-\uffff]/,d=(e=m("keyword a"),r=m("keyword b"),i=m("keyword c"),n=m("keyword d"),o=m("operator"),s={type:"atom",style:"atom"},{if:m("if"),while:e,with:e,else:r,do:r,try:r,finally:r,return:n,break:n,continue:n,new:m("new"),delete:i,void:i,throw:i,debugger:m("debugger"),var:m("var"),const:m("var"),let:m("var"),function:m("function"),catch:m("catch"),for:m("for"),switch:m("switch"),case:m("case"),default:m("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:m("this"),class:m("class"),super:m("atom"),yield:i,export:m("export"),import:m("import"),extends:i,await:i});function m(t){return{type:t,style:"keyword"}}var g,_,v=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function x(t,e,r){return g=t,_=r,e}function T(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(a&&"@"==t.peek()&&t.match(y))return e.tokenize=T,x("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=T),x("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return x("number","number");if("."==r&&t.match(".."))return x("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return x(r);if("="==r&&t.eat(">"))return x("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return x("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),x("number","number");if("/"==r)return t.eat("*")?(e.tokenize=k)(t,e):t.eat("/")?(t.skipToEnd(),x("comment","comment")):te(t,e,1)?(function(t){for(var e,r=!1,i=!1;null!=(e=t.next());){if(!r){if("/"==e&&!i)return;"["==e?i=!0:i&&"]"==e&&(i=!1)}r=!r&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),x("regexp","string-2")):(t.eat("="),x("operator","operator",t.current()));if("`"==r)return(e.tokenize=b)(t,e);if("#"==r)return t.skipToEnd(),x("error","error");if("<"==r&&t.match("!--")||"-"==r&&t.match("->"))return t.skipToEnd(),x("comment","comment");if(v.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),x("operator","operator",t.current());if(c.test(r)){t.eatWhile(c);var i=t.current();if("."!=e.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return x(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return x("async","keyword",i)}return x("variable","variable",i)}}function k(t,e){for(var r,i=!1;r=t.next();){if("/"==r&&i){e.tokenize=T;break}i="*"==r}return x("comment","comment")}function b(t,e){for(var r,i=!1;null!=(r=t.next());){if(!i&&("`"==r||"$"==r&&t.eat("{"))){e.tokenize=T;break}i=!i&&"\\"==r}return x("quasi","string-2",t.current())}var w="([{}])";function E(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var r=t.string.indexOf("=>",t.start);if(!(r<0)){if(h){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,r));i&&(r=i.index)}for(var n=0,o=!1,s=r-1;0<=s;--s){var a=t.string.charAt(s),l=w.indexOf(a);if(0<=l&&l<3){if(!n){++s;break}if(0==--n){"("==a&&(o=!0);break}}else if(3<=l&&l<6)++n;else if(c.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(t.string.charAt(s-1)==a&&"\\"!=t.string.charAt(s-2)){s--;break}}else if(o&&!n){++s;break}}o&&!n&&(e.fatArrowAt=s)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function S(t,e,r,i,n,o){this.indented=t,this.column=e,this.type=r,this.prev=n,this.info=o,null!=i&&(this.align=i)}function A(t,e){for(var r=t.localVars;r;r=r.next)if(r.name==e)return 1;for(var i=t.context;i;i=i.prev)for(r=i.vars;r;r=r.next)if(r.name==e)return 1}var L={state:null,column:null,marked:null,cc:null};function N(){for(var t=arguments.length-1;0<=t;t--)L.cc.push(arguments[t])}function O(){return N.apply(null,arguments),!0}function I(t,e){for(var r=e;r;r=r.next)if(r.name==t)return 1}function R(t){var e=L.state;if(L.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,r){{if(r){if(r.block){var i=t(e,r.prev);return i?i==r.prev?r:new D(i,r.vars,!0):null}return I(e,r.vars)?r:new D(r.prev,new P(e,r.vars),!1)}return null}}(t,e.context);if(null!=r)return void(e.context=r)}else if(!I(t,e.localVars))return void(e.localVars=new P(t,e.localVars));u.globalVars&&!I(t,e.globalVars)&&(e.globalVars=new P(t,e.globalVars))}function M(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function D(t,e,r){this.prev=t,this.vars=e,this.block=r}function P(t,e){this.name=t,this.next=e}var B=new P("this",new P("arguments",null));function U(){L.state.context=new D(L.state.context,L.state.localVars,!1),L.state.localVars=B}function F(){L.state.context=new D(L.state.context,L.state.localVars,!0),L.state.localVars=null}function H(){L.state.localVars=L.state.context.vars,L.state.context=L.state.context.prev}function z(i,n){function t(){var t=L.state,e=t.indented;if("stat"==t.lexical.type)e=t.lexical.indented;else for(var r=t.lexical;r&&")"==r.type&&r.align;r=r.prev)e=r.indented;t.lexical=new S(e,L.stream.column(),i,null,t.lexical,n)}return t.lex=!0,t}function W(){var t=L.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function q(r){return function t(e){return e==r?O():";"==r||"}"==e||")"==e||"]"==e?N():O(t)}}function G(t,e){return"var"==t?O(z("vardef",e),Et,q(";"),W):"keyword a"==t?O(z("form"),K,G,W):"keyword b"==t?O(z("form"),G,W):"keyword d"==t?L.stream.match(/^\s*$/,!1)?O():O(z("stat"),Q,q(";"),W):"debugger"==t?O(q(";")):"{"==t?O(z("}"),F,ft,W,H):";"==t?O():"if"==t?("else"==L.state.lexical.info&&L.state.cc[L.state.cc.length-1]==W&&L.state.cc.pop()(),O(z("form"),K,G,W,Ot)):"function"==t?O(Dt):"for"==t?O(z("form"),It,G,W):"class"==t||h&&"interface"==e?(L.marked="keyword",O(z("form","class"==t?t:e),Ht,W)):"variable"==t?h&&"declare"==e?(L.marked="keyword",O(G)):h&&("module"==e||"enum"==e||"type"==e)&&L.stream.match(/^\s*\w/,!1)?(L.marked="keyword","enum"==e?O(Zt):"type"==e?O(Bt,q("operator"),_t,q(";")):O(z("form"),Ct,q("{"),z("}"),ft,W,W)):h&&"namespace"==e?(L.marked="keyword",O(z("form"),V,G,W)):h&&"abstract"==e?(L.marked="keyword",O(G)):O(z("stat"),ot):"switch"==t?O(z("form"),K,q("{"),z("}","switch"),F,ft,W,W,H):"case"==t?O(V,q(":")):"default"==t?O(q(":")):"catch"==t?O(z("form"),U,j,G,W,H):"export"==t?O(z("stat"),Gt,W):"import"==t?O(z("stat"),Vt,W):"async"==t?O(G):"@"==e?O(V,G):N(z("stat"),V,q(";"),W)}function j(t){if("("==t)return O(Ut,q(")"))}function V(t,e){return $(t,e,!1)}function Y(t,e){return $(t,e,!0)}function K(t){return"("!=t?N():O(z(")"),V,q(")"),W)}function $(t,e,r){if(L.state.fatArrowAt==L.stream.start){var i=r?rt:et;if("("==t)return O(U,z(")"),ct(Ut,")"),W,q("=>"),i,H);if("variable"==t)return N(U,Ct,q("=>"),i,H)}var n,o=r?Z:X;return C.hasOwnProperty(t)?O(o):"function"==t?O(Dt,o):"class"==t||h&&"interface"==e?(L.marked="keyword",O(z("form"),Ft,W)):"keyword c"==t||"async"==t?O(r?Y:V):"("==t?O(z(")"),Q,q(")"),W,o):"operator"==t||"spread"==t?O(r?Y:V):"["==t?O(z("]"),Xt,W,o):"{"==t?ut(at,"}",null,o):"quasi"==t?N(J,o):"new"==t?O((n=r,function(t){return"."==t?O(n?nt:it):"variable"==t&&h?O(kt,n?Z:X):N(n?Y:V)})):"import"==t?O(V):O()}function Q(t){return t.match(/[;\}\)\],]/)?N():N(V)}function X(t,e){return","==t?O(V):Z(t,e,!1)}function Z(t,e,r){var i=0==r?X:Z,n=0==r?V:Y;return"=>"==t?O(U,r?rt:et,H):"operator"==t?/\+\+|--/.test(e)||h&&"!"==e?O(i):h&&"<"==e&&L.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?O(z(">"),ct(_t,">"),W,i):"?"==e?O(V,q(":"),n):O(n):"quasi"==t?N(J,i):";"!=t?"("==t?ut(Y,")","call",i):"."==t?O(st,i):"["==t?O(z("]"),Q,q("]"),W,i):h&&"as"==e?(L.marked="keyword",O(_t,i)):"regexp"==t?(L.state.lastType=L.marked="operator",L.stream.backUp(L.stream.pos-L.stream.start-1),O(n)):void 0:void 0}function J(t,e){return"quasi"!=t?N():"${"!=e.slice(e.length-2)?O(J):O(V,tt)}function tt(t){if("}"==t)return L.marked="string-2",L.state.tokenize=b,O(J)}function et(t){return E(L.stream,L.state),N("{"==t?G:V)}function rt(t){return E(L.stream,L.state),N("{"==t?G:Y)}function it(t,e){if("target"==e)return L.marked="keyword",O(X)}function nt(t,e){if("target"==e)return L.marked="keyword",O(Z)}function ot(t){return":"==t?O(W,G):N(X,q(";"),W)}function st(t){if("variable"==t)return L.marked="property",O()}function at(t,e){if("async"==t)return L.marked="property",O(at);if("variable"==t||"keyword"==L.style){return(L.marked="property","get"==e||"set"==e)?O(lt):(h&&L.state.fatArrowAt==L.stream.start&&(r=L.stream.match(/^\s*:\s*/,!1))&&(L.state.fatArrowAt=L.stream.pos+r[0].length),O(ht));var r}else{if("number"==t||"string"==t)return L.marked=a?"property":L.style+" property",O(ht);if("jsonld-keyword"==t)return O(ht);if(h&&M(e))return L.marked="keyword",O(at);if("["==t)return O(V,pt,q("]"),ht);if("spread"==t)return O(Y,ht);if("*"==e)return L.marked="keyword",O(at);if(":"==t)return N(ht)}}function lt(t){return"variable"!=t?N(ht):(L.marked="property",O(Dt))}function ht(t){return":"==t?O(Y):"("==t?N(Dt):void 0}function ct(i,n,o){function s(t,e){if(o?-1<o.indexOf(t):","==t){var r=L.state.lexical;return"call"==r.info&&(r.pos=(r.pos||0)+1),O(function(t,e){return t==n||e==n?N():N(i)},s)}return t==n||e==n?O():o&&-1<o.indexOf(";")?N(i):O(q(n))}return function(t,e){return t==n||e==n?O():N(i,s)}}function ut(t,e,r){for(var i=3;i<arguments.length;i++)L.cc.push(arguments[i]);return O(z(e,r),ct(t,e),W)}function ft(t){return"}"==t?O():N(G,ft)}function pt(t,e){if(h){if(":"==t)return O(_t);if("?"==e)return O(pt)}}function dt(t,e){if(h&&(":"==t||"in"==e))return O(_t)}function mt(t){if(h&&":"==t)return L.stream.match(/^\s*\w+\s+is\b/,!1)?O(V,gt,_t):O(_t)}function gt(t,e){if("is"==e)return L.marked="keyword",O()}function _t(t,e){return"keyof"==e||"typeof"==e||"infer"==e?(L.marked="keyword",O("typeof"==e?Y:_t)):"variable"==t||"void"==e?(L.marked="type",O(Tt)):"|"==e||"&"==e?O(_t):"string"==t||"number"==t||"atom"==t?O(Tt):"["==t?O(z("]"),ct(_t,"]",","),W,Tt):"{"==t?O(z("}"),ct(yt,"}",",;"),W,Tt):"("==t?O(ct(xt,")"),vt,Tt):"<"==t?O(ct(_t,">"),_t):void 0}function vt(t){if("=>"==t)return O(_t)}function yt(t,e){return"variable"==t||"keyword"==L.style?(L.marked="property",O(yt)):"?"==e||"number"==t||"string"==t?O(yt):":"==t?O(_t):"["==t?O(q("variable"),dt,q("]"),yt):"("==t?N(Pt,yt):void 0}function xt(t,e){return"variable"==t&&L.stream.match(/^\s*[?:]/,!1)||"?"==e?O(xt):":"==t?O(_t):"spread"==t?O(xt):N(_t)}function Tt(t,e){return"<"==e?O(z(">"),ct(_t,">"),W,Tt):"|"==e||"."==t||"&"==e?O(_t):"["==t?O(_t,q("]"),Tt):"extends"==e||"implements"==e?(L.marked="keyword",O(_t)):"?"==e?O(_t,q(":"),_t):void 0}function kt(t,e){if("<"==e)return O(z(">"),ct(_t,">"),W,Tt)}function bt(){return N(_t,wt)}function wt(t,e){if("="==e)return O(_t)}function Et(t,e){return"enum"==e?(L.marked="keyword",O(Zt)):N(Ct,pt,Lt,Nt)}function Ct(t,e){return h&&M(e)?(L.marked="keyword",O(Ct)):"variable"==t?(R(e),O()):"spread"==t?O(Ct):"["==t?ut(At,"]"):"{"==t?ut(St,"}"):void 0}function St(t,e){return"variable"!=t||L.stream.match(/^\s*:/,!1)?("variable"==t&&(L.marked="property"),"spread"==t?O(Ct):"}"==t?N():"["==t?O(V,q("]"),q(":"),St):O(q(":"),Ct,Lt)):(R(e),O(Lt))}function At(){return N(Ct,Lt)}function Lt(t,e){if("="==e)return O(Y)}function Nt(t){if(","==t)return O(Et)}function Ot(t,e){if("keyword b"==t&&"else"==e)return O(z("form","else"),G,W)}function It(t,e){return"await"==e?O(It):"("==t?O(z(")"),Rt,W):void 0}function Rt(t){return"var"==t?O(Et,Mt):("variable"==t?O:N)(Mt)}function Mt(t,e){return")"==t?O():";"==t?O(Mt):"in"==e||"of"==e?(L.marked="keyword",O(V,Mt)):N(V,Mt)}function Dt(t,e){return"*"==e?(L.marked="keyword",O(Dt)):"variable"==t?(R(e),O(Dt)):"("==t?O(U,z(")"),ct(Ut,")"),W,mt,G,H):h&&"<"==e?O(z(">"),ct(bt,">"),W,Dt):void 0}function Pt(t,e){return"*"==e?(L.marked="keyword",O(Pt)):"variable"==t?(R(e),O(Pt)):"("==t?O(U,z(")"),ct(Ut,")"),W,mt,H):h&&"<"==e?O(z(">"),ct(bt,">"),W,Pt):void 0}function Bt(t,e){return"keyword"==t||"variable"==t?(L.marked="type",O(Bt)):"<"==e?O(z(">"),ct(bt,">"),W):void 0}function Ut(t,e){return"@"==e&&O(V,Ut),"spread"==t?O(Ut):h&&M(e)?(L.marked="keyword",O(Ut)):h&&"this"==t?O(pt,Lt):N(Ct,pt,Lt)}function Ft(t,e){return("variable"==t?Ht:zt)(t,e)}function Ht(t,e){if("variable"==t)return R(e),O(zt)}function zt(t,e){return"<"==e?O(z(">"),ct(bt,">"),W,zt):"extends"==e||"implements"==e||h&&","==t?("implements"==e&&(L.marked="keyword"),O(h?_t:V,zt)):"{"==t?O(z("}"),Wt,W):void 0}function Wt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||h&&M(e))&&L.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(L.marked="keyword",O(Wt)):"variable"==t||"keyword"==L.style?(L.marked="property",O(h?qt:Dt,Wt)):"number"==t||"string"==t?O(h?qt:Dt,Wt):"["==t?O(V,pt,q("]"),h?qt:Dt,Wt):"*"==e?(L.marked="keyword",O(Wt)):h&&"("==t?N(Pt,Wt):";"==t||","==t?O(Wt):"}"==t?O():"@"==e?O(V,Wt):void 0}function qt(t,e){if("?"==e)return O(qt);if(":"==t)return O(_t,Lt);if("="==e)return O(Y);var r=L.state.lexical.prev;return N(r&&"interface"==r.info?Pt:Dt)}function Gt(t,e){return"*"==e?(L.marked="keyword",O(Qt,q(";"))):"default"==e?(L.marked="keyword",O(V,q(";"))):"{"==t?O(ct(jt,"}"),Qt,q(";")):N(G)}function jt(t,e){return"as"==e?(L.marked="keyword",O(q("variable"))):"variable"==t?N(Y,jt):void 0}function Vt(t){return"string"==t?O():"("==t?N(V):N(Yt,Kt,Qt)}function Yt(t,e){return"{"==t?ut(Yt,"}"):("variable"==t&&R(e),"*"==e&&(L.marked="keyword"),O($t))}function Kt(t){if(","==t)return O(Yt,Kt)}function $t(t,e){if("as"==e)return L.marked="keyword",O(Yt)}function Qt(t,e){if("from"==e)return L.marked="keyword",O(V)}function Xt(t){return"]"==t?O():N(ct(Y,"]"))}function Zt(){return N(z("form"),Ct,q("{"),z("}"),ct(Jt,"}"),W,W)}function Jt(){return N(Ct,Lt)}function te(t,e,r){return e.tokenize==T&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(r||0)))}return W.lex=H.lex=!0,{startState:function(t){var e={tokenize:T,lastType:"sof",cc:[],lexical:new S((t||0)-f,0,"block",!1),localVars:u.localVars,context:u.localVars&&new D(null,null,!1),indented:t||0};return u.globalVars&&"object"==typeof u.globalVars&&(e.globalVars=u.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),E(t,e)),e.tokenize!=k&&t.eatSpace())return null;var r=e.tokenize(t,e);return"comment"==g?r:(e.lastType="operator"!=g||"++"!=_&&"--"!=_?g:"incdec",function(t,e,r,i,n){var o=t.cc;for(L.state=t,L.stream=n,L.marked=null,L.cc=o,L.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;){if((o.length?o.pop():l?V:G)(r,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return L.marked?L.marked:"variable"==r&&A(t,i)?"variable-2":e}}}(e,r,g,_,t))},indent:function(t,e){if(t.tokenize==k)return ee.Pass;if(t.tokenize!=T)return 0;var r,i=e&&e.charAt(0),n=t.lexical;if(!/^\s*else\b/.test(e))for(var o=t.cc.length-1;0<=o;--o){var s=t.cc[o];if(s==W)n=n.prev;else if(s!=Ot)break}for(;("stat"==n.type||"form"==n.type)&&("}"==i||(r=t.cc[t.cc.length-1])&&(r==X||r==Z)&&!/^[,\.=+\-*:?[\(]/.test(e));)n=n.prev;p&&")"==n.type&&"stat"==n.prev.type&&(n=n.prev);var a,l,h=n.type,c=i==h;return"vardef"==h?n.indented+("operator"==t.lastType||","==t.lastType?n.info.length+1:0):"form"==h&&"{"==i?n.indented:"form"==h?n.indented+f:"stat"==h?n.indented+(l=e,"operator"==(a=t).lastType||","==a.lastType||v.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?p||f:0):"switch"!=n.info||c||0==u.doubleIndentSwitch?n.align?n.column+(c?0:1):n.indented+(c?0:f):n.indented+(/^(?:case|default)\b/.test(e)?f:2*f)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:te,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=V&&e!=Y||t.cc.pop()}}}),ee.registerHelper("wordChars","javascript",/[\w$]/),ee.defineMIME("text/javascript","javascript"),ee.defineMIME("text/ecmascript","javascript"),ee.defineMIME("application/javascript","javascript"),ee.defineMIME("application/x-javascript","javascript"),ee.defineMIME("application/ecmascript","javascript"),ee.defineMIME("application/json",{name:"javascript",json:!0}),ee.defineMIME("application/x-json",{name:"javascript",json:!0}),ee.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),ee.defineMIME("text/typescript",{name:"javascript",typescript:!0}),ee.defineMIME("application/typescript",{name:"javascript",typescript:!0})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],19:[function(t,e,r){var i;i=function(h){"use strict";function t(t){for(var e={},r=t.split(" "),i=0;i<r.length;++i)e[r[i]]=!0;return e}function a(n,o,s){return 0==n.length?l(o):function(t,e){for(var r=n[0],i=0;i<r.length;i++)if(t.match(r[i][0]))return e.tokenize=a(n.slice(1),o),r[i][1];return e.tokenize=l(o,s),"string"}}function l(r,i){return function(t,e){return function(t,e,r,i){if(!1!==i&&t.match("${",!1)||t.match("{$",!1))return e.tokenize=null,"string";if(!1!==i&&t.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return t.match("[",!1)&&(e.tokenize=a([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),t.match(/\-\>\w/,!1)&&(e.tokenize=a([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";var n=!1;for(;!t.eol()&&(n||!1===i||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!n&&t.match(r)){e.tokenize=null,e.tokStack.pop(),e.tokStack.pop();break}n="\\"==t.next()&&!n}return"string"}(t,e,r,i)}}var e="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",r="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",i="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";h.registerHelper("hintWords","php",[e,r,i].join(" ").split(" ")),h.registerHelper("wordChars","php",/[\w$]/);var n={name:"clike",helperType:"php",keywords:t(e),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(r),builtin:t(i),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,e){var r;if(r=t.match(/<<\s*/)){var i=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var n=t.current().slice(r[0].length+(i?2:1));if(i&&t.eat(i),n)return(e.tokStack||(e.tokStack=[])).push(n,0),e.tokenize=l(n,"'"!=i),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,e){return(e.tokStack||(e.tokStack=[])).push('"',0),e.tokenize=l('"'),"string"},"{":function(t,e){return e.tokStack&&e.tokStack.length&&e.tokStack[e.tokStack.length-1]++,!1},"}":function(t,e){return e.tokStack&&0<e.tokStack.length&&!--e.tokStack[e.tokStack.length-1]&&(e.tokenize=l(e.tokStack[e.tokStack.length-2])),!1}}};h.defineMode("php",function(t,r){var a=h.getMode(t,r&&r.htmlMode||"text/html"),l=h.getMode(t,n);return{startState:function(){var t=h.startState(a),e=r.startOpen?h.startState(l):null;return{html:t,php:e,curMode:r.startOpen?l:a,curState:r.startOpen?e:t,pending:null}},copyState:function(t){var e,r=t.html,i=h.copyState(a,r),n=t.php,o=n&&h.copyState(l,n);return e=t.curMode==a?i:o,{html:i,php:o,curMode:t.curMode,curState:e,pending:t.pending}},token:function(t,e){var r=e.curMode==l;if(t.sol()&&e.pending&&'"'!=e.pending&&"'"!=e.pending&&(e.pending=null),r)return r&&null==e.php.tokenize&&t.match("?>")?(e.curMode=a,e.curState=e.html,e.php.context.prev||(e.php=null),"meta"):l.token(t,e.curState);if(t.match(/^<\?\w*/))return e.curMode=l,e.php||(e.php=h.startState(l,a.indent(e.html,"",""))),e.curState=e.php,"meta";if('"'==e.pending||"'"==e.pending){for(;!t.eol()&&t.next()!=e.pending;);var i="string"}else if(e.pending&&t.pos<e.pending.end){t.pos=e.pending.end;i=e.pending.style}else i=a.token(t,e.curState);e.pending&&(e.pending=null);var n,o=t.current(),s=o.search(/<\?/);return-1!=s&&("string"==i&&(n=o.match(/[\'\"]$/))&&!/\?>/.test(o)?e.pending=n[0]:e.pending={end:t.pos,style:i},t.backUp(o.length-s)),i},indent:function(t,e,r){return t.curMode!=l&&/^\s*<\//.test(e)||t.curMode==l&&/^\?>/.test(e)?a.indent(t.html,e,r):t.curMode.indent(t.curState,e,r)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(t){return{state:t.curState,mode:t.curMode}}}},"htmlmixed","clike"),h.defineMIME("application/x-httpd-php","php"),h.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),h.defineMIME("text/x-php",n)},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror"),t("../htmlmixed/htmlmixed"),t("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],i):i(CodeMirror)},{"../../lib/codemirror":14,"../clike/clike":15,"../htmlmixed/htmlmixed":17}],20:[function(t,e,r){var i;i=function(b){"use strict";var w={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},E={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(t,e){var s,o,a=t.indentUnit,l={},r=e.htmlMode?w:E;for(var i in r)l[i]=r[i];for(var i in e)l[i]=e[i];function h(e,r){function t(t){return(r.tokenize=t)(e,r)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?t(n("atom","]]>")):null:e.match("--")?t(n("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),t(function i(n){return function(t,e){for(var r;null!=(r=t.next());){if("<"==r)return e.tokenize=i(n+1),e.tokenize(t,e);if(">"==r){if(1!=n)return e.tokenize=i(n-1),e.tokenize(t,e);e.tokenize=h;break}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),r.tokenize=n("meta","?>"),"meta"):(s=e.eat("/")?"closeTag":"openTag",r.tokenize=c,"tag bracket"):"&"!=i?(e.eatWhile(/[^&<]/),null):(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error"}function c(t,e){var r=t.next();if(">"==r||"/"==r&&t.eat(">"))return e.tokenize=h,s=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return s="equals",null;if("<"!=r)return/[\'\"]/.test(r)?(e.tokenize=(i=r,o.isInAttribute=!0,o),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");e.tokenize=h,e.state=d,e.tagName=e.tagStart=null;var i,n=e.tokenize(t,e);return n?n+" tag error":"tag error";function o(t,e){for(;!t.eol();)if(t.next()==i){e.tokenize=c;break}return"string"}}function n(r,i){return function(t,e){for(;!t.eol();){if(t.match(i)){e.tokenize=h;break}t.next()}return r}}function u(t,e,r){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function f(t){t.context&&(t.context=t.context.prev)}function p(t,e){for(var r;;){if(!t.context)return;if(r=t.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(e))return;f(t)}}function d(t,e,r){return"openTag"==t?(r.tagStart=e.column(),m):"closeTag"==t?g:d}function m(t,e,r){return"word"==t?(r.tagName=e.current(),o="tag",y):l.allowMissingTagName&&"endTag"==t?(o="tag bracket",y(t,e,r)):(o="error",m)}function g(t,e,r){if("word"!=t)return l.allowMissingTagName&&"endTag"==t?(o="tag bracket",_(t,e,r)):(o="error",v);var i=e.current();return r.context&&r.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&f(r),r.context&&r.context.tagName==i||!1===l.matchClosing?(o="tag",_):(o="tag error",v)}function _(t,e,r){return"endTag"!=t?(o="error",_):(f(r),d)}function v(t,e,r){return o="error",_(t,0,r)}function y(t,e,r){if("word"==t)return o="attribute",x;if("endTag"!=t&&"selfcloseTag"!=t)return o="error",y;var i=r.tagName,n=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(i)?p(r,i):(p(r,i),r.context=new u(r,i,n==r.indented)),d}function x(t,e,r){return"equals"==t?T:(l.allowMissing||(o="error"),y(t,0,r))}function T(t,e,r){return"string"==t?k:"word"==t&&l.allowUnquoted?(o="string",y):(o="error",y(t,0,r))}function k(t,e,r){return"string"==t?k:y(t,0,r)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:d,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;s=null;var r=e.tokenize(t,e);return(r||s)&&"comment"!=r&&(o=null,e.state=e.state(s||r,t,e),o&&(r="error"==o?r+" error":o)),r},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(i&&i.noIndent)return b.Pass;if(t.tokenize!=c&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var n=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(n&&n[1])for(;i;){if(i.tagName==n[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(n)for(;i;){var o=l.contextGrabbers[i.tagName];if(!o||!o.hasOwnProperty(n[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=y)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],r=t.context;r;r=r.prev)r.tagName&&e.push(r.tagName);return e.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})},"object"==typeof r&&"object"==typeof e?i(t("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)},{"../../lib/codemirror":14}],21:[function(t,e,r){r.read=function(t,e,r,i,n){var o,s,a=8*n-i-1,l=(1<<a)-1,h=l>>1,c=-7,u=r?n-1:0,f=r?-1:1,p=t[e+u];for(u+=f,o=p&(1<<-c)-1,p>>=-c,c+=a;0<c;o=256*o+t[e+u],u+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;0<c;s=256*s+t[e+u],u+=f,c-=8);if(0===o)o=1-h;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=h}return(p?-1:1)*s*Math.pow(2,o-i)},r.write=function(t,e,r,i,n,o){var s,a,l,h=8*o-n-1,c=(1<<h)-1,u=c>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),2<=(e+=1<=s+u?f/l:f*Math.pow(2,1-u))*l&&(s++,l/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(e*l-1)*Math.pow(2,n),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));8<=n;t[r+p]=255&a,p+=d,a/=256,n-=8);for(s=s<<n|a,h+=n;0<h;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*m}},{}],22:[function(t,i,n){(function(t){var e,r;e=window,r=function(){return(i={},n.m=r=[function(t,e,r){"use strict";var i=r(2);t.exports=i.extends("statement",function(t,e,r){i.apply(this,[t||"statement",e,r])})},function(t,e,r){"use strict";var i=r(2),n="expression";t.exports=i.extends(n,function(t,e,r){i.apply(this,[t||n,e,r])})},function(t,e,r){"use strict";function i(t,e,r){this.kind=t,e&&(this.leadingComments=e),r&&(this.loc=r)}i.prototype.setTrailingComments=function(t){this.trailingComments=t},i.prototype.destroy=function(t){if(!t)throw new Error("Node already initialized, you must swap with another node");return this.leadingComments&&(t.leadingComments?t.leadingComments=Array.concat(this.leadingComments,t.leadingComments):t.leadingComments=this.leadingComments),this.trailingComments&&(t.trailingComments?t.trailingComments=Array.concat(this.trailingComments,t.trailingComments):t.trailingComments=this.trailingComments),t},i.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset))),this},i.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,(e.prototype.constructor=e).kind=t,e},t.exports=i},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("literal",function(t,e,r,i,n){o.apply(this,[t||"literal",i,n]),this.value=e,r&&(this.raw=r)})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("operation",function(t,e,r){i.apply(this,[t||"operation",e,r])})},function(t,e,r){"use strict";var n=r(0),o="declaration",i=n.extends(o,function(t,e,r,i){n.apply(this,[t||o,r,i]),this.name=e});i.prototype.parseFlags=function(t){this.isAbstract=1===t[2],this.isFinal=2===t[2],"class"!==this.kind&&(-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1])},t.exports=i},function(t,e,r){"use strict";var i=r(2),n=i.extends("reference",function(t,e,r){i.apply(this,[t||"reference",e,r])});t.exports=n},function(t,e,r){"use strict";var n=r(0);t.exports=n.extends("block",function(t,e,r,i){n.apply(this,[t||"block",r,i]),this.children=e.filter(Boolean)})},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("lookup",function(t,e,r,i,n){o.apply(this,[t||"lookup",i,n]),this.what=e,this.offset=r})},function(t,e,r){"use strict";var n=r(2);t.exports=n.extends("comment",function(t,e,r,i){n.apply(this,[t,r,i]),this.value=e})},function(t,e,r){"use strict";var n=r(0),o="constantstatement";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[t||o,r,i]),this.constants=e})},function(t,e,r){"use strict";var a=r(5);t.exports=a.extends("function",function(t,e,r,i,n,o,s){a.apply(this,["function",t,o,s]),this.arguments=e,this.byref=r,this.type=i,this.nullable=n,this.body=null})},function(t,e,c){"use strict";(function(e){function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=c(18),i=c(28),n=c(44),o=c(45);function a(t,e){for(var r=Object.keys(t),i=r.length;i--;){var n=r[i],o=t[n];null===o?delete e[n]:"function"==typeof o?e[n]=o.bind(e):Array.isArray(o)?e[n]=Array.isArray(e[n])?e[n].concat(o):o:"object"===s(o)?e[n]="object"===s(e[n])?a(o,e[n]):o:e[n]=o}return e}function l(t){if("function"==typeof this)return new this(t);this.tokens=n,this.lexer=new r(this),this.ast=new o,this.parser=new i(this.lexer,this.ast),t&&"object"===s(t)&&(t.parser&&!1===t.parser.php7&&(t.lexer||(t.lexer={}),t.lexer.php7=!1),a(t,this))}function h(t){return e.isBuffer(t)?t.toString():t}l.create=function(t){return new l(t)},l.parseEval=function(t,e){return new l(e).parseEval(t)},l.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=h(t),this.parser.parse(t,"eval")},l.parseCode=function(t,e,r){return"object"!==s(e)||r||(r=e,e="unknown"),new l(r).parseCode(t,e)},l.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=h(t),this.parser.parse(t,e)},l.tokenGetAll=function(t,e){return new l(e).tokenGetAll(t)},l.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=h(t);var e=this.lexer.EOF,r=this.tokens.values;this.lexer.setInput(t);for(var i=this.lexer.lex()||e,n=[];i!=e;){var o=this.lexer.yytext;r.hasOwnProperty(i)&&(o=[r[i],o,this.lexer.yylloc.first_line]),n.push(o),i=this.lexer.lex()||e}return n},t.exports=l,t.exports.tokens=n,t.exports.lexer=r,t.exports.AST=o,t.exports.parser=i,t.exports.combine=a,t.exports.default=l}).call(this,c(13).Buffer)},function(t,F,e){"use strict";(function(t){var i=e(15),o=e(16),s=e(17);function r(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"!=typeof t)return n(this,t,e,r);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}function n(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=c(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,r),n=(t=a(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|f(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):c(t,e);if("Buffer"===e.type&&s(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(l(e),t=a(t,e<0?0:0|f(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e){var r=e.length<0?0:0|f(e.length);t=a(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(i)return P(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function m(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:g(t,e,r,i,n);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,i,n){var o,s=1,a=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a/=s=2,l/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var c=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(a<r+l&&(r=a-l),o=r;0<=o;o--){for(var u=!0,f=0;f<l;f++)if(h(t,o+f)!==h(e,f)){u=!1;break}if(u)return o}return-1}function _(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<i&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function v(t,e,r,i){return U(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function y(t,e,r,i){return U(function(t,e){for(var r,i,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function x(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,s,a,l,h=t[n],c=null,u=239<h?4:223<h?3:191<h?2:1;if(n+u<=r)switch(u){case 1:h<128&&(c=h);break;case 2:128==(192&(o=t[n+1]))&&127<(l=(31&h)<<6|63&o)&&(c=l);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&2047<(l=(15&h)<<12|(63&o)<<6|63&s)&&(l<55296||57343<l)&&(c=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)&&l<1114112&&(c=l)}null===c?(c=65533,u=1):65535<c&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=u}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=k));return r}(i)}F.Buffer=u,F.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},F.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),F.kMaxLength=r(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return n(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return i=null,o=e,s=r,l(n=t),n<=0?a(i,n):void 0!==o?"string"==typeof s?a(i,n).fill(o,s):a(i,n).fill(o):a(i,n);var i,n,o,s},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var i=u.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var o=t[r];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?T(this,0,t):function(t,e,r){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return E(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return b(this,e,r);case"latin1":case"binary":return w(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=F.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,i,n){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=e)return 0;if(n<=i)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,n),h=t.slice(e,r),c=0;c<a;++c)if(l[c]!==h[c]){o=l[c],s=h[c];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||n<r)&&(r=n),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,s,a,l,h,c,u=!1;;)switch(i){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return h=e,c=r,U(P(t,(l=this).length-h),l,h,c);case"ascii":return v(this,t,e,r);case"latin1":case"binary":return v(this,t,e,r);case"base64":return o=this,s=e,a=r,U(B(t),o,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function b(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function w(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function E(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||i<r)&&(r=i);for(var n="",o=e;o<r;++o)n+=D(t[o]);return n}function C(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function S(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,i,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function L(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-r,2);n<o;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function N(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-r,4);n<o;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function O(t,e,r,i){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,i,n){return n||O(t,0,r,4),o.write(t,e,r,i,23,4),r+4}function R(t,e,r,i,n){return n||O(t,0,r,8),o.write(t,e,r,i,52,8),r+8}u.prototype.slice=function(t,e){var r,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var n=e-t;r=new u(n,void 0);for(var o=0;o<n;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var i=this[t+--e],n=1;0<e&&(n*=256);)i+=this[t+--e]*n;return i},u.prototype.readUInt8=function(t,e){return e||S(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||S(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||S(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var i=e,n=1,o=this[t+--i];0<i&&(n*=256);)o+=this[t+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||S(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||S(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,i){t=+t,e|=0,r|=0,i||A(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,i){t=+t,e|=0,r|=0,i||A(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;0<=--n&&(o*=256);)this[e+n]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);A(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);A(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;0<=--o&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,i){if(r=r||0,i||0===i||(i=this.length),e>=t.length&&(e=t.length),e=e||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,o=i-r;if(this===t&&r<e&&e<i)for(n=o-1;0<=n;--n)t[n+e]=this[n+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:P(new u(t,i).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function P(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s<i;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!n){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===i){-1<(e-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,r<128){if(--e<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(t){return i.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(this,e(14))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],i=e[1];return 3*(r+i)/4-i},e.toByteArray=function(t){for(var e,r=u(t),i=r[0],n=r[1],o=new c(function(t,e){return 3*(t+e)/4-e}(i,n)),s=0,a=0<n?i-4:i,l=0;l<a;l+=4)e=h[t.charCodeAt(l)]<<18|h[t.charCodeAt(l+1)]<<12|h[t.charCodeAt(l+2)]<<6|h[t.charCodeAt(l+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===n&&(e=h[t.charCodeAt(l)]<<2|h[t.charCodeAt(l+1)]>>4,o[s++]=255&e);1===n&&(e=h[t.charCodeAt(l)]<<10|h[t.charCodeAt(l+1)]<<4|h[t.charCodeAt(l+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,n=[],o=0,s=r-i;o<s;o+=16383)n.push(l(t,o,s<o+16383?s:o+16383));1==i?(e=t[r-1],n.push(a[e>>2]+a[e<<4&63]+"==")):2==i&&(e=(t[r-2]<<8)+t[r-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return n.join("")};for(var a=[],h=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)a[n]=i[n],h[i.charCodeAt(n)]=n;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var i,n,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[(n=i)>>18&63]+a[n>>12&63]+a[n>>6&63]+a[63&n]);return o.join("")}h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,i,n){var o,s,a=8*n-i-1,l=(1<<a)-1,h=l>>1,c=-7,u=r?n-1:0,f=r?-1:1,p=t[e+u];for(u+=f,o=p&(1<<-c)-1,p>>=-c,c+=a;0<c;o=256*o+t[e+u],u+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;0<c;s=256*s+t[e+u],u+=f,c-=8);if(0===o)o=1-h;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=h}return(p?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,r,i,n,o){var s,a,l,h=8*o-n-1,c=(1<<h)-1,u=c>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),2<=(e+=1<=s+u?f/l:f*Math.pow(2,1-u))*l&&(s++,l/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(e*l-1)*Math.pow(2,n),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));8<=n;t[r+p]=255&a,p+=d,a/=256,n-=8);for(s=s<<n|a,h+=n;0<h;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*m}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!0,this.php7=!0,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}}n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(0<t)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var r=this.yytext[e];"\r"===r?(r=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==r&&("\r"===r?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===r?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var r=this._input[this.offset];if(!r)break;this.yytext+=r,this.offset++,"\r"===r&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===r||"\r"===r?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column}}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(t=0<this.tokens.length?("object"===i((t=this.tokens.shift())[1])?this.setState(t[1]):this.consume(t[1]),t[0]):this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var e=t;e="number"==typeof e?this.engine.tokens.values[e]:'"'+e+'"';var r=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(r.stack)}return t},[r(19),r(20),r(21),r(23),r(24),r(25),r(26),r(27)].forEach(function(t){for(var e in t)n.prototype[e]=t[e]}),t.exports=n},function(t,e,r){"use strict";t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},function(t,e,r){"use strict";t.exports={nextINITIAL:function(){return 1<this.conditionStack.length&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return 0<this.yytext.length&&this.tok.T_INLINE_HTML}}},function(e,t,r){"use strict";(function(t){var r=10,i="2147483648";"x64"==t.arch&&(r=19,i="9223372036854775808"),e.exports={consume_NUM:function(){var t=this.yytext[0],e="."===this.yytext[0];if("0"===t)if("x"===(t=this.input())||"X"===t){if(t=this.input(),this.is_HEX())return this.consume_HNUM();this.unput(t?2:1)}else if("b"===t||"B"===t){if("0"===(t=this.input())||"1"===t)return this.consume_BNUM();this.unput(t?2:1)}else this.is_NUM()||t&&this.unput(1);for(;this.offset<this.size;)if(t=this.input(),!this.is_NUM()){if("."!==t||e){if("e"===t||"E"===t){if("+"===(t=this.input())||"-"===t){if(t=this.input(),this.is_NUM())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?3:2);break}if(this.is_NUM())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?2:1);break}t&&this.unput(1);break}e=!0}return e?this.tok.T_DNUMBER:this.yytext.length<r-1||this.yytext.length<r||this.yytext.length==r&&this.yytext<i?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER}}}).call(this,r(22))},function(t,e){var r,i,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var l,h=[],c=!1,u=-1;function f(){c&&l&&(c=!1,l.length?h=l.concat(h):u=-1,h.length&&p())}function p(){if(!c){var t=a(f);c=!0;for(var e=h.length;e;){for(l=h,h=[];++u<e;)l&&l[u].run();u=-1,e=h.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];h.push(new d(t,e)),1!==h.length||c||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,r){"use strict";t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();if(this.is_NUM())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===t)return this.popState(),"]";if("$"===t){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN())return t;throw new Error("Unexpected terminal")}}},function(t,e,r){"use strict";t.exports={matchST_IN_SCRIPTING:function(){var t=this.input();switch(t){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(this.aspTagMode||!this.tryMatch(">"))return this.consume_TOKEN();this.input();var e=this._input[this.offset];return"\n"!==e&&"\r"!==e||this.input(),1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG;case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),this.aspTagMode=!1,1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return 2<this.conditionStack.length&&this.popState(),"}";default:if("."===t){if(t=this.input(),this.is_NUM())return this.consume_NUM();t&&this.unput(1)}if(this.is_NUM())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+t+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},function(t,e,r){"use strict";t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var e=this._input[this.offset-1];if("'"===e||'"'===e?this.offset++:e=null,this.is_LABEL_START()){for(var r=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var i=this._input.substring(r,this.offset-1);if((!e||e===this._input[this.offset-1])&&(e&&this.offset++,"\r"===this._input[this.offset-1]||"\n"===this._input[this.offset-1]))return this.heredoc_label=i,r=this.offset-t,this.offset=t,this.consume(r),"'"===e?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}if('"'==t)return this.tok.T_CONSTANT_ENCAPSED_STRING;var e=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),2<this.yytext.length&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(){if(this._input.substring(this.offset-1,this.offset-1+this.heredoc_label.length)===this.heredoc_label){var t=this._input[this.offset-1+this.heredoc_label.length];if("\n"===t||"\r"===t||";"===t)return!0}return!1},matchST_NOWDOC:function(){if(this.isDOC_MATCH())return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if("\n"===t||"\r"===t){if(t=this.input(),this.isDOC_MATCH())return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t=this.input();if(this.isDOC_MATCH())return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===t&&"\n"!==(t=this.input())&&"\r"!==t&&(t=this.input()),"\n"===t||"\r"===t){if(t=this.input(),this.isDOC_MATCH())return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,r=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(r,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):r}}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===t)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===t)this.input();else{if("`"===t){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,r=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(r,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):r}continue}if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);continue}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_DOUBLE_QUOTES:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if('"'===t)return this.popState(),'"';for(;this.offset<this.size;){if("\\"===t)this.input();else{if('"'===t){this.unput(1),this.popState(),this.appendToken('"',1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,r=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(r,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):r}t&&this.unput(1)}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);t&&this.unput(1)}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE}}},function(t,e,r){"use strict";t.exports={T_STRING:function(){var t=this.yytext.toLowerCase(),e=this.keywords[t];if("number"!=typeof e)if("yield"===t)e=this.php7&&this.tryMatch(" from")?(this.consume(5),this.tok.T_YIELD_FROM):this.tok.T_YIELD;else if(e=this.tok.T_STRING,"b"===t||"B"===t){var r=this.input(1);if('"'===r)return this.ST_DOUBLE_QUOTES();if("'"===r)return this.T_CONSTANT_ENCAPSED_STRING();r&&this.unput(1)}return e},consume_TOKEN:function(){var t=this._input[this.offset-1],e=this.tokenTerminals[t];return e?e.apply(this,[]):this.yytext},tokenTerminals:{$:function(){return this.offset++,this.is_LABEL_START()?(this.offset--,this.consume_LABEL(),this.tok.T_VARIABLE):(this.offset--,"$")},"-":function(){var t=this._input[this.offset];return">"===t?(this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_OBJECT_OPERATOR):"-"===t?(this.input(),this.tok.T_DEC):"="===t?(this.input(),this.tok.T_MINUS_EQUAL):"-"},"\\":function(){return this.tok.T_NS_SEPARATOR},"/":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_DIV_EQUAL):"/"},":":function(){return":"===this._input[this.offset]?(this.input(),this.tok.T_DOUBLE_COLON):":"},"(":function(){var t=this.offset;if(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),this.is_LABEL_START()){var e=this.yytext.length;this.consume_LABEL();var r=this.yytext.substring(e-1).toLowerCase(),i=this.castKeywords[r];if("number"==typeof i&&(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),")"===this._input[this.offset-1]))return i}return this.unput(this.offset-t),"("},"=":function(){var t=this._input[this.offset];return">"===t?(this.input(),this.tok.T_DOUBLE_ARROW):"="===t?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_IDENTICAL):(this.input(),this.tok.T_IS_EQUAL):"="},"+":function(){var t=this._input[this.offset];return"+"===t?(this.input(),this.tok.T_INC):"="===t?(this.input(),this.tok.T_PLUS_EQUAL):"+"},"!":function(){return"="===this._input[this.offset]?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_NOT_IDENTICAL):(this.input(),this.tok.T_IS_NOT_EQUAL):"!"},"?":function(){return this.php7&&"?"===this._input[this.offset]?(this.input(),this.tok.T_COALESCE):"?"},"<":function(){var t=this._input[this.offset];return"<"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SL_EQUAL):"<"===t&&this.is_HEREDOC()?this.tok.T_START_HEREDOC:(this.input(),this.tok.T_SL):"="===t?(this.input(),this.php7&&">"===this._input[this.offset]?(this.input(),this.tok.T_SPACESHIP):this.tok.T_IS_SMALLER_OR_EQUAL):">"===t?(this.input(),this.tok.T_IS_NOT_EQUAL):"<"},">":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_IS_GREATER_OR_EQUAL):">"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SR_EQUAL):(this.input(),this.tok.T_SR):">"},"*":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_MUL_EQUAL):"*"===t?(this.input(),"="===this._input[this.offset]?(this.input(),this.tok.T_POW_EQUAL):this.tok.T_POW):"*"},".":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_CONCAT_EQUAL):"."===t&&"."===this._input[this.offset+1]?(this.consume(2),this.tok.T_ELLIPSIS):"."},"%":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_MOD_EQUAL):"%"},"&":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_AND_EQUAL):"&"===t?(this.input(),this.tok.T_BOOLEAN_AND):"&"},"|":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_OR_EQUAL):"|"===t?(this.input(),this.tok.T_BOOLEAN_OR):"|"},"^":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_XOR_EQUAL):"^"}}}},function(t,e,r){"use strict";t.exports={is_NUM:function(){var t=this._input.charCodeAt(this.offset-1);return 47<t&&t<58},is_LABEL:function(){var t=this._input.charCodeAt(this.offset-1);return 96<t&&t<123||64<t&&t<91||95===t||47<t&&t<58||126<t},is_LABEL_START:function(){var t=this._input.charCodeAt(this.offset-1);return 96<t&&t<123||64<t&&t<91||95===t||126<t},consume_LABEL:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_LABEL()){t&&this.unput(1);break}}return this},is_TOKEN:function(){var t=this._input[this.offset-1];return-1!==";:,.\\[]()|^&+-/*=%!~$<>?@".indexOf(t)},is_WHITESPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t||"\n"===t||"\r"===t},is_TABSPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t},consume_TABSPACE:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_TABSPACE()){t&&this.unput(1);break}}return this},is_HEX:function(){var t=this._input.charCodeAt(this.offset-1);return 47<t&&t<58||64<t&&t<71||96<t&&t<103}}},function(t,e,r){"use strict";function o(t){return"."!=t&&","!=t&&!isNaN(parseFloat(t))&&isFinite(t)}function i(t,e){function r(t){return[t,null]}this.lexer=t,this.ast=e,this.tok=t.tok,this.EOF=t.EOF,this.token=null,this.prev=null,this.debug=!1,this.php7=!0,this.php74=!0,this.extractDoc=!1,this.extractTokens=!1,this.suppressErrors=!1,this.entries={IDENTIFIER:new Map([this.tok.T_ABSTRACT,this.tok.T_ARRAY,this.tok.T_AS,this.tok.T_BREAK,this.tok.T_CALLABLE,this.tok.T_CASE,this.tok.T_CATCH,this.tok.T_CLASS,this.tok.T_CLASS_C,this.tok.T_CLONE,this.tok.T_CONST,this.tok.T_CONTINUE,this.tok.T_DECLARE,this.tok.T_DEFAULT,this.tok.T_DIR,this.tok.T_DO,this.tok.T_ECHO,this.tok.T_ELSE,this.tok.T_ELSEIF,this.tok.T_EMPTY,this.tok.T_ENDDECLARE,this.tok.T_ENDFOR,this.tok.T_ENDFOREACH,this.tok.T_ENDIF,this.tok.T_ENDSWITCH,this.tok.T_ENDWHILE,this.tok.T_EVAL,this.tok.T_EXIT,this.tok.T_EXTENDS,this.tok.T_FILE,this.tok.T_FINAL,this.tok.T_FINALLY,this.tok.T_FUNC_C,this.tok.T_FOR,this.tok.T_FOREACH,this.tok.T_FUNCTION,this.tok.T_GLOBAL,this.tok.T_GOTO,this.tok.T_IF,this.tok.T_IMPLEMENTS,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_INSTANCEOF,this.tok.T_INSTEADOF,this.tok.T_INTERFACE,this.tok.T_ISSET,this.tok.T_LINE,this.tok.T_LIST,this.tok.T_LOGICAL_AND,this.tok.T_LOGICAL_OR,this.tok.T_LOGICAL_XOR,this.tok.T_METHOD_C,this.tok.T_NAMESPACE,this.tok.T_NEW,this.tok.T_NS_C,this.tok.T_PRINT,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_PUBLIC,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_RETURN,this.tok.T_STATIC,this.tok.T_SWITCH,this.tok.T_THROW,this.tok.T_TRAIT,this.tok.T_TRY,this.tok.T_UNSET,this.tok.T_USE,this.tok.T_VAR,this.tok.T_WHILE,this.tok.T_YIELD].map(r)),VARIABLE:new Map([this.tok.T_VARIABLE,"$","&",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAMESPACE,this.tok.T_STATIC].map(r)),SCALAR:new Map([this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(r)),T_MAGIC_CONST:new Map([this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(r)),T_MEMBER_FLAGS:new Map([this.tok.T_PUBLIC,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_STATIC,this.tok.T_ABSTRACT,this.tok.T_FINAL].map(r)),EOS:new Map([";",this.EOF,this.tok.T_INLINE_HTML].map(r)),EXPR:new Map(["@","-","+","!","~","(","`",this.tok.T_LIST,this.tok.T_CLONE,this.tok.T_INC,this.tok.T_DEC,this.tok.T_NEW,this.tok.T_ISSET,this.tok.T_EMPTY,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_EVAL,this.tok.T_INT_CAST,this.tok.T_DOUBLE_CAST,this.tok.T_STRING_CAST,this.tok.T_ARRAY_CAST,this.tok.T_OBJECT_CAST,this.tok.T_BOOL_CAST,this.tok.T_UNSET_CAST,this.tok.T_EXIT,this.tok.T_PRINT,this.tok.T_YIELD,this.tok.T_STATIC,this.tok.T_FUNCTION,this.tok.T_VARIABLE,"$",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_STRING,this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(r))}}i.prototype.getTokenName=function(t){return o(t)?t==this.EOF?"the end of file (EOF)":this.lexer.engine.tokens.values[t]:"'"+t+"'"},i.prototype.parse=function(t,e){this._errors=[],this.filename=e||"eval",this.currentNamespace=[""],this.extractDoc?this._docs=[]:this._docs=null,this.extractTokens?this._tokens=[]:this._tokens=null,this.php7||(this.php74=!1),this._docIndex=0,this._lastNode=null,this.lexer.setInput(t),this.lexer.all_tokens=this.extractTokens,this.lexer.comment_tokens=this.extractDoc,this.length=this.lexer._input.length,this.innerList=!1,this.innerListForm=!1;var r=this.node("program"),i=[];for(this.next();this.token!=this.EOF;){var n=this.read_start();null!=n&&(Array.isArray(n)?i=i.concat(n):i.push(n))}this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset];var o=r(i,this._errors,this._docs,this._tokens);if(this.debug){var s=this.ast.checkNodes();if(0<s.length)throw s.forEach(function(t){t.position&&console.log("Node at line "+t.position.line+", column "+t.position.column),console.log(t.stack.join("\n"))}),new Error("Some nodes are not closed")}return o},i.prototype.raiseError=function(t,e,r,i){if(t+=" on line "+this.lexer.yylloc.first_line,!this.suppressErrors){var n=new SyntaxError(t,this.filename,this.lexer.yylloc.first_line);throw n.lineNumber=this.lexer.yylloc.first_line,n.fileName=this.filename,n.columnNumber=this.lexer.yylloc.first_column,n}var o=this.ast.prepare("error",null,this)(t,i,this.lexer.yylloc.first_line,r);return this._errors.push(o),o},i.prototype.error=function(t){var e="Parse Error : syntax error",r=this.getTokenName(this.token),i="";if(this.token!==this.EOF){if(o(this.token)){var n=this.text();10<n.length&&(n=n.substring(0,7)+"..."),r="'"+n+"' ("+r+")"}e+=", unexpected "+r}return t&&!Array.isArray(t)&&(!o(t)&&1!==t.length||(i=", expecting "+this.getTokenName(t)),e+=i),this.raiseError(e,i,t,r)},i.prototype.node=function(t){if(this.extractDoc){var e=null;this._docIndex<this._docs.length&&(e=this._docs.slice(this._docIndex),this._docIndex=this._docs.length,this.debug&&(console.log(new Error("Append docs on "+t)),console.log(e)));var r=this.ast.prepare(t,e,this);return r.postBuild=function(t){if(this._docIndex<this._docs.length)if(this._lastNode){for(var e=this.prev[2],r=this._docIndex;r<this._docs.length&&!(this._docs[r].offset>e);r++);r>this._docIndex&&(this._lastNode.setTrailingComments(this._docs.slice(this._docIndex,r)),this._docIndex=r)}else this.token===this.EOF&&(t.setTrailingComments(this._docs.slice(this._docIndex)),this._docIndex=this._docs.length);this._lastNode=t}.bind(this),r}return this.ast.prepare(t,null,this)},i.prototype.expectEndOfStatement=function(t){if(";"===this.token)t&&";"===this.lexer.yytext&&t.includeToken(this);else if(this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF)return this.error(";"),!1;return this.next(),!0};var s=["parser.next","parser.node","parser.showlog"];i.prototype.showlog=function(){for(var t,e=(new Error).stack.split("\n"),r=2;r<e.length;r++){t=e[r].trim();for(var i=!1,n=0;n<s.length;n++)if(t.substring(3,3+s[n].length)===s[n]){i=!0;break}if(!i)break}return console.log("Line "+this.lexer.yylloc.first_line+" : "+this.getTokenName(this.token)+">"+this.lexer.yytext+"< @--\x3e"+t),this},i.prototype.expect=function(t){if(Array.isArray(t)){if(-1===t.indexOf(this.token))return this.error(t),!1}else if(this.token!=t)return this.error(t),!1;return!0},i.prototype.text=function(){return this.lexer.yytext},i.prototype.next=function(){if(";"===this.token&&";"!==this.lexer.yytext||(this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset]),this.lex(),this.debug&&this.showlog(),this.extractDoc)for(;this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT;)this.token===this.tok.T_COMMENT?this._docs.push(this.read_comment()):this._docs.push(this.read_doc_comment());return this},i.prototype.lex=function(){if(this.extractTokens)do{if(this.token=this.lexer.lex()||this.EOF,this.token===this.EOF)return this;var t=this.lexer.yytext;if(t=this.lexer.engine.tokens.values.hasOwnProperty(this.token)?[this.lexer.engine.tokens.values[this.token],t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset]:[null,t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset],this._tokens.push(t),this.token===this.tok.T_CLOSE_TAG)return this.token=";",this;if(this.token===this.tok.T_OPEN_TAG_WITH_ECHO)return this.token=this.tok.T_ECHO,this}while(this.token===this.tok.T_WHITESPACE||!this.extractDoc&&(this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT)||this.token===this.tok.T_OPEN_TAG);else this.token=this.lexer.lex()||this.EOF;return this},i.prototype.is=function(t){return Array.isArray(t)?-1!==t.indexOf(this.token):this.entries[t].has(this.token)},[r(29),r(30),r(31),r(32),r(33),r(34),r(35),r(36),r(37),r(38),r(39),r(40),r(41),r(42),r(43)].forEach(function(t){for(var e in t){if(i.prototype.hasOwnProperty(e))throw new Error("Function "+e+" is already defined - collision");i.prototype[e]=t[e]}}),t.exports=i},function(t,e,r){"use strict";t.exports={read_array:function(){var t=null,e=!1,r=this.node("array");t=this.token===this.tok.T_ARRAY?(this.next().expect("("),")"):(e=!0,"]");var i=[];return this.next().token!==t&&(i=this.read_array_pair_list(e)),this.expect(t),this.next(),r(e,i)},read_array_pair_list:function(t){var e=this;return this.read_list(function(){return e.read_array_pair(t)},",",!0)},read_array_pair:function(t){if(","===this.token||!t&&")"===this.token||t&&"]"===this.token)return this.node("noop")();if("&"===this.token)return this.next().read_variable(!0,!1,!0);var e=this.node("entry"),r=this.read_expr();return this.token===this.tok.T_DOUBLE_ARROW?"&"===this.next().token?e(r,this.next().read_variable(!0,!1,!0)):e(r,this.read_expr()):(e.destroy(),r)}}},function(t,e,r){"use strict";t.exports={read_class:function(){var t=this.node("class"),e=this.read_class_scope();if(this.token!==this.tok.T_CLASS)return this.error(this.tok.T_CLASS),this.next(),null;this.next().expect(this.tok.T_STRING);var r=this.node("identifier"),i=this.text();this.next(),r=r(i);var n=null;this.token==this.tok.T_EXTENDS&&(n=this.next().read_namespace_name());var o=null;return this.token==this.tok.T_IMPLEMENTS&&(o=this.next().read_name_list()),this.expect("{"),t(r,n,o,this.next().read_class_body(),e)},read_class_scope:function(){var t=this.token;return t==this.tok.T_FINAL?(this.next(),[0,0,2]):t==this.tok.T_ABSTRACT?(this.next(),[0,0,1]):[0,0,0]},read_class_body:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT)if(this.token!==this.tok.T_USE){var e=this.read_member_flags(!1);if(this.token!==this.tok.T_CONST)if(this.token===this.tok.T_VAR&&(this.next().expect(this.tok.T_VARIABLE),e[0]=null,e[1]=0),this.token===this.tok.T_VARIABLE){var r=this.read_variable_list(e);this.expect(";"),this.next(),t=t.concat(r)}else this.token===this.tok.T_FUNCTION?t.push(this.read_function(!1,e)):(this.error([this.tok.T_CONST,this.tok.T_VARIABLE,this.tok.T_FUNCTION]),this.next());else{var i=this.read_constant_list(e);this.expect(";")&&this.next(),t=t.concat(i)}}else t=t.concat(this.read_trait_use_statement());else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}"),this.next(),t},read_variable_list:function(t){return this.node("propertystatement")(null,this.read_list(function(){var t=this.node("property");this.expect(this.tok.T_VARIABLE);var e=this.node("identifier"),r=this.text().substring(1);return this.next(),e=e(r),";"===this.token||","===this.token?t(e,null):"="===this.token?t(e,this.next().read_expr()):(this.expect([",",";","="]),t(e,null))},","),t)},read_constant_list:function(t){return this.expect(this.tok.T_CONST)&&this.next(),this.node("classconstant")(null,this.read_list(function(){var t=this.node("constant"),e=null,r=null;if(this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")){e=this.node("identifier");var i=this.text();this.next(),e=e(i)}else this.expect("IDENTIFIER");return this.expect("=")&&(r=this.next().read_expr()),t(e,r)},","),t)},read_member_flags:function(t){var e=[-1,-1,-1];if(this.is("T_MEMBER_FLAGS")){var r=0,i=0;do{switch(this.token){case this.tok.T_PUBLIC:i=r=0;break;case this.tok.T_PROTECTED:r=0,i=1;break;case this.tok.T_PRIVATE:r=0,i=2;break;case this.tok.T_STATIC:i=r=1;break;case this.tok.T_ABSTRACT:r=2,i=1;break;case this.tok.T_FINAL:i=r=2}t&&(0==r&&2==i?(this.expect([this.tok.T_PUBLIC,this.tok.T_PROTECTED]),i=-1):2==r&&1==i&&(this.error(),i=-1)),-1!==e[r]?this.error():-1!==i&&(e[r]=i)}while(this.next().is("T_MEMBER_FLAGS"))}return-1==e[1]&&(e[1]=0),-1==e[2]&&(e[2]=0),e},read_interface:function(){var t=this.node("interface");if(this.token!==this.tok.T_INTERFACE)return this.error(this.tok.T_INTERFACE),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),r=this.text();this.next(),e=e(r);var i=null;return this.token===this.tok.T_EXTENDS&&(i=this.next().read_name_list()),this.expect("{"),t(e,i,this.next().read_interface_body())},read_interface_body:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT){var e=this.read_member_flags(!0);if(this.token==this.tok.T_CONST){var r=this.read_constant_list(e);this.expect(";")&&this.next(),t=t.concat(r)}else if(this.token===this.tok.T_FUNCTION){var i=this.read_function_declaration(2,e);i.parseFlags(e),t.push(i),this.expect(";")&&this.next()}else this.error([this.tok.T_CONST,this.tok.T_FUNCTION]),this.next()}else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}")&&this.next(),t},read_trait:function(){var t=this.node("trait");if(this.token!==this.tok.T_TRAIT)return this.error(this.tok.T_TRAIT),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),r=this.text();return this.next(),e=e(r),this.expect("{"),t(e,this.next().read_class_body())},read_trait_use_statement:function(){var t=this.node("traituse");this.expect(this.tok.T_USE)&&this.next();for(var e=[this.read_namespace_name()],r=null;","===this.token;)e.push(this.next().read_namespace_name());if("{"===this.token){for(r=[];this.next().token!==this.EOF&&"}"!==this.token;)r.push(this.read_trait_use_alias()),this.expect(";");this.expect("}")&&this.next()}else this.expect(";")&&this.next();return t(e,r)},read_trait_use_alias:function(){var t,e=this.node(),r=null;if(this.is("IDENTIFIER")){t=this.node("identifier");var i=this.text();this.next(),t=t(i)}else if(t=this.read_namespace_name(),this.token===this.tok.T_DOUBLE_COLON)if(this.next(),this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")){r=t,t=this.node("identifier");var n=this.text();this.next(),t=t(n)}else this.expect(this.tok.T_STRING);else t=t.name;if(this.token===this.tok.T_INSTEADOF)return e("traitprecedence",r,t,this.next().read_name_list());if(this.token!==this.tok.T_AS)return this.expect([this.tok.T_AS,this.tok.T_INSTEADOF]),e("traitalias",r,t,null,null);var o=null,s=null;if(this.next().is("T_MEMBER_FLAGS")&&(o=this.read_member_flags()),this.token===this.tok.T_STRING||this.php7&&this.is("IDENTIFIER")){s=this.node("identifier");var a=this.text();this.next(),s=s(a)}else!1===o&&this.expect(this.tok.T_STRING);return e("traitalias",r,t,s,o)}}},function(t,e,r){"use strict";t.exports={read_comment:function(){var t=this.text(),e=this.ast.prepare("/*"===t.substring(0,2)?"commentblock":"commentline",null,this),r=this.lexer.yylloc.first_offset,i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(e=e(t)).offset=r,this.prev=i,e},read_doc_comment:function(){var t=this.ast.prepare("commentblock",null,this),e=this.lexer.yylloc.first_offset,r=this.text(),i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(t=t(r)).offset=e,this.prev=i,t}}},function(t,e,r){"use strict";t.exports={read_expr:function(t){var e=this.node();if(t=t||this.read_expr_item(),"|"===this.token)return e("bin","|",t,this.next().read_expr());if("&"===this.token)return e("bin","&",t,this.next().read_expr());if("^"===this.token)return e("bin","^",t,this.next().read_expr());if("."===this.token)return e("bin",".",t,this.next().read_expr());if("+"===this.token)return e("bin","+",t,this.next().read_expr());if("-"===this.token)return e("bin","-",t,this.next().read_expr());if("*"===this.token)return e("bin","*",t,this.next().read_expr());if("/"===this.token)return e("bin","/",t,this.next().read_expr());if("%"===this.token)return e("bin","%",t,this.next().read_expr());if(this.token===this.tok.T_POW)return e("bin","**",t,this.next().read_expr());if(this.token===this.tok.T_SL)return e("bin","<<",t,this.next().read_expr());if(this.token===this.tok.T_SR)return e("bin",">>",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_OR)return e("bin","||",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_OR)return e("bin","or",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_AND)return e("bin","&&",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_AND)return e("bin","and",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_XOR)return e("bin","xor",t,this.next().read_expr());if(this.token===this.tok.T_IS_IDENTICAL)return e("bin","===",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_IDENTICAL)return e("bin","!==",t,this.next().read_expr());if(this.token===this.tok.T_IS_EQUAL)return e("bin","==",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_EQUAL)return e("bin","!=",t,this.next().read_expr());if("<"===this.token)return e("bin","<",t,this.next().read_expr());if(">"===this.token)return e("bin",">",t,this.next().read_expr());if(this.token===this.tok.T_IS_SMALLER_OR_EQUAL)return e("bin","<=",t,this.next().read_expr());if(this.token===this.tok.T_IS_GREATER_OR_EQUAL)return e("bin",">=",t,this.next().read_expr());if(this.token===this.tok.T_SPACESHIP)return e("bin","<=>",t,this.next().read_expr());if(this.token===this.tok.T_INSTANCEOF&&(t=e("bin","instanceof",t,this.next().read_class_name_reference()),";"!==this.token&&this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF&&(t=this.read_expr(t))),this.token===this.tok.T_COALESCE)return e("bin","??",t,this.next().read_expr());if("?"!==this.token)return e.destroy(t),t;var r=null;return":"!==this.next().token&&(r=this.read_expr()),this.expect(":")&&this.next(),e("retif",t,r,this.read_expr())},read_expr_cast:function(t){return this.node("cast")(t,this.text(),this.next().read_expr())},read_expr_item:function(){var t,e;if("@"===this.token)return this.node("silent")(this.next().read_expr());if("+"===this.token)return this.node("unary")("+",this.next().read_expr());if("-"===this.token)return this.node("unary")("-",this.next().read_expr());if("!"===this.token)return this.node("unary")("!",this.next().read_expr());if("~"===this.token)return this.node("unary")("~",this.next().read_expr());if("("===this.token)return(e=this.next().read_expr()).parenthesizedExpression=!0,this.expect(")")&&this.next(),this.handleDereferencable(e);if("`"===this.token)return this.read_encapsed_string("`");if(this.token===this.tok.T_LIST){var r=null,i=this.innerList;t=this.node("list"),i||(r=this.node("assign")),this.next().expect("(")&&this.next(),this.innerList||(this.innerList=!0);var n=this.read_array_pair_list(!1);this.expect(")")&&this.next();for(var o=!1,s=0;s<n.length;s++)if(null!==n[s]&&"noop"!==n[s].kind){o=!0;break}return o||this.raiseError("Fatal Error : Cannot use empty list on line "+this.lexer.yylloc.first_line),i?t(n,!1):(this.innerList=!1,this.expect("=")?r(t(n,!1),this.next().read_expr(),"="):t(n,!1))}if(this.token===this.tok.T_CLONE)return this.node("clone")(this.next().read_expr());switch(this.token){case this.tok.T_INC:return this.node("pre")("+",this.next().read_variable(!1,!1,!1));case this.tok.T_DEC:return this.node("pre")("-",this.next().read_variable(!1,!1,!1));case this.tok.T_NEW:return this.read_new_expr();case this.tok.T_ISSET:t=this.node("isset"),this.next().expect("(")&&this.next();var a=this.read_list(this.read_expr,",");return this.expect(")")&&this.next(),t(a);case this.tok.T_EMPTY:t=this.node("empty"),this.next().expect("(")&&this.next();var l=this.read_expr();return this.expect(")")&&this.next(),t(l);case this.tok.T_INCLUDE:return this.node("include")(!1,!1,this.next().read_expr());case this.tok.T_INCLUDE_ONCE:return this.node("include")(!0,!1,this.next().read_expr());case this.tok.T_REQUIRE:return this.node("include")(!1,!0,this.next().read_expr());case this.tok.T_REQUIRE_ONCE:return this.node("include")(!0,!0,this.next().read_expr());case this.tok.T_EVAL:return t=this.node("eval"),this.next().expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),t(e);case this.tok.T_INT_CAST:return this.read_expr_cast("int");case this.tok.T_DOUBLE_CAST:return this.read_expr_cast("float");case this.tok.T_STRING_CAST:return this.read_expr_cast(-1!==this.text().indexOf("binary")?"binary":"string");case this.tok.T_ARRAY_CAST:return this.read_expr_cast("array");case this.tok.T_OBJECT_CAST:return this.read_expr_cast("object");case this.tok.T_BOOL_CAST:return this.read_expr_cast("bool");case this.tok.T_UNSET_CAST:return this.read_expr_cast("unset");case this.tok.T_EXIT:var h="die"===this.lexer.yytext.toLowerCase();t=this.node("exit");var c=null;return"("===this.next().token&&(")"!==this.next().token?(c=this.read_expr(),this.expect(")")&&this.next()):this.next()),t(c,h);case this.tok.T_PRINT:return this.node("print")(this.next().read_expr());case this.tok.T_YIELD:var u=null,f=null;return t=this.node("yield"),this.next().is("EXPR")&&(u=this.read_expr(),this.token===this.tok.T_DOUBLE_ARROW&&(f=u,u=this.next().read_expr())),t(u,f);case this.tok.T_YIELD_FROM:return(t=this.node("yieldfrom"))(e=this.next().read_expr());case this.tok.T_FUNCTION:return this.read_function(!0);case this.tok.T_STATIC:var p=[this.token,this.lexer.getState()];if(this.next().token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);this.lexer.tokens.push(p),this.next()}if(this.is("VARIABLE")){t=this.node();var d="identifier"===(e=this.read_variable(!1,!1,!1)).kind||"staticlookup"===e.kind&&"identifier"===e.offset.kind;switch(this.token){case"=":return d&&this.error("VARIABLE"),t("assign",e,"&"==this.next().token?this.next().token===this.tok.T_NEW?(this.php7&&this.error(),this.read_new_expr()):this.read_variable(!1,!1,!0):this.read_expr(),"=");case this.tok.T_PLUS_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"+=");case this.tok.T_MINUS_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"-=");case this.tok.T_MUL_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"*=");case this.tok.T_POW_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"**=");case this.tok.T_DIV_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"/=");case this.tok.T_CONCAT_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),".=");case this.tok.T_MOD_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"%=");case this.tok.T_AND_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"&=");case this.tok.T_OR_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"|=");case this.tok.T_XOR_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"^=");case this.tok.T_SL_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"<<=");case this.tok.T_SR_EQUAL:return d&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),">>=");case this.tok.T_INC:return d&&this.error("VARIABLE"),this.next(),t("post","+",e);case this.tok.T_DEC:return d&&this.error("VARIABLE"),this.next(),t("post","-",e);default:t.destroy(e)}}else{if(this.is("SCALAR")){if(t=this.node(),"array"===(e=this.read_scalar()).kind&&e.shortForm&&"="===this.token){var m=this.node("list")(e.items,!0);return e.loc&&(m.loc=e.loc),t("assign",m,this.next().read_expr(),"=")}return t.destroy(e),this.handleDereferencable(e)}this.error("EXPR"),this.next()}return e},read_new_expr:function(){var t=this.node("new");this.expect(this.tok.T_NEW)&&this.next();var e=[];if(this.token===this.tok.T_CLASS){var r=this.node("class"),i=null,n=null,o=null;return"("===this.next().token&&(e=this.read_function_argument_list()),this.token==this.tok.T_EXTENDS&&(i=this.next().read_namespace_name()),this.token==this.tok.T_IMPLEMENTS&&(n=this.next().read_name_list()),this.expect("{")&&(o=this.next().read_class_body()),t(r(null,i,n,o,[0,0,0]),e)}var s=this.read_new_class_name();return"("===this.token&&(e=this.read_function_argument_list()),t(s,e)},read_new_class_name:function(){if(this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_STRING||this.token===this.tok.T_NAMESPACE){var t=this.read_namespace_name(!0);return this.token===this.tok.T_DOUBLE_COLON&&(t=this.read_static_getter(t)),t}if(this.is("VARIABLE"))return this.read_variable(!0,!1,!1);this.expect([this.tok.T_STRING,"VARIABLE"])},handleDereferencable:function(t){for(;this.token!==this.EOF;)if(this.token===this.tok.T_OBJECT_OPERATOR||this.token===this.tok.T_DOUBLE_COLON)t=this.recursive_variable_chain_scan(t,!1,!1,!0);else if(this.token===this.tok.T_CURLY_OPEN||"["===this.token)t=this.read_dereferencable(t);else{if("("!==this.token)return t;t=this.node("call")(t,this.read_function_argument_list())}return t}}},function(t,e,r){"use strict";t.exports={is_reference:function(){return"&"==this.token&&(this.next(),!0)},is_variadic:function(){return this.token===this.tok.T_ELLIPSIS&&(this.next(),!0)},read_function:function(t,e){var r=this.read_function_declaration(t?1:e?2:0,e&&1===e[1]);return e&&1==e[2]?(r.parseFlags(e),this.expect(";")&&this.next()):(this.expect("{")&&(r.body=this.read_code_block(!1),r.loc&&r.body.loc&&(r.loc.end=r.body.loc.end)),!t&&e&&r.parseFlags(e)),r},read_function_declaration:function(t,e){var r="function";1===t?r="closure":2===t&&(r="method");var i=this.node(r);this.expect(this.tok.T_FUNCTION)&&this.next();var n=this.is_reference(),o=!1,s=[],a=null,l=!1;if(1!==t){var h=this.node("identifier");2===t?this.php7?this.token===this.tok.T_STRING||this.is("IDENTIFIER")?(o=this.text(),this.next()):this.php74||this.error("IDENTIFIER"):this.token===this.tok.T_STRING?(o=this.text(),this.next()):this.error("IDENTIFIER"):this.php7?this.token===this.tok.T_STRING?(o=this.text(),this.next()):this.php74?this.expect("(")||this.next():(this.error(this.tok.T_STRING),this.next()):(this.expect(this.tok.T_STRING)&&(o=this.text()),this.next()),o=h(o)}this.expect("(")&&this.next();var c=this.read_parameter_list();return this.expect(")")&&this.next(),1===t&&this.token===this.tok.T_USE&&(this.next().expect("(")&&this.next(),s=this.read_list(this.read_lexical_var,","),this.expect(")")&&this.next()),":"===this.token&&("?"===this.next().token&&(l=!0,this.next()),a=this.read_type()),1===t?i(c,n,s,a,l,e):i(o,c,n,a,l)},read_lexical_var:function(){var t=this.node("variable"),e=!1;"&"===this.token&&(e=!0,this.next()),this.expect(this.tok.T_VARIABLE);var r=this.text().substring(1);return this.next(),t(r,e,!1)},read_parameter_list:function(){var t=[];if(")"!=this.token)for(;this.token!=this.EOF;){if(t.push(this.read_parameter()),","!=this.token){if(")"==this.token)break;this.error([",",")"]);break}this.next()}return t},read_parameter:function(){var t,e=this.node("parameter"),r=null,i=null,n=!1;"?"===this.token&&(this.next(),n=!0),t=this.read_type(),n&&!t&&this.raiseError("Expecting a type definition combined with nullable operator");var o=this.is_reference(),s=this.is_variadic();if(this.expect(this.tok.T_VARIABLE)){r=this.node("identifier");var a=this.text().substring(1);this.next(),r=r(a)}return"="==this.token&&(i=this.next().read_expr()),e(r,t,i,o,s,n)},read_function_argument_list:function(){var t=[],e=!1;if(this.expect("(")&&this.next(),")"!==this.token)for(;this.token!=this.EOF;){var r=this.read_argument_list();if(r&&(t.push(r),"variadic"===r.kind?e=!0:e&&this.raiseError("Unexpected argument after a variadic argument")),","!==this.token)break;this.next()}return this.expect(")")&&this.next(),t},read_argument_list:function(){return this.token===this.tok.T_ELLIPSIS?this.node("variadic")(this.next().read_expr()):this.read_expr()},read_type:function(){var t=this.node();if(this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE){var e=this.text();return this.next(),t("typereference",e.toLowerCase(),e)}if(this.token!==this.tok.T_STRING)return this.token===this.tok.T_NAMESPACE||this.token===this.tok.T_NS_SEPARATOR?this.read_namespace_name():null;var r=this.text(),i=[this.token,this.lexer.getState()];return this.next(),this.token!==this.tok.T_NS_SEPARATOR&&-1<this.ast.typereference.types.indexOf(r.toLowerCase())?t("typereference",r.toLowerCase(),r):(this.lexer.tokens.push(i),this.next(),this.read_namespace_name())}}},function(t,e,r){"use strict";t.exports={read_if:function(){var t,e=this.node("if"),r=null,i=null,n=!1;if(t=this.next().read_if_expr(),":"===this.token){n=!0,this.next(),r=this.node("block");for(var o=[];this.token!==this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){i=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){i=this.read_else_short();break}o.push(this.read_inner_statement())}r=r(null,o),this.expect(this.tok.T_ENDIF)&&this.next(),this.expectEndOfStatement()}else r=this.read_statement(),this.token===this.tok.T_ELSEIF?i=this.read_if():this.token===this.tok.T_ELSE&&(i=this.next().read_statement());return e(t,r,i,n)},read_if_expr:function(){this.expect("(")&&this.next();var t=this.read_expr();return this.expect(")")&&this.next(),t},read_elseif_short:function(){var t,e=this.node("if"),r=null,i=null,n=[];for(t=this.next().read_if_expr(),this.expect(":")&&this.next(),i=this.node("block");this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){r=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){r=this.read_else_short();break}n.push(this.read_inner_statement())}return e(t,i=i(null,n),r,!0)},read_else_short:function(){var t=this.node("block");this.next().expect(":")&&this.next();for(var e=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;)e.push(this.read_inner_statement());return t(null,e)}}},function(t,e,r){"use strict";t.exports={read_while:function(){var t=this.node("while");this.expect(this.tok.T_WHILE)&&this.next();var e,r=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),t(e,":"===this.token?(r=!0,this.read_short_form(this.tok.T_ENDWHILE)):this.read_statement(),r)},read_do:function(){var t=this.node("do");this.expect(this.tok.T_DO)&&this.next();var e,r=null;return e=this.read_statement(),this.expect(this.tok.T_WHILE)&&(this.next().expect("(")&&this.next(),r=this.read_expr(),this.expect(")")&&this.next(),this.expect(";")&&this.next()),t(r,e)},read_for:function(){var t=this.node("for");this.expect(this.tok.T_FOR)&&this.next();var e=[],r=[],i=[],n=!1;return this.expect("(")&&this.next(),";"!==this.token?(e=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),";"!==this.token?(r=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),")"!==this.token?(i=this.read_list(this.read_expr,","),this.expect(")")&&this.next()):this.next(),t(e,r,i,":"===this.token?(n=!0,this.read_short_form(this.tok.T_ENDFOR)):this.read_statement(),n)},read_foreach:function(){var t=this.node("foreach");this.expect(this.tok.T_FOREACH)&&this.next();var e,r=null,i=null,n=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(this.tok.T_AS)&&(this.next(),i=this.read_foreach_variable(),this.token===this.tok.T_DOUBLE_ARROW&&(r=i,i=this.next().read_foreach_variable())),r&&"list"===r.kind&&this.raiseError("Fatal Error : Cannot use list as key element"),this.expect(")")&&this.next(),t(e,r,i,":"===this.token?(n=!0,this.read_short_form(this.tok.T_ENDFOREACH)):this.read_statement(),n)},read_foreach_variable:function(){if(this.token!==this.tok.T_LIST&&"["!==this.token)return this.read_variable(!1,!1,!1);var t="["===this.token,e=this.node("list");this.next(),!t&&this.expect("(")&&this.next();var r=this.read_array_pair_list(t);return this.expect(t?"]":")")&&this.next(),e(r,t)}}},function(t,e,r){"use strict";t.exports={read_start:function(){return this.token==this.tok.T_NAMESPACE?this.read_namespace():this.read_top_statement()}}},function(t,e,r){"use strict";t.exports={read_namespace:function(){var t,e=this.node("namespace");if(this.expect(this.tok.T_NAMESPACE)&&this.next(),"{"==this.token)return this.currentNamespace=[""],t=this.next().read_top_statements(),this.expect("}")&&this.next(),e([""],t,!0);var r=this.read_namespace_name();return";"==this.token?(this.currentNamespace=r,t=this.next().read_top_statements(),this.expect(this.EOF),e(r.name,t,!1)):"{"==this.token?(this.currentNamespace=r,t=this.next().read_top_statements(),this.expect("}")&&this.next(),e(r.name,t,!0)):"("===this.token?(r.resolution=this.ast.reference.RELATIVE_NAME,r.name=r.name.substring(1),e.destroy(),this.node("call")(r,this.read_function_argument_list())):(this.error(["{",";"]),this.currentNamespace=r,t=this.read_top_statements(),this.expect(this.EOF),e(r,t,!1))},read_namespace_name:function(t){var e=this.node(),r=!1;this.token===this.tok.T_NAMESPACE&&(this.next().expect(this.tok.T_NS_SEPARATOR)&&this.next(),r=!0);var i=this.read_list(this.tok.T_STRING,this.tok.T_NS_SEPARATOR,!0);if(!r&&1===i.length&&(t||"("!==this.token)){if("parent"===i[0].toLowerCase())return e("parentreference",i[0]);if("self"===i[0].toLowerCase())return e("selfreference",i[0])}return e("classreference",i,r)},read_use_statement:function(){var t=this.node("usegroup"),e=[],r=null;this.expect(this.tok.T_USE)&&this.next();var i=this.read_use_type();return e.push(this.read_use_declaration(!1)),","===this.token?e=e.concat(this.next().read_use_declarations(!1)):"{"===this.token&&(r=e[0].name,e=this.next().read_use_declarations(null===i),this.expect("}")&&this.next()),t=t(r,i,e),this.expect(";")&&this.next(),t},read_class_name_reference:function(){return this.read_variable(!0,!1,!1)},read_use_declaration:function(t){var e=this.node("useitem"),r=null;t&&(r=this.read_use_type());var i=this.read_namespace_name(),n=this.read_use_alias();return e(i.name,n,r)},read_use_declarations:function(t){for(var e=[this.read_use_declaration(t)];","===this.token;){if(this.next(),t){if(this.token!==this.tok.T_FUNCTION&&this.token!==this.tok.T_CONST&&this.token!==this.tok.T_STRING)break}else if(this.token!==this.tok.T_STRING&&this.token!==this.tok.T_NS_SEPARATOR)break;e.push(this.read_use_declaration(t))}return e},read_use_alias:function(){var t=null;if(this.token===this.tok.T_AS&&this.next().expect(this.tok.T_STRING)){var e=this.node("identifier"),r=this.text();this.next(),t=e(r)}return t},read_use_type:function(){return this.token===this.tok.T_FUNCTION?(this.next(),this.ast.useitem.TYPE_FUNCTION):this.token===this.tok.T_CONST?(this.next(),this.ast.useitem.TYPE_CONST):null}}},function(t,e,r){"use strict";var i={"\\r":"\r","\\n":"\n","\\t":"\t","\\v":String.fromCharCode(11),"\\e":String.fromCharCode(27),"\\f":String.fromCharCode(12),"\\\\":"\\","\\$":"$",'\\"':'"',"\\'":"'"};t.exports={resolve_special_chars:function(t,e){return e?t.replace(/\\[rntvef"'\\$]/g,function(t){return i[t]}):t.replace(/\\['\\]/g,function(t){return i[t]})},read_scalar:function(){if(this.is("T_MAGIC_CONST"))return this.get_magic_constant();var t,e;switch(this.token){case this.tok.T_CONSTANT_ENCAPSED_STRING:t=this.node("string");var r=this.text(),i=0;"b"!==r[0]&&"B"!==r[0]||(i=1);var n='"'===r[i];return this.next(),t=t(n,this.resolve_special_chars(r.substring(i+1,r.length-1),n),1===i,r),this.token===this.tok.T_DOUBLE_COLON?this.read_static_getter(t):t;case this.tok.T_START_HEREDOC:if("ST_NOWDOC"!==this.lexer.curCondition)return this.read_encapsed_string(this.tok.T_END_HEREDOC);var o=this.lexer.yylloc.first_offset;e=this.node("nowdoc");var s=(t=this.next().text())[t.length-1];"\n"===s?t="\r"===t[t.length-2]?t.substring(0,t.length-2):t.substring(0,t.length-1):"\r"===s&&(t=t.substring(0,t.length-1)),this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE)&&this.next();var a=this.lexer._input.substring(o,this.lexer.yylloc.last_offset);return this.expect(this.tok.T_END_HEREDOC)&&this.next(),e=e(t,a,this.lexer.heredoc_label,'"'===a[3]||"'"===a[3]);case'"':return this.read_encapsed_string('"');case'b"':case'B"':return this.read_encapsed_string('"',!0);case this.tok.T_LNUMBER:case this.tok.T_DNUMBER:var l=this.node("number");return t=this.text(),this.next(),l(t,null);case this.tok.T_ARRAY:case"[":return this.read_array();default:var h=this.error("SCALAR");return this.next(),h}},read_dereferencable:function(t){var e,r,i=this.node("offsetlookup");return"["===this.token?(r=this.next().read_expr(),this.expect("]")&&this.next(),e=i(t,r)):this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES&&(e=i(t,r=this.read_encapsed_string_item(!1))),e},read_encapsed_string_item:function(t){var e,r,i,n=this.node("encapsedpart"),o=!1,s=this.node();if(this.token===this.tok.T_ENCAPSED_AND_WHITESPACE){var a=this.text();this.next(),s=s("string",!1,this.resolve_special_chars(a,t),!1,a)}else if(this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES){if(i=null,this.next().token===this.tok.T_STRING_VARNAME){i=this.node("variable");var l=this.text();this.next(),i="["===this.token?(i=i(l,!1,!1),r=this.node("offsetlookup"),e=this.next().read_expr(),this.expect("]")&&this.next(),r(i,e)):l}else i=this.read_expr();this.expect("}")&&this.next(),s=s("variable",i,!1,!0)}else if(this.token===this.tok.T_CURLY_OPEN)o=!0,s.destroy(),s=this.next().read_variable(!1,!1,!1),this.expect("}")&&this.next();else if(this.token===this.tok.T_VARIABLE){if(s.destroy(),s=this.read_simple_variable(!1),"["===this.token&&(r=this.node("offsetlookup"),e=this.next().read_encaps_var_offset(),this.expect("]")&&this.next(),s=r(s,e)),this.token===this.tok.T_OBJECT_OPERATOR){r=this.node("propertylookup"),this.next().expect(this.tok.T_STRING);var h=this.node("identifier");i=this.text(),this.next(),s=r(s,h(i))}}else{this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE);var c=this.text();this.next(),s.destroy(),s=s("string",!1,c,!1,c)}return n(s,o)},read_encapsed_string:function(t,e){var r=1<arguments.length&&void 0!==e&&e,i=this.node("encapsed");this.next();var n=this.lexer.yylloc.prev_offset-(r?1:0),o=[],s=null;for(s="`"===t?this.ast.encapsed.TYPE_SHELL:'"'===t?this.ast.encapsed.TYPE_STRING:this.ast.encapsed.TYPE_HEREDOC;this.token!==t&&this.token!==this.EOF;)o.push(this.read_encapsed_string_item(!0));return this.expect(t)&&this.next(),i=i(o,this.lexer._input.substring(n-1,this.lexer.yylloc.first_offset),s),t===this.tok.T_END_HEREDOC&&(i.label=this.lexer.heredoc_label),i},get_magic_constant:function(){var t=this.node("magic"),e=this.text();return this.next(),t(e.toUpperCase(),e)}}},function(t,e,r){"use strict";t.exports={read_top_statements:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;){var e=this.read_top_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_top_statement:function(){switch(this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class();case this.tok.T_INTERFACE:return this.read_interface();case this.tok.T_TRAIT:return this.read_trait();case this.tok.T_USE:return this.read_use_statement();case this.tok.T_CONST:var t=this.node("constantstatement"),e=this.next().read_const_list();return this.expectEndOfStatement(),t(null,e);case this.tok.T_NAMESPACE:return this.read_namespace();case this.tok.T_HALT_COMPILER:var r=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),this.expect(";"),this.lexer.done=!0,r(this.lexer._input.substring(this.lexer.offset));default:return this.read_statement()}},read_inner_statements:function(){for(var t=[];this.token!=this.EOF&&"}"!==this.token;){var e=this.read_inner_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_const_list:function(){return this.read_list(function(){this.expect(this.tok.T_STRING);var t=this.node("constant"),e=this.node("identifier"),r=this.text();return this.next(),e=e(r),this.expect("=")?t(e,this.next().read_expr()):t(e,null)},",",!1)},read_declare_list:function(){for(var t=[];this.token!=this.EOF&&")"!==this.token;){this.expect(this.tok.T_STRING);var e=this.node("declaredirective"),r=this.node("identifier"),i=this.text();this.next(),r=r(i);var n=null;if(this.expect("=")&&(n=this.next().read_expr()),t.push(e(r,n)),","!==this.token)break;this.next()}return t},read_inner_statement:function(){switch(this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class();case this.tok.T_INTERFACE:return this.read_interface();case this.tok.T_TRAIT:return this.read_trait();case this.tok.T_HALT_COMPILER:this.raiseError("__HALT_COMPILER() can only be used from the outermost scope");var t=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),t=t(this.lexer._input.substring(this.lexer.offset)),this.expect(";")&&this.next(),t;default:return this.read_statement()}},read_statement:function(){switch(this.token){case"{":return this.read_code_block(!1);case this.tok.T_IF:return this.read_if();case this.tok.T_SWITCH:return this.read_switch();case this.tok.T_FOR:return this.read_for();case this.tok.T_FOREACH:return this.read_foreach();case this.tok.T_WHILE:return this.read_while();case this.tok.T_DO:return this.read_do();case this.tok.T_COMMENT:return this.read_comment();case this.tok.T_DOC_COMMENT:return this.read_doc_comment();case this.tok.T_RETURN:var t=this.node("return"),e=null;return this.next().is("EOS")||(e=this.read_expr()),this.expectEndOfStatement(),t(e);case this.tok.T_BREAK:case this.tok.T_CONTINUE:var r=this.node(this.token===this.tok.T_CONTINUE?"continue":"break"),i=null;return this.next(),";"!==this.token&&(i=this.read_expr()),this.expectEndOfStatement(),r(i);case this.tok.T_GLOBAL:var n=this.node("global"),o=this.next().read_list(this.read_simple_variable,",");return this.expectEndOfStatement(),n(o);case this.tok.T_STATIC:var s=[this.token,this.lexer.getState()],a=this.node();if(this.next().token===this.tok.T_DOUBLE_COLON){this.lexer.tokens.push(s);var l=this.next().read_expr();return this.expectEndOfStatement(l),a("expressionstatement",l)}if(this.token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);var h=this.read_variable_declarations();return this.expectEndOfStatement(),a("static",h);case this.tok.T_ECHO:var c=this.node("echo"),u=this.text(),f="<?="===u||"<%="===u,p=this.next().read_list(this.read_expr,",");return this.expectEndOfStatement(),c(p,f);case this.tok.T_INLINE_HTML:var d=this.text(),m=0<this.lexer.yylloc.first_offset?this.lexer._input[this.lexer.yylloc.first_offset-1]:null,g="\r"===m||"\n"===m;g&&"\n"===m&&1<this.lexer.yylloc.first_offset&&"\r"===this.lexer._input[this.lexer.yylloc.first_offset-2]&&(m="\r\n");var _=this.node("inline");return this.next(),_(d,g?m+d:d);case this.tok.T_UNSET:var v=this.node("unset");this.next().expect("(")&&this.next();var y=this.read_list(this.read_variable,",");return this.expect(")")&&this.next(),this.expect(";")&&this.next(),v(y);case this.tok.T_DECLARE:var x,T=this.node("declare"),k=[];this.next().expect("(")&&this.next();var b=this.read_declare_list();if(this.expect(")")&&this.next(),":"===this.token){for(this.next();this.token!=this.EOF&&this.token!==this.tok.T_ENDDECLARE;)k.push(this.read_top_statement());this.expect(this.tok.T_ENDDECLARE)&&this.next(),this.expectEndOfStatement(),x=this.ast.declare.MODE_SHORT}else if("{"===this.token){for(this.next();this.token!=this.EOF&&"}"!==this.token;)k.push(this.read_top_statement());this.expect("}")&&this.next(),x=this.ast.declare.MODE_BLOCK}else this.expect(";")&&this.next(),x=this.ast.declare.MODE_NONE;return T(b,k,x);case this.tok.T_TRY:return this.read_try();case this.tok.T_THROW:var w=this.node("throw"),E=this.next().read_expr();return this.expectEndOfStatement(),w(E);case";":return this.next(),null;case this.tok.T_STRING:var C=this.node(),S=[this.token,this.lexer.getState()],A=this.text();if(":"===this.next().token)return this.next(),C("label",A);C.destroy(),this.lexer.tokens.push(S);var L=this.node("expressionstatement"),N=this.next().read_expr();return this.expectEndOfStatement(N),L(N);case this.tok.T_GOTO:var O=this.node("goto"),I=null;return this.next().expect(this.tok.T_STRING)&&(I=this.text(),this.next().expectEndOfStatement()),O(I);default:var R=this.node("expressionstatement"),M=this.read_expr();return this.expectEndOfStatement(M),R(M)}},read_code_block:function(t){var e=this.node("block");this.expect("{")&&this.next();var r=t?this.read_top_statements():this.read_inner_statements();return this.expect("}")&&this.next(),e(null,r)}}},function(t,e,r){"use strict";t.exports={read_switch:function(){var t=this.node("switch");this.expect(this.tok.T_SWITCH)&&this.next(),this.expect("(")&&this.next();var e=this.read_expr();this.expect(")")&&this.next();var r=":"===this.token;return t(e,this.read_switch_case_list(),r)},read_switch_case_list:function(){var t=null,e=this.node("block"),r=[];for("{"===this.token?t="}":":"===this.token?t=this.tok.T_ENDSWITCH:this.expect(["{",":"]),";"===this.next().token&&this.next();this.token!==this.EOF&&this.token!==t;)r.push(this.read_case_list(t));return this.expect(t)&&this.next(),t===this.tok.T_ENDSWITCH&&this.expectEndOfStatement(),e(null,r)},read_case_list:function(t){var e=this.node("case"),r=null,i=null,n=[];for(this.token===this.tok.T_CASE?r=this.next().read_expr():this.token===this.tok.T_DEFAULT?this.next():this.expect([this.tok.T_CASE,this.tok.T_DEFAULT]),this.expect([":",";"])&&this.next(),i=this.node("block");this.token!=this.EOF&&this.token!==t&&this.token!==this.tok.T_CASE&&this.token!==this.tok.T_DEFAULT;)n.push(this.read_inner_statement());return e(r,0<n.length?i(null,n):null)}}},function(t,e,r){"use strict";t.exports={read_try:function(){this.expect(this.tok.T_TRY);for(var t=this.node("try"),e=null,r=[],i=this.next().read_statement();this.token===this.tok.T_CATCH;){var n=this.node("catch");this.next().expect("(")&&this.next();var o=this.read_list(this.read_namespace_name,"|",!1),s=this.read_variable(!0,!1,!1);this.expect(")"),r.push(n(this.next().read_statement(),o,s))}return this.token===this.tok.T_FINALLY&&(e=this.next().read_statement()),t(i,r,e)}}},function(t,e,r){"use strict";t.exports={read_short_form:function(t){var e=this.node("block"),r=[];for(this.expect(":")&&this.next();this.token!=this.EOF&&this.token!==t;)r.push(this.read_inner_statement());return this.expect(t)&&this.next(),this.expectEndOfStatement(),e(null,r)},read_list:function(t,e,r){var i=[];if(this.token==e&&(r&&i.push("function"==typeof t?this.node("noop")():null),this.next()),"function"==typeof t){do{if(i.push(t.apply(this,[])),this.token!=e)break}while(this.next().token!=this.EOF)}else{if(!this.expect(t))return[];for(i.push(this.text());this.next().token!=this.EOF&&this.token==e&&this.next().token==t;)i.push(this.text())}return i},read_name_list:function(){return this.read_list(this.read_namespace_name,",",!1)},read_variable_declarations:function(){return this.read_list(function(){var t=this.node("staticvariable"),e=this.node("variable");if(this.expect(this.tok.T_VARIABLE)){var r=this.text().substring(1);this.next(),e=e(r,!1,!1)}else e=e("#ERR",!1,!1);return"="===this.token?t(e,this.next().read_expr()):e},",")}}},function(t,e,r){"use strict";t.exports={read_variable:function(t,e,r){var i;if(r||"&"!==this.token||(r=!0,this.next()),this.is([this.tok.T_VARIABLE,"$"]))i=this.read_reference_variable(e,r);else if(this.is([this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAMESPACE])){i=this.node();var n=this.read_namespace_name();if(this.token!=this.tok.T_DOUBLE_COLON&&"("!=this.token&&-1===["parentreference","selfreference"].indexOf(n.kind)){var o=n.name.toLowerCase();i="true"===o?n.destroy(i("boolean",!0,n.name)):"false"===o?n.destroy(i("boolean",!1,n.name)):i("identifier",n)}else i.destroy(n),i=n}else if(this.token===this.tok.T_STATIC){i=this.node("staticreference");var s=this.text();this.next(),i=i(s)}else this.expect("VARIABLE");return this.token===this.tok.T_DOUBLE_COLON&&(i=this.read_static_getter(i,e)),this.recursive_variable_chain_scan(i,t,e)},read_static_getter:function(t,e){var r,i,n=this.node("staticlookup");return this.next().is([this.tok.T_VARIABLE,"$"])?r=this.read_reference_variable(e,!1):this.token===this.tok.T_STRING||this.token===this.tok.T_CLASS||this.php7&&this.is("IDENTIFIER")?(r=this.node("identifier"),i=this.text(),this.next(),r=r(i)):"{"===this.token?(r=this.node("literal"),i=this.next().read_expr(),this.expect("}")&&this.next(),r=r("literal",i,null),this.expect("(")):(this.error([this.tok.T_VARIABLE,this.tok.T_STRING]),r=this.node("identifier"),i=this.text(),this.next(),r=r(i)),n(t,r)},read_what:function(t){var e=0<arguments.length&&void 0!==t&&t,r=null,i=null;switch(this.next().token){case this.tok.T_STRING:if(r=this.node("identifier"),i=this.text(),this.next(),r=r(i),e&&this.token===this.tok.T_OBJECT_OPERATOR&&this.error(),this.token===this.tok.T_VARIABLE){var n=this.node("variable");i=this.text().substring(1),this.next(),(r=this.node("encapsed")([r,n(i,!1,!1)],null,"offset")).loc&&r.value[0].loc&&(r.loc.start=r.value[0].loc.start)}else if("{"===this.token){var o=this.next().read_expr();this.expect("}")&&this.next(),(r=this.node("encapsed")([r,o],null,"offset")).loc&&r.value[0].loc&&(r.loc.start=r.value[0].loc.start)}break;case this.tok.T_VARIABLE:r=this.node("variable"),i=this.text().substring(1),this.next(),r=r(i,!1,!1);break;case"$":r=this.node(),this.next().expect(["$","{",this.tok.T_VARIABLE]),r="{"===this.token?(i=this.next().read_expr(),this.expect("}")&&this.next(),r("literal","literal",i,null)):r("variable",i=this.read_expr(),!1,!1);break;case"{":r=this.node("literal"),i=this.next().read_expr(),this.expect("}")&&this.next(),r=r("literal",i,null);break;default:this.error([this.tok.T_STRING,this.tok.T_VARIABLE,"$","{"]),r=this.node("identifier"),i=this.text(),this.next(),r=r(i)}return r},recursive_variable_chain_scan:function(t,e,r){var i,n;t:for(;this.token!=this.EOF;)switch(this.token){case"(":if(e)return t;t=this.node("call")(t,this.read_function_argument_list());break;case"[":i=this.node("offsetlookup"),this.next(),n=!1,r?(n=this.read_encaps_var_offset(),this.expect("]")&&this.next()):"]"!==this.token?(n=this.read_expr(),this.expect("]")&&this.next()):this.next(),t=i(t,n);break;case this.tok.T_DOUBLE_COLON:"staticlookup"===t.kind&&"identifier"===t.offset.kind&&this.error(),t=(i=this.node("staticlookup"))(t,this.read_what(!0));break;case this.tok.T_OBJECT_OPERATOR:t=(i=this.node("propertylookup"))(t,this.read_what());break;default:break t}return t},read_encaps_var_offset:function(){var t=this.node();if(this.token===this.tok.T_STRING){var e=this.text();this.next(),t=t("identifier",e)}else if(this.token===this.tok.T_NUM_STRING){var r=this.text();this.next(),t=t("number",r,null)}else if(this.token===this.tok.T_VARIABLE){var i=this.text().substring(1);this.next(),t=t("variable",i,!1,!1)}else{this.expect([this.tok.T_STRING,this.tok.T_NUM_STRING,this.tok.T_VARIABLE]);var n=this.text();this.next(),t=t("identifier",n)}return t},read_reference_variable:function(t,e){for(var r,i=this.read_simple_variable(e);this.token!=this.EOF;){var n=this.node();if("{"!=this.token||t){n.destroy();break}r=this.next().read_expr(),this.expect("}")&&this.next(),i=n("offsetlookup",i,r)}return i},read_simple_variable:function(t){var e,r=this.node("variable");if(this.expect([this.tok.T_VARIABLE,"$"])&&this.token===this.tok.T_VARIABLE)e=this.text().substring(1),this.next(),r=r(e,t,!1);else switch("$"===this.token&&this.next(),this.token){case"{":var i=this.next().read_expr();this.expect("}")&&this.next(),r=r(i,t,!0);break;case"$":r=r(this.read_simple_variable(!1),t,!1);break;case this.tok.T_VARIABLE:e=this.text().substring(1);var n=this.node("variable");this.next(),r=r(n(e,!1,!1),t,!1);break;default:this.error(["{","$",this.tok.T_VARIABLE]),e=this.text(),this.next(),r=r(e,t,!1)}return r}}},function(t,e,r){"use strict";t.exports={values:{101:"T_HALT_COMPILER",102:"T_USE",103:"T_ENCAPSED_AND_WHITESPACE",104:"T_OBJECT_OPERATOR",105:"T_STRING",106:"T_DOLLAR_OPEN_CURLY_BRACES",107:"T_STRING_VARNAME",108:"T_CURLY_OPEN",109:"T_NUM_STRING",110:"T_ISSET",111:"T_EMPTY",112:"T_INCLUDE",113:"T_INCLUDE_ONCE",114:"T_EVAL",115:"T_REQUIRE",116:"T_REQUIRE_ONCE",117:"T_NAMESPACE",118:"T_NS_SEPARATOR",119:"T_AS",120:"T_IF",121:"T_ENDIF",122:"T_WHILE",123:"T_DO",124:"T_FOR",125:"T_SWITCH",126:"T_BREAK",127:"T_CONTINUE",128:"T_RETURN",129:"T_GLOBAL",130:"T_STATIC",131:"T_ECHO",132:"T_INLINE_HTML",133:"T_UNSET",134:"T_FOREACH",135:"T_DECLARE",136:"T_TRY",137:"T_THROW",138:"T_GOTO",139:"T_FINALLY",140:"T_CATCH",141:"T_ENDDECLARE",142:"T_LIST",143:"T_CLONE",144:"T_PLUS_EQUAL",145:"T_MINUS_EQUAL",146:"T_MUL_EQUAL",147:"T_DIV_EQUAL",148:"T_CONCAT_EQUAL",149:"T_MOD_EQUAL",150:"T_AND_EQUAL",151:"T_OR_EQUAL",152:"T_XOR_EQUAL",153:"T_SL_EQUAL",154:"T_SR_EQUAL",155:"T_INC",156:"T_DEC",157:"T_BOOLEAN_OR",158:"T_BOOLEAN_AND",159:"T_LOGICAL_OR",160:"T_LOGICAL_AND",161:"T_LOGICAL_XOR",162:"T_SL",163:"T_SR",164:"T_IS_IDENTICAL",165:"T_IS_NOT_IDENTICAL",166:"T_IS_EQUAL",167:"T_IS_NOT_EQUAL",168:"T_IS_SMALLER_OR_EQUAL",169:"T_IS_GREATER_OR_EQUAL",170:"T_INSTANCEOF",171:"T_INT_CAST",172:"T_DOUBLE_CAST",173:"T_STRING_CAST",174:"T_ARRAY_CAST",175:"T_OBJECT_CAST",176:"T_BOOL_CAST",177:"T_UNSET_CAST",178:"T_EXIT",179:"T_PRINT",180:"T_YIELD",181:"T_YIELD_FROM",182:"T_FUNCTION",183:"T_DOUBLE_ARROW",184:"T_DOUBLE_COLON",185:"T_ARRAY",186:"T_CALLABLE",187:"T_CLASS",188:"T_ABSTRACT",189:"T_TRAIT",190:"T_FINAL",191:"T_EXTENDS",192:"T_INTERFACE",193:"T_IMPLEMENTS",194:"T_VAR",195:"T_PUBLIC",196:"T_PROTECTED",197:"T_PRIVATE",198:"T_CONST",199:"T_NEW",200:"T_INSTEADOF",201:"T_ELSEIF",202:"T_ELSE",203:"T_ENDSWITCH",204:"T_CASE",205:"T_DEFAULT",206:"T_ENDFOR",207:"T_ENDFOREACH",208:"T_ENDWHILE",209:"T_CONSTANT_ENCAPSED_STRING",210:"T_LNUMBER",211:"T_DNUMBER",212:"T_LINE",213:"T_FILE",214:"T_DIR",215:"T_TRAIT_C",216:"T_METHOD_C",217:"T_FUNC_C",218:"T_NS_C",219:"T_START_HEREDOC",220:"T_END_HEREDOC",221:"T_CLASS_C",222:"T_VARIABLE",223:"T_OPEN_TAG",224:"T_OPEN_TAG_WITH_ECHO",225:"T_CLOSE_TAG",226:"T_WHITESPACE",227:"T_COMMENT",228:"T_DOC_COMMENT",229:"T_ELLIPSIS",230:"T_COALESCE",231:"T_POW",232:"T_POW_EQUAL",233:"T_SPACESHIP"},names:{T_HALT_COMPILER:101,T_USE:102,T_ENCAPSED_AND_WHITESPACE:103,T_OBJECT_OPERATOR:104,T_STRING:105,T_DOLLAR_OPEN_CURLY_BRACES:106,T_STRING_VARNAME:107,T_CURLY_OPEN:108,T_NUM_STRING:109,T_ISSET:110,T_EMPTY:111,T_INCLUDE:112,T_INCLUDE_ONCE:113,T_EVAL:114,T_REQUIRE:115,T_REQUIRE_ONCE:116,T_NAMESPACE:117,T_NS_SEPARATOR:118,T_AS:119,T_IF:120,T_ENDIF:121,T_WHILE:122,T_DO:123,T_FOR:124,T_SWITCH:125,T_BREAK:126,T_CONTINUE:127,T_RETURN:128,T_GLOBAL:129,T_STATIC:130,T_ECHO:131,T_INLINE_HTML:132,T_UNSET:133,T_FOREACH:134,T_DECLARE:135,T_TRY:136,T_THROW:137,T_GOTO:138,T_FINALLY:139,T_CATCH:140,T_ENDDECLARE:141,T_LIST:142,T_CLONE:143,T_PLUS_EQUAL:144,T_MINUS_EQUAL:145,T_MUL_EQUAL:146,T_DIV_EQUAL:147,T_CONCAT_EQUAL:148,T_MOD_EQUAL:149,T_AND_EQUAL:150,T_OR_EQUAL:151,T_XOR_EQUAL:152,T_SL_EQUAL:153,T_SR_EQUAL:154,T_INC:155,T_DEC:156,T_BOOLEAN_OR:157,T_BOOLEAN_AND:158,T_LOGICAL_OR:159,T_LOGICAL_AND:160,T_LOGICAL_XOR:161,T_SL:162,T_SR:163,T_IS_IDENTICAL:164,T_IS_NOT_IDENTICAL:165,T_IS_EQUAL:166,T_IS_NOT_EQUAL:167,T_IS_SMALLER_OR_EQUAL:168,T_IS_GREATER_OR_EQUAL:169,T_INSTANCEOF:170,T_INT_CAST:171,T_DOUBLE_CAST:172,T_STRING_CAST:173,T_ARRAY_CAST:174,T_OBJECT_CAST:175,T_BOOL_CAST:176,T_UNSET_CAST:177,T_EXIT:178,T_PRINT:179,T_YIELD:180,T_YIELD_FROM:181,T_FUNCTION:182,T_DOUBLE_ARROW:183,T_DOUBLE_COLON:184,T_ARRAY:185,T_CALLABLE:186,T_CLASS:187,T_ABSTRACT:188,T_TRAIT:189,T_FINAL:190,T_EXTENDS:191,T_INTERFACE:192,T_IMPLEMENTS:193,T_VAR:194,T_PUBLIC:195,T_PROTECTED:196,T_PRIVATE:197,T_CONST:198,T_NEW:199,T_INSTEADOF:200,T_ELSEIF:201,T_ELSE:202,T_ENDSWITCH:203,T_CASE:204,T_DEFAULT:205,T_ENDFOR:206,T_ENDFOREACH:207,T_ENDWHILE:208,T_CONSTANT_ENCAPSED_STRING:209,T_LNUMBER:210,T_DNUMBER:211,T_LINE:212,T_FILE:213,T_DIR:214,T_TRAIT_C:215,T_METHOD_C:216,T_FUNC_C:217,T_NS_C:218,T_START_HEREDOC:219,T_END_HEREDOC:220,T_CLASS_C:221,T_VARIABLE:222,T_OPEN_TAG:223,T_OPEN_TAG_WITH_ECHO:224,T_CLOSE_TAG:225,T_WHITESPACE:226,T_COMMENT:227,T_DOC_COMMENT:228,T_ELLIPSIS:229,T_COALESCE:230,T_POW:231,T_POW_EQUAL:232,T_SPACESHIP:233}}},function(t,e,r){"use strict";function u(t,e){this.withPositions=t,this.withSource=e}var f=r(46),p=r(47);u.prototype.position=function(t){return new p(t.lexer.yylloc.first_line,t.lexer.yylloc.first_column,t.lexer.yylloc.first_offset)},u.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast"]].forEach(function(t,e){t.forEach(function(t){u.precedence[t]=e+1})}),u.prototype.swapLocations=function(t,e,r,i){this.withPositions&&(t.loc.start=e.loc.start,t.loc.end=r.loc.end,this.withSource&&(t.loc.source=i.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},u.prototype.resolveLocations=function(t,e,r,i){this.withPositions&&(t.loc.start.offset>e.loc.start.offset&&(t.loc.start=e.loc.start),t.loc.end.offset<r.loc.end.offset&&(t.loc.end=r.loc.end),this.withSource&&(t.loc.source=i.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},u.prototype.resolvePrecedence=function(t,e){var r,i,n;return"call"===t.kind?this.resolveLocations(t,t.what,t,e):"propertylookup"===t.kind||"staticlookup"===t.kind||"offsetlookup"===t.kind&&t.offset?this.resolveLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(i=u.precedence[t.type],n=u.precedence[t.right.type],i&&n&&n<=i&&(r=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),r.left=this.resolvePrecedence(t,e),t=r)):"retif"===t.right.kind&&(i=u.precedence[t.type],n=u.precedence["?"],i&&n&&n<=i&&(r=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),r.test=this.resolvePrecedence(t,e),this.swapLocations(r,r.test,r.falseExpr,e),t=r))):"cast"===t.kind&&t.what&&!t.what.parenthesizedExpression?"bin"===t.what.kind?(r=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),r.left=this.resolvePrecedence(t,e),this.swapLocations(r,r.left,r.right,e),t=r):"retif"===t.what.kind&&(r=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),r.test=this.resolvePrecedence(t,e),this.swapLocations(r,r.test,r.falseExpr,e),t=r):"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(r=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),r.left=this.resolvePrecedence(t,e),this.swapLocations(r,r.left,r.right,e),t=r):"retif"===t.what.kind&&(r=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),r.test=this.resolvePrecedence(t,e),this.swapLocations(r,r.test,r.falseExpr,e),t=r)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(r=t.falseExpr,t.falseExpr=r.test,this.swapLocations(t,t.test,t.falseExpr,e),r.test=this.resolvePrecedence(t,e),this.swapLocations(r,r.test,r.falseExpr,e),t=r):"assign"===t.kind?t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(i=u.precedence["="],n=u.precedence[t.right.type],i&&n&&n<i&&(r=t.right,t.right=t.right.left,r.left=t,this.swapLocations(r,r.left,t.right,e),t=r)):"silent"===t.kind&&t.expr.right&&!t.expr.parenthesizedExpression&&(r=t.expr,t.expr=r.left,r.left=t,this.swapLocations(r,r.left,r.right,e),t=r),t},u.prototype.prepare=function(o,s,a){var l=null;(this.withPositions||this.withSource)&&(l=this.position(a));function h(){var t=null,e=Array.prototype.slice.call(arguments);if(e.push(s),"function"==typeof h.preBuild&&h.preBuild(arguments),c.withPositions||c.withSource){var r=null;c.withSource&&(r=a.lexer._input.substring(l.offset,a.prev[2])),t=c.withPositions?new f(r,l,new p(a.prev[0],a.prev[1],a.prev[2])):new f(r,null,null),e.push(t)}o=o||e.shift();var i=c[o];if("function"!=typeof i)throw new Error('Undefined node "'+o+'"');var n=Object.create(i.prototype);return i.apply(n,e),h.instance=n,h.trailingComments&&(n.trailingComments=h.trailingComments),"function"==typeof h.postBuild&&h.postBuild(n),a.debug&&delete u.stack[h.stackUid],c.resolvePrecedence(n,a)}var c=this;return a.debug&&(u.stack||(u.stack={},u.stackUid=1),u.stack[++u.stackUid]={position:l,stack:(new Error).stack.split("\n").slice(3,5)},h.stackUid=u.stackUid),h.setKind=function(t){o=t},h.setTrailingComments=function(t){h.instance?h.instance.setTrailingComments(t):h.trailingComments=t},h.destroy=function(t){s&&(t?t.leadingComments?t.leadingComments=s.concat(t.leadingComments):t.leadingComments=s:a._docIndex=a._docs.length-s.length),a.debug&&delete u.stack[h.stackUid]},h},u.prototype.checkNodes=function(){var t=[];for(var e in u.stack)u.stack.hasOwnProperty(e)&&t.push(u.stack[e]);return u.stack={},t},[r(48),r(49),r(50),r(7),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(9),r(62),r(63),r(64),r(10),r(65),r(5),r(66),r(67),r(68),r(69),r(70),r(71),r(72),r(73),r(74),r(75),r(76),r(1),r(77),r(78),r(79),r(11),r(80),r(81),r(82),r(83),r(84),r(85),r(86),r(87),r(88),r(89),r(90),r(3),r(8),r(91),r(92),r(93),r(94),r(2),r(95),r(96),r(97),r(98),r(4),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(6),r(108),r(109),r(110),r(111),r(0),r(112),r(113),r(114),r(115),r(116),r(117),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129),r(130),r(131),r(132),r(133)].forEach(function(t){u.prototype[t.kind]=t}),t.exports=u},function(t,e,r){"use strict";t.exports=function(t,e,r){this.source=t,this.start=e,this.end=r}},function(t,e,r){"use strict";t.exports=function(t,e,r){this.line=t,this.column=e,this.offset=r}},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("array",function(t,e,r,i){n.apply(this,["array",r,i]),this.items=e,this.shortForm=t})},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("assign",function(t,e,r,i,n){o.apply(this,["assign",i,n]),this.operator=r,this.left=t,this.right=e})},function(t,e,r){"use strict";var o=r(4);t.exports=o.extends("bin",function(t,e,r,i,n){o.apply(this,["bin",i,n]),this.type=t,this.left=e,this.right=r})},function(t,e,r){"use strict";var n=r(3);t.exports=n.extends("boolean",function(t,e,r,i){n.apply(this,["boolean",t,e,r,i])})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("break",function(t,e,r){i.apply(this,["break",e,r]),this.level=t})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("call",function(t,e,r,i){n.apply(this,["call",r,i]),this.what=t,this.arguments=e})},function(t,e,r){"use strict";var n=r(0);t.exports=n.extends("case",function(t,e,r,i){n.apply(this,["case",r,i]),this.test=t,this.body=e})},function(t,e,r){"use strict";var o=r(4);t.exports=o.extends("cast",function(t,e,r,i,n){o.apply(this,["cast",i,n]),this.type=t,this.raw=e,this.what=r})},function(t,e,r){"use strict";var o=r(0);t.exports=o.extends("catch",function(t,e,r,i,n){o.apply(this,["catch",i,n]),this.body=t,this.what=e,this.variable=r})},function(t,e,r){"use strict";var a=r(5);t.exports=a.extends("class",function(t,e,r,i,n,o,s){a.apply(this,["class",t,o,s]),this.isAnonymous=!t,this.extends=e,this.implements=r,this.body=i,this.parseFlags(n)})},function(t,e,r){"use strict";var o=r(10),s="classconstant",i=o.extends(s,function(t,e,r,i,n){o.apply(this,[t||s,e,i,n]),this.parseFlags(r)});i.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private")},t.exports=i},function(t,e,r){"use strict";var o=r(6),s="classreference",i=o.extends(s,function t(e,r,i,n){o.apply(this,[s,i,n]),r?this.resolution=t.RELATIVE_NAME:1===e.length?this.resolution=t.UNQUALIFIED_NAME:e[0]?this.resolution=t.QUALIFIED_NAME:this.resolution=t.FULL_QUALIFIED_NAME,this.name=e.join("\\")});i.UNQUALIFIED_NAME="uqn",i.QUALIFIED_NAME="qn",i.FULL_QUALIFIED_NAME="fqn",i.RELATIVE_NAME="rn",t.exports=i},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("clone",function(t,e,r){i.apply(this,["clone",e,r]),this.what=t})},function(t,e,r){"use strict";var l=r(1);t.exports=l.extends("closure",function(t,e,r,i,n,o,s,a){l.apply(this,["closure",s,a]),this.uses=r,this.arguments=t,this.byref=e,this.type=i,this.nullable=n,this.isStatic=o||!1,this.body=null})},function(t,e,r){"use strict";var i=r(9),n="commentblock";t.exports=i.extends(n,function(t,e,r){i.apply(this,[n,t,e,r])})},function(t,e,r){"use strict";var i=r(9),n="commentline";t.exports=i.extends(n,function(t,e,r){i.apply(this,[n,t,e,r])})},function(t,e,r){"use strict";var n=r(2);t.exports=n.extends("constant",function(t,e,r,i){n.apply(this,["constant",r,i]),this.name=t,this.value=e})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("continue",function(t,e,r){i.apply(this,["continue",e,r]),this.level=t})},function(t,e,r){"use strict";var o=r(7),i=o.extends("declare",function(t,e,r,i,n){o.apply(this,["declare",e,i,n]),this.directives=t,this.mode=r});i.MODE_SHORT="short",i.MODE_BLOCK="block",i.MODE_NONE="none",t.exports=i},function(t,e,r){"use strict";var n=r(2),o="declaredirective";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,r,i]),this.key=t,this.value=e})},function(t,e,r){"use strict";var n=r(0);t.exports=n.extends("do",function(t,e,r,i){n.apply(this,["do",r,i]),this.test=t,this.body=e})},function(t,e,r){"use strict";var n=r(0);t.exports=n.extends("echo",function(t,e,r,i){n.apply(this,["echo",r,i]),this.shortForm=e,this.expressions=t})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("empty",function(t,e,r){i.apply(this,["empty",e,r]),this.expression=t})},function(t,e,r){"use strict";var o=r(3),i=o.extends("encapsed",function(t,e,r,i,n){o.apply(this,["encapsed",t,e,i,n]),this.type=r});i.TYPE_STRING="string",i.TYPE_SHELL="shell",i.TYPE_HEREDOC="heredoc",i.TYPE_OFFSET="offset",t.exports=i},function(t,e,r){"use strict";var n=r(1),o="encapsedpart";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,r,i]),this.expression=t,this.curly=e})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("entry",function(t,e,r,i){n.apply(this,["entry",r,i]),this.key=t,this.value=e})},function(t,e,r){"use strict";var s=r(2);t.exports=s.extends("error",function(t,e,r,i,n,o){s.apply(this,["error",n,o]),this.message=t,this.token=e,this.line=r,this.expected=i})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("eval",function(t,e,r){i.apply(this,["eval",e,r]),this.source=t})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("exit",function(t,e,r,i){n.apply(this,["exit",r,i]),this.status=t,this.useDie=e})},function(t,e,r){"use strict";var i=r(0),n="expressionstatement";t.exports=i.extends(n,function(t,e,r){i.apply(this,[n,e,r]),this.expression=t})},function(t,e,r){"use strict";var a=r(0);t.exports=a.extends("for",function(t,e,r,i,n,o,s){a.apply(this,["for",o,s]),this.init=t,this.test=e,this.increment=r,this.shortForm=n,this.body=i})},function(t,e,r){"use strict";var a=r(0);t.exports=a.extends("foreach",function(t,e,r,i,n,o,s){a.apply(this,["foreach",o,s]),this.source=t,this.key=e,this.value=r,this.shortForm=n,this.body=i})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("global",function(t,e,r){i.apply(this,["global",e,r]),this.items=t})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("goto",function(t,e,r){i.apply(this,["goto",e,r]),this.label=t})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("halt",function(t,e,r){i.apply(this,["halt",e,r]),this.after=t})},function(t,e,r){"use strict";var i=r(2),n="identifier",o=i.extends(n,function(t,e,r){i.apply(this,[n,e,r]),this.name=t});t.exports=o},function(t,e,r){"use strict";var s=r(0);t.exports=s.extends("if",function(t,e,r,i,n,o){s.apply(this,["if",n,o]),this.test=t,this.body=e,this.alternate=r,this.shortForm=i})},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("include",function(t,e,r,i,n){o.apply(this,["include",i,n]),this.once=t,this.require=e,this.target=r})},function(t,e,r){"use strict";var n=r(3);t.exports=n.extends("inline",function(t,e,r,i){n.apply(this,["inline",t,e,r,i])})},function(t,e,r){"use strict";var o=r(5);t.exports=o.extends("interface",function(t,e,r,i,n){o.apply(this,["interface",t,i,n]),this.extends=e,this.body=r})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("isset",function(t,e,r){i.apply(this,["isset",e,r]),this.variables=t})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("label",function(t,e,r){i.apply(this,["label",e,r]),this.name=t})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("list",function(t,e,r,i){n.apply(this,["list",r,i]),this.items=t,this.shortForm=e})},function(t,e,r){"use strict";var n=r(3);t.exports=n.extends("magic",function(t,e,r,i){n.apply(this,["magic",t,e,r,i])})},function(t,e,r){"use strict";var i=r(11);t.exports=i.extends("method",function(){i.apply(this,arguments),this.kind="method"})},function(t,e,r){"use strict";var o=r(7);t.exports=o.extends("namespace",function(t,e,r,i,n){o.apply(this,["namespace",e,i,n]),this.name=t,this.withBrackets=r||!1})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("new",function(t,e,r,i){n.apply(this,["new",r,i]),this.what=t,this.arguments=e})},function(t,e,r){"use strict";var i=r(2);t.exports=i.extends("noop",function(t,e){i.apply(this,["noop",t,e])})},function(t,e,r){"use strict";var s=r(3);t.exports=s.extends("nowdoc",function(t,e,r,i,n,o){s.apply(this,["nowdoc",t,e,n,o]),this.label=r,this.quote=i})},function(t,e,r){"use strict";var n=r(3);t.exports=n.extends("number",function(t,e,r,i){n.apply(this,["number",t,e,r,i])})},function(t,e,r){"use strict";var n=r(8),o="offsetlookup";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,t,e,r,i])})},function(t,e,r){"use strict";var l=r(5);t.exports=l.extends("parameter",function(t,e,r,i,n,o,s,a){l.apply(this,["parameter",t,s,a]),this.value=r,this.type=e,this.byref=i,this.variadic=n,this.nullable=o})},function(t,e,r){"use strict";var i=r(6),n="parentreference",o=i.extends(n,function(t,e,r){i.apply(this,[n,e,r]),this.raw=t});t.exports=o},function(t,e,r){"use strict";var n=r(4);t.exports=n.extends("post",function(t,e,r,i){n.apply(this,["post",r,i]),this.type=t,this.what=e})},function(t,e,r){"use strict";var n=r(4);t.exports=n.extends("pre",function(t,e,r,i){n.apply(this,["pre",r,i]),this.type=t,this.what=e})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("print",function(t,e,r){i.apply(this,["print",e,r]),this.expression=t})},function(t,e,r){"use strict";var s=r(7);t.exports=s.extends("program",function(t,e,r,i,n,o){s.apply(this,["program",t,n,o]),this.errors=e,r&&(this.comments=r),i&&(this.tokens=i)})},function(t,e,r){"use strict";var n=r(0);t.exports=n.extends("property",function(t,e,r,i){n.apply(this,["property",r,i]),this.name=t,this.value=e})},function(t,e,r){"use strict";var n=r(8),o="propertylookup";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,t,e,r,i])})},function(t,e,r){"use strict";var o=r(0),s="propertystatement",i=o.extends(s,function(t,e,r,i,n){o.apply(this,[s,i,n]),this.properties=e,this.parseFlags(r)});i.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1]},t.exports=i},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("retif",function(t,e,r,i,n){o.apply(this,["retif",i,n]),this.test=t,this.trueExpr=e,this.falseExpr=r})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("return",function(t,e,r){i.apply(this,["return",e,r]),this.expr=t})},function(t,e,r){"use strict";var i=r(6),n="selfreference",o=i.extends(n,function(t,e,r){i.apply(this,[n,e,r]),this.raw=t});t.exports=o},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("silent",function(t,e,r){i.apply(this,["silent",e,r]),this.expr=t})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("static",function(t,e,r){i.apply(this,["static",e,r]),this.variables=t})},function(t,e,r){"use strict";var n=r(2),o="staticvariable";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,r,i]),this.variable=t,this.defaultValue=e})},function(t,e,r){"use strict";var n=r(8),o="staticlookup";t.exports=n.extends(o,function(t,e,r,i){n.apply(this,[o,t,e,r,i])})},function(t,e,r){"use strict";var i=r(6),n="staticreference",o=i.extends(n,function(t,e,r){i.apply(this,[n,e,r]),this.raw=t});t.exports=o},function(t,e,r){"use strict";var s=r(3);t.exports=s.extends("string",function(t,e,r,i,n,o){s.apply(this,["string",e,i,n,o]),this.unicode=r,this.isDoubleQuote=t})},function(t,e,r){"use strict";var o=r(0);t.exports=o.extends("switch",function(t,e,r,i,n){o.apply(this,["switch",i,n]),this.test=t,this.body=e,this.shortForm=r})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("throw",function(t,e,r){i.apply(this,["throw",e,r]),this.what=t})},function(t,e,r){"use strict";var n=r(5);t.exports=n.extends("trait",function(t,e,r,i){n.apply(this,["trait",t,r,i]),this.body=e})},function(t,e,r){"use strict";var s=r(2),a="traitalias";t.exports=s.extends(a,function(t,e,r,i,n,o){s.apply(this,[a,n,o]),this.trait=t,this.method=e,this.as=r,this.visibility="",i&&(0===i[0]?this.visibility="public":1===i[0]?this.visibility="protected":2===i[0]&&(this.visibility="private"))})},function(t,e,r){"use strict";var o=r(2),s="traitprecedence";t.exports=o.extends(s,function(t,e,r,i,n){o.apply(this,[s,i,n]),this.trait=t,this.method=e,this.instead=r})},function(t,e,r){"use strict";var n=r(2);t.exports=n.extends("traituse",function(t,e,r,i){n.apply(this,["traituse",r,i]),this.traits=t,this.adaptations=e})},function(t,e,r){"use strict";var o=r(0);t.exports=o.extends("try",function(t,e,r,i,n){o.apply(this,["try",i,n]),this.body=t,this.catches=e,this.always=r})},function(t,e,r){"use strict";var n=r(6),o="typereference",i=n.extends(o,function(t,e,r,i){n.apply(this,[o,r,i]),this.name=t,this.raw=e});i.types=["int","float","string","bool","object","array","callable","iterable","void"],t.exports=i},function(t,e,r){"use strict";var n=r(4);t.exports=n.extends("unary",function(t,e,r,i){n.apply(this,["unary",r,i]),this.type=t,this.what=e})},function(t,e,r){"use strict";var i=r(0);t.exports=i.extends("unset",function(t,e,r){i.apply(this,["unset",e,r]),this.variables=t})},function(t,e,r){"use strict";var o=r(0);t.exports=o.extends("usegroup",function(t,e,r,i,n){o.apply(this,["usegroup",i,n]),this.name=t,this.type=e,this.items=r})},function(t,e,r){"use strict";var o=r(0),i=o.extends("useitem",function(t,e,r,i,n){o.apply(this,["useitem",i,n]),this.name=t,this.alias=e,this.type=r});i.TYPE_CONST="const",i.TYPE_FUNCTION="function",t.exports=i},function(t,e,r){"use strict";var o=r(1);t.exports=o.extends("variable",function(t,e,r,i,n){o.apply(this,["variable",i,n]),this.name=t,this.byref=e||!1,this.curly=r||!1})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("variadic",function(t,e,r){i.apply(this,["variadic",e,r]),this.what=t})},function(t,e,r){"use strict";var o=r(0);t.exports=o.extends("while",function(t,e,r,i,n){o.apply(this,["while",i,n]),this.test=t,this.body=e,this.shortForm=r})},function(t,e,r){"use strict";var n=r(1);t.exports=n.extends("yield",function(t,e,r,i){n.apply(this,["yield",r,i]),this.value=t,this.key=e})},function(t,e,r){"use strict";var i=r(1);t.exports=i.extends("yieldfrom",function(t,e,r){i.apply(this,["yieldfrom",e,r]),this.value=t})}],n.c=i,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)).default;function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var r,i},"object"==typeof n&&"object"==typeof i?i.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof n?n.PhpParser=r():e.PhpParser=r()}).call(this,t("buffer").Buffer)},{buffer:4}]},{},[1]);
|
js/min/front-end.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function a(s,o,l){function u(t,e){if(!o[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=o[t]={exports:{}};s[t][0].call(i.exports,function(e){return u(s[t][1][e]||e)},i,i.exports,a,s,o,l)}return o[t].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,n){"use strict";var r;(r=e("prismjs/components/prism-core"))&&r.__esModule;e("prismjs/components/prism-clike"),e("prismjs/components/prism-markup"),e("prismjs/components/prism-markup-templating"),e("prismjs/components/prism-php"),e("prismjs/components/prism-php-extras"),e("prismjs/plugins/line-highlight/prism-line-highlight"),e("prismjs/plugins/line-numbers/prism-line-numbers")},{"prismjs/components/prism-clike":2,"prismjs/components/prism-core":3,"prismjs/components/prism-markup":5,"prismjs/components/prism-markup-templating":4,"prismjs/components/prism-php":7,"prismjs/components/prism-php-extras":6,"prismjs/plugins/line-highlight/prism-line-highlight":8,"prismjs/plugins/line-numbers/prism-line-numbers":9}],2:[function(e,t,n){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}},{}],3:[function(e,n,t){(function(e){var u="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},t=function(){var l=/\blang(?:uage)?-([\w-]+)\b/i,t=0,q=u.Prism={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof s?new s(e.type,q.util.encode(e.content),e.alias):"Array"===q.util.type(e)?e.map(q.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e,n){var t=q.util.type(e);switch(n=n||{},t){case"Object":if(n[q.util.objId(e)])return n[q.util.objId(e)];var r={};for(var i in n[q.util.objId(e)]=r,e)e.hasOwnProperty(i)&&(r[i]=q.util.clone(e[i],n));return r;case"Array":if(n[q.util.objId(e)])return n[q.util.objId(e)];r=[];return n[q.util.objId(e)]=r,e.forEach(function(e,t){r[t]=q.util.clone(e,n)}),r}return e}},languages:{extend:function(e,t){var n=q.util.clone(q.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(n,e,t,r){var i=(r=r||q.languages)[n];if(2==arguments.length){for(var a in t=e)t.hasOwnProperty(a)&&(i[a]=t[a]);return i}var s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==e)for(var a in t)t.hasOwnProperty(a)&&(s[a]=t[a]);s[o]=i[o]}return q.languages.DFS(q.languages,function(e,t){t===r[n]&&e!=n&&(this[e]=s)}),r[n]=s},DFS:function(e,t,n,r){for(var i in r=r||{},e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],n||i),"Object"!==q.util.type(e[i])||r[q.util.objId(e[i])]?"Array"!==q.util.type(e[i])||r[q.util.objId(e[i])]||(r[q.util.objId(e[i])]=!0,q.languages.DFS(e[i],t,i,r)):(r[q.util.objId(e[i])]=!0,q.languages.DFS(e[i],t,null,r)))}},plugins:{},highlightAll:function(e,t){q.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};q.hooks.run("before-highlightall",r);for(var i,a=r.elements||e.querySelectorAll(r.selector),s=0;i=a[s++];)q.highlightElement(i,!0===t,r.callback)},highlightElement:function(e,t,n){for(var r,i,a=e;a&&!l.test(a.className);)a=a.parentNode;a&&(r=(a.className.match(l)||[,""])[1].toLowerCase(),i=q.languages[r]),e.className=e.className.replace(l,"").replace(/\s+/g," ")+" language-"+r,e.parentNode&&(a=e.parentNode,/pre/i.test(a.nodeName)&&(a.className=a.className.replace(l,"").replace(/\s+/g," ")+" language-"+r));var s={element:e,language:r,grammar:i,code:e.textContent};if(q.hooks.run("before-sanity-check",s),!s.code||!s.grammar)return s.code&&(q.hooks.run("before-highlight",s),s.element.textContent=s.code,q.hooks.run("after-highlight",s)),void q.hooks.run("complete",s);if(q.hooks.run("before-highlight",s),t&&u.Worker){var o=new Worker(q.filename);o.onmessage=function(e){s.highlightedCode=e.data,q.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(s.element),q.hooks.run("after-highlight",s),q.hooks.run("complete",s)},o.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else s.highlightedCode=q.highlight(s.code,s.grammar,s.language),q.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(e),q.hooks.run("after-highlight",s),q.hooks.run("complete",s)},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return q.hooks.run("before-tokenize",r),r.tokens=q.tokenize(r.code,r.grammar),q.hooks.run("after-tokenize",r),s.stringify(q.util.encode(r.tokens),r.language)},matchGrammar:function(e,t,n,r,i,a,s){var o=q.Token;for(var l in n)if(n.hasOwnProperty(l)&&n[l]){if(l==s)return;var u=n[l];u="Array"===q.util.type(u)?u:[u];for(var c=0;c<u.length;++c){var p=u[c],g=p.inside,d=!!p.lookbehind,m=!!p.greedy,h=0,f=p.alias;if(m&&!p.pattern.global){var b=p.pattern.toString().match(/[imuy]*$/)[0];p.pattern=RegExp(p.pattern.source,b+"g")}p=p.pattern||p;for(var y=r,k=i;y<t.length;k+=t[y].length,++y){var v=t[y];if(t.length>e.length)return;if(!(v instanceof o)){if(m&&y!=t.length-1){if(p.lastIndex=k,!(N=p.exec(e)))break;for(var w=N.index+(d?N[1].length:0),P=N.index+N[0].length,S=y,_=k,A=t.length;S<A&&(_<P||!t[S].type&&!t[S-1].greedy);++S)(_+=t[S].length)<=w&&(++y,k=_);if(t[y]instanceof o)continue;j=S-y,v=e.slice(k,_),N.index-=k}else{p.lastIndex=0;var N=p.exec(v),j=1}if(N){d&&(h=N[1]?N[1].length:0);P=(w=N.index+h)+(N=N[0].slice(h)).length;var x=v.slice(0,w),C=v.slice(P),E=[y,j];x&&(++y,k+=x.length,E.push(x));var O=new o(l,g?q.tokenize(N,g):N,f,N,m);if(E.push(O),C&&E.push(C),Array.prototype.splice.apply(t,E),1!=j&&q.matchGrammar(e,t,n,y,k,!0,l),a)break}else if(a)break}}}}},tokenize:function(e,t,n){var r=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}return q.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var n=q.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=q.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}}},s=q.Token=function(e,t,n,r,i){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===q.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var r={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if(t.alias){var i="Array"===q.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(r.classes,i)}q.hooks.run("wrap",r);var a=Object.keys(r.attributes).map(function(e){return e+'="'+(r.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+(a?" "+a:"")+">"+r.content+"</"+r.tag+">"},!u.document)return u.addEventListener&&(q.disableWorkerMessageHandler||u.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,r=t.code,i=t.immediateClose;u.postMessage(q.highlight(r,q.languages[n],n)),i&&u.close()},!1)),u.Prism;var e=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return e&&(q.filename=e.src,q.manual||e.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(q.highlightAll):window.setTimeout(q.highlightAll,16):document.addEventListener("DOMContentLoaded",q.highlightAll))),u.Prism}();void 0!==n&&n.exports&&(n.exports=t),void 0!==e&&(e.Prism=t)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){Prism.languages["markup-templating"]={},Object.defineProperties(Prism.languages["markup-templating"],{buildPlaceholders:{value:function(n,r,e,i){n.language===r&&(n.tokenStack=[],n.code=n.code.replace(e,function(e){if("function"==typeof i&&!i(e))return e;for(var t=n.tokenStack.length;-1!==n.code.indexOf("___"+r.toUpperCase()+t+"___");)++t;return n.tokenStack[t]=e,"___"+r.toUpperCase()+t+"___"}),n.grammar=Prism.languages.markup)}},tokenizePlaceholders:{value:function(p,g){if(p.language===g&&p.tokenStack){p.grammar=Prism.languages[g];var d=0,m=Object.keys(p.tokenStack),h=function(e){if(!(d>=m.length))for(var t=0;t<e.length;t++){var n=e[t];if("string"==typeof n||n.content&&"string"==typeof n.content){var r=m[d],i=p.tokenStack[r],a="string"==typeof n?n:n.content,s=a.indexOf("___"+g.toUpperCase()+r+"___");if(-1<s){++d;var o,l=a.substring(0,s),u=new Prism.Token(g,Prism.tokenize(i,p.grammar,g),"language-"+g,i),c=a.substring(s+("___"+g.toUpperCase()+r+"___").length);if(l||c?(o=[l,u,c].filter(function(e){return!!e}),h(o)):o=u,"string"==typeof n?Array.prototype.splice.apply(e,[t,1].concat(o)):n.content=o,d>=m.length)break}}else n.content&&"string"!=typeof n.content&&h(n.content)}};h(p.tokens)}}}})},{}],5:[function(e,t,n){Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup},{}],6:[function(e,t,n){Prism.languages.insertBefore("php","variable",{this:/\$this\b/,global:/\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/static|self|parent/,punctuation:/::|\\/}}})},{}],7:[function(e,t,n){!function(t){t.languages.php=t.languages.extend("clike",{keyword:/\b(?:and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),t.languages.insertBefore("php","string",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),t.languages.insertBefore("php","keyword",{delimiter:{pattern:/\?>|<\?(?:php|=)?/i,alias:"important"},variable:/\$+(?:\w+\b|(?={))/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),t.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),t.languages.insertBefore("php","string",{"nowdoc-string":{pattern:/<<<'([^']+)'(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;/,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},"heredoc-string":{pattern:/<<<(?:"([^"]+)"(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;|([a-z_]\w*)(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\2;)/i,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:null}},"single-quoted-string":{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,alias:"string",inside:{interpolation:null}}}),delete t.languages.php.string;var e={pattern:/{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[.+?]|->\w+)*)/,lookbehind:!0,inside:{rest:t.languages.php}};t.languages.php["heredoc-string"].inside.interpolation=e,t.languages.php["double-quoted-string"].inside.interpolation=e,t.hooks.add("before-tokenize",function(e){if(/(?:<\?php|<\?)/gi.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/(?:<\?php|<\?)[\s\S]*?(?:\?>|$)/gi)}}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")})}(Prism)},{}],8:[function(e,t,n){!function(){if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var t,h=function(){if(void 0===t){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML=" <br /> ",document.body.appendChild(e),t=38===e.offsetHeight,document.body.removeChild(e)}return t},s=0;Prism.hooks.add("before-sanity-check",function(e){var t=e.element.parentNode,n=t&&t.getAttribute("data-line");if(t&&n&&/pre/i.test(t.nodeName)){var r=0;i(".line-highlight",t).forEach(function(e){r+=e.textContent.length,e.parentNode.removeChild(e)}),r&&/^( \n)+$/.test(e.code.slice(-r))&&(e.code=e.code.slice(0,-r))}}),Prism.hooks.add("complete",function e(t){var n=t.element.parentNode,r=n&&n.getAttribute("data-line");if(n&&r&&/pre/i.test(n.nodeName)){clearTimeout(s);var i=Prism.plugins.lineNumbers,a=t.plugins&&t.plugins.lineNumbers;f(n,"line-numbers")&&i&&!a?Prism.hooks.add("line-numbers",e):(o(n,r),s=setTimeout(l,1))}}),window.addEventListener("hashchange",l),window.addEventListener("resize",function(){var e=document.querySelectorAll("pre[data-line]");Array.prototype.forEach.call(e,function(e){o(e)})})}function i(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function f(e,t){return t=" "+t+" ",-1<(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(t)}function o(e,t,n){for(var r,i=(t="string"==typeof t?t:e.getAttribute("data-line")).replace(/\s+/g,"").split(","),a=+e.getAttribute("data-line-offset")||0,s=(h()?parseInt:parseFloat)(getComputedStyle(e).lineHeight),o=f(e,"line-numbers"),l=0;r=i[l++];){var u=r.split("-"),c=+u[0],p=+u[1]||c,g=e.querySelector('.line-highlight[data-range="'+r+'"]')||document.createElement("div");if(g.setAttribute("aria-hidden","true"),g.setAttribute("data-range",r),g.className=(n||"")+" line-highlight",o&&Prism.plugins.lineNumbers){var d=Prism.plugins.lineNumbers.getLine(e,c),m=Prism.plugins.lineNumbers.getLine(e,p);d&&(g.style.top=d.offsetTop+"px"),m&&(g.style.height=m.offsetTop-d.offsetTop+m.offsetHeight+"px")}else g.setAttribute("data-start",c),c<p&&g.setAttribute("data-end",p),g.style.top=(c-a-1)*s+"px",g.textContent=new Array(p-c+2).join(" \n");o?e.appendChild(g):(e.querySelector("code")||e).appendChild(g)}}function l(){var e=location.hash.slice(1);i(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var t=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),r=document.getElementById(n);r&&(r.hasAttribute("data-line")||r.setAttribute("data-line",""),o(r,t,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}}()},{}],9:[function(e,t,n){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var s="line-numbers",o=/\n(?!$)/g,l=function(e){var t=u(e)["white-space"];if("pre-wrap"===t||"pre-line"===t){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows"),i=e.querySelector(".line-numbers-sizer"),a=n.textContent.split(o);i||((i=document.createElement("span")).className="line-numbers-sizer",n.appendChild(i)),i.style.display="block",a.forEach(function(e,t){i.textContent=e||"\n";var n=i.getBoundingClientRect().height;r.children[t].style.height=n+"px"}),i.textContent="",i.style.display="none"}},u=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+s),l)}),Prism.hooks.add("complete",function(e){if(e.code){var t=e.element.parentNode,n=/\s*\bline-numbers\b\s*/;if(t&&/pre/i.test(t.nodeName)&&(n.test(t.className)||n.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){n.test(e.element.className)&&(e.element.className=e.element.className.replace(n," ")),n.test(t.className)||(t.className+=" line-numbers");var r,i=e.code.match(o),a=i?i.length+1:1,s=new Array(a+1);s=s.join("<span></span>"),(r=document.createElement("span")).setAttribute("aria-hidden","true"),r.className="line-numbers-rows",r.innerHTML=s,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(r),l(t),Prism.hooks.run("line-numbers",e)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains(s)){var n=e.querySelector(".line-numbers-rows"),r=parseInt(e.getAttribute("data-start"),10)||1,i=r+(n.children.length-1);t<r&&(t=r),i<t&&(t=i);var a=t-r;return n.children[a]}}}}}()},{}]},{},[1]);
|
1 |
+
!function a(s,o,l){function u(n,e){if(!o[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=o[n]={exports:{}};s[n][0].call(i.exports,function(e){return u(s[n][1][e]||e)},i,i.exports,a,s,o,l)}return o[n].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,n,t){"use strict";var r;(r=e("prismjs/components/prism-core"))&&r.__esModule;e("prismjs/components/prism-clike"),e("prismjs/components/prism-markup"),e("prismjs/components/prism-markup-templating"),e("prismjs/components/prism-php"),e("prismjs/components/prism-php-extras"),e("prismjs/plugins/line-highlight/prism-line-highlight"),e("prismjs/plugins/line-numbers/prism-line-numbers")},{"prismjs/components/prism-clike":2,"prismjs/components/prism-core":3,"prismjs/components/prism-markup":5,"prismjs/components/prism-markup-templating":4,"prismjs/components/prism-php":7,"prismjs/components/prism-php-extras":6,"prismjs/plugins/line-highlight/prism-line-highlight":8,"prismjs/plugins/line-numbers/prism-line-numbers":9}],2:[function(e,n,t){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},{}],3:[function(e,t,n){(function(e){var n=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,n=0,O={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof T?new T(e.type,O.util.encode(e.content),e.alias):Array.isArray(e)?e.map(O.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function t(e,r){var i,n,a=O.util.type(e);switch(r=r||{},a){case"Object":if(n=O.util.objId(e),r[n])return r[n];for(var s in i={},r[n]=i,e)e.hasOwnProperty(s)&&(i[s]=t(e[s],r));return i;case"Array":return(n=O.util.objId(e),r[n])?r[n]:(i=[],r[n]=i,e.forEach(function(e,n){i[n]=t(e,r)}),i);default:return e}},getLanguage:function(e){for(;e&&!c.test(e.className);)e=e.parentElement;return e?(e.className.match(c)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var n=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(n){var t=document.getElementsByTagName("script");for(var r in t)if(t[r].src==n)return t[r]}return null}}},languages:{extend:function(e,n){var t=O.util.clone(O.languages[e]);for(var r in n)t[r]=n[r];return t},insertBefore:function(t,e,n,r){var i=(r=r||O.languages)[t],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==e)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[t];return r[t]=a,O.languages.DFS(O.languages,function(e,n){n===l&&e!=t&&(this[e]=a)}),a},DFS:function e(n,t,r,i){i=i||{};var a=O.util.objId;for(var s in n)if(n.hasOwnProperty(s)){t.call(n,s,n[s],r||s);var o=n[s],l=O.util.type(o);"Object"!==l||i[a(o)]?"Array"!==l||i[a(o)]||(i[a(o)]=!0,e(o,t,s,i)):(i[a(o)]=!0,e(o,t,null,i))}}},plugins:{},highlightAll:function(e,n){O.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var r={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};O.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),O.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)O.highlightElement(i,!0===n,r.callback)},highlightElement:function(e,n,t){var r=O.util.getLanguage(e),i=O.languages[r];e.className=e.className.replace(c,"").replace(/\s+/g," ")+" language-"+r;var a=e.parentNode;a&&"pre"===a.nodeName.toLowerCase()&&(a.className=a.className.replace(c,"").replace(/\s+/g," ")+" language-"+r);var s={element:e,language:r,grammar:i,code:e.textContent};function o(e){s.highlightedCode=e,O.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,O.hooks.run("after-highlight",s),O.hooks.run("complete",s),t&&t.call(s.element)}if(O.hooks.run("before-sanity-check",s),!s.code)return O.hooks.run("complete",s),void(t&&t.call(s.element));if(O.hooks.run("before-highlight",s),s.grammar)if(n&&u.Worker){var l=new Worker(O.filename);l.onmessage=function(e){o(e.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else o(O.highlight(s.code,s.grammar,s.language));else o(O.util.encode(s.code))},highlight:function(e,n,t){var r={code:e,grammar:n,language:t};return O.hooks.run("before-tokenize",r),r.tokens=O.tokenize(r.code,r.grammar),O.hooks.run("after-tokenize",r),T.stringify(O.util.encode(r.tokens),r.language)},matchGrammar:function(e,n,t,r,i,a,s){for(var o in t)if(t.hasOwnProperty(o)&&t[o]){var l=t[o];l=Array.isArray(l)?l:[l];for(var u=0;u<l.length;++u){if(s&&s==o+","+u)return;var c=l[u],p=c.inside,g=!!c.lookbehind,d=!!c.greedy,m=0,f=c.alias;if(d&&!c.pattern.global){var h=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,h+"g")}c=c.pattern||c;for(var y=r,b=i;y<n.length;b+=n[y].length,++y){var v=n[y];if(n.length>e.length)return;if(!(v instanceof T)){if(d&&y!=n.length-1){if(c.lastIndex=b,!(x=c.exec(e)))break;for(var k=x.index+(g&&x[1]?x[1].length:0),w=x.index+x[0].length,S=y,A=b,P=n.length;S<P&&(A<w||!n[S].type&&!n[S-1].greedy);++S)(A+=n[S].length)<=k&&(++y,b=A);if(n[y]instanceof T)continue;E=S-y,v=e.slice(b,A),x.index-=b}else{c.lastIndex=0;var x=c.exec(v),E=1}if(x){g&&(m=x[1]?x[1].length:0);w=(k=x.index+m)+(x=x[0].slice(m)).length;var N=v.slice(0,k),_=v.slice(w),j=[y,E];N&&(++y,b+=N.length,j.push(N));var C=new T(o,p?O.tokenize(x,p):x,f,x,d);if(j.push(C),_&&j.push(_),Array.prototype.splice.apply(n,j),1!=E&&O.matchGrammar(e,n,t,y,b,!0,o+","+u),a)break}else if(a)break}}}}},tokenize:function(e,n){var t=[e],r=n.rest;if(r){for(var i in r)n[i]=r[i];delete n.rest}return O.matchGrammar(e,t,n,0,0,!1),t},hooks:{all:{},add:function(e,n){var t=O.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=O.hooks.all[e];if(t&&t.length)for(var r,i=0;r=t[i++];)r(n)}},Token:T};function T(e,n,t,r,i){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length,this.greedy=!!i}if(u.Prism=O,T.stringify=function(e,n){if("string"==typeof e)return e;if(Array.isArray(e))return e.map(function(e){return T.stringify(e,n)}).join("");var t={type:e.type,content:T.stringify(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n};if(e.alias){var r=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(t.classes,r)}O.hooks.run("wrap",t);var i=Object.keys(t.attributes).map(function(e){return e+'="'+(t.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+t.tag+' class="'+t.classes.join(" ")+'"'+(i?" "+i:"")+">"+t.content+"</"+t.tag+">"},!u.document)return u.addEventListener&&(O.disableWorkerMessageHandler||u.addEventListener("message",function(e){var n=JSON.parse(e.data),t=n.language,r=n.code,i=n.immediateClose;u.postMessage(O.highlight(r,O.languages[t],t)),i&&u.close()},!1)),O;var e=O.util.currentScript();if(e&&(O.filename=e.src,e.hasAttribute("data-manual")&&(O.manual=!0)),!O.manual){function t(){O.manual||O.highlightAll()}var r=document.readyState;"loading"===r||"interactive"===r&&e&&e.defer?document.addEventListener("DOMContentLoaded",t):window.requestAnimationFrame?window.requestAnimationFrame(t):window.setTimeout(t,16)}return O}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});void 0!==t&&t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,n,t){function y(e,n){return"___"+e.toUpperCase()+n+"___"}var b;b=Prism,Object.defineProperties(b.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,e,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(e,function(e){if("function"==typeof a&&!a(e))return e;for(var n,t=s.length;-1!==r.code.indexOf(n=y(i,t));)++t;return s[t]=e,n}),r.grammar=b.languages.markup}}},tokenizePlaceholders:{value:function(d,m){if(d.language===m&&d.tokenStack){d.grammar=b.languages[m];var f=0,h=Object.keys(d.tokenStack);!function e(n){for(var t=0;t<n.length&&!(f>=h.length);t++){var r=n[t];if("string"==typeof r||r.content&&"string"==typeof r.content){var i=h[f],a=d.tokenStack[i],s="string"==typeof r?r:r.content,o=y(m,i),l=s.indexOf(o);if(-1<l){++f;var u=s.substring(0,l),c=new b.Token(m,b.tokenize(a,d.grammar),"language-"+m,a),p=s.substring(l+o.length),g=[];u&&g.push.apply(g,e([u])),g.push(c),p&&g.push.apply(g,e([p])),"string"==typeof r?n.splice.apply(n,[t,1].concat(g)):r.content=g}}else r.content&&e(r.content)}return n}(d.tokens)}}}})},{}],5:[function(e,n,t){Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var t={};t["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},t.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:t}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup},{}],6:[function(e,n,t){Prism.languages.insertBefore("php","variable",{this:/\$this\b/,global:/\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/static|self|parent/,punctuation:/::|\\/}}})},{}],7:[function(e,n,t){!function(n){n.languages.php=n.languages.extend("clike",{keyword:/\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,boolean:{pattern:/\b(?:false|true)\b/i,alias:"constant"},constant:[/\b[A-Z_][A-Z0-9_]*\b/,/\b(?:null)\b/i],comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),n.languages.insertBefore("php","string",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),n.languages.insertBefore("php","comment",{delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"}}),n.languages.insertBefore("php","keyword",{variable:/\$+(?:\w+\b|(?={))/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),n.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}});var e={pattern:/{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[.+?]|->\w+)*)/,lookbehind:!0,inside:n.languages.php};n.languages.insertBefore("php","string",{"nowdoc-string":{pattern:/<<<'([^']+)'(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;/,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},"heredoc-string":{pattern:/<<<(?:"([^"]+)"(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;|([a-z_]\w*)(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\2;)/i,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:e}},"single-quoted-string":{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,alias:"string",inside:{interpolation:e}}}),delete n.languages.php.string,n.hooks.add("before-tokenize",function(e){if(/<\?/.test(e.code)){n.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#)(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|\/\*[\s\S]*?(?:\*\/|$))*?(?:\?>|$)/gi)}}),n.hooks.add("after-tokenize",function(e){n.languages["markup-templating"].tokenizePlaceholders(e,"php")})}(Prism)},{}],8:[function(e,n,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var n,t=function(){if(void 0===n){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML=" <br /> ",document.body.appendChild(e),n=38===e.offsetHeight,document.body.removeChild(e)}return n},s=0;Prism.hooks.add("before-sanity-check",function(e){var n=e.element.parentNode,t=n&&n.getAttribute("data-line");if(n&&t&&/pre/i.test(n.nodeName)){var r=0;i(".line-highlight",n).forEach(function(e){r+=e.textContent.length,e.parentNode.removeChild(e)}),r&&/^( \n)+$/.test(e.code.slice(-r))&&(e.code=e.code.slice(0,-r))}}),Prism.hooks.add("complete",function e(n){var t=n.element.parentNode,r=t&&t.getAttribute("data-line");if(t&&r&&/pre/i.test(t.nodeName)){clearTimeout(s);var i=Prism.plugins.lineNumbers,a=n.plugins&&n.plugins.lineNumbers;if(o(t,"line-numbers")&&i&&!a)Prism.hooks.add("line-numbers",e);else l(t,r)(),s=setTimeout(u,1)}}),window.addEventListener("hashchange",u),window.addEventListener("resize",function(){var n=[];i("pre[data-line]").forEach(function(e){n.push(l(e))}),n.forEach(r)})}function i(e,n){return Array.prototype.slice.call((n||document).querySelectorAll(e))}function o(e,n){return n=" "+n+" ",-1<(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(n)}function r(e){e()}function l(u,e,c){var n=(e="string"==typeof e?e:u.getAttribute("data-line")).replace(/\s+/g,"").split(","),p=+u.getAttribute("data-line-offset")||0,g=(t()?parseInt:parseFloat)(getComputedStyle(u).lineHeight),d=o(u,"line-numbers"),m=d?u:u.querySelector("code")||u,f=[];return n.forEach(function(e){var n=e.split("-"),t=+n[0],r=+n[1]||t,i=u.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div");if(f.push(function(){i.setAttribute("aria-hidden","true"),i.setAttribute("data-range",e),i.className=(c||"")+" line-highlight"}),d&&Prism.plugins.lineNumbers){var a=Prism.plugins.lineNumbers.getLine(u,t),s=Prism.plugins.lineNumbers.getLine(u,r);if(a){var o=a.offsetTop+"px";f.push(function(){i.style.top=o})}if(s){var l=s.offsetTop-a.offsetTop+s.offsetHeight+"px";f.push(function(){i.style.height=l})}}else f.push(function(){i.setAttribute("data-start",t),t<r&&i.setAttribute("data-end",r),i.style.top=(t-p-1)*g+"px",i.textContent=new Array(r-t+2).join(" \n")});f.push(function(){m.appendChild(i)})}),function(){f.forEach(r)}}function u(){var e=location.hash.slice(1);i(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var n=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(n&&!document.getElementById(e)){var t=e.slice(0,e.lastIndexOf(".")),r=document.getElementById(t);if(r)r.hasAttribute("data-line")||r.setAttribute("data-line",""),l(r,n,"temporary ")(),document.querySelector(".temporary.line-highlight").scrollIntoView()}}}()},{}],9:[function(e,n,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){function c(e){var n=o(e)["white-space"];if("pre-wrap"===n||"pre-line"===n){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows"),i=e.querySelector(".line-numbers-sizer"),a=t.textContent.split(p);i||((i=document.createElement("span")).className="line-numbers-sizer",t.appendChild(i)),i.style.display="block",a.forEach(function(e,n){i.textContent=e||"\n";var t=i.getBoundingClientRect().height;r.children[n].style.height=t+"px"}),i.textContent="",i.style.display="none"}}var s="line-numbers",p=/\n(?!$)/g,o=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+s),c)}),Prism.hooks.add("complete",function(e){if(e.code){var n=e.element,t=n.parentNode;if(t&&/pre/i.test(t.nodeName)&&!n.querySelector(".line-numbers-rows")){for(var r=!1,i=/(?:^|\s)line-numbers(?:\s|$)/,a=n;a;a=a.parentNode)if(i.test(a.className)){r=!0;break}if(r){n.className=n.className.replace(i," "),i.test(t.className)||(t.className+=" line-numbers");var s,o=e.code.match(p),l=o?o.length+1:1,u=new Array(l+1).join("<span></span>");(s=document.createElement("span")).setAttribute("aria-hidden","true"),s.className="line-numbers-rows",s.innerHTML=u,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(s),c(t),Prism.hooks.run("line-numbers",e)}}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,n){if("PRE"===e.tagName&&e.classList.contains(s)){var t=e.querySelector(".line-numbers-rows"),r=parseInt(e.getAttribute("data-start"),10)||1,i=r+(t.children.length-1);n<r&&(n=r),i<n&&(n=i);var a=n-r;return t.children[a]}}}}}()},{}]},{},[1]);
|
js/min/manage.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function a(o,s,c){function p(t,e){if(!s[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var
|
1 |
+
!function a(o,s,c){function p(t,e){if(!s[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[t]={exports:{}};o[t][0].call(r.exports,function(e){return p(o[t][1][e]||e)},r,r.exports,a,o,s,c)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)p(c[e]);return p}({1:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function a(e,t,n,i){var r=t.querySelector(".column-id");if(r&&parseInt(r.textContent)){n.id=parseInt(r.textContent),n.shared_network=!!t.className.match(/\bshared-network-snippet\b/),n.network=n.shared_network||p;var a="action=update_code_snippet&_ajax_nonce="+c+"&field="+e+"&snippet="+JSON.stringify(n),o=new XMLHttpRequest;o.open("POST",ajaxurl,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.onload=function(){o.status<200||400<=o.status||(console.log(o.responseText),void 0!==i&&i(JSON.parse(o.responseText)))},o.send(a)}}function r(){a("priority",this.parentElement.parentElement,{priority:this.value})}function o(e,t){var n=parseInt(e.textContent.replace(/\((\d+)\)/,"$1"));t?n++:n--,e.textContent="("+n.toString()+")"}function s(e){var i=this.parentElement.parentElement,t=i.className.match(/\b(?:in)?active-snippet\b/);if(t){e.preventDefault();var r="inactive-snippet"===t[0];a("active",i,{active:r},function(e){var t=i.querySelector(".snippet-activation-switch");if(e.success){i.className=r?i.className.replace(/\binactive-snippet\b/,"active-snippet"):i.className.replace(/\bactive-snippet\b/,"inactive-snippet");var n=document.querySelector(".subsubsub");o(n.querySelector(".active .count"),r),o(n.querySelector(".inactive .count"),r),t.title=r?u.deactivate:u.activate}else i.className+=" erroneous-snippet",t.title=u.activation_error})}}var c,p,u;c=document.getElementById("code_snippets_ajax_nonce").value,p="-network"===pagenow.substring(pagenow.length-"-network".length),u=window.code_snippets_manage_i18n,i(document.getElementsByClassName("snippet-priority"),function(e,t){e.addEventListener("input",r),e.disabled=!1}),i(document.getElementsByClassName("snippet-activation-switch"),function(e,t){e.addEventListener("click",s)})},{}]},{},[1]);
|
languages/code-snippets-fr_FR.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Code Snippets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
1 |
+
# Copyright (C) 2020 Code Snippets
|
2 |
# This file is distributed under the same license as the Code Snippets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
languages/code-snippets-it_IT.mo
CHANGED
Binary file
|
languages/code-snippets-it_IT.po
CHANGED
@@ -6,7 +6,7 @@ msgstr ""
|
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
"POT-Creation-Date: 2017-05-05 23:16+1000\n"
|
8 |
"PO-Revision-Date: 2017-05-05 23:16+1000\n"
|
9 |
-
"Last-Translator: Marco <troniclabs.crew@gmail.com>\n"
|
10 |
"Language-Team: Tronic Labs\n"
|
11 |
"Language: it\n"
|
12 |
"MIME-Version: 1.0\n"
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17 |
|
18 |
#: php/admin-menus/class-admin-menu.php:103
|
19 |
msgid "You are not authorized to access this page."
|
20 |
-
msgstr ""
|
21 |
|
22 |
#: php/admin-menus/class-edit-menu.php:13
|
23 |
#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
|
@@ -37,80 +37,87 @@ msgstr "Aggiungi nuovo Snippet"
|
|
37 |
|
38 |
#: php/admin-menus/class-edit-menu.php:156
|
39 |
msgid "Don't Panic"
|
40 |
-
msgstr ""
|
41 |
|
42 |
#: php/admin-menus/class-edit-menu.php:157
|
43 |
#, php-format
|
44 |
msgid ""
|
45 |
"The code snippet you are trying to save produced a fatal error on line %d:"
|
46 |
msgstr ""
|
|
|
47 |
|
48 |
#: php/admin-menus/class-edit-menu.php:159
|
49 |
msgid ""
|
50 |
"The previous version of the snippet is unchanged, and the rest of this site "
|
51 |
"should be functioning normally as before."
|
52 |
msgstr ""
|
|
|
|
|
53 |
|
54 |
#: php/admin-menus/class-edit-menu.php:160
|
55 |
msgid ""
|
56 |
"Please use the back button in your browser to return to the previous page "
|
57 |
"and try to fix the code error."
|
58 |
msgstr ""
|
|
|
|
|
59 |
|
60 |
#: php/admin-menus/class-edit-menu.php:161
|
61 |
msgid ""
|
62 |
"If you prefer, you can close this page and discard the changes you just "
|
63 |
"made. No changes will be made to this site."
|
64 |
msgstr ""
|
|
|
|
|
65 |
|
66 |
#: php/admin-menus/class-edit-menu.php:281 php/class-list-table.php:341
|
67 |
msgid "Description"
|
68 |
-
msgstr "
|
69 |
|
70 |
#: php/admin-menus/class-edit-menu.php:312 php/class-list-table.php:342
|
71 |
msgid "Tags"
|
72 |
-
msgstr ""
|
73 |
|
74 |
#: php/admin-menus/class-edit-menu.php:316
|
75 |
msgid "Enter a list of tags; separated by commas"
|
76 |
-
msgstr ""
|
77 |
|
78 |
#: php/admin-menus/class-edit-menu.php:336
|
79 |
msgid "Run snippet everywhere"
|
80 |
-
msgstr ""
|
81 |
|
82 |
#: php/admin-menus/class-edit-menu.php:337
|
83 |
msgid "Only run in administration area"
|
84 |
-
msgstr ""
|
85 |
|
86 |
#: php/admin-menus/class-edit-menu.php:338
|
87 |
msgid "Only run on site front-end"
|
88 |
-
msgstr ""
|
89 |
|
90 |
#: php/admin-menus/class-edit-menu.php:342
|
91 |
msgid "Scope"
|
92 |
-
msgstr ""
|
93 |
|
94 |
#: php/admin-menus/class-edit-menu.php:362
|
95 |
msgid "Sharing"
|
96 |
-
msgstr ""
|
97 |
|
98 |
#: php/admin-menus/class-edit-menu.php:366
|
99 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
100 |
-
msgstr ""
|
101 |
|
102 |
#: php/admin-menus/class-edit-menu.php:426
|
103 |
#, php-format
|
104 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
105 |
-
msgstr ""
|
106 |
|
107 |
#: php/admin-menus/class-edit-menu.php:431
|
108 |
msgid "The snippet has been deactivated due to an error in the code."
|
109 |
-
msgstr ""
|
110 |
|
111 |
#: php/admin-menus/class-edit-menu.php:438
|
112 |
msgid "An error occurred when saving the snippet."
|
113 |
-
msgstr ""
|
114 |
|
115 |
#: php/admin-menus/class-edit-menu.php:443
|
116 |
msgid "Snippet <strong>added</strong>."
|
@@ -170,14 +177,14 @@ msgstr[1] "Importati <strong>%d</strong> snippets."
|
|
170 |
|
171 |
#: php/admin-menus/class-import-menu.php:112
|
172 |
msgid "An error occurred when processing the import file."
|
173 |
-
msgstr ""
|
174 |
|
175 |
#: php/admin-menus/class-manage-menu.php:22
|
176 |
#, fuzzy
|
177 |
#| msgid "Snippets"
|
178 |
msgctxt "menu label"
|
179 |
msgid "All Snippets"
|
180 |
-
msgstr "
|
181 |
|
182 |
#: php/admin-menus/class-manage-menu.php:23
|
183 |
#: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:61
|
@@ -199,6 +206,10 @@ msgid ""
|
|
199 |
"config.php</code> to turn off safe mode. <a href=\"https://github.com/"
|
200 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
201 |
msgstr ""
|
|
|
|
|
|
|
|
|
202 |
|
203 |
#: php/admin-menus/class-manage-menu.php:87
|
204 |
msgid "Snippet <strong>activated</strong>."
|
@@ -227,17 +238,17 @@ msgstr "Snippet selezionato <strong>cancellato</strong>."
|
|
227 |
#: php/admin-menus/class-settings-menu.php:16
|
228 |
msgctxt "menu label"
|
229 |
msgid "Settings"
|
230 |
-
msgstr ""
|
231 |
|
232 |
#: php/admin-menus/class-settings-menu.php:17
|
233 |
#, fuzzy
|
234 |
#| msgid "Snippets per page"
|
235 |
msgid "Snippets Settings"
|
236 |
-
msgstr "
|
237 |
|
238 |
#: php/admin-menus/class-settings-menu.php:39 php/views/edit.php:135
|
239 |
msgid "Settings"
|
240 |
-
msgstr ""
|
241 |
|
242 |
#: php/class-admin.php:143
|
243 |
msgid "Manage your existing snippets"
|
@@ -273,14 +284,17 @@ msgid ""
|
|
273 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
274 |
"changed or added in the future."
|
275 |
msgstr ""
|
|
|
|
|
|
|
276 |
|
277 |
#: php/class-admin.php:220
|
278 |
msgid "Take the survey now"
|
279 |
-
msgstr ""
|
280 |
|
281 |
#: php/class-admin.php:223
|
282 |
msgid "Dismiss"
|
283 |
-
msgstr ""
|
284 |
|
285 |
#: php/class-contextual-help.php:40
|
286 |
msgid "For more information:"
|
@@ -288,11 +302,11 @@ msgstr "Per maggiori informazioni:"
|
|
288 |
|
289 |
#: php/class-contextual-help.php:41
|
290 |
msgid "About Plugin"
|
291 |
-
msgstr ""
|
292 |
|
293 |
#: php/class-contextual-help.php:42
|
294 |
msgid "FAQ"
|
295 |
-
msgstr ""
|
296 |
|
297 |
#: php/class-contextual-help.php:43
|
298 |
#, fuzzy
|
@@ -302,7 +316,7 @@ msgstr "Supporto"
|
|
302 |
|
303 |
#: php/class-contextual-help.php:44
|
304 |
msgid "Plugin Website"
|
305 |
-
msgstr ""
|
306 |
|
307 |
#: php/class-contextual-help.php:55 php/class-contextual-help.php:81
|
308 |
#: php/class-contextual-help.php:122
|
@@ -445,8 +459,8 @@ msgid ""
|
|
445 |
"Here are some links to websites which host a large number of snippets that "
|
446 |
"you can add to your site:"
|
447 |
msgstr ""
|
448 |
-
"
|
449 |
-
"
|
450 |
|
451 |
#: php/class-contextual-help.php:103
|
452 |
msgid ""
|
@@ -547,38 +561,43 @@ msgid ""
|
|
547 |
"This is a code snippets export file generated by the Code Snippets WordPress "
|
548 |
"plugin."
|
549 |
msgstr ""
|
|
|
|
|
550 |
|
551 |
#: php/class-export.php:89
|
552 |
msgid "To import these snippets a WordPress site follow these steps:"
|
553 |
-
msgstr ""
|
554 |
|
555 |
#: php/class-export.php:90
|
556 |
msgid "1. Log in to that site as an administrator."
|
557 |
-
msgstr ""
|
558 |
|
559 |
#: php/class-export.php:91
|
560 |
msgid ""
|
561 |
"2. Install the Code Snippets plugin using the directions provided at the "
|
562 |
"above link."
|
563 |
-
msgstr ""
|
|
|
564 |
|
565 |
#: php/class-export.php:92
|
566 |
msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
|
567 |
-
msgstr ""
|
568 |
|
569 |
#: php/class-export.php:93
|
570 |
msgid "4. Click on the \"Code Snippets\" importer in the list"
|
571 |
-
msgstr ""
|
572 |
|
573 |
#: php/class-export.php:94
|
574 |
msgid "5. Upload this file using the form provided on that page."
|
575 |
-
msgstr ""
|
576 |
|
577 |
#: php/class-export.php:95
|
578 |
msgid ""
|
579 |
"6. Code Snippets will then import all of the snippets and associated "
|
580 |
"information contained in this file into your site."
|
581 |
msgstr ""
|
|
|
|
|
582 |
|
583 |
#: php/class-export.php:96
|
584 |
#, fuzzy
|
@@ -641,7 +660,7 @@ msgstr ""
|
|
641 |
#: php/class-list-table.php:161 php/class-list-table.php:236
|
642 |
#: php/views/edit.php:119
|
643 |
msgid "'Cancel' to stop, 'OK' to delete."
|
644 |
-
msgstr ""
|
645 |
|
646 |
#: php/class-list-table.php:168
|
647 |
#, fuzzy
|
@@ -651,16 +670,16 @@ msgstr "Network Attiva"
|
|
651 |
|
652 |
#: php/class-list-table.php:170
|
653 |
msgid "Network Only"
|
654 |
-
msgstr ""
|
655 |
|
656 |
#: php/class-list-table.php:255
|
657 |
#, php-format
|
658 |
msgid "Untitled #%d"
|
659 |
-
msgstr ""
|
660 |
|
661 |
#: php/class-list-table.php:278
|
662 |
msgid "Shared on Network"
|
663 |
-
msgstr ""
|
664 |
|
665 |
#: php/class-list-table.php:339 php/views/edit.php:48
|
666 |
msgid "Name"
|
@@ -704,7 +723,7 @@ msgstr[1] "Recentemente Attivi <span class=\"count\">(%s)</span>"
|
|
704 |
|
705 |
#: php/class-list-table.php:494
|
706 |
msgid "Show all tags"
|
707 |
-
msgstr ""
|
708 |
|
709 |
#: php/class-list-table.php:508
|
710 |
msgid "Filter"
|
@@ -716,11 +735,11 @@ msgstr "Cancella Lista"
|
|
716 |
|
717 |
#: php/class-list-table.php:702
|
718 |
msgid "Whoops, it looks like no snippets could be found."
|
719 |
-
msgstr ""
|
720 |
|
721 |
#: php/class-list-table.php:706
|
722 |
msgid "Perhaps you would like to add a new one?"
|
723 |
-
msgstr ""
|
724 |
|
725 |
#: php/class-list-table.php:985
|
726 |
msgid "Search results"
|
@@ -743,154 +762,157 @@ msgstr "Cancella Filtri"
|
|
743 |
|
744 |
#: php/settings/settings-fields.php:42
|
745 |
msgid "Activate by Default"
|
746 |
-
msgstr ""
|
747 |
|
748 |
#: php/settings/settings-fields.php:44
|
749 |
msgid ""
|
750 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
751 |
msgstr ""
|
|
|
752 |
|
753 |
#: php/settings/settings-fields.php:49
|
754 |
msgid "Enable Scope Selector"
|
755 |
-
msgstr ""
|
756 |
|
757 |
#: php/settings/settings-fields.php:51
|
758 |
msgid "Enable the scope selector when editing a snippet"
|
759 |
-
msgstr ""
|
760 |
|
761 |
#: php/settings/settings-fields.php:56
|
762 |
#, fuzzy
|
763 |
#| msgid "Code Snippets"
|
764 |
msgid "Enable Snippet Tags"
|
765 |
-
msgstr "
|
766 |
|
767 |
#: php/settings/settings-fields.php:58
|
768 |
msgid "Show snippet tags on admin pages"
|
769 |
-
msgstr ""
|
770 |
|
771 |
#: php/settings/settings-fields.php:63
|
772 |
msgid "Enable Snippet Descriptions"
|
773 |
-
msgstr ""
|
774 |
|
775 |
#: php/settings/settings-fields.php:65
|
776 |
msgid "Show snippet descriptions on admin pages"
|
777 |
-
msgstr ""
|
778 |
|
779 |
#: php/settings/settings-fields.php:69
|
780 |
msgid "Disable shortcode syntax highlighter"
|
781 |
-
msgstr ""
|
782 |
|
783 |
#: php/settings/settings-fields.php:71
|
784 |
msgid ""
|
785 |
"Disable the syntax highlighting for the [code_snippet] shortcode on the "
|
786 |
"front-end"
|
787 |
msgstr ""
|
|
|
|
|
788 |
|
789 |
#: php/settings/settings-fields.php:80
|
790 |
msgid "Row Height"
|
791 |
-
msgstr ""
|
792 |
|
793 |
#: php/settings/settings-fields.php:82
|
794 |
msgid "rows"
|
795 |
-
msgstr ""
|
796 |
|
797 |
#: php/settings/settings-fields.php:88
|
798 |
msgid "Use Full Editor"
|
799 |
-
msgstr ""
|
800 |
|
801 |
#: php/settings/settings-fields.php:90
|
802 |
msgid "Enable all features of the visual editor"
|
803 |
-
msgstr ""
|
804 |
|
805 |
#: php/settings/settings-fields.php:95
|
806 |
msgid "Media Buttons"
|
807 |
-
msgstr ""
|
808 |
|
809 |
#: php/settings/settings-fields.php:97
|
810 |
msgid "Enable the add media buttons"
|
811 |
-
msgstr ""
|
812 |
|
813 |
#: php/settings/settings-fields.php:106
|
814 |
msgid "Theme"
|
815 |
-
msgstr ""
|
816 |
|
817 |
#: php/settings/settings-fields.php:113
|
818 |
msgid "Indent With Tabs"
|
819 |
-
msgstr ""
|
820 |
|
821 |
#: php/settings/settings-fields.php:115
|
822 |
msgid "Use hard tabs (not spaces) for indentation."
|
823 |
-
msgstr ""
|
824 |
|
825 |
#: php/settings/settings-fields.php:121
|
826 |
msgid "Tab Size"
|
827 |
-
msgstr ""
|
828 |
|
829 |
#: php/settings/settings-fields.php:123
|
830 |
msgid "The width of a tab character."
|
831 |
-
msgstr ""
|
832 |
|
833 |
#: php/settings/settings-fields.php:130
|
834 |
msgid "Indent Unit"
|
835 |
-
msgstr ""
|
836 |
|
837 |
#: php/settings/settings-fields.php:132
|
838 |
msgid "How many spaces a block should be indented."
|
839 |
-
msgstr ""
|
840 |
|
841 |
#: php/settings/settings-fields.php:139
|
842 |
msgid "Wrap Lines"
|
843 |
-
msgstr ""
|
844 |
|
845 |
#: php/settings/settings-fields.php:141
|
846 |
msgid "Whether the editor should scroll or wrap for long lines."
|
847 |
-
msgstr ""
|
848 |
|
849 |
#: php/settings/settings-fields.php:147
|
850 |
msgid "Line Numbers"
|
851 |
-
msgstr ""
|
852 |
|
853 |
#: php/settings/settings-fields.php:149
|
854 |
msgid "Show line numbers to the left of the editor."
|
855 |
-
msgstr ""
|
856 |
|
857 |
#: php/settings/settings-fields.php:155
|
858 |
msgid "Auto Close Brackets"
|
859 |
-
msgstr ""
|
860 |
|
861 |
#: php/settings/settings-fields.php:157
|
862 |
msgid "Auto-close brackets and quotes when typed."
|
863 |
-
msgstr ""
|
864 |
|
865 |
#: php/settings/settings-fields.php:163
|
866 |
msgid "Highlight Selection Matches"
|
867 |
-
msgstr ""
|
868 |
|
869 |
#: php/settings/settings-fields.php:164
|
870 |
msgid "Highlight all instances of a currently selected word."
|
871 |
-
msgstr ""
|
872 |
|
873 |
#: php/settings/settings.php:68
|
874 |
msgid "General"
|
875 |
-
msgstr ""
|
876 |
|
877 |
#: php/settings/settings.php:69
|
878 |
#, fuzzy
|
879 |
#| msgid "Description"
|
880 |
msgid "Description Editor"
|
881 |
-
msgstr "
|
882 |
|
883 |
#: php/settings/settings.php:70
|
884 |
msgid "Code Editor"
|
885 |
-
msgstr ""
|
886 |
|
887 |
#: php/settings/settings.php:119
|
888 |
msgid "Editor Preview"
|
889 |
-
msgstr ""
|
890 |
|
891 |
#: php/settings/settings.php:176
|
892 |
msgid "Settings saved."
|
893 |
-
msgstr ""
|
894 |
|
895 |
#: php/views/edit.php:28 php/views/manage.php:22
|
896 |
msgctxt "snippet"
|
@@ -899,7 +921,7 @@ msgstr "Aggiungi Nuovo"
|
|
899 |
|
900 |
#: php/views/edit.php:49
|
901 |
msgid "Enter title here"
|
902 |
-
msgstr ""
|
903 |
|
904 |
#: php/views/edit.php:54
|
905 |
msgid "Code"
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
"POT-Creation-Date: 2017-05-05 23:16+1000\n"
|
8 |
"PO-Revision-Date: 2017-05-05 23:16+1000\n"
|
9 |
+
"Last-Translator: Marco <troniclabs.crew@gmail.com> Francesco <francesco@360fun.net>\n"
|
10 |
"Language-Team: Tronic Labs\n"
|
11 |
"Language: it\n"
|
12 |
"MIME-Version: 1.0\n"
|
17 |
|
18 |
#: php/admin-menus/class-admin-menu.php:103
|
19 |
msgid "You are not authorized to access this page."
|
20 |
+
msgstr "Non sei autorizzato ad accedere a questa pagina."
|
21 |
|
22 |
#: php/admin-menus/class-edit-menu.php:13
|
23 |
#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
|
37 |
|
38 |
#: php/admin-menus/class-edit-menu.php:156
|
39 |
msgid "Don't Panic"
|
40 |
+
msgstr "Non Spaventarti"
|
41 |
|
42 |
#: php/admin-menus/class-edit-menu.php:157
|
43 |
#, php-format
|
44 |
msgid ""
|
45 |
"The code snippet you are trying to save produced a fatal error on line %d:"
|
46 |
msgstr ""
|
47 |
+
"Lo snippet che si sta tentando di salvare ha generato un errore irreversibile alla riga %d:"
|
48 |
|
49 |
#: php/admin-menus/class-edit-menu.php:159
|
50 |
msgid ""
|
51 |
"The previous version of the snippet is unchanged, and the rest of this site "
|
52 |
"should be functioning normally as before."
|
53 |
msgstr ""
|
54 |
+
"La versione precedente dello snippet è invariata, e il resto del sito"
|
55 |
+
"dovrebbe funzionare normalmente."
|
56 |
|
57 |
#: php/admin-menus/class-edit-menu.php:160
|
58 |
msgid ""
|
59 |
"Please use the back button in your browser to return to the previous page "
|
60 |
"and try to fix the code error."
|
61 |
msgstr ""
|
62 |
+
"Si prega di utilizzare il pulsante Indietro nel browser per tornare alla pagina precedente "
|
63 |
+
"e provare a correggere l'errore."
|
64 |
|
65 |
#: php/admin-menus/class-edit-menu.php:161
|
66 |
msgid ""
|
67 |
"If you prefer, you can close this page and discard the changes you just "
|
68 |
"made. No changes will be made to this site."
|
69 |
msgstr ""
|
70 |
+
"Se preferisci, puoi chiudere questa pagina e scartare le modifiche che hai appena"
|
71 |
+
"fatto. Non verranno apportate modifiche al sito."
|
72 |
|
73 |
#: php/admin-menus/class-edit-menu.php:281 php/class-list-table.php:341
|
74 |
msgid "Description"
|
75 |
+
msgstr "Descrizione"
|
76 |
|
77 |
#: php/admin-menus/class-edit-menu.php:312 php/class-list-table.php:342
|
78 |
msgid "Tags"
|
79 |
+
msgstr "Tags"
|
80 |
|
81 |
#: php/admin-menus/class-edit-menu.php:316
|
82 |
msgid "Enter a list of tags; separated by commas"
|
83 |
+
msgstr "Immettere l'elenco dei tag; separati da virgole"
|
84 |
|
85 |
#: php/admin-menus/class-edit-menu.php:336
|
86 |
msgid "Run snippet everywhere"
|
87 |
+
msgstr "Esegui lo snippet ovunque"
|
88 |
|
89 |
#: php/admin-menus/class-edit-menu.php:337
|
90 |
msgid "Only run in administration area"
|
91 |
+
msgstr "Attivo solo nell'area admin"
|
92 |
|
93 |
#: php/admin-menus/class-edit-menu.php:338
|
94 |
msgid "Only run on site front-end"
|
95 |
+
msgstr "Attivo solo nell'area pubblica"
|
96 |
|
97 |
#: php/admin-menus/class-edit-menu.php:342
|
98 |
msgid "Scope"
|
99 |
+
msgstr "Scopo"
|
100 |
|
101 |
#: php/admin-menus/class-edit-menu.php:362
|
102 |
msgid "Sharing"
|
103 |
+
msgstr "Condivisione"
|
104 |
|
105 |
#: php/admin-menus/class-edit-menu.php:366
|
106 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
107 |
+
msgstr "Consenti l'attivazione di questo snippet su singoli siti della rete"
|
108 |
|
109 |
#: php/admin-menus/class-edit-menu.php:426
|
110 |
#, php-format
|
111 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
112 |
+
msgstr "Lo snippet è stato disattivato a causa di un errore nella riga %d:"
|
113 |
|
114 |
#: php/admin-menus/class-edit-menu.php:431
|
115 |
msgid "The snippet has been deactivated due to an error in the code."
|
116 |
+
msgstr "Lo snippet è stato disattivato a causa di un errore nel codice."
|
117 |
|
118 |
#: php/admin-menus/class-edit-menu.php:438
|
119 |
msgid "An error occurred when saving the snippet."
|
120 |
+
msgstr "Si è verificato un errore durante il salvataggio dello snippet."
|
121 |
|
122 |
#: php/admin-menus/class-edit-menu.php:443
|
123 |
msgid "Snippet <strong>added</strong>."
|
177 |
|
178 |
#: php/admin-menus/class-import-menu.php:112
|
179 |
msgid "An error occurred when processing the import file."
|
180 |
+
msgstr "Si è verificato un errore durante l'importazione del file."
|
181 |
|
182 |
#: php/admin-menus/class-manage-menu.php:22
|
183 |
#, fuzzy
|
184 |
#| msgid "Snippets"
|
185 |
msgctxt "menu label"
|
186 |
msgid "All Snippets"
|
187 |
+
msgstr "Tutti gli Snippet"
|
188 |
|
189 |
#: php/admin-menus/class-manage-menu.php:23
|
190 |
#: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:61
|
206 |
"config.php</code> to turn off safe mode. <a href=\"https://github.com/"
|
207 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
208 |
msgstr ""
|
209 |
+
"<strong>Attenzione:</strong> La modalità provvisoria è attiva e i frammenti non verranno eseguiti! "
|
210 |
+
"Rimuovi <code>CODE_SNIPPETS_SAFE_MODE</code> da <code>wp-"
|
211 |
+
"config.php</code> per disattivare la modalità provvisoria. <a href=\"https://github.com/"
|
212 |
+
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Aiuto</a>"
|
213 |
|
214 |
#: php/admin-menus/class-manage-menu.php:87
|
215 |
msgid "Snippet <strong>activated</strong>."
|
238 |
#: php/admin-menus/class-settings-menu.php:16
|
239 |
msgctxt "menu label"
|
240 |
msgid "Settings"
|
241 |
+
msgstr "Configurazione"
|
242 |
|
243 |
#: php/admin-menus/class-settings-menu.php:17
|
244 |
#, fuzzy
|
245 |
#| msgid "Snippets per page"
|
246 |
msgid "Snippets Settings"
|
247 |
+
msgstr "Snippet per pagina"
|
248 |
|
249 |
#: php/admin-menus/class-settings-menu.php:39 php/views/edit.php:135
|
250 |
msgid "Settings"
|
251 |
+
msgstr "Configurazione"
|
252 |
|
253 |
#: php/class-admin.php:143
|
254 |
msgid "Manage your existing snippets"
|
284 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
285 |
"changed or added in the future."
|
286 |
msgstr ""
|
287 |
+
"<strong>Hai suggerimenti per Code Snippets?</strong> Ti preghiamo di "
|
288 |
+
"rispondere ad un breve sondaggio su come utilizzi questo plugin e cosa vorresti vedere"
|
289 |
+
"cambiato o aggiunto in futuro."
|
290 |
|
291 |
#: php/class-admin.php:220
|
292 |
msgid "Take the survey now"
|
293 |
+
msgstr "Partecipa subito al sondaggio"
|
294 |
|
295 |
#: php/class-admin.php:223
|
296 |
msgid "Dismiss"
|
297 |
+
msgstr "Ignora"
|
298 |
|
299 |
#: php/class-contextual-help.php:40
|
300 |
msgid "For more information:"
|
302 |
|
303 |
#: php/class-contextual-help.php:41
|
304 |
msgid "About Plugin"
|
305 |
+
msgstr "Info Plugin"
|
306 |
|
307 |
#: php/class-contextual-help.php:42
|
308 |
msgid "FAQ"
|
309 |
+
msgstr "FAQ"
|
310 |
|
311 |
#: php/class-contextual-help.php:43
|
312 |
#, fuzzy
|
316 |
|
317 |
#: php/class-contextual-help.php:44
|
318 |
msgid "Plugin Website"
|
319 |
+
msgstr "Sito Web Plugin"
|
320 |
|
321 |
#: php/class-contextual-help.php:55 php/class-contextual-help.php:81
|
322 |
#: php/class-contextual-help.php:122
|
459 |
"Here are some links to websites which host a large number of snippets that "
|
460 |
"you can add to your site:"
|
461 |
msgstr ""
|
462 |
+
"Qui ci sono alcuni link a siti web che ospitano un gran numero di snippet che "
|
463 |
+
"puoi aggiungere al tuo sito:"
|
464 |
|
465 |
#: php/class-contextual-help.php:103
|
466 |
msgid ""
|
561 |
"This is a code snippets export file generated by the Code Snippets WordPress "
|
562 |
"plugin."
|
563 |
msgstr ""
|
564 |
+
"Questo è un file di esportazione di snippet generato dal plugin Code Snippets "
|
565 |
+
"per WordPress."
|
566 |
|
567 |
#: php/class-export.php:89
|
568 |
msgid "To import these snippets a WordPress site follow these steps:"
|
569 |
+
msgstr "Per importare questi snippet in un sito WordPress segui questi passaggi:"
|
570 |
|
571 |
#: php/class-export.php:90
|
572 |
msgid "1. Log in to that site as an administrator."
|
573 |
+
msgstr "1. Accedere a tale sito come amministratore."
|
574 |
|
575 |
#: php/class-export.php:91
|
576 |
msgid ""
|
577 |
"2. Install the Code Snippets plugin using the directions provided at the "
|
578 |
"above link."
|
579 |
+
msgstr "2. Installa il plug-in Code Snippets utilizzando le indicazioni fornite nel "
|
580 |
+
"link sopra."
|
581 |
|
582 |
#: php/class-export.php:92
|
583 |
msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
|
584 |
+
msgstr "3. Vai a 'Strumenti: Importa' nel pannello di amministrazione di WordPress."
|
585 |
|
586 |
#: php/class-export.php:93
|
587 |
msgid "4. Click on the \"Code Snippets\" importer in the list"
|
588 |
+
msgstr "4. Fare clic su Importa nelle opzioni di \"Code Snippets\""
|
589 |
|
590 |
#: php/class-export.php:94
|
591 |
msgid "5. Upload this file using the form provided on that page."
|
592 |
+
msgstr "5. Caricare il file utilizzando il modulo fornito nella pagina."
|
593 |
|
594 |
#: php/class-export.php:95
|
595 |
msgid ""
|
596 |
"6. Code Snippets will then import all of the snippets and associated "
|
597 |
"information contained in this file into your site."
|
598 |
msgstr ""
|
599 |
+
"6. Code Snippets importerà tutti gli snippet e associerà"
|
600 |
+
"le informazioni contenute all'interno del file nel sito."
|
601 |
|
602 |
#: php/class-export.php:96
|
603 |
#, fuzzy
|
660 |
#: php/class-list-table.php:161 php/class-list-table.php:236
|
661 |
#: php/views/edit.php:119
|
662 |
msgid "'Cancel' to stop, 'OK' to delete."
|
663 |
+
msgstr "'Cancella' per fermare, 'OK' per eliminare."
|
664 |
|
665 |
#: php/class-list-table.php:168
|
666 |
#, fuzzy
|
670 |
|
671 |
#: php/class-list-table.php:170
|
672 |
msgid "Network Only"
|
673 |
+
msgstr "Solo Rete"
|
674 |
|
675 |
#: php/class-list-table.php:255
|
676 |
#, php-format
|
677 |
msgid "Untitled #%d"
|
678 |
+
msgstr "Senza Titolo #%d"
|
679 |
|
680 |
#: php/class-list-table.php:278
|
681 |
msgid "Shared on Network"
|
682 |
+
msgstr "Condiviso in Rete"
|
683 |
|
684 |
#: php/class-list-table.php:339 php/views/edit.php:48
|
685 |
msgid "Name"
|
723 |
|
724 |
#: php/class-list-table.php:494
|
725 |
msgid "Show all tags"
|
726 |
+
msgstr "Mostra tutti i tag"
|
727 |
|
728 |
#: php/class-list-table.php:508
|
729 |
msgid "Filter"
|
735 |
|
736 |
#: php/class-list-table.php:702
|
737 |
msgid "Whoops, it looks like no snippets could be found."
|
738 |
+
msgstr "Whoops, sembra che non si trovino gli snippet."
|
739 |
|
740 |
#: php/class-list-table.php:706
|
741 |
msgid "Perhaps you would like to add a new one?"
|
742 |
+
msgstr "Forse si desidera aggiungerne uno nuovo?"
|
743 |
|
744 |
#: php/class-list-table.php:985
|
745 |
msgid "Search results"
|
762 |
|
763 |
#: php/settings/settings-fields.php:42
|
764 |
msgid "Activate by Default"
|
765 |
+
msgstr "Attivo di Default"
|
766 |
|
767 |
#: php/settings/settings-fields.php:44
|
768 |
msgid ""
|
769 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
770 |
msgstr ""
|
771 |
+
"Imposta il pulsante 'Salva e Attiva' come azione predefinita quando salvi uno snippet."
|
772 |
|
773 |
#: php/settings/settings-fields.php:49
|
774 |
msgid "Enable Scope Selector"
|
775 |
+
msgstr "Abilita Selettore di Scopo"
|
776 |
|
777 |
#: php/settings/settings-fields.php:51
|
778 |
msgid "Enable the scope selector when editing a snippet"
|
779 |
+
msgstr "Abilitare il selettore di scopo durante la modifica di uno snippet"
|
780 |
|
781 |
#: php/settings/settings-fields.php:56
|
782 |
#, fuzzy
|
783 |
#| msgid "Code Snippets"
|
784 |
msgid "Enable Snippet Tags"
|
785 |
+
msgstr "Abilita Snippet Tags"
|
786 |
|
787 |
#: php/settings/settings-fields.php:58
|
788 |
msgid "Show snippet tags on admin pages"
|
789 |
+
msgstr "Mostra i tag degli snippet nelle pagine di amministrazione"
|
790 |
|
791 |
#: php/settings/settings-fields.php:63
|
792 |
msgid "Enable Snippet Descriptions"
|
793 |
+
msgstr "Abilita Descrizione Snippet"
|
794 |
|
795 |
#: php/settings/settings-fields.php:65
|
796 |
msgid "Show snippet descriptions on admin pages"
|
797 |
+
msgstr "Mostra le descrizioni nelle pagine di amministrazione"
|
798 |
|
799 |
#: php/settings/settings-fields.php:69
|
800 |
msgid "Disable shortcode syntax highlighter"
|
801 |
+
msgstr "Disattivare l'evidenziatore di shortcode"
|
802 |
|
803 |
#: php/settings/settings-fields.php:71
|
804 |
msgid ""
|
805 |
"Disable the syntax highlighting for the [code_snippet] shortcode on the "
|
806 |
"front-end"
|
807 |
msgstr ""
|
808 |
+
"Disattivare l'evidenziazione per lo shortcode [code_snippet] sul "
|
809 |
+
"front-end"
|
810 |
|
811 |
#: php/settings/settings-fields.php:80
|
812 |
msgid "Row Height"
|
813 |
+
msgstr "Altezza Riga"
|
814 |
|
815 |
#: php/settings/settings-fields.php:82
|
816 |
msgid "rows"
|
817 |
+
msgstr "right"
|
818 |
|
819 |
#: php/settings/settings-fields.php:88
|
820 |
msgid "Use Full Editor"
|
821 |
+
msgstr "Usa Editor Completo"
|
822 |
|
823 |
#: php/settings/settings-fields.php:90
|
824 |
msgid "Enable all features of the visual editor"
|
825 |
+
msgstr "Abilitare tutte le funzionalità dell'editor visivo"
|
826 |
|
827 |
#: php/settings/settings-fields.php:95
|
828 |
msgid "Media Buttons"
|
829 |
+
msgstr "Bottoni Media"
|
830 |
|
831 |
#: php/settings/settings-fields.php:97
|
832 |
msgid "Enable the add media buttons"
|
833 |
+
msgstr "Attiva i pulsanti media"
|
834 |
|
835 |
#: php/settings/settings-fields.php:106
|
836 |
msgid "Theme"
|
837 |
+
msgstr "Tema"
|
838 |
|
839 |
#: php/settings/settings-fields.php:113
|
840 |
msgid "Indent With Tabs"
|
841 |
+
msgstr "Rientro con tabulazioni"
|
842 |
|
843 |
#: php/settings/settings-fields.php:115
|
844 |
msgid "Use hard tabs (not spaces) for indentation."
|
845 |
+
msgstr "Utilizzare tabulazioni rigide (non spazi) per il rientro."
|
846 |
|
847 |
#: php/settings/settings-fields.php:121
|
848 |
msgid "Tab Size"
|
849 |
+
msgstr "Grandezza tabulazioni"
|
850 |
|
851 |
#: php/settings/settings-fields.php:123
|
852 |
msgid "The width of a tab character."
|
853 |
+
msgstr "Larghezza di una tabulazione."
|
854 |
|
855 |
#: php/settings/settings-fields.php:130
|
856 |
msgid "Indent Unit"
|
857 |
+
msgstr "Unità del Rientro"
|
858 |
|
859 |
#: php/settings/settings-fields.php:132
|
860 |
msgid "How many spaces a block should be indented."
|
861 |
+
msgstr "Quanti spazi indentare un blocco."
|
862 |
|
863 |
#: php/settings/settings-fields.php:139
|
864 |
msgid "Wrap Lines"
|
865 |
+
msgstr "Linee a capo"
|
866 |
|
867 |
#: php/settings/settings-fields.php:141
|
868 |
msgid "Whether the editor should scroll or wrap for long lines."
|
869 |
+
msgstr "Se l'editor deve scorrere o andare a capo per right lunghe."
|
870 |
|
871 |
#: php/settings/settings-fields.php:147
|
872 |
msgid "Line Numbers"
|
873 |
+
msgstr "Numeri di riga"
|
874 |
|
875 |
#: php/settings/settings-fields.php:149
|
876 |
msgid "Show line numbers to the left of the editor."
|
877 |
+
msgstr "Mostra i numeri di riga a sinistra dell'editor."
|
878 |
|
879 |
#: php/settings/settings-fields.php:155
|
880 |
msgid "Auto Close Brackets"
|
881 |
+
msgstr "Chiusura Automatica Parentesi"
|
882 |
|
883 |
#: php/settings/settings-fields.php:157
|
884 |
msgid "Auto-close brackets and quotes when typed."
|
885 |
+
msgstr "Chiusura automatica di parentesi e virgolette durante la scrittura."
|
886 |
|
887 |
#: php/settings/settings-fields.php:163
|
888 |
msgid "Highlight Selection Matches"
|
889 |
+
msgstr "Evidenziare Istanze Selezionate"
|
890 |
|
891 |
#: php/settings/settings-fields.php:164
|
892 |
msgid "Highlight all instances of a currently selected word."
|
893 |
+
msgstr "Evidenziare tutte le istanze di una parola attualmente selezionata."
|
894 |
|
895 |
#: php/settings/settings.php:68
|
896 |
msgid "General"
|
897 |
+
msgstr "Generale"
|
898 |
|
899 |
#: php/settings/settings.php:69
|
900 |
#, fuzzy
|
901 |
#| msgid "Description"
|
902 |
msgid "Description Editor"
|
903 |
+
msgstr "Descrizione Editor"
|
904 |
|
905 |
#: php/settings/settings.php:70
|
906 |
msgid "Code Editor"
|
907 |
+
msgstr "Editor Codice"
|
908 |
|
909 |
#: php/settings/settings.php:119
|
910 |
msgid "Editor Preview"
|
911 |
+
msgstr "Anteprima Editor"
|
912 |
|
913 |
#: php/settings/settings.php:176
|
914 |
msgid "Settings saved."
|
915 |
+
msgstr "Configurazione salvata."
|
916 |
|
917 |
#: php/views/edit.php:28 php/views/manage.php:22
|
918 |
msgctxt "snippet"
|
921 |
|
922 |
#: php/views/edit.php:49
|
923 |
msgid "Enter title here"
|
924 |
+
msgstr "Inserisci il titolo qui"
|
925 |
|
926 |
#: php/views/edit.php:54
|
927 |
msgid "Code"
|
languages/code-snippets.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Code Snippets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
|
17 |
-
#: code-snippets.php:16, php/admin-menus/class-import-menu.php:
|
18 |
msgid "Code Snippets"
|
19 |
msgstr ""
|
20 |
|
@@ -27,11 +27,11 @@ msgid "An easy, clean and simple way to run code snippets on your site. No need
|
|
27 |
msgstr ""
|
28 |
|
29 |
#: code-snippets.php:19
|
30 |
-
msgid "
|
31 |
msgstr ""
|
32 |
|
33 |
#: code-snippets.php:20
|
34 |
-
msgid "https://
|
35 |
msgstr ""
|
36 |
|
37 |
#: php/class-admin.php:68, php/class-admin.php:129, php/admin-menus/class-manage-menu.php:23, php/admin-menus/class-manage-menu.php:52, php/admin-menus/class-manage-menu.php:91, php/views/manage.php:21
|
@@ -224,207 +224,267 @@ msgstr ""
|
|
224 |
msgid "Snippets per page"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: php/class-list-table.php:
|
228 |
msgid "Network Active"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: php/class-list-table.php:
|
232 |
msgid "Network Only"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: php/class-list-table.php:
|
236 |
msgid "Edit"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: php/class-list-table.php:
|
240 |
msgid "Clone"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: php/class-list-table.php:
|
244 |
msgid "Export"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: php/class-list-table.php:
|
248 |
msgid "Delete"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: php/class-list-table.php:
|
252 |
msgid "You are about to permanently delete the selected item."
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: php/class-list-table.php:
|
256 |
msgid "'Cancel' to stop, 'OK' to delete."
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: php/class-list-table.php:
|
260 |
msgid "Run Once"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: php/class-list-table.php:
|
264 |
msgid "Network Deactivate"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: php/class-list-table.php:
|
268 |
msgid "Network Activate"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: php/class-list-table.php:
|
272 |
msgid "Deactivate"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: php/class-list-table.php:
|
276 |
msgid "Activate"
|
277 |
msgstr ""
|
278 |
|
279 |
#. translators: %d: snippet identifier
|
280 |
-
#: php/class-list-table.php:
|
281 |
msgid "Untitled #%d"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: php/class-list-table.php:
|
285 |
msgid "Shared on Network"
|
286 |
msgstr ""
|
287 |
|
288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
msgid "Name"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: php/class-list-table.php:
|
293 |
msgid "ID"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: php/class-list-table.php:
|
297 |
msgid "Description"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: php/class-list-table.php:
|
301 |
msgid "Tags"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: php/class-list-table.php:
|
|
|
|
|
|
|
|
|
305 |
msgid "Priority"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: php/class-list-table.php:
|
309 |
msgid "Download"
|
310 |
msgstr ""
|
311 |
|
312 |
#. translators: %s: total number of snippets
|
313 |
-
#: php/class-list-table.php:
|
314 |
msgid "All <span class=\"count\">(%s)</span>"
|
315 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
316 |
msgstr[0] ""
|
317 |
msgstr[1] ""
|
318 |
|
319 |
#. translators: %s: total number of active snippets
|
320 |
-
#: php/class-list-table.php:
|
321 |
msgid "Active <span class=\"count\">(%s)</span>"
|
322 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
323 |
msgstr[0] ""
|
324 |
msgstr[1] ""
|
325 |
|
326 |
#. translators: %s: total number of inactive snippets
|
327 |
-
#: php/class-list-table.php:
|
328 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
329 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
330 |
msgstr[0] ""
|
331 |
msgstr[1] ""
|
332 |
|
333 |
#. translators: %s: total number of recently activated snippets
|
334 |
-
#: php/class-list-table.php:
|
335 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
336 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
337 |
msgstr[0] ""
|
338 |
msgstr[1] ""
|
339 |
|
340 |
-
#: php/class-list-table.php:
|
341 |
msgid "Show all tags"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: php/class-list-table.php:
|
345 |
msgid "Filter"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: php/class-list-table.php:
|
349 |
msgid "Clear List"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: php/class-list-table.php:
|
353 |
msgid "No snippets were found matching the current search query. Please enter a new query or use the \"Clear Filters\" button above."
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: php/class-list-table.php:
|
357 |
msgid "It looks like you don't have any snippets."
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: php/class-list-table.php:
|
361 |
msgid "Perhaps you would like to add a new one?"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: php/class-list-table.php:
|
365 |
msgid "Search results"
|
366 |
msgstr ""
|
367 |
|
|
|
|
|
|
|
|
|
|
|
368 |
#. translators: %s: search query
|
369 |
-
#: php/class-list-table.php:
|
370 |
msgid " for “%s”"
|
371 |
msgstr ""
|
372 |
|
373 |
#. translators: %s: tag name
|
374 |
-
#: php/class-list-table.php:
|
375 |
msgid " in tag “%s”"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: php/class-list-table.php:
|
379 |
msgid "Clear Filters"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: php/class-upgrade.php:
|
|
|
|
|
|
|
|
|
383 |
msgid "Example HTML shortcode"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: php/class-upgrade.php:
|
387 |
msgid "write your HTML shortcode content here"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: php/class-upgrade.php:
|
391 |
msgid "This is an example snippet for demonstrating how to add an HTML shortcode."
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: php/class-upgrade.php:
|
395 |
msgid "Example CSS snippet"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: php/class-upgrade.php:
|
399 |
msgid "write your CSS code here"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: php/class-upgrade.php:
|
403 |
msgid "This is an example snippet for demonstrating how to add custom CSS code to your website."
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: php/class-upgrade.php:
|
407 |
msgid "Example JavaScript snippet"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: php/class-upgrade.php:
|
411 |
msgid "write your JavaScript code here"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: php/class-upgrade.php:
|
415 |
msgid "This is an example snippet for demonstrating how to add custom JavaScript code to your website."
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: php/class-upgrade.php:
|
419 |
msgid "Order snippets by name"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: php/class-upgrade.php:
|
423 |
msgid "Order snippets by name by default in the snippets table."
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: php/class-upgrade.php:
|
427 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
msgstr ""
|
429 |
|
430 |
#: php/admin-menus/class-admin-menu.php:124
|
@@ -470,96 +530,96 @@ msgstr ""
|
|
470 |
msgid "If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site."
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: php/admin-menus/class-edit-menu.php:
|
474 |
msgid "Enter a list of tags; separated by commas"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: php/admin-menus/class-edit-menu.php:
|
478 |
msgid "Snippets with a lower priority number will run before those with a higher number."
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: php/admin-menus/class-edit-menu.php:
|
482 |
msgid "Run snippet everywhere"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: php/admin-menus/class-edit-menu.php:
|
486 |
msgid "Only run in administration area"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: php/admin-menus/class-edit-menu.php:
|
490 |
msgid "Only run on site front-end"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: php/admin-menus/class-edit-menu.php:
|
494 |
msgid "Only run once"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: php/admin-menus/class-edit-menu.php:
|
498 |
msgid "Scope"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: php/admin-menus/class-edit-menu.php:
|
502 |
msgid "Sharing Settings"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: php/admin-menus/class-edit-menu.php:
|
506 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
507 |
msgstr ""
|
508 |
|
509 |
#. translators: %d: line of file where error originated
|
510 |
-
#: php/admin-menus/class-edit-menu.php:
|
511 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: php/admin-menus/class-edit-menu.php:
|
515 |
msgid "The snippet has been deactivated due to an error in the code."
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: php/admin-menus/class-edit-menu.php:
|
519 |
msgid "An error occurred when saving the snippet."
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: php/admin-menus/class-edit-menu.php:
|
523 |
msgid "Snippet <strong>added</strong>."
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: php/admin-menus/class-edit-menu.php:
|
527 |
msgid "Snippet <strong>updated</strong>."
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: php/admin-menus/class-edit-menu.php:
|
531 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: php/admin-menus/class-edit-menu.php:
|
535 |
msgid "Snippet <strong>added</strong> and <strong>executed</strong>."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: php/admin-menus/class-edit-menu.php:
|
539 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: php/admin-menus/class-edit-menu.php:
|
543 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: php/admin-menus/class-edit-menu.php:
|
547 |
msgid "Save Changes"
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: php/admin-menus/class-edit-menu.php:
|
551 |
msgid "Save Changes and Execute Once"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: php/admin-menus/class-edit-menu.php:
|
555 |
msgid "Save Changes and Deactivate"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: php/admin-menus/class-edit-menu.php:
|
559 |
msgid "Save Changes and Activate"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: php/admin-menus/class-edit-menu.php:
|
563 |
msgid "You are about to permanently delete this snippet."
|
564 |
msgstr ""
|
565 |
|
@@ -572,20 +632,20 @@ msgstr ""
|
|
572 |
msgid "Import Snippets"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: php/admin-menus/class-import-menu.php:
|
576 |
msgid "Import snippets from a code snippets export file"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: php/admin-menus/class-import-menu.php:
|
580 |
msgid "An error occurred when processing the import files."
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: php/admin-menus/class-import-menu.php:
|
584 |
msgid "No snippets were imported."
|
585 |
msgstr ""
|
586 |
|
587 |
#. translators: 1: amount of snippets imported, 2: link to Snippets menu
|
588 |
-
#: php/admin-menus/class-import-menu.php:
|
589 |
msgid "Successfully imported <strong>%1$d</strong> snippet. <a href=\"%2$s\">Have fun!</a>"
|
590 |
msgid_plural "Successfully imported <strong>%1$d</strong> snippets. <a href=\"%2$s\">Have fun!</a>"
|
591 |
msgstr[0] ""
|
@@ -606,43 +666,47 @@ msgctxt "tools submenu label"
|
|
606 |
msgid "Snippets"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: php/admin-menus/class-manage-menu.php:
|
|
|
|
|
|
|
|
|
610 |
msgid "<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode. <a href=\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: php/admin-menus/class-manage-menu.php:
|
614 |
msgid "Snippet <strong>executed</strong>."
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: php/admin-menus/class-manage-menu.php:
|
618 |
msgid "Snippet <strong>activated</strong>."
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: php/admin-menus/class-manage-menu.php:
|
622 |
msgid "Selected snippets <strong>activated</strong>."
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: php/admin-menus/class-manage-menu.php:
|
626 |
msgid "Snippet <strong>deactivated</strong>."
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: php/admin-menus/class-manage-menu.php:
|
630 |
msgid "Selected snippets <strong>deactivated</strong>."
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: php/admin-menus/class-manage-menu.php:
|
634 |
msgid "Snippet <strong>deleted</strong>."
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: php/admin-menus/class-manage-menu.php:
|
638 |
msgid "Selected snippets <strong>deleted</strong>."
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: php/admin-menus/class-manage-menu.php:
|
642 |
msgid "Snippet <strong>cloned</strong>."
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: php/admin-menus/class-manage-menu.php:
|
646 |
msgid "Selected snippets <strong>cloned</strong>."
|
647 |
msgstr ""
|
648 |
|
@@ -655,34 +719,34 @@ msgstr ""
|
|
655 |
msgid "Snippets Settings"
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: php/admin-menus/class-settings-menu.php:
|
659 |
msgid "All settings have been reset to their defaults."
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: php/admin-menus/class-settings-menu.php:
|
663 |
msgid "Settings"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: php/admin-menus/class-settings-menu.php:
|
667 |
msgctxt "snippets"
|
668 |
msgid "Manage"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: php/admin-menus/class-settings-menu.php:
|
672 |
msgctxt "snippet"
|
673 |
msgid "Add New"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: php/admin-menus/class-settings-menu.php:
|
677 |
msgctxt "snippets"
|
678 |
msgid "Import"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: php/admin-menus/class-settings-menu.php:
|
682 |
msgid "Reset to Default"
|
683 |
msgstr ""
|
684 |
|
685 |
-
#: php/admin-menus/class-settings-menu.php:
|
686 |
msgid "Settings saved."
|
687 |
msgstr ""
|
688 |
|
@@ -864,85 +928,85 @@ msgstr ""
|
|
864 |
msgid "Save Snippet and Activate"
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: php/views/edit.php:
|
868 |
msgid "Code"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: php/views/edit.php:
|
872 |
msgctxt "help tooltip"
|
873 |
msgid "?"
|
874 |
msgstr ""
|
875 |
|
876 |
-
#: php/views/edit.php:
|
877 |
msgctxt "keyboard key"
|
878 |
msgid "Cmd"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: php/views/edit.php:
|
882 |
msgctxt "keyboard key"
|
883 |
msgid "Ctrl"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: php/views/edit.php:
|
887 |
msgctxt "keyboard key"
|
888 |
msgid "Shift"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: php/views/edit.php:
|
892 |
msgctxt "keyboard key"
|
893 |
msgid "Option"
|
894 |
msgstr ""
|
895 |
|
896 |
-
#: php/views/edit.php:
|
897 |
msgctxt "keyboard key"
|
898 |
msgid "Alt"
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: php/views/edit.php:
|
902 |
msgctxt "keyboard key"
|
903 |
msgid "F"
|
904 |
msgstr ""
|
905 |
|
906 |
-
#: php/views/edit.php:
|
907 |
msgctxt "keyboard key"
|
908 |
msgid "G"
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: php/views/edit.php:
|
912 |
msgctxt "keyboard key"
|
913 |
msgid "R"
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: php/views/edit.php:
|
917 |
msgctxt "keyboard key"
|
918 |
msgid "S"
|
919 |
msgstr ""
|
920 |
|
921 |
-
#: php/views/edit.php:
|
922 |
msgid "Save changes"
|
923 |
msgstr ""
|
924 |
|
925 |
-
#: php/views/edit.php:
|
926 |
msgid "Begin searching"
|
927 |
msgstr ""
|
928 |
|
929 |
-
#: php/views/edit.php:
|
930 |
msgid "Find next"
|
931 |
msgstr ""
|
932 |
|
933 |
-
#: php/views/edit.php:
|
934 |
msgid "Find previous"
|
935 |
msgstr ""
|
936 |
|
937 |
-
#: php/views/edit.php:
|
938 |
msgid "Replace"
|
939 |
msgstr ""
|
940 |
|
941 |
-
#: php/views/edit.php:
|
942 |
msgid "Replace all"
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: php/views/edit.php:
|
946 |
msgid "Persistent search"
|
947 |
msgstr ""
|
948 |
|
@@ -955,44 +1019,44 @@ msgstr ""
|
|
955 |
msgid "Afterwards, you will need to visit the <a href=\"%s\">All Snippets</a> page to activate the imported snippets."
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: php/views/import.php:
|
959 |
msgid "Duplicate Snippets"
|
960 |
msgstr ""
|
961 |
|
962 |
-
#: php/views/import.php:
|
963 |
msgid "What should happen if an existing snippet is found with an identical name to an imported snippet?"
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: php/views/import.php:
|
967 |
msgid "Ignore any duplicate snippets: import all snippets from the file regardless and leave all existing snippets unchanged."
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: php/views/import.php:
|
971 |
msgid "Replace any existing snippets with a newly imported snippet of the same name."
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: php/views/import.php:
|
975 |
msgid "Do not import any duplicate snippets; leave all existing snippets unchanged."
|
976 |
msgstr ""
|
977 |
|
978 |
-
#: php/views/import.php:
|
979 |
msgid "Upload Files"
|
980 |
msgstr ""
|
981 |
|
982 |
-
#: php/views/import.php:
|
983 |
msgid "Choose one or more Code Snippets (.xml or .json) files to upload, then click \"Upload files and import\"."
|
984 |
msgstr ""
|
985 |
|
986 |
-
#: php/views/import.php:
|
987 |
msgid "Choose files from your computer:"
|
988 |
msgstr ""
|
989 |
|
990 |
#. translators: %s: size in bytes
|
991 |
-
#: php/views/import.php:
|
992 |
msgid "(Maximum size: %s)"
|
993 |
msgstr ""
|
994 |
|
995 |
-
#: php/views/import.php:
|
996 |
msgid "Upload files and import"
|
997 |
msgstr ""
|
998 |
|
1 |
+
# Copyright (C) 2020 Code Snippets
|
2 |
# This file is distributed under the same license as the Code Snippets package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
|
17 |
+
#: code-snippets.php:16, php/admin-menus/class-import-menu.php:104
|
18 |
msgid "Code Snippets"
|
19 |
msgstr ""
|
20 |
|
27 |
msgstr ""
|
28 |
|
29 |
#: code-snippets.php:19
|
30 |
+
msgid "Code Snippets Pro"
|
31 |
msgstr ""
|
32 |
|
33 |
#: code-snippets.php:20
|
34 |
+
msgid "https://codesnippets.pro"
|
35 |
msgstr ""
|
36 |
|
37 |
#: php/class-admin.php:68, php/class-admin.php:129, php/admin-menus/class-manage-menu.php:23, php/admin-menus/class-manage-menu.php:52, php/admin-menus/class-manage-menu.php:91, php/views/manage.php:21
|
224 |
msgid "Snippets per page"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: php/class-list-table.php:153
|
228 |
msgid "Network Active"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: php/class-list-table.php:155
|
232 |
msgid "Network Only"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: php/class-list-table.php:161
|
236 |
msgid "Edit"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: php/class-list-table.php:162, php/class-list-table.php:413
|
240 |
msgid "Clone"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: php/class-list-table.php:163, php/class-list-table.php:415, php/admin-menus/class-edit-menu.php:635
|
244 |
msgid "Export"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: php/class-list-table.php:172, php/class-list-table.php:416, php/admin-menus/class-edit-menu.php:636
|
248 |
msgid "Delete"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: php/class-list-table.php:176
|
252 |
msgid "You are about to permanently delete the selected item."
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: php/class-list-table.php:177, php/admin-menus/class-edit-menu.php:664
|
256 |
msgid "'Cancel' to stop, 'OK' to delete."
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: php/class-list-table.php:201
|
260 |
msgid "Run Once"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: php/class-list-table.php:206, php/class-list-table.php:412
|
264 |
msgid "Network Deactivate"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: php/class-list-table.php:206, php/class-list-table.php:411
|
268 |
msgid "Network Activate"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: php/class-list-table.php:207, php/class-list-table.php:412, php/admin-menus/class-manage-menu.php:141, php/views/edit.php:104
|
272 |
msgid "Deactivate"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: php/class-list-table.php:207, php/class-list-table.php:411, php/admin-menus/class-manage-menu.php:140, php/views/edit.php:110
|
276 |
msgid "Activate"
|
277 |
msgstr ""
|
278 |
|
279 |
#. translators: %d: snippet identifier
|
280 |
+
#: php/class-list-table.php:230
|
281 |
msgid "Untitled #%d"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: php/class-list-table.php:254
|
285 |
msgid "Shared on Network"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#. translators: %s: Human-readable time difference.
|
289 |
+
#: php/class-list-table.php:343
|
290 |
+
msgid "%s ago"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: php/class-list-table.php:345
|
294 |
+
msgid "Y/m/d"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#. translators: 1: date format, 2: time format
|
298 |
+
#: php/class-list-table.php:349
|
299 |
+
msgctxt "date and time format"
|
300 |
+
msgid "%1$s \a\t %2$s"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: php/class-list-table.php:363, php/views/edit.php:80
|
304 |
msgid "Name"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: php/class-list-table.php:364
|
308 |
msgid "ID"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: php/class-list-table.php:365, php/admin-menus/class-edit-menu.php:336
|
312 |
msgid "Description"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: php/class-list-table.php:366, php/admin-menus/class-edit-menu.php:369
|
316 |
msgid "Tags"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: php/class-list-table.php:367
|
320 |
+
msgid "Modified"
|
321 |
+
msgstr ""
|
322 |
+
|
323 |
+
#: php/class-list-table.php:368, php/admin-menus/class-edit-menu.php:388
|
324 |
msgid "Priority"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: php/class-list-table.php:414, php/admin-menus/class-edit-menu.php:632
|
328 |
msgid "Download"
|
329 |
msgstr ""
|
330 |
|
331 |
#. translators: %s: total number of snippets
|
332 |
+
#: php/class-list-table.php:458
|
333 |
msgid "All <span class=\"count\">(%s)</span>"
|
334 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
335 |
msgstr[0] ""
|
336 |
msgstr[1] ""
|
337 |
|
338 |
#. translators: %s: total number of active snippets
|
339 |
+
#: php/class-list-table.php:461
|
340 |
msgid "Active <span class=\"count\">(%s)</span>"
|
341 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
342 |
msgstr[0] ""
|
343 |
msgstr[1] ""
|
344 |
|
345 |
#. translators: %s: total number of inactive snippets
|
346 |
+
#: php/class-list-table.php:464
|
347 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
348 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
349 |
msgstr[0] ""
|
350 |
msgstr[1] ""
|
351 |
|
352 |
#. translators: %s: total number of recently activated snippets
|
353 |
+
#: php/class-list-table.php:467
|
354 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
355 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
356 |
msgstr[0] ""
|
357 |
msgstr[1] ""
|
358 |
|
359 |
+
#: php/class-list-table.php:536
|
360 |
msgid "Show all tags"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: php/class-list-table.php:550
|
364 |
msgid "Filter"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: php/class-list-table.php:558
|
368 |
msgid "Clear List"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: php/class-list-table.php:783
|
372 |
msgid "No snippets were found matching the current search query. Please enter a new query or use the \"Clear Filters\" button above."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: php/class-list-table.php:786
|
376 |
msgid "It looks like you don't have any snippets."
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: php/class-list-table.php:790
|
380 |
msgid "Perhaps you would like to add a new one?"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: php/class-list-table.php:1120
|
384 |
msgid "Search results"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#. translators: 1: search query, 2: line number
|
388 |
+
#: php/class-list-table.php:1128
|
389 |
+
msgid " for “%1$s” on line %2$d"
|
390 |
+
msgstr ""
|
391 |
+
|
392 |
#. translators: %s: search query
|
393 |
+
#: php/class-list-table.php:1135
|
394 |
msgid " for “%s”"
|
395 |
msgstr ""
|
396 |
|
397 |
#. translators: %s: tag name
|
398 |
+
#: php/class-list-table.php:1141
|
399 |
msgid " in tag “%s”"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: php/class-list-table.php:1149
|
403 |
msgid "Clear Filters"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: php/class-upgrade.php:149
|
407 |
+
msgid "You can remove it, or edit it to add your own content."
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: php/class-upgrade.php:154
|
411 |
msgid "Example HTML shortcode"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: php/class-upgrade.php:157
|
415 |
msgid "write your HTML shortcode content here"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: php/class-upgrade.php:159
|
419 |
msgid "This is an example snippet for demonstrating how to add an HTML shortcode."
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: php/class-upgrade.php:164
|
423 |
msgid "Example CSS snippet"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: php/class-upgrade.php:167
|
427 |
msgid "write your CSS code here"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: php/class-upgrade.php:169
|
431 |
msgid "This is an example snippet for demonstrating how to add custom CSS code to your website."
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: php/class-upgrade.php:175
|
435 |
msgid "Example JavaScript snippet"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: php/class-upgrade.php:178
|
439 |
msgid "write your JavaScript code here"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: php/class-upgrade.php:180
|
443 |
msgid "This is an example snippet for demonstrating how to add custom JavaScript code to your website."
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: php/class-upgrade.php:186
|
447 |
msgid "Order snippets by name"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: php/class-upgrade.php:188
|
451 |
msgid "Order snippets by name by default in the snippets table."
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: php/class-upgrade.php:194
|
455 |
+
msgid "Order snippets by date"
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: php/class-upgrade.php:197
|
459 |
+
msgid "Order snippets by last modification date by default in the snippets table."
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: php/class-validator.php:152
|
463 |
+
msgid "Parse error: syntax error, unexpected end of snippet."
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#. translators: %s: PHP function name
|
467 |
+
#: php/class-validator.php:167
|
468 |
+
msgid "Cannot redeclare function %s."
|
469 |
+
msgstr ""
|
470 |
+
|
471 |
+
#. translators: %s: PHP class name
|
472 |
+
#: php/class-validator.php:171
|
473 |
+
msgid "Cannot redeclare class %s."
|
474 |
+
msgstr ""
|
475 |
+
|
476 |
+
#. translators: %s: PHP interface name
|
477 |
+
#: php/class-validator.php:175
|
478 |
+
msgid "Cannot redeclare interface %s."
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#. translators: %s: PHP identifier name
|
482 |
+
#: php/class-validator.php:179
|
483 |
+
msgid "Cannot redeclare %s."
|
484 |
+
msgstr ""
|
485 |
+
|
486 |
+
#: php/class-validator.php:216
|
487 |
+
msgid "Parse error: syntax error, unexpected end of snippet"
|
488 |
msgstr ""
|
489 |
|
490 |
#: php/admin-menus/class-admin-menu.php:124
|
530 |
msgid "If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site."
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: php/admin-menus/class-edit-menu.php:374
|
534 |
msgid "Enter a list of tags; separated by commas"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: php/admin-menus/class-edit-menu.php:387
|
538 |
msgid "Snippets with a lower priority number will run before those with a higher number."
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: php/admin-menus/class-edit-menu.php:405
|
542 |
msgid "Run snippet everywhere"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: php/admin-menus/class-edit-menu.php:406
|
546 |
msgid "Only run in administration area"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: php/admin-menus/class-edit-menu.php:407
|
550 |
msgid "Only run on site front-end"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: php/admin-menus/class-edit-menu.php:408
|
554 |
msgid "Only run once"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: php/admin-menus/class-edit-menu.php:411
|
558 |
msgid "Scope"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: php/admin-menus/class-edit-menu.php:432
|
562 |
msgid "Sharing Settings"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: php/admin-menus/class-edit-menu.php:436
|
566 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
567 |
msgstr ""
|
568 |
|
569 |
#. translators: %d: line of file where error originated
|
570 |
+
#: php/admin-menus/class-edit-menu.php:503
|
571 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: php/admin-menus/class-edit-menu.php:508
|
575 |
msgid "The snippet has been deactivated due to an error in the code."
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: php/admin-menus/class-edit-menu.php:515
|
579 |
msgid "An error occurred when saving the snippet."
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: php/admin-menus/class-edit-menu.php:521
|
583 |
msgid "Snippet <strong>added</strong>."
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: php/admin-menus/class-edit-menu.php:522
|
587 |
msgid "Snippet <strong>updated</strong>."
|
588 |
msgstr ""
|
589 |
|
590 |
+
#: php/admin-menus/class-edit-menu.php:523
|
591 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: php/admin-menus/class-edit-menu.php:524
|
595 |
msgid "Snippet <strong>added</strong> and <strong>executed</strong>."
|
596 |
msgstr ""
|
597 |
|
598 |
+
#: php/admin-menus/class-edit-menu.php:525
|
599 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
600 |
msgstr ""
|
601 |
|
602 |
+
#: php/admin-menus/class-edit-menu.php:526
|
603 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: php/admin-menus/class-edit-menu.php:608, php/views/edit.php:90
|
607 |
msgid "Save Changes"
|
608 |
msgstr ""
|
609 |
|
610 |
+
#: php/admin-menus/class-edit-menu.php:612
|
611 |
msgid "Save Changes and Execute Once"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: php/admin-menus/class-edit-menu.php:617
|
615 |
msgid "Save Changes and Deactivate"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: php/admin-menus/class-edit-menu.php:619
|
619 |
msgid "Save Changes and Activate"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: php/admin-menus/class-edit-menu.php:663
|
623 |
msgid "You are about to permanently delete this snippet."
|
624 |
msgstr ""
|
625 |
|
632 |
msgid "Import Snippets"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: php/admin-menus/class-import-menu.php:105
|
636 |
msgid "Import snippets from a code snippets export file"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: php/admin-menus/class-import-menu.php:117
|
640 |
msgid "An error occurred when processing the import files."
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: php/admin-menus/class-import-menu.php:127
|
644 |
msgid "No snippets were imported."
|
645 |
msgstr ""
|
646 |
|
647 |
#. translators: 1: amount of snippets imported, 2: link to Snippets menu
|
648 |
+
#: php/admin-menus/class-import-menu.php:133
|
649 |
msgid "Successfully imported <strong>%1$d</strong> snippet. <a href=\"%2$s\">Have fun!</a>"
|
650 |
msgid_plural "Successfully imported <strong>%1$d</strong> snippets. <a href=\"%2$s\">Have fun!</a>"
|
651 |
msgstr[0] ""
|
666 |
msgid "Snippets"
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: php/admin-menus/class-manage-menu.php:142
|
670 |
+
msgid "An error occurred when attempting to activate"
|
671 |
+
msgstr ""
|
672 |
+
|
673 |
+
#: php/admin-menus/class-manage-menu.php:155
|
674 |
msgid "<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode. <a href=\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: php/admin-menus/class-manage-menu.php:161
|
678 |
msgid "Snippet <strong>executed</strong>."
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: php/admin-menus/class-manage-menu.php:162
|
682 |
msgid "Snippet <strong>activated</strong>."
|
683 |
msgstr ""
|
684 |
|
685 |
+
#: php/admin-menus/class-manage-menu.php:163
|
686 |
msgid "Selected snippets <strong>activated</strong>."
|
687 |
msgstr ""
|
688 |
|
689 |
+
#: php/admin-menus/class-manage-menu.php:164
|
690 |
msgid "Snippet <strong>deactivated</strong>."
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: php/admin-menus/class-manage-menu.php:165
|
694 |
msgid "Selected snippets <strong>deactivated</strong>."
|
695 |
msgstr ""
|
696 |
|
697 |
+
#: php/admin-menus/class-manage-menu.php:166
|
698 |
msgid "Snippet <strong>deleted</strong>."
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: php/admin-menus/class-manage-menu.php:167
|
702 |
msgid "Selected snippets <strong>deleted</strong>."
|
703 |
msgstr ""
|
704 |
|
705 |
+
#: php/admin-menus/class-manage-menu.php:168
|
706 |
msgid "Snippet <strong>cloned</strong>."
|
707 |
msgstr ""
|
708 |
|
709 |
+
#: php/admin-menus/class-manage-menu.php:169
|
710 |
msgid "Selected snippets <strong>cloned</strong>."
|
711 |
msgstr ""
|
712 |
|
719 |
msgid "Snippets Settings"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: php/admin-menus/class-settings-menu.php:38
|
723 |
msgid "All settings have been reset to their defaults."
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: php/admin-menus/class-settings-menu.php:82
|
727 |
msgid "Settings"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: php/admin-menus/class-settings-menu.php:87, php/views/edit.php:47, php/views/import.php:26
|
731 |
msgctxt "snippets"
|
732 |
msgid "Manage"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: php/admin-menus/class-settings-menu.php:92, php/views/edit.php:36, php/views/import.php:31, php/views/manage.php:24
|
736 |
msgctxt "snippet"
|
737 |
msgid "Add New"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: php/admin-menus/class-settings-menu.php:97, php/views/edit.php:52, php/views/manage.php:29
|
741 |
msgctxt "snippets"
|
742 |
msgid "Import"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: php/admin-menus/class-settings-menu.php:118
|
746 |
msgid "Reset to Default"
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: php/admin-menus/class-settings-menu.php:144, php/settings/settings.php:209
|
750 |
msgid "Settings saved."
|
751 |
msgstr ""
|
752 |
|
928 |
msgid "Save Snippet and Activate"
|
929 |
msgstr ""
|
930 |
|
931 |
+
#: php/views/edit.php:127
|
932 |
msgid "Code"
|
933 |
msgstr ""
|
934 |
|
935 |
+
#: php/views/edit.php:140
|
936 |
msgctxt "help tooltip"
|
937 |
msgid "?"
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: php/views/edit.php:145
|
941 |
msgctxt "keyboard key"
|
942 |
msgid "Cmd"
|
943 |
msgstr ""
|
944 |
|
945 |
+
#: php/views/edit.php:146
|
946 |
msgctxt "keyboard key"
|
947 |
msgid "Ctrl"
|
948 |
msgstr ""
|
949 |
|
950 |
+
#: php/views/edit.php:147
|
951 |
msgctxt "keyboard key"
|
952 |
msgid "Shift"
|
953 |
msgstr ""
|
954 |
|
955 |
+
#: php/views/edit.php:148
|
956 |
msgctxt "keyboard key"
|
957 |
msgid "Option"
|
958 |
msgstr ""
|
959 |
|
960 |
+
#: php/views/edit.php:149
|
961 |
msgctxt "keyboard key"
|
962 |
msgid "Alt"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: php/views/edit.php:150
|
966 |
msgctxt "keyboard key"
|
967 |
msgid "F"
|
968 |
msgstr ""
|
969 |
|
970 |
+
#: php/views/edit.php:151
|
971 |
msgctxt "keyboard key"
|
972 |
msgid "G"
|
973 |
msgstr ""
|
974 |
|
975 |
+
#: php/views/edit.php:152
|
976 |
msgctxt "keyboard key"
|
977 |
msgid "R"
|
978 |
msgstr ""
|
979 |
|
980 |
+
#: php/views/edit.php:153
|
981 |
msgctxt "keyboard key"
|
982 |
msgid "S"
|
983 |
msgstr ""
|
984 |
|
985 |
+
#: php/views/edit.php:161
|
986 |
msgid "Save changes"
|
987 |
msgstr ""
|
988 |
|
989 |
+
#: php/views/edit.php:168
|
990 |
msgid "Begin searching"
|
991 |
msgstr ""
|
992 |
|
993 |
+
#: php/views/edit.php:175
|
994 |
msgid "Find next"
|
995 |
msgstr ""
|
996 |
|
997 |
+
#: php/views/edit.php:181
|
998 |
msgid "Find previous"
|
999 |
msgstr ""
|
1000 |
|
1001 |
+
#: php/views/edit.php:187
|
1002 |
msgid "Replace"
|
1003 |
msgstr ""
|
1004 |
|
1005 |
+
#: php/views/edit.php:193
|
1006 |
msgid "Replace all"
|
1007 |
msgstr ""
|
1008 |
|
1009 |
+
#: php/views/edit.php:199
|
1010 |
msgid "Persistent search"
|
1011 |
msgstr ""
|
1012 |
|
1019 |
msgid "Afterwards, you will need to visit the <a href=\"%s\">All Snippets</a> page to activate the imported snippets."
|
1020 |
msgstr ""
|
1021 |
|
1022 |
+
#: php/views/import.php:60
|
1023 |
msgid "Duplicate Snippets"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
+
#: php/views/import.php:63
|
1027 |
msgid "What should happen if an existing snippet is found with an identical name to an imported snippet?"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: php/views/import.php:70
|
1031 |
msgid "Ignore any duplicate snippets: import all snippets from the file regardless and leave all existing snippets unchanged."
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#: php/views/import.php:77
|
1035 |
msgid "Replace any existing snippets with a newly imported snippet of the same name."
|
1036 |
msgstr ""
|
1037 |
|
1038 |
+
#: php/views/import.php:84
|
1039 |
msgid "Do not import any duplicate snippets; leave all existing snippets unchanged."
|
1040 |
msgstr ""
|
1041 |
|
1042 |
+
#: php/views/import.php:89
|
1043 |
msgid "Upload Files"
|
1044 |
msgstr ""
|
1045 |
|
1046 |
+
#: php/views/import.php:92
|
1047 |
msgid "Choose one or more Code Snippets (.xml or .json) files to upload, then click \"Upload files and import\"."
|
1048 |
msgstr ""
|
1049 |
|
1050 |
+
#: php/views/import.php:97
|
1051 |
msgid "Choose files from your computer:"
|
1052 |
msgstr ""
|
1053 |
|
1054 |
#. translators: %s: size in bytes
|
1055 |
+
#: php/views/import.php:100
|
1056 |
msgid "(Maximum size: %s)"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: php/views/import.php:111
|
1060 |
msgid "Upload files and import"
|
1061 |
msgstr ""
|
1062 |
|
license.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Copyright (c) 2012-
|
2 |
|
3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
|
1 |
+
Copyright (c) 2012-2020 Shea Bunge
|
2 |
|
3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
|
php/admin-menus/class-edit-menu.php
CHANGED
@@ -151,7 +151,7 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
151 |
private function unshare_network_snippet( $snippet_id ) {
|
152 |
$shared_snippets = get_site_option( 'shared_network_snippets', array() );
|
153 |
|
154 |
-
if ( ! in_array( $snippet_id, $shared_snippets ) ) {
|
155 |
return;
|
156 |
}
|
157 |
|
@@ -202,7 +202,7 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
202 |
*
|
203 |
* @return bool true if code produces errors
|
204 |
*/
|
205 |
-
private function
|
206 |
|
207 |
if ( empty( $snippet->code ) ) {
|
208 |
return false;
|
@@ -256,7 +256,14 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
256 |
|
257 |
/* Deactivate snippet if code contains errors */
|
258 |
if ( $snippet->active && 'single-use' !== $snippet->scope ) {
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
$snippet->active = 0;
|
261 |
}
|
262 |
}
|
@@ -271,7 +278,7 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
271 |
$shared_snippets = get_site_option( 'shared_network_snippets', array() );
|
272 |
|
273 |
/* Add the snippet ID to the array if it isn't already */
|
274 |
-
if ( ! in_array( $snippet_id, $shared_snippets ) ) {
|
275 |
$shared_snippets[] = $snippet_id;
|
276 |
update_site_option( 'shared_network_snippets', array_values( $shared_snippets ) );
|
277 |
}
|
@@ -425,7 +432,7 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
425 |
<h2 class="screen-reader-text"><?php _e( 'Sharing Settings', 'code-snippets' ); ?></h2>
|
426 |
<label for="snippet_sharing">
|
427 |
<input type="checkbox" name="snippet_sharing"
|
428 |
-
<?php checked( in_array( $snippet->id, $shared_snippets ) ); ?>>
|
429 |
<?php esc_html_e( 'Allow this snippet to be activated on individual sites on the network', 'code-snippets' ); ?>
|
430 |
</label>
|
431 |
</div>
|
@@ -452,6 +459,12 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
452 |
return false;
|
453 |
}
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
ob_start();
|
456 |
$result = eval( $snippet->code );
|
457 |
ob_end_clean();
|
151 |
private function unshare_network_snippet( $snippet_id ) {
|
152 |
$shared_snippets = get_site_option( 'shared_network_snippets', array() );
|
153 |
|
154 |
+
if ( ! in_array( $snippet_id, $shared_snippets, true ) ) {
|
155 |
return;
|
156 |
}
|
157 |
|
202 |
*
|
203 |
* @return bool true if code produces errors
|
204 |
*/
|
205 |
+
private function test_code( Code_Snippet $snippet ) {
|
206 |
|
207 |
if ( empty( $snippet->code ) ) {
|
208 |
return false;
|
256 |
|
257 |
/* Deactivate snippet if code contains errors */
|
258 |
if ( $snippet->active && 'single-use' !== $snippet->scope ) {
|
259 |
+
$validator = new Code_Snippets_Validator( $snippet->code );
|
260 |
+
$code_error = $validator->validate();
|
261 |
+
|
262 |
+
if ( ! $code_error ) {
|
263 |
+
$code_error = $this->test_code( $snippet );
|
264 |
+
}
|
265 |
+
|
266 |
+
if ( $code_error ) {
|
267 |
$snippet->active = 0;
|
268 |
}
|
269 |
}
|
278 |
$shared_snippets = get_site_option( 'shared_network_snippets', array() );
|
279 |
|
280 |
/* Add the snippet ID to the array if it isn't already */
|
281 |
+
if ( ! in_array( $snippet_id, $shared_snippets, true ) ) {
|
282 |
$shared_snippets[] = $snippet_id;
|
283 |
update_site_option( 'shared_network_snippets', array_values( $shared_snippets ) );
|
284 |
}
|
432 |
<h2 class="screen-reader-text"><?php _e( 'Sharing Settings', 'code-snippets' ); ?></h2>
|
433 |
<label for="snippet_sharing">
|
434 |
<input type="checkbox" name="snippet_sharing"
|
435 |
+
<?php checked( in_array( $snippet->id, $shared_snippets, true ) ); ?>>
|
436 |
<?php esc_html_e( 'Allow this snippet to be activated on individual sites on the network', 'code-snippets' ); ?>
|
437 |
</label>
|
438 |
</div>
|
459 |
return false;
|
460 |
}
|
461 |
|
462 |
+
$validator = new Code_Snippets_Validator( $snippet->code );
|
463 |
+
|
464 |
+
if ( $error = $validator->validate() ) {
|
465 |
+
return $error;
|
466 |
+
}
|
467 |
+
|
468 |
ob_start();
|
469 |
$result = eval( $snippet->code );
|
470 |
ob_end_clean();
|
php/admin-menus/class-import-menu.php
CHANGED
@@ -52,6 +52,8 @@ class Code_Snippets_Import_Menu extends Code_Snippets_Admin_Menu {
|
|
52 |
return;
|
53 |
}
|
54 |
|
|
|
|
|
55 |
$count = 0;
|
56 |
$network = is_network_admin();
|
57 |
$uploads = $_FILES['code_snippets_import_files'];
|
52 |
return;
|
53 |
}
|
54 |
|
55 |
+
check_admin_referer( 'import_code_snippets_file' );
|
56 |
+
|
57 |
$count = 0;
|
58 |
$network = is_network_admin();
|
59 |
$uploads = $_FILES['code_snippets_import_files'];
|
php/admin-menus/class-manage-menu.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/**
|
4 |
* This class handles the manage snippets menu
|
5 |
-
* @since
|
6 |
* @package Code_Snippets
|
7 |
*/
|
8 |
class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
@@ -71,11 +71,11 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
71 |
$sub = code_snippets()->get_menu_slug( isset( $_GET['sub'] ) ? $_GET['sub'] : 'snippets' );
|
72 |
|
73 |
$classmap = array(
|
74 |
-
'snippets'
|
75 |
-
'add-snippet'
|
76 |
-
'edit-snippet'
|
77 |
-
'import-snippets' => 'import',
|
78 |
-
'snippets-settings'
|
79 |
);
|
80 |
|
81 |
if ( isset( $classmap[ $sub ], code_snippets()->admin->menus[ $classmap[ $sub ] ] ) ) {
|
@@ -132,6 +132,16 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
132 |
plugins_url( 'js/min/manage.js', $plugin->file ),
|
133 |
array(), $plugin->version, true
|
134 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
|
137 |
/**
|
@@ -164,9 +174,9 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
164 |
/**
|
165 |
* Handles saving the user's snippets per page preference
|
166 |
*
|
167 |
-
* @param
|
168 |
-
* @param
|
169 |
-
* @param
|
170 |
*
|
171 |
* @return mixed
|
172 |
*/
|
@@ -182,10 +192,13 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
182 |
* Handle AJAX requests
|
183 |
*/
|
184 |
public function ajax_callback() {
|
185 |
-
check_ajax_referer( '
|
186 |
|
187 |
if ( ! isset( $_POST['field'], $_POST['snippet'] ) ) {
|
188 |
-
|
|
|
|
|
|
|
189 |
}
|
190 |
|
191 |
$snippet_data = json_decode( stripslashes( $_POST['snippet'] ), true );
|
@@ -196,7 +209,10 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
196 |
if ( 'priority' === $field ) {
|
197 |
|
198 |
if ( ! isset( $snippet_data['priority'] ) || ! is_numeric( $snippet_data['priority'] ) ) {
|
199 |
-
|
|
|
|
|
|
|
200 |
}
|
201 |
|
202 |
global $wpdb;
|
@@ -212,13 +228,16 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
212 |
} elseif ( 'active' === $field ) {
|
213 |
|
214 |
if ( ! isset( $snippet_data['active'] ) ) {
|
215 |
-
|
|
|
|
|
|
|
216 |
}
|
217 |
|
218 |
if ( $snippet->shared_network ) {
|
219 |
$active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
|
220 |
|
221 |
-
if ( in_array( $snippet->id, $active_shared_snippets ) !== $snippet->active ) {
|
222 |
|
223 |
$active_shared_snippets = $snippet->active ?
|
224 |
array_merge( $active_shared_snippets, array( $snippet->id ) ) :
|
@@ -229,13 +248,19 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
229 |
} else {
|
230 |
|
231 |
if ( $snippet->active ) {
|
232 |
-
activate_snippet( $snippet->id, $snippet->network );
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
} else {
|
234 |
deactivate_snippet( $snippet->id, $snippet->network );
|
235 |
}
|
236 |
}
|
237 |
}
|
238 |
|
239 |
-
|
240 |
}
|
241 |
}
|
2 |
|
3 |
/**
|
4 |
* This class handles the manage snippets menu
|
5 |
+
* @since 2.4.0
|
6 |
* @package Code_Snippets
|
7 |
*/
|
8 |
class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
71 |
$sub = code_snippets()->get_menu_slug( isset( $_GET['sub'] ) ? $_GET['sub'] : 'snippets' );
|
72 |
|
73 |
$classmap = array(
|
74 |
+
'snippets' => 'manage',
|
75 |
+
'add-snippet' => 'edit',
|
76 |
+
'edit-snippet' => 'edit',
|
77 |
+
'import-code-snippets' => 'import',
|
78 |
+
'snippets-settings' => 'settings',
|
79 |
);
|
80 |
|
81 |
if ( isset( $classmap[ $sub ], code_snippets()->admin->menus[ $classmap[ $sub ] ] ) ) {
|
132 |
plugins_url( 'js/min/manage.js', $plugin->file ),
|
133 |
array(), $plugin->version, true
|
134 |
);
|
135 |
+
|
136 |
+
wp_localize_script(
|
137 |
+
'code-snippets-manage-js',
|
138 |
+
'code_snippets_manage_i18n',
|
139 |
+
array(
|
140 |
+
'activate' => __( 'Activate', 'code-snippets' ),
|
141 |
+
'deactivate' => __( 'Deactivate', 'code-snippets' ),
|
142 |
+
'activation_error' => __( 'An error occurred when attempting to activate', 'code-snippets' ),
|
143 |
+
)
|
144 |
+
);
|
145 |
}
|
146 |
|
147 |
/**
|
174 |
/**
|
175 |
* Handles saving the user's snippets per page preference
|
176 |
*
|
177 |
+
* @param mixed $status
|
178 |
+
* @param string $option The screen option name
|
179 |
+
* @param mixed $value
|
180 |
*
|
181 |
* @return mixed
|
182 |
*/
|
192 |
* Handle AJAX requests
|
193 |
*/
|
194 |
public function ajax_callback() {
|
195 |
+
check_ajax_referer( 'code_snippets_manage_ajax' );
|
196 |
|
197 |
if ( ! isset( $_POST['field'], $_POST['snippet'] ) ) {
|
198 |
+
wp_send_json_error( array(
|
199 |
+
'type' => 'param_error',
|
200 |
+
'message' => 'incomplete request',
|
201 |
+
) );
|
202 |
}
|
203 |
|
204 |
$snippet_data = json_decode( stripslashes( $_POST['snippet'] ), true );
|
209 |
if ( 'priority' === $field ) {
|
210 |
|
211 |
if ( ! isset( $snippet_data['priority'] ) || ! is_numeric( $snippet_data['priority'] ) ) {
|
212 |
+
wp_send_json_error( array(
|
213 |
+
'type' => 'param_error',
|
214 |
+
'message' => 'missing snippet priority data',
|
215 |
+
) );
|
216 |
}
|
217 |
|
218 |
global $wpdb;
|
228 |
} elseif ( 'active' === $field ) {
|
229 |
|
230 |
if ( ! isset( $snippet_data['active'] ) ) {
|
231 |
+
wp_send_json_error( array(
|
232 |
+
'type' => 'param_error',
|
233 |
+
'message' => 'missing snippet active data',
|
234 |
+
) );
|
235 |
}
|
236 |
|
237 |
if ( $snippet->shared_network ) {
|
238 |
$active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
|
239 |
|
240 |
+
if ( in_array( $snippet->id, $active_shared_snippets, true ) !== $snippet->active ) {
|
241 |
|
242 |
$active_shared_snippets = $snippet->active ?
|
243 |
array_merge( $active_shared_snippets, array( $snippet->id ) ) :
|
248 |
} else {
|
249 |
|
250 |
if ( $snippet->active ) {
|
251 |
+
$result = activate_snippet( $snippet->id, $snippet->network );
|
252 |
+
if ( ! $result ) {
|
253 |
+
wp_send_json_error( array(
|
254 |
+
'type' => 'action_error',
|
255 |
+
'message' => 'error activating snippet',
|
256 |
+
) );
|
257 |
+
}
|
258 |
} else {
|
259 |
deactivate_snippet( $snippet->id, $snippet->network );
|
260 |
}
|
261 |
}
|
262 |
}
|
263 |
|
264 |
+
wp_send_json_success();
|
265 |
}
|
266 |
}
|
php/admin-menus/class-settings-menu.php
CHANGED
@@ -32,8 +32,13 @@ class Code_Snippets_Settings_Menu extends Code_Snippets_Admin_Menu {
|
|
32 |
delete_option( 'code_snippets_settings' );
|
33 |
}
|
34 |
|
35 |
-
add_settings_error(
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
37 |
set_transient( 'settings_errors', get_settings_errors(), 30 );
|
38 |
|
39 |
wp_redirect( esc_url_raw( add_query_arg( 'settings-updated', true, remove_query_arg( 'reset_settings' ) ) ) );
|
32 |
delete_option( 'code_snippets_settings' );
|
33 |
}
|
34 |
|
35 |
+
add_settings_error(
|
36 |
+
'code-snippets-settings-notices',
|
37 |
+
'settings_reset',
|
38 |
+
__( 'All settings have been reset to their defaults.', 'code-snippets' ),
|
39 |
+
'updated'
|
40 |
+
);
|
41 |
+
|
42 |
set_transient( 'settings_errors', get_settings_errors(), 30 );
|
43 |
|
44 |
wp_redirect( esc_url_raw( add_query_arg( 'settings-updated', true, remove_query_arg( 'reset_settings' ) ) ) );
|
php/class-code-snippets.php
CHANGED
@@ -111,16 +111,16 @@ class Code_Snippets {
|
|
111 |
public function get_menu_slug( $menu = '' ) {
|
112 |
$add = array( 'single', 'add', 'add-new', 'add-snippet', 'new-snippet', 'add-new-snippet' );
|
113 |
$edit = array( 'edit', 'edit-snippet' );
|
114 |
-
$import = array( 'import', 'import-snippets' );
|
115 |
$settings = array( 'settings', 'snippets-settings' );
|
116 |
|
117 |
-
if ( in_array( $menu, $edit ) ) {
|
118 |
return 'edit-snippet';
|
119 |
-
} elseif ( in_array( $menu, $add ) ) {
|
120 |
return 'add-snippet';
|
121 |
-
} elseif ( in_array( $menu, $import ) ) {
|
122 |
-
return 'import-snippets';
|
123 |
-
} elseif ( in_array( $menu, $settings ) ) {
|
124 |
return 'snippets-settings';
|
125 |
} else {
|
126 |
return 'snippets';
|
111 |
public function get_menu_slug( $menu = '' ) {
|
112 |
$add = array( 'single', 'add', 'add-new', 'add-snippet', 'new-snippet', 'add-new-snippet' );
|
113 |
$edit = array( 'edit', 'edit-snippet' );
|
114 |
+
$import = array( 'import', 'import-snippets', 'import-code-snippets' );
|
115 |
$settings = array( 'settings', 'snippets-settings' );
|
116 |
|
117 |
+
if ( in_array( $menu, $edit, true ) ) {
|
118 |
return 'edit-snippet';
|
119 |
+
} elseif ( in_array( $menu, $add, true ) ) {
|
120 |
return 'add-snippet';
|
121 |
+
} elseif ( in_array( $menu, $import, true ) ) {
|
122 |
+
return 'import-code-snippets';
|
123 |
+
} elseif ( in_array( $menu, $settings, true ) ) {
|
124 |
return 'snippets-settings';
|
125 |
} else {
|
126 |
return 'snippets';
|
php/class-db.php
CHANGED
@@ -42,7 +42,7 @@ class Code_Snippets_DB {
|
|
42 |
* Register the snippet table names with WordPress
|
43 |
*
|
44 |
* @since 2.0
|
45 |
-
* @uses
|
46 |
*/
|
47 |
function set_table_vars() {
|
48 |
global $wpdb;
|
@@ -83,11 +83,11 @@ class Code_Snippets_DB {
|
|
83 |
/**
|
84 |
* Return the appropriate snippet table name
|
85 |
*
|
86 |
-
* @since 2.0
|
87 |
-
*
|
88 |
* @param string|bool|null $multisite Retrieve the multisite table name or the site table name?
|
89 |
*
|
90 |
* @return string The snippet table name
|
|
|
|
|
91 |
*/
|
92 |
function get_table_name( $multisite = null ) {
|
93 |
|
@@ -150,12 +150,11 @@ class Code_Snippets_DB {
|
|
150 |
/**
|
151 |
* Create a single snippet table
|
152 |
*
|
153 |
-
* @since 1.6
|
154 |
-
* @uses dbDelta() to apply the SQL code
|
155 |
-
*
|
156 |
* @param string $table_name The name of the table to create
|
157 |
*
|
158 |
* @return bool whether the table creation was successful
|
|
|
|
|
159 |
*/
|
160 |
public static function create_table( $table_name ) {
|
161 |
global $wpdb;
|
@@ -171,6 +170,7 @@ class Code_Snippets_DB {
|
|
171 |
scope VARCHAR(15) NOT NULL DEFAULT 'global',
|
172 |
priority SMALLINT NOT NULL DEFAULT 10,
|
173 |
active TINYINT(1) NOT NULL DEFAULT 0,
|
|
|
174 |
PRIMARY KEY (id)
|
175 |
) $charset_collate;";
|
176 |
|
42 |
* Register the snippet table names with WordPress
|
43 |
*
|
44 |
* @since 2.0
|
45 |
+
* @uses $wpdb
|
46 |
*/
|
47 |
function set_table_vars() {
|
48 |
global $wpdb;
|
83 |
/**
|
84 |
* Return the appropriate snippet table name
|
85 |
*
|
|
|
|
|
86 |
* @param string|bool|null $multisite Retrieve the multisite table name or the site table name?
|
87 |
*
|
88 |
* @return string The snippet table name
|
89 |
+
* @since 2.0
|
90 |
+
*
|
91 |
*/
|
92 |
function get_table_name( $multisite = null ) {
|
93 |
|
150 |
/**
|
151 |
* Create a single snippet table
|
152 |
*
|
|
|
|
|
|
|
153 |
* @param string $table_name The name of the table to create
|
154 |
*
|
155 |
* @return bool whether the table creation was successful
|
156 |
+
* @since 1.6
|
157 |
+
* @uses dbDelta() to apply the SQL code
|
158 |
*/
|
159 |
public static function create_table( $table_name ) {
|
160 |
global $wpdb;
|
170 |
scope VARCHAR(15) NOT NULL DEFAULT 'global',
|
171 |
priority SMALLINT NOT NULL DEFAULT 10,
|
172 |
active TINYINT(1) NOT NULL DEFAULT 0,
|
173 |
+
modified DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
174 |
PRIMARY KEY (id)
|
175 |
) $charset_collate;";
|
176 |
|
php/class-list-table.php
CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
|
|
14 |
/**
|
15 |
* This class handles the table for the manage snippets menu
|
16 |
*
|
17 |
-
* @since
|
18 |
* @package Code_Snippets
|
19 |
*/
|
20 |
class Code_Snippets_List_Table extends WP_List_Table {
|
@@ -42,7 +42,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
42 |
|
43 |
/* Determine the status */
|
44 |
$status = apply_filters( 'code_snippets/list_table/default_view', 'all' );
|
45 |
-
if ( isset( $_REQUEST['status'] ) && in_array( $_REQUEST['status'], $this->statuses ) ) {
|
46 |
$status = $_REQUEST['status'];
|
47 |
}
|
48 |
|
@@ -87,7 +87,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
87 |
/**
|
88 |
* Define the output of all columns that have no callback function
|
89 |
*
|
90 |
-
* @param Code_Snippet $snippet
|
91 |
* @param string $column_name The name of the column being printed
|
92 |
*
|
93 |
* @return string The content of the column to output
|
@@ -98,27 +98,26 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
98 |
case 'id':
|
99 |
return $snippet->id;
|
100 |
case 'description':
|
101 |
-
return
|
102 |
-
apply_filters( 'code_snippets/list_table/column_description', $snippet->desc );
|
103 |
default:
|
104 |
-
return apply_filters( "code_snippets/list_table/column_{$column_name}", $snippet );
|
105 |
}
|
106 |
}
|
107 |
|
108 |
/**
|
109 |
* Retrieve a URL to perform an action on a snippet
|
110 |
*
|
111 |
-
* @param string $action
|
112 |
-
* @param Code_Snippet $snippet
|
113 |
-
* @param bool $escape
|
114 |
*
|
115 |
* @return string
|
116 |
*/
|
117 |
public function get_action_link( $action, $snippet, $escape = true ) {
|
118 |
|
119 |
// redirect actions to the network dashboard for shared network snippets
|
120 |
-
$
|
121 |
-
|
122 |
|
123 |
// edit links go to a different menu
|
124 |
if ( 'edit' === $action ) {
|
@@ -131,6 +130,9 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
131 |
add_query_arg( $query_args, code_snippets()->get_menu_url( 'manage', 'network' ) ) :
|
132 |
add_query_arg( $query_args );
|
133 |
|
|
|
|
|
|
|
134 |
return $escape ? esc_url( $url ) : $url;
|
135 |
}
|
136 |
|
@@ -200,7 +202,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
200 |
} else {
|
201 |
$class = 'snippet-activation-switch';
|
202 |
$action = $snippet->active ? 'deactivate' : 'activate';
|
203 |
-
$label = $snippet->network ?
|
204 |
( $snippet->active ? __( 'Network Deactivate', 'code-snippets' ) : __( 'Network Activate', 'code-snippets' ) ) :
|
205 |
( $snippet->active ? __( 'Deactivate', 'code-snippets' ) : __( 'Activate', 'code-snippets' ) );
|
206 |
}
|
@@ -260,7 +262,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
260 |
}
|
261 |
|
262 |
/**
|
263 |
-
*
|
264 |
*
|
265 |
* @param Code_Snippet $snippet The snippet being used for the current row
|
266 |
*
|
@@ -278,20 +280,19 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
278 |
}
|
279 |
|
280 |
/**
|
281 |
-
*
|
282 |
-
* This function is used once for each row
|
283 |
-
*
|
284 |
-
* @since 2.0
|
285 |
*
|
286 |
* @param Code_Snippet $snippet The snippet being used for the current row
|
287 |
*
|
288 |
* @return string The column output
|
|
|
|
|
289 |
*/
|
290 |
protected function column_tags( $snippet ) {
|
291 |
|
292 |
-
/* Return
|
293 |
if ( empty( $snippet->tags ) ) {
|
294 |
-
return '
|
295 |
}
|
296 |
|
297 |
$out = array();
|
@@ -308,7 +309,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
308 |
}
|
309 |
|
310 |
/**
|
311 |
-
*
|
312 |
*
|
313 |
* @param Code_Snippet $snippet
|
314 |
*
|
@@ -319,6 +320,38 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
319 |
return sprintf( '<input type="number" class="snippet-priority" value="%d" step="1" disabled>', $snippet->priority );
|
320 |
}
|
321 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
/**
|
323 |
* Define the column headers for the table
|
324 |
*
|
@@ -331,6 +364,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
331 |
'id' => __( 'ID', 'code-snippets' ),
|
332 |
'description' => __( 'Description', 'code-snippets' ),
|
333 |
'tags' => __( 'Tags', 'code-snippets' ),
|
|
|
334 |
'priority' => __( 'Priority', 'code-snippets' ),
|
335 |
);
|
336 |
|
@@ -346,15 +380,21 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
346 |
}
|
347 |
|
348 |
/**
|
349 |
-
* Define the columns that can be sorted
|
|
|
|
|
|
|
|
|
|
|
350 |
*
|
351 |
* @return array The IDs of the columns that can be sorted
|
352 |
*/
|
353 |
public function get_sortable_columns() {
|
|
|
354 |
$sortable_columns = array(
|
355 |
'id' => array( 'id', true ),
|
356 |
-
'name' =>
|
357 |
-
'
|
358 |
'priority' => array( 'priority', true ),
|
359 |
);
|
360 |
|
@@ -555,14 +595,14 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
555 |
/**
|
556 |
* Perform an action on a single snippet
|
557 |
*
|
558 |
-
* @uses activate_snippet() to activate snippets
|
559 |
-
* @uses deactivate_snippet() to deactivate snippets
|
560 |
-
* @uses delete_snippet() to delete snippets
|
561 |
-
*
|
562 |
* @param int $id
|
563 |
* @param string $action
|
564 |
*
|
565 |
* @return bool|string Result of performing action
|
|
|
|
|
|
|
|
|
566 |
*/
|
567 |
private function perform_action( $id, $action ) {
|
568 |
|
@@ -587,7 +627,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
587 |
case 'activate-shared':
|
588 |
$active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
|
589 |
|
590 |
-
if ( ! in_array( $id, $active_shared_snippets ) ) {
|
591 |
$active_shared_snippets[] = $id;
|
592 |
update_option( 'active_shared_network_snippets', $active_shared_snippets );
|
593 |
}
|
@@ -620,14 +660,17 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
620 |
}
|
621 |
|
622 |
/**
|
623 |
-
* Processes
|
624 |
*
|
625 |
* @uses wp_redirect() to pass the results to the current page
|
626 |
* @uses add_query_arg() to append the results to the current URI
|
627 |
*/
|
628 |
-
public function
|
629 |
|
|
|
630 |
if ( isset( $_POST['clear-recent-list'] ) ) {
|
|
|
|
|
631 |
if ( $this->is_network ) {
|
632 |
update_site_option( 'recently_activated_snippets', array() );
|
633 |
} el
|
14 |
/**
|
15 |
* This class handles the table for the manage snippets menu
|
16 |
*
|
17 |
+
* @since 1.5
|
18 |
* @package Code_Snippets
|
19 |
*/
|
20 |
class Code_Snippets_List_Table extends WP_List_Table {
|
42 |
|
43 |
/* Determine the status */
|
44 |
$status = apply_filters( 'code_snippets/list_table/default_view', 'all' );
|
45 |
+
if ( isset( $_REQUEST['status'] ) && in_array( $_REQUEST['status'], $this->statuses, true ) ) {
|
46 |
$status = $_REQUEST['status'];
|
47 |
}
|
48 |
|
87 |
/**
|
88 |
* Define the output of all columns that have no callback function
|
89 |
*
|
90 |
+
* @param Code_Snippet $snippet The snippet used for the current row
|
91 |
* @param string $column_name The name of the column being printed
|
92 |
*
|
93 |
* @return string The content of the column to output
|
98 |
case 'id':
|
99 |
return $snippet->id;
|
100 |
case 'description':
|
101 |
+
return apply_filters( 'code_snippets/list_table/column_description', $snippet->desc );
|
|
|
102 |
default:
|
103 |
+
return apply_filters( "code_snippets/list_table/column_{$column_name}", '—', $snippet );
|
104 |
}
|
105 |
}
|
106 |
|
107 |
/**
|
108 |
* Retrieve a URL to perform an action on a snippet
|
109 |
*
|
110 |
+
* @param string $action Name of action to perform.
|
111 |
+
* @param Code_Snippet $snippet Snippet object.
|
112 |
+
* @param bool $escape Whether to escape the generated URL for output.
|
113 |
*
|
114 |
* @return string
|
115 |
*/
|
116 |
public function get_action_link( $action, $snippet, $escape = true ) {
|
117 |
|
118 |
// redirect actions to the network dashboard for shared network snippets
|
119 |
+
$local_actions = array( 'activate', 'activate-shared', 'run-once', 'run-once-shared' );
|
120 |
+
$network_redirect = $snippet->shared_network && ! $this->is_network && ! in_array( $action, $local_actions, true );
|
121 |
|
122 |
// edit links go to a different menu
|
123 |
if ( 'edit' === $action ) {
|
130 |
add_query_arg( $query_args, code_snippets()->get_menu_url( 'manage', 'network' ) ) :
|
131 |
add_query_arg( $query_args );
|
132 |
|
133 |
+
// add a nonce to the URL for security purposes
|
134 |
+
$url = wp_nonce_url( $url, 'code_snippets_manage_snippet_' . $snippet->id );
|
135 |
+
|
136 |
return $escape ? esc_url( $url ) : $url;
|
137 |
}
|
138 |
|
202 |
} else {
|
203 |
$class = 'snippet-activation-switch';
|
204 |
$action = $snippet->active ? 'deactivate' : 'activate';
|
205 |
+
$label = $snippet->network && ! $snippet->shared_network ?
|
206 |
( $snippet->active ? __( 'Network Deactivate', 'code-snippets' ) : __( 'Network Activate', 'code-snippets' ) ) :
|
207 |
( $snippet->active ? __( 'Deactivate', 'code-snippets' ) : __( 'Activate', 'code-snippets' ) );
|
208 |
}
|
262 |
}
|
263 |
|
264 |
/**
|
265 |
+
* Handles the checkbox column output.
|
266 |
*
|
267 |
* @param Code_Snippet $snippet The snippet being used for the current row
|
268 |
*
|
280 |
}
|
281 |
|
282 |
/**
|
283 |
+
* Handles the tags column output.
|
|
|
|
|
|
|
284 |
*
|
285 |
* @param Code_Snippet $snippet The snippet being used for the current row
|
286 |
*
|
287 |
* @return string The column output
|
288 |
+
* @since 2.0
|
289 |
+
*
|
290 |
*/
|
291 |
protected function column_tags( $snippet ) {
|
292 |
|
293 |
+
/* Return now if there are no tags */
|
294 |
if ( empty( $snippet->tags ) ) {
|
295 |
+
return '';
|
296 |
}
|
297 |
|
298 |
$out = array();
|
309 |
}
|
310 |
|
311 |
/**
|
312 |
+
* Handles the priority column output.
|
313 |
*
|
314 |
* @param Code_Snippet $snippet
|
315 |
*
|
320 |
return sprintf( '<input type="number" class="snippet-priority" value="%d" step="1" disabled>', $snippet->priority );
|
321 |
}
|
322 |
|
323 |
+
/**
|
324 |
+
* Handles the post date column output.
|
325 |
+
*
|
326 |
+
* @param Code_Snippet $snippet The current code snippet object.
|
327 |
+
*
|
328 |
+
* @return string
|
329 |
+
*
|
330 |
+
* @since 2.14.0
|
331 |
+
*/
|
332 |
+
public function column_date( $snippet ) {
|
333 |
+
|
334 |
+
if ( ! $snippet->modified ) {
|
335 |
+
return '—';
|
336 |
+
}
|
337 |
+
|
338 |
+
$time_diff = time() - $snippet->modified_timestamp;
|
339 |
+
$local_time = $snippet->modified_local;
|
340 |
+
|
341 |
+
if ( $time_diff >= 0 && $time_diff < YEAR_IN_SECONDS ) {
|
342 |
+
/* translators: %s: Human-readable time difference. */
|
343 |
+
$human_time = sprintf( __( '%s ago', 'code-snippets' ), human_time_diff( $snippet->modified_timestamp ) );
|
344 |
+
} else {
|
345 |
+
$human_time = $local_time->format( __( 'Y/m/d', 'code-snippets' ) );
|
346 |
+
}
|
347 |
+
|
348 |
+
/* translators: 1: date format, 2: time format */
|
349 |
+
$date_format = _x( '%1$s \a\t %2$s', 'date and time format', 'code-snippets' );
|
350 |
+
$date_format = sprintf( $date_format, get_option( 'date_format' ), get_option( 'time_format' ) );
|
351 |
+
|
352 |
+
return sprintf( '<span title="%s">%s</span>', $local_time->format( $date_format ), $human_time );
|
353 |
+
}
|
354 |
+
|
355 |
/**
|
356 |
* Define the column headers for the table
|
357 |
*
|
364 |
'id' => __( 'ID', 'code-snippets' ),
|
365 |
'description' => __( 'Description', 'code-snippets' ),
|
366 |
'tags' => __( 'Tags', 'code-snippets' ),
|
367 |
+
'date' => __( 'Modified', 'code-snippets' ),
|
368 |
'priority' => __( 'Priority', 'code-snippets' ),
|
369 |
);
|
370 |
|
380 |
}
|
381 |
|
382 |
/**
|
383 |
+
* Define the columns that can be sorted. The format is:
|
384 |
+
* 'internal-name' => 'orderby'
|
385 |
+
* or
|
386 |
+
* 'internal-name' => array( 'orderby', true )
|
387 |
+
*
|
388 |
+
* The second format will make the initial sorting order be descending.
|
389 |
*
|
390 |
* @return array The IDs of the columns that can be sorted
|
391 |
*/
|
392 |
public function get_sortable_columns() {
|
393 |
+
|
394 |
$sortable_columns = array(
|
395 |
'id' => array( 'id', true ),
|
396 |
+
'name' => 'name',
|
397 |
+
'date' => array( 'modified', true ),
|
398 |
'priority' => array( 'priority', true ),
|
399 |
);
|
400 |
|
595 |
/**
|
596 |
* Perform an action on a single snippet
|
597 |
*
|
|
|
|
|
|
|
|
|
598 |
* @param int $id
|
599 |
* @param string $action
|
600 |
*
|
601 |
* @return bool|string Result of performing action
|
602 |
+
* @uses activate_snippet() to activate snippets
|
603 |
+
* @uses deactivate_snippet() to deactivate snippets
|
604 |
+
* @uses delete_snippet() to delete snippets
|
605 |
+
*
|
606 |
*/
|
607 |
private function perform_action( $id, $action ) {
|
608 |
|
627 |
case 'activate-shared':
|
628 |
$active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
|
629 |
|
630 |
+
if ( ! in_array( $id, $active_shared_snippets, true ) ) {
|
631 |
$active_shared_snippets[] = $id;
|
632 |
update_option( 'active_shared_network_snippets', $active_shared_snippets );
|
633 |
}
|
660 |
}
|
661 |
|
662 |
/**
|
663 |
+
* Processes actions requested by the user.
|
664 |
*
|
665 |
* @uses wp_redirect() to pass the results to the current page
|
666 |
* @uses add_query_arg() to append the results to the current URI
|
667 |
*/
|
668 |
+
public function process_requested_actions() {
|
669 |
|
670 |
+
/* Clear the recent snippets list if requested to do so */
|
671 |
if ( isset( $_POST['clear-recent-list'] ) ) {
|
672 |
+
check_admin_referer( 'bulk-' . $this->_args['plural'] );
|
673 |
+
|
674 |
if ( $this->is_network ) {
|
675 |
update_site_option( 'recently_activated_snippets', array() );
|
676 |
} el
|