UNPKG

@iamzzg/code-editor-yaml

Version:

基于codeMirror的yaml编辑器vue2组件,只支持yaml显示和编辑

1 lines 264 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["code-editor-yaml"]=t():e["code-editor-yaml"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var e={9662:function(e,t,r){"use strict";var n=r(614),i=r(6330),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a function")}},9670:function(e,t,r){"use strict";var n=r(111),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not an object")}},1318:function(e,t,r){"use strict";var n=r(5656),i=r(1400),o=r(6244),a=function(e){return function(t,r,a){var l,s=n(t),c=o(s),u=i(a,c);if(e&&r!=r){while(c>u)if(l=s[u++],l!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:function(e,t,r){"use strict";var n=r(9781),i=r(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,l=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,r){"use strict";var n=r(1702),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},9920:function(e,t,r){"use strict";var n=r(2597),i=r(3887),o=r(1236),a=r(3070);e.exports=function(e,t,r){for(var l=i(t),s=a.f,c=o.f,u=0;u<l.length;u++){var f=l[u];n(e,f)||r&&n(r,f)||s(e,f,c(t,f))}}},8880:function(e,t,r){"use strict";var n=r(9781),i=r(3070),o=r(9114);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,r){"use strict";var n=r(614),i=r(3070),o=r(6339),a=r(3072);e.exports=function(e,t,r,l){l||(l={});var s=l.enumerable,c=void 0!==l.name?l.name:t;if(n(r)&&o(r,c,l),l.global)s?e[t]=r:a(t,r);else{try{l.unsafe?e[t]&&(s=!0):delete e[t]}catch(u){}s?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},3072:function(e,t,r){"use strict";var n=r(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9781:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,r="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},317:function(e,t,r){"use strict";var n=r(7854),i=r(111),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},7207:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,r){"use strict";var n,i,o=r(7854),a=r(8113),l=o.process,s=o.Deno,c=l&&l.versions||s&&s.version,u=c&&c.v8;u&&(n=u.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),e.exports=i},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){"use strict";var n=r(7854),i=r(1236).f,o=r(8880),a=r(8052),l=r(3072),s=r(9920),c=r(4705);e.exports=function(e,t){var r,u,f,d,h,p,g=e.target,m=e.global,v=e.stat;if(u=m?n:v?n[g]||l(g,{}):(n[g]||{}).prototype,u)for(f in t){if(h=t[f],e.dontCallGetSet?(p=i(u,f),d=p&&p.value):d=u[f],r=c(m?f:g+(v?".":"#")+f,e.forced),!r&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(u,f,h,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,r){"use strict";var n=r(4374),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,r){"use strict";var n=r(9781),i=r(2597),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,l=i(o,"name"),s=l&&"something"===function(){}.name,c=l&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:c}},1702:function(e,t,r){"use strict";var n=r(4374),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},5005:function(e,t,r){"use strict";var n=r(7854),i=r(614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},8173:function(e,t,r){"use strict";var n=r(9662),i=r(8554);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},7854:function(e,t,r){"use strict";var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,r){"use strict";var n=r(1702),i=r(7908),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){"use strict";e.exports={}},4664:function(e,t,r){"use strict";var n=r(9781),i=r(7293),o=r(317);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){"use strict";var n=r(1702),i=r(7293),o=r(4326),a=Object,l=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?l(e,""):a(e)}:a},2788:function(e,t,r){"use strict";var n=r(1702),i=r(614),o=r(5465),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},9909:function(e,t,r){"use strict";var n,i,o,a=r(4811),l=r(7854),s=r(111),c=r(8880),u=r(2597),f=r(5465),d=r(6200),h=r(3501),p="Object already initialized",g=l.TypeError,m=l.WeakMap,v=function(e){return o(e)?i(e):n(e,{})},y=function(e){return function(t){var r;if(!s(t)||(r=i(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}};if(a||f.state){var b=f.state||(f.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw g(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var w=d("state");h[w]=!0,n=function(e,t){if(u(e,w))throw g(p);return t.facade=e,c(e,w,t),t},i=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:n,get:i,has:o,enforce:v,getterFor:y}},3157:function(e,t,r){"use strict";var n=r(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},614:function(e,t,r){"use strict";var n=r(4154),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:function(e,t,r){"use strict";var n=r(7293),i=r(614),o=/#|\.prototype\./,a=function(e,t){var r=s[l(e)];return r==u||r!=c&&(i(t)?n(t):!!t)},l=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,r){"use strict";var n=r(614),i=r(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,r){"use strict";var n=r(5005),i=r(614),o=r(7976),a=r(3307),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,l(e))}},6244:function(e,t,r){"use strict";var n=r(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,r){"use strict";var n=r(1702),i=r(7293),o=r(614),a=r(2597),l=r(9781),s=r(6530).CONFIGURABLE,c=r(2788),u=r(9909),f=u.enforce,d=u.get,h=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=l&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(l?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?l&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=f(e);return a(n,"source")||(n.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&d(this).source||c(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3070:function(e,t,r){"use strict";var n=r(9781),i=r(4664),o=r(3353),a=r(9670),l=r(4948),s=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=l(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=l(t),a(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){"use strict";var n=r(9781),i=r(6916),o=r(5296),a=r(9114),l=r(5656),s=r(4948),c=r(2597),u=r(4664),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=l(e),t=s(t),u)try{return f(e,t)}catch(r){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},8006:function(e,t,r){"use strict";var n=r(6324),i=r(748),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},7976:function(e,t,r){"use strict";var n=r(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,r){"use strict";var n=r(1702),i=r(2597),o=r(5656),a=r(1318).indexOf,l=r(3501),s=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(l,r)&&i(n,r)&&s(u,r);while(t.length>c)i(n,r=t[c++])&&(~a(u,r)||s(u,r));return u}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2140:function(e,t,r){"use strict";var n=r(6916),i=r(614),o=r(111),a=TypeError;e.exports=function(e,t){var r,l;if("string"===t&&i(r=e.toString)&&!o(l=n(r,e)))return l;if(i(r=e.valueOf)&&!o(l=n(r,e)))return l;if("string"!==t&&i(r=e.toString)&&!o(l=n(r,e)))return l;throw a("Can't convert object to primitive value")}},3887:function(e,t,r){"use strict";var n=r(5005),i=r(1702),o=r(8006),a=r(5181),l=r(9670),s=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(l(e)),r=a.f;return r?s(t,r(e)):t}},4488:function(e,t,r){"use strict";var n=r(8554),i=TypeError;e.exports=function(e){if(n(e))throw i("Can't call method on "+e);return e}},6200:function(e,t,r){"use strict";var n=r(2309),i=r(9711),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,r){"use strict";var n=r(7854),i=r(3072),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},2309:function(e,t,r){"use strict";var n=r(1913),i=r(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,r){"use strict";var n=r(7392),i=r(7293),o=r(7854),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,r){"use strict";var n=r(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},5656:function(e,t,r){"use strict";var n=r(8361),i=r(4488);e.exports=function(e){return n(i(e))}},9303:function(e,t,r){"use strict";var n=r(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,r){"use strict";var n=r(9303),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},7908:function(e,t,r){"use strict";var n=r(4488),i=Object;e.exports=function(e){return i(n(e))}},7593:function(e,t,r){"use strict";var n=r(6916),i=r(111),o=r(2190),a=r(8173),l=r(2140),s=r(5112),c=TypeError,u=s("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,s=a(e,u);if(s){if(void 0===t&&(t="default"),r=n(s,e,t),!i(r)||o(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,r){"use strict";var n=r(7593),i=r(2190);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},9711:function(e,t,r){"use strict";var n=r(1702),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:function(e,t,r){"use strict";var n=r(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){"use strict";var n=r(9781),i=r(7293);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,r){"use strict";var n=r(7854),i=r(614),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},5112:function(e,t,r){"use strict";var n=r(7854),i=r(2309),o=r(2597),a=r(9711),l=r(6293),s=r(3307),c=n.Symbol,u=i("wks"),f=s?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=l&&o(c,e)?c[e]:f("Symbol."+e)),u[e]}},7658:function(e,t,r){"use strict";var n=r(2109),i=r(7908),o=r(6244),a=r(3658),l=r(7207),s=r(7293),c=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!u();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=i(this),r=o(t),n=arguments.length;l(r+n);for(var s=0;s<n;s++)t[r]=arguments[s],r++;return a(t,r),r}})},2723:function(e,t,r){r(7658),function(e){e(r(1610))}((function(e){"use strict";function t(t){return function(r,n){var i=n.line,o=r.getLine(i);function a(t){for(var a,l=n.ch,s=0;;){var c=l<=0?-1:o.lastIndexOf(t[0],l-1);if(-1!=c){if(1==s&&c<n.ch)break;if(a=r.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(a))return{ch:c+1,tokenType:a,pair:t};l=c-1}else{if(1==s)break;s=1,l=o.length}}}function l(t){var n,o,a=1,l=r.lastLine(),s=t.ch;e:for(var c=i;c<=l;++c)for(var u=r.getLine(c),f=c==i?s:0;;){var d=u.indexOf(t.pair[0],f),h=u.indexOf(t.pair[1],f);if(d<0&&(d=u.length),h<0&&(h=u.length),f=Math.min(d,h),f==u.length)break;if(r.getTokenTypeAt(e.Pos(c,f+1))==t.tokenType)if(f==d)++a;else if(! --a){n=c,o=f;break e}++f}return null==n||i==n?null:{from:e.Pos(i,s),to:e.Pos(n,o)}}for(var s=[],c=0;c<t.length;c++){var u=a(t[c]);u&&s.push(u)}s.sort((function(e,t){return e.ch-t.ch}));for(c=0;c<s.length;c++){var f=l(s[c]);if(f)return f}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));if(/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"keyword"!=n.type||"import"!=n.string)return null;for(var i=r,o=Math.min(t.lastLine(),r+10);i<=o;++i){var a=t.getLine(i),l=a.indexOf(";");if(-1!=l)return{startCh:n.end,end:e.Pos(i,l)}}}var i,o=r.line,a=n(o);if(!a||n(o-1)||(i=n(o-2))&&i.end.line==o-1)return null;for(var l=a.end;;){var s=n(l.line+1);if(null==s)break;l=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:l}})),e.registerHelper("fold","include",(function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));return/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var i=r.line,o=n(i);if(null==o||null!=n(i-1))return null;for(var a=i;;){var l=n(a+1);if(null==l)break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}))},4295:function(e,t,r){(function(e){e(r(1610))})((function(e){"use strict";function t(t,n,o,a){if(o&&o.call){var l=o;o=null}else l=i(t,o,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=i(t,o,"minFoldSize");function c(e){var r=l(t,n);if(!r||r.to.line-r.from.line<s)return null;if("fold"===a)return r;for(var i=t.findMarksAt(r.from),o=0;o<i.length;++o)if(i[o].__isFold){if(!e)return null;r.cleared=!0,i[o].clear()}return r}var u=c(!0);if(i(t,o,"scanUp"))while(!u&&n.line>t.firstLine())n=e.Pos(n.line-1,0),u=c(!1);if(u&&!u.cleared&&"unfold"!==a){var f=r(t,o,u);e.on(f,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(u.from,u.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",(function(r,n){e.signal(t,"unfold",t,r,n)})),e.signal(t,"fold",t,u.from,u.to)}}function r(e,t,r){var n=i(e,t,"widget");if("function"==typeof n&&(n=n(r.from,r.to)),"string"==typeof n){var o=document.createTextNode(n);n=document.createElement("span"),n.appendChild(o),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",(function(e,r,n){t(this,e,r,n)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),r=0;r<t.length;++r)if(t[r].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var r=t.firstLine(),n=t.lastLine();r<=n;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var r=t.firstLine(),n=t.lastLine();r<=n;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,r){for(var n=0;n<e.length;++n){var i=e[n](t,r);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var r=e.getHelpers(t,"fold"),n=0;n<r.length;n++){var i=r[n](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return i(this,e,t)}))}))},2194:function(e,t,r){r(7658),function(e){e(r(1610))}((function(e){"use strict";var t=/[\w$]+/,r=500;e.registerHelper("hint","anyword",(function(n,i){var o=i&&i.word||t,a=i&&i.range||r,l=n.getCursor(),s=n.getLine(l.line),c=l.ch,u=c;while(u&&o.test(s.charAt(u-1)))--u;for(var f=u!=c&&s.slice(u,c),d=i&&i.list||[],h={},p=new RegExp(o.source,"g"),g=-1;g<=1;g+=2)for(var m=l.line,v=Math.min(Math.max(m+g*a,n.firstLine()),n.lastLine())+g;m!=v;m+=g){var y,b=n.getLine(m);while(y=p.exec(b))m==l.line&&y[0]===f||f&&0!=y[0].lastIndexOf(f,0)||Object.prototype.hasOwnProperty.call(h,y[0])||(h[y[0]]=!0,d.push(y[0]))}return{list:d,from:e.Pos(l.line,u),to:e.Pos(l.line,c)}}))}))},116:function(e,t,r){r(7658),function(e){e(r(1610),r(169))}((function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(r){var n=r.getCursor(),i=r.getTokenAt(n),o=e.innerMode(r.getMode(),i.state);if("css"==o.mode.name){if("keyword"==i.type&&0=="!important".indexOf(i.string))return{list:["!important"],from:e.Pos(n.line,i.start),to:e.Pos(n.line,i.end)};var a=i.start,l=n.ch,s=i.string.slice(0,l-a);/[^\w$_-]/.test(s)&&(s="",a=l=n.ch);var c=e.resolveMode("text/css"),u=[],f=o.state.state;return"pseudo"==f||"variable-3"==i.type?d(t):"block"==f||"maybeprop"==f?d(c.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(d(c.valueKeywords),d(c.colorKeywords)):"media"!=f&&"media_parens"!=f||(d(c.mediaTypes),d(c.mediaFeatures)),u.length?{list:u,from:e.Pos(n.line,a),to:e.Pos(n.line,l)}:void 0}function d(e){for(var t in e)s&&0!=t.lastIndexOf(s,0)||u.push(t)}}))}))},4165:function(e,t,r){r(7658),function(e){e(r(1610))}((function(e){var t=e.Pos;function r(e,t){for(var r=0,n=e.length;r<n;++r)t(e[r])}function n(e,t){if(!Array.prototype.indexOf){var r=e.length;while(r--)if(e[r]===t)return!0;return!1}return-1!=e.indexOf(t)}function i(r,n,i,o){var a=r.getCursor(),l=i(r,a);if(!/\b(?:string|comment)\b/.test(l.type)){var s=e.innerMode(r.getMode(),l.state);if("json"!==s.mode.helperType){l.state=s.state,/^[\w$_]*$/.test(l.string)?l.end>a.ch&&(l.end=a.ch,l.string=l.string.slice(0,a.ch-l.start)):l={start:a.ch,end:a.ch,string:"",state:l.state,type:"."==l.string?"property":null};var c=l;while("property"==c.type){if(c=i(r,t(a.line,c.start)),"."!=c.string)return;if(c=i(r,t(a.line,c.start)),!u)var u=[];u.push(c)}return{list:p(l,u,n,o),from:t(a.line,l.start),to:t(a.line,l.end)}}}}function o(e,t){return i(e,f,(function(e,t){return e.getTokenAt(t)}),t)}function a(e,t){var r=e.getTokenAt(t);return t.ch==r.start+1&&"."==r.string.charAt(0)?(r.end=r.start,r.string=".",r.type="property"):/^\.[\w$_]*$/.test(r.string)&&(r.type="property",r.start++,r.string=r.string.replace(/\./,"")),r}function l(e,t){return i(e,d,a,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",l);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),f="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),d="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function h(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var r=e;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(t);else for(var n in e)t(n)}function p(e,t,i,o){var a=[],l=e.string,f=o&&o.globalScope||window;function d(e){0!=e.lastIndexOf(l,0)||n(a,e)||a.push(e)}function p(e){"string"==typeof e?r(s,d):e instanceof Array?r(c,d):e instanceof Function&&r(u,d),h(e,d)}if(t&&t.length){var g,m=t.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||(g=g||f[m.string])):"string"==m.type?g="":"atom"==m.type?g=1:"function"==m.type&&(null==f.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof f.jQuery?null!=f._&&"_"==m.string&&"function"==typeof f._&&(g=f._()):g=f.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&p(g)}else{for(var v=e.state.localVars;v;v=v.next)d(v.name);for(var y=e.state.context;y;y=y.prev)for(v=y.vars;v;v=v.next)d(v.name);for(v=e.state.globalVars;v;v=v.next)d(v.name);if(o&&null!=o.additionalContext)for(var b in o.additionalContext)d(b);o&&!1===o.useGlobalScope||p(f),r(i,d)}return a}}))},3956:function(e,t,r){r(7658),function(e){e(r(1610))}((function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var n={hint:t};if(r)for(var i in r)n[i]=r[i];return e.showHint(n)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e,t,r){var n=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function l(e){return"string"==typeof e?e:e.text}function s(e,t){var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},n=/Mac/.test(navigator.platform);n&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:r;function a(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}if(i)for(var l in i)i.hasOwnProperty(l)&&a(l,i[l]);var s=e.options.extraKeys;if(s)for(var l in s)s.hasOwnProperty(l)&&a(l,s[l]);return o}function c(e,t){while(t&&t!=e){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(n,i){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=i,this.picked=!1;var o=this,a=n.cm,u=a.getInputField().ownerDocument,f=u.defaultView||u.parentWindow,d=this.hints=u.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var h=n.cm.options.theme;d.className="CodeMirror-hints "+h,this.selectedHint=i.selectedHint||0;for(var p=i.list,g=0;g<p.length;++g){var m=d.appendChild(u.createElement("li")),v=p[g],y=t+(g!=this.selectedHint?"":" "+r);null!=v.className&&(y=v.className+" "+y),m.className=y,g==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+g,m.setAttribute("role","option"),v.render?v.render(m,i,v):m.appendChild(u.createTextNode(v.displayText||l(v))),m.hintId=g}var b=n.options.container||u.body,w=a.cursorCoords(n.options.alignWithWord?i.from:null),x=w.left,k=w.bottom,C=!0,S=0,L=0;if(b!==u.body){var M=-1!==["absolute","relative","fixed"].indexOf(f.getComputedStyle(b).position),T=M?b:b.offsetParent,O=T.getBoundingClientRect(),A=u.body.getBoundingClientRect();S=O.left-A.left-T.scrollLeft,L=O.top-A.top-T.scrollTop}d.style.left=x-S+"px",d.style.top=k-L+"px";var N=f.innerWidth||Math.max(u.body.offsetWidth,u.documentElement.offsetWidth),P=f.innerHeight||Math.max(u.body.offsetHeight,u.documentElement.offsetHeight);b.appendChild(d),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var E,D=n.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,z=!!n.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;setTimeout((function(){E=a.getScrollInfo()}));var H=D.bottom-P;if(H>0){var W=D.bottom-D.top,F=D.top-(w.bottom-w.top)-2;P-D.top<F?(W>F&&(d.style.height=(W=F)+"px"),d.style.top=(k=w.top-W)+L+"px",C=!1):d.style.height=P-D.top-2+"px"}var I,R=D.right-N;if(z&&(R+=a.display.nativeBarWidth),R>0&&(D.right-D.left>N&&(d.style.width=N-5+"px",R-=D.right-D.left-N),d.style.left=(x=Math.max(w.left-R-S,0))+"px"),z)for(var j=d.firstChild;j;j=j.nextSibling)j.style.paddingRight=a.display.nativeBarWidth+"px";(a.addKeyMap(this.keyMap=s(n,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){o.pick()},data:i})),n.options.closeOnUnfocus)&&(a.on("blur",this.onBlur=function(){I=setTimeout((function(){n.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)}));a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();E||(E=a.getScrollInfo());var r=k+E.top-e.top,i=r-(f.pageYOffset||(u.documentElement||u.body).scrollTop);if(C||(i+=d.offsetHeight),i<=t.top||i>=t.bottom)return n.close();d.style.top=r+"px",d.style.left=x+E.left-e.left+"px"}),e.on(d,"dblclick",(function(e){var t=c(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(d,"click",(function(e){var t=c(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),n.options.completeOnSingleClick&&o.pick())})),e.on(d,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var B=this.getSelectedHintRange();return 0===B.from&&0===B.to||this.scrollToActive(),e.signal(i,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function f(e,t){if(!e.somethingSelected())return t;for(var r=[],n=0;n<t.length;n++)t[n].supportsSelection&&r.push(t[n]);return r}function d(e,t,r,n){if(e.async)e(t,n,r);else{var i=e(t,r);i&&i.then?i.then(n):n(i)}}function h(t,r){var n,i=t.getHelpers(r,"hint");if(i.length){var o=function(e,t,r){var n=f(e,i);function o(i){if(i==n.length)return t(null);d(n[i],e,r,(function(e){e&&e.list.length>0?t(e):o(i+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(n=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:n})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var n=t.list[r],i=this;this.cm.operation((function(){n.hint?n.hint(i.cm,t,n):i.cm.replaceRange(l(n),n.from||t.from,n.to||t.to,"complete"),e.signal(t,"pick",n),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var n=this;this.debounce=i((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,r=++this.tick;d(this.options.hint,this.cm,this.options,(function(n){t.tick==r&&t.finishUpdate(n,e)}))}},finishUpdate:function(t,r){this.data&&e.signal(this.data,"update");var n=this.widget&&this.widget.picked||r&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(n&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown")))}},u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+r,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+r,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],n=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-n.offsetTop:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:h}),e.registerHelper("hint","fromList",(function(t,r){var n,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),l=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?n=o.string.substr(0,i.ch-o.start):(n="",a=i);for(var s=[],c=0;c<r.words.length;c++){var u=r.words[c];u.slice(0,n.length)==n&&s.push(u)}if(s.length)return{list:s,from:a,to:l}})),e.commands.autocomplete=e.showHint;var p={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}))},1322:function(e,t,r){(function(e){e(r(1610))})((function(e){"use strict";function t(t,r,n){this.orientation=r,this.scroll=n,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=t+"-"+r,this.inner=this.node.appendChild(document.createElement("div"));var i=this;function o(t){var r=e.wheelEventPixels(t)["horizontal"==i.orientation?"x":"y"],n=i.pos;i.moveTo(i.pos+r),i.pos!=n&&e.e_preventDefault(t)}e.on(this.inner,"mousedown",(function(t){if(1==t.which){e.e_preventDefault(t);var r="horizontal"==i.orientation?"pageX":"pageY",n=t[r],o=i.pos;e.on(document,"mousemove",l),e.on(document,"mouseup",a)}function a(){e.off(document,"mousemove",l),e.off(document,"mouseup",a)}function l(e){if(1!=e.which)return a();i.moveTo(o+(e[r]-n)*(i.total/i.size))}})),e.on(this.node,"click",(function(t){e.e_preventDefault(t);var r,n=i.inner.getBoundingClientRect();r="horizontal"==i.orientation?t.clientX<n.left?-1:t.clientX>n.right?1:0:t.clientY<n.top?-1:t.clientY>n.bottom?1:0,i.moveTo(i.pos+r*i.screen)})),e.on(this.node,"mousewheel",o),e.on(this.node,"DOMMouseScroll",o)}t.prototype.setPos=function(e,t){return e<0&&(e=0),e>this.total-this.screen&&(e=this.total-this.screen),!(!t&&e==this.pos)&&(this.pos=e,this.inner.style["horizontal"==this.orientation?"left":"top"]=e*(this.size/this.total)+"px",!0)},t.prototype.moveTo=function(e){this.setPos(e)&&this.scroll(e,this.orientation)};var r=10;function n(e,r,n){this.addClass=e,this.horiz=new t(e,"horizontal",n),r(this.horiz.node),this.vert=new t(e,"vertical",n),r(this.vert.node),this.width=null}t.prototype.update=function(e,t,n){var i=this.screen!=t||this.total!=e||this.size!=n;i&&(this.screen=t,this.total=e,this.size=n);var o=this.screen*(this.size/this.total);o<r&&(this.size-=r-o,o=r),this.inner.style["horizontal"==this.orientation?"width":"height"]=o+"px",this.setPos(this.pos,i)},n.prototype.update=function(e){if(null==this.width){var t=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;t&&(this.width=parseInt(t.height))}var r=this.width||0,n=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1;return this.vert.node.style.display=i?"block":"none",this.horiz.node.style.display=n?"block":"none",i&&(this.vert.update(e.scrollHeight,e.clientHeight,e.viewHeight-(n?r:0)),this.vert.node.style.bottom=n?r+"px":"0"),n&&(this.horiz.update(e.scrollWidth,e.clientWidth,e.viewWidth-(i?r:0)-e.barLeft),this.horiz.node.style.right=i?r+"px":"0",this.horiz.node.style.left=e.barLeft+"px"),{right:i?r:0,bottom:n?r:0}},n.prototype.setScrollTop=function(e){this.vert.setPos(e)},n.prototype.setScrollLeft=function(e){this.horiz.setPos(e)},n.prototype.clear=function(){var e=this.horiz.node.parentNode;e.removeChild(this.horiz.node),e.removeChild(this.vert.node)},e.scrollbarModel.simple=function(e,t){return new n("CodeMirror-simplescroll",e,t)},e.scrollbarModel.overlay=function(e,t){return new n("CodeMirror-overlayscroll",e,t)}}))},870:function(e,t,r){r(7658),function(e){e(r(1610))}((function(e){"use strict";var t="CodeMirror-activeline",r="CodeMirror-activeline-background",n="CodeMirror-activeline-gutter";function i(e){for(var i=0;i<e.state.activeLines.length;i++)e.removeLineClass(e.state.activeLines[i],"wrap",t),e.removeLineClass(e.state.activeLines[i],"background",r),e.removeLineClass(e.state.activeLines[i],"gutter",n)}function o(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function a(e,a){for(var l=[],s=0;s<a.length;s++){var c=a[s],u=e.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var f=e.getLineHandleVisualStart(c.head.line);l[l.length-1]!=f&&l.push(f)}}o(e.state.activeLines,l)||e.operation((function(){i(e);for(var o=0;o<l.length;o++)e.addLineClass(l[o],"wrap",t),e.addLineClass(l[o],"background",r),e.addLineClass(l[o],"gutter",n);e.state.activeLines=l}))}function l(e,t){a(e,t.ranges)}e.defineOption("styleActiveLine",!1,(function(t,r,n){var o=n!=e.Init&&n;r!=o&&(o&&(t.off("beforeSelectionChange",l),i(t),delete t.state.activeLines),r&&(t.state.activeLines=[],a(t,t.listSelections()),t.on("beforeSelectionChange",l)))}))}))},1610:function(e,t,r){r(7658),function(t,r){e.exports=r()}(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=n||i||o,l=a&&(n?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),f=u&&+u[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),k=d&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(d=!1,s=!0);var C=b&&(c||d&&(null==k||k<12.11)),S=r||a&&l>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var M,T=function(e,t){var r=e.className,n=L(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return O(e).appendChild(t)}function N(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function P(e,t,r,n){var i=N(e,t,r,n);return i.setAttribute("role","presentation"),i}function E(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t;try{t=e.activeElement}catch(r){t=e.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}function z(e,t){var r=e.className;L(t).test(r)||(e.className+=(r?" ":"")+t)}function H(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!L(r[n]).test(t)&&(t+=" "+r[n]);return t}M=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(i){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var W=function(e){e.select()};function F(e){return e.display.wrapper.ownerDocument}function I(e){return F(e).defaultView}function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function B(e,t,r,n,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=n||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}m?W=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(W=function(e){try{e.select()}catch(t){}});var _=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function V(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}_.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var K=50,U={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},$={origin:"*mouse"},q={origin:"+move"};function X(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var a=o-n;if(o==e.length||i+a>=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var Y=[""];function Z(e){while(Y.length<=e)Y.push(Q(Y)+" ");return Y[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function ee(e,t,r){var n=0,i=r(t);while(n<e.length&&r(e[n])<=i)n++;e.splice(n,0,t)}function te(){}function re(e,t){var r;return Object.create?r=Object.create(e):(te.prototype=e,r=new te),t&&j(t,r),r}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\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 se(e){return e.charCodeAt(0)>=768&&le.test(e)}function ce(e,t,r){while((r<0?t>0:t<e.length)&&se(e.charAt(t)))t+=r;return t}function ue(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function fe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var de=null;function he(e,t,r){var n;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:de=i)}return null!=n?n:de}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var u=e.length,f=[],d=0;d<u;++d)f.push(r(e.charCodeAt(d)));for(var h=0,p=c;h<u;++h){var g=f[h];"m"==g?f[h]=p:p=g}for(var m=0,v=c;m<u;++m){var y=f[m];"1"==y&&"r"==v?f[m]="n":o.test(y)&&(v=y,"r"==y&&(f[m]="R"))}for(var b=1,w=f[0];b<u-1;++b){var x=f[b];"+"==x&&"1"==w&&"1"==f[b+1]?f[b]="1":","!=x||w!=f[b+1]||"1"!=w&&"n"!=w||(f[b]=w),w=x}for(var k=0;k<u;++k){var C=f[k];if(","==C)f[k]="N";else if("%"==C){var S=void 0;for(S=k+1;S<u&&"%"==f[S];++S);for(var L=k&&"!"==f[k-1]||S<u&&"1"==f[S]?"1":"N",M=k;M<S;++M)f[M]=L;k=S-1}}for(var T=0,O=c;T<u;++T){var A=f[T];"L"==O&&"1"==A?f[T]="L":o.test(A)&&(O=A)}for(var N=0;N<u;++N)if(i.test(f[N])){var P=void 0;for(P=N+1;P<u&&i.test(f[P]);++P);for(var E="L"==(N?f[N-1]:c),D="L"==(P<u?f[P]:c),z=E==D?E?"L":"R":c,H=N;H<P;++H)f[H]=z;N=P-1}for(var W,F=[],I=0;I<u;)if(a.test(f[I])){var R=I;for(++I;I<u&&a.test(f[I]);++I);F.push(new s(0,R,I))}else{var j=I,B=F.length,_="rtl"==t?1:0;for(++I;I<u&&"L"!=f[I];++I);for(var V=j;V<I;)if(l.test(f[V])){j<V&&(F.splice(B,0,new s(1,j,V)),B+=_);var K=V;for(++V;V<I&&l.test(f[V]);++V);F.splice(B,0,new s(2,K,V)),B+=_,j=V}else++V;j<I&&F.splice(B,0,new s(1,j,I))}return"ltr"==t&&(1==F[0].level&&(W=e.match(/^\s+/))&&(F[0].from=W[0].length,F.unshift(new s(0,0,W[0].length))),1==Q(F).level&&(W=e.match(/\s+$/))&&(Q(F).to-=W[0].length,F.push(new s(0,u-W[0].length,u)))),"rtl"==t?F.reverse():F}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=pe(e.text,t)),r}var me=[],ve=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||me).concat(r)}};function ye(e,t){return e._handlers&&e._handlers[t]||me}function be(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=V(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var r=ye(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function xe(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,r||t.type,e,t),Te(t)||t.codemirrorIgnore}function ke(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==V(r,t[n])&&r.push(t[n])}function Ce(e,t){return ye(e,t).length>0}function Se(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){Le(e),Me(e)}function Ae(e){return e.target||e.srcElement}function Ne(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(